]> git.sur5r.net Git - openldap/blob - configure
remove meantion of ldap_unbind_ext_s(3)
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.596 2005/08/26 01:26:05 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 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_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
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
1040 SLAPD (Standalone LDAP Daemon) Options:
1041   --enable-slapd          enable building slapd [yes]
1042     --enable-aci          enable per-object ACIs (experimental) [no]
1043     --enable-cleartext    enable cleartext passwords [yes]
1044     --enable-crypt        enable crypt(3) passwords [no]
1045     --enable-lmpasswd     enable LAN Manager passwords [no]
1046     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1047     --enable-modules      enable dynamic module support [no]
1048     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1049     --enable-rlookups     enable reverse lookups of client hostnames [no]
1050     --enable-slapi        enable SLAPI support (experimental) [no]
1051     --enable-slp          enable SLPv2 support [no]
1052     --enable-wrappers     enable tcp wrapper support [no]
1053
1054 SLAPD Backend Options:
1055     --enable-backends     enable all available backends no|yes|mod
1056     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1057     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1058     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1059     --enable-ldap         enable ldap backend no|yes|mod [no]
1060     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1061       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1062       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1063     --enable-meta         enable metadirectory backend no|yes|mod [no]
1064     --enable-monitor      enable monitor backend no|yes|mod [yes]
1065     --enable-null         enable null backend no|yes|mod [no]
1066     --enable-passwd       enable passwd backend no|yes|mod [no]
1067     --enable-perl         enable perl backend no|yes|mod [no]
1068     --enable-relay        enable relay backend no|yes|mod [yes]
1069     --enable-shell        enable shell backend no|yes|mod [no]
1070     --enable-sql          enable sql backend no|yes|mod [no]
1071
1072 SLAPD Overlay Options:
1073     --enable-overlays     enable all available overlays no|yes|mod
1074     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1075     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1076     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1077     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1078     --enable-glue         Backend Glue overlay no|yes|mod [yes]
1079     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1080     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1081     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1082     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1083     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1084     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1085     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1086     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1087     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1088     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1089
1090 SLURPD (Replication Daemon) Options:
1091   --enable-slurpd         enable building slurpd [auto]
1092
1093 Library Generation & Linking Options
1094   --enable-static[=PKGS]
1095                           build static libraries [default=yes]
1096   --enable-shared[=PKGS]
1097                           build shared libraries [default=yes]
1098   --enable-fast-install[=PKGS]
1099                           optimize for fast installation [default=yes]
1100   --disable-dependency-tracking  speeds up one-time build
1101   --enable-dependency-tracking   do not reject slow dependency extractors
1102   --disable-libtool-lock  avoid locking (might break parallel builds)
1103
1104 Optional Packages:
1105   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107   --with-subdir=DIR       change default subdirectory used for installs
1108   --with-cyrus-sasl       with Cyrus SASL support [auto]
1109   --with-fetch            with fetch(3) URL support [auto]
1110   --with-threads          with threads [auto]
1111   --with-tls              with TLS/SSL support [auto]
1112   --with-yielding-select  with implicitly yielding select [auto]
1113   --with-multiple-precision
1114                           multiple precision support for statistics
1115                           auto|bignum|gmp [auto]
1116
1117   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1118   --with-pic              try to use only PIC/non-PIC objects [default=use
1119                           both]
1120   --with-tags[=TAGS]
1121                           include additional configurations [automatic]
1122
1123 See INSTALL file for further details.
1124
1125 Some influential environment variables:
1126   CC          C compiler command
1127   CFLAGS      C compiler flags
1128   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1129               nonstandard directory <lib dir>
1130   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1131               headers in a nonstandard directory <include dir>
1132   CPP         C preprocessor
1133   CXX         C++ compiler command
1134   CXXFLAGS    C++ compiler flags
1135   CXXCPP      C++ preprocessor
1136   F77         Fortran 77 compiler command
1137   FFLAGS      Fortran 77 compiler flags
1138
1139 Use these variables to override the choices made by `configure' or to help
1140 it to find libraries and programs with nonstandard names/locations.
1141
1142 _ACEOF
1143 fi
1144
1145 if test "$ac_init_help" = "recursive"; then
1146   # If there are subdirs, report their specific --help.
1147   ac_popdir=`pwd`
1148   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1149     test -d $ac_dir || continue
1150     ac_builddir=.
1151
1152 if test "$ac_dir" != .; then
1153   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1154   # A "../" for each directory in $ac_dir_suffix.
1155   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1156 else
1157   ac_dir_suffix= ac_top_builddir=
1158 fi
1159
1160 case $srcdir in
1161   .)  # No --srcdir option.  We are building in place.
1162     ac_srcdir=.
1163     if test -z "$ac_top_builddir"; then
1164        ac_top_srcdir=.
1165     else
1166        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1167     fi ;;
1168   [\\/]* | ?:[\\/]* )  # Absolute path.
1169     ac_srcdir=$srcdir$ac_dir_suffix;
1170     ac_top_srcdir=$srcdir ;;
1171   *) # Relative path.
1172     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1173     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1174 esac
1175
1176 # Do not use `cd foo && pwd` to compute absolute paths, because
1177 # the directories may not exist.
1178 case `pwd` in
1179 .) ac_abs_builddir="$ac_dir";;
1180 *)
1181   case "$ac_dir" in
1182   .) ac_abs_builddir=`pwd`;;
1183   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1184   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1185   esac;;
1186 esac
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1189 *)
1190   case ${ac_top_builddir}. in
1191   .) ac_abs_top_builddir=$ac_abs_builddir;;
1192   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1193   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1194   esac;;
1195 esac
1196 case $ac_abs_builddir in
1197 .) ac_abs_srcdir=$ac_srcdir;;
1198 *)
1199   case $ac_srcdir in
1200   .) ac_abs_srcdir=$ac_abs_builddir;;
1201   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1202   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1203   esac;;
1204 esac
1205 case $ac_abs_builddir in
1206 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1207 *)
1208   case $ac_top_srcdir in
1209   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1210   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1211   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1212   esac;;
1213 esac
1214
1215     cd $ac_dir
1216     # Check for guested configure; otherwise get Cygnus style configure.
1217     if test -f $ac_srcdir/configure.gnu; then
1218       echo
1219       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1220     elif test -f $ac_srcdir/configure; then
1221       echo
1222       $SHELL $ac_srcdir/configure  --help=recursive
1223     elif test -f $ac_srcdir/configure.ac ||
1224            test -f $ac_srcdir/configure.in; then
1225       echo
1226       $ac_configure --help
1227     else
1228       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1229     fi
1230     cd $ac_popdir
1231   done
1232 fi
1233
1234 test -n "$ac_init_help" && exit 0
1235 if $ac_init_version; then
1236   cat <<\_ACEOF
1237
1238 Copyright (C) 2003 Free Software Foundation, Inc.
1239 This configure script is free software; the Free Software Foundation
1240 gives unlimited permission to copy, distribute and modify it.
1241
1242 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1243 Restrictions apply, see COPYRIGHT and LICENSE files.
1244 _ACEOF
1245   exit 0
1246 fi
1247 exec 5>config.log
1248 cat >&5 <<_ACEOF
1249 This file contains any messages produced by compilers while
1250 running configure, to aid debugging if configure makes a mistake.
1251
1252 It was created by $as_me, which was
1253 generated by GNU Autoconf 2.59.  Invocation command line was
1254
1255   $ $0 $@
1256
1257 _ACEOF
1258 {
1259 cat <<_ASUNAME
1260 ## --------- ##
1261 ## Platform. ##
1262 ## --------- ##
1263
1264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1269
1270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1271 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1272
1273 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1274 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1276 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1277 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1278 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1279 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1280
1281 _ASUNAME
1282
1283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for as_dir in $PATH
1285 do
1286   IFS=$as_save_IFS
1287   test -z "$as_dir" && as_dir=.
1288   echo "PATH: $as_dir"
1289 done
1290
1291 } >&5
1292
1293 cat >&5 <<_ACEOF
1294
1295
1296 ## ----------- ##
1297 ## Core tests. ##
1298 ## ----------- ##
1299
1300 _ACEOF
1301
1302
1303 # Keep a trace of the command line.
1304 # Strip out --no-create and --no-recursion so they do not pile up.
1305 # Strip out --silent because we don't want to record it for future runs.
1306 # Also quote any args containing shell meta-characters.
1307 # Make two passes to allow for proper duplicate-argument suppression.
1308 ac_configure_args=
1309 ac_configure_args0=
1310 ac_configure_args1=
1311 ac_sep=
1312 ac_must_keep_next=false
1313 for ac_pass in 1 2
1314 do
1315   for ac_arg
1316   do
1317     case $ac_arg in
1318     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1319     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1320     | -silent | --silent | --silen | --sile | --sil)
1321       continue ;;
1322     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1323       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1324     esac
1325     case $ac_pass in
1326     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1327     2)
1328       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1329       if test $ac_must_keep_next = true; then
1330         ac_must_keep_next=false # Got value, back to normal.
1331       else
1332         case $ac_arg in
1333           *=* | --config-cache | -C | -disable-* | --disable-* \
1334           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1335           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1336           | -with-* | --with-* | -without-* | --without-* | --x)
1337             case "$ac_configure_args0 " in
1338               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1339             esac
1340             ;;
1341           -* ) ac_must_keep_next=true ;;
1342         esac
1343       fi
1344       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1345       # Get rid of the leading space.
1346       ac_sep=" "
1347       ;;
1348     esac
1349   done
1350 done
1351 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1352 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1353
1354 # When interrupted or exit'd, cleanup temporary files, and complete
1355 # config.log.  We remove comments because anyway the quotes in there
1356 # would cause problems or look ugly.
1357 # WARNING: Be sure not to use single quotes in there, as some shells,
1358 # such as our DU 5.0 friend, will then `close' the trap.
1359 trap 'exit_status=$?
1360   # Save into config.log some information that might help in debugging.
1361   {
1362     echo
1363
1364     cat <<\_ASBOX
1365 ## ---------------- ##
1366 ## Cache variables. ##
1367 ## ---------------- ##
1368 _ASBOX
1369     echo
1370     # The following way of writing the cache mishandles newlines in values,
1371 {
1372   (set) 2>&1 |
1373     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1374     *ac_space=\ *)
1375       sed -n \
1376         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1377           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1378       ;;
1379     *)
1380       sed -n \
1381         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1382       ;;
1383     esac;
1384 }
1385     echo
1386
1387     cat <<\_ASBOX
1388 ## ----------------- ##
1389 ## Output variables. ##
1390 ## ----------------- ##
1391 _ASBOX
1392     echo
1393     for ac_var in $ac_subst_vars
1394     do
1395       eval ac_val=$`echo $ac_var`
1396       echo "$ac_var='"'"'$ac_val'"'"'"
1397     done | sort
1398     echo
1399
1400     if test -n "$ac_subst_files"; then
1401       cat <<\_ASBOX
1402 ## ------------- ##
1403 ## Output files. ##
1404 ## ------------- ##
1405 _ASBOX
1406       echo
1407       for ac_var in $ac_subst_files
1408       do
1409         eval ac_val=$`echo $ac_var`
1410         echo "$ac_var='"'"'$ac_val'"'"'"
1411       done | sort
1412       echo
1413     fi
1414
1415     if test -s confdefs.h; then
1416       cat <<\_ASBOX
1417 ## ----------- ##
1418 ## confdefs.h. ##
1419 ## ----------- ##
1420 _ASBOX
1421       echo
1422       sed "/^$/d" confdefs.h | sort
1423       echo
1424     fi
1425     test "$ac_signal" != 0 &&
1426       echo "$as_me: caught signal $ac_signal"
1427     echo "$as_me: exit $exit_status"
1428   } >&5
1429   rm -f core *.core &&
1430   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1431     exit $exit_status
1432      ' 0
1433 for ac_signal in 1 2 13 15; do
1434   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1435 done
1436 ac_signal=0
1437
1438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1439 rm -rf conftest* confdefs.h
1440 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1441 echo >confdefs.h
1442
1443 # Predefined preprocessor variables.
1444
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_NAME "$PACKAGE_NAME"
1447 _ACEOF
1448
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1457 _ACEOF
1458
1459
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_STRING "$PACKAGE_STRING"
1462 _ACEOF
1463
1464
1465 cat >>confdefs.h <<_ACEOF
1466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1467 _ACEOF
1468
1469
1470 # Let the site file select an alternate cache file if it wants to.
1471 # Prefer explicitly selected file to automatically selected ones.
1472 if test -z "$CONFIG_SITE"; then
1473   if test "x$prefix" != xNONE; then
1474     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1475   else
1476     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1477   fi
1478 fi
1479 for ac_site_file in $CONFIG_SITE; do
1480   if test -r "$ac_site_file"; then
1481     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1482 echo "$as_me: loading site script $ac_site_file" >&6;}
1483     sed 's/^/| /' "$ac_site_file" >&5
1484     . "$ac_site_file"
1485   fi
1486 done
1487
1488
1489 # Check that the precious variables saved in the cache have kept the same
1490 # value.
1491 ac_cache_corrupted=false
1492 for ac_var in `(set) 2>&1 |
1493                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1494   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1495   eval ac_new_set=\$ac_env_${ac_var}_set
1496   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1497   eval ac_new_val="\$ac_env_${ac_var}_value"
1498   case $ac_old_set,$ac_new_set in
1499     set,)
1500       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1501 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1502       ac_cache_corrupted=: ;;
1503     ,set)
1504       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1505 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1506       ac_cache_corrupted=: ;;
1507     ,);;
1508     *)
1509       if test "x$ac_old_val" != "x$ac_new_val"; then
1510         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1511 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1512         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1513 echo "$as_me:   former value:  $ac_old_val" >&2;}
1514         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1515 echo "$as_me:   current value: $ac_new_val" >&2;}
1516         ac_cache_corrupted=:
1517       fi;;
1518   esac
1519   # Pass precious variables to config.status.
1520   if test "$ac_new_set" = set; then
1521     case $ac_new_val in
1522     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1523       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1524     *) ac_arg=$ac_var=$ac_new_val ;;
1525     esac
1526     case " $ac_configure_args " in
1527       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1528       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1529     esac
1530   fi
1531 done
1532 if $ac_cache_corrupted; then
1533   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1534 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1535   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1536 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539
1540 ac_ext=c
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1585
1586 ac_aux_dir=
1587 for ac_dir in build $srcdir/build; do
1588   if test -f $ac_dir/install-sh; then
1589     ac_aux_dir=$ac_dir
1590     ac_install_sh="$ac_aux_dir/install-sh -c"
1591     break
1592   elif test -f $ac_dir/install.sh; then
1593     ac_aux_dir=$ac_dir
1594     ac_install_sh="$ac_aux_dir/install.sh -c"
1595     break
1596   elif test -f $ac_dir/shtool; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/shtool install -c"
1599     break
1600   fi
1601 done
1602 if test -z "$ac_aux_dir"; then
1603   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1604 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1605    { (exit 1); exit 1; }; }
1606 fi
1607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610
1611 eval `$ac_aux_dir/version.sh`
1612 if test -z "$OL_STRING"; then
1613         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1614 echo "$as_me: error: could not determine version" >&2;}
1615    { (exit 1); exit 1; }; }
1616 fi
1617
1618 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1619         ac_cv_shtool="$ac_aux_dir/shtool"
1620 else
1621         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1622 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1623    { (exit 1); exit 1; }; }
1624 fi
1625
1626 SHTOOL="$ac_cv_shtool"
1627
1628 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1629 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1630
1631 OPENLDAP_CVS=""
1632 if test -d $ac_aux_dir/CVS; then
1633         OPENLDAP_CVS="(from CVS sources) "
1634 fi
1635
1636 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1637
1638 # Make sure we can run config.sub.
1639 $ac_config_sub sun4 >/dev/null 2>&1 ||
1640   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1641 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1642    { (exit 1); exit 1; }; }
1643
1644 echo "$as_me:$LINENO: checking build system type" >&5
1645 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1646 if test "${ac_cv_build+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   ac_cv_build_alias=$build_alias
1650 test -z "$ac_cv_build_alias" &&
1651   ac_cv_build_alias=`$ac_config_guess`
1652 test -z "$ac_cv_build_alias" &&
1653   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1654 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1655    { (exit 1); exit 1; }; }
1656 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1663 echo "${ECHO_T}$ac_cv_build" >&6
1664 build=$ac_cv_build
1665 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking host system type" >&5
1671 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1672 if test "${ac_cv_host+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_host_alias=$host_alias
1676 test -z "$ac_cv_host_alias" &&
1677   ac_cv_host_alias=$ac_cv_build_alias
1678 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1685 echo "${ECHO_T}$ac_cv_host" >&6
1686 host=$ac_cv_host
1687 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 echo "$as_me:$LINENO: checking target system type" >&5
1693 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1694 if test "${ac_cv_target+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   ac_cv_target_alias=$target_alias
1698 test "x$ac_cv_target_alias" = "x" &&
1699   ac_cv_target_alias=$ac_cv_host_alias
1700 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1701   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1702 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1703    { (exit 1); exit 1; }; }
1704
1705 fi
1706 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1707 echo "${ECHO_T}$ac_cv_target" >&6
1708 target=$ac_cv_target
1709 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1710 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1711 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712
1713
1714 # The aliases save the names the user supplied, while $host etc.
1715 # will get canonicalized.
1716 test -n "$target_alias" &&
1717   test "$program_prefix$program_suffix$program_transform_name" = \
1718     NONENONEs,x,x, &&
1719   program_prefix=${target_alias}-
1720
1721 am__api_version="1.9"
1722 # Find a good install program.  We prefer a C program (faster),
1723 # so one script is as good as another.  But avoid the broken or
1724 # incompatible versions:
1725 # SysV /etc/install, /usr/sbin/install
1726 # SunOS /usr/etc/install
1727 # IRIX /sbin/install
1728 # AIX /bin/install
1729 # AmigaOS /C/install, which installs bootblocks on floppy discs
1730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1733 # OS/2's system install, which has a completely different semantic
1734 # ./install, which can be erroneously created by make from ./install.sh.
1735 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1736 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1737 if test -z "$INSTALL"; then
1738 if test "${ac_cv_path_install+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744   IFS=$as_save_IFS
1745   test -z "$as_dir" && as_dir=.
1746   # Account for people who put trailing slashes in PATH elements.
1747 case $as_dir/ in
1748   ./ | .// | /cC/* | \
1749   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1750   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1751   /usr/ucb/* ) ;;
1752   *)
1753     # OSF1 and SCO ODT 3.0 have their own names for install.
1754     # Don't use installbsd from OSF since it installs stuff as root
1755     # by default.
1756     for ac_prog in ginstall scoinst install; do
1757       for ac_exec_ext in '' $ac_executable_extensions; do
1758         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1759           if test $ac_prog = install &&
1760             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1761             # AIX install.  It has an incompatible calling convention.
1762             :
1763           elif test $ac_prog = install &&
1764             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1765             # program-specific install script used by HP pwplus--don't use.
1766             :
1767           else
1768             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1769             break 3
1770           fi
1771         fi
1772       done
1773     done
1774     ;;
1775 esac
1776 done
1777
1778
1779 fi
1780   if test "${ac_cv_path_install+set}" = set; then
1781     INSTALL=$ac_cv_path_install
1782   else
1783     # As a last resort, use the slow shell script.  We don't cache a
1784     # path for INSTALL within a source directory, because that will
1785     # break other packages using the cache if that directory is
1786     # removed, or if the path is relative.
1787     INSTALL=$ac_install_sh
1788   fi
1789 fi
1790 echo "$as_me:$LINENO: result: $INSTALL" >&5
1791 echo "${ECHO_T}$INSTALL" >&6
1792
1793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1794 # It thinks the first close brace ends the variable substitution.
1795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1796
1797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1798
1799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1800
1801 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1802 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1803 # Just in case
1804 sleep 1
1805 echo timestamp > conftest.file
1806 # Do `set' in a subshell so we don't clobber the current shell's
1807 # arguments.  Must try -L first in case configure is actually a
1808 # symlink; some systems play weird games with the mod time of symlinks
1809 # (eg FreeBSD returns the mod time of the symlink's containing
1810 # directory).
1811 if (
1812    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1813    if test "$*" = "X"; then
1814       # -L didn't work.
1815       set X `ls -t $srcdir/configure conftest.file`
1816    fi
1817    rm -f conftest.file
1818    if test "$*" != "X $srcdir/configure conftest.file" \
1819       && test "$*" != "X conftest.file $srcdir/configure"; then
1820
1821       # If neither matched, then we have a broken ls.  This can happen
1822       # if, for instance, CONFIG_SHELL is bash and it inherits a
1823       # broken ls alias from the environment.  This has actually
1824       # happened.  Such a system could not be considered "sane".
1825       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1826 alias in your environment" >&5
1827 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1828 alias in your environment" >&2;}
1829    { (exit 1); exit 1; }; }
1830    fi
1831
1832    test "$2" = conftest.file
1833    )
1834 then
1835    # Ok.
1836    :
1837 else
1838    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1839 Check your system clock" >&5
1840 echo "$as_me: error: newly created file is older than distributed files!
1841 Check your system clock" >&2;}
1842    { (exit 1); exit 1; }; }
1843 fi
1844 echo "$as_me:$LINENO: result: yes" >&5
1845 echo "${ECHO_T}yes" >&6
1846 test "$program_prefix" != NONE &&
1847   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1848 # Use a double $ so make ignores it.
1849 test "$program_suffix" != NONE &&
1850   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1851 # Double any \ or $.  echo might interpret backslashes.
1852 # By default was `s,x,x', remove it if useless.
1853 cat <<\_ACEOF >conftest.sed
1854 s/[\\$]/&&/g;s/;s,x,x,$//
1855 _ACEOF
1856 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1857 rm conftest.sed
1858
1859 # expand $ac_aux_dir to an absolute path
1860 am_aux_dir=`cd $ac_aux_dir && pwd`
1861
1862 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1863 # Use eval to expand $SHELL
1864 if eval "$MISSING --run true"; then
1865   am_missing_run="$MISSING --run "
1866 else
1867   am_missing_run=
1868   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1869 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1870 fi
1871
1872 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1873   # We used to keeping the `.' as first argument, in order to
1874   # allow $(mkdir_p) to be used without argument.  As in
1875   #   $(mkdir_p) $(somedir)
1876   # where $(somedir) is conditionally defined.  However this is wrong
1877   # for two reasons:
1878   #  1. if the package is installed by a user who cannot write `.'
1879   #     make install will fail,
1880   #  2. the above comment should most certainly read
1881   #     $(mkdir_p) $(DESTDIR)$(somedir)
1882   #     so it does not work when $(somedir) is undefined and
1883   #     $(DESTDIR) is not.
1884   #  To support the latter case, we have to write
1885   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1886   #  so the `.' trick is pointless.
1887   mkdir_p='mkdir -p --'
1888 else
1889   # On NextStep and OpenStep, the `mkdir' command does not
1890   # recognize any option.  It will interpret all options as
1891   # directories to create, and then abort because `.' already
1892   # exists.
1893   for d in ./-p ./--version;
1894   do
1895     test -d $d && rmdir $d
1896   done
1897   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1898   if test -f "$ac_aux_dir/mkinstalldirs"; then
1899     mkdir_p='$(mkinstalldirs)'
1900   else
1901     mkdir_p='$(install_sh) -d'
1902   fi
1903 fi
1904
1905 for ac_prog in gawk mawk nawk awk
1906 do
1907   # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_AWK+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test -n "$AWK"; then
1915   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_exec_ext in '' $ac_executable_extensions; do
1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924     ac_cv_prog_AWK="$ac_prog"
1925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926     break 2
1927   fi
1928 done
1929 done
1930
1931 fi
1932 fi
1933 AWK=$ac_cv_prog_AWK
1934 if test -n "$AWK"; then
1935   echo "$as_me:$LINENO: result: $AWK" >&5
1936 echo "${ECHO_T}$AWK" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942   test -n "$AWK" && break
1943 done
1944
1945 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1946 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1947 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1948 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   cat >conftest.make <<\_ACEOF
1952 all:
1953         @echo 'ac_maketemp="$(MAKE)"'
1954 _ACEOF
1955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1956 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1957 if test -n "$ac_maketemp"; then
1958   eval ac_cv_prog_make_${ac_make}_set=yes
1959 else
1960   eval ac_cv_prog_make_${ac_make}_set=no
1961 fi
1962 rm -f conftest.make
1963 fi
1964 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1965   echo "$as_me:$LINENO: result: yes" >&5
1966 echo "${ECHO_T}yes" >&6
1967   SET_MAKE=
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971   SET_MAKE="MAKE=${MAKE-make}"
1972 fi
1973
1974 rm -rf .tst 2>/dev/null
1975 mkdir .tst 2>/dev/null
1976 if test -d .tst; then
1977   am__leading_dot=.
1978 else
1979   am__leading_dot=_
1980 fi
1981 rmdir .tst 2>/dev/null
1982
1983 # test to see if srcdir already configured
1984 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1985    test -f $srcdir/config.status; then
1986   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1987 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1988    { (exit 1); exit 1; }; }
1989 fi
1990
1991 # test whether we have cygpath
1992 if test -z "$CYGPATH_W"; then
1993   if (cygpath --version) >/dev/null 2>/dev/null; then
1994     CYGPATH_W='cygpath -w'
1995   else
1996     CYGPATH_W=echo
1997   fi
1998 fi
1999
2000
2001 # Define the identity of the package.
2002  PACKAGE=$OL_PACKAGE
2003  VERSION=$OL_VERSION
2004
2005
2006 # Some tools Automake needs.
2007
2008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2009
2010
2011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2012
2013
2014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2015
2016
2017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2018
2019
2020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2021
2022 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2023
2024 # Installed binaries are usually stripped using `strip' when the user
2025 # run `make install-strip'.  However `strip' might not be the right
2026 # tool to use in cross-compilation environments, therefore Automake
2027 # will honor the `STRIP' environment variable to overrule this program.
2028 if test "$cross_compiling" != no; then
2029   if test -n "$ac_tool_prefix"; then
2030   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}strip; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_STRIP+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$STRIP"; then
2038   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053
2054 fi
2055 fi
2056 STRIP=$ac_cv_prog_STRIP
2057 if test -n "$STRIP"; then
2058   echo "$as_me:$LINENO: result: $STRIP" >&5
2059 echo "${ECHO_T}$STRIP" >&6
2060 else
2061   echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2063 fi
2064
2065 fi
2066 if test -z "$ac_cv_prog_STRIP"; then
2067   ac_ct_STRIP=$STRIP
2068   # Extract the first word of "strip", so it can be a program name with args.
2069 set dummy strip; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$ac_ct_STRIP"; then
2076   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085     ac_cv_prog_ac_ct_STRIP="strip"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091
2092   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2093 fi
2094 fi
2095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2096 if test -n "$ac_ct_STRIP"; then
2097   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2098 echo "${ECHO_T}$ac_ct_STRIP" >&6
2099 else
2100   echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2102 fi
2103
2104   STRIP=$ac_ct_STRIP
2105 else
2106   STRIP="$ac_cv_prog_STRIP"
2107 fi
2108
2109 fi
2110 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2111
2112 # We need awk for the "check" target.  The system "awk" is bad on
2113 # some platforms.
2114 # Always define AMTAR for backward compatibility.
2115
2116 AMTAR=${AMTAR-"${am_missing_run}tar"}
2117
2118 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2119
2120
2121
2122
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define OPENLDAP_PACKAGE "$PACKAGE"
2126 _ACEOF
2127
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define OPENLDAP_VERSION "$VERSION"
2131 _ACEOF
2132
2133
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define LDAP_VENDOR_VERSION $OL_API_INC
2137 _ACEOF
2138
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2142 _ACEOF
2143
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2147 _ACEOF
2148
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2152 _ACEOF
2153
2154
2155 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2156
2157 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2158
2159 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2160
2161
2162
2163
2164
2165
2166
2167           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2168
2169           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2170
2171           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2172
2173
2174 echo "$as_me:$LINENO: checking configure arguments" >&5
2175 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2176
2177
2178 top_builddir=`pwd`
2179
2180 ldap_subdir="/openldap"
2181
2182
2183 # Check whether --with-subdir or --without-subdir was given.
2184 if test "${with_subdir+set}" = set; then
2185   withval="$with_subdir"
2186   case "$withval" in
2187         no) ldap_subdir=""
2188                 ;;
2189         yes)
2190                 ;;
2191         /*|\\*)
2192                 ldap_subdir="$withval"
2193                 ;;
2194         *)
2195                 ldap_subdir="/$withval"
2196                 ;;
2197 esac
2198
2199 fi;
2200
2201 # OpenLDAP --enable-debug
2202
2203         # Check whether --enable-debug or --disable-debug was given.
2204 if test "${enable_debug+set}" = set; then
2205   enableval="$enable_debug"
2206
2207         ol_arg=invalid
2208         for ol_val in auto yes no ; do
2209                 if test "$enableval" = "$ol_val" ; then
2210                         ol_arg="$ol_val"
2211                 fi
2212         done
2213         if test "$ol_arg" = "invalid" ; then
2214                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2215 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2216    { (exit 1); exit 1; }; }
2217         fi
2218         ol_enable_debug="$ol_arg"
2219
2220 else
2221         ol_enable_debug=yes
2222 fi;
2223 # end --enable-debug
2224 # OpenLDAP --enable-dynamic
2225
2226         # Check whether --enable-dynamic or --disable-dynamic was given.
2227 if test "${enable_dynamic+set}" = set; then
2228   enableval="$enable_dynamic"
2229
2230         ol_arg=invalid
2231         for ol_val in auto yes no ; do
2232                 if test "$enableval" = "$ol_val" ; then
2233                         ol_arg="$ol_val"
2234                 fi
2235         done
2236         if test "$ol_arg" = "invalid" ; then
2237                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2238 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2239    { (exit 1); exit 1; }; }
2240         fi
2241         ol_enable_dynamic="$ol_arg"
2242
2243 else
2244         ol_enable_dynamic=no
2245 fi;
2246 # end --enable-dynamic
2247 # OpenLDAP --enable-syslog
2248
2249         # Check whether --enable-syslog or --disable-syslog was given.
2250 if test "${enable_syslog+set}" = set; then
2251   enableval="$enable_syslog"
2252
2253         ol_arg=invalid
2254         for ol_val in auto yes no ; do
2255                 if test "$enableval" = "$ol_val" ; then
2256                         ol_arg="$ol_val"
2257                 fi
2258         done
2259         if test "$ol_arg" = "invalid" ; then
2260                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2261 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2262    { (exit 1); exit 1; }; }
2263         fi
2264         ol_enable_syslog="$ol_arg"
2265
2266 else
2267         ol_enable_syslog=auto
2268 fi;
2269 # end --enable-syslog
2270 # OpenLDAP --enable-proctitle
2271
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;
2292 # end --enable-proctitle
2293 ol_enable_referrals=${ol_enable_referrals-no}
2294 ol_enable_kbind=${ol_enable_kbind-no}
2295 # OpenLDAP --enable-ipv6
2296
2297         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2298 if test "${enable_ipv6+set}" = set; then
2299   enableval="$enable_ipv6"
2300
2301         ol_arg=invalid
2302         for ol_val in auto yes no ; do
2303                 if test "$enableval" = "$ol_val" ; then
2304                         ol_arg="$ol_val"
2305                 fi
2306         done
2307         if test "$ol_arg" = "invalid" ; then
2308                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2309 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2310    { (exit 1); exit 1; }; }
2311         fi
2312         ol_enable_ipv6="$ol_arg"
2313
2314 else
2315         ol_enable_ipv6=auto
2316 fi;
2317 # end --enable-ipv6
2318 # OpenLDAP --enable-local
2319
2320         # Check whether --enable-local or --disable-local was given.
2321 if test "${enable_local+set}" = set; then
2322   enableval="$enable_local"
2323
2324         ol_arg=invalid
2325         for ol_val in auto yes no ; do
2326                 if test "$enableval" = "$ol_val" ; then
2327                         ol_arg="$ol_val"
2328                 fi
2329         done
2330         if test "$ol_arg" = "invalid" ; then
2331                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2332 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2333    { (exit 1); exit 1; }; }
2334         fi
2335         ol_enable_local="$ol_arg"
2336
2337 else
2338         ol_enable_local=auto
2339 fi;
2340 # end --enable-local
2341
2342 # OpenLDAP --with-cyrus_sasl
2343
2344 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2345 if test "${with_cyrus_sasl+set}" = set; then
2346   withval="$with_cyrus_sasl"
2347
2348         ol_arg=invalid
2349         for ol_val in auto yes no  ; do
2350                 if test "$withval" = "$ol_val" ; then
2351                         ol_arg="$ol_val"
2352                 fi
2353         done
2354         if test "$ol_arg" = "invalid" ; then
2355                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2356 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2357    { (exit 1); exit 1; }; }
2358         fi
2359         ol_with_cyrus_sasl="$ol_arg"
2360
2361 else
2362         ol_with_cyrus_sasl="auto"
2363 fi; # end --with-cyrus_sasl
2364
2365 # OpenLDAP --with-fetch
2366
2367 # Check whether --with-fetch or --without-fetch was given.
2368 if test "${with_fetch+set}" = set; then
2369   withval="$with_fetch"
2370
2371         ol_arg=invalid
2372         for ol_val in auto yes no  ; do
2373                 if test "$withval" = "$ol_val" ; then
2374                         ol_arg="$ol_val"
2375                 fi
2376         done
2377         if test "$ol_arg" = "invalid" ; then
2378                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2379 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2380    { (exit 1); exit 1; }; }
2381         fi
2382         ol_with_fetch="$ol_arg"
2383
2384 else
2385         ol_with_fetch="auto"
2386 fi; # end --with-fetch
2387
2388 ol_with_kerberos=${ol_with_kerberos-auto}
2389 # OpenLDAP --with-threads
2390
2391 # Check whether --with-threads or --without-threads was given.
2392 if test "${with_threads+set}" = set; then
2393   withval="$with_threads"
2394
2395         ol_arg=invalid
2396         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2397                 if test "$withval" = "$ol_val" ; then
2398                         ol_arg="$ol_val"
2399                 fi
2400         done
2401         if test "$ol_arg" = "invalid" ; then
2402                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2403 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2404    { (exit 1); exit 1; }; }
2405         fi
2406         ol_with_threads="$ol_arg"
2407
2408 else
2409         ol_with_threads="auto"
2410 fi; # end --with-threads
2411
2412 # OpenLDAP --with-tls
2413
2414 # Check whether --with-tls or --without-tls was given.
2415 if test "${with_tls+set}" = set; then
2416   withval="$with_tls"
2417
2418         ol_arg=invalid
2419         for ol_val in auto ssleay openssl yes no  ; do
2420                 if test "$withval" = "$ol_val" ; then
2421                         ol_arg="$ol_val"
2422                 fi
2423         done
2424         if test "$ol_arg" = "invalid" ; then
2425                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2426 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2427    { (exit 1); exit 1; }; }
2428         fi
2429         ol_with_tls="$ol_arg"
2430
2431 else
2432         ol_with_tls="auto"
2433 fi; # end --with-tls
2434
2435 # OpenLDAP --with-yielding_select
2436
2437 # Check whether --with-yielding_select or --without-yielding_select was given.
2438 if test "${with_yielding_select+set}" = set; then
2439   withval="$with_yielding_select"
2440
2441         ol_arg=invalid
2442         for ol_val in auto yes no manual  ; do
2443                 if test "$withval" = "$ol_val" ; then
2444                         ol_arg="$ol_val"
2445                 fi
2446         done
2447         if test "$ol_arg" = "invalid" ; then
2448                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2449 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2450    { (exit 1); exit 1; }; }
2451         fi
2452         ol_with_yielding_select="$ol_arg"
2453
2454 else
2455         ol_with_yielding_select="auto"
2456 fi; # end --with-yielding_select
2457
2458 # OpenLDAP --with-multiple_precision
2459
2460 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2461 if test "${with_multiple_precision+set}" = set; then
2462   withval="$with_multiple_precision"
2463
2464         ol_arg=invalid
2465         for ol_val in auto bignum gmp yes no  ; do
2466                 if test "$withval" = "$ol_val" ; then
2467                         ol_arg="$ol_val"
2468                 fi
2469         done
2470         if test "$ol_arg" = "invalid" ; then
2471                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2472 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2473    { (exit 1); exit 1; }; }
2474         fi
2475         ol_with_multiple_precision="$ol_arg"
2476
2477 else
2478         ol_with_multiple_precision="auto"
2479 fi; # end --with-multiple_precision
2480
2481
2482
2483 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2484 if test "${enable_xxslapdoptions+set}" = set; then
2485   enableval="$enable_xxslapdoptions"
2486
2487 fi;
2488 # OpenLDAP --enable-slapd
2489
2490         # Check whether --enable-slapd or --disable-slapd was given.
2491 if test "${enable_slapd+set}" = set; then
2492   enableval="$enable_slapd"
2493
2494         ol_arg=invalid
2495         for ol_val in auto yes no ; do
2496                 if test "$enableval" = "$ol_val" ; then
2497                         ol_arg="$ol_val"
2498                 fi
2499         done
2500         if test "$ol_arg" = "invalid" ; then
2501                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2502 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2503    { (exit 1); exit 1; }; }
2504         fi
2505         ol_enable_slapd="$ol_arg"
2506
2507 else
2508         ol_enable_slapd=yes
2509 fi;
2510 # end --enable-slapd
2511 # OpenLDAP --enable-aci
2512
2513         # Check whether --enable-aci or --disable-aci was given.
2514 if test "${enable_aci+set}" = set; then
2515   enableval="$enable_aci"
2516
2517         ol_arg=invalid
2518         for ol_val in auto yes no ; do
2519                 if test "$enableval" = "$ol_val" ; then
2520                         ol_arg="$ol_val"
2521                 fi
2522         done
2523         if test "$ol_arg" = "invalid" ; then
2524                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2525 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2526    { (exit 1); exit 1; }; }
2527         fi
2528         ol_enable_aci="$ol_arg"
2529
2530 else
2531         ol_enable_aci=no
2532 fi;
2533 # end --enable-aci
2534 # OpenLDAP --enable-cleartext
2535
2536         # Check whether --enable-cleartext or --disable-cleartext was given.
2537 if test "${enable_cleartext+set}" = set; then
2538   enableval="$enable_cleartext"
2539
2540         ol_arg=invalid
2541         for ol_val in auto yes no ; do
2542                 if test "$enableval" = "$ol_val" ; then
2543                         ol_arg="$ol_val"
2544                 fi
2545         done
2546         if test "$ol_arg" = "invalid" ; then
2547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2548 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2549    { (exit 1); exit 1; }; }
2550         fi
2551         ol_enable_cleartext="$ol_arg"
2552
2553 else
2554         ol_enable_cleartext=yes
2555 fi;
2556 # end --enable-cleartext
2557 # OpenLDAP --enable-crypt
2558
2559         # Check whether --enable-crypt or --disable-crypt was given.
2560 if test "${enable_crypt+set}" = set; then
2561   enableval="$enable_crypt"
2562
2563         ol_arg=invalid
2564         for ol_val in auto yes no ; do
2565                 if test "$enableval" = "$ol_val" ; then
2566                         ol_arg="$ol_val"
2567                 fi
2568         done
2569         if test "$ol_arg" = "invalid" ; then
2570                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2571 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2572    { (exit 1); exit 1; }; }
2573         fi
2574         ol_enable_crypt="$ol_arg"
2575
2576 else
2577         ol_enable_crypt=no
2578 fi;
2579 # end --enable-crypt
2580 # OpenLDAP --enable-lmpasswd
2581
2582         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2583 if test "${enable_lmpasswd+set}" = set; then
2584   enableval="$enable_lmpasswd"
2585
2586         ol_arg=invalid
2587         for ol_val in auto yes no ; do
2588                 if test "$enableval" = "$ol_val" ; then
2589                         ol_arg="$ol_val"
2590                 fi
2591         done
2592         if test "$ol_arg" = "invalid" ; then
2593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2594 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2595    { (exit 1); exit 1; }; }
2596         fi
2597         ol_enable_lmpasswd="$ol_arg"
2598
2599 else
2600         ol_enable_lmpasswd=no
2601 fi;
2602 # end --enable-lmpasswd
2603 # OpenLDAP --enable-spasswd
2604
2605         # Check whether --enable-spasswd or --disable-spasswd was given.
2606 if test "${enable_spasswd+set}" = set; then
2607   enableval="$enable_spasswd"
2608
2609         ol_arg=invalid
2610         for ol_val in auto yes no ; do
2611                 if test "$enableval" = "$ol_val" ; then
2612                         ol_arg="$ol_val"
2613                 fi
2614         done
2615         if test "$ol_arg" = "invalid" ; then
2616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2617 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2618    { (exit 1); exit 1; }; }
2619         fi
2620         ol_enable_spasswd="$ol_arg"
2621
2622 else
2623         ol_enable_spasswd=no
2624 fi;
2625 # end --enable-spasswd
2626 # OpenLDAP --enable-modules
2627
2628         # Check whether --enable-modules or --disable-modules was given.
2629 if test "${enable_modules+set}" = set; then
2630   enableval="$enable_modules"
2631
2632         ol_arg=invalid
2633         for ol_val in auto yes no ; do
2634                 if test "$enableval" = "$ol_val" ; then
2635                         ol_arg="$ol_val"
2636                 fi
2637         done
2638         if test "$ol_arg" = "invalid" ; then
2639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2640 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2641    { (exit 1); exit 1; }; }
2642         fi
2643         ol_enable_modules="$ol_arg"
2644
2645 else
2646         ol_enable_modules=no
2647 fi;
2648 # end --enable-modules
2649 ol_enable_multimaster=${ol_enable_multimaster-no}
2650 # OpenLDAP --enable-rewrite
2651
2652         # Check whether --enable-rewrite or --disable-rewrite was given.
2653 if test "${enable_rewrite+set}" = set; then
2654   enableval="$enable_rewrite"
2655
2656         ol_arg=invalid
2657         for ol_val in auto yes no ; do
2658                 if test "$enableval" = "$ol_val" ; then
2659                         ol_arg="$ol_val"
2660                 fi
2661         done
2662         if test "$ol_arg" = "invalid" ; then
2663                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2664 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2665    { (exit 1); exit 1; }; }
2666         fi
2667         ol_enable_rewrite="$ol_arg"
2668
2669 else
2670         ol_enable_rewrite=auto
2671 fi;
2672 # end --enable-rewrite
2673 # OpenLDAP --enable-rlookups
2674
2675         # Check whether --enable-rlookups or --disable-rlookups was given.
2676 if test "${enable_rlookups+set}" = set; then
2677   enableval="$enable_rlookups"
2678
2679         ol_arg=invalid
2680         for ol_val in auto yes no ; do
2681                 if test "$enableval" = "$ol_val" ; then
2682                         ol_arg="$ol_val"
2683                 fi
2684         done
2685         if test "$ol_arg" = "invalid" ; then
2686                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2687 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2688    { (exit 1); exit 1; }; }
2689         fi
2690         ol_enable_rlookups="$ol_arg"
2691
2692 else
2693         ol_enable_rlookups=no
2694 fi;
2695 # end --enable-rlookups
2696 # OpenLDAP --enable-slapi
2697
2698         # Check whether --enable-slapi or --disable-slapi was given.
2699 if test "${enable_slapi+set}" = set; then
2700   enableval="$enable_slapi"
2701
2702         ol_arg=invalid
2703         for ol_val in auto yes no ; do
2704                 if test "$enableval" = "$ol_val" ; then
2705                         ol_arg="$ol_val"
2706                 fi
2707         done
2708         if test "$ol_arg" = "invalid" ; then
2709                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2710 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2711    { (exit 1); exit 1; }; }
2712         fi
2713         ol_enable_slapi="$ol_arg"
2714
2715 else
2716         ol_enable_slapi=no
2717 fi;
2718 # end --enable-slapi
2719 # OpenLDAP --enable-slp
2720
2721         # Check whether --enable-slp or --disable-slp was given.
2722 if test "${enable_slp+set}" = set; then
2723   enableval="$enable_slp"
2724
2725         ol_arg=invalid
2726         for ol_val in auto yes no ; do
2727                 if test "$enableval" = "$ol_val" ; then
2728                         ol_arg="$ol_val"
2729                 fi
2730         done
2731         if test "$ol_arg" = "invalid" ; then
2732                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2733 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2734    { (exit 1); exit 1; }; }
2735         fi
2736         ol_enable_slp="$ol_arg"
2737
2738 else
2739         ol_enable_slp=no
2740 fi;
2741 # end --enable-slp
2742 # OpenLDAP --enable-wrappers
2743
2744         # Check whether --enable-wrappers or --disable-wrappers was given.
2745 if test "${enable_wrappers+set}" = set; then
2746   enableval="$enable_wrappers"
2747
2748         ol_arg=invalid
2749         for ol_val in auto yes no ; do
2750                 if test "$enableval" = "$ol_val" ; then
2751                         ol_arg="$ol_val"
2752                 fi
2753         done
2754         if test "$ol_arg" = "invalid" ; then
2755                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2756 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2757    { (exit 1); exit 1; }; }
2758         fi
2759         ol_enable_wrappers="$ol_arg"
2760
2761 else
2762         ol_enable_wrappers=no
2763 fi;
2764 # end --enable-wrappers
2765
2766 Backends="bdb \
2767         dnssrv \
2768         hdb \
2769         ldap \
2770         ldbm \
2771         meta \
2772         monitor \
2773         null \
2774         passwd \
2775         perl \
2776         relay \
2777         shell \
2778         sql"
2779
2780 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2781 if test "${enable_xxslapbackends+set}" = set; then
2782   enableval="$enable_xxslapbackends"
2783
2784 fi;
2785
2786 # OpenLDAP --enable-backends
2787
2788         # Check whether --enable-backends or --disable-backends was given.
2789 if test "${enable_backends+set}" = set; then
2790   enableval="$enable_backends"
2791
2792         ol_arg=invalid
2793         for ol_val in no yes mod ; do
2794                 if test "$enableval" = "$ol_val" ; then
2795                         ol_arg="$ol_val"
2796                 fi
2797         done
2798         if test "$ol_arg" = "invalid" ; then
2799                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2800 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2801    { (exit 1); exit 1; }; }
2802         fi
2803         ol_enable_backends="$ol_arg"
2804
2805 fi;
2806 # end --enable-backends
2807 # OpenLDAP --enable-bdb
2808
2809         # Check whether --enable-bdb or --disable-bdb was given.
2810 if test "${enable_bdb+set}" = set; then
2811   enableval="$enable_bdb"
2812
2813         ol_arg=invalid
2814         for ol_val in no yes mod ; do
2815                 if test "$enableval" = "$ol_val" ; then
2816                         ol_arg="$ol_val"
2817                 fi
2818         done
2819         if test "$ol_arg" = "invalid" ; then
2820                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2821 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2822    { (exit 1); exit 1; }; }
2823         fi
2824         ol_enable_bdb="$ol_arg"
2825
2826 else
2827         ol_enable_bdb=${ol_enable_backends:-yes}
2828 fi;
2829 # end --enable-bdb
2830 # OpenLDAP --enable-dnssrv
2831
2832         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2833 if test "${enable_dnssrv+set}" = set; then
2834   enableval="$enable_dnssrv"
2835
2836         ol_arg=invalid
2837         for ol_val in no yes mod ; do
2838                 if test "$enableval" = "$ol_val" ; then
2839                         ol_arg="$ol_val"
2840                 fi
2841         done
2842         if test "$ol_arg" = "invalid" ; then
2843                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2844 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2845    { (exit 1); exit 1; }; }
2846         fi
2847         ol_enable_dnssrv="$ol_arg"
2848
2849 else
2850         ol_enable_dnssrv=${ol_enable_backends:-no}
2851 fi;
2852 # end --enable-dnssrv
2853 # OpenLDAP --enable-hdb
2854
2855         # Check whether --enable-hdb or --disable-hdb was given.
2856 if test "${enable_hdb+set}" = set; then
2857   enableval="$enable_hdb"
2858
2859         ol_arg=invalid
2860         for ol_val in no yes mod ; do
2861                 if test "$enableval" = "$ol_val" ; then
2862                         ol_arg="$ol_val"
2863                 fi
2864         done
2865         if test "$ol_arg" = "invalid" ; then
2866                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2867 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2868    { (exit 1); exit 1; }; }
2869         fi
2870         ol_enable_hdb="$ol_arg"
2871
2872 else
2873         ol_enable_hdb=${ol_enable_backends:-yes}
2874 fi;
2875 # end --enable-hdb
2876 # OpenLDAP --enable-ldap
2877
2878         # Check whether --enable-ldap or --disable-ldap was given.
2879 if test "${enable_ldap+set}" = set; then
2880   enableval="$enable_ldap"
2881
2882         ol_arg=invalid
2883         for ol_val in no yes mod ; do
2884                 if test "$enableval" = "$ol_val" ; then
2885                         ol_arg="$ol_val"
2886                 fi
2887         done
2888         if test "$ol_arg" = "invalid" ; then
2889                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2890 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2891    { (exit 1); exit 1; }; }
2892         fi
2893         ol_enable_ldap="$ol_arg"
2894
2895 else
2896         ol_enable_ldap=${ol_enable_backends:-no}
2897 fi;
2898 # end --enable-ldap
2899 # OpenLDAP --enable-ldbm
2900
2901         # Check whether --enable-ldbm or --disable-ldbm was given.
2902 if test "${enable_ldbm+set}" = set; then
2903   enableval="$enable_ldbm"
2904
2905         ol_arg=invalid
2906         for ol_val in no yes mod ; do
2907                 if test "$enableval" = "$ol_val" ; then
2908                         ol_arg="$ol_val"
2909                 fi
2910         done
2911         if test "$ol_arg" = "invalid" ; then
2912                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2913 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2914    { (exit 1); exit 1; }; }
2915         fi
2916         ol_enable_ldbm="$ol_arg"
2917
2918 else
2919         ol_enable_ldbm=${ol_enable_backends:-no}
2920 fi;
2921 # end --enable-ldbm
2922
2923 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2924 if test "${with_ldbm_api+set}" = set; then
2925   withval="$with_ldbm_api"
2926
2927         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2928 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2929         enable_ldbm_api="$with_ldbm_api"
2930 fi;
2931 # OpenLDAP --enable-ldbm_api
2932
2933         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2934 if test "${enable_ldbm_api+set}" = set; then
2935   enableval="$enable_ldbm_api"
2936
2937         ol_arg=invalid
2938         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2939                 if test "$enableval" = "$ol_val" ; then
2940                         ol_arg="$ol_val"
2941                 fi
2942         done
2943         if test "$ol_arg" = "invalid" ; then
2944                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2945 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2946    { (exit 1); exit 1; }; }
2947         fi
2948         ol_enable_ldbm_api="$ol_arg"
2949
2950 else
2951         ol_enable_ldbm_api=auto
2952 fi;
2953 # end --enable-ldbm_api
2954
2955
2956 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2957 if test "${with_ldbm_type+set}" = set; then
2958   withval="$with_ldbm_type"
2959
2960         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2961 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2962         enable_ldbm_type="$with_ldbm_type"
2963 fi;
2964 # OpenLDAP --enable-ldbm_type
2965
2966         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2967 if test "${enable_ldbm_type+set}" = set; then
2968   enableval="$enable_ldbm_type"
2969
2970         ol_arg=invalid
2971         for ol_val in auto btree hash ; do
2972                 if test "$enableval" = "$ol_val" ; then
2973                         ol_arg="$ol_val"
2974                 fi
2975         done
2976         if test "$ol_arg" = "invalid" ; then
2977                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2979    { (exit 1); exit 1; }; }
2980         fi
2981         ol_enable_ldbm_type="$ol_arg"
2982
2983 else
2984         ol_enable_ldbm_type=auto
2985 fi;
2986 # end --enable-ldbm_type
2987
2988 # OpenLDAP --enable-meta
2989
2990         # Check whether --enable-meta or --disable-meta was given.
2991 if test "${enable_meta+set}" = set; then
2992   enableval="$enable_meta"
2993
2994         ol_arg=invalid
2995         for ol_val in no yes mod ; do
2996                 if test "$enableval" = "$ol_val" ; then
2997                         ol_arg="$ol_val"
2998                 fi
2999         done
3000         if test "$ol_arg" = "invalid" ; then
3001                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3002 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3003    { (exit 1); exit 1; }; }
3004         fi
3005         ol_enable_meta="$ol_arg"
3006
3007 else
3008         ol_enable_meta=${ol_enable_backends:-no}
3009 fi;
3010 # end --enable-meta
3011 # OpenLDAP --enable-monitor
3012
3013         # Check whether --enable-monitor or --disable-monitor was given.
3014 if test "${enable_monitor+set}" = set; then
3015   enableval="$enable_monitor"
3016
3017         ol_arg=invalid
3018         for ol_val in no yes mod ; do
3019                 if test "$enableval" = "$ol_val" ; then
3020                         ol_arg="$ol_val"
3021                 fi
3022         done
3023         if test "$ol_arg" = "invalid" ; then
3024                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3025 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3026    { (exit 1); exit 1; }; }
3027         fi
3028         ol_enable_monitor="$ol_arg"
3029
3030 else
3031         ol_enable_monitor=${ol_enable_backends:-yes}
3032 fi;
3033 # end --enable-monitor
3034 # OpenLDAP --enable-null
3035
3036         # Check whether --enable-null or --disable-null was given.
3037 if test "${enable_null+set}" = set; then
3038   enableval="$enable_null"
3039
3040         ol_arg=invalid
3041         for ol_val in no yes mod ; do
3042                 if test "$enableval" = "$ol_val" ; then
3043                         ol_arg="$ol_val"
3044                 fi
3045         done
3046         if test "$ol_arg" = "invalid" ; then
3047                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3048 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3049    { (exit 1); exit 1; }; }
3050         fi
3051         ol_enable_null="$ol_arg"
3052
3053 else
3054         ol_enable_null=${ol_enable_backends:-no}
3055 fi;
3056 # end --enable-null
3057 # OpenLDAP --enable-passwd
3058
3059         # Check whether --enable-passwd or --disable-passwd was given.
3060 if test "${enable_passwd+set}" = set; then
3061   enableval="$enable_passwd"
3062
3063         ol_arg=invalid
3064         for ol_val in no yes mod ; do
3065                 if test "$enableval" = "$ol_val" ; then
3066                         ol_arg="$ol_val"
3067                 fi
3068         done
3069         if test "$ol_arg" = "invalid" ; then
3070                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3071 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3072    { (exit 1); exit 1; }; }
3073         fi
3074         ol_enable_passwd="$ol_arg"
3075
3076 else
3077         ol_enable_passwd=${ol_enable_backends:-no}
3078 fi;
3079 # end --enable-passwd
3080 # OpenLDAP --enable-perl
3081
3082         # Check whether --enable-perl or --disable-perl was given.
3083 if test "${enable_perl+set}" = set; then
3084   enableval="$enable_perl"
3085
3086         ol_arg=invalid
3087         for ol_val in no yes mod ; do
3088                 if test "$enableval" = "$ol_val" ; then
3089                         ol_arg="$ol_val"
3090                 fi
3091         done
3092         if test "$ol_arg" = "invalid" ; then
3093                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3094 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3095    { (exit 1); exit 1; }; }
3096         fi
3097         ol_enable_perl="$ol_arg"
3098
3099 else
3100         ol_enable_perl=${ol_enable_backends:-no}
3101 fi;
3102 # end --enable-perl
3103 # OpenLDAP --enable-relay
3104
3105         # Check whether --enable-relay or --disable-relay was given.
3106 if test "${enable_relay+set}" = set; then
3107   enableval="$enable_relay"
3108
3109         ol_arg=invalid
3110         for ol_val in no yes mod ; do
3111                 if test "$enableval" = "$ol_val" ; then
3112                         ol_arg="$ol_val"
3113                 fi
3114         done
3115         if test "$ol_arg" = "invalid" ; then
3116                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3117 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3118    { (exit 1); exit 1; }; }
3119         fi
3120         ol_enable_relay="$ol_arg"
3121
3122 else
3123         ol_enable_relay=${ol_enable_backends:-yes}
3124 fi;
3125 # end --enable-relay
3126 # OpenLDAP --enable-shell
3127
3128         # Check whether --enable-shell or --disable-shell was given.
3129 if test "${enable_shell+set}" = set; then
3130   enableval="$enable_shell"
3131
3132         ol_arg=invalid
3133         for ol_val in no yes mod ; do
3134                 if test "$enableval" = "$ol_val" ; then
3135                         ol_arg="$ol_val"
3136                 fi
3137         done
3138         if test "$ol_arg" = "invalid" ; then
3139                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3140 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3141    { (exit 1); exit 1; }; }
3142         fi
3143         ol_enable_shell="$ol_arg"
3144
3145 else
3146         ol_enable_shell=${ol_enable_backends:-no}
3147 fi;
3148 # end --enable-shell
3149 # OpenLDAP --enable-sql
3150
3151         # Check whether --enable-sql or --disable-sql was given.
3152 if test "${enable_sql+set}" = set; then
3153   enableval="$enable_sql"
3154
3155         ol_arg=invalid
3156         for ol_val in no yes mod ; do
3157                 if test "$enableval" = "$ol_val" ; then
3158                         ol_arg="$ol_val"
3159                 fi
3160         done
3161         if test "$ol_arg" = "invalid" ; then
3162                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3163 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3164    { (exit 1); exit 1; }; }
3165         fi
3166         ol_enable_sql="$ol_arg"
3167
3168 else
3169         ol_enable_sql=${ol_enable_backends:-no}
3170 fi;
3171 # end --enable-sql
3172
3173 Overlays="accesslog \
3174         denyop \
3175         dyngroup \
3176         dynlist \
3177         glue \
3178         lastmod \
3179         ppolicy \
3180         proxycache \
3181         refint \
3182         retcode \
3183         rwm \
3184         syncprov \
3185         translucent \
3186         unique \
3187         valsort"
3188
3189 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3190 if test "${enable_xxslapoverlays+set}" = set; then
3191   enableval="$enable_xxslapoverlays"
3192
3193 fi;
3194
3195 # OpenLDAP --enable-overlays
3196
3197         # Check whether --enable-overlays or --disable-overlays was given.
3198 if test "${enable_overlays+set}" = set; then
3199   enableval="$enable_overlays"
3200
3201         ol_arg=invalid
3202         for ol_val in no yes mod ; do
3203                 if test "$enableval" = "$ol_val" ; then
3204                         ol_arg="$ol_val"
3205                 fi
3206         done
3207         if test "$ol_arg" = "invalid" ; then
3208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3209 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3210    { (exit 1); exit 1; }; }
3211         fi
3212         ol_enable_overlays="$ol_arg"
3213
3214 fi;
3215 # end --enable-overlays
3216 # OpenLDAP --enable-accesslog
3217
3218         # Check whether --enable-accesslog or --disable-accesslog was given.
3219 if test "${enable_accesslog+set}" = set; then
3220   enableval="$enable_accesslog"
3221
3222         ol_arg=invalid
3223         for ol_val in no yes mod ; do
3224                 if test "$enableval" = "$ol_val" ; then
3225                         ol_arg="$ol_val"
3226                 fi
3227         done
3228         if test "$ol_arg" = "invalid" ; then
3229                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3231    { (exit 1); exit 1; }; }
3232         fi
3233         ol_enable_accesslog="$ol_arg"
3234
3235 else
3236         ol_enable_accesslog=${ol_enable_overlays:-no}
3237 fi;
3238 # end --enable-accesslog
3239
3240 # OpenLDAP --enable-denyop
3241
3242         # Check whether --enable-denyop or --disable-denyop was given.
3243 if test "${enable_denyop+set}" = set; then
3244   enableval="$enable_denyop"
3245
3246         ol_arg=invalid
3247         for ol_val in no yes mod ; do
3248                 if test "$enableval" = "$ol_val" ; then
3249                         ol_arg="$ol_val"
3250                 fi
3251         done
3252         if test "$ol_arg" = "invalid" ; then
3253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3255    { (exit 1); exit 1; }; }
3256         fi
3257         ol_enable_denyop="$ol_arg"
3258
3259 else
3260         ol_enable_denyop=${ol_enable_overlays:-no}
3261 fi;
3262 # end --enable-denyop
3263
3264 # OpenLDAP --enable-dyngroup
3265
3266         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3267 if test "${enable_dyngroup+set}" = set; then
3268   enableval="$enable_dyngroup"
3269
3270         ol_arg=invalid
3271         for ol_val in no yes mod ; do
3272                 if test "$enableval" = "$ol_val" ; then
3273                         ol_arg="$ol_val"
3274                 fi
3275         done
3276         if test "$ol_arg" = "invalid" ; then
3277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3278 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3279    { (exit 1); exit 1; }; }
3280         fi
3281         ol_enable_dyngroup="$ol_arg"
3282
3283 else
3284         ol_enable_dyngroup=${ol_enable_overlays:-no}
3285 fi;
3286 # end --enable-dyngroup
3287
3288 # OpenLDAP --enable-dynlist
3289
3290         # Check whether --enable-dynlist or --disable-dynlist was given.
3291 if test "${enable_dynlist+set}" = set; then
3292   enableval="$enable_dynlist"
3293
3294         ol_arg=invalid
3295         for ol_val in no yes mod ; do
3296                 if test "$enableval" = "$ol_val" ; then
3297                         ol_arg="$ol_val"
3298                 fi
3299         done
3300         if test "$ol_arg" = "invalid" ; then
3301                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3302 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3303    { (exit 1); exit 1; }; }
3304         fi
3305         ol_enable_dynlist="$ol_arg"
3306
3307 else
3308         ol_enable_dynlist=${ol_enable_overlays:-no}
3309 fi;
3310 # end --enable-dynlist
3311
3312 # OpenLDAP --enable-glue
3313
3314         # Check whether --enable-glue or --disable-glue was given.
3315 if test "${enable_glue+set}" = set; then
3316   enableval="$enable_glue"
3317
3318         ol_arg=invalid
3319         for ol_val in no yes mod ; do
3320                 if test "$enableval" = "$ol_val" ; then
3321                         ol_arg="$ol_val"
3322                 fi
3323         done
3324         if test "$ol_arg" = "invalid" ; then
3325                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3326 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3327    { (exit 1); exit 1; }; }
3328         fi
3329         ol_enable_glue="$ol_arg"
3330
3331 else
3332         ol_enable_glue=${ol_enable_overlays:-yes}
3333 fi;
3334 # end --enable-glue
3335
3336 # OpenLDAP --enable-lastmod
3337
3338         # Check whether --enable-lastmod or --disable-lastmod was given.
3339 if test "${enable_lastmod+set}" = set; then
3340   enableval="$enable_lastmod"
3341
3342         ol_arg=invalid
3343         for ol_val in no yes mod ; do
3344                 if test "$enableval" = "$ol_val" ; then
3345                         ol_arg="$ol_val"
3346                 fi
3347         done
3348         if test "$ol_arg" = "invalid" ; then
3349                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3350 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3351    { (exit 1); exit 1; }; }
3352         fi
3353         ol_enable_lastmod="$ol_arg"
3354
3355 else
3356         ol_enable_lastmod=${ol_enable_overlays:-no}
3357 fi;
3358 # end --enable-lastmod
3359
3360 # OpenLDAP --enable-ppolicy
3361
3362         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3363 if test "${enable_ppolicy+set}" = set; then
3364   enableval="$enable_ppolicy"
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-ppolicy" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3375    { (exit 1); exit 1; }; }
3376         fi
3377         ol_enable_ppolicy="$ol_arg"
3378
3379 else
3380         ol_enable_ppolicy=${ol_enable_overlays:-no}
3381 fi;
3382 # end --enable-ppolicy
3383
3384 # OpenLDAP --enable-proxycache
3385
3386         # Check whether --enable-proxycache or --disable-proxycache was given.
3387 if test "${enable_proxycache+set}" = set; then
3388   enableval="$enable_proxycache"
3389
3390         ol_arg=invalid
3391         for ol_val in no yes mod ; do
3392                 if test "$enableval" = "$ol_val" ; then
3393                         ol_arg="$ol_val"
3394                 fi
3395         done
3396         if test "$ol_arg" = "invalid" ; then
3397                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3398 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3399    { (exit 1); exit 1; }; }
3400         fi
3401         ol_enable_proxycache="$ol_arg"
3402
3403 else
3404         ol_enable_proxycache=${ol_enable_overlays:-no}
3405 fi;
3406 # end --enable-proxycache
3407
3408 # OpenLDAP --enable-refint
3409
3410         # Check whether --enable-refint or --disable-refint was given.
3411 if test "${enable_refint+set}" = set; then
3412   enableval="$enable_refint"
3413
3414         ol_arg=invalid
3415         for ol_val in no yes mod ; do
3416                 if test "$enableval" = "$ol_val" ; then
3417                         ol_arg="$ol_val"
3418                 fi
3419         done
3420         if test "$ol_arg" = "invalid" ; then
3421                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3422 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3423    { (exit 1); exit 1; }; }
3424         fi
3425         ol_enable_refint="$ol_arg"
3426
3427 else
3428         ol_enable_refint=${ol_enable_overlays:-no}
3429 fi;
3430 # end --enable-refint
3431
3432 # OpenLDAP --enable-retcode
3433
3434         # Check whether --enable-retcode or --disable-retcode was given.
3435 if test "${enable_retcode+set}" = set; then
3436   enableval="$enable_retcode"
3437
3438         ol_arg=invalid
3439         for ol_val in no yes mod ; do
3440                 if test "$enableval" = "$ol_val" ; then
3441                         ol_arg="$ol_val"
3442                 fi
3443         done
3444         if test "$ol_arg" = "invalid" ; then
3445                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3446 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3447    { (exit 1); exit 1; }; }
3448         fi
3449         ol_enable_retcode="$ol_arg"
3450
3451 else
3452         ol_enable_retcode=${ol_enable_overlays:-no}
3453 fi;
3454 # end --enable-retcode
3455
3456 # OpenLDAP --enable-rwm
3457
3458         # Check whether --enable-rwm or --disable-rwm was given.
3459 if test "${enable_rwm+set}" = set; then
3460   enableval="$enable_rwm"
3461
3462         ol_arg=invalid
3463         for ol_val in no yes mod ; do
3464                 if test "$enableval" = "$ol_val" ; then
3465                         ol_arg="$ol_val"
3466                 fi
3467         done
3468         if test "$ol_arg" = "invalid" ; then
3469                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3470 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3471    { (exit 1); exit 1; }; }
3472         fi
3473         ol_enable_rwm="$ol_arg"
3474
3475 else
3476         ol_enable_rwm=${ol_enable_overlays:-no}
3477 fi;
3478 # end --enable-rwm
3479
3480 # OpenLDAP --enable-syncprov
3481
3482         # Check whether --enable-syncprov or --disable-syncprov was given.
3483 if test "${enable_syncprov+set}" = set; then
3484   enableval="$enable_syncprov"
3485
3486         ol_arg=invalid
3487         for ol_val in no yes mod ; do
3488                 if test "$enableval" = "$ol_val" ; then
3489                         ol_arg="$ol_val"
3490                 fi
3491         done
3492         if test "$ol_arg" = "invalid" ; then
3493                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3494 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3495    { (exit 1); exit 1; }; }
3496         fi
3497         ol_enable_syncprov="$ol_arg"
3498
3499 else
3500         ol_enable_syncprov=${ol_enable_overlays:-yes}
3501 fi;
3502 # end --enable-syncprov
3503
3504 # OpenLDAP --enable-translucent
3505
3506         # Check whether --enable-translucent or --disable-translucent was given.
3507 if test "${enable_translucent+set}" = set; then
3508   enableval="$enable_translucent"
3509
3510         ol_arg=invalid
3511         for ol_val in no yes mod ; do
3512                 if test "$enableval" = "$ol_val" ; then
3513                         ol_arg="$ol_val"
3514                 fi
3515         done
3516         if test "$ol_arg" = "invalid" ; then
3517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3518 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3519    { (exit 1); exit 1; }; }
3520         fi
3521         ol_enable_translucent="$ol_arg"
3522
3523 else
3524         ol_enable_translucent=${ol_enable_overlays:-no}
3525 fi;
3526 # end --enable-translucent
3527
3528 # OpenLDAP --enable-unique
3529
3530         # Check whether --enable-unique or --disable-unique was given.
3531 if test "${enable_unique+set}" = set; then
3532   enableval="$enable_unique"
3533
3534         ol_arg=invalid
3535         for ol_val in no yes mod ; do
3536                 if test "$enableval" = "$ol_val" ; then
3537                         ol_arg="$ol_val"
3538                 fi
3539         done
3540         if test "$ol_arg" = "invalid" ; then
3541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3543    { (exit 1); exit 1; }; }
3544         fi
3545         ol_enable_unique="$ol_arg"
3546
3547 else
3548         ol_enable_unique=${ol_enable_overlays:-no}
3549 fi;
3550 # end --enable-unique
3551
3552 # OpenLDAP --enable-valsort
3553
3554         # Check whether --enable-valsort or --disable-valsort was given.
3555 if test "${enable_valsort+set}" = set; then
3556   enableval="$enable_valsort"
3557
3558         ol_arg=invalid
3559         for ol_val in no yes mod ; do
3560                 if test "$enableval" = "$ol_val" ; then
3561                         ol_arg="$ol_val"
3562                 fi
3563         done
3564         if test "$ol_arg" = "invalid" ; then
3565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3567    { (exit 1); exit 1; }; }
3568         fi
3569         ol_enable_valsort="$ol_arg"
3570
3571 else
3572         ol_enable_valsort=${ol_enable_overlays:-no}
3573 fi;
3574 # end --enable-valsort
3575
3576
3577 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3578 if test "${enable_xxslurpdoptions+set}" = set; then
3579   enableval="$enable_xxslurpdoptions"
3580
3581 fi;
3582 # OpenLDAP --enable-slurpd
3583
3584         # Check whether --enable-slurpd or --disable-slurpd was given.
3585 if test "${enable_slurpd+set}" = set; then
3586   enableval="$enable_slurpd"
3587
3588         ol_arg=invalid
3589         for ol_val in auto yes no ; do
3590                 if test "$enableval" = "$ol_val" ; then
3591                         ol_arg="$ol_val"
3592                 fi
3593         done
3594         if test "$ol_arg" = "invalid" ; then
3595                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3596 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3597    { (exit 1); exit 1; }; }
3598         fi
3599         ol_enable_slurpd="$ol_arg"
3600
3601 else
3602         ol_enable_slurpd=auto
3603 fi;
3604 # end --enable-slurpd
3605
3606 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3607 if test "${enable_xxliboptions+set}" = set; then
3608   enableval="$enable_xxliboptions"
3609
3610 fi;
3611 # Check whether --enable-static or --disable-static was given.
3612 if test "${enable_static+set}" = set; then
3613   enableval="$enable_static"
3614   p=${PACKAGE-default}
3615     case $enableval in
3616     yes) enable_static=yes ;;
3617     no) enable_static=no ;;
3618     *)
3619      enable_static=no
3620       # Look at the argument we got.  We use all the common list separators.
3621       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3622       for pkg in $enableval; do
3623         IFS="$lt_save_ifs"
3624         if test "X$pkg" = "X$p"; then
3625           enable_static=yes
3626         fi
3627       done
3628       IFS="$lt_save_ifs"
3629       ;;
3630     esac
3631 else
3632   enable_static=yes
3633 fi;
3634
3635 # Check whether --enable-shared or --disable-shared was given.
3636 if test "${enable_shared+set}" = set; then
3637   enableval="$enable_shared"
3638   p=${PACKAGE-default}
3639     case $enableval in
3640     yes) enable_shared=yes ;;
3641     no) enable_shared=no ;;
3642     *)
3643       enable_shared=no
3644       # Look at the argument we got.  We use all the common list separators.
3645       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646       for pkg in $enableval; do
3647         IFS="$lt_save_ifs"
3648         if test "X$pkg" = "X$p"; then
3649           enable_shared=yes
3650         fi
3651       done
3652       IFS="$lt_save_ifs"
3653       ;;
3654     esac
3655 else
3656   enable_shared=yes
3657 fi;
3658
3659
3660
3661 # validate options
3662 if test $ol_enable_slapd = no ; then
3663                 if test $ol_enable_slapi = yes ; then
3664                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3666         fi
3667         case "$ol_enable_backends" in yes | mod)
3668                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3670         esac
3671         for i in $Backends; do
3672                 eval "ol_tmp=\$ol_enable_$i"
3673                 if test $ol_tmp != no ; then
3674                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3676                         eval "ol_enable_$i=no"
3677                 fi
3678         done
3679         if test $ol_enable_modules = yes ; then
3680                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3682         fi
3683         if test $ol_enable_multimaster = yes ; then
3684                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3686         fi
3687         if test $ol_enable_wrappers = yes ; then
3688                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3690         fi
3691         if test $ol_enable_rlookups = yes ; then
3692                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3694         fi
3695         if test $ol_enable_aci = yes ; then
3696                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3698         fi
3699         if test $ol_enable_ldbm_api != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3702         fi
3703         if test $ol_enable_ldbm_type != auto ; then
3704                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3705 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3706         fi
3707         if test $ol_enable_slurpd = yes ; then
3708                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3709 echo "$as_me: error: slurpd requires slapd" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         if test $ol_enable_rewrite = yes ; then
3713                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3715         fi
3716                 case "$ol_enable_overlays" in yes | mod)
3717                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3719         esac
3720         for i in $Overlays; do
3721                 eval "ol_tmp=\$ol_enable_$i"
3722                 if test $ol_tmp != no ; then
3723                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3724 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3725                         eval "ol_enable_$i=no"
3726                 fi
3727         done
3728
3729         # force settings to no
3730         ol_enable_slapi=no
3731
3732         ol_enable_backends=
3733         ol_enable_overlays=
3734         ol_enable_modules=no
3735         ol_enable_multimaster=no
3736         ol_enable_rlookups=no
3737         ol_enable_aci=no
3738         ol_enable_wrappers=no
3739
3740         ol_enable_ldbm_api=no
3741         ol_enable_ldbm_type=no
3742
3743         ol_enable_slurpd=no
3744
3745         ol_enable_rewrite=no
3746
3747 elif test $ol_enable_ldbm = no ; then
3748
3749         if test $ol_enable_ldbm_api != auto ; then
3750                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3751 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3752         fi
3753
3754         if test $ol_enable_ldbm_type != auto ; then
3755                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3756 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3757         fi
3758
3759         if test $ol_enable_modules != yes -a \
3760                 $ol_enable_bdb = no -a \
3761                 $ol_enable_dnssrv = no -a \
3762                 $ol_enable_hdb = no -a \
3763                 $ol_enable_ldap = no -a \
3764                 $ol_enable_meta = no -a \
3765                 $ol_enable_monitor = no -a \
3766                 $ol_enable_null = no -a \
3767                 $ol_enable_passwd = no -a \
3768                 $ol_enable_perl = no -a \
3769                 $ol_enable_relay = no -a \
3770                 $ol_enable_shell = no -a \
3771                 $ol_enable_sql = no ; then
3772
3773                 if test $ol_enable_slapd = yes ; then
3774                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3775 echo "$as_me: error: slapd requires a backend" >&2;}
3776    { (exit 1); exit 1; }; }
3777                 else
3778                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3779 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3780                         ol_enable_slapd=no
3781                 fi
3782         fi
3783
3784         ol_enable_ldbm_api=no
3785         ol_enable_ldbm_type=no
3786
3787         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3788                 ol_enable_ldbm_api=berkeley
3789         fi
3790
3791 else
3792                 if test $ol_enable_ldbm_api = gdbm -a \
3793                 $ol_enable_ldbm_type = btree ; then
3794                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3795 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3796    { (exit 1); exit 1; }; }
3797         fi
3798         if test $ol_enable_ldbm_api = mdbm -a \
3799                 $ol_enable_ldbm_type = btree ; then
3800                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3801 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3802    { (exit 1); exit 1; }; }
3803         fi
3804         if test $ol_enable_ldbm_api = ndbm -a \
3805                 $ol_enable_ldbm_type = btree ; then
3806                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3807 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3808    { (exit 1); exit 1; }; }
3809         fi
3810
3811         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3812                 if test $ol_enable_ldbm_api = auto ; then
3813                         ol_enable_ldbm_api=berkeley
3814                 elif test $ol_enable_ldbm_api != berkeley ; then
3815                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3816 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3817    { (exit 1); exit 1; }; }
3818                 fi
3819         fi
3820 fi
3821
3822 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3823         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3824 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3825    { (exit 1); exit 1; }; }
3826 fi
3827
3828 if test $ol_enable_slurpd = yes ; then
3829                 if test $ol_with_threads = no ; then
3830                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3831 echo "$as_me: error: slurpd requires threads" >&2;}
3832    { (exit 1); exit 1; }; }
3833         fi
3834 fi
3835
3836 if test $ol_enable_lmpasswd = yes ; then
3837         if test $ol_with_tls = no ; then
3838                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3839 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3840    { (exit 1); exit 1; }; }
3841         fi
3842 fi
3843
3844 if test $ol_enable_kbind = yes ; then
3845         if test $ol_with_kerberos = no ; then
3846                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3847 echo "$as_me: error: options require --with-kerberos" >&2;}
3848    { (exit 1); exit 1; }; }
3849         elif test $ol_with_kerberos = auto ; then
3850                 ol_with_kerberos=yes
3851         fi
3852
3853 elif test $ol_enable_kbind = no ; then
3854         if test $ol_with_kerberos = auto ; then
3855                 ol_with_kerberos=no
3856         elif test $ol_with_kerberos != no ; then
3857                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3858 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3859                 ol_with_kerberos=no
3860         fi
3861 fi
3862
3863 if test $ol_enable_spasswd = yes ; then
3864         if test $ol_with_cyrus_sasl = no ; then
3865                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3866 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3867    { (exit 1); exit 1; }; }
3868         fi
3869         ol_with_cyrus_sasl=yes
3870 fi
3871
3872 echo "$as_me:$LINENO: result: done" >&5
3873 echo "${ECHO_T}done" >&6
3874
3875 LDAP_LIBS=
3876 LDBM_LIBS=
3877 LTHREAD_LIBS=
3878 LUTIL_LIBS=
3879
3880 SLAPD_LIBS=
3881 SLURPD_LIBS=
3882
3883 BUILD_SLAPD=no
3884 BUILD_SLURPD=no
3885
3886 BUILD_THREAD=no
3887
3888 BUILD_SLAPI=no
3889 SLAPD_SLAPI_DEPEND=
3890
3891 BUILD_BDB=no
3892 BUILD_DNSSRV=no
3893 BUILD_HDB=no
3894 BUILD_LDAP=no
3895 BUILD_LDBM=no
3896 BUILD_META=no
3897 BUILD_MONITOR=no
3898 BUILD_NULL=no
3899 BUILD_PASSWD=no
3900 BUILD_PERL=no
3901 BUILD_RELAY=no
3902 BUILD_SHELL=no
3903 BUILD_SQL=no
3904
3905 BUILD_ACCESSLOG=no
3906 BUILD_DENYOP=no
3907 BUILD_DYNGROUP=no
3908 BUILD_DYNLIST=no
3909 BUILD_GLUE=no
3910 BUILD_LASTMOD=no
3911 BUILD_PPOLICY=no
3912 BUILD_PROXYCACHE=no
3913 BUILD_REFINT=no
3914 BUILD_RETCODE=no
3915 BUILD_RWM=no
3916 BUILD_SYNCPROV=no
3917 BUILD_TRANSLUCENT=no
3918 BUILD_UNIQUE=no
3919 BUILD_VALSORT=no
3920
3921 SLAPD_STATIC_OVERLAYS=
3922 SLAPD_DYNAMIC_OVERLAYS=
3923
3924 SLAPD_MODULES_LDFLAGS=
3925 SLAPD_MODULES_CPPFLAGS=
3926
3927 SLAPD_STATIC_BACKENDS=back-ldif
3928 SLAPD_DYNAMIC_BACKENDS=
3929
3930 SLAPD_PERL_LDFLAGS=
3931 MOD_PERL_LDFLAGS=
3932 PERL_CPPFLAGS=
3933
3934 SLAPD_SQL_LDFLAGS=
3935 SLAPD_SQL_LIBS=
3936 SLAPD_SQL_INCLUDES=
3937
3938 KRB4_LIBS=
3939 KRB5_LIBS=
3940 SASL_LIBS=
3941 TLS_LIBS=
3942 MODULES_LIBS=
3943 SLAPI_LIBS=
3944 LIBSLAPI=
3945 LIBSLAPITOOLS=
3946 AUTH_LIBS=
3947
3948 SLAPD_SLP_LIBS=
3949 SLAPD_GMP_LIBS=
3950
3951
3952
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_MKVERSION 1
3955 _ACEOF
3956
3957
3958
3959
3960 ol_aix_threads=no
3961 case "$target" in
3962 *-*-aix*)       if test -z "$CC" ; then
3963                 case "$ol_with_threads" in
3964                 auto | yes |  posix) ol_aix_threads=yes ;;
3965                 esac
3966         fi
3967 ;;
3968 esac
3969
3970 if test $ol_aix_threads = yes ; then
3971         if test -z "${CC}" ; then
3972                 for ac_prog in cc_r xlc_r cc
3973 do
3974   # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978 if test "${ac_cv_prog_CC+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   if test -n "$CC"; then
3982   ac_cv_prog_CC="$CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989   for ac_exec_ext in '' $ac_executable_extensions; do
3990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991     ac_cv_prog_CC="$ac_prog"
3992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993     break 2
3994   fi
3995 done
3996 done
3997
3998 fi
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002   echo "$as_me:$LINENO: result: $CC" >&5
4003 echo "${ECHO_T}$CC" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009   test -n "$CC" && break
4010 done
4011
4012
4013                 if test "$CC" = cc ; then
4014                                                 if test $ol_with_threads != auto ; then
4015                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4016 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4017    { (exit 1); exit 1; }; }
4018                         else
4019                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4020 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4021                         fi
4022                         ol_with_threads=no
4023                 fi
4024         fi
4025
4026         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
4027                 ol_with_threads=posix
4028                 ol_cv_pthread_create=yes
4029         fi
4030 fi
4031
4032 if test -z "${CC}"; then
4033         for ac_prog in cc gcc
4034 do
4035   # Extract the first word of "$ac_prog", so it can be a program name with args.
4036 set dummy $ac_prog; ac_word=$2
4037 echo "$as_me:$LINENO: checking for $ac_word" >&5
4038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4039 if test "${ac_cv_prog_CC+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   if test -n "$CC"; then
4043   ac_cv_prog_CC="$CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4047 do
4048   IFS=$as_save_IFS
4049   test -z "$as_dir" && as_dir=.
4050   for ac_exec_ext in '' $ac_executable_extensions; do
4051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052     ac_cv_prog_CC="$ac_prog"
4053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054     break 2
4055   fi
4056 done
4057 done
4058
4059 fi
4060 fi
4061 CC=$ac_cv_prog_CC
4062 if test -n "$CC"; then
4063   echo "$as_me:$LINENO: result: $CC" >&5
4064 echo "${ECHO_T}$CC" >&6
4065 else
4066   echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069
4070   test -n "$CC" && break
4071 done
4072 test -n "$CC" || CC="missing"
4073
4074
4075         if test "${CC}" = "missing" ; then
4076                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4077 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4078    { (exit 1); exit 1; }; }
4079         fi
4080 fi
4081
4082 if test -z "${AR}"; then
4083         for ac_prog in ar gar
4084 do
4085   # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_AR+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$AR"; then
4093   ac_cv_prog_AR="$AR" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100   for ac_exec_ext in '' $ac_executable_extensions; do
4101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102     ac_cv_prog_AR="$ac_prog"
4103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107 done
4108
4109 fi
4110 fi
4111 AR=$ac_cv_prog_AR
4112 if test -n "$AR"; then
4113   echo "$as_me:$LINENO: result: $AR" >&5
4114 echo "${ECHO_T}$AR" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119
4120   test -n "$AR" && break
4121 done
4122 test -n "$AR" || AR="missing"
4123
4124
4125         if test "${AR}" = "missing" ; then
4126                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4127 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4128    { (exit 1); exit 1; }; }
4129         fi
4130 fi
4131
4132
4133
4134
4135
4136 # Check whether --enable-fast-install or --disable-fast-install was given.
4137 if test "${enable_fast_install+set}" = set; then
4138   enableval="$enable_fast_install"
4139   p=${PACKAGE-default}
4140     case $enableval in
4141     yes) enable_fast_install=yes ;;
4142     no) enable_fast_install=no ;;
4143     *)
4144       enable_fast_install=no
4145       # Look at the argument we got.  We use all the common list separators.
4146       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4147       for pkg in $enableval; do
4148         IFS="$lt_save_ifs"
4149         if test "X$pkg" = "X$p"; then
4150           enable_fast_install=yes
4151         fi
4152       done
4153       IFS="$lt_save_ifs"
4154       ;;
4155     esac
4156 else
4157   enable_fast_install=yes
4158 fi;
4159
4160 DEPDIR="${am__leading_dot}deps"
4161
4162           ac_config_commands="$ac_config_commands depfiles"
4163
4164
4165 am_make=${MAKE-make}
4166 cat > confinc << 'END'
4167 am__doit:
4168         @echo done
4169 .PHONY: am__doit
4170 END
4171 # If we don't find an include directive, just comment out the code.
4172 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4173 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4174 am__include="#"
4175 am__quote=
4176 _am_result=none
4177 # First try GNU make style include.
4178 echo "include confinc" > confmf
4179 # We grep out `Entering directory' and `Leaving directory'
4180 # messages which can occur if `w' ends up in MAKEFLAGS.
4181 # In particular we don't look at `^make:' because GNU make might
4182 # be invoked under some other name (usually "gmake"), in which
4183 # case it prints its new name instead of `make'.
4184 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4185    am__include=include
4186    am__quote=
4187    _am_result=GNU
4188 fi
4189 # Now try BSD make style include.
4190 if test "$am__include" = "#"; then
4191    echo '.include "confinc"' > confmf
4192    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4193       am__include=.include
4194       am__quote="\""
4195       _am_result=BSD
4196    fi
4197 fi
4198
4199
4200 echo "$as_me:$LINENO: result: $_am_result" >&5
4201 echo "${ECHO_T}$_am_result" >&6
4202 rm -f confinc confmf
4203
4204 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4205 if test "${enable_dependency_tracking+set}" = set; then
4206   enableval="$enable_dependency_tracking"
4207
4208 fi;
4209 if test "x$enable_dependency_tracking" != xno; then
4210   am_depcomp="$ac_aux_dir/depcomp"
4211   AMDEPBACKSLASH='\'
4212 fi
4213
4214
4215 if test "x$enable_dependency_tracking" != xno; then
4216   AMDEP_TRUE=
4217   AMDEP_FALSE='#'
4218 else
4219   AMDEP_TRUE='#'
4220   AMDEP_FALSE=
4221 fi
4222
4223
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 if test -n "$ac_tool_prefix"; then
4231   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_CC+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   if test -n "$CC"; then
4239   ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246   for ac_exec_ext in '' $ac_executable_extensions; do
4247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250     break 2
4251   fi
4252 done
4253 done
4254
4255 fi
4256 fi
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259   echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6
4261 else
4262   echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266 fi
4267 if test -z "$ac_cv_prog_CC"; then
4268   ac_ct_CC=$CC
4269   # Extract the first word of "gcc", so it can be a program name with args.
4270 set dummy gcc; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   if test -n "$ac_ct_CC"; then
4277   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_prog_ac_ct_CC="gcc"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293 fi
4294 fi
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4298 echo "${ECHO_T}$ac_ct_CC" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   CC=$ac_ct_CC
4305 else
4306   CC="$ac_cv_prog_CC"
4307 fi
4308
4309 if test -z "$CC"; then
4310   if test -n "$ac_tool_prefix"; then
4311   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4312 set dummy ${ac_tool_prefix}cc; ac_word=$2
4313 echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315 if test "${ac_cv_prog_CC+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   if test -n "$CC"; then
4319   ac_cv_prog_CC="$CC" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328     ac_cv_prog_CC="${ac_tool_prefix}cc"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334
4335 fi
4336 fi
4337 CC=$ac_cv_prog_CC
4338 if test -n "$CC"; then
4339   echo "$as_me:$LINENO: result: $CC" >&5
4340 echo "${ECHO_T}$CC" >&6
4341 else
4342   echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4344 fi
4345
4346 fi
4347 if test -z "$ac_cv_prog_CC"; then
4348   ac_ct_CC=$CC
4349   # Extract the first word of "cc", so it can be a program name with args.
4350 set dummy cc; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356   if test -n "$ac_ct_CC"; then
4357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364   for ac_exec_ext in '' $ac_executable_extensions; do
4365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366     ac_cv_prog_ac_ct_CC="cc"
4367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369   fi
4370 done
4371 done
4372
4373 fi
4374 fi
4375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376 if test -n "$ac_ct_CC"; then
4377   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4378 echo "${ECHO_T}$ac_ct_CC" >&6
4379 else
4380   echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4382 fi
4383
4384   CC=$ac_ct_CC
4385 else
4386   CC="$ac_cv_prog_CC"
4387 fi
4388
4389 fi
4390 if test -z "$CC"; then
4391   # Extract the first word of "cc", so it can be a program name with args.
4392 set dummy cc; ac_word=$2
4393 echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4395 if test "${ac_cv_prog_CC+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   if test -n "$CC"; then
4399   ac_cv_prog_CC="$CC" # Let the user override the test.
4400 else
4401   ac_prog_rejected=no
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4410        ac_prog_rejected=yes
4411        continue
4412      fi
4413     ac_cv_prog_CC="cc"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419
4420 if test $ac_prog_rejected = yes; then
4421   # We found a bogon in the path, so make sure we never use it.
4422   set dummy $ac_cv_prog_CC
4423   shift
4424   if test $# != 0; then
4425     # We chose a different compiler from the bogus one.
4426     # However, it has the same basename, so the bogon will be chosen
4427     # first if we set CC to just the basename; use the full file name.
4428     shift
4429     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4430   fi
4431 fi
4432 fi
4433 fi
4434 CC=$ac_cv_prog_CC
4435 if test -n "$CC"; then
4436   echo "$as_me:$LINENO: result: $CC" >&5
4437 echo "${ECHO_T}$CC" >&6
4438 else
4439   echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443 fi
4444 if test -z "$CC"; then
4445   if test -n "$ac_tool_prefix"; then
4446   for ac_prog in cl
4447   do
4448     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_prog_CC+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   if test -n "$CC"; then
4456   ac_cv_prog_CC="$CC" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463   for ac_exec_ext in '' $ac_executable_extensions; do
4464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470 done
4471
4472 fi
4473 fi
4474 CC=$ac_cv_prog_CC
4475 if test -n "$CC"; then
4476   echo "$as_me:$LINENO: result: $CC" >&5
4477 echo "${ECHO_T}$CC" >&6
4478 else
4479   echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4481 fi
4482
4483     test -n "$CC" && break
4484   done
4485 fi
4486 if test -z "$CC"; then
4487   ac_ct_CC=$CC
4488   for ac_prog in cl
4489 do
4490   # Extract the first word of "$ac_prog", so it can be a program name with args.
4491 set dummy $ac_prog; ac_word=$2
4492 echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   if test -n "$ac_ct_CC"; then
4498   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505   for ac_exec_ext in '' $ac_executable_extensions; do
4506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507     ac_cv_prog_ac_ct_CC="$ac_prog"
4508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513
4514 fi
4515 fi
4516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4517 if test -n "$ac_ct_CC"; then
4518   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4519 echo "${ECHO_T}$ac_ct_CC" >&6
4520 else
4521   echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6
4523 fi
4524
4525   test -n "$ac_ct_CC" && break
4526 done
4527
4528   CC=$ac_ct_CC
4529 fi
4530
4531 fi
4532
4533
4534 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4535 See \`config.log' for more details." >&5
4536 echo "$as_me: error: no acceptable C compiler found in \$PATH
4537 See \`config.log' for more details." >&2;}
4538    { (exit 1); exit 1; }; }
4539
4540 # Provide some information about the compiler.
4541 echo "$as_me:$LINENO:" \
4542      "checking for C compiler version" >&5
4543 ac_compiler=`set X $ac_compile; echo $2`
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4545   (eval $ac_compiler --version </dev/null >&5) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4550   (eval $ac_compiler -v </dev/null >&5) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }
4554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4555   (eval $ac_compiler -V </dev/null >&5) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }
4559
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 ac_clean_files_save=$ac_clean_files
4576 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4577 # Try to create an executable without -o first, disregard a.out.
4578 # It will help us diagnose broken compilers, and finding out an intuition
4579 # of exeext.
4580 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4581 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4582 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4583 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4584   (eval $ac_link_default) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; then
4588   # Find the output, starting from the most likely.  This scheme is
4589 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4590 # resort.
4591
4592 # Be careful to initialize this variable, since it used to be cached.
4593 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4594 ac_cv_exeext=
4595 # b.out is created by i960 compilers.
4596 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4597 do
4598   test -f "$ac_file" || continue
4599   case $ac_file in
4600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4601         ;;
4602     conftest.$ac_ext )
4603         # This is the source file.
4604         ;;
4605     [ab].out )
4606         # We found the default executable, but exeext='' is most
4607         # certainly right.
4608         break;;
4609     *.* )
4610         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4611         # FIXME: I believe we export ac_cv_exeext for Libtool,
4612         # but it would be cool to find out if it's true.  Does anybody
4613         # maintain Libtool? --akim.
4614         export ac_cv_exeext
4615         break;;
4616     * )
4617         break;;
4618   esac
4619 done
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4625 See \`config.log' for more details." >&5
4626 echo "$as_me: error: C compiler cannot create executables
4627 See \`config.log' for more details." >&2;}
4628    { (exit 77); exit 77; }; }
4629 fi
4630
4631 ac_exeext=$ac_cv_exeext
4632 echo "$as_me:$LINENO: result: $ac_file" >&5
4633 echo "${ECHO_T}$ac_file" >&6
4634
4635 # Check the compiler produces executables we can run.  If not, either
4636 # the compiler is broken, or we cross compile.
4637 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4638 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4639 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4640 # If not cross compiling, check that we can run a simple program.
4641 if test "$cross_compiling" != yes; then
4642   if { ac_try='./$ac_file'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648     cross_compiling=no
4649   else
4650     if test "$cross_compiling" = maybe; then
4651         cross_compiling=yes
4652     else
4653         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4654 If you meant to cross compile, use \`--host'.
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot run C compiled programs.
4657 If you meant to cross compile, use \`--host'.
4658 See \`config.log' for more details." >&2;}
4659    { (exit 1); exit 1; }; }
4660     fi
4661   fi
4662 fi
4663 echo "$as_me:$LINENO: result: yes" >&5
4664 echo "${ECHO_T}yes" >&6
4665
4666 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4667 ac_clean_files=$ac_clean_files_save
4668 # Check the compiler produces executables we can run.  If not, either
4669 # the compiler is broken, or we cross compile.
4670 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4671 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4672 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4673 echo "${ECHO_T}$cross_compiling" >&6
4674
4675 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4676 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678   (eval $ac_link) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; then
4682   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4683 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4684 # work properly (i.e., refer to `conftest.exe'), while it won't with
4685 # `rm'.
4686 for ac_file in conftest.exe conftest conftest.*; do
4687   test -f "$ac_file" || continue
4688   case $ac_file in
4689     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4690     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4691           export ac_cv_exeext
4692           break;;
4693     * ) break;;
4694   esac
4695 done
4696 else
4697   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4700 See \`config.log' for more details." >&2;}
4701    { (exit 1); exit 1; }; }
4702 fi
4703
4704 rm -f conftest$ac_cv_exeext
4705 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4706 echo "${ECHO_T}$ac_cv_exeext" >&6
4707
4708 rm -f conftest.$ac_ext
4709 EXEEXT=$ac_cv_exeext
4710 ac_exeext=$EXEEXT
4711 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4712 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4713 if test "${ac_cv_objext+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722
4723 int
4724 main ()
4725 {
4726
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.o conftest.obj
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733   (eval $ac_compile) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; then
4737   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4738   case $ac_file in
4739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4740     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4741        break;;
4742   esac
4743 done
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4751 See \`config.log' for more details." >&2;}
4752    { (exit 1); exit 1; }; }
4753 fi
4754
4755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4756 fi
4757 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4758 echo "${ECHO_T}$ac_cv_objext" >&6
4759 OBJEXT=$ac_cv_objext
4760 ac_objext=$OBJEXT
4761 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772
4773 int
4774 main ()
4775 {
4776 #ifndef __GNUC__
4777        choke me
4778 #endif
4779
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786   (eval $ac_compile) 2>conftest.er1
4787   ac_status=$?
4788   grep -v '^ *+' conftest.er1 >conftest.err
4789   rm -f conftest.er1
4790   cat conftest.err >&5
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); } &&
4793          { ac_try='test -z "$ac_c_werror_flag"
4794                          || test ! -s conftest.err'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; } &&
4800          { ac_try='test -s conftest.$ac_objext'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; }; then
4806   ac_compiler_gnu=yes
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 ac_compiler_gnu=no
4812 fi
4813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4815
4816 fi
4817 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4819 GCC=`test $ac_compiler_gnu = yes && echo yes`
4820 ac_test_CFLAGS=${CFLAGS+set}
4821 ac_save_CFLAGS=$CFLAGS
4822 CFLAGS="-g"
4823 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4824 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4825 if test "${ac_cv_prog_cc_g+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834
4835 int
4836 main ()
4837 {
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845   (eval $ac_compile) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } &&
4852          { ac_try='test -z "$ac_c_werror_flag"
4853                          || test ! -s conftest.err'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; } &&
4859          { ac_try='test -s conftest.$ac_objext'
4860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861   (eval $ac_try) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; }; then
4865   ac_cv_prog_cc_g=yes
4866 else
4867   echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 ac_cv_prog_cc_g=no
4871 fi
4872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi
4874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4875 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4876 if test "$ac_test_CFLAGS" = set; then
4877   CFLAGS=$ac_save_CFLAGS
4878 elif test $ac_cv_prog_cc_g = yes; then
4879   if test "$GCC" = yes; then
4880     CFLAGS="-g -O2"
4881   else
4882     CFLAGS="-g"
4883   fi
4884 else
4885   if test "$GCC" = yes; then
4886     CFLAGS="-O2"
4887   else
4888     CFLAGS=
4889   fi
4890 fi
4891 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4892 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4893 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   ac_cv_prog_cc_stdc=no
4897 ac_save_CC=$CC
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #include <stdarg.h>
4905 #include <stdio.h>
4906 #include <sys/types.h>
4907 #include <sys/stat.h>
4908 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4909 struct buf { int x; };
4910 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4911 static char *e (p, i)
4912      char **p;
4913      int i;
4914 {
4915   return p[i];
4916 }
4917 static char *f (char * (*g) (char **, int), char **p, ...)
4918 {
4919   char *s;
4920   va_list v;
4921   va_start (v,p);
4922   s = g (p, va_arg (v,int));
4923   va_end (v);
4924   return s;
4925 }
4926
4927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4928    function prototypes and stuff, but not '\xHH' hex character constants.
4929    These don't provoke an error unfortunately, instead are silently treated
4930    as 'x'.  The following induces an error, until -std1 is added to get
4931    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4932    array size at least.  It's necessary to write '\x00'==0 to get something
4933    that's true only with -std1.  */
4934 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4935
4936 int test (int i, double x);
4937 struct s1 {int (*f) (int a);};
4938 struct s2 {int (*f) (double a);};
4939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4940 int argc;
4941 char **argv;
4942 int
4943 main ()
4944 {
4945 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 # Don't try gcc -ansi; that turns off useful extensions and
4951 # breaks some systems' header files.
4952 # AIX                   -qlanglvl=ansi
4953 # Ultrix and OSF/1      -std1
4954 # HP-UX 10.20 and later -Ae
4955 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4956 # SVR4                  -Xc -D__EXTENSIONS__
4957 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4958 do
4959   CC="$ac_save_CC $ac_arg"
4960   rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_cv_prog_cc_stdc=$ac_arg
4983 break
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 fi
4989 rm -f conftest.err conftest.$ac_objext
4990 done
4991 rm -f conftest.$ac_ext conftest.$ac_objext
4992 CC=$ac_save_CC
4993
4994 fi
4995
4996 case "x$ac_cv_prog_cc_stdc" in
4997   x|xno)
4998     echo "$as_me:$LINENO: result: none needed" >&5
4999 echo "${ECHO_T}none needed" >&6 ;;
5000   *)
5001     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5002 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5003     CC="$CC $ac_cv_prog_cc_stdc" ;;
5004 esac
5005
5006 # Some people use a C++ compiler to compile C.  Since we use `exit',
5007 # in C++ we need to declare it.  In case someone uses the same compiler
5008 # for both compiling C and C++ we need to have the C++ compiler decide
5009 # the declaration of exit, since it's the most demanding environment.
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #ifndef __cplusplus
5012   choke me
5013 #endif
5014 _ACEOF
5015 rm -f conftest.$ac_objext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5017   (eval $ac_compile) 2>conftest.er1
5018   ac_status=$?
5019   grep -v '^ *+' conftest.er1 >conftest.err
5020   rm -f conftest.er1
5021   cat conftest.err >&5
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } &&
5024          { ac_try='test -z "$ac_c_werror_flag"
5025                          || test ! -s conftest.err'
5026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027   (eval $ac_try) 2>&5
5028   ac_status=$?
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); }; } &&
5031          { ac_try='test -s conftest.$ac_objext'
5032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033   (eval $ac_try) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; }; then
5037   for ac_declaration in \
5038    '' \
5039    'extern "C" void std::exit (int) throw (); using std::exit;' \
5040    'extern "C" void std::exit (int); using std::exit;' \
5041    'extern "C" void exit (int) throw ();' \
5042    'extern "C" void exit (int);' \
5043    'void exit (int);'
5044 do
5045   cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 $ac_declaration
5052 #include <stdlib.h>
5053 int
5054 main ()
5055 {
5056 exit (42);
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063   (eval $ac_compile) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } &&
5070          { ac_try='test -z "$ac_c_werror_flag"
5071                          || test ! -s conftest.err'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; } &&
5077          { ac_try='test -s conftest.$ac_objext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   :
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 continue
5089 fi
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091   cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 $ac_declaration
5098 int
5099 main ()
5100 {
5101 exit (42);
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108   (eval $ac_compile) 2>conftest.er1
5109   ac_status=$?
5110   grep -v '^ *+' conftest.er1 >conftest.err
5111   rm -f conftest.er1
5112   cat conftest.err >&5
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } &&
5115          { ac_try='test -z "$ac_c_werror_flag"
5116                          || test ! -s conftest.err'
5117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118   (eval $ac_try) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }; } &&
5122          { ac_try='test -s conftest.$ac_objext'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   break
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 fi
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135 done
5136 rm -f conftest*
5137 if test -n "$ac_declaration"; then
5138   echo '#ifdef __cplusplus' >>confdefs.h
5139   echo $ac_declaration      >>confdefs.h
5140   echo '#endif'             >>confdefs.h
5141 fi
5142
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 fi
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 ac_ext=c
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154
5155 depcc="$CC"   am_compiler_list=
5156
5157 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5158 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5163   # We make a subdir and do the tests there.  Otherwise we can end up
5164   # making bogus files that we don't know about and never remove.  For
5165   # instance it was reported that on HP-UX the gcc test will end up
5166   # making a dummy file named `D' -- because `-MD' means `put the output
5167   # in D'.
5168   mkdir conftest.dir
5169   # Copy depcomp to subdir because otherwise we won't find it if we're
5170   # using a relative directory.
5171   cp "$am_depcomp" conftest.dir
5172   cd conftest.dir
5173   # We will build objects and dependencies in a subdirectory because
5174   # it helps to detect inapplicable dependency modes.  For instance
5175   # both Tru64's cc and ICC support -MD to output dependencies as a
5176   # side effect of compilation, but ICC will put the dependencies in
5177   # the current directory while Tru64 will put them in the object
5178   # directory.
5179   mkdir sub
5180
5181   am_cv_CC_dependencies_compiler_type=none
5182   if test "$am_compiler_list" = ""; then
5183      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5184   fi
5185   for depmode in $am_compiler_list; do
5186     # Setup a source with many dependencies, because some compilers
5187     # like to wrap large dependency lists on column 80 (with \), and
5188     # we should not choose a depcomp mode which is confused by this.
5189     #
5190     # We need to recreate these files for each test, as the compiler may
5191     # overwrite some of them when testing with obscure command lines.
5192     # This happens at least with the AIX C compiler.
5193     : > sub/conftest.c
5194     for i in 1 2 3 4 5 6; do
5195       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5197       # Solaris 8's {/usr,}/bin/sh.
5198       touch sub/conftst$i.h
5199     done
5200     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202     case $depmode in
5203     nosideeffect)
5204       # after this tag, mechanisms are not by side-effect, so they'll
5205       # only be used when explicitly requested
5206       if test "x$enable_dependency_tracking" = xyes; then
5207         continue
5208       else
5209         break
5210       fi
5211       ;;
5212     none) break ;;
5213     esac
5214     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5215     # mode.  It turns out that the SunPro C++ compiler does not properly
5216     # handle `-M -o', and we need to detect this.
5217     if depmode=$depmode \
5218        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5219        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5220        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5221          >/dev/null 2>conftest.err &&
5222        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5223        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5224        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5225       # icc doesn't choke on unknown options, it will just issue warnings
5226       # or remarks (even with -Werror).  So we grep stderr for any message
5227       # that says an option was ignored or not supported.
5228       # When given -MP, icc 7.0 and 7.1 complain thusly:
5229       #   icc: Command line warning: ignoring option '-M'; no argument required
5230       # The diagnosis changed in icc 8.0:
5231       #   icc: Command line remark: option '-MP' not supported
5232       if (grep 'ignoring option' conftest.err ||
5233           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5234         am_cv_CC_dependencies_compiler_type=$depmode
5235         break
5236       fi
5237     fi
5238   done
5239
5240   cd ..
5241   rm -rf conftest.dir
5242 else
5243   am_cv_CC_dependencies_compiler_type=none
5244 fi
5245
5246 fi
5247 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5248 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5250
5251
5252
5253 if
5254   test "x$enable_dependency_tracking" != xno \
5255   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5256   am__fastdepCC_TRUE=
5257   am__fastdepCC_FALSE='#'
5258 else
5259   am__fastdepCC_TRUE='#'
5260   am__fastdepCC_FALSE=
5261 fi
5262
5263
5264 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5265 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5266 if test "${lt_cv_path_SED+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   # Loop through the user's path and test for sed and gsed.
5270 # Then use that list of sed's as ones to test for truncation.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for lt_ac_prog in sed gsed; do
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5279         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5280       fi
5281     done
5282   done
5283 done
5284 lt_ac_max=0
5285 lt_ac_count=0
5286 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5287 # along with /bin/sed that truncates output.
5288 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5289   test ! -f $lt_ac_sed && continue
5290   cat /dev/null > conftest.in
5291   lt_ac_count=0
5292   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5293   # Check for GNU sed and select it if it is found.
5294   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5295     lt_cv_path_SED=$lt_ac_sed
5296     break
5297   fi
5298   while true; do
5299     cat conftest.in conftest.in >conftest.tmp
5300     mv conftest.tmp conftest.in
5301     cp conftest.in conftest.nl
5302     echo >>conftest.nl
5303     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5304     cmp -s conftest.out conftest.nl || break
5305     # 10000 chars as input seems more than enough
5306     test $lt_ac_count -gt 10 && break
5307     lt_ac_count=`expr $lt_ac_count + 1`
5308     if test $lt_ac_count -gt $lt_ac_max; then
5309       lt_ac_max=$lt_ac_count
5310       lt_cv_path_SED=$lt_ac_sed
5311     fi
5312   done
5313 done
5314
5315 fi
5316
5317 SED=$lt_cv_path_SED
5318 echo "$as_me:$LINENO: result: $SED" >&5
5319 echo "${ECHO_T}$SED" >&6
5320
5321 echo "$as_me:$LINENO: checking for egrep" >&5
5322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5323 if test "${ac_cv_prog_egrep+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5327     then ac_cv_prog_egrep='grep -E'
5328     else ac_cv_prog_egrep='egrep'
5329     fi
5330 fi
5331 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5332 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5333  EGREP=$ac_cv_prog_egrep
5334
5335
5336
5337 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5338 if test "${with_gnu_ld+set}" = set; then
5339   withval="$with_gnu_ld"
5340   test "$withval" = no || with_gnu_ld=yes
5341 else
5342   with_gnu_ld=no
5343 fi;
5344 ac_prog=ld
5345 if test "$GCC" = yes; then
5346   # Check if gcc -print-prog-name=ld gives a path.
5347   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5348 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5349   case $host in
5350   *-*-mingw*)
5351     # gcc leaves a trailing carriage return which upsets mingw
5352     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5353   *)
5354     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5355   esac
5356   case $ac_prog in
5357     # Accept absolute paths.
5358     [\\/]* | ?:[\\/]*)
5359       re_direlt='/[^/][^/]*/\.\./'
5360       # Canonicalize the pathname of ld
5361       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5362       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5363         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5364       done
5365       test -z "$LD" && LD="$ac_prog"
5366       ;;
5367   "")
5368     # If it fails, then pretend we aren't using GCC.
5369     ac_prog=ld
5370     ;;
5371   *)
5372     # If it is relative, then search for the first ld in PATH.
5373     with_gnu_ld=unknown
5374     ;;
5375   esac
5376 elif test "$with_gnu_ld" = yes; then
5377   echo "$as_me:$LINENO: checking for GNU ld" >&5
5378 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5379 else
5380   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5381 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5382 fi
5383 if test "${lt_cv_path_LD+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   if test -z "$LD"; then
5387   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5388   for ac_dir in $PATH; do
5389     IFS="$lt_save_ifs"
5390     test -z "$ac_dir" && ac_dir=.
5391     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5392       lt_cv_path_LD="$ac_dir/$ac_prog"
5393       # Check to see if the program is GNU ld.  I'd rather use --version,
5394       # but apparently some GNU ld's only accept -v.
5395       # Break only if it was the GNU/non-GNU ld that we prefer.
5396       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5397       *GNU* | *'with BFD'*)
5398         test "$with_gnu_ld" != no && break
5399         ;;
5400       *)
5401         test "$with_gnu_ld" != yes && break
5402         ;;
5403       esac
5404     fi
5405   done
5406   IFS="$lt_save_ifs"
5407 else
5408   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5409 fi
5410 fi
5411
5412 LD="$lt_cv_path_LD"
5413 if test -n "$LD"; then
5414   echo "$as_me:$LINENO: result: $LD" >&5
5415 echo "${ECHO_T}$LD" >&6
5416 else
5417   echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5419 fi
5420 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5421 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5422    { (exit 1); exit 1; }; }
5423 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5424 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5425 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5429 case `$LD -v 2>&1 </dev/null` in
5430 *GNU* | *'with BFD'*)
5431   lt_cv_prog_gnu_ld=yes
5432   ;;
5433 *)
5434   lt_cv_prog_gnu_ld=no
5435   ;;
5436 esac
5437 fi
5438 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5439 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5440 with_gnu_ld=$lt_cv_prog_gnu_ld
5441
5442
5443 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5444 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5445 if test "${lt_cv_ld_reload_flag+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   lt_cv_ld_reload_flag='-r'
5449 fi
5450 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5451 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5452 reload_flag=$lt_cv_ld_reload_flag
5453 case $reload_flag in
5454 "" | " "*) ;;
5455 *) reload_flag=" $reload_flag" ;;
5456 esac
5457 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5458 case $host_os in
5459   darwin*)
5460     if test "$GCC" = yes; then
5461       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5462     else
5463       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464     fi
5465     ;;
5466 esac
5467
5468 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5469 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5470 if test "${lt_cv_path_NM+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   if test -n "$NM"; then
5474   # Let the user override the test.
5475   lt_cv_path_NM="$NM"
5476 else
5477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5478   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5479     IFS="$lt_save_ifs"
5480     test -z "$ac_dir" && ac_dir=.
5481     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5482     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5483       # Check to see if the nm accepts a BSD-compat flag.
5484       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5485       #   nm: unknown option "B" ignored
5486       # Tru64's nm complains that /dev/null is an invalid object file
5487       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5488       */dev/null* | *'Invalid file or object type'*)
5489         lt_cv_path_NM="$tmp_nm -B"
5490         break
5491         ;;
5492       *)
5493         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5494         */dev/null*)
5495           lt_cv_path_NM="$tmp_nm -p"
5496           break
5497           ;;
5498         *)
5499           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5500           continue # so that we can try to find one that supports BSD flags
5501           ;;
5502         esac
5503       esac
5504     fi
5505   done
5506   IFS="$lt_save_ifs"
5507   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5508 fi
5509 fi
5510 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5511 echo "${ECHO_T}$lt_cv_path_NM" >&6
5512 NM="$lt_cv_path_NM"
5513
5514 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5515 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5516 LN_S=$as_ln_s
5517 if test "$LN_S" = "ln -s"; then
5518   echo "$as_me:$LINENO: result: yes" >&5
5519 echo "${ECHO_T}yes" >&6
5520 else
5521   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5522 echo "${ECHO_T}no, using $LN_S" >&6
5523 fi
5524
5525 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5526 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5527 if test "${lt_cv_deplibs_check_method+set}" = set; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   lt_cv_file_magic_cmd='$MAGIC_CMD'
5531 lt_cv_file_magic_test_file=
5532 lt_cv_deplibs_check_method='unknown'
5533 # Need to set the preceding variable on all platforms that support
5534 # interlibrary dependencies.
5535 # 'none' -- dependencies not supported.
5536 # `unknown' -- same as none, but documents that we really don't know.
5537 # 'pass_all' -- all dependencies passed with no checks.
5538 # 'test_compile' -- check by making test program.
5539 # 'file_magic [[regex]]' -- check by looking for files in library path
5540 # which responds to the $file_magic_cmd with a given extended regex.
5541 # If you have `file' or equivalent on your system and you're not sure
5542 # whether `pass_all' will *always* work, you probably want this one.
5543
5544 case $host_os in
5545 aix4* | aix5*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 beos*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 bsdi[45]*)
5554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5555   lt_cv_file_magic_cmd='/usr/bin/file -L'
5556   lt_cv_file_magic_test_file=/shlib/libc.so
5557   ;;
5558
5559 cygwin*)
5560   # func_win32_libid is a shell function defined in ltmain.sh
5561   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5562   lt_cv_file_magic_cmd='func_win32_libid'
5563   ;;
5564
5565 mingw* | pw32*)
5566   # Base MSYS/MinGW do not provide the 'file' command needed by
5567   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5568   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5569   lt_cv_file_magic_cmd='$OBJDUMP -f'
5570   ;;
5571
5572 darwin* | rhapsody*)
5573   lt_cv_deplibs_check_method=pass_all
5574   ;;
5575
5576 freebsd* | kfreebsd*-gnu | dragonfly*)
5577   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5578     case $host_cpu in
5579     i*86 )
5580       # Not sure whether the presence of OpenBSD here was a mistake.
5581       # Let's accept both of them until this is cleared up.
5582       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5583       lt_cv_file_magic_cmd=/usr/bin/file
5584       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5585       ;;
5586     esac
5587   else
5588     lt_cv_deplibs_check_method=pass_all
5589   fi
5590   ;;
5591
5592 gnu*)
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 hpux10.20* | hpux11*)
5597   lt_cv_file_magic_cmd=/usr/bin/file
5598   case "$host_cpu" in
5599   ia64*)
5600     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5601     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5602     ;;
5603   hppa*64*)
5604     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]'
5605     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5606     ;;
5607   *)
5608     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5609     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5610     ;;
5611   esac
5612   ;;
5613
5614 irix5* | irix6* | nonstopux*)
5615   case $LD in
5616   *-32|*"-32 ") libmagic=32-bit;;
5617   *-n32|*"-n32 ") libmagic=N32;;
5618   *-64|*"-64 ") libmagic=64-bit;;
5619   *) libmagic=never-match;;
5620   esac
5621   lt_cv_deplibs_check_method=pass_all
5622   ;;
5623
5624 # This must be Linux ELF.
5625 linux*)
5626   lt_cv_deplibs_check_method=pass_all
5627   ;;
5628
5629 netbsd*)
5630   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5631     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5632   else
5633     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5634   fi
5635   ;;
5636
5637 newos6*)
5638   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5639   lt_cv_file_magic_cmd=/usr/bin/file
5640   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5641   ;;
5642
5643 nto-qnx*)
5644   lt_cv_deplibs_check_method=unknown
5645   ;;
5646
5647 openbsd*)
5648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5650   else
5651     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5652   fi
5653   ;;
5654
5655 osf3* | osf4* | osf5*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 sco3.2v5*)
5660   lt_cv_deplibs_check_method=pass_all
5661   ;;
5662
5663 solaris*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666
5667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5668   case $host_vendor in
5669   motorola)
5670     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]'
5671     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5672     ;;
5673   ncr)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676   sequent)
5677     lt_cv_file_magic_cmd='/bin/file'
5678     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5679     ;;
5680   sni)
5681     lt_cv_file_magic_cmd='/bin/file'
5682     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5683     lt_cv_file_magic_test_file=/lib/libc.so
5684     ;;
5685   siemens)
5686     lt_cv_deplibs_check_method=pass_all
5687     ;;
5688   esac
5689   ;;
5690
5691 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5692   lt_cv_deplibs_check_method=pass_all
5693   ;;
5694 esac
5695
5696 fi
5697 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5698 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5699 file_magic_cmd=$lt_cv_file_magic_cmd
5700 deplibs_check_method=$lt_cv_deplibs_check_method
5701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5702
5703
5704
5705
5706 # If no C compiler was specified, use CC.
5707 LTCC=${LTCC-"$CC"}
5708
5709 # Allow CC to be a program name with arguments.
5710 compiler=$CC
5711
5712
5713 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5714 if test "${enable_libtool_lock+set}" = set; then
5715   enableval="$enable_libtool_lock"
5716
5717 fi;
5718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5719
5720 # Some flags need to be propagated to the compiler or linker for good
5721 # libtool support.
5722 case $host in
5723 ia64-*-hpux*)
5724   # Find out which ABI we are using.
5725   echo 'int i;' > conftest.$ac_ext
5726   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727   (eval $ac_compile) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; then
5731     case `/usr/bin/file conftest.$ac_objext` in
5732     *ELF-32*)
5733       HPUX_IA64_MODE="32"
5734       ;;
5735     *ELF-64*)
5736       HPUX_IA64_MODE="64"
5737       ;;
5738     esac
5739   fi
5740   rm -rf conftest*
5741   ;;
5742 *-*-irix6*)
5743   # Find out which ABI we are using.
5744   echo '#line 5744 "configure"' > conftest.$ac_ext
5745   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746   (eval $ac_compile) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; then
5750    if test "$lt_cv_prog_gnu_ld" = yes; then
5751     case `/usr/bin/file conftest.$ac_objext` in
5752     *32-bit*)
5753       LD="${LD-ld} -melf32bsmip"
5754       ;;
5755     *N32*)
5756       LD="${LD-ld} -melf32bmipn32"
5757       ;;
5758     *64-bit*)
5759       LD="${LD-ld} -melf64bmip"
5760       ;;
5761     esac
5762    else
5763     case `/usr/bin/file conftest.$ac_objext` in
5764     *32-bit*)
5765       LD="${LD-ld} -32"
5766       ;;
5767     *N32*)
5768       LD="${LD-ld} -n32"
5769       ;;
5770     *64-bit*)
5771       LD="${LD-ld} -64"
5772       ;;
5773     esac
5774    fi
5775   fi
5776   rm -rf conftest*
5777   ;;
5778
5779 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5780   # Find out which ABI we are using.
5781   echo 'int i;' > conftest.$ac_ext
5782   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783   (eval $ac_compile) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }; then
5787     case "`/usr/bin/file conftest.o`" in
5788     *32-bit*)
5789       case $host in
5790         x86_64-*linux*)
5791           LD="${LD-ld} -m elf_i386"
5792           ;;
5793         ppc64-*linux*|powerpc64-*linux*)
5794           LD="${LD-ld} -m elf32ppclinux"
5795           ;;
5796         s390x-*linux*)
5797           LD="${LD-ld} -m elf_s390"
5798           ;;
5799         sparc64-*linux*)
5800           LD="${LD-ld} -m elf32_sparc"
5801           ;;
5802       esac
5803       ;;
5804     *64-bit*)
5805       case $host in
5806         x86_64-*linux*)
5807           LD="${LD-ld} -m elf_x86_64"
5808           ;;
5809         ppc*-*linux*|powerpc*-*linux*)
5810           LD="${LD-ld} -m elf64ppc"
5811           ;;
5812         s390*-*linux*)
5813           LD="${LD-ld} -m elf64_s390"
5814           ;;
5815         sparc*-*linux*)
5816           LD="${LD-ld} -m elf64_sparc"
5817           ;;
5818       esac
5819       ;;
5820     esac
5821   fi
5822   rm -rf conftest*
5823   ;;
5824
5825 *-*-sco3.2v5*)
5826   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5827   SAVE_CFLAGS="$CFLAGS"
5828   CFLAGS="$CFLAGS -belf"
5829   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5830 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5831 if test "${lt_cv_cc_needs_belf+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_ext=c
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840      cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h.  */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h.  */
5846
5847 int
5848 main ()
5849 {
5850
5851   ;
5852   return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857   (eval $ac_link) 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } &&
5864          { ac_try='test -z "$ac_c_werror_flag"
5865                          || test ! -s conftest.err'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; } &&
5871          { ac_try='test -s conftest$ac_exeext'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; }; then
5877   lt_cv_cc_needs_belf=yes
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 lt_cv_cc_needs_belf=no
5883 fi
5884 rm -f conftest.err conftest.$ac_objext \
5885       conftest$ac_exeext conftest.$ac_ext
5886      ac_ext=c
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5891
5892 fi
5893 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5894 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5895   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5896     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5897     CFLAGS="$SAVE_CFLAGS"
5898   fi
5899   ;;
5900 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5901   if test -n "$ac_tool_prefix"; then
5902   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   if test -n "$DLLTOOL"; then
5910   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925
5926 fi
5927 fi
5928 DLLTOOL=$ac_cv_prog_DLLTOOL
5929 if test -n "$DLLTOOL"; then
5930   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5931 echo "${ECHO_T}$DLLTOOL" >&6
5932 else
5933   echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937 fi
5938 if test -z "$ac_cv_prog_DLLTOOL"; then
5939   ac_ct_DLLTOOL=$DLLTOOL
5940   # Extract the first word of "dlltool", so it can be a program name with args.
5941 set dummy dlltool; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$ac_ct_DLLTOOL"; then
5948   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963
5964   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5965 fi
5966 fi
5967 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5968 if test -n "$ac_ct_DLLTOOL"; then
5969   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5970 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5971 else
5972   echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5974 fi
5975
5976   DLLTOOL=$ac_ct_DLLTOOL
5977 else
5978   DLLTOOL="$ac_cv_prog_DLLTOOL"
5979 fi
5980
5981   if test -n "$ac_tool_prefix"; then
5982   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}as; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_AS+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   if test -n "$AS"; then
5990   ac_cv_prog_AS="$AS" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_exec_ext in '' $ac_executable_extensions; do
5998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_prog_AS="${ac_tool_prefix}as"
6000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004 done
6005
6006 fi
6007 fi
6008 AS=$ac_cv_prog_AS
6009 if test -n "$AS"; then
6010   echo "$as_me:$LINENO: result: $AS" >&5
6011 echo "${ECHO_T}$AS" >&6
6012 else
6013   echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6015 fi
6016
6017 fi
6018 if test -z "$ac_cv_prog_AS"; then
6019   ac_ct_AS=$AS
6020   # Extract the first word of "as", so it can be a program name with args.
6021 set dummy as; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   if test -n "$ac_ct_AS"; then
6028   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037     ac_cv_prog_ac_ct_AS="as"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043
6044   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6045 fi
6046 fi
6047 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6048 if test -n "$ac_ct_AS"; then
6049   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6050 echo "${ECHO_T}$ac_ct_AS" >&6
6051 else
6052   echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6054 fi
6055
6056   AS=$ac_ct_AS
6057 else
6058   AS="$ac_cv_prog_AS"
6059 fi
6060
6061   if test -n "$ac_tool_prefix"; then
6062   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6064 echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   if test -n "$OBJDUMP"; then
6070   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077   for ac_exec_ext in '' $ac_executable_extensions; do
6078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084 done
6085
6086 fi
6087 fi
6088 OBJDUMP=$ac_cv_prog_OBJDUMP
6089 if test -n "$OBJDUMP"; then
6090   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6091 echo "${ECHO_T}$OBJDUMP" >&6
6092 else
6093   echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6
6095 fi
6096
6097 fi
6098 if test -z "$ac_cv_prog_OBJDUMP"; then
6099   ac_ct_OBJDUMP=$OBJDUMP
6100   # Extract the first word of "objdump", so it can be a program name with args.
6101 set dummy objdump; ac_word=$2
6102 echo "$as_me:$LINENO: checking for $ac_word" >&5
6103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   if test -n "$ac_ct_OBJDUMP"; then
6108   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115   for ac_exec_ext in '' $ac_executable_extensions; do
6116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122 done
6123
6124   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6125 fi
6126 fi
6127 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6128 if test -n "$ac_ct_OBJDUMP"; then
6129   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6130 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6131 else
6132   echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6
6134 fi
6135
6136   OBJDUMP=$ac_ct_OBJDUMP
6137 else
6138   OBJDUMP="$ac_cv_prog_OBJDUMP"
6139 fi
6140
6141   ;;
6142
6143 esac
6144
6145 need_locks="$enable_libtool_lock"
6146
6147
6148 ac_ext=c
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6154 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6155 # On Suns, sometimes $CPP names a directory.
6156 if test -n "$CPP" && test -d "$CPP"; then
6157   CPP=
6158 fi
6159 if test -z "$CPP"; then
6160   if test "${ac_cv_prog_CPP+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163       # Double quotes because CPP needs to be expanded
6164     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6165     do
6166       ac_preproc_ok=false
6167 for ac_c_preproc_warn_flag in '' yes
6168 do
6169   # Use a header file that comes with gcc, so configuring glibc
6170   # with a fresh cross-compiler works.
6171   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172   # <limits.h> exists even on freestanding compilers.
6173   # On the NeXT, cc -E runs the code through the compiler's parser,
6174   # not just through cpp. "Syntax error" is here to catch this case.
6175   cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 #ifdef __STDC__
6182 # include <limits.h>
6183 #else
6184 # include <assert.h>
6185 #endif
6186                      Syntax error
6187 _ACEOF
6188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6190   ac_status=$?
6191   grep -v '^ *+' conftest.er1 >conftest.err
6192   rm -f conftest.er1
6193   cat conftest.err >&5
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } >/dev/null; then
6196   if test -s conftest.err; then
6197     ac_cpp_err=$ac_c_preproc_warn_flag
6198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6199   else
6200     ac_cpp_err=
6201   fi
6202 else
6203   ac_cpp_err=yes
6204 fi
6205 if test -z "$ac_cpp_err"; then
6206   :
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211   # Broken: fails on valid input.
6212 continue
6213 fi
6214 rm -f conftest.err conftest.$ac_ext
6215
6216   # OK, works on sane cases.  Now check whether non-existent headers
6217   # can be detected and how.
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 #include <ac_nonexistent.h>
6225 _ACEOF
6226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } >/dev/null; then
6234   if test -s conftest.err; then
6235     ac_cpp_err=$ac_c_preproc_warn_flag
6236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6237   else
6238     ac_cpp_err=
6239   fi
6240 else
6241   ac_cpp_err=yes
6242 fi
6243 if test -z "$ac_cpp_err"; then
6244   # Broken: success on invalid input.
6245 continue
6246 else
6247   echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250   # Passes both tests.
6251 ac_preproc_ok=:
6252 break
6253 fi
6254 rm -f conftest.err conftest.$ac_ext
6255
6256 done
6257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258 rm -f conftest.err conftest.$ac_ext
6259 if $ac_preproc_ok; then
6260   break
6261 fi
6262
6263     done
6264     ac_cv_prog_CPP=$CPP
6265
6266 fi
6267   CPP=$ac_cv_prog_CPP
6268 else
6269   ac_cv_prog_CPP=$CPP
6270 fi
6271 echo "$as_me:$LINENO: result: $CPP" >&5
6272 echo "${ECHO_T}$CPP" >&6
6273 ac_preproc_ok=false
6274 for ac_c_preproc_warn_flag in '' yes
6275 do
6276   # Use a header file that comes with gcc, so configuring glibc
6277   # with a fresh cross-compiler works.
6278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279   # <limits.h> exists even on freestanding compilers.
6280   # On the NeXT, cc -E runs the code through the compiler's parser,
6281   # not just through cpp. "Syntax error" is here to catch this case.
6282   cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #ifdef __STDC__
6289 # include <limits.h>
6290 #else
6291 # include <assert.h>
6292 #endif
6293                      Syntax error
6294 _ACEOF
6295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6297   ac_status=$?
6298   grep -v '^ *+' conftest.er1 >conftest.err
6299   rm -f conftest.er1
6300   cat conftest.err >&5
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); } >/dev/null; then
6303   if test -s conftest.err; then
6304     ac_cpp_err=$ac_c_preproc_warn_flag
6305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6306   else
6307     ac_cpp_err=
6308   fi
6309 else
6310   ac_cpp_err=yes
6311 fi
6312 if test -z "$ac_cpp_err"; then
6313   :
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318   # Broken: fails on valid input.
6319 continue
6320 fi
6321 rm -f conftest.err conftest.$ac_ext
6322
6323   # OK, works on sane cases.  Now check whether non-existent headers
6324   # can be detected and how.
6325   cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 #include <ac_nonexistent.h>
6332 _ACEOF
6333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
6338   cat conftest.err >&5
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); } >/dev/null; then
6341   if test -s conftest.err; then
6342     ac_cpp_err=$ac_c_preproc_warn_flag
6343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6344   else
6345     ac_cpp_err=
6346   fi
6347 else
6348   ac_cpp_err=yes
6349 fi
6350 if test -z "$ac_cpp_err"; then
6351   # Broken: success on invalid input.
6352 continue
6353 else
6354   echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357   # Passes both tests.
6358 ac_preproc_ok=:
6359 break
6360 fi
6361 rm -f conftest.err conftest.$ac_ext
6362
6363 done
6364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6365 rm -f conftest.err conftest.$ac_ext
6366 if $ac_preproc_ok; then
6367   :
6368 else
6369   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6370 See \`config.log' for more details." >&5
6371 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6372 See \`config.log' for more details." >&2;}
6373    { (exit 1); exit 1; }; }
6374 fi
6375
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382
6383 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6385 if test "${ac_cv_header_stdc+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394 #include <stdlib.h>
6395 #include <stdarg.h>
6396 #include <string.h>
6397 #include <float.h>
6398
6399 int
6400 main ()
6401 {
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409   (eval $ac_compile) 2>conftest.er1
6410   ac_status=$?
6411   grep -v '^ *+' conftest.er1 >conftest.err
6412   rm -f conftest.er1
6413   cat conftest.err >&5
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } &&
6416          { ac_try='test -z "$ac_c_werror_flag"
6417                          || test ! -s conftest.err'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_cv_header_stdc=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_header_stdc=no
6435 fi
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437
6438 if test $ac_cv_header_stdc = yes; then
6439   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6440   cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h.  */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h.  */
6446 #include <string.h>
6447
6448 _ACEOF
6449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6450   $EGREP "memchr" >/dev/null 2>&1; then
6451   :
6452 else
6453   ac_cv_header_stdc=no
6454 fi
6455 rm -f conftest*
6456
6457 fi
6458
6459 if test $ac_cv_header_stdc = yes; then
6460   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 #include <stdlib.h>
6468
6469 _ACEOF
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471   $EGREP "free" >/dev/null 2>&1; then
6472   :
6473 else
6474   ac_cv_header_stdc=no
6475 fi
6476 rm -f conftest*
6477
6478 fi
6479
6480 if test $ac_cv_header_stdc = yes; then
6481   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6482   if test "$cross_compiling" = yes; then
6483   :
6484 else
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 #include <ctype.h>
6492 #if ((' ' & 0x0FF) == 0x020)
6493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6495 #else
6496 # define ISLOWER(c) \
6497                    (('a' <= (c) && (c) <= 'i') \
6498                      || ('j' <= (c) && (c) <= 'r') \
6499                      || ('s' <= (c) && (c) <= 'z'))
6500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6501 #endif
6502
6503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6504 int
6505 main ()
6506 {
6507   int i;
6508   for (i = 0; i < 256; i++)
6509     if (XOR (islower (i), ISLOWER (i))
6510         || toupper (i) != TOUPPER (i))
6511       exit(2);
6512   exit (0);
6513 }
6514 _ACEOF
6515 rm -f conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517   (eval $ac_link) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522   (eval $ac_try) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }; }; then
6526   :
6527 else
6528   echo "$as_me: program exited with status $ac_status" >&5
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 ( exit $ac_status )
6533 ac_cv_header_stdc=no
6534 fi
6535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6536 fi
6537 fi
6538 fi
6539 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6540 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6541 if test $ac_cv_header_stdc = yes; then
6542
6543 cat >>confdefs.h <<\_ACEOF
6544 #define STDC_HEADERS 1
6545 _ACEOF
6546
6547 fi
6548
6549 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6560                   inttypes.h stdint.h unistd.h
6561 do
6562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574 $ac_includes_default
6575
6576 #include <$ac_header>
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580   (eval $ac_compile) 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -z "$ac_c_werror_flag"
6588                          || test ! -s conftest.err'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; } &&
6594          { ac_try='test -s conftest.$ac_objext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   eval "$as_ac_Header=yes"
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 eval "$as_ac_Header=no"
6606 fi
6607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6612   cat >>confdefs.h <<_ACEOF
6613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6614 _ACEOF
6615
6616 fi
6617
6618 done
6619
6620
6621
6622 for ac_header in dlfcn.h
6623 do
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6626   echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 fi
6631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6633 else
6634   # Is the header compilable?
6635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643 $ac_includes_default
6644 #include <$ac_header>
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648   (eval $ac_compile) 2>conftest.er1
6649   ac_status=$?
6650   grep -v '^ *+' conftest.er1 >conftest.err
6651   rm -f conftest.er1
6652   cat conftest.err >&5
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -z "$ac_c_werror_flag"
6656                          || test ! -s conftest.err'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; } &&
6662          { ac_try='test -s conftest.$ac_objext'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; }; then
6668   ac_header_compiler=yes
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673 ac_header_compiler=no
6674 fi
6675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6677 echo "${ECHO_T}$ac_header_compiler" >&6
6678
6679 # Is the header present?
6680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 #include <$ac_header>
6689 _ACEOF
6690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6692   ac_status=$?
6693   grep -v '^ *+' conftest.er1 >conftest.err
6694   rm -f conftest.er1
6695   cat conftest.err >&5
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); } >/dev/null; then
6698   if test -s conftest.err; then
6699     ac_cpp_err=$ac_c_preproc_warn_flag
6700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6701   else
6702     ac_cpp_err=
6703   fi
6704 else
6705   ac_cpp_err=yes
6706 fi
6707 if test -z "$ac_cpp_err"; then
6708   ac_header_preproc=yes
6709 else
6710   echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713   ac_header_preproc=no
6714 fi
6715 rm -f conftest.err conftest.$ac_ext
6716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6717 echo "${ECHO_T}$ac_header_preproc" >&6
6718
6719 # So?  What about this header?
6720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6721   yes:no: )
6722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6726     ac_header_preproc=yes
6727     ;;
6728   no:yes:* )
6729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6731     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6732 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6733     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6735     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6736 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6739     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6741     (
6742       cat <<\_ASBOX
6743 ## ------------------------------------------ ##
6744 ## Report this to the AC_PACKAGE_NAME lists.  ##
6745 ## ------------------------------------------ ##
6746 _ASBOX
6747     ) |
6748       sed "s/^/$as_me: WARNING:     /" >&2
6749     ;;
6750 esac
6751 echo "$as_me:$LINENO: checking for $ac_header" >&5
6752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   eval "$as_ac_Header=\$ac_header_preproc"
6757 fi
6758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6760
6761 fi
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763   cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6765 _ACEOF
6766
6767 fi
6768
6769 done
6770
6771 ac_ext=cc
6772 ac_cpp='$CXXCPP $CPPFLAGS'
6773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6776 if test -n "$ac_tool_prefix"; then
6777   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6778   do
6779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6781 echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6783 if test "${ac_cv_prog_CXX+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   if test -n "$CXX"; then
6787   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802
6803 fi
6804 fi
6805 CXX=$ac_cv_prog_CXX
6806 if test -n "$CXX"; then
6807   echo "$as_me:$LINENO: result: $CXX" >&5
6808 echo "${ECHO_T}$CXX" >&6
6809 else
6810   echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6812 fi
6813
6814     test -n "$CXX" && break
6815   done
6816 fi
6817 if test -z "$CXX"; then
6818   ac_ct_CXX=$CXX
6819   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6820 do
6821   # Extract the first word of "$ac_prog", so it can be a program name with args.
6822 set dummy $ac_prog; ac_word=$2
6823 echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6825 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   if test -n "$ac_ct_CXX"; then
6829   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838     ac_cv_prog_ac_ct_CXX="$ac_prog"
6839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844
6845 fi
6846 fi
6847 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6848 if test -n "$ac_ct_CXX"; then
6849   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6850 echo "${ECHO_T}$ac_ct_CXX" >&6
6851 else
6852   echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6
6854 fi
6855
6856   test -n "$ac_ct_CXX" && break
6857 done
6858 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6859
6860   CXX=$ac_ct_CXX
6861 fi
6862
6863
6864 # Provide some information about the compiler.
6865 echo "$as_me:$LINENO:" \
6866      "checking for C++ compiler version" >&5
6867 ac_compiler=`set X $ac_compile; echo $2`
6868 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6869   (eval $ac_compiler --version </dev/null >&5) 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); }
6873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6874   (eval $ac_compiler -v </dev/null >&5) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }
6878 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6879   (eval $ac_compiler -V </dev/null >&5) 2>&5
6880   ac_status=$?
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); }
6883
6884 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6885 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6886 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895
6896 int
6897 main ()
6898 {
6899 #ifndef __GNUC__
6900        choke me
6901 #endif
6902
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909   (eval $ac_compile) 2>conftest.er1
6910   ac_status=$?
6911   grep -v '^ *+' conftest.er1 >conftest.err
6912   rm -f conftest.er1
6913   cat conftest.err >&5
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } &&
6916          { ac_try='test -z "$ac_cxx_werror_flag"
6917                          || test ! -s conftest.err'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; } &&
6923          { ac_try='test -s conftest.$ac_objext'
6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925   (eval $ac_try) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; }; then
6929   ac_compiler_gnu=yes
6930 else
6931   echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6933
6934 ac_compiler_gnu=no
6935 fi
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6938
6939 fi
6940 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6941 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6942 GXX=`test $ac_compiler_gnu = yes && echo yes`
6943 ac_test_CXXFLAGS=${CXXFLAGS+set}
6944 ac_save_CXXFLAGS=$CXXFLAGS
6945 CXXFLAGS="-g"
6946 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6947 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6948 if test "${ac_cv_prog_cxx_g+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957
6958 int
6959 main ()
6960 {
6961
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968   (eval $ac_compile) 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } &&
6975          { ac_try='test -z "$ac_cxx_werror_flag"
6976                          || test ! -s conftest.err'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; } &&
6982          { ac_try='test -s conftest.$ac_objext'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988   ac_cv_prog_cxx_g=yes
6989 else
6990   echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6992
6993 ac_cv_prog_cxx_g=no
6994 fi
6995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6998 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6999 if test "$ac_test_CXXFLAGS" = set; then
7000   CXXFLAGS=$ac_save_CXXFLAGS
7001 elif test $ac_cv_prog_cxx_g = yes; then
7002   if test "$GXX" = yes; then
7003     CXXFLAGS="-g -O2"
7004   else
7005     CXXFLAGS="-g"
7006   fi
7007 else
7008   if test "$GXX" = yes; then
7009     CXXFLAGS="-O2"
7010   else
7011     CXXFLAGS=
7012   fi
7013 fi
7014 for ac_declaration in \
7015    '' \
7016    'extern "C" void std::exit (int) throw (); using std::exit;' \
7017    'extern "C" void std::exit (int); using std::exit;' \
7018    'extern "C" void exit (int) throw ();' \
7019    'extern "C" void exit (int);' \
7020    'void exit (int);'
7021 do
7022   cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h.  */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h.  */
7028 $ac_declaration
7029 #include <stdlib.h>
7030 int
7031 main ()
7032 {
7033 exit (42);
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040   (eval $ac_compile) 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } &&
7047          { ac_try='test -z "$ac_cxx_werror_flag"
7048                          || test ! -s conftest.err'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; } &&
7054          { ac_try='test -s conftest.$ac_objext'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; }; then
7060   :
7061 else
7062   echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 continue
7066 fi
7067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7068   cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 $ac_declaration
7075 int
7076 main ()
7077 {
7078 exit (42);
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085   (eval $ac_compile) 2>conftest.er1
7086   ac_status=$?
7087   grep -v '^ *+' conftest.er1 >conftest.err
7088   rm -f conftest.er1
7089   cat conftest.err >&5
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } &&
7092          { ac_try='test -z "$ac_cxx_werror_flag"
7093                          || test ! -s conftest.err'
7094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095   (eval $ac_try) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); }; } &&
7099          { ac_try='test -s conftest.$ac_objext'
7100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101   (eval $ac_try) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   break
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 fi
7111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7112 done
7113 rm -f conftest*
7114 if test -n "$ac_declaration"; then
7115   echo '#ifdef __cplusplus' >>confdefs.h
7116   echo $ac_declaration      >>confdefs.h
7117   echo '#endif'             >>confdefs.h
7118 fi
7119
7120 ac_ext=cc
7121 ac_cpp='$CXXCPP $CPPFLAGS'
7122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7125
7126 depcc="$CXX"  am_compiler_list=
7127
7128 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7129 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7130 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7134   # We make a subdir and do the tests there.  Otherwise we can end up
7135   # making bogus files that we don't know about and never remove.  For
7136   # instance it was reported that on HP-UX the gcc test will end up
7137   # making a dummy file named `D' -- because `-MD' means `put the output
7138   # in D'.
7139   mkdir conftest.dir
7140   # Copy depcomp to subdir because otherwise we won't find it if we're
7141   # using a relative directory.
7142   cp "$am_depcomp" conftest.dir
7143   cd conftest.dir
7144   # We will build objects and dependencies in a subdirectory because
7145   # it helps to detect inapplicable dependency modes.  For instance
7146   # both Tru64's cc and ICC support -MD to output dependencies as a
7147   # side effect of compilation, but ICC will put the dependencies in
7148   # the current directory while Tru64 will put them in the object
7149   # directory.
7150   mkdir sub
7151
7152   am_cv_CXX_dependencies_compiler_type=none
7153   if test "$am_compiler_list" = ""; then
7154      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7155   fi
7156   for depmode in $am_compiler_list; do
7157     # Setup a source with many dependencies, because some compilers
7158     # like to wrap large dependency lists on column 80 (with \), and
7159     # we should not choose a depcomp mode which is confused by this.
7160     #
7161     # We need to recreate these files for each test, as the compiler may
7162     # overwrite some of them when testing with obscure command lines.
7163     # This happens at least with the AIX C compiler.
7164     : > sub/conftest.c
7165     for i in 1 2 3 4 5 6; do
7166       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7167       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7168       # Solaris 8's {/usr,}/bin/sh.
7169       touch sub/conftst$i.h
7170     done
7171     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7172
7173     case $depmode in
7174     nosideeffect)
7175       # after this tag, mechanisms are not by side-effect, so they'll
7176       # only be used when explicitly requested
7177       if test "x$enable_dependency_tracking" = xyes; then
7178         continue
7179       else
7180         break
7181       fi
7182       ;;
7183     none) break ;;
7184     esac
7185     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7186     # mode.  It turns out that the SunPro C++ compiler does not properly
7187     # handle `-M -o', and we need to detect this.
7188     if depmode=$depmode \
7189        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7190        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7191        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7192          >/dev/null 2>conftest.err &&
7193        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7194        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7195        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7196       # icc doesn't choke on unknown options, it will just issue warnings
7197       # or remarks (even with -Werror).  So we grep stderr for any message
7198       # that says an option was ignored or not supported.
7199       # When given -MP, icc 7.0 and 7.1 complain thusly:
7200       #   icc: Command line warning: ignoring option '-M'; no argument required
7201       # The diagnosis changed in icc 8.0:
7202       #   icc: Command line remark: option '-MP' not supported
7203       if (grep 'ignoring option' conftest.err ||
7204           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7205         am_cv_CXX_dependencies_compiler_type=$depmode
7206         break
7207       fi
7208     fi
7209   done
7210
7211   cd ..
7212   rm -rf conftest.dir
7213 else
7214   am_cv_CXX_dependencies_compiler_type=none
7215 fi
7216
7217 fi
7218 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7219 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7220 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7221
7222
7223
7224 if
7225   test "x$enable_dependency_tracking" != xno \
7226   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7227   am__fastdepCXX_TRUE=
7228   am__fastdepCXX_FALSE='#'
7229 else
7230   am__fastdepCXX_TRUE='#'
7231   am__fastdepCXX_FALSE=
7232 fi
7233
7234
7235
7236
7237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7238     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7239     (test "X$CXX" != "Xg++"))) ; then
7240   ac_ext=cc
7241 ac_cpp='$CXXCPP $CPPFLAGS'
7242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7245 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7246 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7247 if test -z "$CXXCPP"; then
7248   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251       # Double quotes because CXXCPP needs to be expanded
7252     for CXXCPP in "$CXX -E" "/lib/cpp"
7253     do
7254       ac_preproc_ok=false
7255 for ac_cxx_preproc_warn_flag in '' yes
7256 do
7257   # Use a header file that comes with gcc, so configuring glibc
7258   # with a fresh cross-compiler works.
7259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260   # <limits.h> exists even on freestanding compilers.
7261   # On the NeXT, cc -E runs the code through the compiler's parser,
7262   # not just through cpp. "Syntax error" is here to catch this case.
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269 #ifdef __STDC__
7270 # include <limits.h>
7271 #else
7272 # include <assert.h>
7273 #endif
7274                      Syntax error
7275 _ACEOF
7276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } >/dev/null; then
7284   if test -s conftest.err; then
7285     ac_cpp_err=$ac_cxx_preproc_warn_flag
7286     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7287   else
7288     ac_cpp_err=
7289   fi
7290 else
7291   ac_cpp_err=yes
7292 fi
7293 if test -z "$ac_cpp_err"; then
7294   :
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299   # Broken: fails on valid input.
7300 continue
7301 fi
7302 rm -f conftest.err conftest.$ac_ext
7303
7304   # OK, works on sane cases.  Now check whether non-existent headers
7305   # can be detected and how.
7306   cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h.  */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h.  */
7312 #include <ac_nonexistent.h>
7313 _ACEOF
7314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7316   ac_status=$?
7317   grep -v '^ *+' conftest.er1 >conftest.err
7318   rm -f conftest.er1
7319   cat conftest.err >&5
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); } >/dev/null; then
7322   if test -s conftest.err; then
7323     ac_cpp_err=$ac_cxx_preproc_warn_flag
7324     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7325   else
7326     ac_cpp_err=
7327   fi
7328 else
7329   ac_cpp_err=yes
7330 fi
7331 if test -z "$ac_cpp_err"; then
7332   # Broken: success on invalid input.
7333 continue
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338   # Passes both tests.
7339 ac_preproc_ok=:
7340 break
7341 fi
7342 rm -f conftest.err conftest.$ac_ext
7343
7344 done
7345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7346 rm -f conftest.err conftest.$ac_ext
7347 if $ac_preproc_ok; then
7348   break
7349 fi
7350
7351     done
7352     ac_cv_prog_CXXCPP=$CXXCPP
7353
7354 fi
7355   CXXCPP=$ac_cv_prog_CXXCPP
7356 else
7357   ac_cv_prog_CXXCPP=$CXXCPP
7358 fi
7359 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7360 echo "${ECHO_T}$CXXCPP" >&6
7361 ac_preproc_ok=false
7362 for ac_cxx_preproc_warn_flag in '' yes
7363 do
7364   # Use a header file that comes with gcc, so configuring glibc
7365   # with a fresh cross-compiler works.
7366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367   # <limits.h> exists even on freestanding compilers.
7368   # On the NeXT, cc -E runs the code through the compiler's parser,
7369   # not just through cpp. "Syntax error" is here to catch this case.
7370   cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376 #ifdef __STDC__
7377 # include <limits.h>
7378 #else
7379 # include <assert.h>
7380 #endif
7381                      Syntax error
7382 _ACEOF
7383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } >/dev/null; then
7391   if test -s conftest.err; then
7392     ac_cpp_err=$ac_cxx_preproc_warn_flag
7393     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7394   else
7395     ac_cpp_err=
7396   fi
7397 else
7398   ac_cpp_err=yes
7399 fi
7400 if test -z "$ac_cpp_err"; then
7401   :
7402 else
7403   echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7405
7406   # Broken: fails on valid input.
7407 continue
7408 fi
7409 rm -f conftest.err conftest.$ac_ext
7410
7411   # OK, works on sane cases.  Now check whether non-existent headers
7412   # can be detected and how.
7413   cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 #include <ac_nonexistent.h>
7420 _ACEOF
7421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7423   ac_status=$?
7424   grep -v '^ *+' conftest.er1 >conftest.err
7425   rm -f conftest.er1
7426   cat conftest.err >&5
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } >/dev/null; then
7429   if test -s conftest.err; then
7430     ac_cpp_err=$ac_cxx_preproc_warn_flag
7431     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7432   else
7433     ac_cpp_err=
7434   fi
7435 else
7436   ac_cpp_err=yes
7437 fi
7438 if test -z "$ac_cpp_err"; then
7439   # Broken: success on invalid input.
7440 continue
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445   # Passes both tests.
7446 ac_preproc_ok=:
7447 break
7448 fi
7449 rm -f conftest.err conftest.$ac_ext
7450
7451 done
7452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7453 rm -f conftest.err conftest.$ac_ext
7454 if $ac_preproc_ok; then
7455   :
7456 else
7457   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7458 See \`config.log' for more details." >&5
7459 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7460 See \`config.log' for more details." >&2;}
7461    { (exit 1); exit 1; }; }
7462 fi
7463
7464 ac_ext=cc
7465 ac_cpp='$CXXCPP $CPPFLAGS'
7466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7469
7470 fi
7471
7472
7473 ac_ext=f
7474 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7475 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7477 if test -n "$ac_tool_prefix"; then
7478   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7479   do
7480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7482 echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484 if test "${ac_cv_prog_F77+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   if test -n "$F77"; then
7488   ac_cv_prog_F77="$F77" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495   for ac_exec_ext in '' $ac_executable_extensions; do
7496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502 done
7503
7504 fi
7505 fi
7506 F77=$ac_cv_prog_F77
7507 if test -n "$F77"; then
7508   echo "$as_me:$LINENO: result: $F77" >&5
7509 echo "${ECHO_T}$F77" >&6
7510 else
7511   echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513 fi
7514
7515     test -n "$F77" && break
7516   done
7517 fi
7518 if test -z "$F77"; then
7519   ac_ct_F77=$F77
7520   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7521 do
7522   # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; ac_word=$2
7524 echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   if test -n "$ac_ct_F77"; then
7530   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537   for ac_exec_ext in '' $ac_executable_extensions; do
7538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539     ac_cv_prog_ac_ct_F77="$ac_prog"
7540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544 done
7545
7546 fi
7547 fi
7548 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7549 if test -n "$ac_ct_F77"; then
7550   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7551 echo "${ECHO_T}$ac_ct_F77" >&6
7552 else
7553   echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6
7555 fi
7556
7557   test -n "$ac_ct_F77" && break
7558 done
7559
7560   F77=$ac_ct_F77
7561 fi
7562
7563
7564 # Provide some information about the compiler.
7565 echo "$as_me:7565:" \
7566      "checking for Fortran 77 compiler version" >&5
7567 ac_compiler=`set X $ac_compile; echo $2`
7568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7569   (eval $ac_compiler --version </dev/null >&5) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }
7573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7574   (eval $ac_compiler -v </dev/null >&5) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }
7578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7579   (eval $ac_compiler -V </dev/null >&5) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }
7583 rm -f a.out
7584
7585 # If we don't use `.F' as extension, the preprocessor is not run on the
7586 # input file.  (Note that this only needs to work for GNU compilers.)
7587 ac_save_ext=$ac_ext
7588 ac_ext=F
7589 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7590 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7591 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   cat >conftest.$ac_ext <<_ACEOF
7595       program main
7596 #ifndef __GNUC__
7597        choke me
7598 #endif
7599
7600       end
7601 _ACEOF
7602 rm -f conftest.$ac_objext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7604   (eval $ac_compile) 2>conftest.er1
7605   ac_status=$?
7606   grep -v '^ *+' conftest.er1 >conftest.err
7607   rm -f conftest.er1
7608   cat conftest.err >&5
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); } &&
7611          { ac_try='test -z "$ac_f77_werror_flag"
7612                          || test ! -s conftest.err'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; } &&
7618          { ac_try='test -s conftest.$ac_objext'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; }; then
7624   ac_compiler_gnu=yes
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ac_compiler_gnu=no
7630 fi
7631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7633
7634 fi
7635 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7636 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7637 ac_ext=$ac_save_ext
7638 ac_test_FFLAGS=${FFLAGS+set}
7639 ac_save_FFLAGS=$FFLAGS
7640 FFLAGS=
7641 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7642 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7643 if test "${ac_cv_prog_f77_g+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   FFLAGS=-g
7647 cat >conftest.$ac_ext <<_ACEOF
7648       program main
7649
7650       end
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654   (eval $ac_compile) 2>conftest.er1
7655   ac_status=$?
7656   grep -v '^ *+' conftest.er1 >conftest.err
7657   rm -f conftest.er1
7658   cat conftest.err >&5
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); } &&
7661          { ac_try='test -z "$ac_f77_werror_flag"
7662                          || test ! -s conftest.err'
7663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664   (eval $ac_try) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; } &&
7668          { ac_try='test -s conftest.$ac_objext'
7669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670   (eval $ac_try) 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); }; }; then
7674   ac_cv_prog_f77_g=yes
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 ac_cv_prog_f77_g=no
7680 fi
7681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7682
7683 fi
7684 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7685 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7686 if test "$ac_test_FFLAGS" = set; then
7687   FFLAGS=$ac_save_FFLAGS
7688 elif test $ac_cv_prog_f77_g = yes; then
7689   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7690     FFLAGS="-g -O2"
7691   else
7692     FFLAGS="-g"
7693   fi
7694 else
7695   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7696     FFLAGS="-O2"
7697   else
7698     FFLAGS=
7699   fi
7700 fi
7701
7702 G77=`test $ac_compiler_gnu = yes && echo yes`
7703 ac_ext=c
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709
7710
7711 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7712
7713 # find the maximum length of command line arguments
7714 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7715 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719     i=0
7720   teststring="ABCD"
7721
7722   case $build_os in
7723   msdosdjgpp*)
7724     # On DJGPP, this test can blow up pretty badly due to problems in libc
7725     # (any single argument exceeding 2000 bytes causes a buffer overrun
7726     # during glob expansion).  Even if it were fixed, the result of this
7727     # check would be larger than it should be.
7728     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7729     ;;
7730
7731   gnu*)
7732     # Under GNU Hurd, this test is not required because there is
7733     # no limit to the length of command line arguments.
7734     # Libtool will interpret -1 as no limit whatsoever
7735     lt_cv_sys_max_cmd_len=-1;
7736     ;;
7737
7738   cygwin* | mingw*)
7739     # On Win9x/ME, this test blows up -- it succeeds, but takes
7740     # about 5 minutes as the teststring grows exponentially.
7741     # Worse, since 9x/ME are not pre-emptively multitasking,
7742     # you end up with a "frozen" computer, even though with patience
7743     # the test eventually succeeds (with a max line length of 256k).
7744     # Instead, let's just punt: use the minimum linelength reported by
7745     # all of the supported platforms: 8192 (on NT/2K/XP).
7746     lt_cv_sys_max_cmd_len=8192;
7747     ;;
7748
7749   amigaos*)
7750     # On AmigaOS with pdksh, this test takes hours, literally.
7751     # So we just punt and use a minimum line length of 8192.
7752     lt_cv_sys_max_cmd_len=8192;
7753     ;;
7754
7755   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7756     # This has been around since 386BSD, at least.  Likely further.
7757     if test -x /sbin/sysctl; then
7758       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7759     elif test -x /usr/sbin/sysctl; then
7760       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7761     else
7762       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7763     fi
7764     # And add a safety zone
7765     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7766     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7767     ;;
7768   osf*)
7769     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7770     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7771     # nice to cause kernel panics so lets avoid the loop below.
7772     # First set a reasonable default.
7773     lt_cv_sys_max_cmd_len=16384
7774     #
7775     if test -x /sbin/sysconfig; then
7776       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7777         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7778       esac
7779     fi
7780     ;;
7781   *)
7782     # If test is not a shell built-in, we'll probably end up computing a
7783     # maximum length that is only half of the actual maximum length, but
7784     # we can't tell.
7785     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7786     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7787                = "XX$teststring") >/dev/null 2>&1 &&
7788             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7789             lt_cv_sys_max_cmd_len=$new_result &&
7790             test $i != 17 # 1/2 MB should be enough
7791     do
7792       i=`expr $i + 1`
7793       teststring=$teststring$teststring
7794     done
7795     teststring=
7796     # Add a significant safety factor because C++ compilers can tack on massive
7797     # amounts of additional arguments before passing them to the linker.
7798     # It appears as though 1/2 is a usable value.
7799     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7800     ;;
7801   esac
7802
7803 fi
7804
7805 if test -n $lt_cv_sys_max_cmd_len ; then
7806   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7807 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7808 else
7809   echo "$as_me:$LINENO: result: none" >&5
7810 echo "${ECHO_T}none" >&6
7811 fi
7812
7813
7814
7815
7816 # Check for command to grab the raw symbol name followed by C symbol from nm.
7817 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7818 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7819 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822
7823 # These are sane defaults that work on at least a few old systems.
7824 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7825
7826 # Character class describing NM global symbol codes.
7827 symcode='[BCDEGRST]'
7828
7829 # Regexp to match symbols that can be accessed directly from C.
7830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7831
7832 # Transform an extracted symbol line into a proper C declaration
7833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7834
7835 # Transform an extracted symbol line into symbol name and symbol address
7836 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'"
7837
7838 # Define system-specific variables.
7839 case $host_os in
7840 aix*)
7841   symcode='[BCDT]'
7842   ;;
7843 cygwin* | mingw* | pw32*)
7844   symcode='[ABCDGISTW]'
7845   ;;
7846 hpux*) # Its linker distinguishes data from code symbols
7847   if test "$host_cpu" = ia64; then
7848     symcode='[ABCDEGRST]'
7849   fi
7850   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7851   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'"
7852   ;;
7853 linux*)
7854   if test "$host_cpu" = ia64; then
7855     symcode='[ABCDGIRSTW]'
7856     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7857     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'"
7858   fi
7859   ;;
7860 irix* | nonstopux*)
7861   symcode='[BCDEGRST]'
7862   ;;
7863 osf*)
7864   symcode='[BCDEGQRST]'
7865   ;;
7866 solaris* | sysv5*)
7867   symcode='[BDRT]'
7868   ;;
7869 sysv4)
7870   symcode='[DFNSTU]'
7871   ;;
7872 esac
7873
7874 # Handle CRLF in mingw tool chain
7875 opt_cr=
7876 case $build_os in
7877 mingw*)
7878   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7879   ;;
7880 esac
7881
7882 # If we're using GNU nm, then use its standard symbol codes.
7883 case `$NM -V 2>&1` in
7884 *GNU* | *'with BFD'*)
7885   symcode='[ABCDGIRSTW]' ;;
7886 esac
7887
7888 # Try without a prefix undercore, then with it.
7889 for ac_symprfx in "" "_"; do
7890
7891   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7892   symxfrm="\\1 $ac_symprfx\\2 \\2"
7893
7894   # Write the raw and C identifiers.
7895   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7896
7897   # Check to see that the pipe works correctly.
7898   pipe_works=no
7899
7900   rm -f conftest*
7901   cat > conftest.$ac_ext <<EOF
7902 #ifdef __cplusplus
7903 extern "C" {
7904 #endif
7905 char nm_test_var;
7906 void nm_test_func(){}
7907 #ifdef __cplusplus
7908 }
7909 #endif
7910 int main(){nm_test_var='a';nm_test_func();return(0);}
7911 EOF
7912
7913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914   (eval $ac_compile) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; then
7918     # Now try to grab the symbols.
7919     nlist=conftest.nm
7920     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7921   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); } && test -s "$nlist"; then
7925       # Try sorting and uniquifying the output.
7926       if sort "$nlist" | uniq > "$nlist"T; then
7927         mv -f "$nlist"T "$nlist"
7928       else
7929         rm -f "$nlist"T
7930       fi
7931
7932       # Make sure that we snagged all the symbols we need.
7933       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7934         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7935           cat <<EOF > conftest.$ac_ext
7936 #ifdef __cplusplus
7937 extern "C" {
7938 #endif
7939
7940 EOF
7941           # Now generate the symbol file.
7942           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7943
7944           cat <<EOF >> conftest.$ac_ext
7945 #if defined (__STDC__) && __STDC__
7946 # define lt_ptr_t void *
7947 #else
7948 # define lt_ptr_t char *
7949 # define const
7950 #endif
7951
7952 /* The mapping between symbol names and symbols. */
7953 const struct {
7954   const char *name;
7955   lt_ptr_t address;
7956 }
7957 lt_preloaded_symbols[] =
7958 {
7959 EOF
7960           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7961           cat <<\EOF >> conftest.$ac_ext
7962   {0, (lt_ptr_t) 0}
7963 };
7964
7965 #ifdef __cplusplus
7966 }
7967 #endif
7968 EOF
7969           # Now try linking the two files.
7970           mv conftest.$ac_objext conftstm.$ac_objext
7971           lt_save_LIBS="$LIBS"
7972           lt_save_CFLAGS="$CFLAGS"
7973           LIBS="conftstm.$ac_objext"
7974           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7975           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7976   (eval $ac_link) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7980             pipe_works=yes
7981           fi
7982           LIBS="$lt_save_LIBS"
7983           CFLAGS="$lt_save_CFLAGS"
7984         else
7985           echo "cannot find nm_test_func in $nlist" >&5
7986         fi
7987       else
7988         echo "cannot find nm_test_var in $nlist" >&5
7989       fi
7990     else
7991       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7992     fi
7993   else
7994     echo "$progname: failed program was:" >&5
7995     cat conftest.$ac_ext >&5
7996   fi
7997   rm -f conftest* conftst*
7998
7999   # Do not use the global_symbol_pipe unless it works.
8000   if test "$pipe_works" = yes; then
8001     break
8002   else
8003     lt_cv_sys_global_symbol_pipe=
8004   fi
8005 done
8006
8007 fi
8008
8009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8010   lt_cv_sys_global_symbol_to_cdecl=
8011 fi
8012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8013   echo "$as_me:$LINENO: result: failed" >&5
8014 echo "${ECHO_T}failed" >&6
8015 else
8016   echo "$as_me:$LINENO: result: ok" >&5
8017 echo "${ECHO_T}ok" >&6
8018 fi
8019
8020 echo "$as_me:$LINENO: checking for objdir" >&5
8021 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8022 if test "${lt_cv_objdir+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025   rm -f .libs 2>/dev/null
8026 mkdir .libs 2>/dev/null
8027 if test -d .libs; then
8028   lt_cv_objdir=.libs
8029 else
8030   # MS-DOS does not allow filenames that begin with a dot.
8031   lt_cv_objdir=_libs
8032 fi
8033 rmdir .libs 2>/dev/null
8034 fi
8035 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8036 echo "${ECHO_T}$lt_cv_objdir" >&6
8037 objdir=$lt_cv_objdir
8038
8039
8040
8041
8042
8043 case $host_os in
8044 aix3*)
8045   # AIX sometimes has problems with the GCC collect2 program.  For some
8046   # reason, if we set the COLLECT_NAMES environment variable, the problems
8047   # vanish in a puff of smoke.
8048   if test "X${COLLECT_NAMES+set}" != Xset; then
8049     COLLECT_NAMES=
8050     export COLLECT_NAMES
8051   fi
8052   ;;
8053 esac
8054
8055 # Sed substitution that helps us do robust quoting.  It backslashifies
8056 # metacharacters that are still active within double-quoted strings.
8057 Xsed='sed -e 1s/^X//'
8058 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8059
8060 # Same as above, but do not quote variable references.
8061 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8062
8063 # Sed substitution to delay expansion of an escaped shell variable in a
8064 # double_quote_subst'ed string.
8065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8066
8067 # Sed substitution to avoid accidental globbing in evaled expressions
8068 no_glob_subst='s/\*/\\\*/g'
8069
8070 # Constants:
8071 rm="rm -f"
8072
8073 # Global variables:
8074 default_ofile=libtool
8075 can_build_shared=yes
8076
8077 # All known linkers require a `.a' archive for static linking (except M$VC,
8078 # which needs '.lib').
8079 libext=a
8080 ltmain="$ac_aux_dir/ltmain.sh"
8081 ofile="$default_ofile"
8082 with_gnu_ld="$lt_cv_prog_gnu_ld"
8083
8084 if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}ar; ac_word=$2
8087 echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8089 if test "${ac_cv_prog_AR+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   if test -n "$AR"; then
8093   ac_cv_prog_AR="$AR" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100   for ac_exec_ext in '' $ac_executable_extensions; do
8101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102     ac_cv_prog_AR="${ac_tool_prefix}ar"
8103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107 done
8108
8109 fi
8110 fi
8111 AR=$ac_cv_prog_AR
8112 if test -n "$AR"; then
8113   echo "$as_me:$LINENO: result: $AR" >&5
8114 echo "${ECHO_T}$AR" >&6
8115 else
8116   echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8118 fi
8119
8120 fi
8121 if test -z "$ac_cv_prog_AR"; then
8122   ac_ct_AR=$AR
8123   # Extract the first word of "ar", so it can be a program name with args.
8124 set dummy ar; ac_word=$2
8125 echo "$as_me:$LINENO: checking for $ac_word" >&5
8126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   if test -n "$ac_ct_AR"; then
8131   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138   for ac_exec_ext in '' $ac_executable_extensions; do
8139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_prog_ac_ct_AR="ar"
8141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145 done
8146
8147   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8148 fi
8149 fi
8150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8151 if test -n "$ac_ct_AR"; then
8152   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8153 echo "${ECHO_T}$ac_ct_AR" >&6
8154 else
8155   echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6
8157 fi
8158
8159   AR=$ac_ct_AR
8160 else
8161   AR="$ac_cv_prog_AR"
8162 fi
8163
8164 if test -n "$ac_tool_prefix"; then
8165   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8167 echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8169 if test "${ac_cv_prog_RANLIB+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   if test -n "$RANLIB"; then
8173   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180   for ac_exec_ext in '' $ac_executable_extensions; do
8181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187 done
8188
8189 fi
8190 fi
8191 RANLIB=$ac_cv_prog_RANLIB
8192 if test -n "$RANLIB"; then
8193   echo "$as_me:$LINENO: result: $RANLIB" >&5
8194 echo "${ECHO_T}$RANLIB" >&6
8195 else
8196   echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198 fi
8199
8200 fi
8201 if test -z "$ac_cv_prog_RANLIB"; then
8202   ac_ct_RANLIB=$RANLIB
8203   # Extract the first word of "ranlib", so it can be a program name with args.
8204 set dummy ranlib; ac_word=$2
8205 echo "$as_me:$LINENO: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   if test -n "$ac_ct_RANLIB"; then
8211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218   for ac_exec_ext in '' $ac_executable_extensions; do
8219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220     ac_cv_prog_ac_ct_RANLIB="ranlib"
8221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225 done
8226
8227   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8228 fi
8229 fi
8230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8231 if test -n "$ac_ct_RANLIB"; then
8232   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8234 else
8235   echo "$as_me:$LINENO: result: no" >&5
8236 echo "${ECHO_T}no" >&6
8237 fi
8238
8239   RANLIB=$ac_ct_RANLIB
8240 else
8241   RANLIB="$ac_cv_prog_RANLIB"
8242 fi
8243
8244 if test -n "$ac_tool_prefix"; then
8245   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}strip; ac_word=$2
8247 echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8249 if test "${ac_cv_prog_STRIP+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   if test -n "$STRIP"; then
8253   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260   for ac_exec_ext in '' $ac_executable_extensions; do
8261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267 done
8268
8269 fi
8270 fi
8271 STRIP=$ac_cv_prog_STRIP
8272 if test -n "$STRIP"; then
8273   echo "$as_me:$LINENO: result: $STRIP" >&5
8274 echo "${ECHO_T}$STRIP" >&6
8275 else
8276   echo "$as_me:$LINENO: result: no" >&5
8277 echo "${ECHO_T}no" >&6
8278 fi
8279
8280 fi
8281 if test -z "$ac_cv_prog_STRIP"; then
8282   ac_ct_STRIP=$STRIP
8283   # Extract the first word of "strip", so it can be a program name with args.
8284 set dummy strip; ac_word=$2
8285 echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   if test -n "$ac_ct_STRIP"; then
8291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8295 do
8296   IFS=$as_save_IFS
8297   test -z "$as_dir" && as_dir=.
8298   for ac_exec_ext in '' $ac_executable_extensions; do
8299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300     ac_cv_prog_ac_ct_STRIP="strip"
8301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302     break 2
8303   fi
8304 done
8305 done
8306
8307   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8308 fi
8309 fi
8310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8311 if test -n "$ac_ct_STRIP"; then
8312   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8313 echo "${ECHO_T}$ac_ct_STRIP" >&6
8314 else
8315   echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8317 fi
8318
8319   STRIP=$ac_ct_STRIP
8320 else
8321   STRIP="$ac_cv_prog_STRIP"
8322 fi
8323
8324
8325 old_CC="$CC"
8326 old_CFLAGS="$CFLAGS"
8327
8328 # Set sane defaults for various variables
8329 test -z "$AR" && AR=ar
8330 test -z "$AR_FLAGS" && AR_FLAGS=cru
8331 test -z "$AS" && AS=as
8332 test -z "$CC" && CC=cc
8333 test -z "$LTCC" && LTCC=$CC
8334 test -z "$DLLTOOL" && DLLTOOL=dlltool
8335 test -z "$LD" && LD=ld
8336 test -z "$LN_S" && LN_S="ln -s"
8337 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8338 test -z "$NM" && NM=nm
8339 test -z "$SED" && SED=sed
8340 test -z "$OBJDUMP" && OBJDUMP=objdump
8341 test -z "$RANLIB" && RANLIB=:
8342 test -z "$STRIP" && STRIP=:
8343 test -z "$ac_objext" && ac_objext=o
8344
8345 # Determine commands to create old-style static archives.
8346 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8347 old_postinstall_cmds='chmod 644 $oldlib'
8348 old_postuninstall_cmds=
8349
8350 if test -n "$RANLIB"; then
8351   case $host_os in
8352   openbsd*)
8353     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8354     ;;
8355   *)
8356     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8357     ;;
8358   esac
8359   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8360 fi
8361
8362 for cc_temp in $compiler""; do
8363   case $cc_temp in
8364     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8365     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8366     \-*) ;;
8367     *) break;;
8368   esac
8369 done
8370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8371
8372
8373 # Only perform the check for file, if the check method requires it
8374 case $deplibs_check_method in
8375 file_magic*)
8376   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8377     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8378 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8379 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   case $MAGIC_CMD in
8383 [\\/*] |  ?:[\\/]*)
8384   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8385   ;;
8386 *)
8387   lt_save_MAGIC_CMD="$MAGIC_CMD"
8388   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8389   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8390   for ac_dir in $ac_dummy; do
8391     IFS="$lt_save_ifs"
8392     test -z "$ac_dir" && ac_dir=.
8393     if test -f $ac_dir/${ac_tool_prefix}file; then
8394       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8395       if test -n "$file_magic_test_file"; then
8396         case $deplibs_check_method in
8397         "file_magic "*)
8398           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8399           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8400           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8401             $EGREP "$file_magic_regex" > /dev/null; then
8402             :
8403           else
8404             cat <<EOF 1>&2
8405
8406 *** Warning: the command libtool uses to detect shared libraries,
8407 *** $file_magic_cmd, produces output that libtool cannot recognize.
8408 *** The result is that libtool may fail to recognize shared libraries
8409 *** as such.  This will affect the creation of libtool libraries that
8410 *** depend on shared libraries, but programs linked with such libtool
8411 *** libraries will work regardless of this problem.  Nevertheless, you
8412 *** may want to report the problem to your system manager and/or to
8413 *** bug-libtool@gnu.org
8414
8415 EOF
8416           fi ;;
8417         esac
8418       fi
8419       break
8420     fi
8421   done
8422   IFS="$lt_save_ifs"
8423   MAGIC_CMD="$lt_save_MAGIC_CMD"
8424   ;;
8425 esac
8426 fi
8427
8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429 if test -n "$MAGIC_CMD"; then
8430   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8431 echo "${ECHO_T}$MAGIC_CMD" >&6
8432 else
8433   echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8435 fi
8436
8437 if test -z "$lt_cv_path_MAGIC_CMD"; then
8438   if test -n "$ac_tool_prefix"; then
8439     echo "$as_me:$LINENO: checking for file" >&5
8440 echo $ECHO_N "checking for file... $ECHO_C" >&6
8441 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8442   echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444   case $MAGIC_CMD in
8445 [\\/*] |  ?:[\\/]*)
8446   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8447   ;;
8448 *)
8449   lt_save_MAGIC_CMD="$MAGIC_CMD"
8450   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8451   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8452   for ac_dir in $ac_dummy; do
8453     IFS="$lt_save_ifs"
8454     test -z "$ac_dir" && ac_dir=.
8455     if test -f $ac_dir/file; then
8456       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8457       if test -n "$file_magic_test_file"; then
8458         case $deplibs_check_method in
8459         "file_magic "*)
8460           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8461           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8462           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8463             $EGREP "$file_magic_regex" > /dev/null; then
8464             :
8465           else
8466             cat <<EOF 1>&2
8467
8468 *** Warning: the command libtool uses to detect shared libraries,
8469 *** $file_magic_cmd, produces output that libtool cannot recognize.
8470 *** The result is that libtool may fail to recognize shared libraries
8471 *** as such.  This will affect the creation of libtool libraries that
8472 *** depend on shared libraries, but programs linked with such libtool
8473 *** libraries will work regardless of this problem.  Nevertheless, you
8474 *** may want to report the problem to your system manager and/or to
8475 *** bug-libtool@gnu.org
8476
8477 EOF
8478           fi ;;
8479         esac
8480       fi
8481       break
8482     fi
8483   done
8484   IFS="$lt_save_ifs"
8485   MAGIC_CMD="$lt_save_MAGIC_CMD"
8486   ;;
8487 esac
8488 fi
8489
8490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491 if test -n "$MAGIC_CMD"; then
8492   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8493 echo "${ECHO_T}$MAGIC_CMD" >&6
8494 else
8495   echo "$as_me:$LINENO: result: no" >&5
8496 echo "${ECHO_T}no" >&6
8497 fi
8498
8499   else
8500     MAGIC_CMD=:
8501   fi
8502 fi
8503
8504   fi
8505   ;;
8506 esac
8507
8508 enable_dlopen=yes
8509 enable_win32_dll=yes
8510
8511 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8512 if test "${enable_libtool_lock+set}" = set; then
8513   enableval="$enable_libtool_lock"
8514
8515 fi;
8516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8517
8518
8519 # Check whether --with-pic or --without-pic was given.
8520 if test "${with_pic+set}" = set; then
8521   withval="$with_pic"
8522   pic_mode="$withval"
8523 else
8524   pic_mode=default
8525 fi;
8526 test -z "$pic_mode" && pic_mode=default
8527
8528 # Use C for the default configuration in the libtool script
8529 tagname=
8530 lt_save_CC="$CC"
8531 ac_ext=c
8532 ac_cpp='$CPP $CPPFLAGS'
8533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536
8537
8538 # Source file extension for C test sources.
8539 ac_ext=c
8540
8541 # Object file extension for compiled C test sources.
8542 objext=o
8543 objext=$objext
8544
8545 # Code to be used in simple compile tests
8546 lt_simple_compile_test_code="int some_variable = 0;\n"
8547
8548 # Code to be used in simple link tests
8549 lt_simple_link_test_code='int main(){return(0);}\n'
8550
8551
8552 # If no C compiler was specified, use CC.
8553 LTCC=${LTCC-"$CC"}
8554
8555 # Allow CC to be a program name with arguments.
8556 compiler=$CC
8557
8558
8559 # save warnings/boilerplate of simple test code
8560 ac_outfile=conftest.$ac_objext
8561 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8563 _lt_compiler_boilerplate=`cat conftest.err`
8564 $rm conftest*
8565
8566 ac_outfile=conftest.$ac_objext
8567 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8569 _lt_linker_boilerplate=`cat conftest.err`
8570 $rm conftest*
8571
8572
8573 #
8574 # Check for any special shared library compilation flags.
8575 #
8576 lt_prog_cc_shlib=
8577 if test "$GCC" = no; then
8578   case $host_os in
8579   sco3.2v5*)
8580     lt_prog_cc_shlib='-belf'
8581     ;;
8582   esac
8583 fi
8584 if test -n "$lt_prog_cc_shlib"; then
8585   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8586 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8587   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8588   else
8589     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8590 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8591     lt_cv_prog_cc_can_build_shared=no
8592   fi
8593 fi
8594
8595
8596 #
8597 # Check to make sure the static flag actually works.
8598 #
8599 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8600 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8601 if test "${lt_prog_compiler_static_works+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   lt_prog_compiler_static_works=no
8605    save_LDFLAGS="$LDFLAGS"
8606    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8607    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8608    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8609      # The compiler can only warn and ignore the option if not recognized
8610      # So say no if there are warnings
8611      if test -s conftest.err; then
8612        # Append any errors to the config.log.
8613        cat conftest.err 1>&5
8614        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8615        $SED '/^$/d' conftest.err >conftest.er2
8616        if diff conftest.exp conftest.er2 >/dev/null; then
8617          lt_prog_compiler_static_works=yes
8618        fi
8619      else
8620        lt_prog_compiler_static_works=yes
8621      fi
8622    fi
8623    $rm conftest*
8624    LDFLAGS="$save_LDFLAGS"
8625
8626 fi
8627 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8628 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8629
8630 if test x"$lt_prog_compiler_static_works" = xyes; then
8631     :
8632 else
8633     lt_prog_compiler_static=
8634 fi
8635
8636
8637
8638
8639 lt_prog_compiler_no_builtin_flag=
8640
8641 if test "$GCC" = yes; then
8642   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8643
8644
8645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   lt_cv_prog_compiler_rtti_exceptions=no
8651   ac_outfile=conftest.$ac_objext
8652    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8653    lt_compiler_flag="-fno-rtti -fno-exceptions"
8654    # Insert the option either (1) after the last *FLAGS variable, or
8655    # (2) before a word containing "conftest.", or (3) at the end.
8656    # Note that $ac_compile itself does not contain backslashes and begins
8657    # with a dollar sign (not a hyphen), so the echo should work correctly.
8658    # The option is referenced via a variable to avoid confusing sed.
8659    lt_compile=`echo "$ac_compile" | $SED \
8660    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662    -e 's:$: $lt_compiler_flag:'`
8663    (eval echo "\"\$as_me:8663: $lt_compile\"" >&5)
8664    (eval "$lt_compile" 2>conftest.err)
8665    ac_status=$?
8666    cat conftest.err >&5
8667    echo "$as_me:8667: \$? = $ac_status" >&5
8668    if (exit $ac_status) && test -s "$ac_outfile"; then
8669      # The compiler can only warn and ignore the option if not recognized
8670      # So say no if there are warnings other than the usual output.
8671      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8672      $SED '/^$/d' conftest.err >conftest.er2
8673      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8674        lt_cv_prog_compiler_rtti_exceptions=yes
8675      fi
8676    fi
8677    $rm conftest*
8678
8679 fi
8680 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8681 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8682
8683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8684     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8685 else
8686     :
8687 fi
8688
8689 fi
8690
8691 lt_prog_compiler_wl=
8692 lt_prog_compiler_pic=
8693 lt_prog_compiler_static=
8694
8695 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8696 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8697
8698   if test "$GCC" = yes; then
8699     lt_prog_compiler_wl='-Wl,'
8700     lt_prog_compiler_static='-static'
8701
8702     case $host_os in
8703       aix*)
8704       # All AIX code is PIC.
8705       if test "$host_cpu" = ia64; then
8706         # AIX 5 now supports IA64 processor
8707         lt_prog_compiler_static='-Bstatic'
8708       fi
8709       ;;
8710
8711     amigaos*)
8712       # FIXME: we need at least 68020 code to build shared libraries, but
8713       # adding the `-m68020' flag to GCC prevents building anything better,
8714       # like `-m68040'.
8715       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8716       ;;
8717
8718     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8719       # PIC is the default for these OSes.
8720       ;;
8721
8722     mingw* | pw32* | os2*)
8723       # This hack is so that the source file can tell whether it is being
8724       # built for inclusion in a dll (and should export symbols for example).
8725       lt_prog_compiler_pic='-DDLL_EXPORT'
8726       ;;
8727
8728     darwin* | rhapsody*)
8729       # PIC is the default on this platform
8730       # Common symbols not allowed in MH_DYLIB files
8731       lt_prog_compiler_pic='-fno-common'
8732       ;;
8733
8734     msdosdjgpp*)
8735       # Just because we use GCC doesn't mean we suddenly get shared libraries
8736       # on systems that don't support them.
8737       lt_prog_compiler_can_build_shared=no
8738       enable_shared=no
8739       ;;
8740
8741     sysv4*MP*)
8742       if test -d /usr/nec; then
8743         lt_prog_compiler_pic=-Kconform_pic
8744       fi
8745       ;;
8746
8747     hpux*)
8748       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8749       # not for PA HP-UX.
8750       case "$host_cpu" in
8751       hppa*64*|ia64*)
8752         # +Z the default
8753         ;;
8754       *)
8755         lt_prog_compiler_pic='-fPIC'
8756         ;;
8757       esac
8758       ;;
8759
8760     *)
8761       lt_prog_compiler_pic='-fPIC'
8762       ;;
8763     esac
8764   else
8765     # PORTME Check for flag to pass linker flags through the system compiler.
8766     case $host_os in
8767     aix*)
8768       lt_prog_compiler_wl='-Wl,'
8769       if test "$host_cpu" = ia64; then
8770         # AIX 5 now supports IA64 processor
8771         lt_prog_compiler_static='-Bstatic'
8772       else
8773         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8774       fi
8775       ;;
8776       darwin*)
8777         # PIC is the default on this platform
8778         # Common symbols not allowed in MH_DYLIB files
8779        case $cc_basename in
8780          xlc*)
8781          lt_prog_compiler_pic='-qnocommon'
8782          lt_prog_compiler_wl='-Wl,'
8783          ;;
8784        esac
8785        ;;
8786
8787     mingw* | pw32* | os2*)
8788       # This hack is so that the source file can tell whether it is being
8789       # built for inclusion in a dll (and should export symbols for example).
8790       lt_prog_compiler_pic='-DDLL_EXPORT'
8791       ;;
8792
8793     hpux9* | hpux10* | hpux11*)
8794       lt_prog_compiler_wl='-Wl,'
8795       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8796       # not for PA HP-UX.
8797       case "$host_cpu" in
8798       hppa*64*|ia64*)
8799         # +Z the default
8800         ;;
8801       *)
8802         lt_prog_compiler_pic='+Z'
8803         ;;
8804       esac
8805       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8806       lt_prog_compiler_static='${wl}-a ${wl}archive'
8807       ;;
8808
8809     irix5* | irix6* | nonstopux*)
8810       lt_prog_compiler_wl='-Wl,'
8811       # PIC (with -KPIC) is the default.
8812       lt_prog_compiler_static='-non_shared'
8813       ;;
8814
8815     newsos6)
8816       lt_prog_compiler_pic='-KPIC'
8817       lt_prog_compiler_static='-Bstatic'
8818       ;;
8819
8820     linux*)
8821       case $cc_basename in
8822       icc* | ecc*)
8823         lt_prog_compiler_wl='-Wl,'
8824         lt_prog_compiler_pic='-KPIC'
8825         lt_prog_compiler_static='-static'
8826         ;;
8827       pgcc* | pgf77* | pgf90*)
8828         # Portland Group compilers (*not* the Pentium gcc compiler,
8829         # which looks to be a dead project)
8830         lt_prog_compiler_wl='-Wl,'
8831         lt_prog_compiler_pic='-fpic'
8832         lt_prog_compiler_static='-static'
8833         ;;
8834       ccc*)
8835         lt_prog_compiler_wl='-Wl,'
8836         # All Alpha code is PIC.
8837         lt_prog_compiler_static='-non_shared'
8838         ;;
8839       esac
8840       ;;
8841
8842     osf3* | osf4* | osf5*)
8843       lt_prog_compiler_wl='-Wl,'
8844       # All OSF/1 code is PIC.
8845       lt_prog_compiler_static='-non_shared'
8846       ;;
8847
8848     sco3.2v5*)
8849       lt_prog_compiler_pic='-Kpic'
8850       lt_prog_compiler_static='-dn'
8851       ;;
8852
8853     solaris*)
8854       lt_prog_compiler_pic='-KPIC'
8855       lt_prog_compiler_static='-Bstatic'
8856       case $cc_basename in
8857       f77* | f90* | f95*)
8858         lt_prog_compiler_wl='-Qoption ld ';;
8859       *)
8860         lt_prog_compiler_wl='-Wl,';;
8861       esac
8862       ;;
8863
8864     sunos4*)
8865       lt_prog_compiler_wl='-Qoption ld '
8866       lt_prog_compiler_pic='-PIC'
8867       lt_prog_compiler_static='-Bstatic'
8868       ;;
8869
8870     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8871       lt_prog_compiler_wl='-Wl,'
8872       lt_prog_compiler_pic='-KPIC'
8873       lt_prog_compiler_static='-Bstatic'
8874       ;;
8875
8876     sysv4*MP*)
8877       if test -d /usr/nec ;then
8878         lt_prog_compiler_pic='-Kconform_pic'
8879         lt_prog_compiler_static='-Bstatic'
8880       fi
8881       ;;
8882
8883     unicos*)
8884       lt_prog_compiler_wl='-Wl,'
8885       lt_prog_compiler_can_build_shared=no
8886       ;;
8887
8888     uts4*)
8889       lt_prog_compiler_pic='-pic'
8890       lt_prog_compiler_static='-Bstatic'
8891       ;;
8892
8893     *)
8894       lt_prog_compiler_can_build_shared=no
8895       ;;
8896     esac
8897   fi
8898
8899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8900 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8901
8902 #
8903 # Check to make sure the PIC flag actually works.
8904 #
8905 if test -n "$lt_prog_compiler_pic"; then
8906
8907 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8908 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8909 if test "${lt_prog_compiler_pic_works+set}" = set; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   lt_prog_compiler_pic_works=no
8913   ac_outfile=conftest.$ac_objext
8914    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8915    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8916    # Insert the option either (1) after the last *FLAGS variable, or
8917    # (2) before a word containing "conftest.", or (3) at the end.
8918    # Note that $ac_compile itself does not contain backslashes and begins
8919    # with a dollar sign (not a hyphen), so the echo should work correctly.
8920    # The option is referenced via a variable to avoid confusing sed.
8921    lt_compile=`echo "$ac_compile" | $SED \
8922    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924    -e 's:$: $lt_compiler_flag:'`
8925    (eval echo "\"\$as_me:8925: $lt_compile\"" >&5)
8926    (eval "$lt_compile" 2>conftest.err)
8927    ac_status=$?
8928    cat conftest.err >&5
8929    echo "$as_me:8929: \$? = $ac_status" >&5
8930    if (exit $ac_status) && test -s "$ac_outfile"; then
8931      # The compiler can only warn and ignore the option if not recognized
8932      # So say no if there are warnings other than the usual output.
8933      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8934      $SED '/^$/d' conftest.err >conftest.er2
8935      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8936        lt_prog_compiler_pic_works=yes
8937      fi
8938    fi
8939    $rm conftest*
8940
8941 fi
8942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8943 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8944
8945 if test x"$lt_prog_compiler_pic_works" = xyes; then
8946     case $lt_prog_compiler_pic in
8947      "" | " "*) ;;
8948      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8949      esac
8950 else
8951     lt_prog_compiler_pic=
8952      lt_prog_compiler_can_build_shared=no
8953 fi
8954
8955 fi
8956 case "$host_os" in
8957   # For platforms which do not support PIC, -DPIC is meaningless:
8958   *djgpp*)
8959     lt_prog_compiler_pic=
8960     ;;
8961   *)
8962     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8963     ;;
8964 esac
8965
8966 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971   lt_cv_prog_compiler_c_o=no
8972    $rm -r conftest 2>/dev/null
8973    mkdir conftest
8974    cd conftest
8975    mkdir out
8976    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8977
8978    lt_compiler_flag="-o out/conftest2.$ac_objext"
8979    # Insert the option either (1) after the last *FLAGS variable, or
8980    # (2) before a word containing "conftest.", or (3) at the end.
8981    # Note that $ac_compile itself does not contain backslashes and begins
8982    # with a dollar sign (not a hyphen), so the echo should work correctly.
8983    lt_compile=`echo "$ac_compile" | $SED \
8984    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986    -e 's:$: $lt_compiler_flag:'`
8987    (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988    (eval "$lt_compile" 2>out/conftest.err)
8989    ac_status=$?
8990    cat out/conftest.err >&5
8991    echo "$as_me:8991: \$? = $ac_status" >&5
8992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8993    then
8994      # The compiler can only warn and ignore the option if not recognized
8995      # So say no if there are warnings
8996      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8997      $SED '/^$/d' out/conftest.err >out/conftest.er2
8998      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8999        lt_cv_prog_compiler_c_o=yes
9000      fi
9001    fi
9002    chmod u+w .
9003    $rm conftest*
9004    # SGI C++ compiler will create directory out/ii_files/ for
9005    # template instantiation
9006    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9007    $rm out/* && rmdir out
9008    cd ..
9009    rmdir conftest
9010    $rm conftest*
9011
9012 fi
9013 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9015
9016
9017 hard_links="nottested"
9018 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9019   # do not overwrite the value of need_locks provided by the user
9020   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9022   hard_links=yes
9023   $rm conftest*
9024   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025   touch conftest.a
9026   ln conftest.a conftest.b 2>&5 || hard_links=no
9027   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028   echo "$as_me:$LINENO: result: $hard_links" >&5
9029 echo "${ECHO_T}$hard_links" >&6
9030   if test "$hard_links" = no; then
9031     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9033     need_locks=warn
9034   fi
9035 else
9036   need_locks=no
9037 fi
9038
9039 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9041
9042   runpath_var=
9043   allow_undefined_flag=
9044   enable_shared_with_static_runtimes=no
9045   archive_cmds=
9046   archive_expsym_cmds=
9047   old_archive_From_new_cmds=
9048   old_archive_from_expsyms_cmds=
9049   export_dynamic_flag_spec=
9050   whole_archive_flag_spec=
9051   thread_safe_flag_spec=
9052   hardcode_libdir_flag_spec=
9053   hardcode_libdir_flag_spec_ld=
9054   hardcode_libdir_separator=
9055   hardcode_direct=no
9056   hardcode_minus_L=no
9057   hardcode_shlibpath_var=unsupported
9058   link_all_deplibs=unknown
9059   hardcode_automatic=no
9060   module_cmds=
9061   module_expsym_cmds=
9062   always_export_symbols=no
9063   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9064   # include_expsyms should be a list of space-separated symbols to be *always*
9065   # included in the symbol list
9066   include_expsyms=
9067   # exclude_expsyms can be an extended regexp of symbols to exclude
9068   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9069   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9070   # as well as any symbol that contains `d'.
9071   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9072   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9073   # platforms (ab)use it in PIC code, but their linkers get confused if
9074   # the symbol is explicitly referenced.  Since portable code cannot
9075   # rely on this symbol name, it's probably fine to never include it in
9076   # preloaded symbol tables.
9077   extract_expsyms_cmds=
9078   # Just being paranoid about ensuring that cc_basename is set.
9079   for cc_temp in $compiler""; do
9080   case $cc_temp in
9081     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9082     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9083     \-*) ;;
9084     *) break;;
9085   esac
9086 done
9087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9088
9089   case $host_os in
9090   cygwin* | mingw* | pw32*)
9091     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9092     # When not using gcc, we currently assume that we are using
9093     # Microsoft Visual C++.
9094     if test "$GCC" != yes; then
9095       with_gnu_ld=no
9096     fi
9097     ;;
9098   openbsd*)
9099     with_gnu_ld=no
9100     ;;
9101   esac
9102
9103   ld_shlibs=yes
9104   if test "$with_gnu_ld" = yes; then
9105     # If archive_cmds runs LD, not CC, wlarc should be empty
9106     wlarc='${wl}'
9107
9108     # Set some defaults for GNU ld with shared library support. These
9109     # are reset later if shared libraries are not supported. Putting them
9110     # here allows them to be overridden if necessary.
9111     runpath_var=LD_RUN_PATH
9112     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9113     export_dynamic_flag_spec='${wl}--export-dynamic'
9114     # ancient GNU ld didn't support --whole-archive et. al.
9115     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9116         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9117       else
9118         whole_archive_flag_spec=
9119     fi
9120     supports_anon_versioning=no
9121     case `$LD -v 2>/dev/null` in
9122       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9123       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9124       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9125       *\ 2.11.*) ;; # other 2.11 versions
9126       *) supports_anon_versioning=yes ;;
9127     esac
9128
9129     # See if GNU ld supports shared libraries.
9130     case $host_os in
9131     aix3* | aix4* | aix5*)
9132       # On AIX/PPC, the GNU linker is very broken
9133       if test "$host_cpu" != ia64; then
9134         ld_shlibs=no
9135         cat <<EOF 1>&2
9136
9137 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9138 *** to be unable to reliably create shared libraries on AIX.
9139 *** Therefore, libtool is disabling shared libraries support.  If you
9140 *** really care for shared libraries, you may want to modify your PATH
9141 *** so that a non-GNU linker is found, and then restart.
9142
9143 EOF
9144       fi
9145       ;;
9146
9147     amigaos*)
9148       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)'
9149       hardcode_libdir_flag_spec='-L$libdir'
9150       hardcode_minus_L=yes
9151
9152       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9153       # that the semantics of dynamic libraries on AmigaOS, at least up
9154       # to version 4, is to share data among multiple programs linked
9155       # with the same dynamic library.  Since this doesn't match the
9156       # behavior of shared libraries on other platforms, we can't use
9157       # them.
9158       ld_shlibs=no
9159       ;;
9160
9161     beos*)
9162       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9163         allow_undefined_flag=unsupported
9164         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9165         # support --undefined.  This deserves some investigation.  FIXME
9166         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167       else
9168         ld_shlibs=no
9169       fi
9170       ;;
9171
9172     cygwin* | mingw* | pw32*)
9173       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9174       # as there is no search path for DLLs.
9175       hardcode_libdir_flag_spec='-L$libdir'
9176       allow_undefined_flag=unsupported
9177       always_export_symbols=no
9178       enable_shared_with_static_runtimes=yes
9179       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9180
9181       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9182         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9183         # If the export-symbols file already is a .def file (1st line
9184         # is EXPORTS), use it as is; otherwise, prepend...
9185         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9186           cp $export_symbols $output_objdir/$soname.def;
9187         else
9188           echo EXPORTS > $output_objdir/$soname.def;
9189           cat $export_symbols >> $output_objdir/$soname.def;
9190         fi~
9191         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9192       else
9193         ld_shlibs=no
9194       fi
9195       ;;
9196
9197     linux*)
9198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9199         tmp_addflag=
9200         case $cc_basename,$host_cpu in
9201         pgcc*)                          # Portland Group C compiler
9202           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'
9203           tmp_addflag=' $pic_flag'
9204           ;;
9205         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9206           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'
9207           tmp_addflag=' $pic_flag -Mnomain' ;;
9208         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9209           tmp_addflag=' -i_dynamic' ;;
9210         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9211           tmp_addflag=' -i_dynamic -nofor_main' ;;
9212         ifc* | ifort*)                  # Intel Fortran compiler
9213           tmp_addflag=' -nofor_main' ;;
9214         esac
9215         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216
9217         if test $supports_anon_versioning = yes; then
9218           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9219   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220   $echo "local: *; };" >> $output_objdir/$libname.ver~
9221           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9222         fi
9223       else
9224         ld_shlibs=no
9225       fi
9226       ;;
9227
9228     netbsd*)
9229       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9230         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9231         wlarc=
9232       else
9233         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9235       fi
9236       ;;
9237
9238     solaris* | sysv5*)
9239       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9240         ld_shlibs=no
9241         cat <<EOF 1>&2
9242
9243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9244 *** create shared libraries on Solaris systems.  Therefore, libtool
9245 *** is disabling shared libraries support.  We urge you to upgrade GNU
9246 *** binutils to release 2.9.1 or newer.  Another option is to modify
9247 *** your PATH or compiler configuration so that the native linker is
9248 *** used, and then restart.
9249
9250 EOF
9251       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9252         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254       else
9255         ld_shlibs=no
9256       fi
9257       ;;
9258
9259     sunos4*)
9260       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261       wlarc=
9262       hardcode_direct=yes
9263       hardcode_shlibpath_var=no
9264       ;;
9265
9266     *)
9267       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9270       else
9271         ld_shlibs=no
9272       fi
9273       ;;
9274     esac
9275
9276     if test "$ld_shlibs" = no; then
9277       runpath_var=
9278       hardcode_libdir_flag_spec=
9279       export_dynamic_flag_spec=
9280       whole_archive_flag_spec=
9281     fi
9282   else
9283     # PORTME fill in a description of your system's linker (not GNU ld)
9284     case $host_os in
9285     aix3*)
9286       allow_undefined_flag=unsupported
9287       always_export_symbols=yes
9288       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'
9289       # Note: this linker hardcodes the directories in LIBPATH if there
9290       # are no directories specified by -L.
9291       hardcode_minus_L=yes
9292       if test "$GCC" = yes && test -z "$link_static_flag"; then
9293         # Neither direct hardcoding nor static linking is supported with a
9294         # broken collect2.
9295         hardcode_direct=unsupported
9296       fi
9297       ;;
9298
9299     aix4* | aix5*)
9300       if test "$host_cpu" = ia64; then
9301         # On IA64, the linker does run time linking by default, so we don't
9302         # have to do anything special.
9303         aix_use_runtimelinking=no
9304         exp_sym_flag='-Bexport'
9305         no_entry_flag=""
9306       else
9307         # If we're using GNU nm, then we don't want the "-C" option.
9308         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9309         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9310           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'
9311         else
9312           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'
9313         fi
9314         aix_use_runtimelinking=no
9315
9316         # Test if we are trying to use run time linking or normal
9317         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9318         # need to do runtime linking.
9319         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9320           for ld_flag in $LDFLAGS; do
9321           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9322             aix_use_runtimelinking=yes
9323             break
9324           fi
9325           done
9326         esac
9327
9328         exp_sym_flag='-bexport'
9329         no_entry_flag='-bnoentry'
9330       fi
9331
9332       # When large executables or shared objects are built, AIX ld can
9333       # have problems creating the table of contents.  If linking a library
9334       # or program results in "error TOC overflow" add -mminimal-toc to
9335       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9336       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9337
9338       archive_cmds=''
9339       hardcode_direct=yes
9340       hardcode_libdir_separator=':'
9341       link_all_deplibs=yes
9342
9343       if test "$GCC" = yes; then
9344         case $host_os in aix4.[012]|aix4.[012].*)
9345         # We only want to do this on AIX 4.2 and lower, the check
9346         # below for broken collect2 doesn't work under 4.3+
9347           collect2name=`${CC} -print-prog-name=collect2`
9348           if test -f "$collect2name" && \
9349            strings "$collect2name" | grep resolve_lib_name >/dev/null
9350           then
9351           # We have reworked collect2
9352           hardcode_direct=yes
9353           else
9354           # We have old collect2
9355           hardcode_direct=unsupported
9356           # It fails to find uninstalled libraries when the uninstalled
9357           # path is not listed in the libpath.  Setting hardcode_minus_L
9358           # to unsupported forces relinking
9359           hardcode_minus_L=yes
9360           hardcode_libdir_flag_spec='-L$libdir'
9361           hardcode_libdir_separator=
9362           fi
9363         esac
9364         shared_flag='-shared'
9365         if test "$aix_use_runtimelinking" = yes; then
9366           shared_flag="$shared_flag "'${wl}-G'
9367         fi
9368       else
9369         # not using gcc
9370         if test "$host_cpu" = ia64; then
9371         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9372         # chokes on -Wl,-G. The following line is correct:
9373           shared_flag='-G'
9374         else
9375         if test "$aix_use_runtimelinking" = yes; then
9376             shared_flag='${wl}-G'
9377           else
9378             shared_flag='${wl}-bM:SRE'
9379         fi
9380         fi
9381       fi
9382
9383       # It seems that -bexpall does not export symbols beginning with
9384       # underscore (_), so it is better to generate a list of symbols to export.
9385       always_export_symbols=yes
9386       if test "$aix_use_runtimelinking" = yes; then
9387         # Warning - without using the other runtime loading flags (-brtl),
9388         # -berok will link without error, but may produce a broken library.
9389         allow_undefined_flag='-berok'
9390        # Determine the default libpath from the value encoded in an empty executable.
9391        cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397
9398 int
9399 main ()
9400 {
9401
9402   ;
9403   return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408   (eval $ac_link) 2>conftest.er1
9409   ac_status=$?
9410   grep -v '^ *+' conftest.er1 >conftest.err
9411   rm -f conftest.er1
9412   cat conftest.err >&5
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -z "$ac_c_werror_flag"
9416                          || test ! -s conftest.err'
9417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; } &&
9422          { ac_try='test -s conftest$ac_exeext'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; }; then
9428
9429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9430 }'`
9431 # Check for a 64-bit object if we didn't find anything.
9432 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; }
9433 }'`; fi
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 fi
9439 rm -f conftest.err conftest.$ac_objext \
9440       conftest$ac_exeext conftest.$ac_ext
9441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9442
9443        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9444         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"
9445        else
9446         if test "$host_cpu" = ia64; then
9447           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9448           allow_undefined_flag="-z nodefs"
9449           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"
9450         else
9451          # Determine the default libpath from the value encoded in an empty executable.
9452          cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458
9459 int
9460 main ()
9461 {
9462
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469   (eval $ac_link) 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag"
9477                          || test ! -s conftest.err'
9478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479   (eval $ac_try) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; } &&
9483          { ac_try='test -s conftest$ac_exeext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489
9490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9491 }'`
9492 # Check for a 64-bit object if we didn't find anything.
9493 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; }
9494 }'`; fi
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 fi
9500 rm -f conftest.err conftest.$ac_objext \
9501       conftest$ac_exeext conftest.$ac_ext
9502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9503
9504          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9505           # Warning - without using the other run time loading flags,
9506           # -berok will link without error, but may produce a broken library.
9507           no_undefined_flag=' ${wl}-bernotok'
9508           allow_undefined_flag=' ${wl}-berok'
9509           # -bexpall does not export symbols beginning with underscore (_)
9510           always_export_symbols=yes
9511           # Exported symbols can be pulled into shared objects from archives
9512           whole_archive_flag_spec=' '
9513           archive_cmds_need_lc=yes
9514           # This is similar to how AIX traditionally builds it's shared libraries.
9515           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'
9516         fi
9517       fi
9518       ;;
9519
9520     amigaos*)
9521       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)'
9522       hardcode_libdir_flag_spec='-L$libdir'
9523       hardcode_minus_L=yes
9524       # see comment about different semantics on the GNU ld section
9525       ld_shlibs=no
9526       ;;
9527
9528     bsdi[45]*)
9529       export_dynamic_flag_spec=-rdynamic
9530       ;;
9531
9532     cygwin* | mingw* | pw32*)
9533       # When not using gcc, we currently assume that we are using
9534       # Microsoft Visual C++.
9535       # hardcode_libdir_flag_spec is actually meaningless, as there is
9536       # no search path for DLLs.
9537       hardcode_libdir_flag_spec=' '
9538       allow_undefined_flag=unsupported
9539       # Tell ltmain to make .lib files, not .a files.
9540       libext=lib
9541       # Tell ltmain to make .dll files, not .so files.
9542       shrext_cmds=".dll"
9543       # FIXME: Setting linknames here is a bad hack.
9544       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9545       # The linker will automatically build a .lib file if we build a DLL.
9546       old_archive_From_new_cmds='true'
9547       # FIXME: Should let the user specify the lib program.
9548       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9549       fix_srcfile_path='`cygpath -w "$srcfile"`'
9550       enable_shared_with_static_runtimes=yes
9551       ;;
9552
9553     darwin* | rhapsody*)
9554       case "$host_os" in
9555         rhapsody* | darwin1.[012])
9556          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9557          ;;
9558        *) # Darwin 1.3 on
9559          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9560            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9561          else
9562            case ${MACOSX_DEPLOYMENT_TARGET} in
9563              10.[012])
9564                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9565                ;;
9566              10.*)
9567                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9568                ;;
9569            esac
9570          fi
9571          ;;
9572       esac
9573       archive_cmds_need_lc=no
9574       hardcode_direct=no
9575       hardcode_automatic=yes
9576       hardcode_shlibpath_var=unsupported
9577       whole_archive_flag_spec=''
9578       link_all_deplibs=yes
9579     if test "$GCC" = yes ; then
9580         output_verbose_link_cmd='echo'
9581         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9582       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9583       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9584       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}'
9585       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}'
9586     else
9587       case $cc_basename in
9588         xlc*)
9589          output_verbose_link_cmd='echo'
9590          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9591          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9592           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9593          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}'
9594           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}'
9595           ;;
9596        *)
9597          ld_shlibs=no
9598           ;;
9599       esac
9600     fi
9601       ;;
9602
9603     dgux*)
9604       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605       hardcode_libdir_flag_spec='-L$libdir'
9606       hardcode_shlibpath_var=no
9607       ;;
9608
9609     freebsd1*)
9610       ld_shlibs=no
9611       ;;
9612
9613     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9614     # support.  Future versions do this automatically, but an explicit c++rt0.o
9615     # does not break anything, and helps significantly (at the cost of a little
9616     # extra space).
9617     freebsd2.2*)
9618       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9619       hardcode_libdir_flag_spec='-R$libdir'
9620       hardcode_direct=yes
9621       hardcode_shlibpath_var=no
9622       ;;
9623
9624     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9625     freebsd2*)
9626       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9627       hardcode_direct=yes
9628       hardcode_minus_L=yes
9629       hardcode_shlibpath_var=no
9630       ;;
9631
9632     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9633     freebsd* | kfreebsd*-gnu | dragonfly*)
9634       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9635       hardcode_libdir_flag_spec='-R$libdir'
9636       hardcode_direct=yes
9637       hardcode_shlibpath_var=no
9638       ;;
9639
9640     hpux9*)
9641       if test "$GCC" = yes; then
9642         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'
9643       else
9644         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'
9645       fi
9646       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9647       hardcode_libdir_separator=:
9648       hardcode_direct=yes
9649
9650       # hardcode_minus_L: Not really in the search PATH,
9651       # but as the default location of the library.
9652       hardcode_minus_L=yes
9653       export_dynamic_flag_spec='${wl}-E'
9654       ;;
9655
9656     hpux10* | hpux11*)
9657       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9658         case "$host_cpu" in
9659         hppa*64*|ia64*)
9660           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661           ;;
9662         *)
9663           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9664           ;;
9665         esac
9666       else
9667         case "$host_cpu" in
9668         hppa*64*|ia64*)
9669           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9670           ;;
9671         *)
9672           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9673           ;;
9674         esac
9675       fi
9676       if test "$with_gnu_ld" = no; then
9677         case "$host_cpu" in
9678         hppa*64*)
9679           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9680           hardcode_libdir_flag_spec_ld='+b $libdir'
9681           hardcode_libdir_separator=:
9682           hardcode_direct=no
9683           hardcode_shlibpath_var=no
9684           ;;
9685         ia64*)
9686           hardcode_libdir_flag_spec='-L$libdir'
9687           hardcode_direct=no
9688           hardcode_shlibpath_var=no
9689
9690           # hardcode_minus_L: Not really in the search PATH,
9691           # but as the default location of the library.
9692           hardcode_minus_L=yes
9693           ;;
9694         *)
9695           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696           hardcode_libdir_separator=:
9697           hardcode_direct=yes
9698           export_dynamic_flag_spec='${wl}-E'
9699
9700           # hardcode_minus_L: Not really in the search PATH,
9701           # but as the default location of the library.
9702           hardcode_minus_L=yes
9703           ;;
9704         esac
9705       fi
9706       ;;
9707
9708     irix5* | irix6* | nonstopux*)
9709       if test "$GCC" = yes; then
9710         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'
9711       else
9712         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'
9713         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9714       fi
9715       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9716       hardcode_libdir_separator=:
9717       link_all_deplibs=yes
9718       ;;
9719
9720     netbsd*)
9721       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9722         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9723       else
9724         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9725       fi
9726       hardcode_libdir_flag_spec='-R$libdir'
9727       hardcode_direct=yes
9728       hardcode_shlibpath_var=no
9729       ;;
9730
9731     newsos6)
9732       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733       hardcode_direct=yes
9734       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9735       hardcode_libdir_separator=:
9736       hardcode_shlibpath_var=no
9737       ;;
9738
9739     openbsd*)
9740       hardcode_direct=yes
9741       hardcode_shlibpath_var=no
9742       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9744         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9745         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9746         export_dynamic_flag_spec='${wl}-E'
9747       else
9748        case $host_os in
9749          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9750            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9751            hardcode_libdir_flag_spec='-R$libdir'
9752            ;;
9753          *)
9754            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9755            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9756            ;;
9757        esac
9758       fi
9759       ;;
9760
9761     os2*)
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       hardcode_minus_L=yes
9764       allow_undefined_flag=unsupported
9765       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'
9766       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9767       ;;
9768
9769     osf3*)
9770       if test "$GCC" = yes; then
9771         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9772         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'
9773       else
9774         allow_undefined_flag=' -expect_unresolved \*'
9775         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'
9776       fi
9777       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9778       hardcode_libdir_separator=:
9779       ;;
9780
9781     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9782       if test "$GCC" = yes; then
9783         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9784         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'
9785         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9786       else
9787         allow_undefined_flag=' -expect_unresolved \*'
9788         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'
9789         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9790         $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'
9791
9792         # Both c and cxx compiler support -rpath directly
9793         hardcode_libdir_flag_spec='-rpath $libdir'
9794       fi
9795       hardcode_libdir_separator=:
9796       ;;
9797
9798     sco3.2v5*)
9799       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800       hardcode_shlibpath_var=no
9801       export_dynamic_flag_spec='${wl}-Bexport'
9802       runpath_var=LD_RUN_PATH
9803       hardcode_runpath_var=yes
9804       ;;
9805
9806     solaris*)
9807       no_undefined_flag=' -z text'
9808       if test "$GCC" = yes; then
9809         wlarc='${wl}'
9810         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9811         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9812           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9813       else
9814         wlarc=''
9815         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9817         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9818       fi
9819       hardcode_libdir_flag_spec='-R$libdir'
9820       hardcode_shlibpath_var=no
9821       case $host_os in
9822       solaris2.[0-5] | solaris2.[0-5].*) ;;
9823       *)
9824         # The compiler driver will combine linker options so we
9825         # cannot just pass the convience library names through
9826         # without $wl, iff we do not link with $LD.
9827         # Luckily, gcc supports the same syntax we need for Sun Studio.
9828         # Supported since Solaris 2.6 (maybe 2.5.1?)
9829         case $wlarc in
9830         '')
9831           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9832         *)
9833           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' ;;
9834         esac ;;
9835       esac
9836       link_all_deplibs=yes
9837       ;;
9838
9839     sunos4*)
9840       if test "x$host_vendor" = xsequent; then
9841         # Use $CC to link under sequent, because it throws in some extra .o
9842         # files that make .init and .fini sections work.
9843         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9844       else
9845         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9846       fi
9847       hardcode_libdir_flag_spec='-L$libdir'
9848       hardcode_direct=yes
9849       hardcode_minus_L=yes
9850       hardcode_shlibpath_var=no
9851       ;;
9852
9853     sysv4)
9854       case $host_vendor in
9855         sni)
9856           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857           hardcode_direct=yes # is this really true???
9858         ;;
9859         siemens)
9860           ## LD is ld it makes a PLAMLIB
9861           ## CC just makes a GrossModule.
9862           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9863           reload_cmds='$CC -r -o $output$reload_objs'
9864           hardcode_direct=no
9865         ;;
9866         motorola)
9867           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9869         ;;
9870       esac
9871       runpath_var='LD_RUN_PATH'
9872       hardcode_shlibpath_var=no
9873       ;;
9874
9875     sysv4.3*)
9876       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877       hardcode_shlibpath_var=no
9878       export_dynamic_flag_spec='-Bexport'
9879       ;;
9880
9881     sysv4*MP*)
9882       if test -d /usr/nec; then
9883         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884         hardcode_shlibpath_var=no
9885         runpath_var=LD_RUN_PATH
9886         hardcode_runpath_var=yes
9887         ld_shlibs=yes
9888       fi
9889       ;;
9890
9891     sysv4.2uw2*)
9892       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9893       hardcode_direct=yes
9894       hardcode_minus_L=no
9895       hardcode_shlibpath_var=no
9896       hardcode_runpath_var=yes
9897       runpath_var=LD_RUN_PATH
9898       ;;
9899
9900    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9901       no_undefined_flag='${wl}-z ${wl}text'
9902       if test "$GCC" = yes; then
9903         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9904       else
9905         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9906       fi
9907       runpath_var='LD_RUN_PATH'
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     sysv5*)
9912       no_undefined_flag=' -z text'
9913       # $CC -shared without GNU ld will not create a library from C++
9914       # object files and a static libstdc++, better avoid it by now
9915       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9917                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9918       hardcode_libdir_flag_spec=
9919       hardcode_shlibpath_var=no
9920       runpath_var='LD_RUN_PATH'
9921       ;;
9922
9923     uts4*)
9924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925       hardcode_libdir_flag_spec='-L$libdir'
9926       hardcode_shlibpath_var=no
9927       ;;
9928
9929     *)
9930       ld_shlibs=no
9931       ;;
9932     esac
9933   fi
9934
9935 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9936 echo "${ECHO_T}$ld_shlibs" >&6
9937 test "$ld_shlibs" = no && can_build_shared=no
9938
9939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9940 if test "$GCC" = yes; then
9941   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9942 fi
9943
9944 #
9945 # Do we need to explicitly link libc?
9946 #
9947 case "x$archive_cmds_need_lc" in
9948 x|xyes)
9949   # Assume -lc should be added
9950   archive_cmds_need_lc=yes
9951
9952   if test "$enable_shared" = yes && test "$GCC" = yes; then
9953     case $archive_cmds in
9954     *'~'*)
9955       # FIXME: we may have to deal with multi-command sequences.
9956       ;;
9957     '$CC '*)
9958       # Test whether the compiler implicitly links with -lc since on some
9959       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9960       # to ld, don't add -lc before -lgcc.
9961       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9962 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9963       $rm conftest*
9964       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9965
9966       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967   (eval $ac_compile) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } 2>conftest.err; then
9971         soname=conftest
9972         lib=conftest
9973         libobjs=conftest.$ac_objext
9974         deplibs=
9975         wl=$lt_prog_compiler_wl
9976         compiler_flags=-v
9977         linker_flags=-v
9978         verstring=
9979         output_objdir=.
9980         libname=conftest
9981         lt_save_allow_undefined_flag=$allow_undefined_flag
9982         allow_undefined_flag=
9983         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9984   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); }
9988         then
9989           archive_cmds_need_lc=no
9990         else
9991           archive_cmds_need_lc=yes
9992         fi
9993         allow_undefined_flag=$lt_save_allow_undefined_flag
9994       else
9995         cat conftest.err 1>&5
9996       fi
9997       $rm conftest*
9998       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9999 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10000       ;;
10001     esac
10002   fi
10003   ;;
10004 esac
10005
10006 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10008 library_names_spec=
10009 libname_spec='lib$name'
10010 soname_spec=
10011 shrext_cmds=".so"
10012 postinstall_cmds=
10013 postuninstall_cmds=
10014 finish_cmds=
10015 finish_eval=
10016 shlibpath_var=
10017 shlibpath_overrides_runpath=unknown
10018 version_type=none
10019 dynamic_linker="$host_os ld.so"
10020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10021 if test "$GCC" = yes; then
10022   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10023   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10024     # if the path contains ";" then we assume it to be the separator
10025     # otherwise default to the standard path separator (i.e. ":") - it is
10026     # assumed that no part of a normal pathname contains ";" but that should
10027     # okay in the real world where ";" in dirpaths is itself problematic.
10028     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10029   else
10030     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10031   fi
10032 else
10033   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10034 fi
10035 need_lib_prefix=unknown
10036 hardcode_into_libs=no
10037
10038 # when you set need_version to no, make sure it does not cause -set_version
10039 # flags to be left without arguments
10040 need_version=unknown
10041
10042 case $host_os in
10043 aix3*)
10044   version_type=linux
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10046   shlibpath_var=LIBPATH
10047
10048   # AIX 3 has no versioning support, so we append a major version to the name.
10049   soname_spec='${libname}${release}${shared_ext}$major'
10050   ;;
10051
10052 aix4* | aix5*)
10053   version_type=linux
10054   need_lib_prefix=no
10055   need_version=no
10056   hardcode_into_libs=yes
10057   if test "$host_cpu" = ia64; then
10058     # AIX 5 supports IA64
10059     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10060     shlibpath_var=LD_LIBRARY_PATH
10061   else
10062     # With GCC up to 2.95.x, collect2 would create an import file
10063     # for dependence libraries.  The import file would start with
10064     # the line `#! .'.  This would cause the generated library to
10065     # depend on `.', always an invalid library.  This was fixed in
10066     # development snapshots of GCC prior to 3.0.
10067     case $host_os in
10068       aix4 | aix4.[01] | aix4.[01].*)
10069       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10070            echo ' yes '
10071            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10072         :
10073       else
10074         can_build_shared=no
10075       fi
10076       ;;
10077     esac
10078     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10079     # soname into executable. Probably we can add versioning support to
10080     # collect2, so additional links can be useful in future.
10081     if test "$aix_use_runtimelinking" = yes; then
10082       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10083       # instead of lib<name>.a to let people know that these are not
10084       # typical AIX shared libraries.
10085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086     else
10087       # We preserve .a as extension for shared libraries through AIX4.2
10088       # and later when we are not doing run time linking.
10089       library_names_spec='${libname}${release}.a $libname.a'
10090       soname_spec='${libname}${release}${shared_ext}$major'
10091     fi
10092     shlibpath_var=LIBPATH
10093   fi
10094   ;;
10095
10096 amigaos*)
10097   library_names_spec='$libname.ixlibrary $libname.a'
10098   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10099   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'
10100   ;;
10101
10102 beos*)
10103   library_names_spec='${libname}${shared_ext}'
10104   dynamic_linker="$host_os ld.so"
10105   shlibpath_var=LIBRARY_PATH
10106   ;;
10107
10108 bsdi[45]*)
10109   version_type=linux
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10114   shlibpath_var=LD_LIBRARY_PATH
10115   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10116   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10117   # the default ld.so.conf also contains /usr/contrib/lib and
10118   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10119   # libtool to hard-code these into programs
10120   ;;
10121
10122 cygwin* | mingw* | pw32*)
10123   version_type=windows
10124   shrext_cmds=".dll"
10125   need_version=no
10126   need_lib_prefix=no
10127
10128   case $GCC,$host_os in
10129   yes,cygwin* | yes,mingw* | yes,pw32*)
10130     library_names_spec='$libname.dll.a'
10131     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10132     postinstall_cmds='base_file=`basename \${file}`~
10133       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10134       dldir=$destdir/`dirname \$dlpath`~
10135       test -d \$dldir || mkdir -p \$dldir~
10136       $install_prog $dir/$dlname \$dldir/$dlname'
10137     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10138       dlpath=$dir/\$dldll~
10139        $rm \$dlpath'
10140     shlibpath_overrides_runpath=yes
10141
10142     case $host_os in
10143     cygwin*)
10144       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10145       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10146       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10147       ;;
10148     mingw*)
10149       # MinGW DLLs use traditional 'lib' prefix
10150       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10151       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10152       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10153         # It is most probably a Windows format PATH printed by
10154         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10155         # path with ; separators, and with drive letters. We can handle the
10156         # drive letters (cygwin fileutils understands them), so leave them,
10157         # especially as we might pass files found there to a mingw objdump,
10158         # which wouldn't understand a cygwinified path. Ahh.
10159         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10160       else
10161         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10162       fi
10163       ;;
10164     pw32*)
10165       # pw32 DLLs use 'pw' prefix rather than 'lib'
10166       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10167       ;;
10168     esac
10169     ;;
10170
10171   *)
10172     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10173     ;;
10174   esac
10175   dynamic_linker='Win32 ld.exe'
10176   # FIXME: first we should search . and the directory the executable is in
10177   shlibpath_var=PATH
10178   ;;
10179
10180 darwin* | rhapsody*)
10181   dynamic_linker="$host_os dyld"
10182   version_type=darwin
10183   need_lib_prefix=no
10184   need_version=no
10185   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10186   soname_spec='${libname}${release}${major}$shared_ext'
10187   shlibpath_overrides_runpath=yes
10188   shlibpath_var=DYLD_LIBRARY_PATH
10189   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10190   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10191   if test "$GCC" = yes; then
10192     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"`
10193   else
10194     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10195   fi
10196   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10197   ;;
10198
10199 dgux*)
10200   version_type=linux
10201   need_lib_prefix=no
10202   need_version=no
10203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10204   soname_spec='${libname}${release}${shared_ext}$major'
10205   shlibpath_var=LD_LIBRARY_PATH
10206   ;;
10207
10208 freebsd1*)
10209   dynamic_linker=no
10210   ;;
10211
10212 kfreebsd*-gnu)
10213   version_type=linux
10214   need_lib_prefix=no
10215   need_version=no
10216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217   soname_spec='${libname}${release}${shared_ext}$major'
10218   shlibpath_var=LD_LIBRARY_PATH
10219   shlibpath_overrides_runpath=no
10220   hardcode_into_libs=yes
10221   dynamic_linker='GNU ld.so'
10222   ;;
10223
10224 freebsd* | dragonfly*)
10225   # DragonFly does not have aout.  When/if they implement a new
10226   # versioning mechanism, adjust this.
10227   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10228   version_type=freebsd-$objformat
10229   case $version_type in
10230     freebsd-elf*)
10231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10232       need_version=no
10233       need_lib_prefix=no
10234       ;;
10235     freebsd-*)
10236       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10237       need_version=yes
10238       ;;
10239   esac
10240   shlibpath_var=LD_LIBRARY_PATH
10241   case $host_os in
10242   freebsd2*)
10243     shlibpath_overrides_runpath=yes
10244     ;;
10245   freebsd3.[01]* | freebsdelf3.[01]*)
10246     shlibpath_overrides_runpath=yes
10247     hardcode_into_libs=yes
10248     ;;
10249   *) # from 3.2 on
10250     shlibpath_overrides_runpath=no
10251     hardcode_into_libs=yes
10252     ;;
10253   esac
10254   ;;
10255
10256 gnu*)
10257   version_type=linux
10258   need_lib_prefix=no
10259   need_version=no
10260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10261   soname_spec='${libname}${release}${shared_ext}$major'
10262   shlibpath_var=LD_LIBRARY_PATH
10263   hardcode_into_libs=yes
10264   ;;
10265
10266 hpux9* | hpux10* | hpux11*)
10267   # Give a soname corresponding to the major version so that dld.sl refuses to
10268   # link against other versions.
10269   version_type=sunos
10270   need_lib_prefix=no
10271   need_version=no
10272   case "$host_cpu" in
10273   ia64*)
10274     shrext_cmds='.so'
10275     hardcode_into_libs=yes
10276     dynamic_linker="$host_os dld.so"
10277     shlibpath_var=LD_LIBRARY_PATH
10278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280     soname_spec='${libname}${release}${shared_ext}$major'
10281     if test "X$HPUX_IA64_MODE" = X32; then
10282       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10283     else
10284       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10285     fi
10286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10287     ;;
10288    hppa*64*)
10289      shrext_cmds='.sl'
10290      hardcode_into_libs=yes
10291      dynamic_linker="$host_os dld.sl"
10292      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10293      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10294      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295      soname_spec='${libname}${release}${shared_ext}$major'
10296      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10297      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10298      ;;
10299    *)
10300     shrext_cmds='.sl'
10301     dynamic_linker="$host_os dld.sl"
10302     shlibpath_var=SHLIB_PATH
10303     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305     soname_spec='${libname}${release}${shared_ext}$major'
10306     ;;
10307   esac
10308   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10309   postinstall_cmds='chmod 555 $lib'
10310   ;;
10311
10312 irix5* | irix6* | nonstopux*)
10313   case $host_os in
10314     nonstopux*) version_type=nonstopux ;;
10315     *)
10316         if test "$lt_cv_prog_gnu_ld" = yes; then
10317                 version_type=linux
10318         else
10319                 version_type=irix
10320         fi ;;
10321   esac
10322   need_lib_prefix=no
10323   need_version=no
10324   soname_spec='${libname}${release}${shared_ext}$major'
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10326   case $host_os in
10327   irix5* | nonstopux*)
10328     libsuff= shlibsuff=
10329     ;;
10330   *)
10331     case $LD in # libtool.m4 will add one of these switches to LD
10332     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10333       libsuff= shlibsuff= libmagic=32-bit;;
10334     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10335       libsuff=32 shlibsuff=N32 libmagic=N32;;
10336     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10337       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10338     *) libsuff= shlibsuff= libmagic=never-match;;
10339     esac
10340     ;;
10341   esac
10342   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10343   shlibpath_overrides_runpath=no
10344   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10345   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10346   hardcode_into_libs=yes
10347   ;;
10348
10349 # No shared lib support for Linux oldld, aout, or coff.
10350 linux*oldld* | linux*aout* | linux*coff*)
10351   dynamic_linker=no
10352   ;;
10353
10354 # This must be Linux ELF.
10355 linux*)
10356   version_type=linux
10357   need_lib_prefix=no
10358   need_version=no
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10362   shlibpath_var=LD_LIBRARY_PATH
10363   shlibpath_overrides_runpath=no
10364   # This implies no fast_install, which is unacceptable.
10365   # Some rework will be needed to allow for fast_install
10366   # before this can be enabled.
10367   hardcode_into_libs=yes
10368
10369   # Append ld.so.conf contents to the search path
10370   if test -f /etc/ld.so.conf; then
10371     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' ' '`
10372     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10373   fi
10374
10375   # We used to test for /lib/ld.so.1 and disable shared libraries on
10376   # powerpc, because MkLinux only supported shared libraries with the
10377   # GNU dynamic linker.  Since this was broken with cross compilers,
10378   # most powerpc-linux boxes support dynamic linking these days and
10379   # people can always --disable-shared, the test was removed, and we
10380   # assume the GNU/Linux dynamic linker is in use.
10381   dynamic_linker='GNU/Linux ld.so'
10382   ;;
10383
10384 knetbsd*-gnu)
10385   version_type=linux
10386   need_lib_prefix=no
10387   need_version=no
10388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10389   soname_spec='${libname}${release}${shared_ext}$major'
10390   shlibpath_var=LD_LIBRARY_PATH
10391   shlibpath_overrides_runpath=no
10392   hardcode_into_libs=yes
10393   dynamic_linker='GNU ld.so'
10394   ;;
10395
10396 netbsd*)
10397   version_type=sunos
10398   need_lib_prefix=no
10399   need_version=no
10400   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10402     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10403     dynamic_linker='NetBSD (a.out) ld.so'
10404   else
10405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10406     soname_spec='${libname}${release}${shared_ext}$major'
10407     dynamic_linker='NetBSD ld.elf_so'
10408   fi
10409   shlibpath_var=LD_LIBRARY_PATH
10410   shlibpath_overrides_runpath=yes
10411   hardcode_into_libs=yes
10412   ;;
10413
10414 newsos6)
10415   version_type=linux
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417   shlibpath_var=LD_LIBRARY_PATH
10418   shlibpath_overrides_runpath=yes
10419   ;;
10420
10421 nto-qnx*)
10422   version_type=linux
10423   need_lib_prefix=no
10424   need_version=no
10425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426   soname_spec='${libname}${release}${shared_ext}$major'
10427   shlibpath_var=LD_LIBRARY_PATH
10428   shlibpath_overrides_runpath=yes
10429   ;;
10430
10431 openbsd*)
10432   version_type=sunos
10433   need_lib_prefix=no
10434   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10435   case $host_os in
10436     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10437     *)                         need_version=no  ;;
10438   esac
10439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10440   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10441   shlibpath_var=LD_LIBRARY_PATH
10442   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10443     case $host_os in
10444       openbsd2.[89] | openbsd2.[89].*)
10445         shlibpath_overrides_runpath=no
10446         ;;
10447       *)
10448         shlibpath_overrides_runpath=yes
10449         ;;
10450       esac
10451   else
10452     shlibpath_overrides_runpath=yes
10453   fi
10454   ;;
10455
10456 os2*)
10457   libname_spec='$name'
10458   shrext_cmds=".dll"
10459   need_lib_prefix=no
10460   library_names_spec='$libname${shared_ext} $libname.a'
10461   dynamic_linker='OS/2 ld.exe'
10462   shlibpath_var=LIBPATH
10463   ;;
10464
10465 osf3* | osf4* | osf5*)
10466   version_type=osf
10467   need_lib_prefix=no
10468   need_version=no
10469   soname_spec='${libname}${release}${shared_ext}$major'
10470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471   shlibpath_var=LD_LIBRARY_PATH
10472   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10473   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10474   ;;
10475
10476 sco3.2v5*)
10477   version_type=osf
10478   soname_spec='${libname}${release}${shared_ext}$major'
10479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480   shlibpath_var=LD_LIBRARY_PATH
10481   ;;
10482
10483 solaris*)
10484   version_type=linux
10485   need_lib_prefix=no
10486   need_version=no
10487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   shlibpath_var=LD_LIBRARY_PATH
10490   shlibpath_overrides_runpath=yes
10491   hardcode_into_libs=yes
10492   # ldd complains unless libraries are executable
10493   postinstall_cmds='chmod +x $lib'
10494   ;;
10495
10496 sunos4*)
10497   version_type=sunos
10498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10499   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10500   shlibpath_var=LD_LIBRARY_PATH
10501   shlibpath_overrides_runpath=yes
10502   if test "$with_gnu_ld" = yes; then
10503     need_lib_prefix=no
10504   fi
10505   need_version=yes
10506   ;;
10507
10508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10509   version_type=linux
10510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511   soname_spec='${libname}${release}${shared_ext}$major'
10512   shlibpath_var=LD_LIBRARY_PATH
10513   case $host_vendor in
10514     sni)
10515       shlibpath_overrides_runpath=no
10516       need_lib_prefix=no
10517       export_dynamic_flag_spec='${wl}-Blargedynsym'
10518       runpath_var=LD_RUN_PATH
10519       ;;
10520     siemens)
10521       need_lib_prefix=no
10522       ;;
10523     motorola)
10524       need_lib_prefix=no
10525       need_version=no
10526       shlibpath_overrides_runpath=no
10527       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10528       ;;
10529   esac
10530   ;;
10531
10532 sysv4*MP*)
10533   if test -d /usr/nec ;then
10534     version_type=linux
10535     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10536     soname_spec='$libname${shared_ext}.$major'
10537     shlibpath_var=LD_LIBRARY_PATH
10538   fi
10539   ;;
10540
10541 uts4*)
10542   version_type=linux
10543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544   soname_spec='${libname}${release}${shared_ext}$major'
10545   shlibpath_var=LD_LIBRARY_PATH
10546   ;;
10547
10548 *)
10549   dynamic_linker=no
10550   ;;
10551 esac
10552 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10553 echo "${ECHO_T}$dynamic_linker" >&6
10554 test "$dynamic_linker" = no && can_build_shared=no
10555
10556 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10557 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10558 hardcode_action=
10559 if test -n "$hardcode_libdir_flag_spec" || \
10560    test -n "$runpath_var" || \
10561    test "X$hardcode_automatic" = "Xyes" ; then
10562
10563   # We can hardcode non-existant directories.
10564   if test "$hardcode_direct" != no &&
10565      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10566      # have to relink, otherwise we might link with an installed library
10567      # when we should be linking with a yet-to-be-installed one
10568      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10569      test "$hardcode_minus_L" != no; then
10570     # Linking always hardcodes the temporary library directory.
10571     hardcode_action=relink
10572   else
10573     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10574     hardcode_action=immediate
10575   fi
10576 else
10577   # We cannot hardcode anything, or else we can only hardcode existing
10578   # directories.
10579   hardcode_action=unsupported
10580 fi
10581 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10582 echo "${ECHO_T}$hardcode_action" >&6
10583
10584 if test "$hardcode_action" = relink; then
10585   # Fast installation is not supported
10586   enable_fast_install=no
10587 elif test "$shlibpath_overrides_runpath" = yes ||
10588      test "$enable_shared" = no; then
10589   # Fast installation is not necessary
10590   enable_fast_install=needless
10591 fi
10592
10593 striplib=
10594 old_striplib=
10595 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10596 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10597 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10598   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10599   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10600   echo "$as_me:$LINENO: result: yes" >&5
10601 echo "${ECHO_T}yes" >&6
10602 else
10603 # FIXME - insert some real tests, host_os isn't really good enough
10604   case $host_os in
10605    darwin*)
10606        if test -n "$STRIP" ; then
10607          striplib="$STRIP -x"
10608          echo "$as_me:$LINENO: result: yes" >&5
10609 echo "${ECHO_T}yes" >&6
10610        else
10611   echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10613 fi
10614        ;;
10615    *)
10616   echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6
10618     ;;
10619   esac
10620 fi
10621
10622 if test "x$enable_dlopen" != xyes; then
10623   enable_dlopen=unknown
10624   enable_dlopen_self=unknown
10625   enable_dlopen_self_static=unknown
10626 else
10627   lt_cv_dlopen=no
10628   lt_cv_dlopen_libs=
10629
10630   case $host_os in
10631   beos*)
10632     lt_cv_dlopen="load_add_on"
10633     lt_cv_dlopen_libs=
10634     lt_cv_dlopen_self=yes
10635     ;;
10636
10637   mingw* | pw32*)
10638     lt_cv_dlopen="LoadLibrary"
10639     lt_cv_dlopen_libs=
10640    ;;
10641
10642   cygwin*)
10643     lt_cv_dlopen="dlopen"
10644     lt_cv_dlopen_libs=
10645    ;;
10646
10647   darwin*)
10648   # if libdl is installed we need to link against it
10649     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-ldl  $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h.  */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h.  */
10662
10663 /* Override any gcc2 internal prototype to avoid an error.  */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 /* We use char because int might match the return type of a gcc2
10668    builtin and then its argument prototype would still apply.  */
10669 char dlopen ();
10670 int
10671 main ()
10672 {
10673 dlopen ();
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680   (eval $ac_link) 2>conftest.er1
10681   ac_status=$?
10682   grep -v '^ *+' conftest.er1 >conftest.err
10683   rm -f conftest.er1
10684   cat conftest.err >&5
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); } &&
10687          { ac_try='test -z "$ac_c_werror_flag"
10688                          || test ! -s conftest.err'
10689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690   (eval $ac_try) 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; } &&
10694          { ac_try='test -s conftest$ac_exeext'
10695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696   (eval $ac_try) 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); }; }; then
10700   ac_cv_lib_dl_dlopen=yes
10701 else
10702   echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10704
10705 ac_cv_lib_dl_dlopen=no
10706 fi
10707 rm -f conftest.err conftest.$ac_objext \
10708       conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10710 fi
10711 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10713 if test $ac_cv_lib_dl_dlopen = yes; then
10714   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10715 else
10716
10717     lt_cv_dlopen="dyld"
10718     lt_cv_dlopen_libs=
10719     lt_cv_dlopen_self=yes
10720
10721 fi
10722
10723    ;;
10724
10725   *)
10726     echo "$as_me:$LINENO: checking for shl_load" >&5
10727 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10728 if test "${ac_cv_func_shl_load+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10739 #define shl_load innocuous_shl_load
10740
10741 /* System header to define __stub macros and hopefully few prototypes,
10742     which can conflict with char shl_load (); below.
10743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744     <limits.h> exists even on freestanding compilers.  */
10745
10746 #ifdef __STDC__
10747 # include <limits.h>
10748 #else
10749 # include <assert.h>
10750 #endif
10751
10752 #undef shl_load
10753
10754 /* Override any gcc2 internal prototype to avoid an error.  */
10755 #ifdef __cplusplus
10756 extern "C"
10757 {
10758 #endif
10759 /* We use char because int might match the return type of a gcc2
10760    builtin and then its argument prototype would still apply.  */
10761 char shl_load ();
10762 /* The GNU C library defines this for functions which it implements
10763     to always fail with ENOSYS.  Some functions are actually named
10764     something starting with __ and the normal name is an alias.  */
10765 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10766 choke me
10767 #else
10768 char (*f) () = shl_load;
10769 #endif
10770 #ifdef __cplusplus
10771 }
10772 #endif
10773
10774 int
10775 main ()
10776 {
10777 return f != shl_load;
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784   (eval $ac_link) 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } &&
10791          { ac_try='test -z "$ac_c_werror_flag"
10792                          || test ! -s conftest.err'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest$ac_exeext'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ac_cv_func_shl_load=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 ac_cv_func_shl_load=no
10810 fi
10811 rm -f conftest.err conftest.$ac_objext \
10812       conftest$ac_exeext conftest.$ac_ext
10813 fi
10814 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10815 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10816 if test $ac_cv_func_shl_load = yes; then
10817   lt_cv_dlopen="shl_load"
10818 else
10819   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10820 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10821 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-ldld  $LIBS"
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832
10833 /* Override any gcc2 internal prototype to avoid an error.  */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 /* We use char because int might match the return type of a gcc2
10838    builtin and then its argument prototype would still apply.  */
10839 char shl_load ();
10840 int
10841 main ()
10842 {
10843 shl_load ();
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850   (eval $ac_link) 2>conftest.er1
10851   ac_status=$?
10852   grep -v '^ *+' conftest.er1 >conftest.err
10853   rm -f conftest.er1
10854   cat conftest.err >&5
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } &&
10857          { ac_try='test -z "$ac_c_werror_flag"
10858                          || test ! -s conftest.err'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; } &&
10864          { ac_try='test -s conftest$ac_exeext'
10865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866   (eval $ac_try) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }; }; then
10870   ac_cv_lib_dld_shl_load=yes
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 ac_cv_lib_dld_shl_load=no
10876 fi
10877 rm -f conftest.err conftest.$ac_objext \
10878       conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10880 fi
10881 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10882 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10883 if test $ac_cv_lib_dld_shl_load = yes; then
10884   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10885 else
10886   echo "$as_me:$LINENO: checking for dlopen" >&5
10887 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10888 if test "${ac_cv_func_dlopen+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h.  */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h.  */
10897 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10899 #define dlopen innocuous_dlopen
10900
10901 /* System header to define __stub macros and hopefully few prototypes,
10902     which can conflict with char dlopen (); below.
10903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10904     <limits.h> exists even on freestanding compilers.  */
10905
10906 #ifdef __STDC__
10907 # include <limits.h>
10908 #else
10909 # include <assert.h>
10910 #endif
10911
10912 #undef dlopen
10913
10914 /* Override any gcc2 internal prototype to avoid an error.  */
10915 #ifdef __cplusplus
10916 extern "C"
10917 {
10918 #endif
10919 /* We use char because int might match the return type of a gcc2
10920    builtin and then its argument prototype would still apply.  */
10921 char dlopen ();
10922 /* The GNU C library defines this for functions which it implements
10923     to always fail with ENOSYS.  Some functions are actually named
10924     something starting with __ and the normal name is an alias.  */
10925 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10926 choke me
10927 #else
10928 char (*f) () = dlopen;
10929 #endif
10930 #ifdef __cplusplus
10931 }
10932 #endif
10933
10934 int
10935 main ()
10936 {
10937 return f != dlopen;
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944   (eval $ac_link) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } &&
10951          { ac_try='test -z "$ac_c_werror_flag"
10952                          || test ! -s conftest.err'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest$ac_exeext'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   ac_cv_func_dlopen=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_func_dlopen=no
10970 fi
10971 rm -f conftest.err conftest.$ac_objext \
10972       conftest$ac_exeext conftest.$ac_ext
10973 fi
10974 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10975 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10976 if test $ac_cv_func_dlopen = yes; then
10977   lt_cv_dlopen="dlopen"
10978 else
10979   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-ldl  $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h.  */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h.  */
10992
10993 /* Override any gcc2 internal prototype to avoid an error.  */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998    builtin and then its argument prototype would still apply.  */
10999 char dlopen ();
11000 int
11001 main ()
11002 {
11003 dlopen ();
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010   (eval $ac_link) 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } &&
11017          { ac_try='test -z "$ac_c_werror_flag"
11018                          || test ! -s conftest.err'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; } &&
11024          { ac_try='test -s conftest$ac_exeext'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; }; then
11030   ac_cv_lib_dl_dlopen=yes
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035 ac_cv_lib_dl_dlopen=no
11036 fi
11037 rm -f conftest.err conftest.$ac_objext \
11038       conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11040 fi
11041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11043 if test $ac_cv_lib_dl_dlopen = yes; then
11044   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11045 else
11046   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-lsvld  $LIBS"
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059
11060 /* Override any gcc2 internal prototype to avoid an error.  */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 /* We use char because int might match the return type of a gcc2
11065    builtin and then its argument prototype would still apply.  */
11066 char dlopen ();
11067 int
11068 main ()
11069 {
11070 dlopen ();
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077   (eval $ac_link) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag"
11085                          || test ! -s conftest.err'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_cv_lib_svld_dlopen=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_cv_lib_svld_dlopen=no
11103 fi
11104 rm -f conftest.err conftest.$ac_objext \
11105       conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11109 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11110 if test $ac_cv_lib_svld_dlopen = yes; then
11111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11112 else
11113   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11114 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11115 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118   ac_check_lib_save_LIBS=$LIBS
11119 LIBS="-ldld  $LIBS"
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126
11127 /* Override any gcc2 internal prototype to avoid an error.  */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 /* We use char because int might match the return type of a gcc2
11132    builtin and then its argument prototype would still apply.  */
11133 char dld_link ();
11134 int
11135 main ()
11136 {
11137 dld_link ();
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144   (eval $ac_link) 2>conftest.er1
11145   ac_status=$?
11146   grep -v '^ *+' conftest.er1 >conftest.err
11147   rm -f conftest.er1
11148   cat conftest.err >&5
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); } &&
11151          { ac_try='test -z "$ac_c_werror_flag"
11152                          || test ! -s conftest.err'
11153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154   (eval $ac_try) 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; } &&
11158          { ac_try='test -s conftest$ac_exeext'
11159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160   (eval $ac_try) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; }; then
11164   ac_cv_lib_dld_dld_link=yes
11165 else
11166   echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169 ac_cv_lib_dld_dld_link=no
11170 fi
11171 rm -f conftest.err conftest.$ac_objext \
11172       conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11177 if test $ac_cv_lib_dld_dld_link = yes; then
11178   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11179 fi
11180
11181
11182 fi
11183
11184
11185 fi
11186
11187
11188 fi
11189
11190
11191 fi
11192
11193
11194 fi
11195
11196     ;;
11197   esac
11198
11199   if test "x$lt_cv_dlopen" != xno; then
11200     enable_dlopen=yes
11201   else
11202     enable_dlopen=no
11203   fi
11204
11205   case $lt_cv_dlopen in
11206   dlopen)
11207     save_CPPFLAGS="$CPPFLAGS"
11208     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11209
11210     save_LDFLAGS="$LDFLAGS"
11211     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11212
11213     save_LIBS="$LIBS"
11214     LIBS="$lt_cv_dlopen_libs $LIBS"
11215
11216     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221           if test "$cross_compiling" = yes; then :
11222   lt_cv_dlopen_self=cross
11223 else
11224   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225   lt_status=$lt_dlunknown
11226   cat > conftest.$ac_ext <<EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11229
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11233
11234 #include <stdio.h>
11235
11236 #ifdef RTLD_GLOBAL
11237 #  define LT_DLGLOBAL           RTLD_GLOBAL
11238 #else
11239 #  ifdef DL_GLOBAL
11240 #    define LT_DLGLOBAL         DL_GLOBAL
11241 #  else
11242 #    define LT_DLGLOBAL         0
11243 #  endif
11244 #endif
11245
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247    find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 #  ifdef RTLD_LAZY
11250 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11251 #  else
11252 #    ifdef DL_LAZY
11253 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11254 #    else
11255 #      ifdef RTLD_NOW
11256 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11257 #      else
11258 #        ifdef DL_NOW
11259 #          define LT_DLLAZY_OR_NOW      DL_NOW
11260 #        else
11261 #          define LT_DLLAZY_OR_NOW      0
11262 #        endif
11263 #      endif
11264 #    endif
11265 #  endif
11266 #endif
11267
11268 #ifdef __cplusplus
11269 extern "C" void exit (int);
11270 #endif
11271
11272 void fnord() { int i=42;}
11273 int main ()
11274 {
11275   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276   int status = $lt_dlunknown;
11277
11278   if (self)
11279     {
11280       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11281       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11282       /* dlclose (self); */
11283     }
11284
11285     exit (status);
11286 }
11287 EOF
11288   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289   (eval $ac_link) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11293     (./conftest; exit; ) 2>/dev/null
11294     lt_status=$?
11295     case x$lt_status in
11296       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11299     esac
11300   else :
11301     # compilation failed
11302     lt_cv_dlopen_self=no
11303   fi
11304 fi
11305 rm -fr conftest*
11306
11307
11308 fi
11309 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11310 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11311
11312     if test "x$lt_cv_dlopen_self" = xyes; then
11313       LDFLAGS="$LDFLAGS $link_static_flag"
11314       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11315 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11316 if test "${lt_cv_dlopen_self_static+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319           if test "$cross_compiling" = yes; then :
11320   lt_cv_dlopen_self_static=cross
11321 else
11322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323   lt_status=$lt_dlunknown
11324   cat > conftest.$ac_ext <<EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11327
11328 #if HAVE_DLFCN_H
11329 #include <dlfcn.h>
11330 #endif
11331
11332 #include <stdio.h>
11333
11334 #ifdef RTLD_GLOBAL
11335 #  define LT_DLGLOBAL           RTLD_GLOBAL
11336 #else
11337 #  ifdef DL_GLOBAL
11338 #    define LT_DLGLOBAL         DL_GLOBAL
11339 #  else
11340 #    define LT_DLGLOBAL         0
11341 #  endif
11342 #endif
11343
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345    find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11347 #  ifdef RTLD_LAZY
11348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11349 #  else
11350 #    ifdef DL_LAZY
11351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11352 #    else
11353 #      ifdef RTLD_NOW
11354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11355 #      else
11356 #        ifdef DL_NOW
11357 #          define LT_DLLAZY_OR_NOW      DL_NOW
11358 #        else
11359 #          define LT_DLLAZY_OR_NOW      0
11360 #        endif
11361 #      endif
11362 #    endif
11363 #  endif
11364 #endif
11365
11366 #ifdef __cplusplus
11367 extern "C" void exit (int);
11368 #endif
11369
11370 void fnord() { int i=42;}
11371 int main ()
11372 {
11373   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11374   int status = $lt_dlunknown;
11375
11376   if (self)
11377     {
11378       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11379       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11380       /* dlclose (self); */
11381     }
11382
11383     exit (status);
11384 }
11385 EOF
11386   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387   (eval $ac_link) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11391     (./conftest; exit; ) 2>/dev/null
11392     lt_status=$?
11393     case x$lt_status in
11394       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11395       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11396       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11397     esac
11398   else :
11399     # compilation failed
11400     lt_cv_dlopen_self_static=no
11401   fi
11402 fi
11403 rm -fr conftest*
11404
11405
11406 fi
11407 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11408 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11409     fi
11410
11411     CPPFLAGS="$save_CPPFLAGS"
11412     LDFLAGS="$save_LDFLAGS"
11413     LIBS="$save_LIBS"
11414     ;;
11415   esac
11416
11417   case $lt_cv_dlopen_self in
11418   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11419   *) enable_dlopen_self=unknown ;;
11420   esac
11421
11422   case $lt_cv_dlopen_self_static in
11423   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11424   *) enable_dlopen_self_static=unknown ;;
11425   esac
11426 fi
11427
11428
11429 # Report which librarie types wil actually be built
11430 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11431 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11432 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11433 echo "${ECHO_T}$can_build_shared" >&6
11434
11435 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11436 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11437 test "$can_build_shared" = "no" && enable_shared=no
11438
11439 # On AIX, shared libraries and static libraries use the same namespace, and
11440 # are all built from PIC.
11441 case "$host_os" in
11442 aix3*)
11443   test "$enable_shared" = yes && enable_static=no
11444   if test -n "$RANLIB"; then
11445     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11446     postinstall_cmds='$RANLIB $lib'
11447   fi
11448   ;;
11449
11450 aix4* | aix5*)
11451   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11452     test "$enable_shared" = yes && enable_static=no
11453   fi
11454     ;;
11455 esac
11456 echo "$as_me:$LINENO: result: $enable_shared" >&5
11457 echo "${ECHO_T}$enable_shared" >&6
11458
11459 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11460 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11461 # Make sure either enable_shared or enable_static is yes.
11462 test "$enable_shared" = yes || enable_static=yes
11463 echo "$as_me:$LINENO: result: $enable_static" >&5
11464 echo "${ECHO_T}$enable_static" >&6
11465
11466 # The else clause should only fire when bootstrapping the
11467 # libtool distribution, otherwise you forgot to ship ltmain.sh
11468 # with your package, and you will get complaints that there are
11469 # no rules to generate ltmain.sh.
11470 if test -f "$ltmain"; then
11471   # See if we are running on zsh, and set the options which allow our commands through
11472   # without removal of \ escapes.
11473   if test -n "${ZSH_VERSION+set}" ; then
11474     setopt NO_GLOB_SUBST
11475   fi
11476   # Now quote all the things that may contain metacharacters while being
11477   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11478   # variables and quote the copies for generation of the libtool script.
11479   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11480     SED SHELL STRIP \
11481     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11482     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11483     deplibs_check_method reload_flag reload_cmds need_locks \
11484     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11485     lt_cv_sys_global_symbol_to_c_name_address \
11486     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11487     old_postinstall_cmds old_postuninstall_cmds \
11488     compiler \
11489     CC \
11490     LD \
11491     lt_prog_compiler_wl \
11492     lt_prog_compiler_pic \
11493     lt_prog_compiler_static \
11494     lt_prog_compiler_no_builtin_flag \
11495     export_dynamic_flag_spec \
11496     thread_safe_flag_spec \
11497     whole_archive_flag_spec \
11498     enable_shared_with_static_runtimes \
11499     old_archive_cmds \
11500     old_archive_from_new_cmds \
11501     predep_objects \
11502     postdep_objects \
11503     predeps \
11504     postdeps \
11505     compiler_lib_search_path \
11506     archive_cmds \
11507     archive_expsym_cmds \
11508     postinstall_cmds \
11509     postuninstall_cmds \
11510     old_archive_from_expsyms_cmds \
11511     allow_undefined_flag \
11512     no_undefined_flag \
11513     export_symbols_cmds \
11514     hardcode_libdir_flag_spec \
11515     hardcode_libdir_flag_spec_ld \
11516     hardcode_libdir_separator \
11517     hardcode_automatic \
11518     module_cmds \
11519     module_expsym_cmds \
11520     lt_cv_prog_compiler_c_o \
11521     exclude_expsyms \
11522     include_expsyms; do
11523
11524     case $var in
11525     old_archive_cmds | \
11526     old_archive_from_new_cmds | \
11527     archive_cmds | \
11528     archive_expsym_cmds | \
11529     module_cmds | \
11530     module_expsym_cmds | \
11531     old_archive_from_expsyms_cmds | \
11532     export_symbols_cmds | \
11533     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11534     postinstall_cmds | postuninstall_cmds | \
11535     old_postinstall_cmds | old_postuninstall_cmds | \
11536     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11537       # Double-quote double-evaled strings.
11538       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11539       ;;
11540     *)
11541       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11542       ;;
11543     esac
11544   done
11545
11546   case $lt_echo in
11547   *'\$0 --fallback-echo"')
11548     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11549     ;;
11550   esac
11551
11552 cfgfile="${ofile}T"
11553   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11554   $rm -f "$cfgfile"
11555   { echo "$as_me:$LINENO: creating $ofile" >&5
11556 echo "$as_me: creating $ofile" >&6;}
11557
11558   cat <<__EOF__ >> "$cfgfile"
11559 #! $SHELL
11560
11561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11564 #
11565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11566 # Free Software Foundation, Inc.
11567 #
11568 # This file is part of GNU Libtool:
11569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11570 #
11571 # This program is free software; you can redistribute it and/or modify
11572 # it under the terms of the GNU General Public License as published by
11573 # the Free Software Foundation; either version 2 of the License, or
11574 # (at your option) any later version.
11575 #
11576 # This program is distributed in the hope that it will be useful, but
11577 # WITHOUT ANY WARRANTY; without even the implied warranty of
11578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11579 # General Public License for more details.
11580 #
11581 # You should have received a copy of the GNU General Public License
11582 # along with this program; if not, write to the Free Software
11583 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11584 #
11585 # As a special exception to the GNU General Public License, if you
11586 # distribute this file as part of a program that contains a
11587 # configuration script generated by Autoconf, you may include it under
11588 # the same distribution terms that you use for the rest of that program.
11589
11590 # A sed program that does not truncate output.
11591 SED=$lt_SED
11592
11593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11594 Xsed="$SED -e 1s/^X//"
11595
11596 # The HP-UX ksh and POSIX shell print the target directory to stdout
11597 # if CDPATH is set.
11598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11599
11600 # The names of the tagged configurations supported by this script.
11601 available_tags=
11602
11603 # ### BEGIN LIBTOOL CONFIG
11604
11605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11606
11607 # Shell to use when invoking shell scripts.
11608 SHELL=$lt_SHELL
11609
11610 # Whether or not to build shared libraries.
11611 build_libtool_libs=$enable_shared
11612
11613 # Whether or not to build static libraries.
11614 build_old_libs=$enable_static
11615
11616 # Whether or not to add -lc for building shared libraries.
11617 build_libtool_need_lc=$archive_cmds_need_lc
11618
11619 # Whether or not to disallow shared libs when runtime libs are static
11620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11621
11622 # Whether or not to optimize for fast installation.
11623 fast_install=$enable_fast_install
11624
11625 # The host system.
11626 host_alias=$host_alias
11627 host=$host
11628 host_os=$host_os
11629
11630 # The build system.
11631 build_alias=$build_alias
11632 build=$build
11633 build_os=$build_os
11634
11635 # An echo program that does not interpret backslashes.
11636 echo=$lt_echo
11637
11638 # The archiver.
11639 AR=$lt_AR
11640 AR_FLAGS=$lt_AR_FLAGS
11641
11642 # A C compiler.
11643 LTCC=$lt_LTCC
11644
11645 # A language-specific compiler.
11646 CC=$lt_compiler
11647
11648 # Is the compiler the GNU C compiler?
11649 with_gcc=$GCC
11650
11651 # An ERE matcher.
11652 EGREP=$lt_EGREP
11653
11654 # The linker used to build libraries.
11655 LD=$lt_LD
11656
11657 # Whether we need hard or soft links.
11658 LN_S=$lt_LN_S
11659
11660 # A BSD-compatible nm program.
11661 NM=$lt_NM
11662
11663 # A symbol stripping program
11664 STRIP=$lt_STRIP
11665
11666 # Used to examine libraries when file_magic_cmd begins "file"
11667 MAGIC_CMD=$MAGIC_CMD
11668
11669 # Used on cygwin: DLL creation program.
11670 DLLTOOL="$DLLTOOL"
11671
11672 # Used on cygwin: object dumper.
11673 OBJDUMP="$OBJDUMP"
11674
11675 # Used on cygwin: assembler.
11676 AS="$AS"
11677
11678 # The name of the directory that contains temporary libtool files.
11679 objdir=$objdir
11680
11681 # How to create reloadable object files.
11682 reload_flag=$lt_reload_flag
11683 reload_cmds=$lt_reload_cmds
11684
11685 # How to pass a linker flag through the compiler.
11686 wl=$lt_lt_prog_compiler_wl
11687
11688 # Object file suffix (normally "o").
11689 objext="$ac_objext"
11690
11691 # Old archive suffix (normally "a").
11692 libext="$libext"
11693
11694 # Shared library suffix (normally ".so").
11695 shrext_cmds='$shrext_cmds'
11696
11697 # Executable file suffix (normally "").
11698 exeext="$exeext"
11699
11700 # Additional compiler flags for building library objects.
11701 pic_flag=$lt_lt_prog_compiler_pic
11702 pic_mode=$pic_mode
11703
11704 # What is the maximum length of a command?
11705 max_cmd_len=$lt_cv_sys_max_cmd_len
11706
11707 # Does compiler simultaneously support -c and -o options?
11708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11709
11710 # Must we lock files when doing compilation?
11711 need_locks=$lt_need_locks
11712
11713 # Do we need the lib prefix for modules?
11714 need_lib_prefix=$need_lib_prefix
11715
11716 # Do we need a version for libraries?
11717 need_version=$need_version
11718
11719 # Whether dlopen is supported.
11720 dlopen_support=$enable_dlopen
11721
11722 # Whether dlopen of programs is supported.
11723 dlopen_self=$enable_dlopen_self
11724
11725 # Whether dlopen of statically linked programs is supported.
11726 dlopen_self_static=$enable_dlopen_self_static
11727
11728 # Compiler flag to prevent dynamic linking.
11729 link_static_flag=$lt_lt_prog_compiler_static
11730
11731 # Compiler flag to turn off builtin functions.
11732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11733
11734 # Compiler flag to allow reflexive dlopens.
11735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11736
11737 # Compiler flag to generate shared objects directly from archives.
11738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11739
11740 # Compiler flag to generate thread-safe objects.
11741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11742
11743 # Library versioning type.
11744 version_type=$version_type
11745
11746 # Format of library name prefix.
11747 libname_spec=$lt_libname_spec
11748
11749 # List of archive names.  First name is the real one, the rest are links.
11750 # The last name is the one that the linker finds with -lNAME.
11751 library_names_spec=$lt_library_names_spec
11752
11753 # The coded name of the library, if different from the real name.
11754 soname_spec=$lt_soname_spec
11755
11756 # Commands used to build and install an old-style archive.
11757 RANLIB=$lt_RANLIB
11758 old_archive_cmds=$lt_old_archive_cmds
11759 old_postinstall_cmds=$lt_old_postinstall_cmds
11760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11761
11762 # Create an old-style archive from a shared archive.
11763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11764
11765 # Create a temporary old-style archive to link instead of a shared archive.
11766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11767
11768 # Commands used to build and install a shared archive.
11769 archive_cmds=$lt_archive_cmds
11770 archive_expsym_cmds=$lt_archive_expsym_cmds
11771 postinstall_cmds=$lt_postinstall_cmds
11772 postuninstall_cmds=$lt_postuninstall_cmds
11773
11774 # Commands used to build a loadable module (assumed same as above if empty)
11775 module_cmds=$lt_module_cmds
11776 module_expsym_cmds=$lt_module_expsym_cmds
11777
11778 # Commands to strip libraries.
11779 old_striplib=$lt_old_striplib
11780 striplib=$lt_striplib
11781
11782 # Dependencies to place before the objects being linked to create a
11783 # shared library.
11784 predep_objects=$lt_predep_objects
11785
11786 # Dependencies to place after the objects being linked to create a
11787 # shared library.
11788 postdep_objects=$lt_postdep_objects
11789
11790 # Dependencies to place before the objects being linked to create a
11791 # shared library.
11792 predeps=$lt_predeps
11793
11794 # Dependencies to place after the objects being linked to create a
11795 # shared library.
11796 postdeps=$lt_postdeps
11797
11798 # The library search path used internally by the compiler when linking
11799 # a shared library.
11800 compiler_lib_search_path=$lt_compiler_lib_search_path
11801
11802 # Method to check whether dependent libraries are shared objects.
11803 deplibs_check_method=$lt_deplibs_check_method
11804
11805 # Command to use when deplibs_check_method == file_magic.
11806 file_magic_cmd=$lt_file_magic_cmd
11807
11808 # Flag that allows shared libraries with undefined symbols to be built.
11809 allow_undefined_flag=$lt_allow_undefined_flag
11810
11811 # Flag that forces no undefined symbols.
11812 no_undefined_flag=$lt_no_undefined_flag
11813
11814 # Commands used to finish a libtool library installation in a directory.
11815 finish_cmds=$lt_finish_cmds
11816
11817 # Same as above, but a single script fragment to be evaled but not shown.
11818 finish_eval=$lt_finish_eval
11819
11820 # Take the output of nm and produce a listing of raw symbols and C names.
11821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11822
11823 # Transform the output of nm in a proper C declaration
11824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11825
11826 # Transform the output of nm in a C name address pair
11827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11828
11829 # This is the shared library runtime path variable.
11830 runpath_var=$runpath_var
11831
11832 # This is the shared library path variable.
11833 shlibpath_var=$shlibpath_var
11834
11835 # Is shlibpath searched before the hard-coded library search path?
11836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11837
11838 # How to hardcode a shared library path into an executable.
11839 hardcode_action=$hardcode_action
11840
11841 # Whether we should hardcode library paths into libraries.
11842 hardcode_into_libs=$hardcode_into_libs
11843
11844 # Flag to hardcode \$libdir into a binary during linking.
11845 # This must work even if \$libdir does not exist.
11846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11847
11848 # If ld is used when linking, flag to hardcode \$libdir into
11849 # a binary during linking. This must work even if \$libdir does
11850 # not exist.
11851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11852
11853 # Whether we need a single -rpath flag with a separated argument.
11854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11855
11856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11857 # resulting binary.
11858 hardcode_direct=$hardcode_direct
11859
11860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11861 # resulting binary.
11862 hardcode_minus_L=$hardcode_minus_L
11863
11864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11865 # the resulting binary.
11866 hardcode_shlibpath_var=$hardcode_shlibpath_var
11867
11868 # Set to yes if building a shared library automatically hardcodes DIR into the library
11869 # and all subsequent libraries and executables linked against it.
11870 hardcode_automatic=$hardcode_automatic
11871
11872 # Variables whose values should be saved in libtool wrapper scripts and
11873 # restored at relink time.
11874 variables_saved_for_relink="$variables_saved_for_relink"
11875
11876 # Whether libtool must link a program against all its dependency libraries.
11877 link_all_deplibs=$link_all_deplibs
11878
11879 # Compile-time system search path for libraries
11880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11881
11882 # Run-time system search path for libraries
11883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11884
11885 # Fix the shell variable \$srcfile for the compiler.
11886 fix_srcfile_path="$fix_srcfile_path"
11887
11888 # Set to yes if exported symbols are required.
11889 always_export_symbols=$always_export_symbols
11890
11891 # The commands to list exported symbols.
11892 export_symbols_cmds=$lt_export_symbols_cmds
11893
11894 # The commands to extract the exported symbol list from a shared archive.
11895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11896
11897 # Symbols that should not be listed in the preloaded symbols.
11898 exclude_expsyms=$lt_exclude_expsyms
11899
11900 # Symbols that must always be exported.
11901 include_expsyms=$lt_include_expsyms
11902
11903 # ### END LIBTOOL CONFIG
11904
11905 __EOF__
11906
11907
11908   case $host_os in
11909   aix3*)
11910     cat <<\EOF >> "$cfgfile"
11911
11912 # AIX sometimes has problems with the GCC collect2 program.  For some
11913 # reason, if we set the COLLECT_NAMES environment variable, the problems
11914 # vanish in a puff of smoke.
11915 if test "X${COLLECT_NAMES+set}" != Xset; then
11916   COLLECT_NAMES=
11917   export COLLECT_NAMES
11918 fi
11919 EOF
11920     ;;
11921   esac
11922
11923   # We use sed instead of cat because bash on DJGPP gets confused if
11924   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11925   # text mode, it properly converts lines to CR/LF.  This bash problem
11926   # is reportedly fixed, but why not run on old versions too?
11927   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11928
11929   mv -f "$cfgfile" "$ofile" || \
11930     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11931   chmod +x "$ofile"
11932
11933 else
11934   # If there is no Makefile yet, we rely on a make rule to execute
11935   # `config.status --recheck' to rerun these tests and create the
11936   # libtool script then.
11937   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11938   if test -f "$ltmain_in"; then
11939     test -f Makefile && make "$ltmain"
11940   fi
11941 fi
11942
11943
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 CC="$lt_save_CC"
11951
11952
11953 # Check whether --with-tags or --without-tags was given.
11954 if test "${with_tags+set}" = set; then
11955   withval="$with_tags"
11956   tagnames="$withval"
11957 fi;
11958
11959 if test -f "$ltmain" && test -n "$tagnames"; then
11960   if test ! -f "${ofile}"; then
11961     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11963   fi
11964
11965   if test -z "$LTCC"; then
11966     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11967     if test -z "$LTCC"; then
11968       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11970     else
11971       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11973     fi
11974   fi
11975
11976   # Extract list of available tagged configurations in $ofile.
11977   # Note that this assumes the entire list is on one line.
11978   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11979
11980   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11981   for tagname in $tagnames; do
11982     IFS="$lt_save_ifs"
11983     # Check whether tagname contains only valid characters
11984     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11985     "") ;;
11986     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11987 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11988    { (exit 1); exit 1; }; }
11989         ;;
11990     esac
11991
11992     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11993     then
11994       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11995 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11996    { (exit 1); exit 1; }; }
11997     fi
11998
11999     # Update the list of available tags.
12000     if test -n "$tagname"; then
12001       echo appending configuration tag \"$tagname\" to $ofile
12002
12003       case $tagname in
12004       CXX)
12005         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12006             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12007             (test "X$CXX" != "Xg++"))) ; then
12008           ac_ext=cc
12009 ac_cpp='$CXXCPP $CPPFLAGS'
12010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12013
12014
12015
12016
12017 archive_cmds_need_lc_CXX=no
12018 allow_undefined_flag_CXX=
12019 always_export_symbols_CXX=no
12020 archive_expsym_cmds_CXX=
12021 export_dynamic_flag_spec_CXX=
12022 hardcode_direct_CXX=no
12023 hardcode_libdir_flag_spec_CXX=
12024 hardcode_libdir_flag_spec_ld_CXX=
12025 hardcode_libdir_separator_CXX=
12026 hardcode_minus_L_CXX=no
12027 hardcode_automatic_CXX=no
12028 module_cmds_CXX=
12029 module_expsym_cmds_CXX=
12030 link_all_deplibs_CXX=unknown
12031 old_archive_cmds_CXX=$old_archive_cmds
12032 no_undefined_flag_CXX=
12033 whole_archive_flag_spec_CXX=
12034 enable_shared_with_static_runtimes_CXX=no
12035
12036 # Dependencies to place before and after the object being linked:
12037 predep_objects_CXX=
12038 postdep_objects_CXX=
12039 predeps_CXX=
12040 postdeps_CXX=
12041 compiler_lib_search_path_CXX=
12042
12043 # Source file extension for C++ test sources.
12044 ac_ext=cc
12045
12046 # Object file extension for compiled C++ test sources.
12047 objext=o
12048 objext_CXX=$objext
12049
12050 # Code to be used in simple compile tests
12051 lt_simple_compile_test_code="int some_variable = 0;\n"
12052
12053 # Code to be used in simple link tests
12054 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12055
12056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12057
12058 # If no C compiler was specified, use CC.
12059 LTCC=${LTCC-"$CC"}
12060
12061 # Allow CC to be a program name with arguments.
12062 compiler=$CC
12063
12064
12065 # save warnings/boilerplate of simple test code
12066 ac_outfile=conftest.$ac_objext
12067 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12069 _lt_compiler_boilerplate=`cat conftest.err`
12070 $rm conftest*
12071
12072 ac_outfile=conftest.$ac_objext
12073 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12075 _lt_linker_boilerplate=`cat conftest.err`
12076 $rm conftest*
12077
12078
12079 # Allow CC to be a program name with arguments.
12080 lt_save_CC=$CC
12081 lt_save_LD=$LD
12082 lt_save_GCC=$GCC
12083 GCC=$GXX
12084 lt_save_with_gnu_ld=$with_gnu_ld
12085 lt_save_path_LD=$lt_cv_path_LD
12086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12087   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12088 else
12089   unset lt_cv_prog_gnu_ld
12090 fi
12091 if test -n "${lt_cv_path_LDCXX+set}"; then
12092   lt_cv_path_LD=$lt_cv_path_LDCXX
12093 else
12094   unset lt_cv_path_LD
12095 fi
12096 test -z "${LDCXX+set}" || LD=$LDCXX
12097 CC=${CXX-"c++"}
12098 compiler=$CC
12099 compiler_CXX=$CC
12100 for cc_temp in $compiler""; do
12101   case $cc_temp in
12102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12104     \-*) ;;
12105     *) break;;
12106   esac
12107 done
12108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12109
12110
12111 # We don't want -fno-exception wen compiling C++ code, so set the
12112 # no_builtin_flag separately
12113 if test "$GXX" = yes; then
12114   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12115 else
12116   lt_prog_compiler_no_builtin_flag_CXX=
12117 fi
12118
12119 if test "$GXX" = yes; then
12120   # Set up default GNU C++ configuration
12121
12122
12123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then
12125   withval="$with_gnu_ld"
12126   test "$withval" = no || with_gnu_ld=yes
12127 else
12128   with_gnu_ld=no
12129 fi;
12130 ac_prog=ld
12131 if test "$GCC" = yes; then
12132   # Check if gcc -print-prog-name=ld gives a path.
12133   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12135   case $host in
12136   *-*-mingw*)
12137     # gcc leaves a trailing carriage return which upsets mingw
12138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12139   *)
12140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12141   esac
12142   case $ac_prog in
12143     # Accept absolute paths.
12144     [\\/]* | ?:[\\/]*)
12145       re_direlt='/[^/][^/]*/\.\./'
12146       # Canonicalize the pathname of ld
12147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12150       done
12151       test -z "$LD" && LD="$ac_prog"
12152       ;;
12153   "")
12154     # If it fails, then pretend we aren't using GCC.
12155     ac_prog=ld
12156     ;;
12157   *)
12158     # If it is relative, then search for the first ld in PATH.
12159     with_gnu_ld=unknown
12160     ;;
12161   esac
12162 elif test "$with_gnu_ld" = yes; then
12163   echo "$as_me:$LINENO: checking for GNU ld" >&5
12164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12165 else
12166   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12168 fi
12169 if test "${lt_cv_path_LD+set}" = set; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   if test -z "$LD"; then
12173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12174   for ac_dir in $PATH; do
12175     IFS="$lt_save_ifs"
12176     test -z "$ac_dir" && ac_dir=.
12177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178       lt_cv_path_LD="$ac_dir/$ac_prog"
12179       # Check to see if the program is GNU ld.  I'd rather use --version,
12180       # but apparently some GNU ld's only accept -v.
12181       # Break only if it was the GNU/non-GNU ld that we prefer.
12182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183       *GNU* | *'with BFD'*)
12184         test "$with_gnu_ld" != no && break
12185         ;;
12186       *)
12187         test "$with_gnu_ld" != yes && break
12188         ;;
12189       esac
12190     fi
12191   done
12192   IFS="$lt_save_ifs"
12193 else
12194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12195 fi
12196 fi
12197
12198 LD="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200   echo "$as_me:$LINENO: result: $LD" >&5
12201 echo "${ECHO_T}$LD" >&6
12202 else
12203   echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6
12205 fi
12206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12208    { (exit 1); exit 1; }; }
12209 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12215 case `$LD -v 2>&1 </dev/null` in
12216 *GNU* | *'with BFD'*)
12217   lt_cv_prog_gnu_ld=yes
12218   ;;
12219 *)
12220   lt_cv_prog_gnu_ld=no
12221   ;;
12222 esac
12223 fi
12224 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12226 with_gnu_ld=$lt_cv_prog_gnu_ld
12227
12228
12229
12230   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12231   # archiving commands below assume that GNU ld is being used.
12232   if test "$with_gnu_ld" = yes; then
12233     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234     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'
12235
12236     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12238
12239     # If archive_cmds runs LD, not CC, wlarc should be empty
12240     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12241     #     investigate it a little bit more. (MM)
12242     wlarc='${wl}'
12243
12244     # ancient GNU ld didn't support --whole-archive et. al.
12245     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12246         grep 'no-whole-archive' > /dev/null; then
12247       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12248     else
12249       whole_archive_flag_spec_CXX=
12250     fi
12251   else
12252     with_gnu_ld=no
12253     wlarc=
12254
12255     # A generic and very simple default shared library creation
12256     # command for GNU C++ for the case where it uses the native
12257     # linker, instead of GNU ld.  If possible, this setting should
12258     # overridden to take advantage of the native linker features on
12259     # the platform it is being used on.
12260     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12261   fi
12262
12263   # Commands to make compiler produce verbose output that lists
12264   # what "hidden" libraries, object files and flags are used when
12265   # linking a shared library.
12266   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12267
12268 else
12269   GXX=no
12270   with_gnu_ld=no
12271   wlarc=
12272 fi
12273
12274 # PORTME: fill in a description of your system's C++ link characteristics
12275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12277 ld_shlibs_CXX=yes
12278 case $host_os in
12279   aix3*)
12280     # FIXME: insert proper C++ library support
12281     ld_shlibs_CXX=no
12282     ;;
12283   aix4* | aix5*)
12284     if test "$host_cpu" = ia64; then
12285       # On IA64, the linker does run time linking by default, so we don't
12286       # have to do anything special.
12287       aix_use_runtimelinking=no
12288       exp_sym_flag='-Bexport'
12289       no_entry_flag=""
12290     else
12291       aix_use_runtimelinking=no
12292
12293       # Test if we are trying to use run time linking or normal
12294       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12295       # need to do runtime linking.
12296       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12297         for ld_flag in $LDFLAGS; do
12298           case $ld_flag in
12299           *-brtl*)
12300             aix_use_runtimelinking=yes
12301             break
12302             ;;
12303           esac
12304         done
12305       esac
12306
12307       exp_sym_flag='-bexport'
12308       no_entry_flag='-bnoentry'
12309     fi
12310
12311     # When large executables or shared objects are built, AIX ld can
12312     # have problems creating the table of contents.  If linking a library
12313     # or program results in "error TOC overflow" add -mminimal-toc to
12314     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12315     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12316
12317     archive_cmds_CXX=''
12318     hardcode_direct_CXX=yes
12319     hardcode_libdir_separator_CXX=':'
12320     link_all_deplibs_CXX=yes
12321
12322     if test "$GXX" = yes; then
12323       case $host_os in aix4.[012]|aix4.[012].*)
12324       # We only want to do this on AIX 4.2 and lower, the check
12325       # below for broken collect2 doesn't work under 4.3+
12326         collect2name=`${CC} -print-prog-name=collect2`
12327         if test -f "$collect2name" && \
12328            strings "$collect2name" | grep resolve_lib_name >/dev/null
12329         then
12330           # We have reworked collect2
12331           hardcode_direct_CXX=yes
12332         else
12333           # We have old collect2
12334           hardcode_direct_CXX=unsupported
12335           # It fails to find uninstalled libraries when the uninstalled
12336           # path is not listed in the libpath.  Setting hardcode_minus_L
12337           # to unsupported forces relinking
12338           hardcode_minus_L_CXX=yes
12339           hardcode_libdir_flag_spec_CXX='-L$libdir'
12340           hardcode_libdir_separator_CXX=
12341         fi
12342       esac
12343       shared_flag='-shared'
12344       if test "$aix_use_runtimelinking" = yes; then
12345         shared_flag="$shared_flag "'${wl}-G'
12346       fi
12347     else
12348       # not using gcc
12349       if test "$host_cpu" = ia64; then
12350         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12351         # chokes on -Wl,-G. The following line is correct:
12352         shared_flag='-G'
12353       else
12354         if test "$aix_use_runtimelinking" = yes; then
12355           shared_flag='${wl}-G'
12356         else
12357           shared_flag='${wl}-bM:SRE'
12358         fi
12359       fi
12360     fi
12361
12362     # It seems that -bexpall does not export symbols beginning with
12363     # underscore (_), so it is better to generate a list of symbols to export.
12364     always_export_symbols_CXX=yes
12365     if test "$aix_use_runtimelinking" = yes; then
12366       # Warning - without using the other runtime loading flags (-brtl),
12367       # -berok will link without error, but may produce a broken library.
12368       allow_undefined_flag_CXX='-berok'
12369       # Determine the default libpath from the value encoded in an empty executable.
12370       cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376
12377 int
12378 main ()
12379 {
12380
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387   (eval $ac_link) 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } &&
12394          { ac_try='test -z "$ac_cxx_werror_flag"
12395                          || test ! -s conftest.err'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; } &&
12401          { ac_try='test -s conftest$ac_exeext'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; }; then
12407
12408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12409 }'`
12410 # Check for a 64-bit object if we didn't find anything.
12411 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; }
12412 }'`; fi
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 fi
12418 rm -f conftest.err conftest.$ac_objext \
12419       conftest$ac_exeext conftest.$ac_ext
12420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12421
12422       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12423
12424       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"
12425      else
12426       if test "$host_cpu" = ia64; then
12427         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12428         allow_undefined_flag_CXX="-z nodefs"
12429         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"
12430       else
12431         # Determine the default libpath from the value encoded in an empty executable.
12432         cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439 int
12440 main ()
12441 {
12442
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449   (eval $ac_link) 2>conftest.er1
12450   ac_status=$?
12451   grep -v '^ *+' conftest.er1 >conftest.err
12452   rm -f conftest.er1
12453   cat conftest.err >&5
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -z "$ac_cxx_werror_flag"
12457                          || test ! -s conftest.err'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; } &&
12463          { ac_try='test -s conftest$ac_exeext'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469
12470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12471 }'`
12472 # Check for a 64-bit object if we didn't find anything.
12473 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; }
12474 }'`; fi
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 fi
12480 rm -f conftest.err conftest.$ac_objext \
12481       conftest$ac_exeext conftest.$ac_ext
12482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12483
12484         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12485         # Warning - without using the other run time loading flags,
12486         # -berok will link without error, but may produce a broken library.
12487         no_undefined_flag_CXX=' ${wl}-bernotok'
12488         allow_undefined_flag_CXX=' ${wl}-berok'
12489         # -bexpall does not export symbols beginning with underscore (_)
12490         always_export_symbols_CXX=yes
12491         # Exported symbols can be pulled into shared objects from archives
12492         whole_archive_flag_spec_CXX=' '
12493         archive_cmds_need_lc_CXX=yes
12494         # This is similar to how AIX traditionally builds it's shared libraries.
12495         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'
12496       fi
12497     fi
12498     ;;
12499   chorus*)
12500     case $cc_basename in
12501       *)
12502         # FIXME: insert proper C++ library support
12503         ld_shlibs_CXX=no
12504         ;;
12505     esac
12506     ;;
12507
12508
12509   cygwin* | mingw* | pw32*)
12510     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12511     # as there is no search path for DLLs.
12512     hardcode_libdir_flag_spec_CXX='-L$libdir'
12513     allow_undefined_flag_CXX=unsupported
12514     always_export_symbols_CXX=no
12515     enable_shared_with_static_runtimes_CXX=yes
12516
12517     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12518       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'
12519       # If the export-symbols file already is a .def file (1st line
12520       # is EXPORTS), use it as is; otherwise, prepend...
12521       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12522         cp $export_symbols $output_objdir/$soname.def;
12523       else
12524         echo EXPORTS > $output_objdir/$soname.def;
12525         cat $export_symbols >> $output_objdir/$soname.def;
12526       fi~
12527       $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'
12528     else
12529       ld_shlibs_CXX=no
12530     fi
12531   ;;
12532       darwin* | rhapsody*)
12533         case "$host_os" in
12534         rhapsody* | darwin1.[012])
12535          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12536          ;;
12537        *) # Darwin 1.3 on
12538          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12539            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12540          else
12541            case ${MACOSX_DEPLOYMENT_TARGET} in
12542              10.[012])
12543                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12544                ;;
12545              10.*)
12546                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12547                ;;
12548            esac
12549          fi
12550          ;;
12551         esac
12552       archive_cmds_need_lc_CXX=no
12553       hardcode_direct_CXX=no
12554       hardcode_automatic_CXX=yes
12555       hardcode_shlibpath_var_CXX=unsupported
12556       whole_archive_flag_spec_CXX=''
12557       link_all_deplibs_CXX=yes
12558
12559     if test "$GXX" = yes ; then
12560       lt_int_apple_cc_single_mod=no
12561       output_verbose_link_cmd='echo'
12562       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12563        lt_int_apple_cc_single_mod=yes
12564       fi
12565       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12566        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12567       else
12568           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'
12569         fi
12570         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12571         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12572           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12573             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}'
12574           else
12575             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}'
12576           fi
12577             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}'
12578       else
12579       case $cc_basename in
12580         xlc*)
12581          output_verbose_link_cmd='echo'
12582           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'
12583           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12584           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12585           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}'
12586           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}'
12587           ;;
12588        *)
12589          ld_shlibs_CXX=no
12590           ;;
12591       esac
12592       fi
12593         ;;
12594
12595   dgux*)
12596     case $cc_basename in
12597       ec++*)
12598         # FIXME: insert proper C++ library support
12599         ld_shlibs_CXX=no
12600         ;;
12601       ghcx*)
12602         # Green Hills C++ Compiler
12603         # FIXME: insert proper C++ library support
12604         ld_shlibs_CXX=no
12605         ;;
12606       *)
12607         # FIXME: insert proper C++ library support
12608         ld_shlibs_CXX=no
12609         ;;
12610     esac
12611     ;;
12612   freebsd[12]*)
12613     # C++ shared libraries reported to be fairly broken before switch to ELF
12614     ld_shlibs_CXX=no
12615     ;;
12616   freebsd-elf*)
12617     archive_cmds_need_lc_CXX=no
12618     ;;
12619   freebsd* | kfreebsd*-gnu | dragonfly*)
12620     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12621     # conventions
12622     ld_shlibs_CXX=yes
12623     ;;
12624   gnu*)
12625     ;;
12626   hpux9*)
12627     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12628     hardcode_libdir_separator_CXX=:
12629     export_dynamic_flag_spec_CXX='${wl}-E'
12630     hardcode_direct_CXX=yes
12631     hardcode_minus_L_CXX=yes # Not in the search PATH,
12632                                 # but as the default
12633                                 # location of the library.
12634
12635     case $cc_basename in
12636     CC*)
12637       # FIXME: insert proper C++ library support
12638       ld_shlibs_CXX=no
12639       ;;
12640     aCC*)
12641       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'
12642       # Commands to make compiler produce verbose output that lists
12643       # what "hidden" libraries, object files and flags are used when
12644       # linking a shared library.
12645       #
12646       # There doesn't appear to be a way to prevent this compiler from
12647       # explicitly linking system object files so we need to strip them
12648       # from the output so that they don't get included in the library
12649       # dependencies.
12650       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'
12651       ;;
12652     *)
12653       if test "$GXX" = yes; then
12654         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'
12655       else
12656         # FIXME: insert proper C++ library support
12657         ld_shlibs_CXX=no
12658       fi
12659       ;;
12660     esac
12661     ;;
12662   hpux10*|hpux11*)
12663     if test $with_gnu_ld = no; then
12664       case "$host_cpu" in
12665       hppa*64*)
12666         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12667         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12668         hardcode_libdir_separator_CXX=:
12669         ;;
12670       ia64*)
12671         hardcode_libdir_flag_spec_CXX='-L$libdir'
12672         ;;
12673       *)
12674         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12675         hardcode_libdir_separator_CXX=:
12676         export_dynamic_flag_spec_CXX='${wl}-E'
12677         ;;
12678       esac
12679     fi
12680     case "$host_cpu" in
12681     hppa*64*)
12682       hardcode_direct_CXX=no
12683       hardcode_shlibpath_var_CXX=no
12684       ;;
12685     ia64*)
12686       hardcode_direct_CXX=no
12687       hardcode_shlibpath_var_CXX=no
12688       hardcode_minus_L_CXX=yes # Not in the search PATH,
12689                                               # but as the default
12690                                               # location of the library.
12691       ;;
12692     *)
12693       hardcode_direct_CXX=yes
12694       hardcode_minus_L_CXX=yes # Not in the search PATH,
12695                                               # but as the default
12696                                               # location of the library.
12697       ;;
12698     esac
12699
12700     case $cc_basename in
12701       CC*)
12702         # FIXME: insert proper C++ library support
12703         ld_shlibs_CXX=no
12704         ;;
12705       aCC*)
12706         case "$host_cpu" in
12707         hppa*64*|ia64*)
12708           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12709           ;;
12710         *)
12711           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12712           ;;
12713         esac
12714         # Commands to make compiler produce verbose output that lists
12715         # what "hidden" libraries, object files and flags are used when
12716         # linking a shared library.
12717         #
12718         # There doesn't appear to be a way to prevent this compiler from
12719         # explicitly linking system object files so we need to strip them
12720         # from the output so that they don't get included in the library
12721         # dependencies.
12722         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'
12723         ;;
12724       *)
12725         if test "$GXX" = yes; then
12726           if test $with_gnu_ld = no; then
12727             case "$host_cpu" in
12728             ia64*|hppa*64*)
12729               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12730               ;;
12731             *)
12732               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'
12733               ;;
12734             esac
12735           fi
12736         else
12737           # FIXME: insert proper C++ library support
12738           ld_shlibs_CXX=no
12739         fi
12740         ;;
12741     esac
12742     ;;
12743   irix5* | irix6*)
12744     case $cc_basename in
12745       CC*)
12746         # SGI C++
12747         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'
12748
12749         # Archives containing C++ object files must be created using
12750         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12751         # necessary to make sure instantiated templates are included
12752         # in the archive.
12753         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12754         ;;
12755       *)
12756         if test "$GXX" = yes; then
12757           if test "$with_gnu_ld" = no; then
12758             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'
12759           else
12760             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'
12761           fi
12762         fi
12763         link_all_deplibs_CXX=yes
12764         ;;
12765     esac
12766     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12767     hardcode_libdir_separator_CXX=:
12768     ;;
12769   linux*)
12770     case $cc_basename in
12771       KCC*)
12772         # Kuck and Associates, Inc. (KAI) C++ Compiler
12773
12774         # KCC will only create a shared library if the output file
12775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776         # to its proper name (with version) after linking.
12777         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'
12778         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'
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 $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'
12788
12789         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12790         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12791
12792         # Archives containing C++ object files must be created using
12793         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12794         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12795         ;;
12796       icpc*)
12797         # Intel C++
12798         with_gnu_ld=yes
12799         # version 8.0 and above of icpc choke on multiply defined symbols
12800         # if we add $predep_objects and $postdep_objects, however 7.1 and
12801         # earlier do not add the objects themselves.
12802         case `$CC -V 2>&1` in
12803         *"Version 7."*)
12804           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805           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'
12806           ;;
12807         *)  # Version 8.0 or newer
12808           tmp_idyn=
12809           case $host_cpu in
12810             ia64*) tmp_idyn=' -i_dynamic';;
12811           esac
12812           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813           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'
12814           ;;
12815         esac
12816         archive_cmds_need_lc_CXX=no
12817         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12818         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12819         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12820         ;;
12821       pgCC*)
12822         # Portland Group C++ compiler
12823         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12824         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'
12825
12826         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12827         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12828         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'
12829         ;;
12830       cxx*)
12831         # Compaq C++
12832         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833         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'
12834
12835         runpath_var=LD_RUN_PATH
12836         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12837         hardcode_libdir_separator_CXX=:
12838
12839         # Commands to make compiler produce verbose output that lists
12840         # what "hidden" libraries, object files and flags are used when
12841         # linking a shared library.
12842         #
12843         # There doesn't appear to be a way to prevent this compiler from
12844         # explicitly linking system object files so we need to strip them
12845         # from the output so that they don't get included in the library
12846         # dependencies.
12847         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'
12848         ;;
12849     esac
12850     ;;
12851   lynxos*)
12852     # FIXME: insert proper C++ library support
12853     ld_shlibs_CXX=no
12854     ;;
12855   m88k*)
12856     # FIXME: insert proper C++ library support
12857     ld_shlibs_CXX=no
12858     ;;
12859   mvs*)
12860     case $cc_basename in
12861       cxx*)
12862         # FIXME: insert proper C++ library support
12863         ld_shlibs_CXX=no
12864         ;;
12865       *)
12866         # FIXME: insert proper C++ library support
12867         ld_shlibs_CXX=no
12868         ;;
12869     esac
12870     ;;
12871   netbsd*)
12872     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12873       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12874       wlarc=
12875       hardcode_libdir_flag_spec_CXX='-R$libdir'
12876       hardcode_direct_CXX=yes
12877       hardcode_shlibpath_var_CXX=no
12878     fi
12879     # Workaround some broken pre-1.5 toolchains
12880     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12881     ;;
12882   openbsd2*)
12883     # C++ shared libraries are fairly broken
12884     ld_shlibs_CXX=no
12885     ;;
12886   openbsd*)
12887     hardcode_direct_CXX=yes
12888     hardcode_shlibpath_var_CXX=no
12889     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12890     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12891     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12892       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12893       export_dynamic_flag_spec_CXX='${wl}-E'
12894       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12895     fi
12896     output_verbose_link_cmd='echo'
12897     ;;
12898   osf3*)
12899     case $cc_basename in
12900       KCC*)
12901         # Kuck and Associates, Inc. (KAI) C++ Compiler
12902
12903         # KCC will only create a shared library if the output file
12904         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12905         # to its proper name (with version) after linking.
12906         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'
12907
12908         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12909         hardcode_libdir_separator_CXX=:
12910
12911         # Archives containing C++ object files must be created using
12912         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12913         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12914
12915         ;;
12916       RCC*)
12917         # Rational C++ 2.4.1
12918         # FIXME: insert proper C++ library support
12919         ld_shlibs_CXX=no
12920         ;;
12921       cxx*)
12922         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12923         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'
12924
12925         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12926         hardcode_libdir_separator_CXX=:
12927
12928         # Commands to make compiler produce verbose output that lists
12929         # what "hidden" libraries, object files and flags are used when
12930         # linking a shared library.
12931         #
12932         # There doesn't appear to be a way to prevent this compiler from
12933         # explicitly linking system object files so we need to strip them
12934         # from the output so that they don't get included in the library
12935         # dependencies.
12936         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'
12937         ;;
12938       *)
12939         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12940           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12941           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'
12942
12943           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12944           hardcode_libdir_separator_CXX=:
12945
12946           # Commands to make compiler produce verbose output that lists
12947           # what "hidden" libraries, object files and flags are used when
12948           # linking a shared library.
12949           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12950
12951         else
12952           # FIXME: insert proper C++ library support
12953           ld_shlibs_CXX=no
12954         fi
12955         ;;
12956     esac
12957     ;;
12958   osf4* | osf5*)
12959     case $cc_basename in
12960       KCC*)
12961         # Kuck and Associates, Inc. (KAI) C++ Compiler
12962
12963         # KCC will only create a shared library if the output file
12964         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12965         # to its proper name (with version) after linking.
12966         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'
12967
12968         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12969         hardcode_libdir_separator_CXX=:
12970
12971         # Archives containing C++ object files must be created using
12972         # the KAI C++ compiler.
12973         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12974         ;;
12975       RCC*)
12976         # Rational C++ 2.4.1
12977         # FIXME: insert proper C++ library support
12978         ld_shlibs_CXX=no
12979         ;;
12980       cxx*)
12981         allow_undefined_flag_CXX=' -expect_unresolved \*'
12982         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'
12983         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12984           echo "-hidden">> $lib.exp~
12985           $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~
12986           $rm $lib.exp'
12987
12988         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12989         hardcode_libdir_separator_CXX=:
12990
12991         # Commands to make compiler produce verbose output that lists
12992         # what "hidden" libraries, object files and flags are used when
12993         # linking a shared library.
12994         #
12995         # There doesn't appear to be a way to prevent this compiler from
12996         # explicitly linking system object files so we need to strip them
12997         # from the output so that they don't get included in the library
12998         # dependencies.
12999         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'
13000         ;;
13001       *)
13002         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13003           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13004          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'
13005
13006           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13007           hardcode_libdir_separator_CXX=:
13008
13009           # Commands to make compiler produce verbose output that lists
13010           # what "hidden" libraries, object files and flags are used when
13011           # linking a shared library.
13012           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13013
13014         else
13015           # FIXME: insert proper C++ library support
13016           ld_shlibs_CXX=no
13017         fi
13018         ;;
13019     esac
13020     ;;
13021   psos*)
13022     # FIXME: insert proper C++ library support
13023     ld_shlibs_CXX=no
13024     ;;
13025   sco*)
13026     archive_cmds_need_lc_CXX=no
13027     case $cc_basename in
13028       CC*)
13029         # FIXME: insert proper C++ library support
13030         ld_shlibs_CXX=no
13031         ;;
13032       *)
13033         # FIXME: insert proper C++ library support
13034         ld_shlibs_CXX=no
13035         ;;
13036     esac
13037     ;;
13038   sunos4*)
13039     case $cc_basename in
13040       CC*)
13041         # Sun C++ 4.x
13042         # FIXME: insert proper C++ library support
13043         ld_shlibs_CXX=no
13044         ;;
13045       lcc*)
13046         # Lucid
13047         # FIXME: insert proper C++ library support
13048         ld_shlibs_CXX=no
13049         ;;
13050       *)
13051         # FIXME: insert proper C++ library support
13052         ld_shlibs_CXX=no
13053         ;;
13054     esac
13055     ;;
13056   solaris*)
13057     case $cc_basename in
13058       CC*)
13059         # Sun C++ 4.2, 5.x and Centerline C++
13060         no_undefined_flag_CXX=' -zdefs'
13061         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13062         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13063         $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'
13064
13065         hardcode_libdir_flag_spec_CXX='-R$libdir'
13066         hardcode_shlibpath_var_CXX=no
13067         case $host_os in
13068           solaris2.[0-5] | solaris2.[0-5].*) ;;
13069           *)
13070             # The C++ compiler is used as linker so we must use $wl
13071             # flag to pass the commands to the underlying system
13072             # linker. We must also pass each convience library through
13073             # to the system linker between allextract/defaultextract.
13074             # The C++ compiler will combine linker options so we
13075             # cannot just pass the convience library names through
13076             # without $wl.
13077             # Supported since Solaris 2.6 (maybe 2.5.1?)
13078             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'
13079             ;;
13080         esac
13081         link_all_deplibs_CXX=yes
13082
13083         # Commands to make compiler produce verbose output that lists
13084         # what "hidden" libraries, object files and flags are used when
13085         # linking a shared library.
13086         #
13087         # There doesn't appear to be a way to prevent this compiler from
13088         # explicitly linking system object files so we need to strip them
13089         # from the output so that they don't get included in the library
13090         # dependencies.
13091         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'
13092
13093         # Archives containing C++ object files must be created using
13094         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13095         # necessary to make sure instantiated templates are included
13096         # in the archive.
13097         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13098         ;;
13099       gcx*)
13100         # Green Hills C++ Compiler
13101         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13102
13103         # The C++ compiler must be used to create the archive.
13104         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13105         ;;
13106       *)
13107         # GNU C++ compiler with Solaris linker
13108         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13109           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13110           if $CC --version | grep -v '^2\.7' > /dev/null; then
13111             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13112             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13113                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13114
13115             # Commands to make compiler produce verbose output that lists
13116             # what "hidden" libraries, object files and flags are used when
13117             # linking a shared library.
13118             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13119           else
13120             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13121             # platform.
13122             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13123             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13124                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13125
13126             # Commands to make compiler produce verbose output that lists
13127             # what "hidden" libraries, object files and flags are used when
13128             # linking a shared library.
13129             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13130           fi
13131
13132           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13133         fi
13134         ;;
13135     esac
13136     ;;
13137   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13138     archive_cmds_need_lc_CXX=no
13139     ;;
13140   tandem*)
13141     case $cc_basename in
13142       NCC*)
13143         # NonStop-UX NCC 3.20
13144         # FIXME: insert proper C++ library support
13145         ld_shlibs_CXX=no
13146         ;;
13147       *)
13148         # FIXME: insert proper C++ library support
13149         ld_shlibs_CXX=no
13150         ;;
13151     esac
13152     ;;
13153   vxworks*)
13154     # FIXME: insert proper C++ library support
13155     ld_shlibs_CXX=no
13156     ;;
13157   *)
13158     # FIXME: insert proper C++ library support
13159     ld_shlibs_CXX=no
13160     ;;
13161 esac
13162 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13163 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13164 test "$ld_shlibs_CXX" = no && can_build_shared=no
13165
13166 GCC_CXX="$GXX"
13167 LD_CXX="$LD"
13168
13169
13170 cat > conftest.$ac_ext <<EOF
13171 class Foo
13172 {
13173 public:
13174   Foo (void) { a = 0; }
13175 private:
13176   int a;
13177 };
13178 EOF
13179
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; then
13185   # Parse the compiler output and extract the necessary
13186   # objects, libraries and library flags.
13187
13188   # Sentinel used to keep track of whether or not we are before
13189   # the conftest object file.
13190   pre_test_object_deps_done=no
13191
13192   # The `*' in the case matches for architectures that use `case' in
13193   # $output_verbose_cmd can trigger glob expansion during the loop
13194   # eval without this substitution.
13195   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13196
13197   for p in `eval $output_verbose_link_cmd`; do
13198     case $p in
13199
13200     -L* | -R* | -l*)
13201        # Some compilers place space between "-{L,R}" and the path.
13202        # Remove the space.
13203        if test $p = "-L" \
13204           || test $p = "-R"; then
13205          prev=$p
13206          continue
13207        else
13208          prev=
13209        fi
13210
13211        if test "$pre_test_object_deps_done" = no; then
13212          case $p in
13213          -L* | -R*)
13214            # Internal compiler library paths should come after those
13215            # provided the user.  The postdeps already come after the
13216            # user supplied libs so there is no need to process them.
13217            if test -z "$compiler_lib_search_path_CXX"; then
13218              compiler_lib_search_path_CXX="${prev}${p}"
13219            else
13220              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13221            fi
13222            ;;
13223          # The "-l" case would never come before the object being
13224          # linked, so don't bother handling this case.
13225          esac
13226        else
13227          if test -z "$postdeps_CXX"; then
13228            postdeps_CXX="${prev}${p}"
13229          else
13230            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13231          fi
13232        fi
13233        ;;
13234
13235     *.$objext)
13236        # This assumes that the test object file only shows up
13237        # once in the compiler output.
13238        if test "$p" = "conftest.$objext"; then
13239          pre_test_object_deps_done=yes
13240          continue
13241        fi
13242
13243        if test "$pre_test_object_deps_done" = no; then
13244          if test -z "$predep_objects_CXX"; then
13245            predep_objects_CXX="$p"
13246          else
13247            predep_objects_CXX="$predep_objects_CXX $p"
13248          fi
13249        else
13250          if test -z "$postdep_objects_CXX"; then
13251            postdep_objects_CXX="$p"
13252          else
13253            postdep_objects_CXX="$postdep_objects_CXX $p"
13254          fi
13255        fi
13256        ;;
13257
13258     *) ;; # Ignore the rest.
13259
13260     esac
13261   done
13262
13263   # Clean up.
13264   rm -f a.out a.exe
13265 else
13266   echo "libtool.m4: error: problem compiling CXX test program"
13267 fi
13268
13269 $rm -f confest.$objext
13270
13271 case " $postdeps_CXX " in
13272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13273 esac
13274
13275 lt_prog_compiler_wl_CXX=
13276 lt_prog_compiler_pic_CXX=
13277 lt_prog_compiler_static_CXX=
13278
13279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13281
13282   # C++ specific cases for pic, static, wl, etc.
13283   if test "$GXX" = yes; then
13284     lt_prog_compiler_wl_CXX='-Wl,'
13285     lt_prog_compiler_static_CXX='-static'
13286
13287     case $host_os in
13288     aix*)
13289       # All AIX code is PIC.
13290       if test "$host_cpu" = ia64; then
13291         # AIX 5 now supports IA64 processor
13292         lt_prog_compiler_static_CXX='-Bstatic'
13293       fi
13294       ;;
13295     amigaos*)
13296       # FIXME: we need at least 68020 code to build shared libraries, but
13297       # adding the `-m68020' flag to GCC prevents building anything better,
13298       # like `-m68040'.
13299       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13300       ;;
13301     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13302       # PIC is the default for these OSes.
13303       ;;
13304     mingw* | os2* | pw32*)
13305       # This hack is so that the source file can tell whether it is being
13306       # built for inclusion in a dll (and should export symbols for example).
13307       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13308       ;;
13309     darwin* | rhapsody*)
13310       # PIC is the default on this platform
13311       # Common symbols not allowed in MH_DYLIB files
13312       lt_prog_compiler_pic_CXX='-fno-common'
13313       ;;
13314     *djgpp*)
13315       # DJGPP does not support shared libraries at all
13316       lt_prog_compiler_pic_CXX=
13317       ;;
13318     sysv4*MP*)
13319       if test -d /usr/nec; then
13320         lt_prog_compiler_pic_CXX=-Kconform_pic
13321       fi
13322       ;;
13323     hpux*)
13324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13325       # not for PA HP-UX.
13326       case "$host_cpu" in
13327       hppa*64*|ia64*)
13328         ;;
13329       *)
13330         lt_prog_compiler_pic_CXX='-fPIC'
13331         ;;
13332       esac
13333       ;;
13334     *)
13335       lt_prog_compiler_pic_CXX='-fPIC'
13336       ;;
13337     esac
13338   else
13339     case $host_os in
13340       aix4* | aix5*)
13341         # All AIX code is PIC.
13342         if test "$host_cpu" = ia64; then
13343           # AIX 5 now supports IA64 processor
13344           lt_prog_compiler_static_CXX='-Bstatic'
13345         else
13346           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13347         fi
13348         ;;
13349       chorus*)
13350         case $cc_basename in
13351         cxch68*)
13352           # Green Hills C++ Compiler
13353           # _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"
13354           ;;
13355         esac
13356         ;;
13357        darwin*)
13358          # PIC is the default on this platform
13359          # Common symbols not allowed in MH_DYLIB files
13360          case $cc_basename in
13361            xlc*)
13362            lt_prog_compiler_pic_CXX='-qnocommon'
13363            lt_prog_compiler_wl_CXX='-Wl,'
13364            ;;
13365          esac
13366        ;;
13367       dgux*)
13368         case $cc_basename in
13369           ec++*)
13370             lt_prog_compiler_pic_CXX='-KPIC'
13371             ;;
13372           ghcx*)
13373             # Green Hills C++ Compiler
13374             lt_prog_compiler_pic_CXX='-pic'
13375             ;;
13376           *)
13377             ;;
13378         esac
13379         ;;
13380       freebsd* | kfreebsd*-gnu | dragonfly*)
13381         # FreeBSD uses GNU C++
13382         ;;
13383       hpux9* | hpux10* | hpux11*)
13384         case $cc_basename in
13385           CC*)
13386             lt_prog_compiler_wl_CXX='-Wl,'
13387             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13388             if test "$host_cpu" != ia64; then
13389               lt_prog_compiler_pic_CXX='+Z'
13390             fi
13391             ;;
13392           aCC*)
13393             lt_prog_compiler_wl_CXX='-Wl,'
13394             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13395             case "$host_cpu" in
13396             hppa*64*|ia64*)
13397               # +Z the default
13398               ;;
13399             *)
13400               lt_prog_compiler_pic_CXX='+Z'
13401               ;;
13402             esac
13403             ;;
13404           *)
13405             ;;
13406         esac
13407         ;;
13408       irix5* | irix6* | nonstopux*)
13409         case $cc_basename in
13410           CC*)
13411             lt_prog_compiler_wl_CXX='-Wl,'
13412             lt_prog_compiler_static_CXX='-non_shared'
13413             # CC pic flag -KPIC is the default.
13414             ;;
13415           *)
13416             ;;
13417         esac
13418         ;;
13419       linux*)
13420         case $cc_basename in
13421           KCC*)
13422             # KAI C++ Compiler
13423             lt_prog_compiler_wl_CXX='--backend -Wl,'
13424             lt_prog_compiler_pic_CXX='-fPIC'
13425             ;;
13426           icpc* | ecpc*)
13427             # Intel C++
13428             lt_prog_compiler_wl_CXX='-Wl,'
13429             lt_prog_compiler_pic_CXX='-KPIC'
13430             lt_prog_compiler_static_CXX='-static'
13431             ;;
13432           pgCC*)
13433             # Portland Group C++ compiler.
13434             lt_prog_compiler_wl_CXX='-Wl,'
13435             lt_prog_compiler_pic_CXX='-fpic'
13436             lt_prog_compiler_static_CXX='-static'
13437             ;;
13438           cxx*)
13439             # Compaq C++
13440             # Make sure the PIC flag is empty.  It appears that all Alpha
13441             # Linux and Compaq Tru64 Unix objects are PIC.
13442             lt_prog_compiler_pic_CXX=
13443             lt_prog_compiler_static_CXX='-non_shared'
13444             ;;
13445           *)
13446             ;;
13447         esac
13448         ;;
13449       lynxos*)
13450         ;;
13451       m88k*)
13452         ;;
13453       mvs*)
13454         case $cc_basename in
13455           cxx*)
13456             lt_prog_compiler_pic_CXX='-W c,exportall'
13457             ;;
13458           *)
13459             ;;
13460         esac
13461         ;;
13462       netbsd*)
13463         ;;
13464       osf3* | osf4* | osf5*)
13465         case $cc_basename in
13466           KCC*)
13467             lt_prog_compiler_wl_CXX='--backend -Wl,'
13468             ;;
13469           RCC*)
13470             # Rational C++ 2.4.1
13471             lt_prog_compiler_pic_CXX='-pic'
13472             ;;
13473           cxx*)
13474             # Digital/Compaq C++
13475             lt_prog_compiler_wl_CXX='-Wl,'
13476             # Make sure the PIC flag is empty.  It appears that all Alpha
13477             # Linux and Compaq Tru64 Unix objects are PIC.
13478             lt_prog_compiler_pic_CXX=
13479             lt_prog_compiler_static_CXX='-non_shared'
13480             ;;
13481           *)
13482             ;;
13483         esac
13484         ;;
13485       psos*)
13486         ;;
13487       sco*)
13488         case $cc_basename in
13489           CC*)
13490             lt_prog_compiler_pic_CXX='-fPIC'
13491             ;;
13492           *)
13493             ;;
13494         esac
13495         ;;
13496       solaris*)
13497         case $cc_basename in
13498           CC*)
13499             # Sun C++ 4.2, 5.x and Centerline C++
13500             lt_prog_compiler_pic_CXX='-KPIC'
13501             lt_prog_compiler_static_CXX='-Bstatic'
13502             lt_prog_compiler_wl_CXX='-Qoption ld '
13503             ;;
13504           gcx*)
13505             # Green Hills C++ Compiler
13506             lt_prog_compiler_pic_CXX='-PIC'
13507             ;;
13508           *)
13509             ;;
13510         esac
13511         ;;
13512       sunos4*)
13513         case $cc_basename in
13514           CC*)
13515             # Sun C++ 4.x
13516             lt_prog_compiler_pic_CXX='-pic'
13517             lt_prog_compiler_static_CXX='-Bstatic'
13518             ;;
13519           lcc*)
13520             # Lucid
13521             lt_prog_compiler_pic_CXX='-pic'
13522             ;;
13523           *)
13524             ;;
13525         esac
13526         ;;
13527       tandem*)
13528         case $cc_basename in
13529           NCC*)
13530             # NonStop-UX NCC 3.20
13531             lt_prog_compiler_pic_CXX='-KPIC'
13532             ;;
13533           *)
13534             ;;
13535         esac
13536         ;;
13537       unixware*)
13538         ;;
13539       vxworks*)
13540         ;;
13541       *)
13542         lt_prog_compiler_can_build_shared_CXX=no
13543         ;;
13544     esac
13545   fi
13546
13547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13548 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13549
13550 #
13551 # Check to make sure the PIC flag actually works.
13552 #
13553 if test -n "$lt_prog_compiler_pic_CXX"; then
13554
13555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13557 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13558   echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560   lt_prog_compiler_pic_works_CXX=no
13561   ac_outfile=conftest.$ac_objext
13562    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13563    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13564    # Insert the option either (1) after the last *FLAGS variable, or
13565    # (2) before a word containing "conftest.", or (3) at the end.
13566    # Note that $ac_compile itself does not contain backslashes and begins
13567    # with a dollar sign (not a hyphen), so the echo should work correctly.
13568    # The option is referenced via a variable to avoid confusing sed.
13569    lt_compile=`echo "$ac_compile" | $SED \
13570    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13572    -e 's:$: $lt_compiler_flag:'`
13573    (eval echo "\"\$as_me:13573: $lt_compile\"" >&5)
13574    (eval "$lt_compile" 2>conftest.err)
13575    ac_status=$?
13576    cat conftest.err >&5
13577    echo "$as_me:13577: \$? = $ac_status" >&5
13578    if (exit $ac_status) && test -s "$ac_outfile"; then
13579      # The compiler can only warn and ignore the option if not recognized
13580      # So say no if there are warnings other than the usual output.
13581      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13582      $SED '/^$/d' conftest.err >conftest.er2
13583      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13584        lt_prog_compiler_pic_works_CXX=yes
13585      fi
13586    fi
13587    $rm conftest*
13588
13589 fi
13590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13592
13593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13594     case $lt_prog_compiler_pic_CXX in
13595      "" | " "*) ;;
13596      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13597      esac
13598 else
13599     lt_prog_compiler_pic_CXX=
13600      lt_prog_compiler_can_build_shared_CXX=no
13601 fi
13602
13603 fi
13604 case "$host_os" in
13605   # For platforms which do not support PIC, -DPIC is meaningless:
13606   *djgpp*)
13607     lt_prog_compiler_pic_CXX=
13608     ;;
13609   *)
13610     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13611     ;;
13612 esac
13613
13614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   lt_cv_prog_compiler_c_o_CXX=no
13620    $rm -r conftest 2>/dev/null
13621    mkdir conftest
13622    cd conftest
13623    mkdir out
13624    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13625
13626    lt_compiler_flag="-o out/conftest2.$ac_objext"
13627    # Insert the option either (1) after the last *FLAGS variable, or
13628    # (2) before a word containing "conftest.", or (3) at the end.
13629    # Note that $ac_compile itself does not contain backslashes and begins
13630    # with a dollar sign (not a hyphen), so the echo should work correctly.
13631    lt_compile=`echo "$ac_compile" | $SED \
13632    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13633    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13634    -e 's:$: $lt_compiler_flag:'`
13635    (eval echo "\"\$as_me:13635: $lt_compile\"" >&5)
13636    (eval "$lt_compile" 2>out/conftest.err)
13637    ac_status=$?
13638    cat out/conftest.err >&5
13639    echo "$as_me:13639: \$? = $ac_status" >&5
13640    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13641    then
13642      # The compiler can only warn and ignore the option if not recognized
13643      # So say no if there are warnings
13644      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13645      $SED '/^$/d' out/conftest.err >out/conftest.er2
13646      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13647        lt_cv_prog_compiler_c_o_CXX=yes
13648      fi
13649    fi
13650    chmod u+w .
13651    $rm conftest*
13652    # SGI C++ compiler will create directory out/ii_files/ for
13653    # template instantiation
13654    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13655    $rm out/* && rmdir out
13656    cd ..
13657    rmdir conftest
13658    $rm conftest*
13659
13660 fi
13661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13663
13664
13665 hard_links="nottested"
13666 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13667   # do not overwrite the value of need_locks provided by the user
13668   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13669 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13670   hard_links=yes
13671   $rm conftest*
13672   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13673   touch conftest.a
13674   ln conftest.a conftest.b 2>&5 || hard_links=no
13675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13676   echo "$as_me:$LINENO: result: $hard_links" >&5
13677 echo "${ECHO_T}$hard_links" >&6
13678   if test "$hard_links" = no; then
13679     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13681     need_locks=warn
13682   fi
13683 else
13684   need_locks=no
13685 fi
13686
13687 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13689
13690   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13691   case $host_os in
13692   aix4* | aix5*)
13693     # If we're using GNU nm, then we don't want the "-C" option.
13694     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13695     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13696       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'
13697     else
13698       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'
13699     fi
13700     ;;
13701   pw32*)
13702     export_symbols_cmds_CXX="$ltdll_cmds"
13703   ;;
13704   cygwin* | mingw*)
13705     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'
13706   ;;
13707   *)
13708     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13709   ;;
13710   esac
13711
13712 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13713 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13714 test "$ld_shlibs_CXX" = no && can_build_shared=no
13715
13716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13717 if test "$GCC" = yes; then
13718   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13719 fi
13720
13721 #
13722 # Do we need to explicitly link libc?
13723 #
13724 case "x$archive_cmds_need_lc_CXX" in
13725 x|xyes)
13726   # Assume -lc should be added
13727   archive_cmds_need_lc_CXX=yes
13728
13729   if test "$enable_shared" = yes && test "$GCC" = yes; then
13730     case $archive_cmds_CXX in
13731     *'~'*)
13732       # FIXME: we may have to deal with multi-command sequences.
13733       ;;
13734     '$CC '*)
13735       # Test whether the compiler implicitly links with -lc since on some
13736       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13737       # to ld, don't add -lc before -lgcc.
13738       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13739 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13740       $rm conftest*
13741       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13742
13743       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744   (eval $ac_compile) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); } 2>conftest.err; then
13748         soname=conftest
13749         lib=conftest
13750         libobjs=conftest.$ac_objext
13751         deplibs=
13752         wl=$lt_prog_compiler_wl_CXX
13753         compiler_flags=-v
13754         linker_flags=-v
13755         verstring=
13756         output_objdir=.
13757         libname=conftest
13758         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13759         allow_undefined_flag_CXX=
13760         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13761   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }
13765         then
13766           archive_cmds_need_lc_CXX=no
13767         else
13768           archive_cmds_need_lc_CXX=yes
13769         fi
13770         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13771       else
13772         cat conftest.err 1>&5
13773       fi
13774       $rm conftest*
13775       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13776 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13777       ;;
13778     esac
13779   fi
13780   ;;
13781 esac
13782
13783 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13785 library_names_spec=
13786 libname_spec='lib$name'
13787 soname_spec=
13788 shrext_cmds=".so"
13789 postinstall_cmds=
13790 postuninstall_cmds=
13791 finish_cmds=
13792 finish_eval=
13793 shlibpath_var=
13794 shlibpath_overrides_runpath=unknown
13795 version_type=none
13796 dynamic_linker="$host_os ld.so"
13797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13798 if test "$GCC" = yes; then
13799   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13800   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13801     # if the path contains ";" then we assume it to be the separator
13802     # otherwise default to the standard path separator (i.e. ":") - it is
13803     # assumed that no part of a normal pathname contains ";" but that should
13804     # okay in the real world where ";" in dirpaths is itself problematic.
13805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13806   else
13807     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13808   fi
13809 else
13810   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13811 fi
13812 need_lib_prefix=unknown
13813 hardcode_into_libs=no
13814
13815 # when you set need_version to no, make sure it does not cause -set_version
13816 # flags to be left without arguments
13817 need_version=unknown
13818
13819 case $host_os in
13820 aix3*)
13821   version_type=linux
13822   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13823   shlibpath_var=LIBPATH
13824
13825   # AIX 3 has no versioning support, so we append a major version to the name.
13826   soname_spec='${libname}${release}${shared_ext}$major'
13827   ;;
13828
13829 aix4* | aix5*)
13830   version_type=linux
13831   need_lib_prefix=no
13832   need_version=no
13833   hardcode_into_libs=yes
13834   if test "$host_cpu" = ia64; then
13835     # AIX 5 supports IA64
13836     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13837     shlibpath_var=LD_LIBRARY_PATH
13838   else
13839     # With GCC up to 2.95.x, collect2 would create an import file
13840     # for dependence libraries.  The import file would start with
13841     # the line `#! .'.  This would cause the generated library to
13842     # depend on `.', always an invalid library.  This was fixed in
13843     # development snapshots of GCC prior to 3.0.
13844     case $host_os in
13845       aix4 | aix4.[01] | aix4.[01].*)
13846       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13847            echo ' yes '
13848            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13849         :
13850       else
13851         can_build_shared=no
13852       fi
13853       ;;
13854     esac
13855     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13856     # soname into executable. Probably we can add versioning support to
13857     # collect2, so additional links can be useful in future.
13858     if test "$aix_use_runtimelinking" = yes; then
13859       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13860       # instead of lib<name>.a to let people know that these are not
13861       # typical AIX shared libraries.
13862       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863     else
13864       # We preserve .a as extension for shared libraries through AIX4.2
13865       # and later when we are not doing run time linking.
13866       library_names_spec='${libname}${release}.a $libname.a'
13867       soname_spec='${libname}${release}${shared_ext}$major'
13868     fi
13869     shlibpath_var=LIBPATH
13870   fi
13871   ;;
13872
13873 amigaos*)
13874   library_names_spec='$libname.ixlibrary $libname.a'
13875   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13876   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'
13877   ;;
13878
13879 beos*)
13880   library_names_spec='${libname}${shared_ext}'
13881   dynamic_linker="$host_os ld.so"
13882   shlibpath_var=LIBRARY_PATH
13883   ;;
13884
13885 bsdi[45]*)
13886   version_type=linux
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13894   # the default ld.so.conf also contains /usr/contrib/lib and
13895   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896   # libtool to hard-code these into programs
13897   ;;
13898
13899 cygwin* | mingw* | pw32*)
13900   version_type=windows
13901   shrext_cmds=".dll"
13902   need_version=no
13903   need_lib_prefix=no
13904
13905   case $GCC,$host_os in
13906   yes,cygwin* | yes,mingw* | yes,pw32*)
13907     library_names_spec='$libname.dll.a'
13908     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909     postinstall_cmds='base_file=`basename \${file}`~
13910       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13911       dldir=$destdir/`dirname \$dlpath`~
13912       test -d \$dldir || mkdir -p \$dldir~
13913       $install_prog $dir/$dlname \$dldir/$dlname'
13914     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13915       dlpath=$dir/\$dldll~
13916        $rm \$dlpath'
13917     shlibpath_overrides_runpath=yes
13918
13919     case $host_os in
13920     cygwin*)
13921       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13922       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13923       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13924       ;;
13925     mingw*)
13926       # MinGW DLLs use traditional 'lib' prefix
13927       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13928       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13929       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13930         # It is most probably a Windows format PATH printed by
13931         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13932         # path with ; separators, and with drive letters. We can handle the
13933         # drive letters (cygwin fileutils understands them), so leave them,
13934         # especially as we might pass files found there to a mingw objdump,
13935         # which wouldn't understand a cygwinified path. Ahh.
13936         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13937       else
13938         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13939       fi
13940       ;;
13941     pw32*)
13942       # pw32 DLLs use 'pw' prefix rather than 'lib'
13943       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13944       ;;
13945     esac
13946     ;;
13947
13948   *)
13949     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13950     ;;
13951   esac
13952   dynamic_linker='Win32 ld.exe'
13953   # FIXME: first we should search . and the directory the executable is in
13954   shlibpath_var=PATH
13955   ;;
13956
13957 darwin* | rhapsody*)
13958   dynamic_linker="$host_os dyld"
13959   version_type=darwin
13960   need_lib_prefix=no
13961   need_version=no
13962   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13963   soname_spec='${libname}${release}${major}$shared_ext'
13964   shlibpath_overrides_runpath=yes
13965   shlibpath_var=DYLD_LIBRARY_PATH
13966   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13967   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13968   if test "$GCC" = yes; then
13969     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"`
13970   else
13971     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13972   fi
13973   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13974   ;;
13975
13976 dgux*)
13977   version_type=linux
13978   need_lib_prefix=no
13979   need_version=no
13980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13981   soname_spec='${libname}${release}${shared_ext}$major'
13982   shlibpath_var=LD_LIBRARY_PATH
13983   ;;
13984
13985 freebsd1*)
13986   dynamic_linker=no
13987   ;;
13988
13989 kfreebsd*-gnu)
13990   version_type=linux
13991   need_lib_prefix=no
13992   need_version=no
13993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994   soname_spec='${libname}${release}${shared_ext}$major'
13995   shlibpath_var=LD_LIBRARY_PATH
13996   shlibpath_overrides_runpath=no
13997   hardcode_into_libs=yes
13998   dynamic_linker='GNU ld.so'
13999   ;;
14000
14001 freebsd* | dragonfly*)
14002   # DragonFly does not have aout.  When/if they implement a new
14003   # versioning mechanism, adjust this.
14004   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14005   version_type=freebsd-$objformat
14006   case $version_type in
14007     freebsd-elf*)
14008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14009       need_version=no
14010       need_lib_prefix=no
14011       ;;
14012     freebsd-*)
14013       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14014       need_version=yes
14015       ;;
14016   esac
14017   shlibpath_var=LD_LIBRARY_PATH
14018   case $host_os in
14019   freebsd2*)
14020     shlibpath_overrides_runpath=yes
14021     ;;
14022   freebsd3.[01]* | freebsdelf3.[01]*)
14023     shlibpath_overrides_runpath=yes
14024     hardcode_into_libs=yes
14025     ;;
14026   *) # from 3.2 on
14027     shlibpath_overrides_runpath=no
14028     hardcode_into_libs=yes
14029     ;;
14030   esac
14031   ;;
14032
14033 gnu*)
14034   version_type=linux
14035   need_lib_prefix=no
14036   need_version=no
14037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14038   soname_spec='${libname}${release}${shared_ext}$major'
14039   shlibpath_var=LD_LIBRARY_PATH
14040   hardcode_into_libs=yes
14041   ;;
14042
14043 hpux9* | hpux10* | hpux11*)
14044   # Give a soname corresponding to the major version so that dld.sl refuses to
14045   # link against other versions.
14046   version_type=sunos
14047   need_lib_prefix=no
14048   need_version=no
14049   case "$host_cpu" in
14050   ia64*)
14051     shrext_cmds='.so'
14052     hardcode_into_libs=yes
14053     dynamic_linker="$host_os dld.so"
14054     shlibpath_var=LD_LIBRARY_PATH
14055     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057     soname_spec='${libname}${release}${shared_ext}$major'
14058     if test "X$HPUX_IA64_MODE" = X32; then
14059       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14060     else
14061       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14062     fi
14063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14064     ;;
14065    hppa*64*)
14066      shrext_cmds='.sl'
14067      hardcode_into_libs=yes
14068      dynamic_linker="$host_os dld.sl"
14069      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14070      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14071      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072      soname_spec='${libname}${release}${shared_ext}$major'
14073      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14074      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14075      ;;
14076    *)
14077     shrext_cmds='.sl'
14078     dynamic_linker="$host_os dld.sl"
14079     shlibpath_var=SHLIB_PATH
14080     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082     soname_spec='${libname}${release}${shared_ext}$major'
14083     ;;
14084   esac
14085   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14086   postinstall_cmds='chmod 555 $lib'
14087   ;;
14088
14089 irix5* | irix6* | nonstopux*)
14090   case $host_os in
14091     nonstopux*) version_type=nonstopux ;;
14092     *)
14093         if test "$lt_cv_prog_gnu_ld" = yes; then
14094                 version_type=linux
14095         else
14096                 version_type=irix
14097         fi ;;
14098   esac
14099   need_lib_prefix=no
14100   need_version=no
14101   soname_spec='${libname}${release}${shared_ext}$major'
14102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14103   case $host_os in
14104   irix5* | nonstopux*)
14105     libsuff= shlibsuff=
14106     ;;
14107   *)
14108     case $LD in # libtool.m4 will add one of these switches to LD
14109     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14110       libsuff= shlibsuff= libmagic=32-bit;;
14111     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14112       libsuff=32 shlibsuff=N32 libmagic=N32;;
14113     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14114       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14115     *) libsuff= shlibsuff= libmagic=never-match;;
14116     esac
14117     ;;
14118   esac
14119   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14120   shlibpath_overrides_runpath=no
14121   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14122   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14123   hardcode_into_libs=yes
14124   ;;
14125
14126 # No shared lib support for Linux oldld, aout, or coff.
14127 linux*oldld* | linux*aout* | linux*coff*)
14128   dynamic_linker=no
14129   ;;
14130
14131 # This must be Linux ELF.
14132 linux*)
14133   version_type=linux
14134   need_lib_prefix=no
14135   need_version=no
14136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137   soname_spec='${libname}${release}${shared_ext}$major'
14138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14139   shlibpath_var=LD_LIBRARY_PATH
14140   shlibpath_overrides_runpath=no
14141   # This implies no fast_install, which is unacceptable.
14142   # Some rework will be needed to allow for fast_install
14143   # before this can be enabled.
14144   hardcode_into_libs=yes
14145
14146   # Append ld.so.conf contents to the search path
14147   if test -f /etc/ld.so.conf; then
14148     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' ' '`
14149     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14150   fi
14151
14152   # We used to test for /lib/ld.so.1 and disable shared libraries on
14153   # powerpc, because MkLinux only supported shared libraries with the
14154   # GNU dynamic linker.  Since this was broken with cross compilers,
14155   # most powerpc-linux boxes support dynamic linking these days and
14156   # people can always --disable-shared, the test was removed, and we
14157   # assume the GNU/Linux dynamic linker is in use.
14158   dynamic_linker='GNU/Linux ld.so'
14159   ;;
14160
14161 knetbsd*-gnu)
14162   version_type=linux
14163   need_lib_prefix=no
14164   need_version=no
14165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14166   soname_spec='${libname}${release}${shared_ext}$major'
14167   shlibpath_var=LD_LIBRARY_PATH
14168   shlibpath_overrides_runpath=no
14169   hardcode_into_libs=yes
14170   dynamic_linker='GNU ld.so'
14171   ;;
14172
14173 netbsd*)
14174   version_type=sunos
14175   need_lib_prefix=no
14176   need_version=no
14177   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14179     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14180     dynamic_linker='NetBSD (a.out) ld.so'
14181   else
14182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14183     soname_spec='${libname}${release}${shared_ext}$major'
14184     dynamic_linker='NetBSD ld.elf_so'
14185   fi
14186   shlibpath_var=LD_LIBRARY_PATH
14187   shlibpath_overrides_runpath=yes
14188   hardcode_into_libs=yes
14189   ;;
14190
14191 newsos6)
14192   version_type=linux
14193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194   shlibpath_var=LD_LIBRARY_PATH
14195   shlibpath_overrides_runpath=yes
14196   ;;
14197
14198 nto-qnx*)
14199   version_type=linux
14200   need_lib_prefix=no
14201   need_version=no
14202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203   soname_spec='${libname}${release}${shared_ext}$major'
14204   shlibpath_var=LD_LIBRARY_PATH
14205   shlibpath_overrides_runpath=yes
14206   ;;
14207
14208 openbsd*)
14209   version_type=sunos
14210   need_lib_prefix=no
14211   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14212   case $host_os in
14213     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14214     *)                         need_version=no  ;;
14215   esac
14216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14217   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14218   shlibpath_var=LD_LIBRARY_PATH
14219   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14220     case $host_os in
14221       openbsd2.[89] | openbsd2.[89].*)
14222         shlibpath_overrides_runpath=no
14223         ;;
14224       *)
14225         shlibpath_overrides_runpath=yes
14226         ;;
14227       esac
14228   else
14229     shlibpath_overrides_runpath=yes
14230   fi
14231   ;;
14232
14233 os2*)
14234   libname_spec='$name'
14235   shrext_cmds=".dll"
14236   need_lib_prefix=no
14237   library_names_spec='$libname${shared_ext} $libname.a'
14238   dynamic_linker='OS/2 ld.exe'
14239   shlibpath_var=LIBPATH
14240   ;;
14241
14242 osf3* | osf4* | osf5*)
14243   version_type=osf
14244   need_lib_prefix=no
14245   need_version=no
14246   soname_spec='${libname}${release}${shared_ext}$major'
14247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248   shlibpath_var=LD_LIBRARY_PATH
14249   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14250   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14251   ;;
14252
14253 sco3.2v5*)
14254   version_type=osf
14255   soname_spec='${libname}${release}${shared_ext}$major'
14256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257   shlibpath_var=LD_LIBRARY_PATH
14258   ;;
14259
14260 solaris*)
14261   version_type=linux
14262   need_lib_prefix=no
14263   need_version=no
14264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265   soname_spec='${libname}${release}${shared_ext}$major'
14266   shlibpath_var=LD_LIBRARY_PATH
14267   shlibpath_overrides_runpath=yes
14268   hardcode_into_libs=yes
14269   # ldd complains unless libraries are executable
14270   postinstall_cmds='chmod +x $lib'
14271   ;;
14272
14273 sunos4*)
14274   version_type=sunos
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14276   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14277   shlibpath_var=LD_LIBRARY_PATH
14278   shlibpath_overrides_runpath=yes
14279   if test "$with_gnu_ld" = yes; then
14280     need_lib_prefix=no
14281   fi
14282   need_version=yes
14283   ;;
14284
14285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14286   version_type=linux
14287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288   soname_spec='${libname}${release}${shared_ext}$major'
14289   shlibpath_var=LD_LIBRARY_PATH
14290   case $host_vendor in
14291     sni)
14292       shlibpath_overrides_runpath=no
14293       need_lib_prefix=no
14294       export_dynamic_flag_spec='${wl}-Blargedynsym'
14295       runpath_var=LD_RUN_PATH
14296       ;;
14297     siemens)
14298       need_lib_prefix=no
14299       ;;
14300     motorola)
14301       need_lib_prefix=no
14302       need_version=no
14303       shlibpath_overrides_runpath=no
14304       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14305       ;;
14306   esac
14307   ;;
14308
14309 sysv4*MP*)
14310   if test -d /usr/nec ;then
14311     version_type=linux
14312     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14313     soname_spec='$libname${shared_ext}.$major'
14314     shlibpath_var=LD_LIBRARY_PATH
14315   fi
14316   ;;
14317
14318 uts4*)
14319   version_type=linux
14320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321   soname_spec='${libname}${release}${shared_ext}$major'
14322   shlibpath_var=LD_LIBRARY_PATH
14323   ;;
14324
14325 *)
14326   dynamic_linker=no
14327   ;;
14328 esac
14329 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14330 echo "${ECHO_T}$dynamic_linker" >&6
14331 test "$dynamic_linker" = no && can_build_shared=no
14332
14333 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14334 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14335 hardcode_action_CXX=
14336 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14337    test -n "$runpath_var_CXX" || \
14338    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14339
14340   # We can hardcode non-existant directories.
14341   if test "$hardcode_direct_CXX" != no &&
14342      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14343      # have to relink, otherwise we might link with an installed library
14344      # when we should be linking with a yet-to-be-installed one
14345      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14346      test "$hardcode_minus_L_CXX" != no; then
14347     # Linking always hardcodes the temporary library directory.
14348     hardcode_action_CXX=relink
14349   else
14350     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14351     hardcode_action_CXX=immediate
14352   fi
14353 else
14354   # We cannot hardcode anything, or else we can only hardcode existing
14355   # directories.
14356   hardcode_action_CXX=unsupported
14357 fi
14358 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14359 echo "${ECHO_T}$hardcode_action_CXX" >&6
14360
14361 if test "$hardcode_action_CXX" = relink; then
14362   # Fast installation is not supported
14363   enable_fast_install=no
14364 elif test "$shlibpath_overrides_runpath" = yes ||
14365      test "$enable_shared" = no; then
14366   # Fast installation is not necessary
14367   enable_fast_install=needless
14368 fi
14369
14370 striplib=
14371 old_striplib=
14372 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14373 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14374 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14375   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14376   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14377   echo "$as_me:$LINENO: result: yes" >&5
14378 echo "${ECHO_T}yes" >&6
14379 else
14380 # FIXME - insert some real tests, host_os isn't really good enough
14381   case $host_os in
14382    darwin*)
14383        if test -n "$STRIP" ; then
14384          striplib="$STRIP -x"
14385          echo "$as_me:$LINENO: result: yes" >&5
14386 echo "${ECHO_T}yes" >&6
14387        else
14388   echo "$as_me:$LINENO: result: no" >&5
14389 echo "${ECHO_T}no" >&6
14390 fi
14391        ;;
14392    *)
14393   echo "$as_me:$LINENO: result: no" >&5
14394 echo "${ECHO_T}no" >&6
14395     ;;
14396   esac
14397 fi
14398
14399 if test "x$enable_dlopen" != xyes; then
14400   enable_dlopen=unknown
14401   enable_dlopen_self=unknown
14402   enable_dlopen_self_static=unknown
14403 else
14404   lt_cv_dlopen=no
14405   lt_cv_dlopen_libs=
14406
14407   case $host_os in
14408   beos*)
14409     lt_cv_dlopen="load_add_on"
14410     lt_cv_dlopen_libs=
14411     lt_cv_dlopen_self=yes
14412     ;;
14413
14414   mingw* | pw32*)
14415     lt_cv_dlopen="LoadLibrary"
14416     lt_cv_dlopen_libs=
14417    ;;
14418
14419   cygwin*)
14420     lt_cv_dlopen="dlopen"
14421     lt_cv_dlopen_libs=
14422    ;;
14423
14424   darwin*)
14425   # if libdl is installed we need to link against it
14426     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14427 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14429   echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431   ac_check_lib_save_LIBS=$LIBS
14432 LIBS="-ldl  $LIBS"
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h.  */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h.  */
14439
14440 /* Override any gcc2 internal prototype to avoid an error.  */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 /* We use char because int might match the return type of a gcc2
14445    builtin and then its argument prototype would still apply.  */
14446 char dlopen ();
14447 int
14448 main ()
14449 {
14450 dlopen ();
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14457   (eval $ac_link) 2>conftest.er1
14458   ac_status=$?
14459   grep -v '^ *+' conftest.er1 >conftest.err
14460   rm -f conftest.er1
14461   cat conftest.err >&5
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } &&
14464          { ac_try='test -z "$ac_cxx_werror_flag"
14465                          || test ! -s conftest.err'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; } &&
14471          { ac_try='test -s conftest$ac_exeext'
14472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473   (eval $ac_try) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; }; then
14477   ac_cv_lib_dl_dlopen=yes
14478 else
14479   echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482 ac_cv_lib_dl_dlopen=no
14483 fi
14484 rm -f conftest.err conftest.$ac_objext \
14485       conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14487 fi
14488 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14489 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14490 if test $ac_cv_lib_dl_dlopen = yes; then
14491   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14492 else
14493
14494     lt_cv_dlopen="dyld"
14495     lt_cv_dlopen_libs=
14496     lt_cv_dlopen_self=yes
14497
14498 fi
14499
14500    ;;
14501
14502   *)
14503     echo "$as_me:$LINENO: checking for shl_load" >&5
14504 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14505 if test "${ac_cv_func_shl_load+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14516 #define shl_load innocuous_shl_load
14517
14518 /* System header to define __stub macros and hopefully few prototypes,
14519     which can conflict with char shl_load (); below.
14520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521     <limits.h> exists even on freestanding compilers.  */
14522
14523 #ifdef __STDC__
14524 # include <limits.h>
14525 #else
14526 # include <assert.h>
14527 #endif
14528
14529 #undef shl_load
14530
14531 /* Override any gcc2 internal prototype to avoid an error.  */
14532 #ifdef __cplusplus
14533 extern "C"
14534 {
14535 #endif
14536 /* We use char because int might match the return type of a gcc2
14537    builtin and then its argument prototype would still apply.  */
14538 char shl_load ();
14539 /* The GNU C library defines this for functions which it implements
14540     to always fail with ENOSYS.  Some functions are actually named
14541     something starting with __ and the normal name is an alias.  */
14542 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14543 choke me
14544 #else
14545 char (*f) () = shl_load;
14546 #endif
14547 #ifdef __cplusplus
14548 }
14549 #endif
14550
14551 int
14552 main ()
14553 {
14554 return f != shl_load;
14555   ;
14556   return 0;
14557 }
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561   (eval $ac_link) 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } &&
14568          { ac_try='test -z "$ac_cxx_werror_flag"
14569                          || test ! -s conftest.err'
14570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571   (eval $ac_try) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; } &&
14575          { ac_try='test -s conftest$ac_exeext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   ac_cv_func_shl_load=yes
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586 ac_cv_func_shl_load=no
14587 fi
14588 rm -f conftest.err conftest.$ac_objext \
14589       conftest$ac_exeext conftest.$ac_ext
14590 fi
14591 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14592 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14593 if test $ac_cv_func_shl_load = yes; then
14594   lt_cv_dlopen="shl_load"
14595 else
14596   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14597 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-ldld  $LIBS"
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609
14610 /* Override any gcc2 internal prototype to avoid an error.  */
14611 #ifdef __cplusplus
14612 extern "C"
14613 #endif
14614 /* We use char because int might match the return type of a gcc2
14615    builtin and then its argument prototype would still apply.  */
14616 char shl_load ();
14617 int
14618 main ()
14619 {
14620 shl_load ();
14621   ;
14622   return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627   (eval $ac_link) 2>conftest.er1
14628   ac_status=$?
14629   grep -v '^ *+' conftest.er1 >conftest.err
14630   rm -f conftest.er1
14631   cat conftest.err >&5
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); } &&
14634          { ac_try='test -z "$ac_cxx_werror_flag"
14635                          || test ! -s conftest.err'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; } &&
14641          { ac_try='test -s conftest$ac_exeext'
14642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643   (eval $ac_try) 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   ac_cv_lib_dld_shl_load=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_cv_lib_dld_shl_load=no
14653 fi
14654 rm -f conftest.err conftest.$ac_objext \
14655       conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14657 fi
14658 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14659 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14660 if test $ac_cv_lib_dld_shl_load = yes; then
14661   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14662 else
14663   echo "$as_me:$LINENO: checking for dlopen" >&5
14664 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14665 if test "${ac_cv_func_dlopen+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h.  */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h.  */
14674 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14676 #define dlopen innocuous_dlopen
14677
14678 /* System header to define __stub macros and hopefully few prototypes,
14679     which can conflict with char dlopen (); below.
14680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14681     <limits.h> exists even on freestanding compilers.  */
14682
14683 #ifdef __STDC__
14684 # include <limits.h>
14685 #else
14686 # include <assert.h>
14687 #endif
14688
14689 #undef dlopen
14690
14691 /* Override any gcc2 internal prototype to avoid an error.  */
14692 #ifdef __cplusplus
14693 extern "C"
14694 {
14695 #endif
14696 /* We use char because int might match the return type of a gcc2
14697    builtin and then its argument prototype would still apply.  */
14698 char dlopen ();
14699 /* The GNU C library defines this for functions which it implements
14700     to always fail with ENOSYS.  Some functions are actually named
14701     something starting with __ and the normal name is an alias.  */
14702 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14703 choke me
14704 #else
14705 char (*f) () = dlopen;
14706 #endif
14707 #ifdef __cplusplus
14708 }
14709 #endif
14710
14711 int
14712 main ()
14713 {
14714 return f != dlopen;
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext conftest$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721   (eval $ac_link) 2>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } &&
14728          { ac_try='test -z "$ac_cxx_werror_flag"
14729                          || test ! -s conftest.err'
14730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731   (eval $ac_try) 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; } &&
14735          { ac_try='test -s conftest$ac_exeext'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; }; then
14741   ac_cv_func_dlopen=yes
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_cv_func_dlopen=no
14747 fi
14748 rm -f conftest.err conftest.$ac_objext \
14749       conftest$ac_exeext conftest.$ac_ext
14750 fi
14751 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14752 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14753 if test $ac_cv_func_dlopen = yes; then
14754   lt_cv_dlopen="dlopen"
14755 else
14756   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   ac_check_lib_save_LIBS=$LIBS
14762 LIBS="-ldl  $LIBS"
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769
14770 /* Override any gcc2 internal prototype to avoid an error.  */
14771 #ifdef __cplusplus
14772 extern "C"
14773 #endif
14774 /* We use char because int might match the return type of a gcc2
14775    builtin and then its argument prototype would still apply.  */
14776 char dlopen ();
14777 int
14778 main ()
14779 {
14780 dlopen ();
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787   (eval $ac_link) 2>conftest.er1
14788   ac_status=$?
14789   grep -v '^ *+' conftest.er1 >conftest.err
14790   rm -f conftest.er1
14791   cat conftest.err >&5
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); } &&
14794          { ac_try='test -z "$ac_cxx_werror_flag"
14795                          || test ! -s conftest.err'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; } &&
14801          { ac_try='test -s conftest$ac_exeext'
14802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803   (eval $ac_try) 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   ac_cv_lib_dl_dlopen=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_cv_lib_dl_dlopen=no
14813 fi
14814 rm -f conftest.err conftest.$ac_objext \
14815       conftest$ac_exeext conftest.$ac_ext
14816 LIBS=$ac_check_lib_save_LIBS
14817 fi
14818 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14820 if test $ac_cv_lib_dl_dlopen = yes; then
14821   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14822 else
14823   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14824 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14825 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14826   echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828   ac_check_lib_save_LIBS=$LIBS
14829 LIBS="-lsvld  $LIBS"
14830 cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836
14837 /* Override any gcc2 internal prototype to avoid an error.  */
14838 #ifdef __cplusplus
14839 extern "C"
14840 #endif
14841 /* We use char because int might match the return type of a gcc2
14842    builtin and then its argument prototype would still apply.  */
14843 char dlopen ();
14844 int
14845 main ()
14846 {
14847 dlopen ();
14848   ;
14849   return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14854   (eval $ac_link) 2>conftest.er1
14855   ac_status=$?
14856   grep -v '^ *+' conftest.er1 >conftest.err
14857   rm -f conftest.er1
14858   cat conftest.err >&5
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); } &&
14861          { ac_try='test -z "$ac_cxx_werror_flag"
14862                          || test ! -s conftest.err'
14863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864   (eval $ac_try) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); }; } &&
14868          { ac_try='test -s conftest$ac_exeext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874   ac_cv_lib_svld_dlopen=yes
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 ac_cv_lib_svld_dlopen=no
14880 fi
14881 rm -f conftest.err conftest.$ac_objext \
14882       conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14884 fi
14885 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14886 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14887 if test $ac_cv_lib_svld_dlopen = yes; then
14888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14889 else
14890   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14891 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14892 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-ldld  $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903
14904 /* Override any gcc2 internal prototype to avoid an error.  */
14905 #ifdef __cplusplus
14906 extern "C"
14907 #endif
14908 /* We use char because int might match the return type of a gcc2
14909    builtin and then its argument prototype would still apply.  */
14910 char dld_link ();
14911 int
14912 main ()
14913 {
14914 dld_link ();
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921   (eval $ac_link) 2>conftest.er1
14922   ac_status=$?
14923   grep -v '^ *+' conftest.er1 >conftest.err
14924   rm -f conftest.er1
14925   cat conftest.err >&5
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); } &&
14928          { ac_try='test -z "$ac_cxx_werror_flag"
14929                          || test ! -s conftest.err'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; } &&
14935          { ac_try='test -s conftest$ac_exeext'
14936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937   (eval $ac_try) 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); }; }; then
14941   ac_cv_lib_dld_dld_link=yes
14942 else
14943   echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ac_cv_lib_dld_dld_link=no
14947 fi
14948 rm -f conftest.err conftest.$ac_objext \
14949       conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14951 fi
14952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14954 if test $ac_cv_lib_dld_dld_link = yes; then
14955   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14956 fi
14957
14958
14959 fi
14960
14961
14962 fi
14963
14964
14965 fi
14966
14967
14968 fi
14969
14970
14971 fi
14972
14973     ;;
14974   esac
14975
14976   if test "x$lt_cv_dlopen" != xno; then
14977     enable_dlopen=yes
14978   else
14979     enable_dlopen=no
14980   fi
14981
14982   case $lt_cv_dlopen in
14983   dlopen)
14984     save_CPPFLAGS="$CPPFLAGS"
14985     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14986
14987     save_LDFLAGS="$LDFLAGS"
14988     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14989
14990     save_LIBS="$LIBS"
14991     LIBS="$lt_cv_dlopen_libs $LIBS"
14992
14993     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14995 if test "${lt_cv_dlopen_self+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998           if test "$cross_compiling" = yes; then :
14999   lt_cv_dlopen_self=cross
15000 else
15001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15002   lt_status=$lt_dlunknown
15003   cat > conftest.$ac_ext <<EOF
15004 #line 15004 "configure"
15005 #include "confdefs.h"
15006
15007 #if HAVE_DLFCN_H
15008 #include <dlfcn.h>
15009 #endif
15010
15011 #include <stdio.h>
15012
15013 #ifdef RTLD_GLOBAL
15014 #  define LT_DLGLOBAL           RTLD_GLOBAL
15015 #else
15016 #  ifdef DL_GLOBAL
15017 #    define LT_DLGLOBAL         DL_GLOBAL
15018 #  else
15019 #    define LT_DLGLOBAL         0
15020 #  endif
15021 #endif
15022
15023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15024    find out it does not work in some platform. */
15025 #ifndef LT_DLLAZY_OR_NOW
15026 #  ifdef RTLD_LAZY
15027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15028 #  else
15029 #    ifdef DL_LAZY
15030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15031 #    else
15032 #      ifdef RTLD_NOW
15033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15034 #      else
15035 #        ifdef DL_NOW
15036 #          define LT_DLLAZY_OR_NOW      DL_NOW
15037 #        else
15038 #          define LT_DLLAZY_OR_NOW      0
15039 #        endif
15040 #      endif
15041 #    endif
15042 #  endif
15043 #endif
15044
15045 #ifdef __cplusplus
15046 extern "C" void exit (int);
15047 #endif
15048
15049 void fnord() { int i=42;}
15050 int main ()
15051 {
15052   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15053   int status = $lt_dlunknown;
15054
15055   if (self)
15056     {
15057       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15058       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15059       /* dlclose (self); */
15060     }
15061
15062     exit (status);
15063 }
15064 EOF
15065   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15066   (eval $ac_link) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15070     (./conftest; exit; ) 2>/dev/null
15071     lt_status=$?
15072     case x$lt_status in
15073       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15074       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15075       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15076     esac
15077   else :
15078     # compilation failed
15079     lt_cv_dlopen_self=no
15080   fi
15081 fi
15082 rm -fr conftest*
15083
15084
15085 fi
15086 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15088
15089     if test "x$lt_cv_dlopen_self" = xyes; then
15090       LDFLAGS="$LDFLAGS $link_static_flag"
15091       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15093 if test "${lt_cv_dlopen_self_static+set}" = set; then
15094   echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096           if test "$cross_compiling" = yes; then :
15097   lt_cv_dlopen_self_static=cross
15098 else
15099   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15100   lt_status=$lt_dlunknown
15101   cat > conftest.$ac_ext <<EOF
15102 #line 15102 "configure"
15103 #include "confdefs.h"
15104
15105 #if HAVE_DLFCN_H
15106 #include <dlfcn.h>
15107 #endif
15108
15109 #include <stdio.h>
15110
15111 #ifdef RTLD_GLOBAL
15112 #  define LT_DLGLOBAL           RTLD_GLOBAL
15113 #else
15114 #  ifdef DL_GLOBAL
15115 #    define LT_DLGLOBAL         DL_GLOBAL
15116 #  else
15117 #    define LT_DLGLOBAL         0
15118 #  endif
15119 #endif
15120
15121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15122    find out it does not work in some platform. */
15123 #ifndef LT_DLLAZY_OR_NOW
15124 #  ifdef RTLD_LAZY
15125 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15126 #  else
15127 #    ifdef DL_LAZY
15128 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15129 #    else
15130 #      ifdef RTLD_NOW
15131 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15132 #      else
15133 #        ifdef DL_NOW
15134 #          define LT_DLLAZY_OR_NOW      DL_NOW
15135 #        else
15136 #          define LT_DLLAZY_OR_NOW      0
15137 #        endif
15138 #      endif
15139 #    endif
15140 #  endif
15141 #endif
15142
15143 #ifdef __cplusplus
15144 extern "C" void exit (int);
15145 #endif
15146
15147 void fnord() { int i=42;}
15148 int main ()
15149 {
15150   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15151   int status = $lt_dlunknown;
15152
15153   if (self)
15154     {
15155       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15156       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15157       /* dlclose (self); */
15158     }
15159
15160     exit (status);
15161 }
15162 EOF
15163   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164   (eval $ac_link) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15168     (./conftest; exit; ) 2>/dev/null
15169     lt_status=$?
15170     case x$lt_status in
15171       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15172       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15173       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15174     esac
15175   else :
15176     # compilation failed
15177     lt_cv_dlopen_self_static=no
15178   fi
15179 fi
15180 rm -fr conftest*
15181
15182
15183 fi
15184 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15186     fi
15187
15188     CPPFLAGS="$save_CPPFLAGS"
15189     LDFLAGS="$save_LDFLAGS"
15190     LIBS="$save_LIBS"
15191     ;;
15192   esac
15193
15194   case $lt_cv_dlopen_self in
15195   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15196   *) enable_dlopen_self=unknown ;;
15197   esac
15198
15199   case $lt_cv_dlopen_self_static in
15200   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15201   *) enable_dlopen_self_static=unknown ;;
15202   esac
15203 fi
15204
15205
15206 # The else clause should only fire when bootstrapping the
15207 # libtool distribution, otherwise you forgot to ship ltmain.sh
15208 # with your package, and you will get complaints that there are
15209 # no rules to generate ltmain.sh.
15210 if test -f "$ltmain"; then
15211   # See if we are running on zsh, and set the options which allow our commands through
15212   # without removal of \ escapes.
15213   if test -n "${ZSH_VERSION+set}" ; then
15214     setopt NO_GLOB_SUBST
15215   fi
15216   # Now quote all the things that may contain metacharacters while being
15217   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15218   # variables and quote the copies for generation of the libtool script.
15219   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15220     SED SHELL STRIP \
15221     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15222     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15223     deplibs_check_method reload_flag reload_cmds need_locks \
15224     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15225     lt_cv_sys_global_symbol_to_c_name_address \
15226     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15227     old_postinstall_cmds old_postuninstall_cmds \
15228     compiler_CXX \
15229     CC_CXX \
15230     LD_CXX \
15231     lt_prog_compiler_wl_CXX \
15232     lt_prog_compiler_pic_CXX \
15233     lt_prog_compiler_static_CXX \
15234     lt_prog_compiler_no_builtin_flag_CXX \
15235     export_dynamic_flag_spec_CXX \
15236     thread_safe_flag_spec_CXX \
15237     whole_archive_flag_spec_CXX \
15238     enable_shared_with_static_runtimes_CXX \
15239     old_archive_cmds_CXX \
15240     old_archive_from_new_cmds_CXX \
15241     predep_objects_CXX \
15242     postdep_objects_CXX \
15243     predeps_CXX \
15244     postdeps_CXX \
15245     compiler_lib_search_path_CXX \
15246     archive_cmds_CXX \
15247     archive_expsym_cmds_CXX \
15248     postinstall_cmds_CXX \
15249     postuninstall_cmds_CXX \
15250     old_archive_from_expsyms_cmds_CXX \
15251     allow_undefined_flag_CXX \
15252     no_undefined_flag_CXX \
15253     export_symbols_cmds_CXX \
15254     hardcode_libdir_flag_spec_CXX \
15255     hardcode_libdir_flag_spec_ld_CXX \
15256     hardcode_libdir_separator_CXX \
15257     hardcode_automatic_CXX \
15258     module_cmds_CXX \
15259     module_expsym_cmds_CXX \
15260     lt_cv_prog_compiler_c_o_CXX \
15261     exclude_expsyms_CXX \
15262     include_expsyms_CXX; do
15263
15264     case $var in
15265     old_archive_cmds_CXX | \
15266     old_archive_from_new_cmds_CXX | \
15267     archive_cmds_CXX | \
15268     archive_expsym_cmds_CXX | \
15269     module_cmds_CXX | \
15270     module_expsym_cmds_CXX | \
15271     old_archive_from_expsyms_cmds_CXX | \
15272     export_symbols_cmds_CXX | \
15273     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15274     postinstall_cmds | postuninstall_cmds | \
15275     old_postinstall_cmds | old_postuninstall_cmds | \
15276     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15277       # Double-quote double-evaled strings.
15278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15279       ;;
15280     *)
15281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15282       ;;
15283     esac
15284   done
15285
15286   case $lt_echo in
15287   *'\$0 --fallback-echo"')
15288     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15289     ;;
15290   esac
15291
15292 cfgfile="$ofile"
15293
15294   cat <<__EOF__ >> "$cfgfile"
15295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15296
15297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15298
15299 # Shell to use when invoking shell scripts.
15300 SHELL=$lt_SHELL
15301
15302 # Whether or not to build shared libraries.
15303 build_libtool_libs=$enable_shared
15304
15305 # Whether or not to build static libraries.
15306 build_old_libs=$enable_static
15307
15308 # Whether or not to add -lc for building shared libraries.
15309 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15310
15311 # Whether or not to disallow shared libs when runtime libs are static
15312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15313
15314 # Whether or not to optimize for fast installation.
15315 fast_install=$enable_fast_install
15316
15317 # The host system.
15318 host_alias=$host_alias
15319 host=$host
15320 host_os=$host_os
15321
15322 # The build system.
15323 build_alias=$build_alias
15324 build=$build
15325 build_os=$build_os
15326
15327 # An echo program that does not interpret backslashes.
15328 echo=$lt_echo
15329
15330 # The archiver.
15331 AR=$lt_AR
15332 AR_FLAGS=$lt_AR_FLAGS
15333
15334 # A C compiler.
15335 LTCC=$lt_LTCC
15336
15337 # A language-specific compiler.
15338 CC=$lt_compiler_CXX
15339
15340 # Is the compiler the GNU C compiler?
15341 with_gcc=$GCC_CXX
15342
15343 # An ERE matcher.
15344 EGREP=$lt_EGREP
15345
15346 # The linker used to build libraries.
15347 LD=$lt_LD_CXX
15348
15349 # Whether we need hard or soft links.
15350 LN_S=$lt_LN_S
15351
15352 # A BSD-compatible nm program.
15353 NM=$lt_NM
15354
15355 # A symbol stripping program
15356 STRIP=$lt_STRIP
15357
15358 # Used to examine libraries when file_magic_cmd begins "file"
15359 MAGIC_CMD=$MAGIC_CMD
15360
15361 # Used on cygwin: DLL creation program.
15362 DLLTOOL="$DLLTOOL"
15363
15364 # Used on cygwin: object dumper.
15365 OBJDUMP="$OBJDUMP"
15366
15367 # Used on cygwin: assembler.
15368 AS="$AS"
15369
15370 # The name of the directory that contains temporary libtool files.
15371 objdir=$objdir
15372
15373 # How to create reloadable object files.
15374 reload_flag=$lt_reload_flag
15375 reload_cmds=$lt_reload_cmds
15376
15377 # How to pass a linker flag through the compiler.
15378 wl=$lt_lt_prog_compiler_wl_CXX
15379
15380 # Object file suffix (normally "o").
15381 objext="$ac_objext"
15382
15383 # Old archive suffix (normally "a").
15384 libext="$libext"
15385
15386 # Shared library suffix (normally ".so").
15387 shrext_cmds='$shrext_cmds'
15388
15389 # Executable file suffix (normally "").
15390 exeext="$exeext"
15391
15392 # Additional compiler flags for building library objects.
15393 pic_flag=$lt_lt_prog_compiler_pic_CXX
15394 pic_mode=$pic_mode
15395
15396 # What is the maximum length of a command?
15397 max_cmd_len=$lt_cv_sys_max_cmd_len
15398
15399 # Does compiler simultaneously support -c and -o options?
15400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15401
15402 # Must we lock files when doing compilation?
15403 need_locks=$lt_need_locks
15404
15405 # Do we need the lib prefix for modules?
15406 need_lib_prefix=$need_lib_prefix
15407
15408 # Do we need a version for libraries?
15409 need_version=$need_version
15410
15411 # Whether dlopen is supported.
15412 dlopen_support=$enable_dlopen
15413
15414 # Whether dlopen of programs is supported.
15415 dlopen_self=$enable_dlopen_self
15416
15417 # Whether dlopen of statically linked programs is supported.
15418 dlopen_self_static=$enable_dlopen_self_static
15419
15420 # Compiler flag to prevent dynamic linking.
15421 link_static_flag=$lt_lt_prog_compiler_static_CXX
15422
15423 # Compiler flag to turn off builtin functions.
15424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15425
15426 # Compiler flag to allow reflexive dlopens.
15427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15428
15429 # Compiler flag to generate shared objects directly from archives.
15430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15431
15432 # Compiler flag to generate thread-safe objects.
15433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15434
15435 # Library versioning type.
15436 version_type=$version_type
15437
15438 # Format of library name prefix.
15439 libname_spec=$lt_libname_spec
15440
15441 # List of archive names.  First name is the real one, the rest are links.
15442 # The last name is the one that the linker finds with -lNAME.
15443 library_names_spec=$lt_library_names_spec
15444
15445 # The coded name of the library, if different from the real name.
15446 soname_spec=$lt_soname_spec
15447
15448 # Commands used to build and install an old-style archive.
15449 RANLIB=$lt_RANLIB
15450 old_archive_cmds=$lt_old_archive_cmds_CXX
15451 old_postinstall_cmds=$lt_old_postinstall_cmds
15452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15453
15454 # Create an old-style archive from a shared archive.
15455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15456
15457 # Create a temporary old-style archive to link instead of a shared archive.
15458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15459
15460 # Commands used to build and install a shared archive.
15461 archive_cmds=$lt_archive_cmds_CXX
15462 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15463 postinstall_cmds=$lt_postinstall_cmds
15464 postuninstall_cmds=$lt_postuninstall_cmds
15465
15466 # Commands used to build a loadable module (assumed same as above if empty)
15467 module_cmds=$lt_module_cmds_CXX
15468 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15469
15470 # Commands to strip libraries.
15471 old_striplib=$lt_old_striplib
15472 striplib=$lt_striplib
15473
15474 # Dependencies to place before the objects being linked to create a
15475 # shared library.
15476 predep_objects=$lt_predep_objects_CXX
15477
15478 # Dependencies to place after the objects being linked to create a
15479 # shared library.
15480 postdep_objects=$lt_postdep_objects_CXX
15481
15482 # Dependencies to place before the objects being linked to create a
15483 # shared library.
15484 predeps=$lt_predeps_CXX
15485
15486 # Dependencies to place after the objects being linked to create a
15487 # shared library.
15488 postdeps=$lt_postdeps_CXX
15489
15490 # The library search path used internally by the compiler when linking
15491 # a shared library.
15492 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15493
15494 # Method to check whether dependent libraries are shared objects.
15495 deplibs_check_method=$lt_deplibs_check_method
15496
15497 # Command to use when deplibs_check_method == file_magic.
15498 file_magic_cmd=$lt_file_magic_cmd
15499
15500 # Flag that allows shared libraries with undefined symbols to be built.
15501 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15502
15503 # Flag that forces no undefined symbols.
15504 no_undefined_flag=$lt_no_undefined_flag_CXX
15505
15506 # Commands used to finish a libtool library installation in a directory.
15507 finish_cmds=$lt_finish_cmds
15508
15509 # Same as above, but a single script fragment to be evaled but not shown.
15510 finish_eval=$lt_finish_eval
15511
15512 # Take the output of nm and produce a listing of raw symbols and C names.
15513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15514
15515 # Transform the output of nm in a proper C declaration
15516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15517
15518 # Transform the output of nm in a C name address pair
15519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15520
15521 # This is the shared library runtime path variable.
15522 runpath_var=$runpath_var
15523
15524 # This is the shared library path variable.
15525 shlibpath_var=$shlibpath_var
15526
15527 # Is shlibpath searched before the hard-coded library search path?
15528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15529
15530 # How to hardcode a shared library path into an executable.
15531 hardcode_action=$hardcode_action_CXX
15532
15533 # Whether we should hardcode library paths into libraries.
15534 hardcode_into_libs=$hardcode_into_libs
15535
15536 # Flag to hardcode \$libdir into a binary during linking.
15537 # This must work even if \$libdir does not exist.
15538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15539
15540 # If ld is used when linking, flag to hardcode \$libdir into
15541 # a binary during linking. This must work even if \$libdir does
15542 # not exist.
15543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15544
15545 # Whether we need a single -rpath flag with a separated argument.
15546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15547
15548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15549 # resulting binary.
15550 hardcode_direct=$hardcode_direct_CXX
15551
15552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15553 # resulting binary.
15554 hardcode_minus_L=$hardcode_minus_L_CXX
15555
15556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15557 # the resulting binary.
15558 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15559
15560 # Set to yes if building a shared library automatically hardcodes DIR into the library
15561 # and all subsequent libraries and executables linked against it.
15562 hardcode_automatic=$hardcode_automatic_CXX
15563
15564 # Variables whose values should be saved in libtool wrapper scripts and
15565 # restored at relink time.
15566 variables_saved_for_relink="$variables_saved_for_relink"
15567
15568 # Whether libtool must link a program against all its dependency libraries.
15569 link_all_deplibs=$link_all_deplibs_CXX
15570
15571 # Compile-time system search path for libraries
15572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15573
15574 # Run-time system search path for libraries
15575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15576
15577 # Fix the shell variable \$srcfile for the compiler.
15578 fix_srcfile_path="$fix_srcfile_path_CXX"
15579
15580 # Set to yes if exported symbols are required.
15581 always_export_symbols=$always_export_symbols_CXX
15582
15583 # The commands to list exported symbols.
15584 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15585
15586 # The commands to extract the exported symbol list from a shared archive.
15587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15588
15589 # Symbols that should not be listed in the preloaded symbols.
15590 exclude_expsyms=$lt_exclude_expsyms_CXX
15591
15592 # Symbols that must always be exported.
15593 include_expsyms=$lt_include_expsyms_CXX
15594
15595 # ### END LIBTOOL TAG CONFIG: $tagname
15596
15597 __EOF__
15598
15599
15600 else
15601   # If there is no Makefile yet, we rely on a make rule to execute
15602   # `config.status --recheck' to rerun these tests and create the
15603   # libtool script then.
15604   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15605   if test -f "$ltmain_in"; then
15606     test -f Makefile && make "$ltmain"
15607   fi
15608 fi
15609
15610
15611 ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616
15617 CC=$lt_save_CC
15618 LDCXX=$LD
15619 LD=$lt_save_LD
15620 GCC=$lt_save_GCC
15621 with_gnu_ldcxx=$with_gnu_ld
15622 with_gnu_ld=$lt_save_with_gnu_ld
15623 lt_cv_path_LDCXX=$lt_cv_path_LD
15624 lt_cv_path_LD=$lt_save_path_LD
15625 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15626 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15627
15628         else
15629           tagname=""
15630         fi
15631         ;;
15632
15633       F77)
15634         if test -n "$F77" && test "X$F77" != "Xno"; then
15635
15636 ac_ext=f
15637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15640
15641
15642 archive_cmds_need_lc_F77=no
15643 allow_undefined_flag_F77=
15644 always_export_symbols_F77=no
15645 archive_expsym_cmds_F77=
15646 export_dynamic_flag_spec_F77=
15647 hardcode_direct_F77=no
15648 hardcode_libdir_flag_spec_F77=
15649 hardcode_libdir_flag_spec_ld_F77=
15650 hardcode_libdir_separator_F77=
15651 hardcode_minus_L_F77=no
15652 hardcode_automatic_F77=no
15653 module_cmds_F77=
15654 module_expsym_cmds_F77=
15655 link_all_deplibs_F77=unknown
15656 old_archive_cmds_F77=$old_archive_cmds
15657 no_undefined_flag_F77=
15658 whole_archive_flag_spec_F77=
15659 enable_shared_with_static_runtimes_F77=no
15660
15661 # Source file extension for f77 test sources.
15662 ac_ext=f
15663
15664 # Object file extension for compiled f77 test sources.
15665 objext=o
15666 objext_F77=$objext
15667
15668 # Code to be used in simple compile tests
15669 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15670
15671 # Code to be used in simple link tests
15672 lt_simple_link_test_code="      program t\n      end\n"
15673
15674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15675
15676 # If no C compiler was specified, use CC.
15677 LTCC=${LTCC-"$CC"}
15678
15679 # Allow CC to be a program name with arguments.
15680 compiler=$CC
15681
15682
15683 # save warnings/boilerplate of simple test code
15684 ac_outfile=conftest.$ac_objext
15685 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15687 _lt_compiler_boilerplate=`cat conftest.err`
15688 $rm conftest*
15689
15690 ac_outfile=conftest.$ac_objext
15691 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15693 _lt_linker_boilerplate=`cat conftest.err`
15694 $rm conftest*
15695
15696
15697 # Allow CC to be a program name with arguments.
15698 lt_save_CC="$CC"
15699 CC=${F77-"f77"}
15700 compiler=$CC
15701 compiler_F77=$CC
15702 for cc_temp in $compiler""; do
15703   case $cc_temp in
15704     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15705     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15706     \-*) ;;
15707     *) break;;
15708   esac
15709 done
15710 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15711
15712
15713 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15714 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15715 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15716 echo "${ECHO_T}$can_build_shared" >&6
15717
15718 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15719 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15720 test "$can_build_shared" = "no" && enable_shared=no
15721
15722 # On AIX, shared libraries and static libraries use the same namespace, and
15723 # are all built from PIC.
15724 case "$host_os" in
15725 aix3*)
15726   test "$enable_shared" = yes && enable_static=no
15727   if test -n "$RANLIB"; then
15728     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15729     postinstall_cmds='$RANLIB $lib'
15730   fi
15731   ;;
15732 aix4* | aix5*)
15733   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15734     test "$enable_shared" = yes && enable_static=no
15735   fi
15736   ;;
15737 esac
15738 echo "$as_me:$LINENO: result: $enable_shared" >&5
15739 echo "${ECHO_T}$enable_shared" >&6
15740
15741 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15742 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15743 # Make sure either enable_shared or enable_static is yes.
15744 test "$enable_shared" = yes || enable_static=yes
15745 echo "$as_me:$LINENO: result: $enable_static" >&5
15746 echo "${ECHO_T}$enable_static" >&6
15747
15748 test "$ld_shlibs_F77" = no && can_build_shared=no
15749
15750 GCC_F77="$G77"
15751 LD_F77="$LD"
15752
15753 lt_prog_compiler_wl_F77=
15754 lt_prog_compiler_pic_F77=
15755 lt_prog_compiler_static_F77=
15756
15757 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15758 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15759
15760   if test "$GCC" = yes; then
15761     lt_prog_compiler_wl_F77='-Wl,'
15762     lt_prog_compiler_static_F77='-static'
15763
15764     case $host_os in
15765       aix*)
15766       # All AIX code is PIC.
15767       if test "$host_cpu" = ia64; then
15768         # AIX 5 now supports IA64 processor
15769         lt_prog_compiler_static_F77='-Bstatic'
15770       fi
15771       ;;
15772
15773     amigaos*)
15774       # FIXME: we need at least 68020 code to build shared libraries, but
15775       # adding the `-m68020' flag to GCC prevents building anything better,
15776       # like `-m68040'.
15777       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15778       ;;
15779
15780     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15781       # PIC is the default for these OSes.
15782       ;;
15783
15784     mingw* | pw32* | os2*)
15785       # This hack is so that the source file can tell whether it is being
15786       # built for inclusion in a dll (and should export symbols for example).
15787       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15788       ;;
15789
15790     darwin* | rhapsody*)
15791       # PIC is the default on this platform
15792       # Common symbols not allowed in MH_DYLIB files
15793       lt_prog_compiler_pic_F77='-fno-common'
15794       ;;
15795
15796     msdosdjgpp*)
15797       # Just because we use GCC doesn't mean we suddenly get shared libraries
15798       # on systems that don't support them.
15799       lt_prog_compiler_can_build_shared_F77=no
15800       enable_shared=no
15801       ;;
15802
15803     sysv4*MP*)
15804       if test -d /usr/nec; then
15805         lt_prog_compiler_pic_F77=-Kconform_pic
15806       fi
15807       ;;
15808
15809     hpux*)
15810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15811       # not for PA HP-UX.
15812       case "$host_cpu" in
15813       hppa*64*|ia64*)
15814         # +Z the default
15815         ;;
15816       *)
15817         lt_prog_compiler_pic_F77='-fPIC'
15818         ;;
15819       esac
15820       ;;
15821
15822     *)
15823       lt_prog_compiler_pic_F77='-fPIC'
15824       ;;
15825     esac
15826   else
15827     # PORTME Check for flag to pass linker flags through the system compiler.
15828     case $host_os in
15829     aix*)
15830       lt_prog_compiler_wl_F77='-Wl,'
15831       if test "$host_cpu" = ia64; then
15832         # AIX 5 now supports IA64 processor
15833         lt_prog_compiler_static_F77='-Bstatic'
15834       else
15835         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15836       fi
15837       ;;
15838       darwin*)
15839         # PIC is the default on this platform
15840         # Common symbols not allowed in MH_DYLIB files
15841        case $cc_basename in
15842          xlc*)
15843          lt_prog_compiler_pic_F77='-qnocommon'
15844          lt_prog_compiler_wl_F77='-Wl,'
15845          ;;
15846        esac
15847        ;;
15848
15849     mingw* | pw32* | os2*)
15850       # This hack is so that the source file can tell whether it is being
15851       # built for inclusion in a dll (and should export symbols for example).
15852       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15853       ;;
15854
15855     hpux9* | hpux10* | hpux11*)
15856       lt_prog_compiler_wl_F77='-Wl,'
15857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15858       # not for PA HP-UX.
15859       case "$host_cpu" in
15860       hppa*64*|ia64*)
15861         # +Z the default
15862         ;;
15863       *)
15864         lt_prog_compiler_pic_F77='+Z'
15865         ;;
15866       esac
15867       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15868       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15869       ;;
15870
15871     irix5* | irix6* | nonstopux*)
15872       lt_prog_compiler_wl_F77='-Wl,'
15873       # PIC (with -KPIC) is the default.
15874       lt_prog_compiler_static_F77='-non_shared'
15875       ;;
15876
15877     newsos6)
15878       lt_prog_compiler_pic_F77='-KPIC'
15879       lt_prog_compiler_static_F77='-Bstatic'
15880       ;;
15881
15882     linux*)
15883       case $cc_basename in
15884       icc* | ecc*)
15885         lt_prog_compiler_wl_F77='-Wl,'
15886         lt_prog_compiler_pic_F77='-KPIC'
15887         lt_prog_compiler_static_F77='-static'
15888         ;;
15889       pgcc* | pgf77* | pgf90*)
15890         # Portland Group compilers (*not* the Pentium gcc compiler,
15891         # which looks to be a dead project)
15892         lt_prog_compiler_wl_F77='-Wl,'
15893         lt_prog_compiler_pic_F77='-fpic'
15894         lt_prog_compiler_static_F77='-static'
15895         ;;
15896       ccc*)
15897         lt_prog_compiler_wl_F77='-Wl,'
15898         # All Alpha code is PIC.
15899         lt_prog_compiler_static_F77='-non_shared'
15900         ;;
15901       esac
15902       ;;
15903
15904     osf3* | osf4* | osf5*)
15905       lt_prog_compiler_wl_F77='-Wl,'
15906       # All OSF/1 code is PIC.
15907       lt_prog_compiler_static_F77='-non_shared'
15908       ;;
15909
15910     sco3.2v5*)
15911       lt_prog_compiler_pic_F77='-Kpic'
15912       lt_prog_compiler_static_F77='-dn'
15913       ;;
15914
15915     solaris*)
15916       lt_prog_compiler_pic_F77='-KPIC'
15917       lt_prog_compiler_static_F77='-Bstatic'
15918       case $cc_basename in
15919       f77* | f90* | f95*)
15920         lt_prog_compiler_wl_F77='-Qoption ld ';;
15921       *)
15922         lt_prog_compiler_wl_F77='-Wl,';;
15923       esac
15924       ;;
15925
15926     sunos4*)
15927       lt_prog_compiler_wl_F77='-Qoption ld '
15928       lt_prog_compiler_pic_F77='-PIC'
15929       lt_prog_compiler_static_F77='-Bstatic'
15930       ;;
15931
15932     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15933       lt_prog_compiler_wl_F77='-Wl,'
15934       lt_prog_compiler_pic_F77='-KPIC'
15935       lt_prog_compiler_static_F77='-Bstatic'
15936       ;;
15937
15938     sysv4*MP*)
15939       if test -d /usr/nec ;then
15940         lt_prog_compiler_pic_F77='-Kconform_pic'
15941         lt_prog_compiler_static_F77='-Bstatic'
15942       fi
15943       ;;
15944
15945     unicos*)
15946       lt_prog_compiler_wl_F77='-Wl,'
15947       lt_prog_compiler_can_build_shared_F77=no
15948       ;;
15949
15950     uts4*)
15951       lt_prog_compiler_pic_F77='-pic'
15952       lt_prog_compiler_static_F77='-Bstatic'
15953       ;;
15954
15955     *)
15956       lt_prog_compiler_can_build_shared_F77=no
15957       ;;
15958     esac
15959   fi
15960
15961 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15962 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15963
15964 #
15965 # Check to make sure the PIC flag actually works.
15966 #
15967 if test -n "$lt_prog_compiler_pic_F77"; then
15968
15969 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15970 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15971 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974   lt_prog_compiler_pic_works_F77=no
15975   ac_outfile=conftest.$ac_objext
15976    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15977    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15978    # Insert the option either (1) after the last *FLAGS variable, or
15979    # (2) before a word containing "conftest.", or (3) at the end.
15980    # Note that $ac_compile itself does not contain backslashes and begins
15981    # with a dollar sign (not a hyphen), so the echo should work correctly.
15982    # The option is referenced via a variable to avoid confusing sed.
15983    lt_compile=`echo "$ac_compile" | $SED \
15984    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15986    -e 's:$: $lt_compiler_flag:'`
15987    (eval echo "\"\$as_me:15987: $lt_compile\"" >&5)
15988    (eval "$lt_compile" 2>conftest.err)
15989    ac_status=$?
15990    cat conftest.err >&5
15991    echo "$as_me:15991: \$? = $ac_status" >&5
15992    if (exit $ac_status) && test -s "$ac_outfile"; then
15993      # The compiler can only warn and ignore the option if not recognized
15994      # So say no if there are warnings other than the usual output.
15995      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15996      $SED '/^$/d' conftest.err >conftest.er2
15997      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15998        lt_prog_compiler_pic_works_F77=yes
15999      fi
16000    fi
16001    $rm conftest*
16002
16003 fi
16004 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16005 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16006
16007 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16008     case $lt_prog_compiler_pic_F77 in
16009      "" | " "*) ;;
16010      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16011      esac
16012 else
16013     lt_prog_compiler_pic_F77=
16014      lt_prog_compiler_can_build_shared_F77=no
16015 fi
16016
16017 fi
16018 case "$host_os" in
16019   # For platforms which do not support PIC, -DPIC is meaningless:
16020   *djgpp*)
16021     lt_prog_compiler_pic_F77=
16022     ;;
16023   *)
16024     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16025     ;;
16026 esac
16027
16028 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16030 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   lt_cv_prog_compiler_c_o_F77=no
16034    $rm -r conftest 2>/dev/null
16035    mkdir conftest
16036    cd conftest
16037    mkdir out
16038    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16039
16040    lt_compiler_flag="-o out/conftest2.$ac_objext"
16041    # Insert the option either (1) after the last *FLAGS variable, or
16042    # (2) before a word containing "conftest.", or (3) at the end.
16043    # Note that $ac_compile itself does not contain backslashes and begins
16044    # with a dollar sign (not a hyphen), so the echo should work correctly.
16045    lt_compile=`echo "$ac_compile" | $SED \
16046    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16048    -e 's:$: $lt_compiler_flag:'`
16049    (eval echo "\"\$as_me:16049: $lt_compile\"" >&5)
16050    (eval "$lt_compile" 2>out/conftest.err)
16051    ac_status=$?
16052    cat out/conftest.err >&5
16053    echo "$as_me:16053: \$? = $ac_status" >&5
16054    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16055    then
16056      # The compiler can only warn and ignore the option if not recognized
16057      # So say no if there are warnings
16058      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16059      $SED '/^$/d' out/conftest.err >out/conftest.er2
16060      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16061        lt_cv_prog_compiler_c_o_F77=yes
16062      fi
16063    fi
16064    chmod u+w .
16065    $rm conftest*
16066    # SGI C++ compiler will create directory out/ii_files/ for
16067    # template instantiation
16068    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16069    $rm out/* && rmdir out
16070    cd ..
16071    rmdir conftest
16072    $rm conftest*
16073
16074 fi
16075 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16077
16078
16079 hard_links="nottested"
16080 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16081   # do not overwrite the value of need_locks provided by the user
16082   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16084   hard_links=yes
16085   $rm conftest*
16086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087   touch conftest.a
16088   ln conftest.a conftest.b 2>&5 || hard_links=no
16089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090   echo "$as_me:$LINENO: result: $hard_links" >&5
16091 echo "${ECHO_T}$hard_links" >&6
16092   if test "$hard_links" = no; then
16093     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16095     need_locks=warn
16096   fi
16097 else
16098   need_locks=no
16099 fi
16100
16101 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16103
16104   runpath_var=
16105   allow_undefined_flag_F77=
16106   enable_shared_with_static_runtimes_F77=no
16107   archive_cmds_F77=
16108   archive_expsym_cmds_F77=
16109   old_archive_From_new_cmds_F77=
16110   old_archive_from_expsyms_cmds_F77=
16111   export_dynamic_flag_spec_F77=
16112   whole_archive_flag_spec_F77=
16113   thread_safe_flag_spec_F77=
16114   hardcode_libdir_flag_spec_F77=
16115   hardcode_libdir_flag_spec_ld_F77=
16116   hardcode_libdir_separator_F77=
16117   hardcode_direct_F77=no
16118   hardcode_minus_L_F77=no
16119   hardcode_shlibpath_var_F77=unsupported
16120   link_all_deplibs_F77=unknown
16121   hardcode_automatic_F77=no
16122   module_cmds_F77=
16123   module_expsym_cmds_F77=
16124   always_export_symbols_F77=no
16125   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16126   # include_expsyms should be a list of space-separated symbols to be *always*
16127   # included in the symbol list
16128   include_expsyms_F77=
16129   # exclude_expsyms can be an extended regexp of symbols to exclude
16130   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16131   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16132   # as well as any symbol that contains `d'.
16133   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16134   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16135   # platforms (ab)use it in PIC code, but their linkers get confused if
16136   # the symbol is explicitly referenced.  Since portable code cannot
16137   # rely on this symbol name, it's probably fine to never include it in
16138   # preloaded symbol tables.
16139   extract_expsyms_cmds=
16140   # Just being paranoid about ensuring that cc_basename is set.
16141   for cc_temp in $compiler""; do
16142   case $cc_temp in
16143     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16144     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16145     \-*) ;;
16146     *) break;;
16147   esac
16148 done
16149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16150
16151   case $host_os in
16152   cygwin* | mingw* | pw32*)
16153     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16154     # When not using gcc, we currently assume that we are using
16155     # Microsoft Visual C++.
16156     if test "$GCC" != yes; then
16157       with_gnu_ld=no
16158     fi
16159     ;;
16160   openbsd*)
16161     with_gnu_ld=no
16162     ;;
16163   esac
16164
16165   ld_shlibs_F77=yes
16166   if test "$with_gnu_ld" = yes; then
16167     # If archive_cmds runs LD, not CC, wlarc should be empty
16168     wlarc='${wl}'
16169
16170     # Set some defaults for GNU ld with shared library support. These
16171     # are reset later if shared libraries are not supported. Putting them
16172     # here allows them to be overridden if necessary.
16173     runpath_var=LD_RUN_PATH
16174     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16175     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16176     # ancient GNU ld didn't support --whole-archive et. al.
16177     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16178         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16179       else
16180         whole_archive_flag_spec_F77=
16181     fi
16182     supports_anon_versioning=no
16183     case `$LD -v 2>/dev/null` in
16184       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16185       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16186       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16187       *\ 2.11.*) ;; # other 2.11 versions
16188       *) supports_anon_versioning=yes ;;
16189     esac
16190
16191     # See if GNU ld supports shared libraries.
16192     case $host_os in
16193     aix3* | aix4* | aix5*)
16194       # On AIX/PPC, the GNU linker is very broken
16195       if test "$host_cpu" != ia64; then
16196         ld_shlibs_F77=no
16197         cat <<EOF 1>&2
16198
16199 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16200 *** to be unable to reliably create shared libraries on AIX.
16201 *** Therefore, libtool is disabling shared libraries support.  If you
16202 *** really care for shared libraries, you may want to modify your PATH
16203 *** so that a non-GNU linker is found, and then restart.
16204
16205 EOF
16206       fi
16207       ;;
16208
16209     amigaos*)
16210       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)'
16211       hardcode_libdir_flag_spec_F77='-L$libdir'
16212       hardcode_minus_L_F77=yes
16213
16214       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16215       # that the semantics of dynamic libraries on AmigaOS, at least up
16216       # to version 4, is to share data among multiple programs linked
16217       # with the same dynamic library.  Since this doesn't match the
16218       # behavior of shared libraries on other platforms, we can't use
16219       # them.
16220       ld_shlibs_F77=no
16221       ;;
16222
16223     beos*)
16224       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16225         allow_undefined_flag_F77=unsupported
16226         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16227         # support --undefined.  This deserves some investigation.  FIXME
16228         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16229       else
16230         ld_shlibs_F77=no
16231       fi
16232       ;;
16233
16234     cygwin* | mingw* | pw32*)
16235       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16236       # as there is no search path for DLLs.
16237       hardcode_libdir_flag_spec_F77='-L$libdir'
16238       allow_undefined_flag_F77=unsupported
16239       always_export_symbols_F77=no
16240       enable_shared_with_static_runtimes_F77=yes
16241       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16242
16243       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16244         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16245         # If the export-symbols file already is a .def file (1st line
16246         # is EXPORTS), use it as is; otherwise, prepend...
16247         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16248           cp $export_symbols $output_objdir/$soname.def;
16249         else
16250           echo EXPORTS > $output_objdir/$soname.def;
16251           cat $export_symbols >> $output_objdir/$soname.def;
16252         fi~
16253         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16254       else
16255         ld_shlibs_F77=no
16256       fi
16257       ;;
16258
16259     linux*)
16260       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16261         tmp_addflag=
16262         case $cc_basename,$host_cpu in
16263         pgcc*)                          # Portland Group C compiler
16264           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'
16265           tmp_addflag=' $pic_flag'
16266           ;;
16267         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16268           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'
16269           tmp_addflag=' $pic_flag -Mnomain' ;;
16270         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16271           tmp_addflag=' -i_dynamic' ;;
16272         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16273           tmp_addflag=' -i_dynamic -nofor_main' ;;
16274         ifc* | ifort*)                  # Intel Fortran compiler
16275           tmp_addflag=' -nofor_main' ;;
16276         esac
16277         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16278
16279         if test $supports_anon_versioning = yes; then
16280           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16281   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16282   $echo "local: *; };" >> $output_objdir/$libname.ver~
16283           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16284         fi
16285       else
16286         ld_shlibs_F77=no
16287       fi
16288       ;;
16289
16290     netbsd*)
16291       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16292         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16293         wlarc=
16294       else
16295         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16297       fi
16298       ;;
16299
16300     solaris* | sysv5*)
16301       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16302         ld_shlibs_F77=no
16303         cat <<EOF 1>&2
16304
16305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16306 *** create shared libraries on Solaris systems.  Therefore, libtool
16307 *** is disabling shared libraries support.  We urge you to upgrade GNU
16308 *** binutils to release 2.9.1 or newer.  Another option is to modify
16309 *** your PATH or compiler configuration so that the native linker is
16310 *** used, and then restart.
16311
16312 EOF
16313       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16314         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16315         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16316       else
16317         ld_shlibs_F77=no
16318       fi
16319       ;;
16320
16321     sunos4*)
16322       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16323       wlarc=
16324       hardcode_direct_F77=yes
16325       hardcode_shlibpath_var_F77=no
16326       ;;
16327
16328     *)
16329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16330         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16332       else
16333         ld_shlibs_F77=no
16334       fi
16335       ;;
16336     esac
16337
16338     if test "$ld_shlibs_F77" = no; then
16339       runpath_var=
16340       hardcode_libdir_flag_spec_F77=
16341       export_dynamic_flag_spec_F77=
16342       whole_archive_flag_spec_F77=
16343     fi
16344   else
16345     # PORTME fill in a description of your system's linker (not GNU ld)
16346     case $host_os in
16347     aix3*)
16348       allow_undefined_flag_F77=unsupported
16349       always_export_symbols_F77=yes
16350       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'
16351       # Note: this linker hardcodes the directories in LIBPATH if there
16352       # are no directories specified by -L.
16353       hardcode_minus_L_F77=yes
16354       if test "$GCC" = yes && test -z "$link_static_flag"; then
16355         # Neither direct hardcoding nor static linking is supported with a
16356         # broken collect2.
16357         hardcode_direct_F77=unsupported
16358       fi
16359       ;;
16360
16361     aix4* | aix5*)
16362       if test "$host_cpu" = ia64; then
16363         # On IA64, the linker does run time linking by default, so we don't
16364         # have to do anything special.
16365         aix_use_runtimelinking=no
16366         exp_sym_flag='-Bexport'
16367         no_entry_flag=""
16368       else
16369         # If we're using GNU nm, then we don't want the "-C" option.
16370         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16371         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16372           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'
16373         else
16374           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'
16375         fi
16376         aix_use_runtimelinking=no
16377
16378         # Test if we are trying to use run time linking or normal
16379         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16380         # need to do runtime linking.
16381         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16382           for ld_flag in $LDFLAGS; do
16383           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16384             aix_use_runtimelinking=yes
16385             break
16386           fi
16387           done
16388         esac
16389
16390         exp_sym_flag='-bexport'
16391         no_entry_flag='-bnoentry'
16392       fi
16393
16394       # When large executables or shared objects are built, AIX ld can
16395       # have problems creating the table of contents.  If linking a library
16396       # or program results in "error TOC overflow" add -mminimal-toc to
16397       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16398       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16399
16400       archive_cmds_F77=''
16401       hardcode_direct_F77=yes
16402       hardcode_libdir_separator_F77=':'
16403       link_all_deplibs_F77=yes
16404
16405       if test "$GCC" = yes; then
16406         case $host_os in aix4.[012]|aix4.[012].*)
16407         # We only want to do this on AIX 4.2 and lower, the check
16408         # below for broken collect2 doesn't work under 4.3+
16409           collect2name=`${CC} -print-prog-name=collect2`
16410           if test -f "$collect2name" && \
16411            strings "$collect2name" | grep resolve_lib_name >/dev/null
16412           then
16413           # We have reworked collect2
16414           hardcode_direct_F77=yes
16415           else
16416           # We have old collect2
16417           hardcode_direct_F77=unsupported
16418           # It fails to find uninstalled libraries when the uninstalled
16419           # path is not listed in the libpath.  Setting hardcode_minus_L
16420           # to unsupported forces relinking
16421           hardcode_minus_L_F77=yes
16422           hardcode_libdir_flag_spec_F77='-L$libdir'
16423           hardcode_libdir_separator_F77=
16424           fi
16425         esac
16426         shared_flag='-shared'
16427         if test "$aix_use_runtimelinking" = yes; then
16428           shared_flag="$shared_flag "'${wl}-G'
16429         fi
16430       else
16431         # not using gcc
16432         if test "$host_cpu" = ia64; then
16433         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16434         # chokes on -Wl,-G. The following line is correct:
16435           shared_flag='-G'
16436         else
16437         if test "$aix_use_runtimelinking" = yes; then
16438             shared_flag='${wl}-G'
16439           else
16440             shared_flag='${wl}-bM:SRE'
16441         fi
16442         fi
16443       fi
16444
16445       # It seems that -bexpall does not export symbols beginning with
16446       # underscore (_), so it is better to generate a list of symbols to export.
16447       always_export_symbols_F77=yes
16448       if test "$aix_use_runtimelinking" = yes; then
16449         # Warning - without using the other runtime loading flags (-brtl),
16450         # -berok will link without error, but may produce a broken library.
16451         allow_undefined_flag_F77='-berok'
16452        # Determine the default libpath from the value encoded in an empty executable.
16453        cat >conftest.$ac_ext <<_ACEOF
16454       program main
16455
16456       end
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460   (eval $ac_link) 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_f77_werror_flag"
16468                          || test ! -s conftest.err'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; } &&
16474          { ac_try='test -s conftest$ac_exeext'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; }; then
16480
16481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16482 }'`
16483 # Check for a 64-bit object if we didn't find anything.
16484 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; }
16485 }'`; fi
16486 else
16487   echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 fi
16491 rm -f conftest.err conftest.$ac_objext \
16492       conftest$ac_exeext conftest.$ac_ext
16493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16494
16495        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16496         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"
16497        else
16498         if test "$host_cpu" = ia64; then
16499           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16500           allow_undefined_flag_F77="-z nodefs"
16501           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"
16502         else
16503          # Determine the default libpath from the value encoded in an empty executable.
16504          cat >conftest.$ac_ext <<_ACEOF
16505       program main
16506
16507       end
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511   (eval $ac_link) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_f77_werror_flag"
16519                          || test ! -s conftest.err'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; } &&
16525          { ac_try='test -s conftest$ac_exeext'
16526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527   (eval $ac_try) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531
16532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16533 }'`
16534 # Check for a 64-bit object if we didn't find anything.
16535 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; }
16536 }'`; fi
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 fi
16542 rm -f conftest.err conftest.$ac_objext \
16543       conftest$ac_exeext conftest.$ac_ext
16544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16545
16546          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16547           # Warning - without using the other run time loading flags,
16548           # -berok will link without error, but may produce a broken library.
16549           no_undefined_flag_F77=' ${wl}-bernotok'
16550           allow_undefined_flag_F77=' ${wl}-berok'
16551           # -bexpall does not export symbols beginning with underscore (_)
16552           always_export_symbols_F77=yes
16553           # Exported symbols can be pulled into shared objects from archives
16554           whole_archive_flag_spec_F77=' '
16555           archive_cmds_need_lc_F77=yes
16556           # This is similar to how AIX traditionally builds it's shared libraries.
16557           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'
16558         fi
16559       fi
16560       ;;
16561
16562     amigaos*)
16563       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)'
16564       hardcode_libdir_flag_spec_F77='-L$libdir'
16565       hardcode_minus_L_F77=yes
16566       # see comment about different semantics on the GNU ld section
16567       ld_shlibs_F77=no
16568       ;;
16569
16570     bsdi[45]*)
16571       export_dynamic_flag_spec_F77=-rdynamic
16572       ;;
16573
16574     cygwin* | mingw* | pw32*)
16575       # When not using gcc, we currently assume that we are using
16576       # Microsoft Visual C++.
16577       # hardcode_libdir_flag_spec is actually meaningless, as there is
16578       # no search path for DLLs.
16579       hardcode_libdir_flag_spec_F77=' '
16580       allow_undefined_flag_F77=unsupported
16581       # Tell ltmain to make .lib files, not .a files.
16582       libext=lib
16583       # Tell ltmain to make .dll files, not .so files.
16584       shrext_cmds=".dll"
16585       # FIXME: Setting linknames here is a bad hack.
16586       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16587       # The linker will automatically build a .lib file if we build a DLL.
16588       old_archive_From_new_cmds_F77='true'
16589       # FIXME: Should let the user specify the lib program.
16590       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16591       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16592       enable_shared_with_static_runtimes_F77=yes
16593       ;;
16594
16595     darwin* | rhapsody*)
16596       case "$host_os" in
16597         rhapsody* | darwin1.[012])
16598          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16599          ;;
16600        *) # Darwin 1.3 on
16601          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16602            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16603          else
16604            case ${MACOSX_DEPLOYMENT_TARGET} in
16605              10.[012])
16606                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16607                ;;
16608              10.*)
16609                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16610                ;;
16611            esac
16612          fi
16613          ;;
16614       esac
16615       archive_cmds_need_lc_F77=no
16616       hardcode_direct_F77=no
16617       hardcode_automatic_F77=yes
16618       hardcode_shlibpath_var_F77=unsupported
16619       whole_archive_flag_spec_F77=''
16620       link_all_deplibs_F77=yes
16621     if test "$GCC" = yes ; then
16622         output_verbose_link_cmd='echo'
16623         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16624       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16625       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16626       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}'
16627       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}'
16628     else
16629       case $cc_basename in
16630         xlc*)
16631          output_verbose_link_cmd='echo'
16632          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16633          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16634           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16635          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}'
16636           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}'
16637           ;;
16638        *)
16639          ld_shlibs_F77=no
16640           ;;
16641       esac
16642     fi
16643       ;;
16644
16645     dgux*)
16646       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647       hardcode_libdir_flag_spec_F77='-L$libdir'
16648       hardcode_shlibpath_var_F77=no
16649       ;;
16650
16651     freebsd1*)
16652       ld_shlibs_F77=no
16653       ;;
16654
16655     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16656     # support.  Future versions do this automatically, but an explicit c++rt0.o
16657     # does not break anything, and helps significantly (at the cost of a little
16658     # extra space).
16659     freebsd2.2*)
16660       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16661       hardcode_libdir_flag_spec_F77='-R$libdir'
16662       hardcode_direct_F77=yes
16663       hardcode_shlibpath_var_F77=no
16664       ;;
16665
16666     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16667     freebsd2*)
16668       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16669       hardcode_direct_F77=yes
16670       hardcode_minus_L_F77=yes
16671       hardcode_shlibpath_var_F77=no
16672       ;;
16673
16674     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16675     freebsd* | kfreebsd*-gnu | dragonfly*)
16676       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16677       hardcode_libdir_flag_spec_F77='-R$libdir'
16678       hardcode_direct_F77=yes
16679       hardcode_shlibpath_var_F77=no
16680       ;;
16681
16682     hpux9*)
16683       if test "$GCC" = yes; then
16684         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'
16685       else
16686         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'
16687       fi
16688       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16689       hardcode_libdir_separator_F77=:
16690       hardcode_direct_F77=yes
16691
16692       # hardcode_minus_L: Not really in the search PATH,
16693       # but as the default location of the library.
16694       hardcode_minus_L_F77=yes
16695       export_dynamic_flag_spec_F77='${wl}-E'
16696       ;;
16697
16698     hpux10* | hpux11*)
16699       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16700         case "$host_cpu" in
16701         hppa*64*|ia64*)
16702           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16703           ;;
16704         *)
16705           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16706           ;;
16707         esac
16708       else
16709         case "$host_cpu" in
16710         hppa*64*|ia64*)
16711           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16712           ;;
16713         *)
16714           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16715           ;;
16716         esac
16717       fi
16718       if test "$with_gnu_ld" = no; then
16719         case "$host_cpu" in
16720         hppa*64*)
16721           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16722           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16723           hardcode_libdir_separator_F77=:
16724           hardcode_direct_F77=no
16725           hardcode_shlibpath_var_F77=no
16726           ;;
16727         ia64*)
16728           hardcode_libdir_flag_spec_F77='-L$libdir'
16729           hardcode_direct_F77=no
16730           hardcode_shlibpath_var_F77=no
16731
16732           # hardcode_minus_L: Not really in the search PATH,
16733           # but as the default location of the library.
16734           hardcode_minus_L_F77=yes
16735           ;;
16736         *)
16737           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16738           hardcode_libdir_separator_F77=:
16739           hardcode_direct_F77=yes
16740           export_dynamic_flag_spec_F77='${wl}-E'
16741
16742           # hardcode_minus_L: Not really in the search PATH,
16743           # but as the default location of the library.
16744           hardcode_minus_L_F77=yes
16745           ;;
16746         esac
16747       fi
16748       ;;
16749
16750     irix5* | irix6* | nonstopux*)
16751       if test "$GCC" = yes; then
16752         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'
16753       else
16754         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'
16755         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16756       fi
16757       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16758       hardcode_libdir_separator_F77=:
16759       link_all_deplibs_F77=yes
16760       ;;
16761
16762     netbsd*)
16763       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16764         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16765       else
16766         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16767       fi
16768       hardcode_libdir_flag_spec_F77='-R$libdir'
16769       hardcode_direct_F77=yes
16770       hardcode_shlibpath_var_F77=no
16771       ;;
16772
16773     newsos6)
16774       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775       hardcode_direct_F77=yes
16776       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16777       hardcode_libdir_separator_F77=:
16778       hardcode_shlibpath_var_F77=no
16779       ;;
16780
16781     openbsd*)
16782       hardcode_direct_F77=yes
16783       hardcode_shlibpath_var_F77=no
16784       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16785         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16787         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16788         export_dynamic_flag_spec_F77='${wl}-E'
16789       else
16790        case $host_os in
16791          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16792            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16793            hardcode_libdir_flag_spec_F77='-R$libdir'
16794            ;;
16795          *)
16796            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16797            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16798            ;;
16799        esac
16800       fi
16801       ;;
16802
16803     os2*)
16804       hardcode_libdir_flag_spec_F77='-L$libdir'
16805       hardcode_minus_L_F77=yes
16806       allow_undefined_flag_F77=unsupported
16807       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'
16808       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16809       ;;
16810
16811     osf3*)
16812       if test "$GCC" = yes; then
16813         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16814         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'
16815       else
16816         allow_undefined_flag_F77=' -expect_unresolved \*'
16817         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'
16818       fi
16819       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16820       hardcode_libdir_separator_F77=:
16821       ;;
16822
16823     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16824       if test "$GCC" = yes; then
16825         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16826         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'
16827         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16828       else
16829         allow_undefined_flag_F77=' -expect_unresolved \*'
16830         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'
16831         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~
16832         $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'
16833
16834         # Both c and cxx compiler support -rpath directly
16835         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16836       fi
16837       hardcode_libdir_separator_F77=:
16838       ;;
16839
16840     sco3.2v5*)
16841       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842       hardcode_shlibpath_var_F77=no
16843       export_dynamic_flag_spec_F77='${wl}-Bexport'
16844       runpath_var=LD_RUN_PATH
16845       hardcode_runpath_var=yes
16846       ;;
16847
16848     solaris*)
16849       no_undefined_flag_F77=' -z text'
16850       if test "$GCC" = yes; then
16851         wlarc='${wl}'
16852         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16853         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16854           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16855       else
16856         wlarc=''
16857         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16859         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16860       fi
16861       hardcode_libdir_flag_spec_F77='-R$libdir'
16862       hardcode_shlibpath_var_F77=no
16863       case $host_os in
16864       solaris2.[0-5] | solaris2.[0-5].*) ;;
16865       *)
16866         # The compiler driver will combine linker options so we
16867         # cannot just pass the convience library names through
16868         # without $wl, iff we do not link with $LD.
16869         # Luckily, gcc supports the same syntax we need for Sun Studio.
16870         # Supported since Solaris 2.6 (maybe 2.5.1?)
16871         case $wlarc in
16872         '')
16873           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16874         *)
16875           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' ;;
16876         esac ;;
16877       esac
16878       link_all_deplibs_F77=yes
16879       ;;
16880
16881     sunos4*)
16882       if test "x$host_vendor" = xsequent; then
16883         # Use $CC to link under sequent, because it throws in some extra .o
16884         # files that make .init and .fini sections work.
16885         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16886       else
16887         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16888       fi
16889       hardcode_libdir_flag_spec_F77='-L$libdir'
16890       hardcode_direct_F77=yes
16891       hardcode_minus_L_F77=yes
16892       hardcode_shlibpath_var_F77=no
16893       ;;
16894
16895     sysv4)
16896       case $host_vendor in
16897         sni)
16898           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899           hardcode_direct_F77=yes # is this really true???
16900         ;;
16901         siemens)
16902           ## LD is ld it makes a PLAMLIB
16903           ## CC just makes a GrossModule.
16904           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16905           reload_cmds_F77='$CC -r -o $output$reload_objs'
16906           hardcode_direct_F77=no
16907         ;;
16908         motorola)
16909           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16910           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16911         ;;
16912       esac
16913       runpath_var='LD_RUN_PATH'
16914       hardcode_shlibpath_var_F77=no
16915       ;;
16916
16917     sysv4.3*)
16918       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16919       hardcode_shlibpath_var_F77=no
16920       export_dynamic_flag_spec_F77='-Bexport'
16921       ;;
16922
16923     sysv4*MP*)
16924       if test -d /usr/nec; then
16925         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16926         hardcode_shlibpath_var_F77=no
16927         runpath_var=LD_RUN_PATH
16928         hardcode_runpath_var=yes
16929         ld_shlibs_F77=yes
16930       fi
16931       ;;
16932
16933     sysv4.2uw2*)
16934       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16935       hardcode_direct_F77=yes
16936       hardcode_minus_L_F77=no
16937       hardcode_shlibpath_var_F77=no
16938       hardcode_runpath_var=yes
16939       runpath_var=LD_RUN_PATH
16940       ;;
16941
16942    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16943       no_undefined_flag_F77='${wl}-z ${wl}text'
16944       if test "$GCC" = yes; then
16945         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16946       else
16947         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948       fi
16949       runpath_var='LD_RUN_PATH'
16950       hardcode_shlibpath_var_F77=no
16951       ;;
16952
16953     sysv5*)
16954       no_undefined_flag_F77=' -z text'
16955       # $CC -shared without GNU ld will not create a library from C++
16956       # object files and a static libstdc++, better avoid it by now
16957       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16959                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16960       hardcode_libdir_flag_spec_F77=
16961       hardcode_shlibpath_var_F77=no
16962       runpath_var='LD_RUN_PATH'
16963       ;;
16964
16965     uts4*)
16966       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16967       hardcode_libdir_flag_spec_F77='-L$libdir'
16968       hardcode_shlibpath_var_F77=no
16969       ;;
16970
16971     *)
16972       ld_shlibs_F77=no
16973       ;;
16974     esac
16975   fi
16976
16977 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16978 echo "${ECHO_T}$ld_shlibs_F77" >&6
16979 test "$ld_shlibs_F77" = no && can_build_shared=no
16980
16981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16982 if test "$GCC" = yes; then
16983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16984 fi
16985
16986 #
16987 # Do we need to explicitly link libc?
16988 #
16989 case "x$archive_cmds_need_lc_F77" in
16990 x|xyes)
16991   # Assume -lc should be added
16992   archive_cmds_need_lc_F77=yes
16993
16994   if test "$enable_shared" = yes && test "$GCC" = yes; then
16995     case $archive_cmds_F77 in
16996     *'~'*)
16997       # FIXME: we may have to deal with multi-command sequences.
16998       ;;
16999     '$CC '*)
17000       # Test whether the compiler implicitly links with -lc since on some
17001       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17002       # to ld, don't add -lc before -lgcc.
17003       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17004 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17005       $rm conftest*
17006       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17007
17008       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17009   (eval $ac_compile) 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } 2>conftest.err; then
17013         soname=conftest
17014         lib=conftest
17015         libobjs=conftest.$ac_objext
17016         deplibs=
17017         wl=$lt_prog_compiler_wl_F77
17018         compiler_flags=-v
17019         linker_flags=-v
17020         verstring=
17021         output_objdir=.
17022         libname=conftest
17023         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17024         allow_undefined_flag_F77=
17025         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17026   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }
17030         then
17031           archive_cmds_need_lc_F77=no
17032         else
17033           archive_cmds_need_lc_F77=yes
17034         fi
17035         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17036       else
17037         cat conftest.err 1>&5
17038       fi
17039       $rm conftest*
17040       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17041 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17042       ;;
17043     esac
17044   fi
17045   ;;
17046 esac
17047
17048 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17049 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17050 library_names_spec=
17051 libname_spec='lib$name'
17052 soname_spec=
17053 shrext_cmds=".so"
17054 postinstall_cmds=
17055 postuninstall_cmds=
17056 finish_cmds=
17057 finish_eval=
17058 shlibpath_var=
17059 shlibpath_overrides_runpath=unknown
17060 version_type=none
17061 dynamic_linker="$host_os ld.so"
17062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17063 if test "$GCC" = yes; then
17064   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17065   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17066     # if the path contains ";" then we assume it to be the separator
17067     # otherwise default to the standard path separator (i.e. ":") - it is
17068     # assumed that no part of a normal pathname contains ";" but that should
17069     # okay in the real world where ";" in dirpaths is itself problematic.
17070     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17071   else
17072     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17073   fi
17074 else
17075   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17076 fi
17077 need_lib_prefix=unknown
17078 hardcode_into_libs=no
17079
17080 # when you set need_version to no, make sure it does not cause -set_version
17081 # flags to be left without arguments
17082 need_version=unknown
17083
17084 case $host_os in
17085 aix3*)
17086   version_type=linux
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17088   shlibpath_var=LIBPATH
17089
17090   # AIX 3 has no versioning support, so we append a major version to the name.
17091   soname_spec='${libname}${release}${shared_ext}$major'
17092   ;;
17093
17094 aix4* | aix5*)
17095   version_type=linux
17096   need_lib_prefix=no
17097   need_version=no
17098   hardcode_into_libs=yes
17099   if test "$host_cpu" = ia64; then
17100     # AIX 5 supports IA64
17101     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17102     shlibpath_var=LD_LIBRARY_PATH
17103   else
17104     # With GCC up to 2.95.x, collect2 would create an import file
17105     # for dependence libraries.  The import file would start with
17106     # the line `#! .'.  This would cause the generated library to
17107     # depend on `.', always an invalid library.  This was fixed in
17108     # development snapshots of GCC prior to 3.0.
17109     case $host_os in
17110       aix4 | aix4.[01] | aix4.[01].*)
17111       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17112            echo ' yes '
17113            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17114         :
17115       else
17116         can_build_shared=no
17117       fi
17118       ;;
17119     esac
17120     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17121     # soname into executable. Probably we can add versioning support to
17122     # collect2, so additional links can be useful in future.
17123     if test "$aix_use_runtimelinking" = yes; then
17124       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17125       # instead of lib<name>.a to let people know that these are not
17126       # typical AIX shared libraries.
17127       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128     else
17129       # We preserve .a as extension for shared libraries through AIX4.2
17130       # and later when we are not doing run time linking.
17131       library_names_spec='${libname}${release}.a $libname.a'
17132       soname_spec='${libname}${release}${shared_ext}$major'
17133     fi
17134     shlibpath_var=LIBPATH
17135   fi
17136   ;;
17137
17138 amigaos*)
17139   library_names_spec='$libname.ixlibrary $libname.a'
17140   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17141   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'
17142   ;;
17143
17144 beos*)
17145   library_names_spec='${libname}${shared_ext}'
17146   dynamic_linker="$host_os ld.so"
17147   shlibpath_var=LIBRARY_PATH
17148   ;;
17149
17150 bsdi[45]*)
17151   version_type=linux
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17156   shlibpath_var=LD_LIBRARY_PATH
17157   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17158   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17159   # the default ld.so.conf also contains /usr/contrib/lib and
17160   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17161   # libtool to hard-code these into programs
17162   ;;
17163
17164 cygwin* | mingw* | pw32*)
17165   version_type=windows
17166   shrext_cmds=".dll"
17167   need_version=no
17168   need_lib_prefix=no
17169
17170   case $GCC,$host_os in
17171   yes,cygwin* | yes,mingw* | yes,pw32*)
17172     library_names_spec='$libname.dll.a'
17173     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17174     postinstall_cmds='base_file=`basename \${file}`~
17175       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17176       dldir=$destdir/`dirname \$dlpath`~
17177       test -d \$dldir || mkdir -p \$dldir~
17178       $install_prog $dir/$dlname \$dldir/$dlname'
17179     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17180       dlpath=$dir/\$dldll~
17181        $rm \$dlpath'
17182     shlibpath_overrides_runpath=yes
17183
17184     case $host_os in
17185     cygwin*)
17186       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17187       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17188       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17189       ;;
17190     mingw*)
17191       # MinGW DLLs use traditional 'lib' prefix
17192       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17193       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17194       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17195         # It is most probably a Windows format PATH printed by
17196         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17197         # path with ; separators, and with drive letters. We can handle the
17198         # drive letters (cygwin fileutils understands them), so leave them,
17199         # especially as we might pass files found there to a mingw objdump,
17200         # which wouldn't understand a cygwinified path. Ahh.
17201         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17202       else
17203         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17204       fi
17205       ;;
17206     pw32*)
17207       # pw32 DLLs use 'pw' prefix rather than 'lib'
17208       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17209       ;;
17210     esac
17211     ;;
17212
17213   *)
17214     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17215     ;;
17216   esac
17217   dynamic_linker='Win32 ld.exe'
17218   # FIXME: first we should search . and the directory the executable is in
17219   shlibpath_var=PATH
17220   ;;
17221
17222 darwin* | rhapsody*)
17223   dynamic_linker="$host_os dyld"
17224   version_type=darwin
17225   need_lib_prefix=no
17226   need_version=no
17227   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17228   soname_spec='${libname}${release}${major}$shared_ext'
17229   shlibpath_overrides_runpath=yes
17230   shlibpath_var=DYLD_LIBRARY_PATH
17231   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17232   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17233   if test "$GCC" = yes; then
17234     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"`
17235   else
17236     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17237   fi
17238   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17239   ;;
17240
17241 dgux*)
17242   version_type=linux
17243   need_lib_prefix=no
17244   need_version=no
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17246   soname_spec='${libname}${release}${shared_ext}$major'
17247   shlibpath_var=LD_LIBRARY_PATH
17248   ;;
17249
17250 freebsd1*)
17251   dynamic_linker=no
17252   ;;
17253
17254 kfreebsd*-gnu)
17255   version_type=linux
17256   need_lib_prefix=no
17257   need_version=no
17258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259   soname_spec='${libname}${release}${shared_ext}$major'
17260   shlibpath_var=LD_LIBRARY_PATH
17261   shlibpath_overrides_runpath=no
17262   hardcode_into_libs=yes
17263   dynamic_linker='GNU ld.so'
17264   ;;
17265
17266 freebsd* | dragonfly*)
17267   # DragonFly does not have aout.  When/if they implement a new
17268   # versioning mechanism, adjust this.
17269   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17270   version_type=freebsd-$objformat
17271   case $version_type in
17272     freebsd-elf*)
17273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17274       need_version=no
17275       need_lib_prefix=no
17276       ;;
17277     freebsd-*)
17278       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17279       need_version=yes
17280       ;;
17281   esac
17282   shlibpath_var=LD_LIBRARY_PATH
17283   case $host_os in
17284   freebsd2*)
17285     shlibpath_overrides_runpath=yes
17286     ;;
17287   freebsd3.[01]* | freebsdelf3.[01]*)
17288     shlibpath_overrides_runpath=yes
17289     hardcode_into_libs=yes
17290     ;;
17291   *) # from 3.2 on
17292     shlibpath_overrides_runpath=no
17293     hardcode_into_libs=yes
17294     ;;
17295   esac
17296   ;;
17297
17298 gnu*)
17299   version_type=linux
17300   need_lib_prefix=no
17301   need_version=no
17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17303   soname_spec='${libname}${release}${shared_ext}$major'
17304   shlibpath_var=LD_LIBRARY_PATH
17305   hardcode_into_libs=yes
17306   ;;
17307
17308 hpux9* | hpux10* | hpux11*)
17309   # Give a soname corresponding to the major version so that dld.sl refuses to
17310   # link against other versions.
17311   version_type=sunos
17312   need_lib_prefix=no
17313   need_version=no
17314   case "$host_cpu" in
17315   ia64*)
17316     shrext_cmds='.so'
17317     hardcode_into_libs=yes
17318     dynamic_linker="$host_os dld.so"
17319     shlibpath_var=LD_LIBRARY_PATH
17320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322     soname_spec='${libname}${release}${shared_ext}$major'
17323     if test "X$HPUX_IA64_MODE" = X32; then
17324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17325     else
17326       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17327     fi
17328     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17329     ;;
17330    hppa*64*)
17331      shrext_cmds='.sl'
17332      hardcode_into_libs=yes
17333      dynamic_linker="$host_os dld.sl"
17334      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17335      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17336      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337      soname_spec='${libname}${release}${shared_ext}$major'
17338      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17339      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17340      ;;
17341    *)
17342     shrext_cmds='.sl'
17343     dynamic_linker="$host_os dld.sl"
17344     shlibpath_var=SHLIB_PATH
17345     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347     soname_spec='${libname}${release}${shared_ext}$major'
17348     ;;
17349   esac
17350   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17351   postinstall_cmds='chmod 555 $lib'
17352   ;;
17353
17354 irix5* | irix6* | nonstopux*)
17355   case $host_os in
17356     nonstopux*) version_type=nonstopux ;;
17357     *)
17358         if test "$lt_cv_prog_gnu_ld" = yes; then
17359                 version_type=linux
17360         else
17361                 version_type=irix
17362         fi ;;
17363   esac
17364   need_lib_prefix=no
17365   need_version=no
17366   soname_spec='${libname}${release}${shared_ext}$major'
17367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17368   case $host_os in
17369   irix5* | nonstopux*)
17370     libsuff= shlibsuff=
17371     ;;
17372   *)
17373     case $LD in # libtool.m4 will add one of these switches to LD
17374     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17375       libsuff= shlibsuff= libmagic=32-bit;;
17376     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17377       libsuff=32 shlibsuff=N32 libmagic=N32;;
17378     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17379       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17380     *) libsuff= shlibsuff= libmagic=never-match;;
17381     esac
17382     ;;
17383   esac
17384   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17385   shlibpath_overrides_runpath=no
17386   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17387   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17388   hardcode_into_libs=yes
17389   ;;
17390
17391 # No shared lib support for Linux oldld, aout, or coff.
17392 linux*oldld* | linux*aout* | linux*coff*)
17393   dynamic_linker=no
17394   ;;
17395
17396 # This must be Linux ELF.
17397 linux*)
17398   version_type=linux
17399   need_lib_prefix=no
17400   need_version=no
17401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402   soname_spec='${libname}${release}${shared_ext}$major'
17403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17404   shlibpath_var=LD_LIBRARY_PATH
17405   shlibpath_overrides_runpath=no
17406   # This implies no fast_install, which is unacceptable.
17407   # Some rework will be needed to allow for fast_install
17408   # before this can be enabled.
17409   hardcode_into_libs=yes
17410
17411   # Append ld.so.conf contents to the search path
17412   if test -f /etc/ld.so.conf; then
17413     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' ' '`
17414     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17415   fi
17416
17417   # We used to test for /lib/ld.so.1 and disable shared libraries on
17418   # powerpc, because MkLinux only supported shared libraries with the
17419   # GNU dynamic linker.  Since this was broken with cross compilers,
17420   # most powerpc-linux boxes support dynamic linking these days and
17421   # people can always --disable-shared, the test was removed, and we
17422   # assume the GNU/Linux dynamic linker is in use.
17423   dynamic_linker='GNU/Linux ld.so'
17424   ;;
17425
17426 knetbsd*-gnu)
17427   version_type=linux
17428   need_lib_prefix=no
17429   need_version=no
17430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17431   soname_spec='${libname}${release}${shared_ext}$major'
17432   shlibpath_var=LD_LIBRARY_PATH
17433   shlibpath_overrides_runpath=no
17434   hardcode_into_libs=yes
17435   dynamic_linker='GNU ld.so'
17436   ;;
17437
17438 netbsd*)
17439   version_type=sunos
17440   need_lib_prefix=no
17441   need_version=no
17442   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17444     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17445     dynamic_linker='NetBSD (a.out) ld.so'
17446   else
17447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17448     soname_spec='${libname}${release}${shared_ext}$major'
17449     dynamic_linker='NetBSD ld.elf_so'
17450   fi
17451   shlibpath_var=LD_LIBRARY_PATH
17452   shlibpath_overrides_runpath=yes
17453   hardcode_into_libs=yes
17454   ;;
17455
17456 newsos6)
17457   version_type=linux
17458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459   shlibpath_var=LD_LIBRARY_PATH
17460   shlibpath_overrides_runpath=yes
17461   ;;
17462
17463 nto-qnx*)
17464   version_type=linux
17465   need_lib_prefix=no
17466   need_version=no
17467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468   soname_spec='${libname}${release}${shared_ext}$major'
17469   shlibpath_var=LD_LIBRARY_PATH
17470   shlibpath_overrides_runpath=yes
17471   ;;
17472
17473 openbsd*)
17474   version_type=sunos
17475   need_lib_prefix=no
17476   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17477   case $host_os in
17478     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17479     *)                         need_version=no  ;;
17480   esac
17481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17483   shlibpath_var=LD_LIBRARY_PATH
17484   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17485     case $host_os in
17486       openbsd2.[89] | openbsd2.[89].*)
17487         shlibpath_overrides_runpath=no
17488         ;;
17489       *)
17490         shlibpath_overrides_runpath=yes
17491         ;;
17492       esac
17493   else
17494     shlibpath_overrides_runpath=yes
17495   fi
17496   ;;
17497
17498 os2*)
17499   libname_spec='$name'
17500   shrext_cmds=".dll"
17501   need_lib_prefix=no
17502   library_names_spec='$libname${shared_ext} $libname.a'
17503   dynamic_linker='OS/2 ld.exe'
17504   shlibpath_var=LIBPATH
17505   ;;
17506
17507 osf3* | osf4* | osf5*)
17508   version_type=osf
17509   need_lib_prefix=no
17510   need_version=no
17511   soname_spec='${libname}${release}${shared_ext}$major'
17512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17513   shlibpath_var=LD_LIBRARY_PATH
17514   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17515   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17516   ;;
17517
17518 sco3.2v5*)
17519   version_type=osf
17520   soname_spec='${libname}${release}${shared_ext}$major'
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522   shlibpath_var=LD_LIBRARY_PATH
17523   ;;
17524
17525 solaris*)
17526   version_type=linux
17527   need_lib_prefix=no
17528   need_version=no
17529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530   soname_spec='${libname}${release}${shared_ext}$major'
17531   shlibpath_var=LD_LIBRARY_PATH
17532   shlibpath_overrides_runpath=yes
17533   hardcode_into_libs=yes
17534   # ldd complains unless libraries are executable
17535   postinstall_cmds='chmod +x $lib'
17536   ;;
17537
17538 sunos4*)
17539   version_type=sunos
17540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17541   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17542   shlibpath_var=LD_LIBRARY_PATH
17543   shlibpath_overrides_runpath=yes
17544   if test "$with_gnu_ld" = yes; then
17545     need_lib_prefix=no
17546   fi
17547   need_version=yes
17548   ;;
17549
17550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17551   version_type=linux
17552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553   soname_spec='${libname}${release}${shared_ext}$major'
17554   shlibpath_var=LD_LIBRARY_PATH
17555   case $host_vendor in
17556     sni)
17557       shlibpath_overrides_runpath=no
17558       need_lib_prefix=no
17559       export_dynamic_flag_spec='${wl}-Blargedynsym'
17560       runpath_var=LD_RUN_PATH
17561       ;;
17562     siemens)
17563       need_lib_prefix=no
17564       ;;
17565     motorola)
17566       need_lib_prefix=no
17567       need_version=no
17568       shlibpath_overrides_runpath=no
17569       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17570       ;;
17571   esac
17572   ;;
17573
17574 sysv4*MP*)
17575   if test -d /usr/nec ;then
17576     version_type=linux
17577     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17578     soname_spec='$libname${shared_ext}.$major'
17579     shlibpath_var=LD_LIBRARY_PATH
17580   fi
17581   ;;
17582
17583 uts4*)
17584   version_type=linux
17585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586   soname_spec='${libname}${release}${shared_ext}$major'
17587   shlibpath_var=LD_LIBRARY_PATH
17588   ;;
17589
17590 *)
17591   dynamic_linker=no
17592   ;;
17593 esac
17594 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17595 echo "${ECHO_T}$dynamic_linker" >&6
17596 test "$dynamic_linker" = no && can_build_shared=no
17597
17598 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17599 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17600 hardcode_action_F77=
17601 if test -n "$hardcode_libdir_flag_spec_F77" || \
17602    test -n "$runpath_var_F77" || \
17603    test "X$hardcode_automatic_F77" = "Xyes" ; then
17604
17605   # We can hardcode non-existant directories.
17606   if test "$hardcode_direct_F77" != no &&
17607      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17608      # have to relink, otherwise we might link with an installed library
17609      # when we should be linking with a yet-to-be-installed one
17610      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17611      test "$hardcode_minus_L_F77" != no; then
17612     # Linking always hardcodes the temporary library directory.
17613     hardcode_action_F77=relink
17614   else
17615     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17616     hardcode_action_F77=immediate
17617   fi
17618 else
17619   # We cannot hardcode anything, or else we can only hardcode existing
17620   # directories.
17621   hardcode_action_F77=unsupported
17622 fi
17623 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17624 echo "${ECHO_T}$hardcode_action_F77" >&6
17625
17626 if test "$hardcode_action_F77" = relink; then
17627   # Fast installation is not supported
17628   enable_fast_install=no
17629 elif test "$shlibpath_overrides_runpath" = yes ||
17630      test "$enable_shared" = no; then
17631   # Fast installation is not necessary
17632   enable_fast_install=needless
17633 fi
17634
17635 striplib=
17636 old_striplib=
17637 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17638 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17639 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17640   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17641   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17642   echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6
17644 else
17645 # FIXME - insert some real tests, host_os isn't really good enough
17646   case $host_os in
17647    darwin*)
17648        if test -n "$STRIP" ; then
17649          striplib="$STRIP -x"
17650          echo "$as_me:$LINENO: result: yes" >&5
17651 echo "${ECHO_T}yes" >&6
17652        else
17653   echo "$as_me:$LINENO: result: no" >&5
17654 echo "${ECHO_T}no" >&6
17655 fi
17656        ;;
17657    *)
17658   echo "$as_me:$LINENO: result: no" >&5
17659 echo "${ECHO_T}no" >&6
17660     ;;
17661   esac
17662 fi
17663
17664
17665
17666 # The else clause should only fire when bootstrapping the
17667 # libtool distribution, otherwise you forgot to ship ltmain.sh
17668 # with your package, and you will get complaints that there are
17669 # no rules to generate ltmain.sh.
17670 if test -f "$ltmain"; then
17671   # See if we are running on zsh, and set the options which allow our commands through
17672   # without removal of \ escapes.
17673   if test -n "${ZSH_VERSION+set}" ; then
17674     setopt NO_GLOB_SUBST
17675   fi
17676   # Now quote all the things that may contain metacharacters while being
17677   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17678   # variables and quote the copies for generation of the libtool script.
17679   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17680     SED SHELL STRIP \
17681     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17682     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17683     deplibs_check_method reload_flag reload_cmds need_locks \
17684     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17685     lt_cv_sys_global_symbol_to_c_name_address \
17686     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17687     old_postinstall_cmds old_postuninstall_cmds \
17688     compiler_F77 \
17689     CC_F77 \
17690     LD_F77 \
17691     lt_prog_compiler_wl_F77 \
17692     lt_prog_compiler_pic_F77 \
17693     lt_prog_compiler_static_F77 \
17694     lt_prog_compiler_no_builtin_flag_F77 \
17695     export_dynamic_flag_spec_F77 \
17696     thread_safe_flag_spec_F77 \
17697     whole_archive_flag_spec_F77 \
17698     enable_shared_with_static_runtimes_F77 \
17699     old_archive_cmds_F77 \
17700     old_archive_from_new_cmds_F77 \
17701     predep_objects_F77 \
17702     postdep_objects_F77 \
17703     predeps_F77 \
17704     postdeps_F77 \
17705     compiler_lib_search_path_F77 \
17706     archive_cmds_F77 \
17707     archive_expsym_cmds_F77 \
17708     postinstall_cmds_F77 \
17709     postuninstall_cmds_F77 \
17710     old_archive_from_expsyms_cmds_F77 \
17711     allow_undefined_flag_F77 \
17712     no_undefined_flag_F77 \
17713     export_symbols_cmds_F77 \
17714     hardcode_libdir_flag_spec_F77 \
17715     hardcode_libdir_flag_spec_ld_F77 \
17716     hardcode_libdir_separator_F77 \
17717     hardcode_automatic_F77 \
17718     module_cmds_F77 \
17719     module_expsym_cmds_F77 \
17720     lt_cv_prog_compiler_c_o_F77 \
17721     exclude_expsyms_F77 \
17722     include_expsyms_F77; do
17723
17724     case $var in
17725     old_archive_cmds_F77 | \
17726     old_archive_from_new_cmds_F77 | \
17727     archive_cmds_F77 | \
17728     archive_expsym_cmds_F77 | \
17729     module_cmds_F77 | \
17730     module_expsym_cmds_F77 | \
17731     old_archive_from_expsyms_cmds_F77 | \
17732     export_symbols_cmds_F77 | \
17733     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17734     postinstall_cmds | postuninstall_cmds | \
17735     old_postinstall_cmds | old_postuninstall_cmds | \
17736     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17737       # Double-quote double-evaled strings.
17738       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17739       ;;
17740     *)
17741       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17742       ;;
17743     esac
17744   done
17745
17746   case $lt_echo in
17747   *'\$0 --fallback-echo"')
17748     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17749     ;;
17750   esac
17751
17752 cfgfile="$ofile"
17753
17754   cat <<__EOF__ >> "$cfgfile"
17755 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17756
17757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17758
17759 # Shell to use when invoking shell scripts.
17760 SHELL=$lt_SHELL
17761
17762 # Whether or not to build shared libraries.
17763 build_libtool_libs=$enable_shared
17764
17765 # Whether or not to build static libraries.
17766 build_old_libs=$enable_static
17767
17768 # Whether or not to add -lc for building shared libraries.
17769 build_libtool_need_lc=$archive_cmds_need_lc_F77
17770
17771 # Whether or not to disallow shared libs when runtime libs are static
17772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17773
17774 # Whether or not to optimize for fast installation.
17775 fast_install=$enable_fast_install
17776
17777 # The host system.
17778 host_alias=$host_alias
17779 host=$host
17780 host_os=$host_os
17781
17782 # The build system.
17783 build_alias=$build_alias
17784 build=$build
17785 build_os=$build_os
17786
17787 # An echo program that does not interpret backslashes.
17788 echo=$lt_echo
17789
17790 # The archiver.
17791 AR=$lt_AR
17792 AR_FLAGS=$lt_AR_FLAGS
17793
17794 # A C compiler.
17795 LTCC=$lt_LTCC
17796
17797 # A language-specific compiler.
17798 CC=$lt_compiler_F77
17799
17800 # Is the compiler the GNU C compiler?
17801 with_gcc=$GCC_F77
17802
17803 # An ERE matcher.
17804 EGREP=$lt_EGREP
17805
17806 # The linker used to build libraries.
17807 LD=$lt_LD_F77
17808
17809 # Whether we need hard or soft links.
17810 LN_S=$lt_LN_S
17811
17812 # A BSD-compatible nm program.
17813 NM=$lt_NM
17814
17815 # A symbol stripping program
17816 STRIP=$lt_STRIP
17817
17818 # Used to examine libraries when file_magic_cmd begins "file"
17819 MAGIC_CMD=$MAGIC_CMD
17820
17821 # Used on cygwin: DLL creation program.
17822 DLLTOOL="$DLLTOOL"
17823
17824 # Used on cygwin: object dumper.
17825 OBJDUMP="$OBJDUMP"
17826
17827 # Used on cygwin: assembler.
17828 AS="$AS"
17829
17830 # The name of the directory that contains temporary libtool files.
17831 objdir=$objdir
17832
17833 # How to create reloadable object files.
17834 reload_flag=$lt_reload_flag
17835 reload_cmds=$lt_reload_cmds
17836
17837 # How to pass a linker flag through the compiler.
17838 wl=$lt_lt_prog_compiler_wl_F77
17839
17840 # Object file suffix (normally "o").
17841 objext="$ac_objext"
17842
17843 # Old archive suffix (normally "a").
17844 libext="$libext"
17845
17846 # Shared library suffix (normally ".so").
17847 shrext_cmds='$shrext_cmds'
17848
17849 # Executable file suffix (normally "").
17850 exeext="$exeext"
17851
17852 # Additional compiler flags for building library objects.
17853 pic_flag=$lt_lt_prog_compiler_pic_F77
17854 pic_mode=$pic_mode
17855
17856 # What is the maximum length of a command?
17857 max_cmd_len=$lt_cv_sys_max_cmd_len
17858
17859 # Does compiler simultaneously support -c and -o options?
17860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17861
17862 # Must we lock files when doing compilation?
17863 need_locks=$lt_need_locks
17864
17865 # Do we need the lib prefix for modules?
17866 need_lib_prefix=$need_lib_prefix
17867
17868 # Do we need a version for libraries?
17869 need_version=$need_version
17870
17871 # Whether dlopen is supported.
17872 dlopen_support=$enable_dlopen
17873
17874 # Whether dlopen of programs is supported.
17875 dlopen_self=$enable_dlopen_self
17876
17877 # Whether dlopen of statically linked programs is supported.
17878 dlopen_self_static=$enable_dlopen_self_static
17879
17880 # Compiler flag to prevent dynamic linking.
17881 link_static_flag=$lt_lt_prog_compiler_static_F77
17882
17883 # Compiler flag to turn off builtin functions.
17884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17885
17886 # Compiler flag to allow reflexive dlopens.
17887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17888
17889 # Compiler flag to generate shared objects directly from archives.
17890 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17891
17892 # Compiler flag to generate thread-safe objects.
17893 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17894
17895 # Library versioning type.
17896 version_type=$version_type
17897
17898 # Format of library name prefix.
17899 libname_spec=$lt_libname_spec
17900
17901 # List of archive names.  First name is the real one, the rest are links.
17902 # The last name is the one that the linker finds with -lNAME.
17903 library_names_spec=$lt_library_names_spec
17904
17905 # The coded name of the library, if different from the real name.
17906 soname_spec=$lt_soname_spec
17907
17908 # Commands used to build and install an old-style archive.
17909 RANLIB=$lt_RANLIB
17910 old_archive_cmds=$lt_old_archive_cmds_F77
17911 old_postinstall_cmds=$lt_old_postinstall_cmds
17912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17913
17914 # Create an old-style archive from a shared archive.
17915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17916
17917 # Create a temporary old-style archive to link instead of a shared archive.
17918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17919
17920 # Commands used to build and install a shared archive.
17921 archive_cmds=$lt_archive_cmds_F77
17922 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17923 postinstall_cmds=$lt_postinstall_cmds
17924 postuninstall_cmds=$lt_postuninstall_cmds
17925
17926 # Commands used to build a loadable module (assumed same as above if empty)
17927 module_cmds=$lt_module_cmds_F77
17928 module_expsym_cmds=$lt_module_expsym_cmds_F77
17929
17930 # Commands to strip libraries.
17931 old_striplib=$lt_old_striplib
17932 striplib=$lt_striplib
17933
17934 # Dependencies to place before the objects being linked to create a
17935 # shared library.
17936 predep_objects=$lt_predep_objects_F77
17937
17938 # Dependencies to place after the objects being linked to create a
17939 # shared library.
17940 postdep_objects=$lt_postdep_objects_F77
17941
17942 # Dependencies to place before the objects being linked to create a
17943 # shared library.
17944 predeps=$lt_predeps_F77
17945
17946 # Dependencies to place after the objects being linked to create a
17947 # shared library.
17948 postdeps=$lt_postdeps_F77
17949
17950 # The library search path used internally by the compiler when linking
17951 # a shared library.
17952 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17953
17954 # Method to check whether dependent libraries are shared objects.
17955 deplibs_check_method=$lt_deplibs_check_method
17956
17957 # Command to use when deplibs_check_method == file_magic.
17958 file_magic_cmd=$lt_file_magic_cmd
17959
17960 # Flag that allows shared libraries with undefined symbols to be built.
17961 allow_undefined_flag=$lt_allow_undefined_flag_F77
17962
17963 # Flag that forces no undefined symbols.
17964 no_undefined_flag=$lt_no_undefined_flag_F77
17965
17966 # Commands used to finish a libtool library installation in a directory.
17967 finish_cmds=$lt_finish_cmds
17968
17969 # Same as above, but a single script fragment to be evaled but not shown.
17970 finish_eval=$lt_finish_eval
17971
17972 # Take the output of nm and produce a listing of raw symbols and C names.
17973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17974
17975 # Transform the output of nm in a proper C declaration
17976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17977
17978 # Transform the output of nm in a C name address pair
17979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17980
17981 # This is the shared library runtime path variable.
17982 runpath_var=$runpath_var
17983
17984 # This is the shared library path variable.
17985 shlibpath_var=$shlibpath_var
17986
17987 # Is shlibpath searched before the hard-coded library search path?
17988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17989
17990 # How to hardcode a shared library path into an executable.
17991 hardcode_action=$hardcode_action_F77
17992
17993 # Whether we should hardcode library paths into libraries.
17994 hardcode_into_libs=$hardcode_into_libs
17995
17996 # Flag to hardcode \$libdir into a binary during linking.
17997 # This must work even if \$libdir does not exist.
17998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17999
18000 # If ld is used when linking, flag to hardcode \$libdir into
18001 # a binary during linking. This must work even if \$libdir does
18002 # not exist.
18003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18004
18005 # Whether we need a single -rpath flag with a separated argument.
18006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18007
18008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18009 # resulting binary.
18010 hardcode_direct=$hardcode_direct_F77
18011
18012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18013 # resulting binary.
18014 hardcode_minus_L=$hardcode_minus_L_F77
18015
18016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18017 # the resulting binary.
18018 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18019
18020 # Set to yes if building a shared library automatically hardcodes DIR into the library
18021 # and all subsequent libraries and executables linked against it.
18022 hardcode_automatic=$hardcode_automatic_F77
18023
18024 # Variables whose values should be saved in libtool wrapper scripts and
18025 # restored at relink time.
18026 variables_saved_for_relink="$variables_saved_for_relink"
18027
18028 # Whether libtool must link a program against all its dependency libraries.
18029 link_all_deplibs=$link_all_deplibs_F77
18030
18031 # Compile-time system search path for libraries
18032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18033
18034 # Run-time system search path for libraries
18035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18036
18037 # Fix the shell variable \$srcfile for the compiler.
18038 fix_srcfile_path="$fix_srcfile_path_F77"
18039
18040 # Set to yes if exported symbols are required.
18041 always_export_symbols=$always_export_symbols_F77
18042
18043 # The commands to list exported symbols.
18044 export_symbols_cmds=$lt_export_symbols_cmds_F77
18045
18046 # The commands to extract the exported symbol list from a shared archive.
18047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18048
18049 # Symbols that should not be listed in the preloaded symbols.
18050 exclude_expsyms=$lt_exclude_expsyms_F77
18051
18052 # Symbols that must always be exported.
18053 include_expsyms=$lt_include_expsyms_F77
18054
18055 # ### END LIBTOOL TAG CONFIG: $tagname
18056
18057 __EOF__
18058
18059
18060 else
18061   # If there is no Makefile yet, we rely on a make rule to execute
18062   # `config.status --recheck' to rerun these tests and create the
18063   # libtool script then.
18064   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18065   if test -f "$ltmain_in"; then
18066     test -f Makefile && make "$ltmain"
18067   fi
18068 fi
18069
18070
18071 ac_ext=c
18072 ac_cpp='$CPP $CPPFLAGS'
18073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18076
18077 CC="$lt_save_CC"
18078
18079         else
18080           tagname=""
18081         fi
18082         ;;
18083
18084       GCJ)
18085         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18086
18087
18088
18089 # Source file extension for Java test sources.
18090 ac_ext=java
18091
18092 # Object file extension for compiled Java test sources.
18093 objext=o
18094 objext_GCJ=$objext
18095
18096 # Code to be used in simple compile tests
18097 lt_simple_compile_test_code="class foo {}\n"
18098
18099 # Code to be used in simple link tests
18100 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18101
18102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18103
18104 # If no C compiler was specified, use CC.
18105 LTCC=${LTCC-"$CC"}
18106
18107 # Allow CC to be a program name with arguments.
18108 compiler=$CC
18109
18110
18111 # save warnings/boilerplate of simple test code
18112 ac_outfile=conftest.$ac_objext
18113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18115 _lt_compiler_boilerplate=`cat conftest.err`
18116 $rm conftest*
18117
18118 ac_outfile=conftest.$ac_objext
18119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18121 _lt_linker_boilerplate=`cat conftest.err`
18122 $rm conftest*
18123
18124
18125 # Allow CC to be a program name with arguments.
18126 lt_save_CC="$CC"
18127 CC=${GCJ-"gcj"}
18128 compiler=$CC
18129 compiler_GCJ=$CC
18130 for cc_temp in $compiler""; do
18131   case $cc_temp in
18132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18134     \-*) ;;
18135     *) break;;
18136   esac
18137 done
18138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18139
18140
18141 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18142 archive_cmds_need_lc_GCJ=no
18143
18144 old_archive_cmds_GCJ=$old_archive_cmds
18145
18146
18147 lt_prog_compiler_no_builtin_flag_GCJ=
18148
18149 if test "$GCC" = yes; then
18150   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18151
18152
18153 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18154 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18155 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18156   echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158   lt_cv_prog_compiler_rtti_exceptions=no
18159   ac_outfile=conftest.$ac_objext
18160    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18161    lt_compiler_flag="-fno-rtti -fno-exceptions"
18162    # Insert the option either (1) after the last *FLAGS variable, or
18163    # (2) before a word containing "conftest.", or (3) at the end.
18164    # Note that $ac_compile itself does not contain backslashes and begins
18165    # with a dollar sign (not a hyphen), so the echo should work correctly.
18166    # The option is referenced via a variable to avoid confusing sed.
18167    lt_compile=`echo "$ac_compile" | $SED \
18168    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18170    -e 's:$: $lt_compiler_flag:'`
18171    (eval echo "\"\$as_me:18171: $lt_compile\"" >&5)
18172    (eval "$lt_compile" 2>conftest.err)
18173    ac_status=$?
18174    cat conftest.err >&5
18175    echo "$as_me:18175: \$? = $ac_status" >&5
18176    if (exit $ac_status) && test -s "$ac_outfile"; then
18177      # The compiler can only warn and ignore the option if not recognized
18178      # So say no if there are warnings other than the usual output.
18179      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18180      $SED '/^$/d' conftest.err >conftest.er2
18181      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18182        lt_cv_prog_compiler_rtti_exceptions=yes
18183      fi
18184    fi
18185    $rm conftest*
18186
18187 fi
18188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18189 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18190
18191 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18192     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18193 else
18194     :
18195 fi
18196
18197 fi
18198
18199 lt_prog_compiler_wl_GCJ=
18200 lt_prog_compiler_pic_GCJ=
18201 lt_prog_compiler_static_GCJ=
18202
18203 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18205
18206   if test "$GCC" = yes; then
18207     lt_prog_compiler_wl_GCJ='-Wl,'
18208     lt_prog_compiler_static_GCJ='-static'
18209
18210     case $host_os in
18211       aix*)
18212       # All AIX code is PIC.
18213       if test "$host_cpu" = ia64; then
18214         # AIX 5 now supports IA64 processor
18215         lt_prog_compiler_static_GCJ='-Bstatic'
18216       fi
18217       ;;
18218
18219     amigaos*)
18220       # FIXME: we need at least 68020 code to build shared libraries, but
18221       # adding the `-m68020' flag to GCC prevents building anything better,
18222       # like `-m68040'.
18223       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18224       ;;
18225
18226     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18227       # PIC is the default for these OSes.
18228       ;;
18229
18230     mingw* | pw32* | os2*)
18231       # This hack is so that the source file can tell whether it is being
18232       # built for inclusion in a dll (and should export symbols for example).
18233       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18234       ;;
18235
18236     darwin* | rhapsody*)
18237       # PIC is the default on this platform
18238       # Common symbols not allowed in MH_DYLIB files
18239       lt_prog_compiler_pic_GCJ='-fno-common'
18240       ;;
18241
18242     msdosdjgpp*)
18243       # Just because we use GCC doesn't mean we suddenly get shared libraries
18244       # on systems that don't support them.
18245       lt_prog_compiler_can_build_shared_GCJ=no
18246       enable_shared=no
18247       ;;
18248
18249     sysv4*MP*)
18250       if test -d /usr/nec; then
18251         lt_prog_compiler_pic_GCJ=-Kconform_pic
18252       fi
18253       ;;
18254
18255     hpux*)
18256       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18257       # not for PA HP-UX.
18258       case "$host_cpu" in
18259       hppa*64*|ia64*)
18260         # +Z the default
18261         ;;
18262       *)
18263         lt_prog_compiler_pic_GCJ='-fPIC'
18264         ;;
18265       esac
18266       ;;
18267
18268     *)
18269       lt_prog_compiler_pic_GCJ='-fPIC'
18270       ;;
18271     esac
18272   else
18273     # PORTME Check for flag to pass linker flags through the system compiler.
18274     case $host_os in
18275     aix*)
18276       lt_prog_compiler_wl_GCJ='-Wl,'
18277       if test "$host_cpu" = ia64; then
18278         # AIX 5 now supports IA64 processor
18279         lt_prog_compiler_static_GCJ='-Bstatic'
18280       else
18281         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18282       fi
18283       ;;
18284       darwin*)
18285         # PIC is the default on this platform
18286         # Common symbols not allowed in MH_DYLIB files
18287        case $cc_basename in
18288          xlc*)
18289          lt_prog_compiler_pic_GCJ='-qnocommon'
18290          lt_prog_compiler_wl_GCJ='-Wl,'
18291          ;;
18292        esac
18293        ;;
18294
18295     mingw* | pw32* | os2*)
18296       # This hack is so that the source file can tell whether it is being
18297       # built for inclusion in a dll (and should export symbols for example).
18298       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18299       ;;
18300
18301     hpux9* | hpux10* | hpux11*)
18302       lt_prog_compiler_wl_GCJ='-Wl,'
18303       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18304       # not for PA HP-UX.
18305       case "$host_cpu" in
18306       hppa*64*|ia64*)
18307         # +Z the default
18308         ;;
18309       *)
18310         lt_prog_compiler_pic_GCJ='+Z'
18311         ;;
18312       esac
18313       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18314       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18315       ;;
18316
18317     irix5* | irix6* | nonstopux*)
18318       lt_prog_compiler_wl_GCJ='-Wl,'
18319       # PIC (with -KPIC) is the default.
18320       lt_prog_compiler_static_GCJ='-non_shared'
18321       ;;
18322
18323     newsos6)
18324       lt_prog_compiler_pic_GCJ='-KPIC'
18325       lt_prog_compiler_static_GCJ='-Bstatic'
18326       ;;
18327
18328     linux*)
18329       case $cc_basename in
18330       icc* | ecc*)
18331         lt_prog_compiler_wl_GCJ='-Wl,'
18332         lt_prog_compiler_pic_GCJ='-KPIC'
18333         lt_prog_compiler_static_GCJ='-static'
18334         ;;
18335       pgcc* | pgf77* | pgf90*)
18336         # Portland Group compilers (*not* the Pentium gcc compiler,
18337         # which looks to be a dead project)
18338         lt_prog_compiler_wl_GCJ='-Wl,'
18339         lt_prog_compiler_pic_GCJ='-fpic'
18340         lt_prog_compiler_static_GCJ='-static'
18341         ;;
18342       ccc*)
18343         lt_prog_compiler_wl_GCJ='-Wl,'
18344         # All Alpha code is PIC.
18345         lt_prog_compiler_static_GCJ='-non_shared'
18346         ;;
18347       esac
18348       ;;
18349
18350     osf3* | osf4* | osf5*)
18351       lt_prog_compiler_wl_GCJ='-Wl,'
18352       # All OSF/1 code is PIC.
18353       lt_prog_compiler_static_GCJ='-non_shared'
18354       ;;
18355
18356     sco3.2v5*)
18357       lt_prog_compiler_pic_GCJ='-Kpic'
18358       lt_prog_compiler_static_GCJ='-dn'
18359       ;;
18360
18361     solaris*)
18362       lt_prog_compiler_pic_GCJ='-KPIC'
18363       lt_prog_compiler_static_GCJ='-Bstatic'
18364       case $cc_basename in
18365       f77* | f90* | f95*)
18366         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18367       *)
18368         lt_prog_compiler_wl_GCJ='-Wl,';;
18369       esac
18370       ;;
18371
18372     sunos4*)
18373       lt_prog_compiler_wl_GCJ='-Qoption ld '
18374       lt_prog_compiler_pic_GCJ='-PIC'
18375       lt_prog_compiler_static_GCJ='-Bstatic'
18376       ;;
18377
18378     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18379       lt_prog_compiler_wl_GCJ='-Wl,'
18380       lt_prog_compiler_pic_GCJ='-KPIC'
18381       lt_prog_compiler_static_GCJ='-Bstatic'
18382       ;;
18383
18384     sysv4*MP*)
18385       if test -d /usr/nec ;then
18386         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18387         lt_prog_compiler_static_GCJ='-Bstatic'
18388       fi
18389       ;;
18390
18391     unicos*)
18392       lt_prog_compiler_wl_GCJ='-Wl,'
18393       lt_prog_compiler_can_build_shared_GCJ=no
18394       ;;
18395
18396     uts4*)
18397       lt_prog_compiler_pic_GCJ='-pic'
18398       lt_prog_compiler_static_GCJ='-Bstatic'
18399       ;;
18400
18401     *)
18402       lt_prog_compiler_can_build_shared_GCJ=no
18403       ;;
18404     esac
18405   fi
18406
18407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18408 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18409
18410 #
18411 # Check to make sure the PIC flag actually works.
18412 #
18413 if test -n "$lt_prog_compiler_pic_GCJ"; then
18414
18415 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18416 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18417 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   lt_prog_compiler_pic_works_GCJ=no
18421   ac_outfile=conftest.$ac_objext
18422    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18423    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18424    # Insert the option either (1) after the last *FLAGS variable, or
18425    # (2) before a word containing "conftest.", or (3) at the end.
18426    # Note that $ac_compile itself does not contain backslashes and begins
18427    # with a dollar sign (not a hyphen), so the echo should work correctly.
18428    # The option is referenced via a variable to avoid confusing sed.
18429    lt_compile=`echo "$ac_compile" | $SED \
18430    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18432    -e 's:$: $lt_compiler_flag:'`
18433    (eval echo "\"\$as_me:18433: $lt_compile\"" >&5)
18434    (eval "$lt_compile" 2>conftest.err)
18435    ac_status=$?
18436    cat conftest.err >&5
18437    echo "$as_me:18437: \$? = $ac_status" >&5
18438    if (exit $ac_status) && test -s "$ac_outfile"; then
18439      # The compiler can only warn and ignore the option if not recognized
18440      # So say no if there are warnings other than the usual output.
18441      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18442      $SED '/^$/d' conftest.err >conftest.er2
18443      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18444        lt_prog_compiler_pic_works_GCJ=yes
18445      fi
18446    fi
18447    $rm conftest*
18448
18449 fi
18450 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18451 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18452
18453 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18454     case $lt_prog_compiler_pic_GCJ in
18455      "" | " "*) ;;
18456      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18457      esac
18458 else
18459     lt_prog_compiler_pic_GCJ=
18460      lt_prog_compiler_can_build_shared_GCJ=no
18461 fi
18462
18463 fi
18464 case "$host_os" in
18465   # For platforms which do not support PIC, -DPIC is meaningless:
18466   *djgpp*)
18467     lt_prog_compiler_pic_GCJ=
18468     ;;
18469   *)
18470     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18471     ;;
18472 esac
18473
18474 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18476 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   lt_cv_prog_compiler_c_o_GCJ=no
18480    $rm -r conftest 2>/dev/null
18481    mkdir conftest
18482    cd conftest
18483    mkdir out
18484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18485
18486    lt_compiler_flag="-o out/conftest2.$ac_objext"
18487    # Insert the option either (1) after the last *FLAGS variable, or
18488    # (2) before a word containing "conftest.", or (3) at the end.
18489    # Note that $ac_compile itself does not contain backslashes and begins
18490    # with a dollar sign (not a hyphen), so the echo should work correctly.
18491    lt_compile=`echo "$ac_compile" | $SED \
18492    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18494    -e 's:$: $lt_compiler_flag:'`
18495    (eval echo "\"\$as_me:18495: $lt_compile\"" >&5)
18496    (eval "$lt_compile" 2>out/conftest.err)
18497    ac_status=$?
18498    cat out/conftest.err >&5
18499    echo "$as_me:18499: \$? = $ac_status" >&5
18500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18501    then
18502      # The compiler can only warn and ignore the option if not recognized
18503      # So say no if there are warnings
18504      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18505      $SED '/^$/d' out/conftest.err >out/conftest.er2
18506      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18507        lt_cv_prog_compiler_c_o_GCJ=yes
18508      fi
18509    fi
18510    chmod u+w .
18511    $rm conftest*
18512    # SGI C++ compiler will create directory out/ii_files/ for
18513    # template instantiation
18514    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18515    $rm out/* && rmdir out
18516    cd ..
18517    rmdir conftest
18518    $rm conftest*
18519
18520 fi
18521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18523
18524
18525 hard_links="nottested"
18526 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18527   # do not overwrite the value of need_locks provided by the user
18528   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18530   hard_links=yes
18531   $rm conftest*
18532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18533   touch conftest.a
18534   ln conftest.a conftest.b 2>&5 || hard_links=no
18535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18536   echo "$as_me:$LINENO: result: $hard_links" >&5
18537 echo "${ECHO_T}$hard_links" >&6
18538   if test "$hard_links" = no; then
18539     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18541     need_locks=warn
18542   fi
18543 else
18544   need_locks=no
18545 fi
18546
18547 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18549
18550   runpath_var=
18551   allow_undefined_flag_GCJ=
18552   enable_shared_with_static_runtimes_GCJ=no
18553   archive_cmds_GCJ=
18554   archive_expsym_cmds_GCJ=
18555   old_archive_From_new_cmds_GCJ=
18556   old_archive_from_expsyms_cmds_GCJ=
18557   export_dynamic_flag_spec_GCJ=
18558   whole_archive_flag_spec_GCJ=
18559   thread_safe_flag_spec_GCJ=
18560   hardcode_libdir_flag_spec_GCJ=
18561   hardcode_libdir_flag_spec_ld_GCJ=
18562   hardcode_libdir_separator_GCJ=
18563   hardcode_direct_GCJ=no
18564   hardcode_minus_L_GCJ=no
18565   hardcode_shlibpath_var_GCJ=unsupported
18566   link_all_deplibs_GCJ=unknown
18567   hardcode_automatic_GCJ=no
18568   module_cmds_GCJ=
18569   module_expsym_cmds_GCJ=
18570   always_export_symbols_GCJ=no
18571   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18572   # include_expsyms should be a list of space-separated symbols to be *always*
18573   # included in the symbol list
18574   include_expsyms_GCJ=
18575   # exclude_expsyms can be an extended regexp of symbols to exclude
18576   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18577   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18578   # as well as any symbol that contains `d'.
18579   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18581   # platforms (ab)use it in PIC code, but their linkers get confused if
18582   # the symbol is explicitly referenced.  Since portable code cannot
18583   # rely on this symbol name, it's probably fine to never include it in
18584   # preloaded symbol tables.
18585   extract_expsyms_cmds=
18586   # Just being paranoid about ensuring that cc_basename is set.
18587   for cc_temp in $compiler""; do
18588   case $cc_temp in
18589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18591     \-*) ;;
18592     *) break;;
18593   esac
18594 done
18595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18596
18597   case $host_os in
18598   cygwin* | mingw* | pw32*)
18599     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18600     # When not using gcc, we currently assume that we are using
18601     # Microsoft Visual C++.
18602     if test "$GCC" != yes; then
18603       with_gnu_ld=no
18604     fi
18605     ;;
18606   openbsd*)
18607     with_gnu_ld=no
18608     ;;
18609   esac
18610
18611   ld_shlibs_GCJ=yes
18612   if test "$with_gnu_ld" = yes; then
18613     # If archive_cmds runs LD, not CC, wlarc should be empty
18614     wlarc='${wl}'
18615
18616     # Set some defaults for GNU ld with shared library support. These
18617     # are reset later if shared libraries are not supported. Putting them
18618     # here allows them to be overridden if necessary.
18619     runpath_var=LD_RUN_PATH
18620     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18621     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18622     # ancient GNU ld didn't support --whole-archive et. al.
18623     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18624         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18625       else
18626         whole_archive_flag_spec_GCJ=
18627     fi
18628     supports_anon_versioning=no
18629     case `$LD -v 2>/dev/null` in
18630       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18631       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18632       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18633       *\ 2.11.*) ;; # other 2.11 versions
18634       *) supports_anon_versioning=yes ;;
18635     esac
18636
18637     # See if GNU ld supports shared libraries.
18638     case $host_os in
18639     aix3* | aix4* | aix5*)
18640       # On AIX/PPC, the GNU linker is very broken
18641       if test "$host_cpu" != ia64; then
18642         ld_shlibs_GCJ=no
18643         cat <<EOF 1>&2
18644
18645 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18646 *** to be unable to reliably create shared libraries on AIX.
18647 *** Therefore, libtool is disabling shared libraries support.  If you
18648 *** really care for shared libraries, you may want to modify your PATH
18649 *** so that a non-GNU linker is found, and then restart.
18650
18651 EOF
18652       fi
18653       ;;
18654
18655     amigaos*)
18656       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)'
18657       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18658       hardcode_minus_L_GCJ=yes
18659
18660       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18661       # that the semantics of dynamic libraries on AmigaOS, at least up
18662       # to version 4, is to share data among multiple programs linked
18663       # with the same dynamic library.  Since this doesn't match the
18664       # behavior of shared libraries on other platforms, we can't use
18665       # them.
18666       ld_shlibs_GCJ=no
18667       ;;
18668
18669     beos*)
18670       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18671         allow_undefined_flag_GCJ=unsupported
18672         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18673         # support --undefined.  This deserves some investigation.  FIXME
18674         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18675       else
18676         ld_shlibs_GCJ=no
18677       fi
18678       ;;
18679
18680     cygwin* | mingw* | pw32*)
18681       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18682       # as there is no search path for DLLs.
18683       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18684       allow_undefined_flag_GCJ=unsupported
18685       always_export_symbols_GCJ=no
18686       enable_shared_with_static_runtimes_GCJ=yes
18687       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18688
18689       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18690         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18691         # If the export-symbols file already is a .def file (1st line
18692         # is EXPORTS), use it as is; otherwise, prepend...
18693         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18694           cp $export_symbols $output_objdir/$soname.def;
18695         else
18696           echo EXPORTS > $output_objdir/$soname.def;
18697           cat $export_symbols >> $output_objdir/$soname.def;
18698         fi~
18699         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18700       else
18701         ld_shlibs_GCJ=no
18702       fi
18703       ;;
18704
18705     linux*)
18706       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18707         tmp_addflag=
18708         case $cc_basename,$host_cpu in
18709         pgcc*)                          # Portland Group C compiler
18710           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'
18711           tmp_addflag=' $pic_flag'
18712           ;;
18713         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18714           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'
18715           tmp_addflag=' $pic_flag -Mnomain' ;;
18716         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18717           tmp_addflag=' -i_dynamic' ;;
18718         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18719           tmp_addflag=' -i_dynamic -nofor_main' ;;
18720         ifc* | ifort*)                  # Intel Fortran compiler
18721           tmp_addflag=' -nofor_main' ;;
18722         esac
18723         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18724
18725         if test $supports_anon_versioning = yes; then
18726           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18727   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18728   $echo "local: *; };" >> $output_objdir/$libname.ver~
18729           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18730         fi
18731       else
18732         ld_shlibs_GCJ=no
18733       fi
18734       ;;
18735
18736     netbsd*)
18737       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18738         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18739         wlarc=
18740       else
18741         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18742         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18743       fi
18744       ;;
18745
18746     solaris* | sysv5*)
18747       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18748         ld_shlibs_GCJ=no
18749         cat <<EOF 1>&2
18750
18751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18752 *** create shared libraries on Solaris systems.  Therefore, libtool
18753 *** is disabling shared libraries support.  We urge you to upgrade GNU
18754 *** binutils to release 2.9.1 or newer.  Another option is to modify
18755 *** your PATH or compiler configuration so that the native linker is
18756 *** used, and then restart.
18757
18758 EOF
18759       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18760         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18761         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18762       else
18763         ld_shlibs_GCJ=no
18764       fi
18765       ;;
18766
18767     sunos4*)
18768       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18769       wlarc=
18770       hardcode_direct_GCJ=yes
18771       hardcode_shlibpath_var_GCJ=no
18772       ;;
18773
18774     *)
18775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18776         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18777         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18778       else
18779         ld_shlibs_GCJ=no
18780       fi
18781       ;;
18782     esac
18783
18784     if test "$ld_shlibs_GCJ" = no; then
18785       runpath_var=
18786       hardcode_libdir_flag_spec_GCJ=
18787       export_dynamic_flag_spec_GCJ=
18788       whole_archive_flag_spec_GCJ=
18789     fi
18790   else
18791     # PORTME fill in a description of your system's linker (not GNU ld)
18792     case $host_os in
18793     aix3*)
18794       allow_undefined_flag_GCJ=unsupported
18795       always_export_symbols_GCJ=yes
18796       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'
18797       # Note: this linker hardcodes the directories in LIBPATH if there
18798       # are no directories specified by -L.
18799       hardcode_minus_L_GCJ=yes
18800       if test "$GCC" = yes && test -z "$link_static_flag"; then
18801         # Neither direct hardcoding nor static linking is supported with a
18802         # broken collect2.
18803         hardcode_direct_GCJ=unsupported
18804       fi
18805       ;;
18806
18807     aix4* | aix5*)
18808       if test "$host_cpu" = ia64; then
18809         # On IA64, the linker does run time linking by default, so we don't
18810         # have to do anything special.
18811         aix_use_runtimelinking=no
18812         exp_sym_flag='-Bexport'
18813         no_entry_flag=""
18814       else
18815         # If we're using GNU nm, then we don't want the "-C" option.
18816         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18817         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18818           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'
18819         else
18820           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'
18821         fi
18822         aix_use_runtimelinking=no
18823
18824         # Test if we are trying to use run time linking or normal
18825         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18826         # need to do runtime linking.
18827         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18828           for ld_flag in $LDFLAGS; do
18829           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18830             aix_use_runtimelinking=yes
18831             break
18832           fi
18833           done
18834         esac
18835
18836         exp_sym_flag='-bexport'
18837         no_entry_flag='-bnoentry'
18838       fi
18839
18840       # When large executables or shared objects are built, AIX ld can
18841       # have problems creating the table of contents.  If linking a library
18842       # or program results in "error TOC overflow" add -mminimal-toc to
18843       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18844       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18845
18846       archive_cmds_GCJ=''
18847       hardcode_direct_GCJ=yes
18848       hardcode_libdir_separator_GCJ=':'
18849       link_all_deplibs_GCJ=yes
18850
18851       if test "$GCC" = yes; then
18852         case $host_os in aix4.[012]|aix4.[012].*)
18853         # We only want to do this on AIX 4.2 and lower, the check
18854         # below for broken collect2 doesn't work under 4.3+
18855           collect2name=`${CC} -print-prog-name=collect2`
18856           if test -f "$collect2name" && \
18857            strings "$collect2name" | grep resolve_lib_name >/dev/null
18858           then
18859           # We have reworked collect2
18860           hardcode_direct_GCJ=yes
18861           else
18862           # We have old collect2
18863           hardcode_direct_GCJ=unsupported
18864           # It fails to find uninstalled libraries when the uninstalled
18865           # path is not listed in the libpath.  Setting hardcode_minus_L
18866           # to unsupported forces relinking
18867           hardcode_minus_L_GCJ=yes
18868           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18869           hardcode_libdir_separator_GCJ=
18870           fi
18871         esac
18872         shared_flag='-shared'
18873         if test "$aix_use_runtimelinking" = yes; then
18874           shared_flag="$shared_flag "'${wl}-G'
18875         fi
18876       else
18877         # not using gcc
18878         if test "$host_cpu" = ia64; then
18879         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18880         # chokes on -Wl,-G. The following line is correct:
18881           shared_flag='-G'
18882         else
18883         if test "$aix_use_runtimelinking" = yes; then
18884             shared_flag='${wl}-G'
18885           else
18886             shared_flag='${wl}-bM:SRE'
18887         fi
18888         fi
18889       fi
18890
18891       # It seems that -bexpall does not export symbols beginning with
18892       # underscore (_), so it is better to generate a list of symbols to export.
18893       always_export_symbols_GCJ=yes
18894       if test "$aix_use_runtimelinking" = yes; then
18895         # Warning - without using the other runtime loading flags (-brtl),
18896         # -berok will link without error, but may produce a broken library.
18897         allow_undefined_flag_GCJ='-berok'
18898        # Determine the default libpath from the value encoded in an empty executable.
18899        cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905
18906 int
18907 main ()
18908 {
18909
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916   (eval $ac_link) 2>conftest.er1
18917   ac_status=$?
18918   grep -v '^ *+' conftest.er1 >conftest.err
18919   rm -f conftest.er1
18920   cat conftest.err >&5
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); } &&
18923          { ac_try='test -z "$ac_c_werror_flag"
18924                          || test ! -s conftest.err'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; } &&
18930          { ac_try='test -s conftest$ac_exeext'
18931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932   (eval $ac_try) 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; }; then
18936
18937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18938 }'`
18939 # Check for a 64-bit object if we didn't find anything.
18940 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; }
18941 }'`; fi
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 fi
18947 rm -f conftest.err conftest.$ac_objext \
18948       conftest$ac_exeext conftest.$ac_ext
18949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18950
18951        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18952         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"
18953        else
18954         if test "$host_cpu" = ia64; then
18955           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18956           allow_undefined_flag_GCJ="-z nodefs"
18957           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"
18958         else
18959          # Determine the default libpath from the value encoded in an empty executable.
18960          cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966
18967 int
18968 main ()
18969 {
18970
18971   ;
18972   return 0;
18973 }
18974 _ACEOF
18975 rm -f conftest.$ac_objext conftest$ac_exeext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18977   (eval $ac_link) 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } &&
18984          { ac_try='test -z "$ac_c_werror_flag"
18985                          || test ! -s conftest.err'
18986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987   (eval $ac_try) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; } &&
18991          { ac_try='test -s conftest$ac_exeext'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; }; then
18997
18998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18999 }'`
19000 # Check for a 64-bit object if we didn't find anything.
19001 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; }
19002 }'`; fi
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 fi
19008 rm -f conftest.err conftest.$ac_objext \
19009       conftest$ac_exeext conftest.$ac_ext
19010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19011
19012          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19013           # Warning - without using the other run time loading flags,
19014           # -berok will link without error, but may produce a broken library.
19015           no_undefined_flag_GCJ=' ${wl}-bernotok'
19016           allow_undefined_flag_GCJ=' ${wl}-berok'
19017           # -bexpall does not export symbols beginning with underscore (_)
19018           always_export_symbols_GCJ=yes
19019           # Exported symbols can be pulled into shared objects from archives
19020           whole_archive_flag_spec_GCJ=' '
19021           archive_cmds_need_lc_GCJ=yes
19022           # This is similar to how AIX traditionally builds it's shared libraries.
19023           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'
19024         fi
19025       fi
19026       ;;
19027
19028     amigaos*)
19029       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)'
19030       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19031       hardcode_minus_L_GCJ=yes
19032       # see comment about different semantics on the GNU ld section
19033       ld_shlibs_GCJ=no
19034       ;;
19035
19036     bsdi[45]*)
19037       export_dynamic_flag_spec_GCJ=-rdynamic
19038       ;;
19039
19040     cygwin* | mingw* | pw32*)
19041       # When not using gcc, we currently assume that we are using
19042       # Microsoft Visual C++.
19043       # hardcode_libdir_flag_spec is actually meaningless, as there is
19044       # no search path for DLLs.
19045       hardcode_libdir_flag_spec_GCJ=' '
19046       allow_undefined_flag_GCJ=unsupported
19047       # Tell ltmain to make .lib files, not .a files.
19048       libext=lib
19049       # Tell ltmain to make .dll files, not .so files.
19050       shrext_cmds=".dll"
19051       # FIXME: Setting linknames here is a bad hack.
19052       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19053       # The linker will automatically build a .lib file if we build a DLL.
19054       old_archive_From_new_cmds_GCJ='true'
19055       # FIXME: Should let the user specify the lib program.
19056       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19057       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19058       enable_shared_with_static_runtimes_GCJ=yes
19059       ;;
19060
19061     darwin* | rhapsody*)
19062       case "$host_os" in
19063         rhapsody* | darwin1.[012])
19064          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19065          ;;
19066        *) # Darwin 1.3 on
19067          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19068            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19069          else
19070            case ${MACOSX_DEPLOYMENT_TARGET} in
19071              10.[012])
19072                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19073                ;;
19074              10.*)
19075                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19076                ;;
19077            esac
19078          fi
19079          ;;
19080       esac
19081       archive_cmds_need_lc_GCJ=no
19082       hardcode_direct_GCJ=no
19083       hardcode_automatic_GCJ=yes
19084       hardcode_shlibpath_var_GCJ=unsupported
19085       whole_archive_flag_spec_GCJ=''
19086       link_all_deplibs_GCJ=yes
19087     if test "$GCC" = yes ; then
19088         output_verbose_link_cmd='echo'
19089         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19090       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19091       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19092       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}'
19093       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}'
19094     else
19095       case $cc_basename in
19096         xlc*)
19097          output_verbose_link_cmd='echo'
19098          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19099          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19101          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}'
19102           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}'
19103           ;;
19104        *)
19105          ld_shlibs_GCJ=no
19106           ;;
19107       esac
19108     fi
19109       ;;
19110
19111     dgux*)
19112       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19114       hardcode_shlibpath_var_GCJ=no
19115       ;;
19116
19117     freebsd1*)
19118       ld_shlibs_GCJ=no
19119       ;;
19120
19121     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19122     # support.  Future versions do this automatically, but an explicit c++rt0.o
19123     # does not break anything, and helps significantly (at the cost of a little
19124     # extra space).
19125     freebsd2.2*)
19126       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19127       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19128       hardcode_direct_GCJ=yes
19129       hardcode_shlibpath_var_GCJ=no
19130       ;;
19131
19132     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19133     freebsd2*)
19134       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19135       hardcode_direct_GCJ=yes
19136       hardcode_minus_L_GCJ=yes
19137       hardcode_shlibpath_var_GCJ=no
19138       ;;
19139
19140     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19141     freebsd* | kfreebsd*-gnu | dragonfly*)
19142       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19143       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19144       hardcode_direct_GCJ=yes
19145       hardcode_shlibpath_var_GCJ=no
19146       ;;
19147
19148     hpux9*)
19149       if test "$GCC" = yes; then
19150         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'
19151       else
19152         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'
19153       fi
19154       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19155       hardcode_libdir_separator_GCJ=:
19156       hardcode_direct_GCJ=yes
19157
19158       # hardcode_minus_L: Not really in the search PATH,
19159       # but as the default location of the library.
19160       hardcode_minus_L_GCJ=yes
19161       export_dynamic_flag_spec_GCJ='${wl}-E'
19162       ;;
19163
19164     hpux10* | hpux11*)
19165       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19166         case "$host_cpu" in
19167         hppa*64*|ia64*)
19168           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19169           ;;
19170         *)
19171           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19172           ;;
19173         esac
19174       else
19175         case "$host_cpu" in
19176         hppa*64*|ia64*)
19177           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19178           ;;
19179         *)
19180           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19181           ;;
19182         esac
19183       fi
19184       if test "$with_gnu_ld" = no; then
19185         case "$host_cpu" in
19186         hppa*64*)
19187           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19188           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19189           hardcode_libdir_separator_GCJ=:
19190           hardcode_direct_GCJ=no
19191           hardcode_shlibpath_var_GCJ=no
19192           ;;
19193         ia64*)
19194           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19195           hardcode_direct_GCJ=no
19196           hardcode_shlibpath_var_GCJ=no
19197
19198           # hardcode_minus_L: Not really in the search PATH,
19199           # but as the default location of the library.
19200           hardcode_minus_L_GCJ=yes
19201           ;;
19202         *)
19203           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19204           hardcode_libdir_separator_GCJ=:
19205           hardcode_direct_GCJ=yes
19206           export_dynamic_flag_spec_GCJ='${wl}-E'
19207
19208           # hardcode_minus_L: Not really in the search PATH,
19209           # but as the default location of the library.
19210           hardcode_minus_L_GCJ=yes
19211           ;;
19212         esac
19213       fi
19214       ;;
19215
19216     irix5* | irix6* | nonstopux*)
19217       if test "$GCC" = yes; then
19218         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'
19219       else
19220         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'
19221         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19222       fi
19223       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19224       hardcode_libdir_separator_GCJ=:
19225       link_all_deplibs_GCJ=yes
19226       ;;
19227
19228     netbsd*)
19229       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19230         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19231       else
19232         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19233       fi
19234       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19235       hardcode_direct_GCJ=yes
19236       hardcode_shlibpath_var_GCJ=no
19237       ;;
19238
19239     newsos6)
19240       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19241       hardcode_direct_GCJ=yes
19242       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19243       hardcode_libdir_separator_GCJ=:
19244       hardcode_shlibpath_var_GCJ=no
19245       ;;
19246
19247     openbsd*)
19248       hardcode_direct_GCJ=yes
19249       hardcode_shlibpath_var_GCJ=no
19250       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19251         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19252         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19253         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19254         export_dynamic_flag_spec_GCJ='${wl}-E'
19255       else
19256        case $host_os in
19257          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19258            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19259            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19260            ;;
19261          *)
19262            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19263            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19264            ;;
19265        esac
19266       fi
19267       ;;
19268
19269     os2*)
19270       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19271       hardcode_minus_L_GCJ=yes
19272       allow_undefined_flag_GCJ=unsupported
19273       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'
19274       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19275       ;;
19276
19277     osf3*)
19278       if test "$GCC" = yes; then
19279         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19280         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'
19281       else
19282         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19283         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'
19284       fi
19285       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19286       hardcode_libdir_separator_GCJ=:
19287       ;;
19288
19289     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19290       if test "$GCC" = yes; then
19291         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19292         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'
19293         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19294       else
19295         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19296         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'
19297         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~
19298         $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'
19299
19300         # Both c and cxx compiler support -rpath directly
19301         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19302       fi
19303       hardcode_libdir_separator_GCJ=:
19304       ;;
19305
19306     sco3.2v5*)
19307       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19308       hardcode_shlibpath_var_GCJ=no
19309       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19310       runpath_var=LD_RUN_PATH
19311       hardcode_runpath_var=yes
19312       ;;
19313
19314     solaris*)
19315       no_undefined_flag_GCJ=' -z text'
19316       if test "$GCC" = yes; then
19317         wlarc='${wl}'
19318         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19320           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19321       else
19322         wlarc=''
19323         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19324         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19325         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19326       fi
19327       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19328       hardcode_shlibpath_var_GCJ=no
19329       case $host_os in
19330       solaris2.[0-5] | solaris2.[0-5].*) ;;
19331       *)
19332         # The compiler driver will combine linker options so we
19333         # cannot just pass the convience library names through
19334         # without $wl, iff we do not link with $LD.
19335         # Luckily, gcc supports the same syntax we need for Sun Studio.
19336         # Supported since Solaris 2.6 (maybe 2.5.1?)
19337         case $wlarc in
19338         '')
19339           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19340         *)
19341           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' ;;
19342         esac ;;
19343       esac
19344       link_all_deplibs_GCJ=yes
19345       ;;
19346
19347     sunos4*)
19348       if test "x$host_vendor" = xsequent; then
19349         # Use $CC to link under sequent, because it throws in some extra .o
19350         # files that make .init and .fini sections work.
19351         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19352       else
19353         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19354       fi
19355       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19356       hardcode_direct_GCJ=yes
19357       hardcode_minus_L_GCJ=yes
19358       hardcode_shlibpath_var_GCJ=no
19359       ;;
19360
19361     sysv4)
19362       case $host_vendor in
19363         sni)
19364           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19365           hardcode_direct_GCJ=yes # is this really true???
19366         ;;
19367         siemens)
19368           ## LD is ld it makes a PLAMLIB
19369           ## CC just makes a GrossModule.
19370           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19371           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19372           hardcode_direct_GCJ=no
19373         ;;
19374         motorola)
19375           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19376           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19377         ;;
19378       esac
19379       runpath_var='LD_RUN_PATH'
19380       hardcode_shlibpath_var_GCJ=no
19381       ;;
19382
19383     sysv4.3*)
19384       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19385       hardcode_shlibpath_var_GCJ=no
19386       export_dynamic_flag_spec_GCJ='-Bexport'
19387       ;;
19388
19389     sysv4*MP*)
19390       if test -d /usr/nec; then
19391         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19392         hardcode_shlibpath_var_GCJ=no
19393         runpath_var=LD_RUN_PATH
19394         hardcode_runpath_var=yes
19395         ld_shlibs_GCJ=yes
19396       fi
19397       ;;
19398
19399     sysv4.2uw2*)
19400       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19401       hardcode_direct_GCJ=yes
19402       hardcode_minus_L_GCJ=no
19403       hardcode_shlibpath_var_GCJ=no
19404       hardcode_runpath_var=yes
19405       runpath_var=LD_RUN_PATH
19406       ;;
19407
19408    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19409       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19410       if test "$GCC" = yes; then
19411         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19412       else
19413         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19414       fi
19415       runpath_var='LD_RUN_PATH'
19416       hardcode_shlibpath_var_GCJ=no
19417       ;;
19418
19419     sysv5*)
19420       no_undefined_flag_GCJ=' -z text'
19421       # $CC -shared without GNU ld will not create a library from C++
19422       # object files and a static libstdc++, better avoid it by now
19423       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19424       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19425                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19426       hardcode_libdir_flag_spec_GCJ=
19427       hardcode_shlibpath_var_GCJ=no
19428       runpath_var='LD_RUN_PATH'
19429       ;;
19430
19431     uts4*)
19432       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19433       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19434       hardcode_shlibpath_var_GCJ=no
19435       ;;
19436
19437     *)
19438       ld_shlibs_GCJ=no
19439       ;;
19440     esac
19441   fi
19442
19443 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19444 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19445 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19446
19447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19448 if test "$GCC" = yes; then
19449   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19450 fi
19451
19452 #
19453 # Do we need to explicitly link libc?
19454 #
19455 case "x$archive_cmds_need_lc_GCJ" in
19456 x|xyes)
19457   # Assume -lc should be added
19458   archive_cmds_need_lc_GCJ=yes
19459
19460   if test "$enable_shared" = yes && test "$GCC" = yes; then
19461     case $archive_cmds_GCJ in
19462     *'~'*)
19463       # FIXME: we may have to deal with multi-command sequences.
19464       ;;
19465     '$CC '*)
19466       # Test whether the compiler implicitly links with -lc since on some
19467       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19468       # to ld, don't add -lc before -lgcc.
19469       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19470 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19471       $rm conftest*
19472       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19473
19474       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475   (eval $ac_compile) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } 2>conftest.err; then
19479         soname=conftest
19480         lib=conftest
19481         libobjs=conftest.$ac_objext
19482         deplibs=
19483         wl=$lt_prog_compiler_wl_GCJ
19484         compiler_flags=-v
19485         linker_flags=-v
19486         verstring=
19487         output_objdir=.
19488         libname=conftest
19489         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19490         allow_undefined_flag_GCJ=
19491         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19492   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }
19496         then
19497           archive_cmds_need_lc_GCJ=no
19498         else
19499           archive_cmds_need_lc_GCJ=yes
19500         fi
19501         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19502       else
19503         cat conftest.err 1>&5
19504       fi
19505       $rm conftest*
19506       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19507 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19508       ;;
19509     esac
19510   fi
19511   ;;
19512 esac
19513
19514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19516 library_names_spec=
19517 libname_spec='lib$name'
19518 soname_spec=
19519 shrext_cmds=".so"
19520 postinstall_cmds=
19521 postuninstall_cmds=
19522 finish_cmds=
19523 finish_eval=
19524 shlibpath_var=
19525 shlibpath_overrides_runpath=unknown
19526 version_type=none
19527 dynamic_linker="$host_os ld.so"
19528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19529 if test "$GCC" = yes; then
19530   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19531   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19532     # if the path contains ";" then we assume it to be the separator
19533     # otherwise default to the standard path separator (i.e. ":") - it is
19534     # assumed that no part of a normal pathname contains ";" but that should
19535     # okay in the real world where ";" in dirpaths is itself problematic.
19536     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19537   else
19538     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19539   fi
19540 else
19541   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19542 fi
19543 need_lib_prefix=unknown
19544 hardcode_into_libs=no
19545
19546 # when you set need_version to no, make sure it does not cause -set_version
19547 # flags to be left without arguments
19548 need_version=unknown
19549
19550 case $host_os in
19551 aix3*)
19552   version_type=linux
19553   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19554   shlibpath_var=LIBPATH
19555
19556   # AIX 3 has no versioning support, so we append a major version to the name.
19557   soname_spec='${libname}${release}${shared_ext}$major'
19558   ;;
19559
19560 aix4* | aix5*)
19561   version_type=linux
19562   need_lib_prefix=no
19563   need_version=no
19564   hardcode_into_libs=yes
19565   if test "$host_cpu" = ia64; then
19566     # AIX 5 supports IA64
19567     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19568     shlibpath_var=LD_LIBRARY_PATH
19569   else
19570     # With GCC up to 2.95.x, collect2 would create an import file
19571     # for dependence libraries.  The import file would start with
19572     # the line `#! .'.  This would cause the generated library to
19573     # depend on `.', always an invalid library.  This was fixed in
19574     # development snapshots of GCC prior to 3.0.
19575     case $host_os in
19576       aix4 | aix4.[01] | aix4.[01].*)
19577       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19578            echo ' yes '
19579            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19580         :
19581       else
19582         can_build_shared=no
19583       fi
19584       ;;
19585     esac
19586     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19587     # soname into executable. Probably we can add versioning support to
19588     # collect2, so additional links can be useful in future.
19589     if test "$aix_use_runtimelinking" = yes; then
19590       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19591       # instead of lib<name>.a to let people know that these are not
19592       # typical AIX shared libraries.
19593       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19594     else
19595       # We preserve .a as extension for shared libraries through AIX4.2
19596       # and later when we are not doing run time linking.
19597       library_names_spec='${libname}${release}.a $libname.a'
19598       soname_spec='${libname}${release}${shared_ext}$major'
19599     fi
19600     shlibpath_var=LIBPATH
19601   fi
19602   ;;
19603
19604 amigaos*)
19605   library_names_spec='$libname.ixlibrary $libname.a'
19606   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19607   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'
19608   ;;
19609
19610 beos*)
19611   library_names_spec='${libname}${shared_ext}'
19612   dynamic_linker="$host_os ld.so"
19613   shlibpath_var=LIBRARY_PATH
19614   ;;
19615
19616 bsdi[45]*)
19617   version_type=linux
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19622   shlibpath_var=LD_LIBRARY_PATH
19623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19625   # the default ld.so.conf also contains /usr/contrib/lib and
19626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19627   # libtool to hard-code these into programs
19628   ;;
19629
19630 cygwin* | mingw* | pw32*)
19631   version_type=windows
19632   shrext_cmds=".dll"
19633   need_version=no
19634   need_lib_prefix=no
19635
19636   case $GCC,$host_os in
19637   yes,cygwin* | yes,mingw* | yes,pw32*)
19638     library_names_spec='$libname.dll.a'
19639     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19640     postinstall_cmds='base_file=`basename \${file}`~
19641       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19642       dldir=$destdir/`dirname \$dlpath`~
19643       test -d \$dldir || mkdir -p \$dldir~
19644       $install_prog $dir/$dlname \$dldir/$dlname'
19645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19646       dlpath=$dir/\$dldll~
19647        $rm \$dlpath'
19648     shlibpath_overrides_runpath=yes
19649
19650     case $host_os in
19651     cygwin*)
19652       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19653       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19654       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19655       ;;
19656     mingw*)
19657       # MinGW DLLs use traditional 'lib' prefix
19658       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19659       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19660       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19661         # It is most probably a Windows format PATH printed by
19662         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19663         # path with ; separators, and with drive letters. We can handle the
19664         # drive letters (cygwin fileutils understands them), so leave them,
19665         # especially as we might pass files found there to a mingw objdump,
19666         # which wouldn't understand a cygwinified path. Ahh.
19667         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19668       else
19669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19670       fi
19671       ;;
19672     pw32*)
19673       # pw32 DLLs use 'pw' prefix rather than 'lib'
19674       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19675       ;;
19676     esac
19677     ;;
19678
19679   *)
19680     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19681     ;;
19682   esac
19683   dynamic_linker='Win32 ld.exe'
19684   # FIXME: first we should search . and the directory the executable is in
19685   shlibpath_var=PATH
19686   ;;
19687
19688 darwin* | rhapsody*)
19689   dynamic_linker="$host_os dyld"
19690   version_type=darwin
19691   need_lib_prefix=no
19692   need_version=no
19693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19694   soname_spec='${libname}${release}${major}$shared_ext'
19695   shlibpath_overrides_runpath=yes
19696   shlibpath_var=DYLD_LIBRARY_PATH
19697   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19698   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19699   if test "$GCC" = yes; then
19700     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"`
19701   else
19702     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19703   fi
19704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19705   ;;
19706
19707 dgux*)
19708   version_type=linux
19709   need_lib_prefix=no
19710   need_version=no
19711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19712   soname_spec='${libname}${release}${shared_ext}$major'
19713   shlibpath_var=LD_LIBRARY_PATH
19714   ;;
19715
19716 freebsd1*)
19717   dynamic_linker=no
19718   ;;
19719
19720 kfreebsd*-gnu)
19721   version_type=linux
19722   need_lib_prefix=no
19723   need_version=no
19724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19725   soname_spec='${libname}${release}${shared_ext}$major'
19726   shlibpath_var=LD_LIBRARY_PATH
19727   shlibpath_overrides_runpath=no
19728   hardcode_into_libs=yes
19729   dynamic_linker='GNU ld.so'
19730   ;;
19731
19732 freebsd* | dragonfly*)
19733   # DragonFly does not have aout.  When/if they implement a new
19734   # versioning mechanism, adjust this.
19735   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19736   version_type=freebsd-$objformat
19737   case $version_type in
19738     freebsd-elf*)
19739       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19740       need_version=no
19741       need_lib_prefix=no
19742       ;;
19743     freebsd-*)
19744       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19745       need_version=yes
19746       ;;
19747   esac
19748   shlibpath_var=LD_LIBRARY_PATH
19749   case $host_os in
19750   freebsd2*)
19751     shlibpath_overrides_runpath=yes
19752     ;;
19753   freebsd3.[01]* | freebsdelf3.[01]*)
19754     shlibpath_overrides_runpath=yes
19755     hardcode_into_libs=yes
19756     ;;
19757   *) # from 3.2 on
19758     shlibpath_overrides_runpath=no
19759     hardcode_into_libs=yes
19760     ;;
19761   esac
19762   ;;
19763
19764 gnu*)
19765   version_type=linux
19766   need_lib_prefix=no
19767   need_version=no
19768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19769   soname_spec='${libname}${release}${shared_ext}$major'
19770   shlibpath_var=LD_LIBRARY_PATH
19771   hardcode_into_libs=yes
19772   ;;
19773
19774 hpux9* | hpux10* | hpux11*)
19775   # Give a soname corresponding to the major version so that dld.sl refuses to
19776   # link against other versions.
19777   version_type=sunos
19778   need_lib_prefix=no
19779   need_version=no
19780   case "$host_cpu" in
19781   ia64*)
19782     shrext_cmds='.so'
19783     hardcode_into_libs=yes
19784     dynamic_linker="$host_os dld.so"
19785     shlibpath_var=LD_LIBRARY_PATH
19786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19788     soname_spec='${libname}${release}${shared_ext}$major'
19789     if test "X$HPUX_IA64_MODE" = X32; then
19790       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19791     else
19792       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19793     fi
19794     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19795     ;;
19796    hppa*64*)
19797      shrext_cmds='.sl'
19798      hardcode_into_libs=yes
19799      dynamic_linker="$host_os dld.sl"
19800      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19801      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19803      soname_spec='${libname}${release}${shared_ext}$major'
19804      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19805      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19806      ;;
19807    *)
19808     shrext_cmds='.sl'
19809     dynamic_linker="$host_os dld.sl"
19810     shlibpath_var=SHLIB_PATH
19811     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813     soname_spec='${libname}${release}${shared_ext}$major'
19814     ;;
19815   esac
19816   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19817   postinstall_cmds='chmod 555 $lib'
19818   ;;
19819
19820 irix5* | irix6* | nonstopux*)
19821   case $host_os in
19822     nonstopux*) version_type=nonstopux ;;
19823     *)
19824         if test "$lt_cv_prog_gnu_ld" = yes; then
19825                 version_type=linux
19826         else
19827                 version_type=irix
19828         fi ;;
19829   esac
19830   need_lib_prefix=no
19831   need_version=no
19832   soname_spec='${libname}${release}${shared_ext}$major'
19833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19834   case $host_os in
19835   irix5* | nonstopux*)
19836     libsuff= shlibsuff=
19837     ;;
19838   *)
19839     case $LD in # libtool.m4 will add one of these switches to LD
19840     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19841       libsuff= shlibsuff= libmagic=32-bit;;
19842     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19843       libsuff=32 shlibsuff=N32 libmagic=N32;;
19844     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19845       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19846     *) libsuff= shlibsuff= libmagic=never-match;;
19847     esac
19848     ;;
19849   esac
19850   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19851   shlibpath_overrides_runpath=no
19852   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19853   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19854   hardcode_into_libs=yes
19855   ;;
19856
19857 # No shared lib support for Linux oldld, aout, or coff.
19858 linux*oldld* | linux*aout* | linux*coff*)
19859   dynamic_linker=no
19860   ;;
19861
19862 # This must be Linux ELF.
19863 linux*)
19864   version_type=linux
19865   need_lib_prefix=no
19866   need_version=no
19867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19868   soname_spec='${libname}${release}${shared_ext}$major'
19869   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19870   shlibpath_var=LD_LIBRARY_PATH
19871   shlibpath_overrides_runpath=no
19872   # This implies no fast_install, which is unacceptable.
19873   # Some rework will be needed to allow for fast_install
19874   # before this can be enabled.
19875   hardcode_into_libs=yes
19876
19877   # Append ld.so.conf contents to the search path
19878   if test -f /etc/ld.so.conf; then
19879     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' ' '`
19880     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19881   fi
19882
19883   # We used to test for /lib/ld.so.1 and disable shared libraries on
19884   # powerpc, because MkLinux only supported shared libraries with the
19885   # GNU dynamic linker.  Since this was broken with cross compilers,
19886   # most powerpc-linux boxes support dynamic linking these days and
19887   # people can always --disable-shared, the test was removed, and we
19888   # assume the GNU/Linux dynamic linker is in use.
19889   dynamic_linker='GNU/Linux ld.so'
19890   ;;
19891
19892 knetbsd*-gnu)
19893   version_type=linux
19894   need_lib_prefix=no
19895   need_version=no
19896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19897   soname_spec='${libname}${release}${shared_ext}$major'
19898   shlibpath_var=LD_LIBRARY_PATH
19899   shlibpath_overrides_runpath=no
19900   hardcode_into_libs=yes
19901   dynamic_linker='GNU ld.so'
19902   ;;
19903
19904 netbsd*)
19905   version_type=sunos
19906   need_lib_prefix=no
19907   need_version=no
19908   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19910     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19911     dynamic_linker='NetBSD (a.out) ld.so'
19912   else
19913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19914     soname_spec='${libname}${release}${shared_ext}$major'
19915     dynamic_linker='NetBSD ld.elf_so'
19916   fi
19917   shlibpath_var=LD_LIBRARY_PATH
19918   shlibpath_overrides_runpath=yes
19919   hardcode_into_libs=yes
19920   ;;
19921
19922 newsos6)
19923   version_type=linux
19924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19925   shlibpath_var=LD_LIBRARY_PATH
19926   shlibpath_overrides_runpath=yes
19927   ;;
19928
19929 nto-qnx*)
19930   version_type=linux
19931   need_lib_prefix=no
19932   need_version=no
19933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934   soname_spec='${libname}${release}${shared_ext}$major'
19935   shlibpath_var=LD_LIBRARY_PATH
19936   shlibpath_overrides_runpath=yes
19937   ;;
19938
19939 openbsd*)
19940   version_type=sunos
19941   need_lib_prefix=no
19942   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19943   case $host_os in
19944     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19945     *)                         need_version=no  ;;
19946   esac
19947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19949   shlibpath_var=LD_LIBRARY_PATH
19950   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19951     case $host_os in
19952       openbsd2.[89] | openbsd2.[89].*)
19953         shlibpath_overrides_runpath=no
19954         ;;
19955       *)
19956         shlibpath_overrides_runpath=yes
19957         ;;
19958       esac
19959   else
19960     shlibpath_overrides_runpath=yes
19961   fi
19962   ;;
19963
19964 os2*)
19965   libname_spec='$name'
19966   shrext_cmds=".dll"
19967   need_lib_prefix=no
19968   library_names_spec='$libname${shared_ext} $libname.a'
19969   dynamic_linker='OS/2 ld.exe'
19970   shlibpath_var=LIBPATH
19971   ;;
19972
19973 osf3* | osf4* | osf5*)
19974   version_type=osf
19975   need_lib_prefix=no
19976   need_version=no
19977   soname_spec='${libname}${release}${shared_ext}$major'
19978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19979   shlibpath_var=LD_LIBRARY_PATH
19980   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19981   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19982   ;;
19983
19984 sco3.2v5*)
19985   version_type=osf
19986   soname_spec='${libname}${release}${shared_ext}$major'
19987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988   shlibpath_var=LD_LIBRARY_PATH
19989   ;;
19990
19991 solaris*)
19992   version_type=linux
19993   need_lib_prefix=no
19994   need_version=no
19995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19996   soname_spec='${libname}${release}${shared_ext}$major'
19997   shlibpath_var=LD_LIBRARY_PATH
19998   shlibpath_overrides_runpath=yes
19999   hardcode_into_libs=yes
20000   # ldd complains unless libraries are executable
20001   postinstall_cmds='chmod +x $lib'
20002   ;;
20003
20004 sunos4*)
20005   version_type=sunos
20006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20007   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20008   shlibpath_var=LD_LIBRARY_PATH
20009   shlibpath_overrides_runpath=yes
20010   if test "$with_gnu_ld" = yes; then
20011     need_lib_prefix=no
20012   fi
20013   need_version=yes
20014   ;;
20015
20016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20017   version_type=linux
20018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019   soname_spec='${libname}${release}${shared_ext}$major'
20020   shlibpath_var=LD_LIBRARY_PATH
20021   case $host_vendor in
20022     sni)
20023       shlibpath_overrides_runpath=no
20024       need_lib_prefix=no
20025       export_dynamic_flag_spec='${wl}-Blargedynsym'
20026       runpath_var=LD_RUN_PATH
20027       ;;
20028     siemens)
20029       need_lib_prefix=no
20030       ;;
20031     motorola)
20032       need_lib_prefix=no
20033       need_version=no
20034       shlibpath_overrides_runpath=no
20035       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20036       ;;
20037   esac
20038   ;;
20039
20040 sysv4*MP*)
20041   if test -d /usr/nec ;then
20042     version_type=linux
20043     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20044     soname_spec='$libname${shared_ext}.$major'
20045     shlibpath_var=LD_LIBRARY_PATH
20046   fi
20047   ;;
20048
20049 uts4*)
20050   version_type=linux
20051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052   soname_spec='${libname}${release}${shared_ext}$major'
20053   shlibpath_var=LD_LIBRARY_PATH
20054   ;;
20055
20056 *)
20057   dynamic_linker=no
20058   ;;
20059 esac
20060 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20061 echo "${ECHO_T}$dynamic_linker" >&6
20062 test "$dynamic_linker" = no && can_build_shared=no
20063
20064 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20065 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20066 hardcode_action_GCJ=
20067 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20068    test -n "$runpath_var_GCJ" || \
20069    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20070
20071   # We can hardcode non-existant directories.
20072   if test "$hardcode_direct_GCJ" != no &&
20073      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20074      # have to relink, otherwise we might link with an installed library
20075      # when we should be linking with a yet-to-be-installed one
20076      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20077      test "$hardcode_minus_L_GCJ" != no; then
20078     # Linking always hardcodes the temporary library directory.
20079     hardcode_action_GCJ=relink
20080   else
20081     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20082     hardcode_action_GCJ=immediate
20083   fi
20084 else
20085   # We cannot hardcode anything, or else we can only hardcode existing
20086   # directories.
20087   hardcode_action_GCJ=unsupported
20088 fi
20089 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20090 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20091
20092 if test "$hardcode_action_GCJ" = relink; then
20093   # Fast installation is not supported
20094   enable_fast_install=no
20095 elif test "$shlibpath_overrides_runpath" = yes ||
20096      test "$enable_shared" = no; then
20097   # Fast installation is not necessary
20098   enable_fast_install=needless
20099 fi
20100
20101 striplib=
20102 old_striplib=
20103 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20104 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20105 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20106   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20107   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20108   echo "$as_me:$LINENO: result: yes" >&5
20109 echo "${ECHO_T}yes" >&6
20110 else
20111 # FIXME - insert some real tests, host_os isn't really good enough
20112   case $host_os in
20113    darwin*)
20114        if test -n "$STRIP" ; then
20115          striplib="$STRIP -x"
20116          echo "$as_me:$LINENO: result: yes" >&5
20117 echo "${ECHO_T}yes" >&6
20118        else
20119   echo "$as_me:$LINENO: result: no" >&5
20120 echo "${ECHO_T}no" >&6
20121 fi
20122        ;;
20123    *)
20124   echo "$as_me:$LINENO: result: no" >&5
20125 echo "${ECHO_T}no" >&6
20126     ;;
20127   esac
20128 fi
20129
20130 if test "x$enable_dlopen" != xyes; then
20131   enable_dlopen=unknown
20132   enable_dlopen_self=unknown
20133   enable_dlopen_self_static=unknown
20134 else
20135   lt_cv_dlopen=no
20136   lt_cv_dlopen_libs=
20137
20138   case $host_os in
20139   beos*)
20140     lt_cv_dlopen="load_add_on"
20141     lt_cv_dlopen_libs=
20142     lt_cv_dlopen_self=yes
20143     ;;
20144
20145   mingw* | pw32*)
20146     lt_cv_dlopen="LoadLibrary"
20147     lt_cv_dlopen_libs=
20148    ;;
20149
20150   cygwin*)
20151     lt_cv_dlopen="dlopen"
20152     lt_cv_dlopen_libs=
20153    ;;
20154
20155   darwin*)
20156   # if libdl is installed we need to link against it
20157     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20158 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20159 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   ac_check_lib_save_LIBS=$LIBS
20163 LIBS="-ldl  $LIBS"
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 /* Override any gcc2 internal prototype to avoid an error.  */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 /* We use char because int might match the return type of a gcc2
20176    builtin and then its argument prototype would still apply.  */
20177 char dlopen ();
20178 int
20179 main ()
20180 {
20181 dlopen ();
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20188   (eval $ac_link) 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -z "$ac_c_werror_flag"
20196                          || test ! -s conftest.err'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest$ac_exeext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   ac_cv_lib_dl_dlopen=yes
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 ac_cv_lib_dl_dlopen=no
20214 fi
20215 rm -f conftest.err conftest.$ac_objext \
20216       conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20218 fi
20219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20221 if test $ac_cv_lib_dl_dlopen = yes; then
20222   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20223 else
20224
20225     lt_cv_dlopen="dyld"
20226     lt_cv_dlopen_libs=
20227     lt_cv_dlopen_self=yes
20228
20229 fi
20230
20231    ;;
20232
20233   *)
20234     echo "$as_me:$LINENO: checking for shl_load" >&5
20235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20236 if test "${ac_cv_func_shl_load+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20247 #define shl_load innocuous_shl_load
20248
20249 /* System header to define __stub macros and hopefully few prototypes,
20250     which can conflict with char shl_load (); below.
20251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20252     <limits.h> exists even on freestanding compilers.  */
20253
20254 #ifdef __STDC__
20255 # include <limits.h>
20256 #else
20257 # include <assert.h>
20258 #endif
20259
20260 #undef shl_load
20261
20262 /* Override any gcc2 internal prototype to avoid an error.  */
20263 #ifdef __cplusplus
20264 extern "C"
20265 {
20266 #endif
20267 /* We use char because int might match the return type of a gcc2
20268    builtin and then its argument prototype would still apply.  */
20269 char shl_load ();
20270 /* The GNU C library defines this for functions which it implements
20271     to always fail with ENOSYS.  Some functions are actually named
20272     something starting with __ and the normal name is an alias.  */
20273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20274 choke me
20275 #else
20276 char (*f) () = shl_load;
20277 #endif
20278 #ifdef __cplusplus
20279 }
20280 #endif
20281
20282 int
20283 main ()
20284 {
20285 return f != shl_load;
20286   ;
20287   return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest.$ac_objext conftest$ac_exeext
20291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20292   (eval $ac_link) 2>conftest.er1
20293   ac_status=$?
20294   grep -v '^ *+' conftest.er1 >conftest.err
20295   rm -f conftest.er1
20296   cat conftest.err >&5
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); } &&
20299          { ac_try='test -z "$ac_c_werror_flag"
20300                          || test ! -s conftest.err'
20301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302   (eval $ac_try) 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); }; } &&
20306          { ac_try='test -s conftest$ac_exeext'
20307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308   (eval $ac_try) 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; }; then
20312   ac_cv_func_shl_load=yes
20313 else
20314   echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20316
20317 ac_cv_func_shl_load=no
20318 fi
20319 rm -f conftest.err conftest.$ac_objext \
20320       conftest$ac_exeext conftest.$ac_ext
20321 fi
20322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20324 if test $ac_cv_func_shl_load = yes; then
20325   lt_cv_dlopen="shl_load"
20326 else
20327   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   ac_check_lib_save_LIBS=$LIBS
20333 LIBS="-ldld  $LIBS"
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340
20341 /* Override any gcc2 internal prototype to avoid an error.  */
20342 #ifdef __cplusplus
20343 extern "C"
20344 #endif
20345 /* We use char because int might match the return type of a gcc2
20346    builtin and then its argument prototype would still apply.  */
20347 char shl_load ();
20348 int
20349 main ()
20350 {
20351 shl_load ();
20352   ;
20353   return 0;
20354 }
20355 _ACEOF
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358   (eval $ac_link) 2>conftest.er1
20359   ac_status=$?
20360   grep -v '^ *+' conftest.er1 >conftest.err
20361   rm -f conftest.er1
20362   cat conftest.err >&5
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); } &&
20365          { ac_try='test -z "$ac_c_werror_flag"
20366                          || test ! -s conftest.err'
20367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368   (eval $ac_try) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; } &&
20372          { ac_try='test -s conftest$ac_exeext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_lib_dld_shl_load=yes
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 ac_cv_lib_dld_shl_load=no
20384 fi
20385 rm -f conftest.err conftest.$ac_objext \
20386       conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20388 fi
20389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20391 if test $ac_cv_lib_dld_shl_load = yes; then
20392   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20393 else
20394   echo "$as_me:$LINENO: checking for dlopen" >&5
20395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20396 if test "${ac_cv_func_dlopen+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20407 #define dlopen innocuous_dlopen
20408
20409 /* System header to define __stub macros and hopefully few prototypes,
20410     which can conflict with char dlopen (); below.
20411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412     <limits.h> exists even on freestanding compilers.  */
20413
20414 #ifdef __STDC__
20415 # include <limits.h>
20416 #else
20417 # include <assert.h>
20418 #endif
20419
20420 #undef dlopen
20421
20422 /* Override any gcc2 internal prototype to avoid an error.  */
20423 #ifdef __cplusplus
20424 extern "C"
20425 {
20426 #endif
20427 /* We use char because int might match the return type of a gcc2
20428    builtin and then its argument prototype would still apply.  */
20429 char dlopen ();
20430 /* The GNU C library defines this for functions which it implements
20431     to always fail with ENOSYS.  Some functions are actually named
20432     something starting with __ and the normal name is an alias.  */
20433 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20434 choke me
20435 #else
20436 char (*f) () = dlopen;
20437 #endif
20438 #ifdef __cplusplus
20439 }
20440 #endif
20441
20442 int
20443 main ()
20444 {
20445 return f != dlopen;
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452   (eval $ac_link) 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } &&
20459          { ac_try='test -z "$ac_c_werror_flag"
20460                          || test ! -s conftest.err'
20461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462   (eval $ac_try) 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; } &&
20466          { ac_try='test -s conftest$ac_exeext'
20467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468   (eval $ac_try) 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; }; then
20472   ac_cv_func_dlopen=yes
20473 else
20474   echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477 ac_cv_func_dlopen=no
20478 fi
20479 rm -f conftest.err conftest.$ac_objext \
20480       conftest$ac_exeext conftest.$ac_ext
20481 fi
20482 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20483 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20484 if test $ac_cv_func_dlopen = yes; then
20485   lt_cv_dlopen="dlopen"
20486 else
20487   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20488 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-ldl  $LIBS"
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500
20501 /* Override any gcc2 internal prototype to avoid an error.  */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 /* We use char because int might match the return type of a gcc2
20506    builtin and then its argument prototype would still apply.  */
20507 char dlopen ();
20508 int
20509 main ()
20510 {
20511 dlopen ();
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20518   (eval $ac_link) 2>conftest.er1
20519   ac_status=$?
20520   grep -v '^ *+' conftest.er1 >conftest.err
20521   rm -f conftest.er1
20522   cat conftest.err >&5
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } &&
20525          { ac_try='test -z "$ac_c_werror_flag"
20526                          || test ! -s conftest.err'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; } &&
20532          { ac_try='test -s conftest$ac_exeext'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }; then
20538   ac_cv_lib_dl_dlopen=yes
20539 else
20540   echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 ac_cv_lib_dl_dlopen=no
20544 fi
20545 rm -f conftest.err conftest.$ac_objext \
20546       conftest$ac_exeext conftest.$ac_ext
20547 LIBS=$ac_check_lib_save_LIBS
20548 fi
20549 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20550 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20551 if test $ac_cv_lib_dl_dlopen = yes; then
20552   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20553 else
20554   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20555 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20557   echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559   ac_check_lib_save_LIBS=$LIBS
20560 LIBS="-lsvld  $LIBS"
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h.  */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h.  */
20567
20568 /* Override any gcc2 internal prototype to avoid an error.  */
20569 #ifdef __cplusplus
20570 extern "C"
20571 #endif
20572 /* We use char because int might match the return type of a gcc2
20573    builtin and then its argument prototype would still apply.  */
20574 char dlopen ();
20575 int
20576 main ()
20577 {
20578 dlopen ();
20579   ;
20580   return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext conftest$ac_exeext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20585   (eval $ac_link) 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } &&
20592          { ac_try='test -z "$ac_c_werror_flag"
20593                          || test ! -s conftest.err'
20594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595   (eval $ac_try) 2>&5
20596   ac_status=$?
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); }; } &&
20599          { ac_try='test -s conftest$ac_exeext'
20600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601   (eval $ac_try) 2>&5
20602   ac_status=$?
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); }; }; then
20605   ac_cv_lib_svld_dlopen=yes
20606 else
20607   echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 ac_cv_lib_svld_dlopen=no
20611 fi
20612 rm -f conftest.err conftest.$ac_objext \
20613       conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20615 fi
20616 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20617 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20618 if test $ac_cv_lib_svld_dlopen = yes; then
20619   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20620 else
20621   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20622 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20623 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20624   echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626   ac_check_lib_save_LIBS=$LIBS
20627 LIBS="-ldld  $LIBS"
20628 cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h.  */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h.  */
20634
20635 /* Override any gcc2 internal prototype to avoid an error.  */
20636 #ifdef __cplusplus
20637 extern "C"
20638 #endif
20639 /* We use char because int might match the return type of a gcc2
20640    builtin and then its argument prototype would still apply.  */
20641 char dld_link ();
20642 int
20643 main ()
20644 {
20645 dld_link ();
20646   ;
20647   return 0;
20648 }
20649 _ACEOF
20650 rm -f conftest.$ac_objext conftest$ac_exeext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20652   (eval $ac_link) 2>conftest.er1
20653   ac_status=$?
20654   grep -v '^ *+' conftest.er1 >conftest.err
20655   rm -f conftest.er1
20656   cat conftest.err >&5
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } &&
20659          { ac_try='test -z "$ac_c_werror_flag"
20660                          || test ! -s conftest.err'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; } &&
20666          { ac_try='test -s conftest$ac_exeext'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_lib_dld_dld_link=yes
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_cv_lib_dld_dld_link=no
20678 fi
20679 rm -f conftest.err conftest.$ac_objext \
20680       conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20682 fi
20683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20685 if test $ac_cv_lib_dld_dld_link = yes; then
20686   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20687 fi
20688
20689
20690 fi
20691
20692
20693 fi
20694
20695
20696 fi
20697
20698
20699 fi
20700
20701
20702 fi
20703
20704     ;;
20705   esac
20706
20707   if test "x$lt_cv_dlopen" != xno; then
20708     enable_dlopen=yes
20709   else
20710     enable_dlopen=no
20711   fi
20712
20713   case $lt_cv_dlopen in
20714   dlopen)
20715     save_CPPFLAGS="$CPPFLAGS"
20716     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20717
20718     save_LDFLAGS="$LDFLAGS"
20719     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20720
20721     save_LIBS="$LIBS"
20722     LIBS="$lt_cv_dlopen_libs $LIBS"
20723
20724     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20726 if test "${lt_cv_dlopen_self+set}" = set; then
20727   echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729           if test "$cross_compiling" = yes; then :
20730   lt_cv_dlopen_self=cross
20731 else
20732   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20733   lt_status=$lt_dlunknown
20734   cat > conftest.$ac_ext <<EOF
20735 #line 20735 "configure"
20736 #include "confdefs.h"
20737
20738 #if HAVE_DLFCN_H
20739 #include <dlfcn.h>
20740 #endif
20741
20742 #include <stdio.h>
20743
20744 #ifdef RTLD_GLOBAL
20745 #  define LT_DLGLOBAL           RTLD_GLOBAL
20746 #else
20747 #  ifdef DL_GLOBAL
20748 #    define LT_DLGLOBAL         DL_GLOBAL
20749 #  else
20750 #    define LT_DLGLOBAL         0
20751 #  endif
20752 #endif
20753
20754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20755    find out it does not work in some platform. */
20756 #ifndef LT_DLLAZY_OR_NOW
20757 #  ifdef RTLD_LAZY
20758 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20759 #  else
20760 #    ifdef DL_LAZY
20761 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20762 #    else
20763 #      ifdef RTLD_NOW
20764 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20765 #      else
20766 #        ifdef DL_NOW
20767 #          define LT_DLLAZY_OR_NOW      DL_NOW
20768 #        else
20769 #          define LT_DLLAZY_OR_NOW      0
20770 #        endif
20771 #      endif
20772 #    endif
20773 #  endif
20774 #endif
20775
20776 #ifdef __cplusplus
20777 extern "C" void exit (int);
20778 #endif
20779
20780 void fnord() { int i=42;}
20781 int main ()
20782 {
20783   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20784   int status = $lt_dlunknown;
20785
20786   if (self)
20787     {
20788       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20789       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20790       /* dlclose (self); */
20791     }
20792
20793     exit (status);
20794 }
20795 EOF
20796   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797   (eval $ac_link) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20801     (./conftest; exit; ) 2>/dev/null
20802     lt_status=$?
20803     case x$lt_status in
20804       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20805       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20806       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20807     esac
20808   else :
20809     # compilation failed
20810     lt_cv_dlopen_self=no
20811   fi
20812 fi
20813 rm -fr conftest*
20814
20815
20816 fi
20817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20818 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20819
20820     if test "x$lt_cv_dlopen_self" = xyes; then
20821       LDFLAGS="$LDFLAGS $link_static_flag"
20822       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20823 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20824 if test "${lt_cv_dlopen_self_static+set}" = set; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827           if test "$cross_compiling" = yes; then :
20828   lt_cv_dlopen_self_static=cross
20829 else
20830   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20831   lt_status=$lt_dlunknown
20832   cat > conftest.$ac_ext <<EOF
20833 #line 20833 "configure"
20834 #include "confdefs.h"
20835
20836 #if HAVE_DLFCN_H
20837 #include <dlfcn.h>
20838 #endif
20839
20840 #include <stdio.h>
20841
20842 #ifdef RTLD_GLOBAL
20843 #  define LT_DLGLOBAL           RTLD_GLOBAL
20844 #else
20845 #  ifdef DL_GLOBAL
20846 #    define LT_DLGLOBAL         DL_GLOBAL
20847 #  else
20848 #    define LT_DLGLOBAL         0
20849 #  endif
20850 #endif
20851
20852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20853    find out it does not work in some platform. */
20854 #ifndef LT_DLLAZY_OR_NOW
20855 #  ifdef RTLD_LAZY
20856 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20857 #  else
20858 #    ifdef DL_LAZY
20859 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20860 #    else
20861 #      ifdef RTLD_NOW
20862 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20863 #      else
20864 #        ifdef DL_NOW
20865 #          define LT_DLLAZY_OR_NOW      DL_NOW
20866 #        else
20867 #          define LT_DLLAZY_OR_NOW      0
20868 #        endif
20869 #      endif
20870 #    endif
20871 #  endif
20872 #endif
20873
20874 #ifdef __cplusplus
20875 extern "C" void exit (int);
20876 #endif
20877
20878 void fnord() { int i=42;}
20879 int main ()
20880 {
20881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20882   int status = $lt_dlunknown;
20883
20884   if (self)
20885     {
20886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20887       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20888       /* dlclose (self); */
20889     }
20890
20891     exit (status);
20892 }
20893 EOF
20894   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895   (eval $ac_link) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20899     (./conftest; exit; ) 2>/dev/null
20900     lt_status=$?
20901     case x$lt_status in
20902       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20903       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20904       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20905     esac
20906   else :
20907     # compilation failed
20908     lt_cv_dlopen_self_static=no
20909   fi
20910 fi
20911 rm -fr conftest*
20912
20913
20914 fi
20915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20916 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20917     fi
20918
20919     CPPFLAGS="$save_CPPFLAGS"
20920     LDFLAGS="$save_LDFLAGS"
20921     LIBS="$save_LIBS"
20922     ;;
20923   esac
20924
20925   case $lt_cv_dlopen_self in
20926   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20927   *) enable_dlopen_self=unknown ;;
20928   esac
20929
20930   case $lt_cv_dlopen_self_static in
20931   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20932   *) enable_dlopen_self_static=unknown ;;
20933   esac
20934 fi
20935
20936
20937 # The else clause should only fire when bootstrapping the
20938 # libtool distribution, otherwise you forgot to ship ltmain.sh
20939 # with your package, and you will get complaints that there are
20940 # no rules to generate ltmain.sh.
20941 if test -f "$ltmain"; then
20942   # See if we are running on zsh, and set the options which allow our commands through
20943   # without removal of \ escapes.
20944   if test -n "${ZSH_VERSION+set}" ; then
20945     setopt NO_GLOB_SUBST
20946   fi
20947   # Now quote all the things that may contain metacharacters while being
20948   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20949   # variables and quote the copies for generation of the libtool script.
20950   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20951     SED SHELL STRIP \
20952     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20953     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20954     deplibs_check_method reload_flag reload_cmds need_locks \
20955     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20956     lt_cv_sys_global_symbol_to_c_name_address \
20957     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20958     old_postinstall_cmds old_postuninstall_cmds \
20959     compiler_GCJ \
20960     CC_GCJ \
20961     LD_GCJ \
20962     lt_prog_compiler_wl_GCJ \
20963     lt_prog_compiler_pic_GCJ \
20964     lt_prog_compiler_static_GCJ \
20965     lt_prog_compiler_no_builtin_flag_GCJ \
20966     export_dynamic_flag_spec_GCJ \
20967     thread_safe_flag_spec_GCJ \
20968     whole_archive_flag_spec_GCJ \
20969     enable_shared_with_static_runtimes_GCJ \
20970     old_archive_cmds_GCJ \
20971     old_archive_from_new_cmds_GCJ \
20972     predep_objects_GCJ \
20973     postdep_objects_GCJ \
20974     predeps_GCJ \
20975     postdeps_GCJ \
20976     compiler_lib_search_path_GCJ \
20977     archive_cmds_GCJ \
20978     archive_expsym_cmds_GCJ \
20979     postinstall_cmds_GCJ \
20980     postuninstall_cmds_GCJ \
20981     old_archive_from_expsyms_cmds_GCJ \
20982     allow_undefined_flag_GCJ \
20983     no_undefined_flag_GCJ \
20984     export_symbols_cmds_GCJ \
20985     hardcode_libdir_flag_spec_GCJ \
20986     hardcode_libdir_flag_spec_ld_GCJ \
20987     hardcode_libdir_separator_GCJ \
20988     hardcode_automatic_GCJ \
20989     module_cmds_GCJ \
20990     module_expsym_cmds_GCJ \
20991     lt_cv_prog_compiler_c_o_GCJ \
20992     exclude_expsyms_GCJ \
20993     include_expsyms_GCJ; do
20994
20995     case $var in
20996     old_archive_cmds_GCJ | \
20997     old_archive_from_new_cmds_GCJ | \
20998     archive_cmds_GCJ | \
20999     archive_expsym_cmds_GCJ | \
21000     module_cmds_GCJ | \
21001     module_expsym_cmds_GCJ | \
21002     old_archive_from_expsyms_cmds_GCJ | \
21003     export_symbols_cmds_GCJ | \
21004     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21005     postinstall_cmds | postuninstall_cmds | \
21006     old_postinstall_cmds | old_postuninstall_cmds | \
21007     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21008       # Double-quote double-evaled strings.
21009       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21010       ;;
21011     *)
21012       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21013       ;;
21014     esac
21015   done
21016
21017   case $lt_echo in
21018   *'\$0 --fallback-echo"')
21019     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21020     ;;
21021   esac
21022
21023 cfgfile="$ofile"
21024
21025   cat <<__EOF__ >> "$cfgfile"
21026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21027
21028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21029
21030 # Shell to use when invoking shell scripts.
21031 SHELL=$lt_SHELL
21032
21033 # Whether or not to build shared libraries.
21034 build_libtool_libs=$enable_shared
21035
21036 # Whether or not to build static libraries.
21037 build_old_libs=$enable_static
21038
21039 # Whether or not to add -lc for building shared libraries.
21040 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21041
21042 # Whether or not to disallow shared libs when runtime libs are static
21043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21044
21045 # Whether or not to optimize for fast installation.
21046 fast_install=$enable_fast_install
21047
21048 # The host system.
21049 host_alias=$host_alias
21050 host=$host
21051 host_os=$host_os
21052
21053 # The build system.
21054 build_alias=$build_alias
21055 build=$build
21056 build_os=$build_os
21057
21058 # An echo program that does not interpret backslashes.
21059 echo=$lt_echo
21060
21061 # The archiver.
21062 AR=$lt_AR
21063 AR_FLAGS=$lt_AR_FLAGS
21064
21065 # A C compiler.
21066 LTCC=$lt_LTCC
21067
21068 # A language-specific compiler.
21069 CC=$lt_compiler_GCJ
21070
21071 # Is the compiler the GNU C compiler?
21072 with_gcc=$GCC_GCJ
21073
21074 # An ERE matcher.
21075 EGREP=$lt_EGREP
21076
21077 # The linker used to build libraries.
21078 LD=$lt_LD_GCJ
21079
21080 # Whether we need hard or soft links.
21081 LN_S=$lt_LN_S
21082
21083 # A BSD-compatible nm program.
21084 NM=$lt_NM
21085
21086 # A symbol stripping program
21087 STRIP=$lt_STRIP
21088
21089 # Used to examine libraries when file_magic_cmd begins "file"
21090 MAGIC_CMD=$MAGIC_CMD
21091
21092 # Used on cygwin: DLL creation program.
21093 DLLTOOL="$DLLTOOL"
21094
21095 # Used on cygwin: object dumper.
21096 OBJDUMP="$OBJDUMP"
21097
21098 # Used on cygwin: assembler.
21099 AS="$AS"
21100
21101 # The name of the directory that contains temporary libtool files.
21102 objdir=$objdir
21103
21104 # How to create reloadable object files.
21105 reload_flag=$lt_reload_flag
21106 reload_cmds=$lt_reload_cmds
21107
21108 # How to pass a linker flag through the compiler.
21109 wl=$lt_lt_prog_compiler_wl_GCJ
21110
21111 # Object file suffix (normally "o").
21112 objext="$ac_objext"
21113
21114 # Old archive suffix (normally "a").
21115 libext="$libext"
21116
21117 # Shared library suffix (normally ".so").
21118 shrext_cmds='$shrext_cmds'
21119
21120 # Executable file suffix (normally "").
21121 exeext="$exeext"
21122
21123 # Additional compiler flags for building library objects.
21124 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21125 pic_mode=$pic_mode
21126
21127 # What is the maximum length of a command?
21128 max_cmd_len=$lt_cv_sys_max_cmd_len
21129
21130 # Does compiler simultaneously support -c and -o options?
21131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21132
21133 # Must we lock files when doing compilation?
21134 need_locks=$lt_need_locks
21135
21136 # Do we need the lib prefix for modules?
21137 need_lib_prefix=$need_lib_prefix
21138
21139 # Do we need a version for libraries?
21140 need_version=$need_version
21141
21142 # Whether dlopen is supported.
21143 dlopen_support=$enable_dlopen
21144
21145 # Whether dlopen of programs is supported.
21146 dlopen_self=$enable_dlopen_self
21147
21148 # Whether dlopen of statically linked programs is supported.
21149 dlopen_self_static=$enable_dlopen_self_static
21150
21151 # Compiler flag to prevent dynamic linking.
21152 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21153
21154 # Compiler flag to turn off builtin functions.
21155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21156
21157 # Compiler flag to allow reflexive dlopens.
21158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21159
21160 # Compiler flag to generate shared objects directly from archives.
21161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21162
21163 # Compiler flag to generate thread-safe objects.
21164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21165
21166 # Library versioning type.
21167 version_type=$version_type
21168
21169 # Format of library name prefix.
21170 libname_spec=$lt_libname_spec
21171
21172 # List of archive names.  First name is the real one, the rest are links.
21173 # The last name is the one that the linker finds with -lNAME.
21174 library_names_spec=$lt_library_names_spec
21175
21176 # The coded name of the library, if different from the real name.
21177 soname_spec=$lt_soname_spec
21178
21179 # Commands used to build and install an old-style archive.
21180 RANLIB=$lt_RANLIB
21181 old_archive_cmds=$lt_old_archive_cmds_GCJ
21182 old_postinstall_cmds=$lt_old_postinstall_cmds
21183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21184
21185 # Create an old-style archive from a shared archive.
21186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21187
21188 # Create a temporary old-style archive to link instead of a shared archive.
21189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21190
21191 # Commands used to build and install a shared archive.
21192 archive_cmds=$lt_archive_cmds_GCJ
21193 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21194 postinstall_cmds=$lt_postinstall_cmds
21195 postuninstall_cmds=$lt_postuninstall_cmds
21196
21197 # Commands used to build a loadable module (assumed same as above if empty)
21198 module_cmds=$lt_module_cmds_GCJ
21199 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21200
21201 # Commands to strip libraries.
21202 old_striplib=$lt_old_striplib
21203 striplib=$lt_striplib
21204
21205 # Dependencies to place before the objects being linked to create a
21206 # shared library.
21207 predep_objects=$lt_predep_objects_GCJ
21208
21209 # Dependencies to place after the objects being linked to create a
21210 # shared library.
21211 postdep_objects=$lt_postdep_objects_GCJ
21212
21213 # Dependencies to place before the objects being linked to create a
21214 # shared library.
21215 predeps=$lt_predeps_GCJ
21216
21217 # Dependencies to place after the objects being linked to create a
21218 # shared library.
21219 postdeps=$lt_postdeps_GCJ
21220
21221 # The library search path used internally by the compiler when linking
21222 # a shared library.
21223 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21224
21225 # Method to check whether dependent libraries are shared objects.
21226 deplibs_check_method=$lt_deplibs_check_method
21227
21228 # Command to use when deplibs_check_method == file_magic.
21229 file_magic_cmd=$lt_file_magic_cmd
21230
21231 # Flag that allows shared libraries with undefined symbols to be built.
21232 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21233
21234 # Flag that forces no undefined symbols.
21235 no_undefined_flag=$lt_no_undefined_flag_GCJ
21236
21237 # Commands used to finish a libtool library installation in a directory.
21238 finish_cmds=$lt_finish_cmds
21239
21240 # Same as above, but a single script fragment to be evaled but not shown.
21241 finish_eval=$lt_finish_eval
21242
21243 # Take the output of nm and produce a listing of raw symbols and C names.
21244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21245
21246 # Transform the output of nm in a proper C declaration
21247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21248
21249 # Transform the output of nm in a C name address pair
21250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21251
21252 # This is the shared library runtime path variable.
21253 runpath_var=$runpath_var
21254
21255 # This is the shared library path variable.
21256 shlibpath_var=$shlibpath_var
21257
21258 # Is shlibpath searched before the hard-coded library search path?
21259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21260
21261 # How to hardcode a shared library path into an executable.
21262 hardcode_action=$hardcode_action_GCJ
21263
21264 # Whether we should hardcode library paths into libraries.
21265 hardcode_into_libs=$hardcode_into_libs
21266
21267 # Flag to hardcode \$libdir into a binary during linking.
21268 # This must work even if \$libdir does not exist.
21269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21270
21271 # If ld is used when linking, flag to hardcode \$libdir into
21272 # a binary during linking. This must work even if \$libdir does
21273 # not exist.
21274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21275
21276 # Whether we need a single -rpath flag with a separated argument.
21277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21278
21279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21280 # resulting binary.
21281 hardcode_direct=$hardcode_direct_GCJ
21282
21283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21284 # resulting binary.
21285 hardcode_minus_L=$hardcode_minus_L_GCJ
21286
21287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21288 # the resulting binary.
21289 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21290
21291 # Set to yes if building a shared library automatically hardcodes DIR into the library
21292 # and all subsequent libraries and executables linked against it.
21293 hardcode_automatic=$hardcode_automatic_GCJ
21294
21295 # Variables whose values should be saved in libtool wrapper scripts and
21296 # restored at relink time.
21297 variables_saved_for_relink="$variables_saved_for_relink"
21298
21299 # Whether libtool must link a program against all its dependency libraries.
21300 link_all_deplibs=$link_all_deplibs_GCJ
21301
21302 # Compile-time system search path for libraries
21303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21304
21305 # Run-time system search path for libraries
21306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21307
21308 # Fix the shell variable \$srcfile for the compiler.
21309 fix_srcfile_path="$fix_srcfile_path_GCJ"
21310
21311 # Set to yes if exported symbols are required.
21312 always_export_symbols=$always_export_symbols_GCJ
21313
21314 # The commands to list exported symbols.
21315 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21316
21317 # The commands to extract the exported symbol list from a shared archive.
21318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21319
21320 # Symbols that should not be listed in the preloaded symbols.
21321 exclude_expsyms=$lt_exclude_expsyms_GCJ
21322
21323 # Symbols that must always be exported.
21324 include_expsyms=$lt_include_expsyms_GCJ
21325
21326 # ### END LIBTOOL TAG CONFIG: $tagname
21327
21328 __EOF__
21329
21330
21331 else
21332   # If there is no Makefile yet, we rely on a make rule to execute
21333   # `config.status --recheck' to rerun these tests and create the
21334   # libtool script then.
21335   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21336   if test -f "$ltmain_in"; then
21337     test -f Makefile && make "$ltmain"
21338   fi
21339 fi
21340
21341
21342 ac_ext=c
21343 ac_cpp='$CPP $CPPFLAGS'
21344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21347
21348 CC="$lt_save_CC"
21349
21350         else
21351           tagname=""
21352         fi
21353         ;;
21354
21355       RC)
21356
21357
21358
21359 # Source file extension for RC test sources.
21360 ac_ext=rc
21361
21362 # Object file extension for compiled RC test sources.
21363 objext=o
21364 objext_RC=$objext
21365
21366 # Code to be used in simple compile tests
21367 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21368
21369 # Code to be used in simple link tests
21370 lt_simple_link_test_code="$lt_simple_compile_test_code"
21371
21372 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21373
21374 # If no C compiler was specified, use CC.
21375 LTCC=${LTCC-"$CC"}
21376
21377 # Allow CC to be a program name with arguments.
21378 compiler=$CC
21379
21380
21381 # save warnings/boilerplate of simple test code
21382 ac_outfile=conftest.$ac_objext
21383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21385 _lt_compiler_boilerplate=`cat conftest.err`
21386 $rm conftest*
21387
21388 ac_outfile=conftest.$ac_objext
21389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21391 _lt_linker_boilerplate=`cat conftest.err`
21392 $rm conftest*
21393
21394
21395 # Allow CC to be a program name with arguments.
21396 lt_save_CC="$CC"
21397 CC=${RC-"windres"}
21398 compiler=$CC
21399 compiler_RC=$CC
21400 for cc_temp in $compiler""; do
21401   case $cc_temp in
21402     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21403     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21404     \-*) ;;
21405     *) break;;
21406   esac
21407 done
21408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21409
21410 lt_cv_prog_compiler_c_o_RC=yes
21411
21412 # The else clause should only fire when bootstrapping the
21413 # libtool distribution, otherwise you forgot to ship ltmain.sh
21414 # with your package, and you will get complaints that there are
21415 # no rules to generate ltmain.sh.
21416 if test -f "$ltmain"; then
21417   # See if we are running on zsh, and set the options which allow our commands through
21418   # without removal of \ escapes.
21419   if test -n "${ZSH_VERSION+set}" ; then
21420     setopt NO_GLOB_SUBST
21421   fi
21422   # Now quote all the things that may contain metacharacters while being
21423   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21424   # variables and quote the copies for generation of the libtool script.
21425   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21426     SED SHELL STRIP \
21427     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21428     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21429     deplibs_check_method reload_flag reload_cmds need_locks \
21430     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21431     lt_cv_sys_global_symbol_to_c_name_address \
21432     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21433     old_postinstall_cmds old_postuninstall_cmds \
21434     compiler_RC \
21435     CC_RC \
21436     LD_RC \
21437     lt_prog_compiler_wl_RC \
21438     lt_prog_compiler_pic_RC \
21439     lt_prog_compiler_static_RC \
21440     lt_prog_compiler_no_builtin_flag_RC \
21441     export_dynamic_flag_spec_RC \
21442     thread_safe_flag_spec_RC \
21443     whole_archive_flag_spec_RC \
21444     enable_shared_with_static_runtimes_RC \
21445     old_archive_cmds_RC \
21446     old_archive_from_new_cmds_RC \
21447     predep_objects_RC \
21448     postdep_objects_RC \
21449     predeps_RC \
21450     postdeps_RC \
21451     compiler_lib_search_path_RC \
21452     archive_cmds_RC \
21453     archive_expsym_cmds_RC \
21454     postinstall_cmds_RC \
21455     postuninstall_cmds_RC \
21456     old_archive_from_expsyms_cmds_RC \
21457     allow_undefined_flag_RC \
21458     no_undefined_flag_RC \
21459     export_symbols_cmds_RC \
21460     hardcode_libdir_flag_spec_RC \
21461     hardcode_libdir_flag_spec_ld_RC \
21462     hardcode_libdir_separator_RC \
21463     hardcode_automatic_RC \
21464     module_cmds_RC \
21465     module_expsym_cmds_RC \
21466     lt_cv_prog_compiler_c_o_RC \
21467     exclude_expsyms_RC \
21468     include_expsyms_RC; do
21469
21470     case $var in
21471     old_archive_cmds_RC | \
21472     old_archive_from_new_cmds_RC | \
21473     archive_cmds_RC | \
21474     archive_expsym_cmds_RC | \
21475     module_cmds_RC | \
21476     module_expsym_cmds_RC | \
21477     old_archive_from_expsyms_cmds_RC | \
21478     export_symbols_cmds_RC | \
21479     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21480     postinstall_cmds | postuninstall_cmds | \
21481     old_postinstall_cmds | old_postuninstall_cmds | \
21482     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21483       # Double-quote double-evaled strings.
21484       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21485       ;;
21486     *)
21487       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21488       ;;
21489     esac
21490   done
21491
21492   case $lt_echo in
21493   *'\$0 --fallback-echo"')
21494     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21495     ;;
21496   esac
21497
21498 cfgfile="$ofile"
21499
21500   cat <<__EOF__ >> "$cfgfile"
21501 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21502
21503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21504
21505 # Shell to use when invoking shell scripts.
21506 SHELL=$lt_SHELL
21507
21508 # Whether or not to build shared libraries.
21509 build_libtool_libs=$enable_shared
21510
21511 # Whether or not to build static libraries.
21512 build_old_libs=$enable_static
21513
21514 # Whether or not to add -lc for building shared libraries.
21515 build_libtool_need_lc=$archive_cmds_need_lc_RC
21516
21517 # Whether or not to disallow shared libs when runtime libs are static
21518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21519
21520 # Whether or not to optimize for fast installation.
21521 fast_install=$enable_fast_install
21522
21523 # The host system.
21524 host_alias=$host_alias
21525 host=$host
21526 host_os=$host_os
21527
21528 # The build system.
21529 build_alias=$build_alias
21530 build=$build
21531 build_os=$build_os
21532
21533 # An echo program that does not interpret backslashes.
21534 echo=$lt_echo
21535
21536 # The archiver.
21537 AR=$lt_AR
21538 AR_FLAGS=$lt_AR_FLAGS
21539
21540 # A C compiler.
21541 LTCC=$lt_LTCC
21542
21543 # A language-specific compiler.
21544 CC=$lt_compiler_RC
21545
21546 # Is the compiler the GNU C compiler?
21547 with_gcc=$GCC_RC
21548
21549 # An ERE matcher.
21550 EGREP=$lt_EGREP
21551
21552 # The linker used to build libraries.
21553 LD=$lt_LD_RC
21554
21555 # Whether we need hard or soft links.
21556 LN_S=$lt_LN_S
21557
21558 # A BSD-compatible nm program.
21559 NM=$lt_NM
21560
21561 # A symbol stripping program
21562 STRIP=$lt_STRIP
21563
21564 # Used to examine libraries when file_magic_cmd begins "file"
21565 MAGIC_CMD=$MAGIC_CMD
21566
21567 # Used on cygwin: DLL creation program.
21568 DLLTOOL="$DLLTOOL"
21569
21570 # Used on cygwin: object dumper.
21571 OBJDUMP="$OBJDUMP"
21572
21573 # Used on cygwin: assembler.
21574 AS="$AS"
21575
21576 # The name of the directory that contains temporary libtool files.
21577 objdir=$objdir
21578
21579 # How to create reloadable object files.
21580 reload_flag=$lt_reload_flag
21581 reload_cmds=$lt_reload_cmds
21582
21583 # How to pass a linker flag through the compiler.
21584 wl=$lt_lt_prog_compiler_wl_RC
21585
21586 # Object file suffix (normally "o").
21587 objext="$ac_objext"
21588
21589 # Old archive suffix (normally "a").
21590 libext="$libext"
21591
21592 # Shared library suffix (normally ".so").
21593 shrext_cmds='$shrext_cmds'
21594
21595 # Executable file suffix (normally "").
21596 exeext="$exeext"
21597
21598 # Additional compiler flags for building library objects.
21599 pic_flag=$lt_lt_prog_compiler_pic_RC
21600 pic_mode=$pic_mode
21601
21602 # What is the maximum length of a command?
21603 max_cmd_len=$lt_cv_sys_max_cmd_len
21604
21605 # Does compiler simultaneously support -c and -o options?
21606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21607
21608 # Must we lock files when doing compilation?
21609 need_locks=$lt_need_locks
21610
21611 # Do we need the lib prefix for modules?
21612 need_lib_prefix=$need_lib_prefix
21613
21614 # Do we need a version for libraries?
21615 need_version=$need_version
21616
21617 # Whether dlopen is supported.
21618 dlopen_support=$enable_dlopen
21619
21620 # Whether dlopen of programs is supported.
21621 dlopen_self=$enable_dlopen_self
21622
21623 # Whether dlopen of statically linked programs is supported.
21624 dlopen_self_static=$enable_dlopen_self_static
21625
21626 # Compiler flag to prevent dynamic linking.
21627 link_static_flag=$lt_lt_prog_compiler_static_RC
21628
21629 # Compiler flag to turn off builtin functions.
21630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21631
21632 # Compiler flag to allow reflexive dlopens.
21633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21634
21635 # Compiler flag to generate shared objects directly from archives.
21636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21637
21638 # Compiler flag to generate thread-safe objects.
21639 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21640
21641 # Library versioning type.
21642 version_type=$version_type
21643
21644 # Format of library name prefix.
21645 libname_spec=$lt_libname_spec
21646
21647 # List of archive names.  First name is the real one, the rest are links.
21648 # The last name is the one that the linker finds with -lNAME.
21649 library_names_spec=$lt_library_names_spec
21650
21651 # The coded name of the library, if different from the real name.
21652 soname_spec=$lt_soname_spec
21653
21654 # Commands used to build and install an old-style archive.
21655 RANLIB=$lt_RANLIB
21656 old_archive_cmds=$lt_old_archive_cmds_RC
21657 old_postinstall_cmds=$lt_old_postinstall_cmds
21658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21659
21660 # Create an old-style archive from a shared archive.
21661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21662
21663 # Create a temporary old-style archive to link instead of a shared archive.
21664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21665
21666 # Commands used to build and install a shared archive.
21667 archive_cmds=$lt_archive_cmds_RC
21668 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21669 postinstall_cmds=$lt_postinstall_cmds
21670 postuninstall_cmds=$lt_postuninstall_cmds
21671
21672 # Commands used to build a loadable module (assumed same as above if empty)
21673 module_cmds=$lt_module_cmds_RC
21674 module_expsym_cmds=$lt_module_expsym_cmds_RC
21675
21676 # Commands to strip libraries.
21677 old_striplib=$lt_old_striplib
21678 striplib=$lt_striplib
21679
21680 # Dependencies to place before the objects being linked to create a
21681 # shared library.
21682 predep_objects=$lt_predep_objects_RC
21683
21684 # Dependencies to place after the objects being linked to create a
21685 # shared library.
21686 postdep_objects=$lt_postdep_objects_RC
21687
21688 # Dependencies to place before the objects being linked to create a
21689 # shared library.
21690 predeps=$lt_predeps_RC
21691
21692 # Dependencies to place after the objects being linked to create a
21693 # shared library.
21694 postdeps=$lt_postdeps_RC
21695
21696 # The library search path used internally by the compiler when linking
21697 # a shared library.
21698 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21699
21700 # Method to check whether dependent libraries are shared objects.
21701 deplibs_check_method=$lt_deplibs_check_method
21702
21703 # Command to use when deplibs_check_method == file_magic.
21704 file_magic_cmd=$lt_file_magic_cmd
21705
21706 # Flag that allows shared libraries with undefined symbols to be built.
21707 allow_undefined_flag=$lt_allow_undefined_flag_RC
21708
21709 # Flag that forces no undefined symbols.
21710 no_undefined_flag=$lt_no_undefined_flag_RC
21711
21712 # Commands used to finish a libtool library installation in a directory.
21713 finish_cmds=$lt_finish_cmds
21714
21715 # Same as above, but a single script fragment to be evaled but not shown.
21716 finish_eval=$lt_finish_eval
21717
21718 # Take the output of nm and produce a listing of raw symbols and C names.
21719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21720
21721 # Transform the output of nm in a proper C declaration
21722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21723
21724 # Transform the output of nm in a C name address pair
21725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21726
21727 # This is the shared library runtime path variable.
21728 runpath_var=$runpath_var
21729
21730 # This is the shared library path variable.
21731 shlibpath_var=$shlibpath_var
21732
21733 # Is shlibpath searched before the hard-coded library search path?
21734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21735
21736 # How to hardcode a shared library path into an executable.
21737 hardcode_action=$hardcode_action_RC
21738
21739 # Whether we should hardcode library paths into libraries.
21740 hardcode_into_libs=$hardcode_into_libs
21741
21742 # Flag to hardcode \$libdir into a binary during linking.
21743 # This must work even if \$libdir does not exist.
21744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21745
21746 # If ld is used when linking, flag to hardcode \$libdir into
21747 # a binary during linking. This must work even if \$libdir does
21748 # not exist.
21749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21750
21751 # Whether we need a single -rpath flag with a separated argument.
21752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21753
21754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21755 # resulting binary.
21756 hardcode_direct=$hardcode_direct_RC
21757
21758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21759 # resulting binary.
21760 hardcode_minus_L=$hardcode_minus_L_RC
21761
21762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21763 # the resulting binary.
21764 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21765
21766 # Set to yes if building a shared library automatically hardcodes DIR into the library
21767 # and all subsequent libraries and executables linked against it.
21768 hardcode_automatic=$hardcode_automatic_RC
21769
21770 # Variables whose values should be saved in libtool wrapper scripts and
21771 # restored at relink time.
21772 variables_saved_for_relink="$variables_saved_for_relink"
21773
21774 # Whether libtool must link a program against all its dependency libraries.
21775 link_all_deplibs=$link_all_deplibs_RC
21776
21777 # Compile-time system search path for libraries
21778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21779
21780 # Run-time system search path for libraries
21781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21782
21783 # Fix the shell variable \$srcfile for the compiler.
21784 fix_srcfile_path="$fix_srcfile_path_RC"
21785
21786 # Set to yes if exported symbols are required.
21787 always_export_symbols=$always_export_symbols_RC
21788
21789 # The commands to list exported symbols.
21790 export_symbols_cmds=$lt_export_symbols_cmds_RC
21791
21792 # The commands to extract the exported symbol list from a shared archive.
21793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21794
21795 # Symbols that should not be listed in the preloaded symbols.
21796 exclude_expsyms=$lt_exclude_expsyms_RC
21797
21798 # Symbols that must always be exported.
21799 include_expsyms=$lt_include_expsyms_RC
21800
21801 # ### END LIBTOOL TAG CONFIG: $tagname
21802
21803 __EOF__
21804
21805
21806 else
21807   # If there is no Makefile yet, we rely on a make rule to execute
21808   # `config.status --recheck' to rerun these tests and create the
21809   # libtool script then.
21810   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21811   if test -f "$ltmain_in"; then
21812     test -f Makefile && make "$ltmain"
21813   fi
21814 fi
21815
21816
21817 ac_ext=c
21818 ac_cpp='$CPP $CPPFLAGS'
21819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21822
21823 CC="$lt_save_CC"
21824
21825         ;;
21826
21827       *)
21828         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21829 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21830    { (exit 1); exit 1; }; }
21831         ;;
21832       esac
21833
21834       # Append the new tag name to the list of available tags.
21835       if test -n "$tagname" ; then
21836       available_tags="$available_tags $tagname"
21837     fi
21838     fi
21839   done
21840   IFS="$lt_save_ifs"
21841
21842   # Now substitute the updated list of available tags.
21843   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21844     mv "${ofile}T" "$ofile"
21845     chmod +x "$ofile"
21846   else
21847     rm -f "${ofile}T"
21848     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21849 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21850    { (exit 1); exit 1; }; }
21851   fi
21852 fi
21853
21854
21855
21856 # This can be used to rebuild libtool when needed
21857 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21858
21859 # Always use our own libtool.
21860 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21861
21862 # Prevent multiple expansion
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884 ol_link_perl=no
21885 if test $ol_enable_perl != no ; then
21886         # Extract the first word of "perl", so it can be a program name with args.
21887 set dummy perl; ac_word=$2
21888 echo "$as_me:$LINENO: checking for $ac_word" >&5
21889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21890 if test "${ac_cv_path_PERLBIN+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893   case $PERLBIN in
21894   [\\/]* | ?:[\\/]*)
21895   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21896   ;;
21897   *)
21898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899 for as_dir in $PATH
21900 do
21901   IFS=$as_save_IFS
21902   test -z "$as_dir" && as_dir=.
21903   for ac_exec_ext in '' $ac_executable_extensions; do
21904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21905     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21907     break 2
21908   fi
21909 done
21910 done
21911
21912   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21913   ;;
21914 esac
21915 fi
21916 PERLBIN=$ac_cv_path_PERLBIN
21917
21918 if test -n "$PERLBIN"; then
21919   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21920 echo "${ECHO_T}$PERLBIN" >&6
21921 else
21922   echo "$as_me:$LINENO: result: no" >&5
21923 echo "${ECHO_T}no" >&6
21924 fi
21925
21926
21927         if test "no$PERLBIN" = "no" ; then
21928                 if test $ol_enable_perl = yes ; then
21929                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21930 echo "$as_me: error: could not locate perl" >&2;}
21931    { (exit 1); exit 1; }; }
21932                 fi
21933
21934         else
21935                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21936                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21937
21938                 if test x"$ol_enable_perl" = "xyes" ; then
21939                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21940                 else
21941                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21942                 fi
21943                                 ol_link_perl=yes
21944         fi
21945 fi
21946
21947 ac_ext=c
21948 ac_cpp='$CPP $CPPFLAGS'
21949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21953 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21954 # On Suns, sometimes $CPP names a directory.
21955 if test -n "$CPP" && test -d "$CPP"; then
21956   CPP=
21957 fi
21958 if test -z "$CPP"; then
21959   if test "${ac_cv_prog_CPP+set}" = set; then
21960   echo $ECHO_N "(cached) $ECHO_C" >&6
21961 else
21962       # Double quotes because CPP needs to be expanded
21963     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21964     do
21965       ac_preproc_ok=false
21966 for ac_c_preproc_warn_flag in '' yes
21967 do
21968   # Use a header file that comes with gcc, so configuring glibc
21969   # with a fresh cross-compiler works.
21970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21971   # <limits.h> exists even on freestanding compilers.
21972   # On the NeXT, cc -E runs the code through the compiler's parser,
21973   # not just through cpp. "Syntax error" is here to catch this case.
21974   cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980 #ifdef __STDC__
21981 # include <limits.h>
21982 #else
21983 # include <assert.h>
21984 #endif
21985                      Syntax error
21986 _ACEOF
21987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21989   ac_status=$?
21990   grep -v '^ *+' conftest.er1 >conftest.err
21991   rm -f conftest.er1
21992   cat conftest.err >&5
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } >/dev/null; then
21995   if test -s conftest.err; then
21996     ac_cpp_err=$ac_c_preproc_warn_flag
21997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21998   else
21999     ac_cpp_err=
22000   fi
22001 else
22002   ac_cpp_err=yes
22003 fi
22004 if test -z "$ac_cpp_err"; then
22005   :
22006 else
22007   echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010   # Broken: fails on valid input.
22011 continue
22012 fi
22013 rm -f conftest.err conftest.$ac_ext
22014
22015   # OK, works on sane cases.  Now check whether non-existent headers
22016   # can be detected and how.
22017   cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 #include <ac_nonexistent.h>
22024 _ACEOF
22025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22027   ac_status=$?
22028   grep -v '^ *+' conftest.er1 >conftest.err
22029   rm -f conftest.er1
22030   cat conftest.err >&5
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); } >/dev/null; then
22033   if test -s conftest.err; then
22034     ac_cpp_err=$ac_c_preproc_warn_flag
22035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22036   else
22037     ac_cpp_err=
22038   fi
22039 else
22040   ac_cpp_err=yes
22041 fi
22042 if test -z "$ac_cpp_err"; then
22043   # Broken: success on invalid input.
22044 continue
22045 else
22046   echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22048
22049   # Passes both tests.
22050 ac_preproc_ok=:
22051 break
22052 fi
22053 rm -f conftest.err conftest.$ac_ext
22054
22055 done
22056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22057 rm -f conftest.err conftest.$ac_ext
22058 if $ac_preproc_ok; then
22059   break
22060 fi
22061
22062     done
22063     ac_cv_prog_CPP=$CPP
22064
22065 fi
22066   CPP=$ac_cv_prog_CPP
22067 else
22068   ac_cv_prog_CPP=$CPP
22069 fi
22070 echo "$as_me:$LINENO: result: $CPP" >&5
22071 echo "${ECHO_T}$CPP" >&6
22072 ac_preproc_ok=false
22073 for ac_c_preproc_warn_flag in '' yes
22074 do
22075   # Use a header file that comes with gcc, so configuring glibc
22076   # with a fresh cross-compiler works.
22077   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22078   # <limits.h> exists even on freestanding compilers.
22079   # On the NeXT, cc -E runs the code through the compiler's parser,
22080   # not just through cpp. "Syntax error" is here to catch this case.
22081   cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 #ifdef __STDC__
22088 # include <limits.h>
22089 #else
22090 # include <assert.h>
22091 #endif
22092                      Syntax error
22093 _ACEOF
22094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } >/dev/null; then
22102   if test -s conftest.err; then
22103     ac_cpp_err=$ac_c_preproc_warn_flag
22104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22105   else
22106     ac_cpp_err=
22107   fi
22108 else
22109   ac_cpp_err=yes
22110 fi
22111 if test -z "$ac_cpp_err"; then
22112   :
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117   # Broken: fails on valid input.
22118 continue
22119 fi
22120 rm -f conftest.err conftest.$ac_ext
22121
22122   # OK, works on sane cases.  Now check whether non-existent headers
22123   # can be detected and how.
22124   cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130 #include <ac_nonexistent.h>
22131 _ACEOF
22132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } >/dev/null; then
22140   if test -s conftest.err; then
22141     ac_cpp_err=$ac_c_preproc_warn_flag
22142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22143   else
22144     ac_cpp_err=
22145   fi
22146 else
22147   ac_cpp_err=yes
22148 fi
22149 if test -z "$ac_cpp_err"; then
22150   # Broken: success on invalid input.
22151 continue
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156   # Passes both tests.
22157 ac_preproc_ok=:
22158 break
22159 fi
22160 rm -f conftest.err conftest.$ac_ext
22161
22162 done
22163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22164 rm -f conftest.err conftest.$ac_ext
22165 if $ac_preproc_ok; then
22166   :
22167 else
22168   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22169 See \`config.log' for more details." >&5
22170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22171 See \`config.log' for more details." >&2;}
22172    { (exit 1); exit 1; }; }
22173 fi
22174
22175 ac_ext=c
22176 ac_cpp='$CPP $CPPFLAGS'
22177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22180
22181
22182 case $host_os in
22183   *mingw32* ) ac_cv_mingw32=yes ;;
22184   *cygwin* ) ac_cv_cygwin=yes ;;
22185 esac
22186
22187
22188
22189
22190 cat >>confdefs.h <<_ACEOF
22191 #define EXEEXT "${EXEEXT}"
22192 _ACEOF
22193
22194
22195 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22196 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22197 if test "${ac_cv_lib_be_be_app+set}" = set; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200   ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lbe -lroot -lnet $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208
22209 /* Override any gcc2 internal prototype to avoid an error.  */
22210 #ifdef __cplusplus
22211 extern "C"
22212 #endif
22213 /* We use char because int might match the return type of a gcc2
22214    builtin and then its argument prototype would still apply.  */
22215 char be_app ();
22216 int
22217 main ()
22218 {
22219 be_app ();
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22226   (eval $ac_link) 2>conftest.er1
22227   ac_status=$?
22228   grep -v '^ *+' conftest.er1 >conftest.err
22229   rm -f conftest.er1
22230   cat conftest.err >&5
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } &&
22233          { ac_try='test -z "$ac_c_werror_flag"
22234                          || test ! -s conftest.err'
22235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236   (eval $ac_try) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); }; } &&
22240          { ac_try='test -s conftest$ac_exeext'
22241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242   (eval $ac_try) 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); }; }; then
22246   ac_cv_lib_be_be_app=yes
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 ac_cv_lib_be_be_app=no
22252 fi
22253 rm -f conftest.err conftest.$ac_objext \
22254       conftest$ac_exeext conftest.$ac_ext
22255 LIBS=$ac_check_lib_save_LIBS
22256 fi
22257 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22258 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22259 if test $ac_cv_lib_be_be_app = yes; then
22260   LIBS="$LIBS -lbe -lroot -lnet"
22261 else
22262   :
22263 fi
22264
22265
22266 ac_ext=c
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271 if test -n "$ac_tool_prefix"; then
22272   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22274 echo "$as_me:$LINENO: checking for $ac_word" >&5
22275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22276 if test "${ac_cv_prog_CC+set}" = set; then
22277   echo $ECHO_N "(cached) $ECHO_C" >&6
22278 else
22279   if test -n "$CC"; then
22280   ac_cv_prog_CC="$CC" # Let the user override the test.
22281 else
22282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22283 for as_dir in $PATH
22284 do
22285   IFS=$as_save_IFS
22286   test -z "$as_dir" && as_dir=.
22287   for ac_exec_ext in '' $ac_executable_extensions; do
22288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22289     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22291     break 2
22292   fi
22293 done
22294 done
22295
22296 fi
22297 fi
22298 CC=$ac_cv_prog_CC
22299 if test -n "$CC"; then
22300   echo "$as_me:$LINENO: result: $CC" >&5
22301 echo "${ECHO_T}$CC" >&6
22302 else
22303   echo "$as_me:$LINENO: result: no" >&5
22304 echo "${ECHO_T}no" >&6
22305 fi
22306
22307 fi
22308 if test -z "$ac_cv_prog_CC"; then
22309   ac_ct_CC=$CC
22310   # Extract the first word of "gcc", so it can be a program name with args.
22311 set dummy gcc; ac_word=$2
22312 echo "$as_me:$LINENO: checking for $ac_word" >&5
22313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   if test -n "$ac_ct_CC"; then
22318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22319 else
22320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321 for as_dir in $PATH
22322 do
22323   IFS=$as_save_IFS
22324   test -z "$as_dir" && as_dir=.
22325   for ac_exec_ext in '' $ac_executable_extensions; do
22326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22327     ac_cv_prog_ac_ct_CC="gcc"
22328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22329     break 2
22330   fi
22331 done
22332 done
22333
22334 fi
22335 fi
22336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22337 if test -n "$ac_ct_CC"; then
22338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22339 echo "${ECHO_T}$ac_ct_CC" >&6
22340 else
22341   echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6
22343 fi
22344
22345   CC=$ac_ct_CC
22346 else
22347   CC="$ac_cv_prog_CC"
22348 fi
22349
22350 if test -z "$CC"; then
22351   if test -n "$ac_tool_prefix"; then
22352   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22353 set dummy ${ac_tool_prefix}cc; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_prog_CC+set}" = set; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   if test -n "$CC"; then
22360   ac_cv_prog_CC="$CC" # Let the user override the test.
22361 else
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22364 do
22365   IFS=$as_save_IFS
22366   test -z "$as_dir" && as_dir=.
22367   for ac_exec_ext in '' $ac_executable_extensions; do
22368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369     ac_cv_prog_CC="${ac_tool_prefix}cc"
22370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22371     break 2
22372   fi
22373 done
22374 done
22375
22376 fi
22377 fi
22378 CC=$ac_cv_prog_CC
22379 if test -n "$CC"; then
22380   echo "$as_me:$LINENO: result: $CC" >&5
22381 echo "${ECHO_T}$CC" >&6
22382 else
22383   echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22385 fi
22386
22387 fi
22388 if test -z "$ac_cv_prog_CC"; then
22389   ac_ct_CC=$CC
22390   # Extract the first word of "cc", so it can be a program name with args.
22391 set dummy cc; ac_word=$2
22392 echo "$as_me:$LINENO: checking for $ac_word" >&5
22393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397   if test -n "$ac_ct_CC"; then
22398   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22399 else
22400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22401 for as_dir in $PATH
22402 do
22403   IFS=$as_save_IFS
22404   test -z "$as_dir" && as_dir=.
22405   for ac_exec_ext in '' $ac_executable_extensions; do
22406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22407     ac_cv_prog_ac_ct_CC="cc"
22408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22409     break 2
22410   fi
22411 done
22412 done
22413
22414 fi
22415 fi
22416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22417 if test -n "$ac_ct_CC"; then
22418   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22419 echo "${ECHO_T}$ac_ct_CC" >&6
22420 else
22421   echo "$as_me:$LINENO: result: no" >&5
22422 echo "${ECHO_T}no" >&6
22423 fi
22424
22425   CC=$ac_ct_CC
22426 else
22427   CC="$ac_cv_prog_CC"
22428 fi
22429
22430 fi
22431 if test -z "$CC"; then
22432   # Extract the first word of "cc", so it can be a program name with args.
22433 set dummy cc; ac_word=$2
22434 echo "$as_me:$LINENO: checking for $ac_word" >&5
22435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22436 if test "${ac_cv_prog_CC+set}" = set; then
22437   echo $ECHO_N "(cached) $ECHO_C" >&6
22438 else
22439   if test -n "$CC"; then
22440   ac_cv_prog_CC="$CC" # Let the user override the test.
22441 else
22442   ac_prog_rejected=no
22443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22444 for as_dir in $PATH
22445 do
22446   IFS=$as_save_IFS
22447   test -z "$as_dir" && as_dir=.
22448   for ac_exec_ext in '' $ac_executable_extensions; do
22449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22450     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22451        ac_prog_rejected=yes
22452        continue
22453      fi
22454     ac_cv_prog_CC="cc"
22455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22456     break 2
22457   fi
22458 done
22459 done
22460
22461 if test $ac_prog_rejected = yes; then
22462   # We found a bogon in the path, so make sure we never use it.
22463   set dummy $ac_cv_prog_CC
22464   shift
22465   if test $# != 0; then
22466     # We chose a different compiler from the bogus one.
22467     # However, it has the same basename, so the bogon will be chosen
22468     # first if we set CC to just the basename; use the full file name.
22469     shift
22470     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22471   fi
22472 fi
22473 fi
22474 fi
22475 CC=$ac_cv_prog_CC
22476 if test -n "$CC"; then
22477   echo "$as_me:$LINENO: result: $CC" >&5
22478 echo "${ECHO_T}$CC" >&6
22479 else
22480   echo "$as_me:$LINENO: result: no" >&5
22481 echo "${ECHO_T}no" >&6
22482 fi
22483
22484 fi
22485 if test -z "$CC"; then
22486   if test -n "$ac_tool_prefix"; then
22487   for ac_prog in cl
22488   do
22489     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22491 echo "$as_me:$LINENO: checking for $ac_word" >&5
22492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22493 if test "${ac_cv_prog_CC+set}" = set; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496   if test -n "$CC"; then
22497   ac_cv_prog_CC="$CC" # Let the user override the test.
22498 else
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22501 do
22502   IFS=$as_save_IFS
22503   test -z "$as_dir" && as_dir=.
22504   for ac_exec_ext in '' $ac_executable_extensions; do
22505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22506     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22508     break 2
22509   fi
22510 done
22511 done
22512
22513 fi
22514 fi
22515 CC=$ac_cv_prog_CC
22516 if test -n "$CC"; then
22517   echo "$as_me:$LINENO: result: $CC" >&5
22518 echo "${ECHO_T}$CC" >&6
22519 else
22520   echo "$as_me:$LINENO: result: no" >&5
22521 echo "${ECHO_T}no" >&6
22522 fi
22523
22524     test -n "$CC" && break
22525   done
22526 fi
22527 if test -z "$CC"; then
22528   ac_ct_CC=$CC
22529   for ac_prog in cl
22530 do
22531   # Extract the first word of "$ac_prog", so it can be a program name with args.
22532 set dummy $ac_prog; ac_word=$2
22533 echo "$as_me:$LINENO: checking for $ac_word" >&5
22534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22536   echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538   if test -n "$ac_ct_CC"; then
22539   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22540 else
22541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22542 for as_dir in $PATH
22543 do
22544   IFS=$as_save_IFS
22545   test -z "$as_dir" && as_dir=.
22546   for ac_exec_ext in '' $ac_executable_extensions; do
22547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22548     ac_cv_prog_ac_ct_CC="$ac_prog"
22549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22550     break 2
22551   fi
22552 done
22553 done
22554
22555 fi
22556 fi
22557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22558 if test -n "$ac_ct_CC"; then
22559   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22560 echo "${ECHO_T}$ac_ct_CC" >&6
22561 else
22562   echo "$as_me:$LINENO: result: no" >&5
22563 echo "${ECHO_T}no" >&6
22564 fi
22565
22566   test -n "$ac_ct_CC" && break
22567 done
22568
22569   CC=$ac_ct_CC
22570 fi
22571
22572 fi
22573
22574
22575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22576 See \`config.log' for more details." >&5
22577 echo "$as_me: error: no acceptable C compiler found in \$PATH
22578 See \`config.log' for more details." >&2;}
22579    { (exit 1); exit 1; }; }
22580
22581 # Provide some information about the compiler.
22582 echo "$as_me:$LINENO:" \
22583      "checking for C compiler version" >&5
22584 ac_compiler=`set X $ac_compile; echo $2`
22585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22586   (eval $ac_compiler --version </dev/null >&5) 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); }
22590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22591   (eval $ac_compiler -v </dev/null >&5) 2>&5
22592   ac_status=$?
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); }
22595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22596   (eval $ac_compiler -V </dev/null >&5) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }
22600
22601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612
22613 int
22614 main ()
22615 {
22616 #ifndef __GNUC__
22617        choke me
22618 #endif
22619
22620   ;
22621   return 0;
22622 }
22623 _ACEOF
22624 rm -f conftest.$ac_objext
22625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22626   (eval $ac_compile) 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } &&
22633          { ac_try='test -z "$ac_c_werror_flag"
22634                          || test ! -s conftest.err'
22635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636   (eval $ac_try) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); }; } &&
22640          { ac_try='test -s conftest.$ac_objext'
22641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642   (eval $ac_try) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; }; then
22646   ac_compiler_gnu=yes
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 ac_compiler_gnu=no
22652 fi
22653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22655
22656 fi
22657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22659 GCC=`test $ac_compiler_gnu = yes && echo yes`
22660 ac_test_CFLAGS=${CFLAGS+set}
22661 ac_save_CFLAGS=$CFLAGS
22662 CFLAGS="-g"
22663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22665 if test "${ac_cv_prog_cc_g+set}" = set; then
22666   echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668   cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674
22675 int
22676 main ()
22677 {
22678
22679   ;
22680   return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685   (eval $ac_compile) 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } &&
22692          { ac_try='test -z "$ac_c_werror_flag"
22693                          || test ! -s conftest.err'
22694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695   (eval $ac_try) 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; } &&
22699          { ac_try='test -s conftest.$ac_objext'
22700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701   (eval $ac_try) 2>&5
22702   ac_status=$?
22703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704   (exit $ac_status); }; }; then
22705   ac_cv_prog_cc_g=yes
22706 else
22707   echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22709
22710 ac_cv_prog_cc_g=no
22711 fi
22712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22713 fi
22714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22716 if test "$ac_test_CFLAGS" = set; then
22717   CFLAGS=$ac_save_CFLAGS
22718 elif test $ac_cv_prog_cc_g = yes; then
22719   if test "$GCC" = yes; then
22720     CFLAGS="-g -O2"
22721   else
22722     CFLAGS="-g"
22723   fi
22724 else
22725   if test "$GCC" = yes; then
22726     CFLAGS="-O2"
22727   else
22728     CFLAGS=
22729   fi
22730 fi
22731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22734   echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736   ac_cv_prog_cc_stdc=no
22737 ac_save_CC=$CC
22738 cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h.  */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h.  */
22744 #include <stdarg.h>
22745 #include <stdio.h>
22746 #include <sys/types.h>
22747 #include <sys/stat.h>
22748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22749 struct buf { int x; };
22750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22751 static char *e (p, i)
22752      char **p;
22753      int i;
22754 {
22755   return p[i];
22756 }
22757 static char *f (char * (*g) (char **, int), char **p, ...)
22758 {
22759   char *s;
22760   va_list v;
22761   va_start (v,p);
22762   s = g (p, va_arg (v,int));
22763   va_end (v);
22764   return s;
22765 }
22766
22767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22768    function prototypes and stuff, but not '\xHH' hex character constants.
22769    These don't provoke an error unfortunately, instead are silently treated
22770    as 'x'.  The following induces an error, until -std1 is added to get
22771    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22772    array size at least.  It's necessary to write '\x00'==0 to get something
22773    that's true only with -std1.  */
22774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22775
22776 int test (int i, double x);
22777 struct s1 {int (*f) (int a);};
22778 struct s2 {int (*f) (double a);};
22779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22780 int argc;
22781 char **argv;
22782 int
22783 main ()
22784 {
22785 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 # Don't try gcc -ansi; that turns off useful extensions and
22791 # breaks some systems' header files.
22792 # AIX                   -qlanglvl=ansi
22793 # Ultrix and OSF/1      -std1
22794 # HP-UX 10.20 and later -Ae
22795 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22796 # SVR4                  -Xc -D__EXTENSIONS__
22797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22798 do
22799   CC="$ac_save_CC $ac_arg"
22800   rm -f conftest.$ac_objext
22801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22802   (eval $ac_compile) 2>conftest.er1
22803   ac_status=$?
22804   grep -v '^ *+' conftest.er1 >conftest.err
22805   rm -f conftest.er1
22806   cat conftest.err >&5
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); } &&
22809          { ac_try='test -z "$ac_c_werror_flag"
22810                          || test ! -s conftest.err'
22811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); }; } &&
22816          { ac_try='test -s conftest.$ac_objext'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; }; then
22822   ac_cv_prog_cc_stdc=$ac_arg
22823 break
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828 fi
22829 rm -f conftest.err conftest.$ac_objext
22830 done
22831 rm -f conftest.$ac_ext conftest.$ac_objext
22832 CC=$ac_save_CC
22833
22834 fi
22835
22836 case "x$ac_cv_prog_cc_stdc" in
22837   x|xno)
22838     echo "$as_me:$LINENO: result: none needed" >&5
22839 echo "${ECHO_T}none needed" >&6 ;;
22840   *)
22841     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22843     CC="$CC $ac_cv_prog_cc_stdc" ;;
22844 esac
22845
22846 # Some people use a C++ compiler to compile C.  Since we use `exit',
22847 # in C++ we need to declare it.  In case someone uses the same compiler
22848 # for both compiling C and C++ we need to have the C++ compiler decide
22849 # the declaration of exit, since it's the most demanding environment.
22850 cat >conftest.$ac_ext <<_ACEOF
22851 #ifndef __cplusplus
22852   choke me
22853 #endif
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22857   (eval $ac_compile) 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } &&
22864          { ac_try='test -z "$ac_c_werror_flag"
22865                          || test ! -s conftest.err'
22866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867   (eval $ac_try) 2>&5
22868   ac_status=$?
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); }; } &&
22871          { ac_try='test -s conftest.$ac_objext'
22872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873   (eval $ac_try) 2>&5
22874   ac_status=$?
22875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); }; }; then
22877   for ac_declaration in \
22878    '' \
22879    'extern "C" void std::exit (int) throw (); using std::exit;' \
22880    'extern "C" void std::exit (int); using std::exit;' \
22881    'extern "C" void exit (int) throw ();' \
22882    'extern "C" void exit (int);' \
22883    'void exit (int);'
22884 do
22885   cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h.  */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h.  */
22891 $ac_declaration
22892 #include <stdlib.h>
22893 int
22894 main ()
22895 {
22896 exit (42);
22897   ;
22898   return 0;
22899 }
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22903   (eval $ac_compile) 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } &&
22910          { ac_try='test -z "$ac_c_werror_flag"
22911                          || test ! -s conftest.err'
22912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913   (eval $ac_try) 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); }; } &&
22917          { ac_try='test -s conftest.$ac_objext'
22918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919   (eval $ac_try) 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; }; then
22923   :
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928 continue
22929 fi
22930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22931   cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937 $ac_declaration
22938 int
22939 main ()
22940 {
22941 exit (42);
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948   (eval $ac_compile) 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } &&
22955          { ac_try='test -z "$ac_c_werror_flag"
22956                          || test ! -s conftest.err'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; } &&
22962          { ac_try='test -s conftest.$ac_objext'
22963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964   (eval $ac_try) 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); }; }; then
22968   break
22969 else
22970   echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22972
22973 fi
22974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22975 done
22976 rm -f conftest*
22977 if test -n "$ac_declaration"; then
22978   echo '#ifdef __cplusplus' >>confdefs.h
22979   echo $ac_declaration      >>confdefs.h
22980   echo '#endif'             >>confdefs.h
22981 fi
22982
22983 else
22984   echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987 fi
22988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22989 ac_ext=c
22990 ac_cpp='$CPP $CPPFLAGS'
22991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22994
22995 depcc="$CC"   am_compiler_list=
22996
22997 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22998 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22999 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23003   # We make a subdir and do the tests there.  Otherwise we can end up
23004   # making bogus files that we don't know about and never remove.  For
23005   # instance it was reported that on HP-UX the gcc test will end up
23006   # making a dummy file named `D' -- because `-MD' means `put the output
23007   # in D'.
23008   mkdir conftest.dir
23009   # Copy depcomp to subdir because otherwise we won't find it if we're
23010   # using a relative directory.
23011   cp "$am_depcomp" conftest.dir
23012   cd conftest.dir
23013   # We will build objects and dependencies in a subdirectory because
23014   # it helps to detect inapplicable dependency modes.  For instance
23015   # both Tru64's cc and ICC support -MD to output dependencies as a
23016   # side effect of compilation, but ICC will put the dependencies in
23017   # the current directory while Tru64 will put them in the object
23018   # directory.
23019   mkdir sub
23020
23021   am_cv_CC_dependencies_compiler_type=none
23022   if test "$am_compiler_list" = ""; then
23023      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23024   fi
23025   for depmode in $am_compiler_list; do
23026     # Setup a source with many dependencies, because some compilers
23027     # like to wrap large dependency lists on column 80 (with \), and
23028     # we should not choose a depcomp mode which is confused by this.
23029     #
23030     # We need to recreate these files for each test, as the compiler may
23031     # overwrite some of them when testing with obscure command lines.
23032     # This happens at least with the AIX C compiler.
23033     : > sub/conftest.c
23034     for i in 1 2 3 4 5 6; do
23035       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23036       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23037       # Solaris 8's {/usr,}/bin/sh.
23038       touch sub/conftst$i.h
23039     done
23040     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23041
23042     case $depmode in
23043     nosideeffect)
23044       # after this tag, mechanisms are not by side-effect, so they'll
23045       # only be used when explicitly requested
23046       if test "x$enable_dependency_tracking" = xyes; then
23047         continue
23048       else
23049         break
23050       fi
23051       ;;
23052     none) break ;;
23053     esac
23054     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23055     # mode.  It turns out that the SunPro C++ compiler does not properly
23056     # handle `-M -o', and we need to detect this.
23057     if depmode=$depmode \
23058        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23059        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23060        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23061          >/dev/null 2>conftest.err &&
23062        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23063        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23064        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23065       # icc doesn't choke on unknown options, it will just issue warnings
23066       # or remarks (even with -Werror).  So we grep stderr for any message
23067       # that says an option was ignored or not supported.
23068       # When given -MP, icc 7.0 and 7.1 complain thusly:
23069       #   icc: Command line warning: ignoring option '-M'; no argument required
23070       # The diagnosis changed in icc 8.0:
23071       #   icc: Command line remark: option '-MP' not supported
23072       if (grep 'ignoring option' conftest.err ||
23073           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23074         am_cv_CC_dependencies_compiler_type=$depmode
23075         break
23076       fi
23077     fi
23078   done
23079
23080   cd ..
23081   rm -rf conftest.dir
23082 else
23083   am_cv_CC_dependencies_compiler_type=none
23084 fi
23085
23086 fi
23087 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23088 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23090
23091
23092
23093 if
23094   test "x$enable_dependency_tracking" != xno \
23095   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23096   am__fastdepCC_TRUE=
23097   am__fastdepCC_FALSE='#'
23098 else
23099   am__fastdepCC_TRUE='#'
23100   am__fastdepCC_FALSE=
23101 fi
23102
23103
23104 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23105         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23106 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23107    { (exit 1); exit 1; }; }
23108 fi
23109
23110 # test for make depend flag
23111 OL_MKDEP=
23112 OL_MKDEP_FLAGS=
23113 if test -z "${MKDEP}"; then
23114         OL_MKDEP="${CC-cc}"
23115         if test -z "${MKDEP_FLAGS}"; then
23116                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23117 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23118 if test "${ol_cv_mkdep+set}" = set; then
23119   echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121
23122                         ol_cv_mkdep=no
23123                         for flag in "-M" "-xM"; do
23124                                 cat > conftest.c <<EOF
23125  noCode;
23126 EOF
23127                                 if { ac_try='$OL_MKDEP $flag conftest.c'
23128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); }; } \
23133                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23134                                 then
23135                                         if test ! -f conftest."${ac_object}" ; then
23136                                                 ol_cv_mkdep=$flag
23137                                                 OL_MKDEP_FLAGS="$flag"
23138                                                 break
23139                                         fi
23140                                 fi
23141                         done
23142                         rm -f conftest*
23143
23144 fi
23145 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23146 echo "${ECHO_T}$ol_cv_mkdep" >&6
23147         else
23148                 cc_cv_mkdep=yes
23149                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23150         fi
23151 else
23152         cc_cv_mkdep=yes
23153         OL_MKDEP="${MKDEP}"
23154         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23155 fi
23156
23157
23158
23159 if test "${ol_cv_mkdep}" = no ; then
23160         # this will soon become an error
23161         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23162 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23163 fi
23164
23165 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23166 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23167 if test "${ac_cv_lib_s_afopen+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   ac_check_lib_save_LIBS=$LIBS
23171 LIBS="-ls  $LIBS"
23172 cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h.  */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h.  */
23178
23179 /* Override any gcc2 internal prototype to avoid an error.  */
23180 #ifdef __cplusplus
23181 extern "C"
23182 #endif
23183 /* We use char because int might match the return type of a gcc2
23184    builtin and then its argument prototype would still apply.  */
23185 char afopen ();
23186 int
23187 main ()
23188 {
23189 afopen ();
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196   (eval $ac_link) 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } &&
23203          { ac_try='test -z "$ac_c_werror_flag"
23204                          || test ! -s conftest.err'
23205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206   (eval $ac_try) 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; } &&
23210          { ac_try='test -s conftest$ac_exeext'
23211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212   (eval $ac_try) 2>&5
23213   ac_status=$?
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); }; }; then
23216   ac_cv_lib_s_afopen=yes
23217 else
23218   echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 ac_cv_lib_s_afopen=no
23222 fi
23223 rm -f conftest.err conftest.$ac_objext \
23224       conftest$ac_exeext conftest.$ac_ext
23225 LIBS=$ac_check_lib_save_LIBS
23226 fi
23227 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23228 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23229 if test $ac_cv_lib_s_afopen = yes; then
23230
23231         AUTH_LIBS=-ls
23232
23233 cat >>confdefs.h <<\_ACEOF
23234 #define HAVE_AIX_SECURITY 1
23235 _ACEOF
23236
23237
23238 fi
23239
23240
23241 case "$target" in
23242 *-ibm-openedition)
23243         ac_cv_func_getopt=no
23244
23245 cat >>confdefs.h <<\_ACEOF
23246 #define BOTH_STRINGS_H 1
23247 _ACEOF
23248
23249         ;;
23250 esac
23251
23252 ol_link_modules=no
23253 WITH_MODULES_ENABLED=no
23254 if test $ol_enable_modules != no ; then
23255
23256 for ac_header in ltdl.h
23257 do
23258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23260   echo "$as_me:$LINENO: checking for $ac_header" >&5
23261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23263   echo $ECHO_N "(cached) $ECHO_C" >&6
23264 fi
23265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23267 else
23268   # Is the header compilable?
23269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23271 cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h.  */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h.  */
23277 $ac_includes_default
23278 #include <$ac_header>
23279 _ACEOF
23280 rm -f conftest.$ac_objext
23281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23282   (eval $ac_compile) 2>conftest.er1
23283   ac_status=$?
23284   grep -v '^ *+' conftest.er1 >conftest.err
23285   rm -f conftest.er1
23286   cat conftest.err >&5
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); } &&
23289          { ac_try='test -z "$ac_c_werror_flag"
23290                          || test ! -s conftest.err'
23291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292   (eval $ac_try) 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; } &&
23296          { ac_try='test -s conftest.$ac_objext'
23297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298   (eval $ac_try) 2>&5
23299   ac_status=$?
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); }; }; then
23302   ac_header_compiler=yes
23303 else
23304   echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307 ac_header_compiler=no
23308 fi
23309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23311 echo "${ECHO_T}$ac_header_compiler" >&6
23312
23313 # Is the header present?
23314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23316 cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322 #include <$ac_header>
23323 _ACEOF
23324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } >/dev/null; then
23332   if test -s conftest.err; then
23333     ac_cpp_err=$ac_c_preproc_warn_flag
23334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23335   else
23336     ac_cpp_err=
23337   fi
23338 else
23339   ac_cpp_err=yes
23340 fi
23341 if test -z "$ac_cpp_err"; then
23342   ac_header_preproc=yes
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347   ac_header_preproc=no
23348 fi
23349 rm -f conftest.err conftest.$ac_ext
23350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23351 echo "${ECHO_T}$ac_header_preproc" >&6
23352
23353 # So?  What about this header?
23354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23355   yes:no: )
23356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23360     ac_header_preproc=yes
23361     ;;
23362   no:yes:* )
23363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23375     (
23376       cat <<\_ASBOX
23377 ## ------------------------------------------ ##
23378 ## Report this to the AC_PACKAGE_NAME lists.  ##
23379 ## ------------------------------------------ ##
23380 _ASBOX
23381     ) |
23382       sed "s/^/$as_me: WARNING:     /" >&2
23383     ;;
23384 esac
23385 echo "$as_me:$LINENO: checking for $ac_header" >&5
23386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23388   echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390   eval "$as_ac_Header=\$ac_header_preproc"
23391 fi
23392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23394
23395 fi
23396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23397   cat >>confdefs.h <<_ACEOF
23398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23399 _ACEOF
23400
23401 fi
23402
23403 done
23404
23405
23406         if test $ac_cv_header_ltdl_h = no ; then
23407                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23408 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23409    { (exit 1); exit 1; }; }
23410         fi
23411
23412         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23413 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23414 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23415   echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417   ac_check_lib_save_LIBS=$LIBS
23418 LIBS="-lltdl  $LIBS"
23419 cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425
23426 /* Override any gcc2 internal prototype to avoid an error.  */
23427 #ifdef __cplusplus
23428 extern "C"
23429 #endif
23430 /* We use char because int might match the return type of a gcc2
23431    builtin and then its argument prototype would still apply.  */
23432 char lt_dlinit ();
23433 int
23434 main ()
23435 {
23436 lt_dlinit ();
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443   (eval $ac_link) 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } &&
23450          { ac_try='test -z "$ac_c_werror_flag"
23451                          || test ! -s conftest.err'
23452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); }; } &&
23457          { ac_try='test -s conftest$ac_exeext'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; }; then
23463   ac_cv_lib_ltdl_lt_dlinit=yes
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 ac_cv_lib_ltdl_lt_dlinit=no
23469 fi
23470 rm -f conftest.err conftest.$ac_objext \
23471       conftest$ac_exeext conftest.$ac_ext
23472 LIBS=$ac_check_lib_save_LIBS
23473 fi
23474 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23475 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23476 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23477
23478                 MODULES_LIBS=-lltdl
23479
23480 cat >>confdefs.h <<\_ACEOF
23481 #define HAVE_LIBLTDL 1
23482 _ACEOF
23483
23484
23485 fi
23486
23487
23488         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23489                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23490 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23491    { (exit 1); exit 1; }; }
23492         fi
23493         ol_link_modules=yes
23494         WITH_MODULES_ENABLED=yes
23495
23496 else
23497         for i in $Backends; do
23498                 eval "ol_tmp=\$ol_enable_$i"
23499                 if test $ol_tmp = mod ; then
23500                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23501 echo "$as_me: WARNING: building static $i backend" >&2;}
23502                         eval "ol_enable_$i=yes"
23503                 fi
23504         done
23505         for i in $Overlays; do
23506                 eval "ol_tmp=\$ol_enable_$i"
23507                 if test $ol_tmp = mod ; then
23508                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23509 echo "$as_me: WARNING: building static $i overlay" >&2;}
23510                         eval "ol_enable_$i=yes"
23511                 fi
23512         done
23513 fi
23514
23515 # test for EBCDIC
23516 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23517 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23518 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23519   echo $ECHO_N "(cached) $ECHO_C" >&6
23520 else
23521
23522         cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h.  */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h.  */
23528
23529 #if !('M' == 0xd4)
23530 #include <__ASCII__/generate_error.h>
23531 #endif
23532
23533 _ACEOF
23534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23536   ac_status=$?
23537   grep -v '^ *+' conftest.er1 >conftest.err
23538   rm -f conftest.er1
23539   cat conftest.err >&5
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } >/dev/null; then
23542   if test -s conftest.err; then
23543     ac_cpp_err=$ac_c_preproc_warn_flag
23544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23545   else
23546     ac_cpp_err=
23547   fi
23548 else
23549   ac_cpp_err=yes
23550 fi
23551 if test -z "$ac_cpp_err"; then
23552   ol_cv_cpp_ebcdic=yes
23553 else
23554   echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557   ol_cv_cpp_ebcdic=no
23558 fi
23559 rm -f conftest.err conftest.$ac_ext
23560 fi
23561 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23562 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23563 if test $ol_cv_cpp_ebcdic = yes ; then
23564
23565 cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_EBCDIC 1
23567 _ACEOF
23568
23569 fi
23570
23571 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23573 if test "${ol_cv_header_stdc+set}" = set; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576   cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h.  */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h.  */
23582 #include <stdlib.h>
23583 #include <stdarg.h>
23584 #include <string.h>
23585 #include <float.h>
23586 _ACEOF
23587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23589   ac_status=$?
23590   grep -v '^ *+' conftest.er1 >conftest.err
23591   rm -f conftest.er1
23592   cat conftest.err >&5
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); } >/dev/null; then
23595   if test -s conftest.err; then
23596     ac_cpp_err=$ac_c_preproc_warn_flag
23597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23598   else
23599     ac_cpp_err=
23600   fi
23601 else
23602   ac_cpp_err=yes
23603 fi
23604 if test -z "$ac_cpp_err"; then
23605   ol_cv_header_stdc=yes
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610   ol_cv_header_stdc=no
23611 fi
23612 rm -f conftest.err conftest.$ac_ext
23613
23614 if test $ol_cv_header_stdc = yes; then
23615   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h.  */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h.  */
23622 #include <string.h>
23623
23624 _ACEOF
23625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23626   $EGREP "memchr" >/dev/null 2>&1; then
23627   :
23628 else
23629   ol_cv_header_stdc=no
23630 fi
23631 rm -f conftest*
23632
23633 fi
23634
23635 if test $ol_cv_header_stdc = yes; then
23636   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23637 cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 #include <stdlib.h>
23644
23645 _ACEOF
23646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23647   $EGREP "free" >/dev/null 2>&1; then
23648   :
23649 else
23650   ol_cv_header_stdc=no
23651 fi
23652 rm -f conftest*
23653
23654 fi
23655
23656 if test $ol_cv_header_stdc = yes; then
23657   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23658 if test "$cross_compiling" = yes; then
23659   :
23660 else
23661   cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h.  */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h.  */
23667 #include <ctype.h>
23668 #ifndef HAVE_EBCDIC
23669 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23670 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23671 #else
23672 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23673                 || ('j' <= (c) && (c) <= 'r') \
23674                 || ('s' <= (c) && (c) <= 'z'))
23675 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23676 #endif
23677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23678 int main () { int i; for (i = 0; i < 256; i++)
23679 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23680 exit (0); }
23681
23682 _ACEOF
23683 rm -f conftest$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685   (eval $ac_link) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   :
23695 else
23696   echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700 ( exit $ac_status )
23701 ol_cv_header_stdc=no
23702 fi
23703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23704 fi
23705 fi
23706 fi
23707 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23708 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23709 if test $ol_cv_header_stdc = yes; then
23710   cat >>confdefs.h <<\_ACEOF
23711 #define STDC_HEADERS 1
23712 _ACEOF
23713
23714 fi
23715 ac_cv_header_stdc=disable
23716
23717
23718 if test $ol_cv_header_stdc != yes; then
23719         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23720 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23721 fi
23722
23723
23724
23725
23726
23727
23728 ac_header_dirent=no
23729 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23730   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23731 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23732 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742 #include <sys/types.h>
23743 #include <$ac_hdr>
23744
23745 int
23746 main ()
23747 {
23748 if ((DIR *) 0)
23749 return 0;
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext
23755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23756   (eval $ac_compile) 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } &&
23763          { ac_try='test -z "$ac_c_werror_flag"
23764                          || test ! -s conftest.err'
23765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766   (eval $ac_try) 2>&5
23767   ac_status=$?
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); }; } &&
23770          { ac_try='test -s conftest.$ac_objext'
23771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772   (eval $ac_try) 2>&5
23773   ac_status=$?
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); }; }; then
23776   eval "$as_ac_Header=yes"
23777 else
23778   echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23780
23781 eval "$as_ac_Header=no"
23782 fi
23783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23784 fi
23785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23788   cat >>confdefs.h <<_ACEOF
23789 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23790 _ACEOF
23791
23792 ac_header_dirent=$ac_hdr; break
23793 fi
23794
23795 done
23796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23797 if test $ac_header_dirent = dirent.h; then
23798   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23799 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23800 if test "${ac_cv_search_opendir+set}" = set; then
23801   echo $ECHO_N "(cached) $ECHO_C" >&6
23802 else
23803   ac_func_search_save_LIBS=$LIBS
23804 ac_cv_search_opendir=no
23805 cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811
23812 /* Override any gcc2 internal prototype to avoid an error.  */
23813 #ifdef __cplusplus
23814 extern "C"
23815 #endif
23816 /* We use char because int might match the return type of a gcc2
23817    builtin and then its argument prototype would still apply.  */
23818 char opendir ();
23819 int
23820 main ()
23821 {
23822 opendir ();
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829   (eval $ac_link) 2>conftest.er1
23830   ac_status=$?
23831   grep -v '^ *+' conftest.er1 >conftest.err
23832   rm -f conftest.er1
23833   cat conftest.err >&5
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } &&
23836          { ac_try='test -z "$ac_c_werror_flag"
23837                          || test ! -s conftest.err'
23838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839   (eval $ac_try) 2>&5
23840   ac_status=$?
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); }; } &&
23843          { ac_try='test -s conftest$ac_exeext'
23844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845   (eval $ac_try) 2>&5
23846   ac_status=$?
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); }; }; then
23849   ac_cv_search_opendir="none required"
23850 else
23851   echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854 fi
23855 rm -f conftest.err conftest.$ac_objext \
23856       conftest$ac_exeext conftest.$ac_ext
23857 if test "$ac_cv_search_opendir" = no; then
23858   for ac_lib in dir; do
23859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23860     cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h.  */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h.  */
23866
23867 /* Override any gcc2 internal prototype to avoid an error.  */
23868 #ifdef __cplusplus
23869 extern "C"
23870 #endif
23871 /* We use char because int might match the return type of a gcc2
23872    builtin and then its argument prototype would still apply.  */
23873 char opendir ();
23874 int
23875 main ()
23876 {
23877 opendir ();
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 rm -f conftest.$ac_objext conftest$ac_exeext
23883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23884   (eval $ac_link) 2>conftest.er1
23885   ac_status=$?
23886   grep -v '^ *+' conftest.er1 >conftest.err
23887   rm -f conftest.er1
23888   cat conftest.err >&5
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); } &&
23891          { ac_try='test -z "$ac_c_werror_flag"
23892                          || test ! -s conftest.err'
23893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894   (eval $ac_try) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); }; } &&
23898          { ac_try='test -s conftest$ac_exeext'
23899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900   (eval $ac_try) 2>&5
23901   ac_status=$?
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); }; }; then
23904   ac_cv_search_opendir="-l$ac_lib"
23905 break
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910 fi
23911 rm -f conftest.err conftest.$ac_objext \
23912       conftest$ac_exeext conftest.$ac_ext
23913   done
23914 fi
23915 LIBS=$ac_func_search_save_LIBS
23916 fi
23917 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23918 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23919 if test "$ac_cv_search_opendir" != no; then
23920   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23921
23922 fi
23923
23924 else
23925   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23926 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23927 if test "${ac_cv_search_opendir+set}" = set; then
23928   echo $ECHO_N "(cached) $ECHO_C" >&6
23929 else
23930   ac_func_search_save_LIBS=$LIBS
23931 ac_cv_search_opendir=no
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h.  */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h.  */
23938
23939 /* Override any gcc2 internal prototype to avoid an error.  */
23940 #ifdef __cplusplus
23941 extern "C"
23942 #endif
23943 /* We use char because int might match the return type of a gcc2
23944    builtin and then its argument prototype would still apply.  */
23945 char opendir ();
23946 int
23947 main ()
23948 {
23949 opendir ();
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956   (eval $ac_link) 2>conftest.er1
23957   ac_status=$?
23958   grep -v '^ *+' conftest.er1 >conftest.err
23959   rm -f conftest.er1
23960   cat conftest.err >&5
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); } &&
23963          { ac_try='test -z "$ac_c_werror_flag"
23964                          || test ! -s conftest.err'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; } &&
23970          { ac_try='test -s conftest$ac_exeext'
23971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972   (eval $ac_try) 2>&5
23973   ac_status=$?
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); }; }; then
23976   ac_cv_search_opendir="none required"
23977 else
23978   echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981 fi
23982 rm -f conftest.err conftest.$ac_objext \
23983       conftest$ac_exeext conftest.$ac_ext
23984 if test "$ac_cv_search_opendir" = no; then
23985   for ac_lib in x; do
23986     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23987     cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h.  */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h.  */
23993
23994 /* Override any gcc2 internal prototype to avoid an error.  */
23995 #ifdef __cplusplus
23996 extern "C"
23997 #endif
23998 /* We use char because int might match the return type of a gcc2
23999    builtin and then its argument prototype would still apply.  */
24000 char opendir ();
24001 int
24002 main ()
24003 {
24004 opendir ();
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext conftest$ac_exeext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24011   (eval $ac_link) 2>conftest.er1
24012   ac_status=$?
24013   grep -v '^ *+' conftest.er1 >conftest.err
24014   rm -f conftest.er1
24015   cat conftest.err >&5
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } &&
24018          { ac_try='test -z "$ac_c_werror_flag"
24019                          || test ! -s conftest.err'
24020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021   (eval $ac_try) 2>&5
24022   ac_status=$?
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); }; } &&
24025          { ac_try='test -s conftest$ac_exeext'
24026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027   (eval $ac_try) 2>&5
24028   ac_status=$?
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); }; }; then
24031   ac_cv_search_opendir="-l$ac_lib"
24032 break
24033 else
24034   echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24036
24037 fi
24038 rm -f conftest.err conftest.$ac_objext \
24039       conftest$ac_exeext conftest.$ac_ext
24040   done
24041 fi
24042 LIBS=$ac_func_search_save_LIBS
24043 fi
24044 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24045 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24046 if test "$ac_cv_search_opendir" != no; then
24047   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24048
24049 fi
24050
24051 fi
24052
24053 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24056   echo $ECHO_N "(cached) $ECHO_C" >&6
24057 else
24058   cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h.  */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h.  */
24064 #include <sys/types.h>
24065 #include <sys/wait.h>
24066 #ifndef WEXITSTATUS
24067 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
24068 #endif
24069 #ifndef WIFEXITED
24070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24071 #endif
24072
24073 int
24074 main ()
24075 {
24076   int s;
24077   wait (&s);
24078   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24079   ;
24080   return 0;
24081 }
24082 _ACEOF
24083 rm -f conftest.$ac_objext
24084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24085   (eval $ac_compile) 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } &&
24092          { ac_try='test -z "$ac_c_werror_flag"
24093                          || test ! -s conftest.err'
24094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095   (eval $ac_try) 2>&5
24096   ac_status=$?
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); }; } &&
24099          { ac_try='test -s conftest.$ac_objext'
24100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101   (eval $ac_try) 2>&5
24102   ac_status=$?
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); }; }; then
24105   ac_cv_header_sys_wait_h=yes
24106 else
24107   echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24109
24110 ac_cv_header_sys_wait_h=no
24111 fi
24112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24113 fi
24114 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24115 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24116 if test $ac_cv_header_sys_wait_h = yes; then
24117
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE_SYS_WAIT_H 1
24120 _ACEOF
24121
24122 fi
24123
24124 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24125 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24126 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24127   echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129   cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 #include <sys/types.h>
24136 #include <termios.h>
24137 #ifdef TIOCGWINSZ
24138   yes
24139 #endif
24140
24141 _ACEOF
24142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24143   $EGREP "yes" >/dev/null 2>&1; then
24144   ac_cv_sys_tiocgwinsz_in_termios_h=yes
24145 else
24146   ac_cv_sys_tiocgwinsz_in_termios_h=no
24147 fi
24148 rm -f conftest*
24149
24150 fi
24151 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24152 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24153
24154 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24155   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24156 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24157 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24158   echo $ECHO_N "(cached) $ECHO_C" >&6
24159 else
24160   cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h.  */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h.  */
24166 #include <sys/types.h>
24167 #include <sys/ioctl.h>
24168 #ifdef TIOCGWINSZ
24169   yes
24170 #endif
24171
24172 _ACEOF
24173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24174   $EGREP "yes" >/dev/null 2>&1; then
24175   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24176 else
24177   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24178 fi
24179 rm -f conftest*
24180
24181 fi
24182 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24183 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24184
24185   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24186
24187 cat >>confdefs.h <<\_ACEOF
24188 #define GWINSZ_IN_SYS_IOCTL 1
24189 _ACEOF
24190
24191   fi
24192 fi
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242 for ac_header in \
24243         arpa/inet.h             \
24244         arpa/nameser.h          \
24245         assert.h                \
24246         bits/types.h            \
24247         conio.h                 \
24248         crypt.h                 \
24249         direct.h                \
24250         errno.h                 \
24251         fcntl.h                 \
24252         filio.h                 \
24253         getopt.h                \
24254         grp.h                   \
24255         io.h                    \
24256         libutil.h               \
24257         limits.h                \
24258         locale.h                \
24259         netinet/tcp.h           \
24260         malloc.h                \
24261         memory.h                \
24262         psap.h                  \
24263         pwd.h                   \
24264         process.h               \
24265         sgtty.h                 \
24266         shadow.h                \
24267         stddef.h                \
24268         string.h                \
24269         strings.h               \
24270         sysexits.h              \
24271         sys/file.h              \
24272         sys/filio.h             \
24273         sys/errno.h             \
24274         sys/ioctl.h             \
24275         sys/param.h             \
24276         sys/resource.h          \
24277         sys/select.h            \
24278         sys/socket.h            \
24279         sys/stat.h              \
24280         sys/syslog.h            \
24281         sys/time.h              \
24282         sys/types.h             \
24283         sys/uio.h               \
24284         syslog.h                \
24285         termios.h               \
24286         unistd.h                \
24287         utime.h                 \
24288         winsock.h               \
24289         winsock2.h              \
24290
24291 do
24292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24294   echo "$as_me:$LINENO: checking for $ac_header" >&5
24295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24297   echo $ECHO_N "(cached) $ECHO_C" >&6
24298 fi
24299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24301 else
24302   # Is the header compilable?
24303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24305 cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 $ac_includes_default
24312 #include <$ac_header>
24313 _ACEOF
24314 rm -f conftest.$ac_objext
24315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24316   (eval $ac_compile) 2>conftest.er1
24317   ac_status=$?
24318   grep -v '^ *+' conftest.er1 >conftest.err
24319   rm -f conftest.er1
24320   cat conftest.err >&5
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); } &&
24323          { ac_try='test -z "$ac_c_werror_flag"
24324                          || test ! -s conftest.err'
24325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24326   (eval $ac_try) 2>&5
24327   ac_status=$?
24328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329   (exit $ac_status); }; } &&
24330          { ac_try='test -s conftest.$ac_objext'
24331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332   (eval $ac_try) 2>&5
24333   ac_status=$?
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); }; }; then
24336   ac_header_compiler=yes
24337 else
24338   echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341 ac_header_compiler=no
24342 fi
24343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24345 echo "${ECHO_T}$ac_header_compiler" >&6
24346
24347 # Is the header present?
24348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24350 cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h.  */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h.  */
24356 #include <$ac_header>
24357 _ACEOF
24358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24360   ac_status=$?
24361   grep -v '^ *+' conftest.er1 >conftest.err
24362   rm -f conftest.er1
24363   cat conftest.err >&5
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); } >/dev/null; then
24366   if test -s conftest.err; then
24367     ac_cpp_err=$ac_c_preproc_warn_flag
24368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24369   else
24370     ac_cpp_err=
24371   fi
24372 else
24373   ac_cpp_err=yes
24374 fi
24375 if test -z "$ac_cpp_err"; then
24376   ac_header_preproc=yes
24377 else
24378   echo "$as_me: failed program was:" >&5
24379 sed 's/^/| /' conftest.$ac_ext >&5
24380
24381   ac_header_preproc=no
24382 fi
24383 rm -f conftest.err conftest.$ac_ext
24384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24385 echo "${ECHO_T}$ac_header_preproc" >&6
24386
24387 # So?  What about this header?
24388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24389   yes:no: )
24390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24394     ac_header_preproc=yes
24395     ;;
24396   no:yes:* )
24397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24409     (
24410       cat <<\_ASBOX
24411 ## ------------------------------------------ ##
24412 ## Report this to the AC_PACKAGE_NAME lists.  ##
24413 ## ------------------------------------------ ##
24414 _ASBOX
24415     ) |
24416       sed "s/^/$as_me: WARNING:     /" >&2
24417     ;;
24418 esac
24419 echo "$as_me:$LINENO: checking for $ac_header" >&5
24420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24422   echo $ECHO_N "(cached) $ECHO_C" >&6
24423 else
24424   eval "$as_ac_Header=\$ac_header_preproc"
24425 fi
24426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24428
24429 fi
24430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24431   cat >>confdefs.h <<_ACEOF
24432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24433 _ACEOF
24434
24435 fi
24436
24437 done
24438
24439
24440
24441 for ac_header in resolv.h
24442 do
24443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24444 echo "$as_me:$LINENO: checking for $ac_header" >&5
24445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24447   echo $ECHO_N "(cached) $ECHO_C" >&6
24448 else
24449   cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455 $ac_includes_default
24456 #include <netinet/in.h>
24457
24458
24459 #include <$ac_header>
24460 _ACEOF
24461 rm -f conftest.$ac_objext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24463   (eval $ac_compile) 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } &&
24470          { ac_try='test -z "$ac_c_werror_flag"
24471                          || test ! -s conftest.err'
24472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; } &&
24477          { ac_try='test -s conftest.$ac_objext'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; }; then
24483   eval "$as_ac_Header=yes"
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 eval "$as_ac_Header=no"
24489 fi
24490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24491 fi
24492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24495   cat >>confdefs.h <<_ACEOF
24496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24497 _ACEOF
24498
24499 fi
24500
24501 done
24502
24503
24504
24505 for ac_header in sys/ucred.h
24506 do
24507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24508 echo "$as_me:$LINENO: checking for $ac_header" >&5
24509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24511   echo $ECHO_N "(cached) $ECHO_C" >&6
24512 else
24513   cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h.  */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h.  */
24519 $ac_includes_default
24520 #ifdef HAVE_SYS_PARAM_H
24521 #include <sys/param.h>
24522 #endif
24523
24524
24525 #include <$ac_header>
24526 _ACEOF
24527 rm -f conftest.$ac_objext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24529   (eval $ac_compile) 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } &&
24536          { ac_try='test -z "$ac_c_werror_flag"
24537                          || test ! -s conftest.err'
24538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539   (eval $ac_try) 2>&5
24540   ac_status=$?
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; } &&
24543          { ac_try='test -s conftest.$ac_objext'
24544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545   (eval $ac_try) 2>&5
24546   ac_status=$?
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); }; }; then
24549   eval "$as_ac_Header=yes"
24550 else
24551   echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24553
24554 eval "$as_ac_Header=no"
24555 fi
24556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24557 fi
24558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24561   cat >>confdefs.h <<_ACEOF
24562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24563 _ACEOF
24564
24565 fi
24566
24567 done
24568
24569
24570
24571
24572
24573 for ac_func in sigaction sigset
24574 do
24575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24576 echo "$as_me:$LINENO: checking for $ac_func" >&5
24577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24578 if eval "test \"\${$as_ac_var+set}\" = set"; then
24579   echo $ECHO_N "(cached) $ECHO_C" >&6
24580 else
24581   cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h.  */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h.  */
24587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24589 #define $ac_func innocuous_$ac_func
24590
24591 /* System header to define __stub macros and hopefully few prototypes,
24592     which can conflict with char $ac_func (); below.
24593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24594     <limits.h> exists even on freestanding compilers.  */
24595
24596 #ifdef __STDC__
24597 # include <limits.h>
24598 #else
24599 # include <assert.h>
24600 #endif
24601
24602 #undef $ac_func
24603
24604 /* Override any gcc2 internal prototype to avoid an error.  */
24605 #ifdef __cplusplus
24606 extern "C"
24607 {
24608 #endif
24609 /* We use char because int might match the return type of a gcc2
24610    builtin and then its argument prototype would still apply.  */
24611 char $ac_func ();
24612 /* The GNU C library defines this for functions which it implements
24613     to always fail with ENOSYS.  Some functions are actually named
24614     something starting with __ and the normal name is an alias.  */
24615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24616 choke me
24617 #else
24618 char (*f) () = $ac_func;
24619 #endif
24620 #ifdef __cplusplus
24621 }
24622 #endif
24623
24624 int
24625 main ()
24626 {
24627 return f != $ac_func;
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24634   (eval $ac_link) 2>conftest.er1
24635   ac_status=$?
24636   grep -v '^ *+' conftest.er1 >conftest.err
24637   rm -f conftest.er1
24638   cat conftest.err >&5
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); } &&
24641          { ac_try='test -z "$ac_c_werror_flag"
24642                          || test ! -s conftest.err'
24643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644   (eval $ac_try) 2>&5
24645   ac_status=$?
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); }; } &&
24648          { ac_try='test -s conftest$ac_exeext'
24649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650   (eval $ac_try) 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); }; }; then
24654   eval "$as_ac_var=yes"
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659 eval "$as_ac_var=no"
24660 fi
24661 rm -f conftest.err conftest.$ac_objext \
24662       conftest$ac_exeext conftest.$ac_ext
24663 fi
24664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24666 if test `eval echo '${'$as_ac_var'}'` = yes; then
24667   cat >>confdefs.h <<_ACEOF
24668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24669 _ACEOF
24670
24671 fi
24672 done
24673
24674
24675 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24676
24677 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24678 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24679 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24680   echo $ECHO_N "(cached) $ECHO_C" >&6
24681 else
24682   ac_check_lib_save_LIBS=$LIBS
24683 LIBS="-lV3  $LIBS"
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h.  */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h.  */
24690
24691 /* Override any gcc2 internal prototype to avoid an error.  */
24692 #ifdef __cplusplus
24693 extern "C"
24694 #endif
24695 /* We use char because int might match the return type of a gcc2
24696    builtin and then its argument prototype would still apply.  */
24697 char sigset ();
24698 int
24699 main ()
24700 {
24701 sigset ();
24702   ;
24703   return 0;
24704 }
24705 _ACEOF
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24708   (eval $ac_link) 2>conftest.er1
24709   ac_status=$?
24710   grep -v '^ *+' conftest.er1 >conftest.err
24711   rm -f conftest.er1
24712   cat conftest.err >&5
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); } &&
24715          { ac_try='test -z "$ac_c_werror_flag"
24716                          || test ! -s conftest.err'
24717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718   (eval $ac_try) 2>&5
24719   ac_status=$?
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); }; } &&
24722          { ac_try='test -s conftest$ac_exeext'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; }; then
24728   ac_cv_lib_V3_sigset=yes
24729 else
24730   echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733 ac_cv_lib_V3_sigset=no
24734 fi
24735 rm -f conftest.err conftest.$ac_objext \
24736       conftest$ac_exeext conftest.$ac_ext
24737 LIBS=$ac_check_lib_save_LIBS
24738 fi
24739 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24740 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24741 if test $ac_cv_lib_V3_sigset = yes; then
24742   cat >>confdefs.h <<_ACEOF
24743 #define HAVE_LIBV3 1
24744 _ACEOF
24745
24746   LIBS="-lV3 $LIBS"
24747
24748 fi
24749
24750 fi
24751
24752 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24753 echo "$as_me:$LINENO: checking for winsock" >&5
24754 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24755 if test "${ol_cv_winsock+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758   save_LIBS="$LIBS"
24759 for curlib in ws2_32 wsock32; do
24760         LIBS="$LIBS -l$curlib"
24761         cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767 #include <winsock.h>
24768
24769 int
24770 main ()
24771 {
24772
24773                         socket(0,0,0);
24774                         select(0,NULL,NULL,NULL,NULL);
24775                         closesocket(0);
24776                         gethostname(NULL,0);
24777
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784   (eval $ac_link) 2>conftest.er1
24785   ac_status=$?
24786   grep -v '^ *+' conftest.er1 >conftest.err
24787   rm -f conftest.er1
24788   cat conftest.err >&5
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } &&
24791          { ac_try='test -z "$ac_c_werror_flag"
24792                          || test ! -s conftest.err'
24793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794   (eval $ac_try) 2>&5
24795   ac_status=$?
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); }; } &&
24798          { ac_try='test -s conftest$ac_exeext'
24799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800   (eval $ac_try) 2>&5
24801   ac_status=$?
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); }; }; then
24804   ol_cv_winsock=yes
24805 else
24806   echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809 ol_cv_winsock=no
24810 fi
24811 rm -f conftest.err conftest.$ac_objext \
24812       conftest$ac_exeext conftest.$ac_ext
24813
24814         if test $ol_cv_winsock = yes; then
24815
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_WINSOCK 1
24818 _ACEOF
24819
24820                 ac_cv_func_socket=yes
24821                 ac_cv_func_select=yes
24822                 ac_cv_func_closesocket=yes
24823                 ac_cv_func_gethostname=yes
24824                 if test $curlib = ws2_32; then
24825                         ol_cv_winsock=winsock2
24826
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_WINSOCK2 1
24829 _ACEOF
24830
24831                 fi
24832                 break
24833         fi
24834         LIBS="$save_LIBS"
24835 done
24836 fi
24837 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24838 echo "${ECHO_T}$ol_cv_winsock" >&6
24839 fi
24840
24841
24842 echo "$as_me:$LINENO: checking for socket" >&5
24843 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24844 if test "${ac_cv_func_socket+set}" = set; then
24845   echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847   cat >conftest.$ac_ext <<_ACEOF
24848 /* confdefs.h.  */
24849 _ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h.  */
24853 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24855 #define socket innocuous_socket
24856
24857 /* System header to define __stub macros and hopefully few prototypes,
24858     which can conflict with char socket (); below.
24859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24860     <limits.h> exists even on freestanding compilers.  */
24861
24862 #ifdef __STDC__
24863 # include <limits.h>
24864 #else
24865 # include <assert.h>
24866 #endif
24867
24868 #undef socket
24869
24870 /* Override any gcc2 internal prototype to avoid an error.  */
24871 #ifdef __cplusplus
24872 extern "C"
24873 {
24874 #endif
24875 /* We use char because int might match the return type of a gcc2
24876    builtin and then its argument prototype would still apply.  */
24877 char socket ();
24878 /* The GNU C library defines this for functions which it implements
24879     to always fail with ENOSYS.  Some functions are actually named
24880     something starting with __ and the normal name is an alias.  */
24881 #if defined (__stub_socket) || defined (__stub___socket)
24882 choke me
24883 #else
24884 char (*f) () = socket;
24885 #endif
24886 #ifdef __cplusplus
24887 }
24888 #endif
24889
24890 int
24891 main ()
24892 {
24893 return f != socket;
24894   ;
24895   return 0;
24896 }
24897 _ACEOF
24898 rm -f conftest.$ac_objext conftest$ac_exeext
24899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24900   (eval $ac_link) 2>conftest.er1
24901   ac_status=$?
24902   grep -v '^ *+' conftest.er1 >conftest.err
24903   rm -f conftest.er1
24904   cat conftest.err >&5
24905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906   (exit $ac_status); } &&
24907          { ac_try='test -z "$ac_c_werror_flag"
24908                          || test ! -s conftest.err'
24909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910   (eval $ac_try) 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); }; } &&
24914          { ac_try='test -s conftest$ac_exeext'
24915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916   (eval $ac_try) 2>&5
24917   ac_status=$?
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); }; }; then
24920   ac_cv_func_socket=yes
24921 else
24922   echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925 ac_cv_func_socket=no
24926 fi
24927 rm -f conftest.err conftest.$ac_objext \
24928       conftest$ac_exeext conftest.$ac_ext
24929 fi
24930 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24931 echo "${ECHO_T}$ac_cv_func_socket" >&6
24932 if test $ac_cv_func_socket = yes; then
24933   :
24934 else
24935
24936
24937 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24938 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24939 if test "${ac_cv_lib_socket_main+set}" = set; then
24940   echo $ECHO_N "(cached) $ECHO_C" >&6
24941 else
24942   ac_check_lib_save_LIBS=$LIBS
24943 LIBS="-lsocket  $LIBS"
24944 cat >conftest.$ac_ext <<_ACEOF
24945 /* confdefs.h.  */
24946 _ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h.  */
24950
24951
24952 int
24953 main ()
24954 {
24955 main ();
24956   ;
24957   return 0;
24958 }
24959 _ACEOF
24960 rm -f conftest.$ac_objext conftest$ac_exeext
24961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24962   (eval $ac_link) 2>conftest.er1
24963   ac_status=$?
24964   grep -v '^ *+' conftest.er1 >conftest.err
24965   rm -f conftest.er1
24966   cat conftest.err >&5
24967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968   (exit $ac_status); } &&
24969          { ac_try='test -z "$ac_c_werror_flag"
24970                          || test ! -s conftest.err'
24971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972   (eval $ac_try) 2>&5
24973   ac_status=$?
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); }; } &&
24976          { ac_try='test -s conftest$ac_exeext'
24977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978   (eval $ac_try) 2>&5
24979   ac_status=$?
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); }; }; then
24982   ac_cv_lib_socket_main=yes
24983 else
24984   echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24986
24987 ac_cv_lib_socket_main=no
24988 fi
24989 rm -f conftest.err conftest.$ac_objext \
24990       conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24992 fi
24993 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24994 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24995 if test $ac_cv_lib_socket_main = yes; then
24996   cat >>confdefs.h <<_ACEOF
24997 #define HAVE_LIBSOCKET 1
24998 _ACEOF
24999
25000   LIBS="-lsocket $LIBS"
25001
25002 fi
25003
25004
25005 echo "$as_me:$LINENO: checking for main in -lnet" >&5
25006 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
25007 if test "${ac_cv_lib_net_main+set}" = set; then
25008   echo $ECHO_N "(cached) $ECHO_C" >&6
25009 else
25010   ac_check_lib_save_LIBS=$LIBS
25011 LIBS="-lnet  $LIBS"
25012 cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h.  */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h.  */
25018
25019
25020 int
25021 main ()
25022 {
25023 main ();
25024   ;
25025   return 0;
25026 }
25027 _ACEOF
25028 rm -f conftest.$ac_objext conftest$ac_exeext
25029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25030   (eval $ac_link) 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } &&
25037          { ac_try='test -z "$ac_c_werror_flag"
25038                          || test ! -s conftest.err'
25039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040   (eval $ac_try) 2>&5
25041   ac_status=$?
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); }; } &&
25044          { ac_try='test -s conftest$ac_exeext'
25045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046   (eval $ac_try) 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); }; }; then
25050   ac_cv_lib_net_main=yes
25051 else
25052   echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25054
25055 ac_cv_lib_net_main=no
25056 fi
25057 rm -f conftest.err conftest.$ac_objext \
25058       conftest$ac_exeext conftest.$ac_ext
25059 LIBS=$ac_check_lib_save_LIBS
25060 fi
25061 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
25062 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
25063 if test $ac_cv_lib_net_main = yes; then
25064   cat >>confdefs.h <<_ACEOF
25065 #define HAVE_LIBNET 1
25066 _ACEOF
25067
25068   LIBS="-lnet $LIBS"
25069
25070 fi
25071
25072
25073 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25074 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25075 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25076   echo $ECHO_N "(cached) $ECHO_C" >&6
25077 else
25078   ac_check_lib_save_LIBS=$LIBS
25079 LIBS="-lnsl_s  $LIBS"
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
25087
25088 int
25089 main ()
25090 {
25091 main ();
25092   ;
25093   return 0;
25094 }
25095 _ACEOF
25096 rm -f conftest.$ac_objext conftest$ac_exeext
25097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098   (eval $ac_link) 2>conftest.er1
25099   ac_status=$?
25100   grep -v '^ *+' conftest.er1 >conftest.err
25101   rm -f conftest.er1
25102   cat conftest.err >&5
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); } &&
25105          { ac_try='test -z "$ac_c_werror_flag"
25106                          || test ! -s conftest.err'
25107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108   (eval $ac_try) 2>&5
25109   ac_status=$?
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); }; } &&
25112          { ac_try='test -s conftest$ac_exeext'
25113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114   (eval $ac_try) 2>&5
25115   ac_status=$?
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); }; }; then
25118   ac_cv_lib_nsl_s_main=yes
25119 else
25120   echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.$ac_ext >&5
25122
25123 ac_cv_lib_nsl_s_main=no
25124 fi
25125 rm -f conftest.err conftest.$ac_objext \
25126       conftest$ac_exeext conftest.$ac_ext
25127 LIBS=$ac_check_lib_save_LIBS
25128 fi
25129 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25130 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25131 if test $ac_cv_lib_nsl_s_main = yes; then
25132   cat >>confdefs.h <<_ACEOF
25133 #define HAVE_LIBNSL_S 1
25134 _ACEOF
25135
25136   LIBS="-lnsl_s $LIBS"
25137
25138 fi
25139
25140
25141 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25142 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25143 if test "${ac_cv_lib_nsl_main+set}" = set; then
25144   echo $ECHO_N "(cached) $ECHO_C" >&6
25145 else
25146   ac_check_lib_save_LIBS=$LIBS
25147 LIBS="-lnsl  $LIBS"
25148 cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h.  */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h.  */
25154
25155
25156 int
25157 main ()
25158 {
25159 main ();
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 rm -f conftest.$ac_objext conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166   (eval $ac_link) 2>conftest.er1
25167   ac_status=$?
25168   grep -v '^ *+' conftest.er1 >conftest.err
25169   rm -f conftest.er1
25170   cat conftest.err >&5
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); } &&
25173          { ac_try='test -z "$ac_c_werror_flag"
25174                          || test ! -s conftest.err'
25175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176   (eval $ac_try) 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; } &&
25180          { ac_try='test -s conftest$ac_exeext'
25181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182   (eval $ac_try) 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; }; then
25186   ac_cv_lib_nsl_main=yes
25187 else
25188   echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25190
25191 ac_cv_lib_nsl_main=no
25192 fi
25193 rm -f conftest.err conftest.$ac_objext \
25194       conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25196 fi
25197 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25198 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25199 if test $ac_cv_lib_nsl_main = yes; then
25200   cat >>confdefs.h <<_ACEOF
25201 #define HAVE_LIBNSL 1
25202 _ACEOF
25203
25204   LIBS="-lnsl $LIBS"
25205
25206 fi
25207
25208
25209 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25210 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25211 if test "${ac_cv_lib_inet_socket+set}" = set; then
25212   echo $ECHO_N "(cached) $ECHO_C" >&6
25213 else
25214   ac_check_lib_save_LIBS=$LIBS
25215 LIBS="-linet  $LIBS"
25216 cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h.  */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h.  */
25222
25223 /* Override any gcc2 internal prototype to avoid an error.  */
25224 #ifdef __cplusplus
25225 extern "C"
25226 #endif
25227 /* We use char because int might match the return type of a gcc2
25228    builtin and then its argument prototype would still apply.  */
25229 char socket ();
25230 int
25231 main ()
25232 {
25233 socket ();
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240   (eval $ac_link) 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } &&
25247          { ac_try='test -z "$ac_c_werror_flag"
25248                          || test ! -s conftest.err'
25249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; } &&
25254          { ac_try='test -s conftest$ac_exeext'
25255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256   (eval $ac_try) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; }; then
25260   ac_cv_lib_inet_socket=yes
25261 else
25262   echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ac_cv_lib_inet_socket=no
25266 fi
25267 rm -f conftest.err conftest.$ac_objext \
25268       conftest$ac_exeext conftest.$ac_ext
25269 LIBS=$ac_check_lib_save_LIBS
25270 fi
25271 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25272 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25273 if test $ac_cv_lib_inet_socket = yes; then
25274   cat >>confdefs.h <<_ACEOF
25275 #define HAVE_LIBINET 1
25276 _ACEOF
25277
25278   LIBS="-linet $LIBS"
25279
25280 fi
25281
25282
25283 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25284 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25285 if test "${ac_cv_lib_gen_main+set}" = set; then
25286   echo $ECHO_N "(cached) $ECHO_C" >&6
25287 else
25288   ac_check_lib_save_LIBS=$LIBS
25289 LIBS="-lgen  $LIBS"
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296
25297
25298 int
25299 main ()
25300 {
25301 main ();
25302   ;
25303   return 0;
25304 }
25305 _ACEOF
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308   (eval $ac_link) 2>conftest.er1
25309   ac_status=$?
25310   grep -v '^ *+' conftest.er1 >conftest.err
25311   rm -f conftest.er1
25312   cat conftest.err >&5
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } &&
25315          { ac_try='test -z "$ac_c_werror_flag"
25316                          || test ! -s conftest.err'
25317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318   (eval $ac_try) 2>&5
25319   ac_status=$?
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); }; } &&
25322          { ac_try='test -s conftest$ac_exeext'
25323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324   (eval $ac_try) 2>&5
25325   ac_status=$?
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); }; }; then
25328   ac_cv_lib_gen_main=yes
25329 else
25330   echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25332
25333 ac_cv_lib_gen_main=no
25334 fi
25335 rm -f conftest.err conftest.$ac_objext \
25336       conftest$ac_exeext conftest.$ac_ext
25337 LIBS=$ac_check_lib_save_LIBS
25338 fi
25339 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25340 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25341 if test $ac_cv_lib_gen_main = yes; then
25342   cat >>confdefs.h <<_ACEOF
25343 #define HAVE_LIBGEN 1
25344 _ACEOF
25345
25346   LIBS="-lgen $LIBS"
25347
25348 fi
25349
25350
25351 fi
25352
25353
25354 echo "$as_me:$LINENO: checking for select" >&5
25355 echo $ECHO_N "checking for select... $ECHO_C" >&6
25356 if test "${ac_cv_func_select+set}" = set; then
25357   echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359   cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h.  */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h.  */
25365 /* Define select to an innocuous variant, in case <limits.h> declares select.
25366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25367 #define select innocuous_select
25368
25369 /* System header to define __stub macros and hopefully few prototypes,
25370     which can conflict with char select (); below.
25371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25372     <limits.h> exists even on freestanding compilers.  */
25373
25374 #ifdef __STDC__
25375 # include <limits.h>
25376 #else
25377 # include <assert.h>
25378 #endif
25379
25380 #undef select
25381
25382 /* Override any gcc2 internal prototype to avoid an error.  */
25383 #ifdef __cplusplus
25384 extern "C"
25385 {
25386 #endif
25387 /* We use char because int might match the return type of a gcc2
25388    builtin and then its argument prototype would still apply.  */
25389 char select ();
25390 /* The GNU C library defines this for functions which it implements
25391     to always fail with ENOSYS.  Some functions are actually named
25392     something starting with __ and the normal name is an alias.  */
25393 #if defined (__stub_select) || defined (__stub___select)
25394 choke me
25395 #else
25396 char (*f) () = select;
25397 #endif
25398 #ifdef __cplusplus
25399 }
25400 #endif
25401
25402 int
25403 main ()
25404 {
25405 return f != select;
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext conftest$ac_exeext
25411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25412   (eval $ac_link) 2>conftest.er1
25413   ac_status=$?
25414   grep -v '^ *+' conftest.er1 >conftest.err
25415   rm -f conftest.er1
25416   cat conftest.err >&5
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); } &&
25419          { ac_try='test -z "$ac_c_werror_flag"
25420                          || test ! -s conftest.err'
25421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422   (eval $ac_try) 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; } &&
25426          { ac_try='test -s conftest$ac_exeext'
25427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428   (eval $ac_try) 2>&5
25429   ac_status=$?
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); }; }; then
25432   ac_cv_func_select=yes
25433 else
25434   echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 ac_cv_func_select=no
25438 fi
25439 rm -f conftest.err conftest.$ac_objext \
25440       conftest$ac_exeext conftest.$ac_ext
25441 fi
25442 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25443 echo "${ECHO_T}$ac_cv_func_select" >&6
25444 if test $ac_cv_func_select = yes; then
25445   :
25446 else
25447   { { echo "$as_me:$LINENO: error: select() required." >&5
25448 echo "$as_me: error: select() required." >&2;}
25449    { (exit 1); exit 1; }; }
25450 fi
25451
25452
25453 if test "${ac_cv_header_winsock_h}" != yes; then
25454
25455
25456 for ac_header in sys/select.h sys/socket.h
25457 do
25458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25460   echo "$as_me:$LINENO: checking for $ac_header" >&5
25461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 fi
25465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25467 else
25468   # Is the header compilable?
25469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25471 cat >conftest.$ac_ext <<_ACEOF
25472 /* confdefs.h.  */
25473 _ACEOF
25474 cat confdefs.h >>conftest.$ac_ext
25475 cat >>conftest.$ac_ext <<_ACEOF
25476 /* end confdefs.h.  */
25477 $ac_includes_default
25478 #include <$ac_header>
25479 _ACEOF
25480 rm -f conftest.$ac_objext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25482   (eval $ac_compile) 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_objext'
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   ac_header_compiler=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507 ac_header_compiler=no
25508 fi
25509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25511 echo "${ECHO_T}$ac_header_compiler" >&6
25512
25513 # Is the header present?
25514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25516 cat >conftest.$ac_ext <<_ACEOF
25517 /* confdefs.h.  */
25518 _ACEOF
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h.  */
25522 #include <$ac_header>
25523 _ACEOF
25524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25526   ac_status=$?
25527   grep -v '^ *+' conftest.er1 >conftest.err
25528   rm -f conftest.er1
25529   cat conftest.err >&5
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } >/dev/null; then
25532   if test -s conftest.err; then
25533     ac_cpp_err=$ac_c_preproc_warn_flag
25534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25535   else
25536     ac_cpp_err=
25537   fi
25538 else
25539   ac_cpp_err=yes
25540 fi
25541 if test -z "$ac_cpp_err"; then
25542   ac_header_preproc=yes
25543 else
25544   echo "$as_me: failed program was:" >&5
25545 sed 's/^/| /' conftest.$ac_ext >&5
25546
25547   ac_header_preproc=no
25548 fi
25549 rm -f conftest.err conftest.$ac_ext
25550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25551 echo "${ECHO_T}$ac_header_preproc" >&6
25552
25553 # So?  What about this header?
25554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25555   yes:no: )
25556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25560     ac_header_preproc=yes
25561     ;;
25562   no:yes:* )
25563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25575     (
25576       cat <<\_ASBOX
25577 ## ------------------------------------------ ##
25578 ## Report this to the AC_PACKAGE_NAME lists.  ##
25579 ## ------------------------------------------ ##
25580 _ASBOX
25581     ) |
25582       sed "s/^/$as_me: WARNING:     /" >&2
25583     ;;
25584 esac
25585 echo "$as_me:$LINENO: checking for $ac_header" >&5
25586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25588   echo $ECHO_N "(cached) $ECHO_C" >&6
25589 else
25590   eval "$as_ac_Header=\$ac_header_preproc"
25591 fi
25592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25594
25595 fi
25596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25597   cat >>confdefs.h <<_ACEOF
25598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25599 _ACEOF
25600
25601 fi
25602
25603 done
25604
25605 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25606 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25607 if test "${ac_cv_func_select_args+set}" = set; then
25608   echo $ECHO_N "(cached) $ECHO_C" >&6
25609 else
25610   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25611  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25612   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25613    cat >conftest.$ac_ext <<_ACEOF
25614 /* confdefs.h.  */
25615 _ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h.  */
25619 $ac_includes_default
25620 #if HAVE_SYS_SELECT_H
25621 # include <sys/select.h>
25622 #endif
25623 #if HAVE_SYS_SOCKET_H
25624 # include <sys/socket.h>
25625 #endif
25626
25627 int
25628 main ()
25629 {
25630 extern int select ($ac_arg1,
25631                                             $ac_arg234, $ac_arg234, $ac_arg234,
25632                                             $ac_arg5);
25633   ;
25634   return 0;
25635 }
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25639   (eval $ac_compile) 2>conftest.er1
25640   ac_status=$?
25641   grep -v '^ *+' conftest.er1 >conftest.err
25642   rm -f conftest.er1
25643   cat conftest.err >&5
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); } &&
25646          { ac_try='test -z "$ac_c_werror_flag"
25647                          || test ! -s conftest.err'
25648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649   (eval $ac_try) 2>&5
25650   ac_status=$?
25651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652   (exit $ac_status); }; } &&
25653          { ac_try='test -s conftest.$ac_objext'
25654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655   (eval $ac_try) 2>&5
25656   ac_status=$?
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); }; }; then
25659   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25660 else
25661   echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664 fi
25665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25666   done
25667  done
25668 done
25669 # Provide a safe default value.
25670 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25671
25672 fi
25673 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25674 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25675 ac_save_IFS=$IFS; IFS=','
25676 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25677 IFS=$ac_save_IFS
25678 shift
25679
25680 cat >>confdefs.h <<_ACEOF
25681 #define SELECT_TYPE_ARG1 $1
25682 _ACEOF
25683
25684
25685 cat >>confdefs.h <<_ACEOF
25686 #define SELECT_TYPE_ARG234 ($2)
25687 _ACEOF
25688
25689
25690 cat >>confdefs.h <<_ACEOF
25691 #define SELECT_TYPE_ARG5 ($3)
25692 _ACEOF
25693
25694 rm -f conftest*
25695
25696 fi
25697
25698
25699
25700 for ac_func in poll
25701 do
25702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25703 echo "$as_me:$LINENO: checking for $ac_func" >&5
25704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25705 if eval "test \"\${$as_ac_var+set}\" = set"; then
25706   echo $ECHO_N "(cached) $ECHO_C" >&6
25707 else
25708   cat >conftest.$ac_ext <<_ACEOF
25709 /* confdefs.h.  */
25710 _ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h.  */
25714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25716 #define $ac_func innocuous_$ac_func
25717
25718 /* System header to define __stub macros and hopefully few prototypes,
25719     which can conflict with char $ac_func (); below.
25720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25721     <limits.h> exists even on freestanding compilers.  */
25722
25723 #ifdef __STDC__
25724 # include <limits.h>
25725 #else
25726 # include <assert.h>
25727 #endif
25728
25729 #undef $ac_func
25730
25731 /* Override any gcc2 internal prototype to avoid an error.  */
25732 #ifdef __cplusplus
25733 extern "C"
25734 {
25735 #endif
25736 /* We use char because int might match the return type of a gcc2
25737    builtin and then its argument prototype would still apply.  */
25738 char $ac_func ();
25739 /* The GNU C library defines this for functions which it implements
25740     to always fail with ENOSYS.  Some functions are actually named
25741     something starting with __ and the normal name is an alias.  */
25742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25743 choke me
25744 #else
25745 char (*f) () = $ac_func;
25746 #endif
25747 #ifdef __cplusplus
25748 }
25749 #endif
25750
25751 int
25752 main ()
25753 {
25754 return f != $ac_func;
25755   ;
25756   return 0;
25757 }
25758 _ACEOF
25759 rm -f conftest.$ac_objext conftest$ac_exeext
25760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25761   (eval $ac_link) 2>conftest.er1
25762   ac_status=$?
25763   grep -v '^ *+' conftest.er1 >conftest.err
25764   rm -f conftest.er1
25765   cat conftest.err >&5
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); } &&
25768          { ac_try='test -z "$ac_c_werror_flag"
25769                          || test ! -s conftest.err'
25770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771   (eval $ac_try) 2>&5
25772   ac_status=$?
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); }; } &&
25775          { ac_try='test -s conftest$ac_exeext'
25776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777   (eval $ac_try) 2>&5
25778   ac_status=$?
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); }; }; then
25781   eval "$as_ac_var=yes"
25782 else
25783   echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 eval "$as_ac_var=no"
25787 fi
25788 rm -f conftest.err conftest.$ac_objext \
25789       conftest$ac_exeext conftest.$ac_ext
25790 fi
25791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25793 if test `eval echo '${'$as_ac_var'}'` = yes; then
25794   cat >>confdefs.h <<_ACEOF
25795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25796 _ACEOF
25797
25798 fi
25799 done
25800
25801
25802 for ac_header in poll.h
25803 do
25804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25806   echo "$as_me:$LINENO: checking for $ac_header" >&5
25807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25809   echo $ECHO_N "(cached) $ECHO_C" >&6
25810 fi
25811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25813 else
25814   # Is the header compilable?
25815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25817 cat >conftest.$ac_ext <<_ACEOF
25818 /* confdefs.h.  */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h.  */
25823 $ac_includes_default
25824 #include <$ac_header>
25825 _ACEOF
25826 rm -f conftest.$ac_objext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25828   (eval $ac_compile) 2>conftest.er1
25829   ac_status=$?
25830   grep -v '^ *+' conftest.er1 >conftest.err
25831   rm -f conftest.er1
25832   cat conftest.err >&5
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); } &&
25835          { ac_try='test -z "$ac_c_werror_flag"
25836                          || test ! -s conftest.err'
25837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838   (eval $ac_try) 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; } &&
25842          { ac_try='test -s conftest.$ac_objext'
25843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844   (eval $ac_try) 2>&5
25845   ac_status=$?
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); }; }; then
25848   ac_header_compiler=yes
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853 ac_header_compiler=no
25854 fi
25855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25857 echo "${ECHO_T}$ac_header_compiler" >&6
25858
25859 # Is the header present?
25860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25862 cat >conftest.$ac_ext <<_ACEOF
25863 /* confdefs.h.  */
25864 _ACEOF
25865 cat confdefs.h >>conftest.$ac_ext
25866 cat >>conftest.$ac_ext <<_ACEOF
25867 /* end confdefs.h.  */
25868 #include <$ac_header>
25869 _ACEOF
25870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } >/dev/null; then
25878   if test -s conftest.err; then
25879     ac_cpp_err=$ac_c_preproc_warn_flag
25880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25881   else
25882     ac_cpp_err=
25883   fi
25884 else
25885   ac_cpp_err=yes
25886 fi
25887 if test -z "$ac_cpp_err"; then
25888   ac_header_preproc=yes
25889 else
25890   echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892
25893   ac_header_preproc=no
25894 fi
25895 rm -f conftest.err conftest.$ac_ext
25896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25897 echo "${ECHO_T}$ac_header_preproc" >&6
25898
25899 # So?  What about this header?
25900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25901   yes:no: )
25902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25906     ac_header_preproc=yes
25907     ;;
25908   no:yes:* )
25909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25911     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25912 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25913     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25915     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25916 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25919     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25921     (
25922       cat <<\_ASBOX
25923 ## ------------------------------------------ ##
25924 ## Report this to the AC_PACKAGE_NAME lists.  ##
25925 ## ------------------------------------------ ##
25926 _ASBOX
25927     ) |
25928       sed "s/^/$as_me: WARNING:     /" >&2
25929     ;;
25930 esac
25931 echo "$as_me:$LINENO: checking for $ac_header" >&5
25932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25934   echo $ECHO_N "(cached) $ECHO_C" >&6
25935 else
25936   eval "$as_ac_Header=\$ac_header_preproc"
25937 fi
25938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25940
25941 fi
25942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25943   cat >>confdefs.h <<_ACEOF
25944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25945 _ACEOF
25946
25947 fi
25948
25949 done
25950
25951
25952
25953 for ac_header in sys/epoll.h
25954 do
25955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25957   echo "$as_me:$LINENO: checking for $ac_header" >&5
25958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 fi
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25964 else
25965   # Is the header compilable?
25966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25968 cat >conftest.$ac_ext <<_ACEOF
25969 /* confdefs.h.  */
25970 _ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h.  */
25974 $ac_includes_default
25975 #include <$ac_header>
25976 _ACEOF
25977 rm -f conftest.$ac_objext
25978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979   (eval $ac_compile) 2>conftest.er1
25980   ac_status=$?
25981   grep -v '^ *+' conftest.er1 >conftest.err
25982   rm -f conftest.er1
25983   cat conftest.err >&5
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); } &&
25986          { ac_try='test -z "$ac_c_werror_flag"
25987                          || test ! -s conftest.err'
25988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989   (eval $ac_try) 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); }; } &&
25993          { ac_try='test -s conftest.$ac_objext'
25994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995   (eval $ac_try) 2>&5
25996   ac_status=$?
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); }; }; then
25999   ac_header_compiler=yes
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004 ac_header_compiler=no
26005 fi
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26008 echo "${ECHO_T}$ac_header_compiler" >&6
26009
26010 # Is the header present?
26011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26013 cat >conftest.$ac_ext <<_ACEOF
26014 /* confdefs.h.  */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h.  */
26019 #include <$ac_header>
26020 _ACEOF
26021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26023   ac_status=$?
26024   grep -v '^ *+' conftest.er1 >conftest.err
26025   rm -f conftest.er1
26026   cat conftest.err >&5
26027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); } >/dev/null; then
26029   if test -s conftest.err; then
26030     ac_cpp_err=$ac_c_preproc_warn_flag
26031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26032   else
26033     ac_cpp_err=
26034   fi
26035 else
26036   ac_cpp_err=yes
26037 fi
26038 if test -z "$ac_cpp_err"; then
26039   ac_header_preproc=yes
26040 else
26041   echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26043
26044   ac_header_preproc=no
26045 fi
26046 rm -f conftest.err conftest.$ac_ext
26047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26048 echo "${ECHO_T}$ac_header_preproc" >&6
26049
26050 # So?  What about this header?
26051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26052   yes:no: )
26053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26057     ac_header_preproc=yes
26058     ;;
26059   no:yes:* )
26060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26072     (
26073       cat <<\_ASBOX
26074 ## ------------------------------------------ ##
26075 ## Report this to the AC_PACKAGE_NAME lists.  ##
26076 ## ------------------------------------------ ##
26077 _ASBOX
26078     ) |
26079       sed "s/^/$as_me: WARNING:     /" >&2
26080     ;;
26081 esac
26082 echo "$as_me:$LINENO: checking for $ac_header" >&5
26083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26085   echo $ECHO_N "(cached) $ECHO_C" >&6
26086 else
26087   eval "$as_ac_Header=\$ac_header_preproc"
26088 fi
26089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26091
26092 fi
26093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26094   cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26096 _ACEOF
26097
26098 fi
26099
26100 done
26101
26102 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26103 echo "$as_me:$LINENO: checking for epoll system call" >&5
26104 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26105 if test "$cross_compiling" = yes; then
26106   echo "$as_me:$LINENO: result: no" >&5
26107 echo "${ECHO_T}no" >&6
26108 else
26109   cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115 int main(int argc, char *argv)
26116 {
26117         int epfd = epoll_create(256);
26118         exit (epfd == -1 ? 1 : 0);
26119 }
26120 _ACEOF
26121 rm -f conftest$ac_exeext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26123   (eval $ac_link) 2>&5
26124   ac_status=$?
26125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128   (eval $ac_try) 2>&5
26129   ac_status=$?
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); }; }; then
26132   echo "$as_me:$LINENO: result: yes" >&5
26133 echo "${ECHO_T}yes" >&6
26134
26135 cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_EPOLL 1
26137 _ACEOF
26138
26139 else
26140   echo "$as_me: program exited with status $ac_status" >&5
26141 echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26143
26144 ( exit $ac_status )
26145 echo "$as_me:$LINENO: result: no" >&5
26146 echo "${ECHO_T}no" >&6
26147 fi
26148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26149 fi
26150 fi
26151
26152 # strerror checks
26153 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26154 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26155 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26156   echo $ECHO_N "(cached) $ECHO_C" >&6
26157 else
26158
26159         cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165
26166 #include <stdio.h>
26167 #include <sys/types.h>
26168 #include <errno.h>
26169 #ifdef WINNT
26170 #include <stdlib.h>
26171 #endif
26172 int
26173 main ()
26174 {
26175 char *c = (char *) *sys_errlist
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182   (eval $ac_compile) 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } &&
26189          { ac_try='test -z "$ac_c_werror_flag"
26190                          || test ! -s conftest.err'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; } &&
26196          { ac_try='test -s conftest.$ac_objext'
26197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198   (eval $ac_try) 2>&5
26199   ac_status=$?
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); }; }; then
26202   ol_cv_dcl_sys_errlist=yes
26203         ol_cv_have_sys_errlist=yes
26204 else
26205   echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26207
26208 ol_cv_dcl_sys_errlist=no
26209 fi
26210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26211 fi
26212 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26213 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26214 #
26215 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26216 if test $ol_cv_dcl_sys_errlist = no ; then
26217
26218 cat >>confdefs.h <<\_ACEOF
26219 #define DECL_SYS_ERRLIST 1
26220 _ACEOF
26221
26222
26223         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26224 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26225 if test "${ol_cv_have_sys_errlist+set}" = set; then
26226   echo $ECHO_N "(cached) $ECHO_C" >&6
26227 else
26228
26229                 cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h.  */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h.  */
26235 #include <errno.h>
26236 int
26237 main ()
26238 {
26239 char *c = (char *) *sys_errlist
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26246   (eval $ac_link) 2>conftest.er1
26247   ac_status=$?
26248   grep -v '^ *+' conftest.er1 >conftest.err
26249   rm -f conftest.er1
26250   cat conftest.err >&5
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); } &&
26253          { ac_try='test -z "$ac_c_werror_flag"
26254                          || test ! -s conftest.err'
26255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256   (eval $ac_try) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); }; } &&
26260          { ac_try='test -s conftest$ac_exeext'
26261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262   (eval $ac_try) 2>&5
26263   ac_status=$?
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); }; }; then
26266   ol_cv_have_sys_errlist=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271 ol_cv_have_sys_errlist=no
26272 fi
26273 rm -f conftest.err conftest.$ac_objext \
26274       conftest$ac_exeext conftest.$ac_ext
26275 fi
26276 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26277 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26278 fi
26279 if test $ol_cv_have_sys_errlist = yes ; then
26280
26281 cat >>confdefs.h <<\_ACEOF
26282 #define HAVE_SYS_ERRLIST 1
26283 _ACEOF
26284
26285 fi
26286
26287
26288 for ac_func in strerror strerror_r
26289 do
26290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26291 echo "$as_me:$LINENO: checking for $ac_func" >&5
26292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26293 if eval "test \"\${$as_ac_var+set}\" = set"; then
26294   echo $ECHO_N "(cached) $ECHO_C" >&6
26295 else
26296   cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h.  */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h.  */
26302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26304 #define $ac_func innocuous_$ac_func
26305
26306 /* System header to define __stub macros and hopefully few prototypes,
26307     which can conflict with char $ac_func (); below.
26308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26309     <limits.h> exists even on freestanding compilers.  */
26310
26311 #ifdef __STDC__
26312 # include <limits.h>
26313 #else
26314 # include <assert.h>
26315 #endif
26316
26317 #undef $ac_func
26318
26319 /* Override any gcc2 internal prototype to avoid an error.  */
26320 #ifdef __cplusplus
26321 extern "C"
26322 {
26323 #endif
26324 /* We use char because int might match the return type of a gcc2
26325    builtin and then its argument prototype would still apply.  */
26326 char $ac_func ();
26327 /* The GNU C library defines this for functions which it implements
26328     to always fail with ENOSYS.  Some functions are actually named
26329     something starting with __ and the normal name is an alias.  */
26330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26331 choke me
26332 #else
26333 char (*f) () = $ac_func;
26334 #endif
26335 #ifdef __cplusplus
26336 }
26337 #endif
26338
26339 int
26340 main ()
26341 {
26342 return f != $ac_func;
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349   (eval $ac_link) 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } &&
26356          { ac_try='test -z "$ac_c_werror_flag"
26357                          || test ! -s conftest.err'
26358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359   (eval $ac_try) 2>&5
26360   ac_status=$?
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); }; } &&
26363          { ac_try='test -s conftest$ac_exeext'
26364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365   (eval $ac_try) 2>&5
26366   ac_status=$?
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); }; }; then
26369   eval "$as_ac_var=yes"
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374 eval "$as_ac_var=no"
26375 fi
26376 rm -f conftest.err conftest.$ac_objext \
26377       conftest$ac_exeext conftest.$ac_ext
26378 fi
26379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26381 if test `eval echo '${'$as_ac_var'}'` = yes; then
26382   cat >>confdefs.h <<_ACEOF
26383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26384 _ACEOF
26385
26386 fi
26387 done
26388
26389 ol_cv_func_strerror_r=no
26390 if test "${ac_cv_func_strerror_r}" = yes ; then
26391         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26392 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26393 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26394   echo $ECHO_N "(cached) $ECHO_C" >&6
26395 else
26396
26397         cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403 #include <string.h>
26404 _ACEOF
26405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26406   $EGREP "strerror_r" >/dev/null 2>&1; then
26407   ol_decl_strerror_r=yes
26408 else
26409   ol_decl_strerror_r=no
26410 fi
26411 rm -f conftest*
26412
26413         if test $ol_decl_strerror_r = yes ; then
26414                 cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420 #include <string.h>
26421 int
26422 main ()
26423 {
26424    /* from autoconf 2.59 */
26425                                 char buf[100];
26426                                 char x = *strerror_r (0, buf, sizeof buf);
26427                                 char *p = strerror_r (0, buf, sizeof buf);
26428
26429   ;
26430   return 0;
26431 }
26432 _ACEOF
26433 rm -f conftest.$ac_objext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26435   (eval $ac_compile) 2>conftest.er1
26436   ac_status=$?
26437   grep -v '^ *+' conftest.er1 >conftest.err
26438   rm -f conftest.er1
26439   cat conftest.err >&5
26440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441   (exit $ac_status); } &&
26442          { ac_try='test -z "$ac_c_werror_flag"
26443                          || test ! -s conftest.err'
26444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445   (eval $ac_try) 2>&5
26446   ac_status=$?
26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448   (exit $ac_status); }; } &&
26449          { ac_try='test -s conftest.$ac_objext'
26450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451   (eval $ac_try) 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; }; then
26455   ol_cv_nonposix_strerror_r=yes
26456 else
26457   echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460 ol_cv_nonposix_strerror_r=no
26461 fi
26462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26463         else
26464                 if test "$cross_compiling" = yes; then
26465   ol_cv_nonposix_strerror=no
26466 else
26467   cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473
26474                         main() {
26475                                 char buf[100];
26476                                 buf[0] = 0;
26477                                 strerror_r( 1, buf, sizeof buf );
26478                                 exit( buf[0] == 0 );
26479                         }
26480
26481 _ACEOF
26482 rm -f conftest$ac_exeext
26483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26484   (eval $ac_link) 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489   (eval $ac_try) 2>&5
26490   ac_status=$?
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); }; }; then
26493   ol_cv_nonposix_strerror_r=yes
26494 else
26495   echo "$as_me: program exited with status $ac_status" >&5
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499 ( exit $ac_status )
26500 ol_cv_nonposix_strerror=no
26501 fi
26502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26503 fi
26504         fi
26505
26506 fi
26507 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26508 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26509 if test $ol_cv_nonposix_strerror_r = yes ; then
26510
26511 cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_NONPOSIX_STRERROR_R 1
26513 _ACEOF
26514
26515 fi
26516
26517 elif test "${ac_cv_func_strerror}" = no ; then
26518         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26519 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26520 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26521   echo $ECHO_N "(cached) $ECHO_C" >&6
26522 else
26523
26524         cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530
26531 #include <stdio.h>
26532 #include <sys/types.h>
26533 #include <errno.h>
26534 #ifdef WINNT
26535 #include <stdlib.h>
26536 #endif
26537 int
26538 main ()
26539 {
26540 char *c = (char *) *sys_errlist
26541   ;
26542   return 0;
26543 }
26544 _ACEOF
26545 rm -f conftest.$ac_objext
26546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26547   (eval $ac_compile) 2>conftest.er1
26548   ac_status=$?
26549   grep -v '^ *+' conftest.er1 >conftest.err
26550   rm -f conftest.er1
26551   cat conftest.err >&5
26552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553   (exit $ac_status); } &&
26554          { ac_try='test -z "$ac_c_werror_flag"
26555                          || test ! -s conftest.err'
26556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26557   (eval $ac_try) 2>&5
26558   ac_status=$?
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); }; } &&
26561          { ac_try='test -s conftest.$ac_objext'
26562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563   (eval $ac_try) 2>&5
26564   ac_status=$?
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); }; }; then
26567   ol_cv_dcl_sys_errlist=yes
26568         ol_cv_have_sys_errlist=yes
26569 else
26570   echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573 ol_cv_dcl_sys_errlist=no
26574 fi
26575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26576 fi
26577 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26578 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26579 #
26580 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26581 if test $ol_cv_dcl_sys_errlist = no ; then
26582
26583 cat >>confdefs.h <<\_ACEOF
26584 #define DECL_SYS_ERRLIST 1
26585 _ACEOF
26586
26587
26588         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26589 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26590 if test "${ol_cv_have_sys_errlist+set}" = set; then
26591   echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593
26594                 cat >conftest.$ac_ext <<_ACEOF
26595 /* confdefs.h.  */
26596 _ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h.  */
26600 #include <errno.h>
26601 int
26602 main ()
26603 {
26604 char *c = (char *) *sys_errlist
26605   ;
26606   return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26611   (eval $ac_link) 2>conftest.er1
26612   ac_status=$?
26613   grep -v '^ *+' conftest.er1 >conftest.err
26614   rm -f conftest.er1
26615   cat conftest.err >&5
26616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617   (exit $ac_status); } &&
26618          { ac_try='test -z "$ac_c_werror_flag"
26619                          || test ! -s conftest.err'
26620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621   (eval $ac_try) 2>&5
26622   ac_status=$?
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); }; } &&
26625          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26631   ol_cv_have_sys_errlist=yes
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636 ol_cv_have_sys_errlist=no
26637 fi
26638 rm -f conftest.err conftest.$ac_objext \
26639       conftest$ac_exeext conftest.$ac_ext
26640 fi
26641 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26642 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26643 fi
26644 if test $ol_cv_have_sys_errlist = yes ; then
26645
26646 cat >>confdefs.h <<\_ACEOF
26647 #define HAVE_SYS_ERRLIST 1
26648 _ACEOF
26649
26650 fi
26651
26652 fi
26653
26654
26655
26656 for ac_header in regex.h
26657 do
26658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660   echo "$as_me:$LINENO: checking for $ac_header" >&5
26661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663   echo $ECHO_N "(cached) $ECHO_C" >&6
26664 fi
26665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26667 else
26668   # Is the header compilable?
26669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26671 cat >conftest.$ac_ext <<_ACEOF
26672 /* confdefs.h.  */
26673 _ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h.  */
26677 $ac_includes_default
26678 #include <$ac_header>
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682   (eval $ac_compile) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } &&
26689          { ac_try='test -z "$ac_c_werror_flag"
26690                          || test ! -s conftest.err'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; } &&
26696          { ac_try='test -s conftest.$ac_objext'
26697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698   (eval $ac_try) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   ac_header_compiler=yes
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 ac_header_compiler=no
26708 fi
26709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26711 echo "${ECHO_T}$ac_header_compiler" >&6
26712
26713 # Is the header present?
26714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26716 cat >conftest.$ac_ext <<_ACEOF
26717 /* confdefs.h.  */
26718 _ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h.  */
26722 #include <$ac_header>
26723 _ACEOF
26724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26726   ac_status=$?
26727   grep -v '^ *+' conftest.er1 >conftest.err
26728   rm -f conftest.er1
26729   cat conftest.err >&5
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } >/dev/null; then
26732   if test -s conftest.err; then
26733     ac_cpp_err=$ac_c_preproc_warn_flag
26734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26735   else
26736     ac_cpp_err=
26737   fi
26738 else
26739   ac_cpp_err=yes
26740 fi
26741 if test -z "$ac_cpp_err"; then
26742   ac_header_preproc=yes
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747   ac_header_preproc=no
26748 fi
26749 rm -f conftest.err conftest.$ac_ext
26750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26751 echo "${ECHO_T}$ac_header_preproc" >&6
26752
26753 # So?  What about this header?
26754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26755   yes:no: )
26756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26760     ac_header_preproc=yes
26761     ;;
26762   no:yes:* )
26763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26775     (
26776       cat <<\_ASBOX
26777 ## ------------------------------------------ ##
26778 ## Report this to the AC_PACKAGE_NAME lists.  ##
26779 ## ------------------------------------------ ##
26780 _ASBOX
26781     ) |
26782       sed "s/^/$as_me: WARNING:     /" >&2
26783     ;;
26784 esac
26785 echo "$as_me:$LINENO: checking for $ac_header" >&5
26786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26788   echo $ECHO_N "(cached) $ECHO_C" >&6
26789 else
26790   eval "$as_ac_Header=\$ac_header_preproc"
26791 fi
26792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26794
26795 fi
26796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26797   cat >>confdefs.h <<_ACEOF
26798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26799 _ACEOF
26800
26801 fi
26802
26803 done
26804
26805 if test "$ac_cv_header_regex_h" != yes ; then
26806         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26807 echo "$as_me: error: POSIX regex.h required." >&2;}
26808    { (exit 1); exit 1; }; }
26809 fi
26810 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26811 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26812 if test "${ac_cv_search_regfree+set}" = set; then
26813   echo $ECHO_N "(cached) $ECHO_C" >&6
26814 else
26815   ac_func_search_save_LIBS=$LIBS
26816 ac_cv_search_regfree=no
26817 cat >conftest.$ac_ext <<_ACEOF
26818 /* confdefs.h.  */
26819 _ACEOF
26820 cat confdefs.h >>conftest.$ac_ext
26821 cat >>conftest.$ac_ext <<_ACEOF
26822 /* end confdefs.h.  */
26823
26824 /* Override any gcc2 internal prototype to avoid an error.  */
26825 #ifdef __cplusplus
26826 extern "C"
26827 #endif
26828 /* We use char because int might match the return type of a gcc2
26829    builtin and then its argument prototype would still apply.  */
26830 char regfree ();
26831 int
26832 main ()
26833 {
26834 regfree ();
26835   ;
26836   return 0;
26837 }
26838 _ACEOF
26839 rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26841   (eval $ac_link) 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } &&
26848          { ac_try='test -z "$ac_c_werror_flag"
26849                          || test ! -s conftest.err'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; } &&
26855          { ac_try='test -s conftest$ac_exeext'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; }; then
26861   ac_cv_search_regfree="none required"
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866 fi
26867 rm -f conftest.err conftest.$ac_objext \
26868       conftest$ac_exeext conftest.$ac_ext
26869 if test "$ac_cv_search_regfree" = no; then
26870   for ac_lib in regex gnuregex; do
26871     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26872     cat >conftest.$ac_ext <<_ACEOF
26873 /* confdefs.h.  */
26874 _ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h.  */
26878
26879 /* Override any gcc2 internal prototype to avoid an error.  */
26880 #ifdef __cplusplus
26881 extern "C"
26882 #endif
26883 /* We use char because int might match the return type of a gcc2
26884    builtin and then its argument prototype would still apply.  */
26885 char regfree ();
26886 int
26887 main ()
26888 {
26889 regfree ();
26890   ;
26891   return 0;
26892 }
26893 _ACEOF
26894 rm -f conftest.$ac_objext conftest$ac_exeext
26895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26896   (eval $ac_link) 2>conftest.er1
26897   ac_status=$?
26898   grep -v '^ *+' conftest.er1 >conftest.err
26899   rm -f conftest.er1
26900   cat conftest.err >&5
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); } &&
26903          { ac_try='test -z "$ac_c_werror_flag"
26904                          || test ! -s conftest.err'
26905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906   (eval $ac_try) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); }; } &&
26910          { ac_try='test -s conftest$ac_exeext'
26911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912   (eval $ac_try) 2>&5
26913   ac_status=$?
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); }; }; then
26916   ac_cv_search_regfree="-l$ac_lib"
26917 break
26918 else
26919   echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26921
26922 fi
26923 rm -f conftest.err conftest.$ac_objext \
26924       conftest$ac_exeext conftest.$ac_ext
26925   done
26926 fi
26927 LIBS=$ac_func_search_save_LIBS
26928 fi
26929 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26930 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26931 if test "$ac_cv_search_regfree" != no; then
26932   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26933   :
26934 else
26935   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26936 echo "$as_me: error: POSIX regex required." >&2;}
26937    { (exit 1); exit 1; }; }
26938 fi
26939
26940
26941
26942 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26943 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26944 if test "${ol_cv_c_posix_regex+set}" = set; then
26945   echo $ECHO_N "(cached) $ECHO_C" >&6
26946 else
26947
26948         if test "$cross_compiling" = yes; then
26949   ol_cv_c_posix_regex=cross
26950 else
26951   cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h.  */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h.  */
26957
26958 #include <sys/types.h>
26959 #include <regex.h>
26960 static char *pattern, *string;
26961 main()
26962 {
26963         int rc;
26964         regex_t re;
26965
26966         pattern = "^A";
26967
26968         if(regcomp(&re, pattern, 0)) {
26969                 return -1;
26970         }
26971
26972         string = "ALL MATCH";
26973
26974         rc = regexec(&re, string, 0, (void*)0, 0);
26975
26976         regfree(&re);
26977
26978         return rc;
26979 }
26980 _ACEOF
26981 rm -f conftest$ac_exeext
26982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26983   (eval $ac_link) 2>&5
26984   ac_status=$?
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988   (eval $ac_try) 2>&5
26989   ac_status=$?
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); }; }; then
26992   ol_cv_c_posix_regex=yes
26993 else
26994   echo "$as_me: program exited with status $ac_status" >&5
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26997
26998 ( exit $ac_status )
26999 ol_cv_c_posix_regex=no
27000 fi
27001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27002 fi
27003 fi
27004 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
27005 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
27006
27007 if test "$ol_cv_c_posix_regex" = no ; then
27008         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
27009 echo "$as_me: error: broken POSIX regex!" >&2;}
27010    { (exit 1); exit 1; }; }
27011 fi
27012
27013
27014 have_uuid=no
27015
27016 for ac_header in sys/uuid.h
27017 do
27018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27020   echo "$as_me:$LINENO: checking for $ac_header" >&5
27021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27023   echo $ECHO_N "(cached) $ECHO_C" >&6
27024 fi
27025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27027 else
27028   # Is the header compilable?
27029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27031 cat >conftest.$ac_ext <<_ACEOF
27032 /* confdefs.h.  */
27033 _ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h.  */
27037 $ac_includes_default
27038 #include <$ac_header>
27039 _ACEOF
27040 rm -f conftest.$ac_objext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27042   (eval $ac_compile) 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } &&
27049          { ac_try='test -z "$ac_c_werror_flag"
27050                          || test ! -s conftest.err'
27051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052   (eval $ac_try) 2>&5
27053   ac_status=$?
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); }; } &&
27056          { ac_try='test -s conftest.$ac_objext'
27057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058   (eval $ac_try) 2>&5
27059   ac_status=$?
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); }; }; then
27062   ac_header_compiler=yes
27063 else
27064   echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27066
27067 ac_header_compiler=no
27068 fi
27069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27071 echo "${ECHO_T}$ac_header_compiler" >&6
27072
27073 # Is the header present?
27074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27076 cat >conftest.$ac_ext <<_ACEOF
27077 /* confdefs.h.  */
27078 _ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h.  */
27082 #include <$ac_header>
27083 _ACEOF
27084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27086   ac_status=$?
27087   grep -v '^ *+' conftest.er1 >conftest.err
27088   rm -f conftest.er1
27089   cat conftest.err >&5
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); } >/dev/null; then
27092   if test -s conftest.err; then
27093     ac_cpp_err=$ac_c_preproc_warn_flag
27094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27095   else
27096     ac_cpp_err=
27097   fi
27098 else
27099   ac_cpp_err=yes
27100 fi
27101 if test -z "$ac_cpp_err"; then
27102   ac_header_preproc=yes
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107   ac_header_preproc=no
27108 fi
27109 rm -f conftest.err conftest.$ac_ext
27110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27111 echo "${ECHO_T}$ac_header_preproc" >&6
27112
27113 # So?  What about this header?
27114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27115   yes:no: )
27116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27120     ac_header_preproc=yes
27121     ;;
27122   no:yes:* )
27123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27135     (
27136       cat <<\_ASBOX
27137 ## ------------------------------------------ ##
27138 ## Report this to the AC_PACKAGE_NAME lists.  ##
27139 ## ------------------------------------------ ##
27140 _ASBOX
27141     ) |
27142       sed "s/^/$as_me: WARNING:     /" >&2
27143     ;;
27144 esac
27145 echo "$as_me:$LINENO: checking for $ac_header" >&5
27146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27148   echo $ECHO_N "(cached) $ECHO_C" >&6
27149 else
27150   eval "$as_ac_Header=\$ac_header_preproc"
27151 fi
27152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27154
27155 fi
27156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27157   cat >>confdefs.h <<_ACEOF
27158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27159 _ACEOF
27160
27161 fi
27162
27163 done
27164
27165 if test $ac_cv_header_sys_uuid_h = yes ; then
27166         save_LIBS="$LIBS"
27167         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27168 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27169 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27170   echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172   ac_func_search_save_LIBS=$LIBS
27173 ac_cv_search_uuid_to_str=no
27174 cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180
27181 /* Override any gcc2 internal prototype to avoid an error.  */
27182 #ifdef __cplusplus
27183 extern "C"
27184 #endif
27185 /* We use char because int might match the return type of a gcc2
27186    builtin and then its argument prototype would still apply.  */
27187 char uuid_to_str ();
27188 int
27189 main ()
27190 {
27191 uuid_to_str ();
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27198   (eval $ac_link) 2>conftest.er1
27199   ac_status=$?
27200   grep -v '^ *+' conftest.er1 >conftest.err
27201   rm -f conftest.er1
27202   cat conftest.err >&5
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); } &&
27205          { ac_try='test -z "$ac_c_werror_flag"
27206                          || test ! -s conftest.err'
27207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208   (eval $ac_try) 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); }; } &&
27212          { ac_try='test -s conftest$ac_exeext'
27213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214   (eval $ac_try) 2>&5
27215   ac_status=$?
27216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217   (exit $ac_status); }; }; then
27218   ac_cv_search_uuid_to_str="none required"
27219 else
27220   echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223 fi
27224 rm -f conftest.err conftest.$ac_objext \
27225       conftest$ac_exeext conftest.$ac_ext
27226 if test "$ac_cv_search_uuid_to_str" = no; then
27227   for ac_lib in uuid; do
27228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27229     cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235
27236 /* Override any gcc2 internal prototype to avoid an error.  */
27237 #ifdef __cplusplus
27238 extern "C"
27239 #endif
27240 /* We use char because int might match the return type of a gcc2
27241    builtin and then its argument prototype would still apply.  */
27242 char uuid_to_str ();
27243 int
27244 main ()
27245 {
27246 uuid_to_str ();
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253   (eval $ac_link) 2>conftest.er1
27254   ac_status=$?
27255   grep -v '^ *+' conftest.er1 >conftest.err
27256   rm -f conftest.er1
27257   cat conftest.err >&5
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); } &&
27260          { ac_try='test -z "$ac_c_werror_flag"
27261                          || test ! -s conftest.err'
27262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263   (eval $ac_try) 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; } &&
27267          { ac_try='test -s conftest$ac_exeext'
27268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269   (eval $ac_try) 2>&5
27270   ac_status=$?
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); }; }; then
27273   ac_cv_search_uuid_to_str="-l$ac_lib"
27274 break
27275 else
27276   echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27278
27279 fi
27280 rm -f conftest.err conftest.$ac_objext \
27281       conftest$ac_exeext conftest.$ac_ext
27282   done
27283 fi
27284 LIBS=$ac_func_search_save_LIBS
27285 fi
27286 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27287 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27288 if test "$ac_cv_search_uuid_to_str" != no; then
27289   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27290   have_uuid=yes
27291 else
27292   :
27293 fi
27294
27295         LIBS="$save_LIBS"
27296
27297         if test have_uuid = yes ; then
27298
27299 cat >>confdefs.h <<\_ACEOF
27300 #define HAVE_UUID_TO_STR 1
27301 _ACEOF
27302
27303
27304                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27305                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27306         fi
27307 fi
27308
27309 if test $have_uuid = no ; then
27310         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27311 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27312         save_LIBS="$LIBS"
27313         LIBS="$LIBS -lrpcrt4"
27314         cat >conftest.$ac_ext <<_ACEOF
27315 /* confdefs.h.  */
27316 _ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h.  */
27320
27321                 int __stdcall UuidCreate(void *);
27322                 int __stdcall UuidToStringA(void *,void **);
27323
27324 int
27325 main ()
27326 {
27327
27328                 UuidCreate(0);
27329                 UuidToStringA(0,0);
27330
27331   ;
27332   return 0;
27333 }
27334 _ACEOF
27335 rm -f conftest.$ac_objext conftest$ac_exeext
27336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27337   (eval $ac_link) 2>conftest.er1
27338   ac_status=$?
27339   grep -v '^ *+' conftest.er1 >conftest.err
27340   rm -f conftest.er1
27341   cat conftest.err >&5
27342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343   (exit $ac_status); } &&
27344          { ac_try='test -z "$ac_c_werror_flag"
27345                          || test ! -s conftest.err'
27346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347   (eval $ac_try) 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; } &&
27351          { ac_try='test -s conftest$ac_exeext'
27352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27353   (eval $ac_try) 2>&5
27354   ac_status=$?
27355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356   (exit $ac_status); }; }; then
27357   need_rpcrt=yes
27358 else
27359   echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27361
27362 need_rpcrt=no
27363 fi
27364 rm -f conftest.err conftest.$ac_objext \
27365       conftest$ac_exeext conftest.$ac_ext
27366         if test $need_rpcrt = yes; then
27367                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27368         fi
27369         LIBS="$save_LIBS"
27370         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27371 echo "${ECHO_T}$need_rpcrt" >&6
27372 fi
27373
27374 ol_cv_lib_resolver=no
27375 if test $ol_cv_lib_resolver = no ; then
27376         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27377 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27378 if test "${ol_cv_resolver_none+set}" = set; then
27379   echo $ECHO_N "(cached) $ECHO_C" >&6
27380 else
27381
27382         ol_RESOLVER_LIB=
27383         ol_LIBS=$LIBS
27384         LIBS="$ol_RESOLVER_LIB $LIBS"
27385
27386         cat >conftest.$ac_ext <<_ACEOF
27387 /* confdefs.h.  */
27388 _ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h.  */
27392
27393 #ifdef HAVE_SYS_TYPES_H
27394 #       include <sys/types.h>
27395 #endif
27396 #include <netinet/in.h>
27397 #ifdef HAVE_ARPA_NAMESER_H
27398 #       include <arpa/nameser.h>
27399 #endif
27400 #ifdef HAVE_RESOLV_H
27401 #       include <resolv.h>
27402 #endif
27403
27404 int
27405 main ()
27406 {
27407 {
27408         int len, status;
27409         char *request = NULL;
27410         unsigned char reply[64*1024];
27411         unsigned char host[64*1024];
27412         unsigned char *p;
27413
27414 #ifdef NS_HFIXEDSZ
27415         /* Bind 8/9 interface */
27416         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27417 #else
27418         /* Bind 4 interface */
27419 # ifndef T_SRV
27420 #  define T_SRV 33
27421 # endif
27422         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27423 #endif
27424         p = reply;
27425 #ifdef NS_HFIXEDSZ
27426         /* Bind 8/9 interface */
27427         p += NS_HFIXEDSZ;
27428 #elif defined(HFIXEDSZ)
27429         /* Bind 4 interface w/ HFIXEDSZ */
27430         p += HFIXEDSZ;
27431 #else
27432         /* Bind 4 interface w/o HFIXEDSZ */
27433         p += sizeof(HEADER);
27434 #endif
27435         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27436 }
27437   ;
27438   return 0;
27439 }
27440 _ACEOF
27441 rm -f conftest.$ac_objext conftest$ac_exeext
27442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27443   (eval $ac_link) 2>conftest.er1
27444   ac_status=$?
27445   grep -v '^ *+' conftest.er1 >conftest.err
27446   rm -f conftest.er1
27447   cat conftest.err >&5
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); } &&
27450          { ac_try='test -z "$ac_c_werror_flag"
27451                          || test ! -s conftest.err'
27452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453   (eval $ac_try) 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; } &&
27457          { ac_try='test -s conftest$ac_exeext'
27458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459   (eval $ac_try) 2>&5
27460   ac_status=$?
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); }; }; then
27463   ol_cv_resolver_none=yes
27464 else
27465   echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27467
27468 ol_cv_resolver_none=no
27469 fi
27470 rm -f conftest.err conftest.$ac_objext \
27471       conftest$ac_exeext conftest.$ac_ext
27472
27473         LIBS="$ol_LIBS"
27474
27475 fi
27476 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27477 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27478
27479         if test $ol_cv_resolver_none = yes ; then
27480                 ol_cv_lib_resolver=yes
27481         fi
27482 fi
27483
27484 if test $ol_cv_lib_resolver = no ; then
27485         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27486 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27487 if test "${ol_cv_resolver_resolv+set}" = set; then
27488   echo $ECHO_N "(cached) $ECHO_C" >&6
27489 else
27490
27491         ol_RESOLVER_LIB=-lresolv
27492         ol_LIBS=$LIBS
27493         LIBS="$ol_RESOLVER_LIB $LIBS"
27494
27495         cat >conftest.$ac_ext <<_ACEOF
27496 /* confdefs.h.  */
27497 _ACEOF
27498 cat confdefs.h >>conftest.$ac_ext
27499 cat >>conftest.$ac_ext <<_ACEOF
27500 /* end confdefs.h.  */
27501
27502 #ifdef HAVE_SYS_TYPES_H
27503 #       include <sys/types.h>
27504 #endif
27505 #include <netinet/in.h>
27506 #ifdef HAVE_ARPA_NAMESER_H
27507 #       include <arpa/nameser.h>
27508 #endif
27509 #ifdef HAVE_RESOLV_H
27510 #       include <resolv.h>
27511 #endif
27512
27513 int
27514 main ()
27515 {
27516 {
27517         int len, status;
27518         char *request = NULL;
27519         unsigned char reply[64*1024];
27520         unsigned char host[64*1024];
27521         unsigned char *p;
27522
27523 #ifdef NS_HFIXEDSZ
27524         /* Bind 8/9 interface */
27525         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27526 #else
27527         /* Bind 4 interface */
27528 # ifndef T_SRV
27529 #  define T_SRV 33
27530 # endif
27531         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27532 #endif
27533         p = reply;
27534 #ifdef NS_HFIXEDSZ
27535         /* Bind 8/9 interface */
27536         p += NS_HFIXEDSZ;
27537 #elif defined(HFIXEDSZ)
27538         /* Bind 4 interface w/ HFIXEDSZ */
27539         p += HFIXEDSZ;
27540 #else
27541         /* Bind 4 interface w/o HFIXEDSZ */
27542         p += sizeof(HEADER);
27543 #endif
27544         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27545 }
27546   ;
27547   return 0;
27548 }
27549 _ACEOF
27550 rm -f conftest.$ac_objext conftest$ac_exeext
27551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27552   (eval $ac_link) 2>conftest.er1
27553   ac_status=$?
27554   grep -v '^ *+' conftest.er1 >conftest.err
27555   rm -f conftest.er1
27556   cat conftest.err >&5
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } &&
27559          { ac_try='test -z "$ac_c_werror_flag"
27560                          || test ! -s conftest.err'
27561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562   (eval $ac_try) 2>&5
27563   ac_status=$?
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); }; } &&
27566          { ac_try='test -s conftest$ac_exeext'
27567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568   (eval $ac_try) 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); }; }; then
27572   ol_cv_resolver_resolv=yes
27573 else
27574   echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 ol_cv_resolver_resolv=no
27578 fi
27579 rm -f conftest.err conftest.$ac_objext \
27580       conftest$ac_exeext conftest.$ac_ext
27581
27582         LIBS="$ol_LIBS"
27583
27584 fi
27585 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27586 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27587
27588         if test $ol_cv_resolver_resolv = yes ; then
27589                 ol_cv_lib_resolver=-lresolv
27590         fi
27591 fi
27592
27593 if test $ol_cv_lib_resolver = no ; then
27594         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27595 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27596 if test "${ol_cv_resolver_bind+set}" = set; then
27597   echo $ECHO_N "(cached) $ECHO_C" >&6
27598 else
27599
27600         ol_RESOLVER_LIB=-lbind
27601         ol_LIBS=$LIBS
27602         LIBS="$ol_RESOLVER_LIB $LIBS"
27603
27604         cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h.  */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h.  */
27610
27611 #ifdef HAVE_SYS_TYPES_H
27612 #       include <sys/types.h>
27613 #endif
27614 #include <netinet/in.h>
27615 #ifdef HAVE_ARPA_NAMESER_H
27616 #       include <arpa/nameser.h>
27617 #endif
27618 #ifdef HAVE_RESOLV_H
27619 #       include <resolv.h>
27620 #endif
27621
27622 int
27623 main ()
27624 {
27625 {
27626         int len, status;
27627         char *request = NULL;
27628         unsigned char reply[64*1024];
27629         unsigned char host[64*1024];
27630         unsigned char *p;
27631
27632 #ifdef NS_HFIXEDSZ
27633         /* Bind 8/9 interface */
27634         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27635 #else
27636         /* Bind 4 interface */
27637 # ifndef T_SRV
27638 #  define T_SRV 33
27639 # endif
27640         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27641 #endif
27642         p = reply;
27643 #ifdef NS_HFIXEDSZ
27644         /* Bind 8/9 interface */
27645         p += NS_HFIXEDSZ;
27646 #elif defined(HFIXEDSZ)
27647         /* Bind 4 interface w/ HFIXEDSZ */
27648         p += HFIXEDSZ;
27649 #else
27650         /* Bind 4 interface w/o HFIXEDSZ */
27651         p += sizeof(HEADER);
27652 #endif
27653         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27654 }
27655   ;
27656   return 0;
27657 }
27658 _ACEOF
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27661   (eval $ac_link) 2>conftest.er1
27662   ac_status=$?
27663   grep -v '^ *+' conftest.er1 >conftest.err
27664   rm -f conftest.er1
27665   cat conftest.err >&5
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); } &&
27668          { ac_try='test -z "$ac_c_werror_flag"
27669                          || test ! -s conftest.err'
27670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671   (eval $ac_try) 2>&5
27672   ac_status=$?
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); }; } &&
27675          { ac_try='test -s conftest$ac_exeext'
27676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677   (eval $ac_try) 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; }; then
27681   ol_cv_resolver_bind=yes
27682 else
27683   echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27685
27686 ol_cv_resolver_bind=no
27687 fi
27688 rm -f conftest.err conftest.$ac_objext \
27689       conftest$ac_exeext conftest.$ac_ext
27690
27691         LIBS="$ol_LIBS"
27692
27693 fi
27694 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27695 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27696
27697         if test $ol_cv_resolver_bind = yes ; then
27698                 ol_cv_lib_resolver=-lbind
27699         fi
27700 fi
27701
27702
27703
27704 ol_link_dnssrv=no
27705 if test "$ol_cv_lib_resolver" != no ; then
27706
27707 cat >>confdefs.h <<\_ACEOF
27708 #define HAVE_RES_QUERY 1
27709 _ACEOF
27710
27711
27712         if test "$ol_enable_dnssrv" != no ; then
27713                 ol_link_dnssrv=yes
27714         fi
27715
27716         if test "$ol_cv_lib_resolver" != yes ; then
27717                 LIBS="$ol_cv_lib_resolver $LIBS"
27718         fi
27719 fi
27720
27721 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27722         if test "$ol_link_dnssrv" = no ; then
27723                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27724 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27725    { (exit 1); exit 1; }; }
27726         fi
27727 else
27728         ol_enable_dnssrv=no
27729 fi
27730
27731
27732 for ac_func in hstrerror
27733 do
27734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27735 echo "$as_me:$LINENO: checking for $ac_func" >&5
27736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27737 if eval "test \"\${$as_ac_var+set}\" = set"; then
27738   echo $ECHO_N "(cached) $ECHO_C" >&6
27739 else
27740   cat >conftest.$ac_ext <<_ACEOF
27741 /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27748 #define $ac_func innocuous_$ac_func
27749
27750 /* System header to define __stub macros and hopefully few prototypes,
27751     which can conflict with char $ac_func (); below.
27752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27753     <limits.h> exists even on freestanding compilers.  */
27754
27755 #ifdef __STDC__
27756 # include <limits.h>
27757 #else
27758 # include <assert.h>
27759 #endif
27760
27761 #undef $ac_func
27762
27763 /* Override any gcc2 internal prototype to avoid an error.  */
27764 #ifdef __cplusplus
27765 extern "C"
27766 {
27767 #endif
27768 /* We use char because int might match the return type of a gcc2
27769    builtin and then its argument prototype would still apply.  */
27770 char $ac_func ();
27771 /* The GNU C library defines this for functions which it implements
27772     to always fail with ENOSYS.  Some functions are actually named
27773     something starting with __ and the normal name is an alias.  */
27774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27775 choke me
27776 #else
27777 char (*f) () = $ac_func;
27778 #endif
27779 #ifdef __cplusplus
27780 }
27781 #endif
27782
27783 int
27784 main ()
27785 {
27786 return f != $ac_func;
27787   ;
27788   return 0;
27789 }
27790 _ACEOF
27791 rm -f conftest.$ac_objext conftest$ac_exeext
27792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27793   (eval $ac_link) 2>conftest.er1
27794   ac_status=$?
27795   grep -v '^ *+' conftest.er1 >conftest.err
27796   rm -f conftest.er1
27797   cat conftest.err >&5
27798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799   (exit $ac_status); } &&
27800          { ac_try='test -z "$ac_c_werror_flag"
27801                          || test ! -s conftest.err'
27802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803   (eval $ac_try) 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; } &&
27807          { ac_try='test -s conftest$ac_exeext'
27808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809   (eval $ac_try) 2>&5
27810   ac_status=$?
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); }; }; then
27813   eval "$as_ac_var=yes"
27814 else
27815   echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818 eval "$as_ac_var=no"
27819 fi
27820 rm -f conftest.err conftest.$ac_objext \
27821       conftest$ac_exeext conftest.$ac_ext
27822 fi
27823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27825 if test `eval echo '${'$as_ac_var'}'` = yes; then
27826   cat >>confdefs.h <<_ACEOF
27827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27828 _ACEOF
27829
27830 fi
27831 done
27832
27833
27834
27835
27836
27837
27838 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27839 do
27840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27841 echo "$as_me:$LINENO: checking for $ac_func" >&5
27842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27843 if eval "test \"\${$as_ac_var+set}\" = set"; then
27844   echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846   cat >conftest.$ac_ext <<_ACEOF
27847 /* confdefs.h.  */
27848 _ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h.  */
27852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27854 #define $ac_func innocuous_$ac_func
27855
27856 /* System header to define __stub macros and hopefully few prototypes,
27857     which can conflict with char $ac_func (); below.
27858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27859     <limits.h> exists even on freestanding compilers.  */
27860
27861 #ifdef __STDC__
27862 # include <limits.h>
27863 #else
27864 # include <assert.h>
27865 #endif
27866
27867 #undef $ac_func
27868
27869 /* Override any gcc2 internal prototype to avoid an error.  */
27870 #ifdef __cplusplus
27871 extern "C"
27872 {
27873 #endif
27874 /* We use char because int might match the return type of a gcc2
27875    builtin and then its argument prototype would still apply.  */
27876 char $ac_func ();
27877 /* The GNU C library defines this for functions which it implements
27878     to always fail with ENOSYS.  Some functions are actually named
27879     something starting with __ and the normal name is an alias.  */
27880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27881 choke me
27882 #else
27883 char (*f) () = $ac_func;
27884 #endif
27885 #ifdef __cplusplus
27886 }
27887 #endif
27888
27889 int
27890 main ()
27891 {
27892 return f != $ac_func;
27893   ;
27894   return 0;
27895 }
27896 _ACEOF
27897 rm -f conftest.$ac_objext conftest$ac_exeext
27898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27899   (eval $ac_link) 2>conftest.er1
27900   ac_status=$?
27901   grep -v '^ *+' conftest.er1 >conftest.err
27902   rm -f conftest.er1
27903   cat conftest.err >&5
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); } &&
27906          { ac_try='test -z "$ac_c_werror_flag"
27907                          || test ! -s conftest.err'
27908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909   (eval $ac_try) 2>&5
27910   ac_status=$?
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); }; } &&
27913          { ac_try='test -s conftest$ac_exeext'
27914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27915   (eval $ac_try) 2>&5
27916   ac_status=$?
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); }; }; then
27919   eval "$as_ac_var=yes"
27920 else
27921   echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27923
27924 eval "$as_ac_var=no"
27925 fi
27926 rm -f conftest.err conftest.$ac_objext \
27927       conftest$ac_exeext conftest.$ac_ext
27928 fi
27929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27931 if test `eval echo '${'$as_ac_var'}'` = yes; then
27932   cat >>confdefs.h <<_ACEOF
27933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27934 _ACEOF
27935
27936 fi
27937 done
27938
27939
27940 ol_link_ipv6=no
27941 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27942         if test $ol_enable_ipv6 = yes ; then
27943                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27944 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27945    { (exit 1); exit 1; }; }
27946         fi
27947 elif test $ol_enable_ipv6 != no ; then
27948         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27949 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27950 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27951   echo $ECHO_N "(cached) $ECHO_C" >&6
27952 else
27953
27954                 cat >conftest.$ac_ext <<_ACEOF
27955 /* confdefs.h.  */
27956 _ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h.  */
27960
27961 #                       include <netinet/in.h>
27962 #                       ifdef INET6_ADDRSTRLEN
27963                                 __has_inet6_addrstrlen__;
27964 #                       endif
27965
27966 _ACEOF
27967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27968   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27969   ol_cv_inet6_addrstrlen=yes
27970 else
27971   ol_cv_inet6_addrstrlen=no
27972 fi
27973 rm -f conftest*
27974
27975 fi
27976 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27977 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27978
27979
27980         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27981 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27982 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27983   echo $ECHO_N "(cached) $ECHO_C" >&6
27984 else
27985
27986                 cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h.  */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h.  */
27992
27993 #include <sys/types.h>
27994 #include <sys/socket.h>
27995
27996 int
27997 main ()
27998 {
27999
28000                         struct sockaddr_storage ss;
28001
28002   ;
28003   return 0;
28004 }
28005 _ACEOF
28006 rm -f conftest.$ac_objext
28007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28008   (eval $ac_compile) 2>conftest.er1
28009   ac_status=$?
28010   grep -v '^ *+' conftest.er1 >conftest.err
28011   rm -f conftest.er1
28012   cat conftest.err >&5
28013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014   (exit $ac_status); } &&
28015          { ac_try='test -z "$ac_c_werror_flag"
28016                          || test ! -s conftest.err'
28017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018   (eval $ac_try) 2>&5
28019   ac_status=$?
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); }; } &&
28022          { ac_try='test -s conftest.$ac_objext'
28023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28024   (eval $ac_try) 2>&5
28025   ac_status=$?
28026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027   (exit $ac_status); }; }; then
28028   ol_cv_struct_sockaddr_storage=yes
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033 ol_cv_struct_sockaddr_storage=no
28034 fi
28035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28036 fi
28037 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
28038 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
28039
28040         if test $ol_cv_inet6_addrstrlen = yes \
28041                 -a $ol_cv_struct_sockaddr_storage = yes ; then
28042                 ol_link_ipv6=yes
28043         elif test $ol_enable_ipv6 = yes \
28044                         -a $ol_cv_inet6_addrstrlen = no ; then
28045                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
28046 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
28047    { (exit 1); exit 1; }; }
28048         elif test $ol_enable_ipv6 = yes \
28049                         -a $ol_cv_struct_sockaddr_storage = no ; then
28050                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
28051 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
28052    { (exit 1); exit 1; }; }
28053         fi
28054 fi
28055
28056 if test $ol_enable_local != no ; then
28057
28058 for ac_header in sys/un.h
28059 do
28060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28062   echo "$as_me:$LINENO: checking for $ac_header" >&5
28063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28065   echo $ECHO_N "(cached) $ECHO_C" >&6
28066 fi
28067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28069 else
28070   # Is the header compilable?
28071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28073 cat >conftest.$ac_ext <<_ACEOF
28074 /* confdefs.h.  */
28075 _ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h.  */
28079 $ac_includes_default
28080 #include <$ac_header>
28081 _ACEOF
28082 rm -f conftest.$ac_objext
28083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28084   (eval $ac_compile) 2>conftest.er1
28085   ac_status=$?
28086   grep -v '^ *+' conftest.er1 >conftest.err
28087   rm -f conftest.er1
28088   cat conftest.err >&5
28089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090   (exit $ac_status); } &&
28091          { ac_try='test -z "$ac_c_werror_flag"
28092                          || test ! -s conftest.err'
28093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094   (eval $ac_try) 2>&5
28095   ac_status=$?
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); }; } &&
28098          { ac_try='test -s conftest.$ac_objext'
28099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28100   (eval $ac_try) 2>&5
28101   ac_status=$?
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); }; }; then
28104   ac_header_compiler=yes
28105 else
28106   echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28108
28109 ac_header_compiler=no
28110 fi
28111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28113 echo "${ECHO_T}$ac_header_compiler" >&6
28114
28115 # Is the header present?
28116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28118 cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h.  */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h.  */
28124 #include <$ac_header>
28125 _ACEOF
28126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28128   ac_status=$?
28129   grep -v '^ *+' conftest.er1 >conftest.err
28130   rm -f conftest.er1
28131   cat conftest.err >&5
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); } >/dev/null; then
28134   if test -s conftest.err; then
28135     ac_cpp_err=$ac_c_preproc_warn_flag
28136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28137   else
28138     ac_cpp_err=
28139   fi
28140 else
28141   ac_cpp_err=yes
28142 fi
28143 if test -z "$ac_cpp_err"; then
28144   ac_header_preproc=yes
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149   ac_header_preproc=no
28150 fi
28151 rm -f conftest.err conftest.$ac_ext
28152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28153 echo "${ECHO_T}$ac_header_preproc" >&6
28154
28155 # So?  What about this header?
28156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28157   yes:no: )
28158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28162     ac_header_preproc=yes
28163     ;;
28164   no:yes:* )
28165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28177     (
28178       cat <<\_ASBOX
28179 ## ------------------------------------------ ##
28180 ## Report this to the AC_PACKAGE_NAME lists.  ##
28181 ## ------------------------------------------ ##
28182 _ASBOX
28183     ) |
28184       sed "s/^/$as_me: WARNING:     /" >&2
28185     ;;
28186 esac
28187 echo "$as_me:$LINENO: checking for $ac_header" >&5
28188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28190   echo $ECHO_N "(cached) $ECHO_C" >&6
28191 else
28192   eval "$as_ac_Header=\$ac_header_preproc"
28193 fi
28194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28196
28197 fi
28198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28199   cat >>confdefs.h <<_ACEOF
28200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28201 _ACEOF
28202
28203 fi
28204
28205 done
28206
28207
28208         if test $ol_enable_local = auto ; then
28209                 ol_enable_local=$ac_cv_header_sys_un_h
28210         elif test $ac_cv_header_sys_un_h = no ; then
28211                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28212 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28213    { (exit 1); exit 1; }; }
28214         fi
28215 fi
28216
28217 ol_link_kbind=no
28218 ol_link_krb5=no
28219 ol_link_krb4=no
28220
28221 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28222         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28223         -o $ol_with_kerberos = k425 ; then
28224
28225
28226 for ac_header in krb5.h
28227 do
28228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28230   echo "$as_me:$LINENO: checking for $ac_header" >&5
28231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
28238   # Is the header compilable?
28239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28241 cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247 $ac_includes_default
28248 #include <$ac_header>
28249 _ACEOF
28250 rm -f conftest.$ac_objext
28251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28252   (eval $ac_compile) 2>conftest.er1
28253   ac_status=$?
28254   grep -v '^ *+' conftest.er1 >conftest.err
28255   rm -f conftest.er1
28256   cat conftest.err >&5
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); } &&
28259          { ac_try='test -z "$ac_c_werror_flag"
28260                          || test ! -s conftest.err'
28261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262   (eval $ac_try) 2>&5
28263   ac_status=$?
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); }; } &&
28266          { ac_try='test -s conftest.$ac_objext'
28267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268   (eval $ac_try) 2>&5
28269   ac_status=$?
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); }; }; then
28272   ac_header_compiler=yes
28273 else
28274   echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277 ac_header_compiler=no
28278 fi
28279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28281 echo "${ECHO_T}$ac_header_compiler" >&6
28282
28283 # Is the header present?
28284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28286 cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h.  */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h.  */
28292 #include <$ac_header>
28293 _ACEOF
28294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } >/dev/null; then
28302   if test -s conftest.err; then
28303     ac_cpp_err=$ac_c_preproc_warn_flag
28304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28305   else
28306     ac_cpp_err=
28307   fi
28308 else
28309   ac_cpp_err=yes
28310 fi
28311 if test -z "$ac_cpp_err"; then
28312   ac_header_preproc=yes
28313 else
28314   echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28316
28317   ac_header_preproc=no
28318 fi
28319 rm -f conftest.err conftest.$ac_ext
28320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28321 echo "${ECHO_T}$ac_header_preproc" >&6
28322
28323 # So?  What about this header?
28324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28325   yes:no: )
28326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28330     ac_header_preproc=yes
28331     ;;
28332   no:yes:* )
28333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28345     (
28346       cat <<\_ASBOX
28347 ## ------------------------------------------ ##
28348 ## Report this to the AC_PACKAGE_NAME lists.  ##
28349 ## ------------------------------------------ ##
28350 _ASBOX
28351     ) |
28352       sed "s/^/$as_me: WARNING:     /" >&2
28353     ;;
28354 esac
28355 echo "$as_me:$LINENO: checking for $ac_header" >&5
28356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28358   echo $ECHO_N "(cached) $ECHO_C" >&6
28359 else
28360   eval "$as_ac_Header=\$ac_header_preproc"
28361 fi
28362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28364
28365 fi
28366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28367   cat >>confdefs.h <<_ACEOF
28368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28369 _ACEOF
28370
28371 fi
28372
28373 done
28374
28375
28376         if test $ac_cv_header_krb5_h = yes ; then
28377
28378 for ac_header in heim_err.h
28379 do
28380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28382   echo "$as_me:$LINENO: checking for $ac_header" >&5
28383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28385   echo $ECHO_N "(cached) $ECHO_C" >&6
28386 fi
28387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28389 else
28390   # Is the header compilable?
28391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28393 cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399 $ac_includes_default
28400 #include <$ac_header>
28401 _ACEOF
28402 rm -f conftest.$ac_objext
28403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28404   (eval $ac_compile) 2>conftest.er1
28405   ac_status=$?
28406   grep -v '^ *+' conftest.er1 >conftest.err
28407   rm -f conftest.er1
28408   cat conftest.err >&5
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); } &&
28411          { ac_try='test -z "$ac_c_werror_flag"
28412                          || test ! -s conftest.err'
28413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414   (eval $ac_try) 2>&5
28415   ac_status=$?
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); }; } &&
28418          { ac_try='test -s conftest.$ac_objext'
28419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420   (eval $ac_try) 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); }; }; then
28424   ac_header_compiler=yes
28425 else
28426   echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28428
28429 ac_header_compiler=no
28430 fi
28431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28433 echo "${ECHO_T}$ac_header_compiler" >&6
28434
28435 # Is the header present?
28436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28438 cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h.  */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h.  */
28444 #include <$ac_header>
28445 _ACEOF
28446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28448   ac_status=$?
28449   grep -v '^ *+' conftest.er1 >conftest.err
28450   rm -f conftest.er1
28451   cat conftest.err >&5
28452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453   (exit $ac_status); } >/dev/null; then
28454   if test -s conftest.err; then
28455     ac_cpp_err=$ac_c_preproc_warn_flag
28456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28457   else
28458     ac_cpp_err=
28459   fi
28460 else
28461   ac_cpp_err=yes
28462 fi
28463 if test -z "$ac_cpp_err"; then
28464   ac_header_preproc=yes
28465 else
28466   echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28468
28469   ac_header_preproc=no
28470 fi
28471 rm -f conftest.err conftest.$ac_ext
28472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28473 echo "${ECHO_T}$ac_header_preproc" >&6
28474
28475 # So?  What about this header?
28476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28477   yes:no: )
28478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28482     ac_header_preproc=yes
28483     ;;
28484   no:yes:* )
28485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28497     (
28498       cat <<\_ASBOX
28499 ## ------------------------------------------ ##
28500 ## Report this to the AC_PACKAGE_NAME lists.  ##
28501 ## ------------------------------------------ ##
28502 _ASBOX
28503     ) |
28504       sed "s/^/$as_me: WARNING:     /" >&2
28505     ;;
28506 esac
28507 echo "$as_me:$LINENO: checking for $ac_header" >&5
28508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28510   echo $ECHO_N "(cached) $ECHO_C" >&6
28511 else
28512   eval "$as_ac_Header=\$ac_header_preproc"
28513 fi
28514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28516
28517 fi
28518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28519   cat >>confdefs.h <<_ACEOF
28520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28521 _ACEOF
28522
28523 fi
28524
28525 done
28526
28527                 if test $ac_cv_header_heim_err_h = yes ; then
28528                         krb5_impl=heimdal
28529                 else
28530                         krb5_impl=mit
28531                 fi
28532
28533                 if test $krb5_impl = mit; then
28534                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28535 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28536 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28537   echo $ECHO_N "(cached) $ECHO_C" >&6
28538 else
28539   ac_check_lib_save_LIBS=$LIBS
28540 LIBS="-lk5crypto  $LIBS"
28541 cat >conftest.$ac_ext <<_ACEOF
28542 /* confdefs.h.  */
28543 _ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h.  */
28547
28548
28549 int
28550 main ()
28551 {
28552 main ();
28553   ;
28554   return 0;
28555 }
28556 _ACEOF
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28559   (eval $ac_link) 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -z "$ac_c_werror_flag"
28567                          || test ! -s conftest.err'
28568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569   (eval $ac_try) 2>&5
28570   ac_status=$?
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); }; } &&
28573          { ac_try='test -s conftest$ac_exeext'
28574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575   (eval $ac_try) 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; }; then
28579   ac_cv_lib_k5crypto_main=yes
28580 else
28581   echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28583
28584 ac_cv_lib_k5crypto_main=no
28585 fi
28586 rm -f conftest.err conftest.$ac_objext \
28587       conftest$ac_exeext conftest.$ac_ext
28588 LIBS=$ac_check_lib_save_LIBS
28589 fi
28590 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28591 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28592 if test $ac_cv_lib_k5crypto_main = yes; then
28593   krb5crypto=k5crypto
28594 else
28595   krb5crypto=crypto
28596 fi
28597
28598
28599                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28600 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28601 if test "${ac_cv_lib_krb5_main+set}" = set; then
28602   echo $ECHO_N "(cached) $ECHO_C" >&6
28603 else
28604   ac_check_lib_save_LIBS=$LIBS
28605 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28606 cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h.  */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h.  */
28612
28613
28614 int
28615 main ()
28616 {
28617 main ();
28618   ;
28619   return 0;
28620 }
28621 _ACEOF
28622 rm -f conftest.$ac_objext conftest$ac_exeext
28623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624   (eval $ac_link) 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } &&
28631          { ac_try='test -z "$ac_c_werror_flag"
28632                          || test ! -s conftest.err'
28633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634   (eval $ac_try) 2>&5
28635   ac_status=$?
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); }; } &&
28638          { ac_try='test -s conftest$ac_exeext'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; }; then
28644   ac_cv_lib_krb5_main=yes
28645 else
28646   echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28648
28649 ac_cv_lib_krb5_main=no
28650 fi
28651 rm -f conftest.err conftest.$ac_objext \
28652       conftest$ac_exeext conftest.$ac_ext
28653 LIBS=$ac_check_lib_save_LIBS
28654 fi
28655 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28656 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28657 if test $ac_cv_lib_krb5_main = yes; then
28658   have_krb5=yes
28659                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28660 else
28661   have_krb5=no
28662 fi
28663
28664
28665                 elif test $krb5_impl = heimdal; then
28666                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28667 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28668 if test "${ac_cv_lib_des_main+set}" = set; then
28669   echo $ECHO_N "(cached) $ECHO_C" >&6
28670 else
28671   ac_check_lib_save_LIBS=$LIBS
28672 LIBS="-ldes  $LIBS"
28673 cat >conftest.$ac_ext <<_ACEOF
28674 /* confdefs.h.  */
28675 _ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h.  */
28679
28680
28681 int
28682 main ()
28683 {
28684 main ();
28685   ;
28686   return 0;
28687 }
28688 _ACEOF
28689 rm -f conftest.$ac_objext conftest$ac_exeext
28690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28691   (eval $ac_link) 2>conftest.er1
28692   ac_status=$?
28693   grep -v '^ *+' conftest.er1 >conftest.err
28694   rm -f conftest.er1
28695   cat conftest.err >&5
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); } &&
28698          { ac_try='test -z "$ac_c_werror_flag"
28699                          || test ! -s conftest.err'
28700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701   (eval $ac_try) 2>&5
28702   ac_status=$?
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); }; } &&
28705          { ac_try='test -s conftest$ac_exeext'
28706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707   (eval $ac_try) 2>&5
28708   ac_status=$?
28709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710   (exit $ac_status); }; }; then
28711   ac_cv_lib_des_main=yes
28712 else
28713   echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28715
28716 ac_cv_lib_des_main=no
28717 fi
28718 rm -f conftest.err conftest.$ac_objext \
28719       conftest$ac_exeext conftest.$ac_ext
28720 LIBS=$ac_check_lib_save_LIBS
28721 fi
28722 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28723 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28724 if test $ac_cv_lib_des_main = yes; then
28725   krb5crypto=des
28726 else
28727   krb5crypto=crypto
28728 fi
28729
28730
28731                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28732 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28733 if test "${ac_cv_lib_krb5_main+set}" = set; then
28734   echo $ECHO_N "(cached) $ECHO_C" >&6
28735 else
28736   ac_check_lib_save_LIBS=$LIBS
28737 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28738 cat >conftest.$ac_ext <<_ACEOF
28739 /* confdefs.h.  */
28740 _ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h.  */
28744
28745
28746 int
28747 main ()
28748 {
28749 main ();
28750   ;
28751   return 0;
28752 }
28753 _ACEOF
28754 rm -f conftest.$ac_objext conftest$ac_exeext
28755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28756   (eval $ac_link) 2>conftest.er1
28757   ac_status=$?
28758   grep -v '^ *+' conftest.er1 >conftest.err
28759   rm -f conftest.er1
28760   cat conftest.err >&5
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); } &&
28763          { ac_try='test -z "$ac_c_werror_flag"
28764                          || test ! -s conftest.err'
28765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766   (eval $ac_try) 2>&5
28767   ac_status=$?
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); }; } &&
28770          { ac_try='test -s conftest$ac_exeext'
28771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772   (eval $ac_try) 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); }; }; then
28776   ac_cv_lib_krb5_main=yes
28777 else
28778   echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781 ac_cv_lib_krb5_main=no
28782 fi
28783 rm -f conftest.err conftest.$ac_objext \
28784       conftest$ac_exeext conftest.$ac_ext
28785 LIBS=$ac_check_lib_save_LIBS
28786 fi
28787 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28788 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28789 if test $ac_cv_lib_krb5_main = yes; then
28790   have_krb5=yes
28791                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28792 else
28793   have_krb5=no
28794 fi
28795
28796
28797
28798 cat >>confdefs.h <<\_ACEOF
28799 #define HAVE_HEIMDAL_KERBEROS 1
28800 _ACEOF
28801
28802
28803                 else
28804                         have_krb5=no
28805                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28806 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28807                 fi
28808
28809                 if test $have_krb5 = yes ; then
28810                         ol_link_krb5=yes
28811
28812
28813 cat >>confdefs.h <<\_ACEOF
28814 #define HAVE_KRB5 1
28815 _ACEOF
28816
28817
28818                         if test $ol_with_kerberos = k5only ; then
28819                                 ol_with_kerberos=found
28820                         fi
28821
28822                 elif test $ol_with_kerberos != auto ; then
28823                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28824 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28825    { (exit 1); exit 1; }; }
28826                 fi
28827
28828         fi
28829 fi
28830
28831 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28832         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28833
28834
28835
28836 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28837 do
28838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28840   echo "$as_me:$LINENO: checking for $ac_header" >&5
28841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28843   echo $ECHO_N "(cached) $ECHO_C" >&6
28844 fi
28845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28847 else
28848   # Is the header compilable?
28849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28851 cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 $ac_includes_default
28858 #include <$ac_header>
28859 _ACEOF
28860 rm -f conftest.$ac_objext
28861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28862   (eval $ac_compile) 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } &&
28869          { ac_try='test -z "$ac_c_werror_flag"
28870                          || test ! -s conftest.err'
28871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872   (eval $ac_try) 2>&5
28873   ac_status=$?
28874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); }; } &&
28876          { ac_try='test -s conftest.$ac_objext'
28877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878   (eval $ac_try) 2>&5
28879   ac_status=$?
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); }; }; then
28882   ac_header_compiler=yes
28883 else
28884   echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28886
28887 ac_header_compiler=no
28888 fi
28889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28891 echo "${ECHO_T}$ac_header_compiler" >&6
28892
28893 # Is the header present?
28894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28896 cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h.  */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h.  */
28902 #include <$ac_header>
28903 _ACEOF
28904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28906   ac_status=$?
28907   grep -v '^ *+' conftest.er1 >conftest.err
28908   rm -f conftest.er1
28909   cat conftest.err >&5
28910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911   (exit $ac_status); } >/dev/null; then
28912   if test -s conftest.err; then
28913     ac_cpp_err=$ac_c_preproc_warn_flag
28914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28915   else
28916     ac_cpp_err=
28917   fi
28918 else
28919   ac_cpp_err=yes
28920 fi
28921 if test -z "$ac_cpp_err"; then
28922   ac_header_preproc=yes
28923 else
28924   echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28926
28927   ac_header_preproc=no
28928 fi
28929 rm -f conftest.err conftest.$ac_ext
28930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28931 echo "${ECHO_T}$ac_header_preproc" >&6
28932
28933 # So?  What about this header?
28934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28935   yes:no: )
28936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28940     ac_header_preproc=yes
28941     ;;
28942   no:yes:* )
28943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28955     (
28956       cat <<\_ASBOX
28957 ## ------------------------------------------ ##
28958 ## Report this to the AC_PACKAGE_NAME lists.  ##
28959 ## ------------------------------------------ ##
28960 _ASBOX
28961     ) |
28962       sed "s/^/$as_me: WARNING:     /" >&2
28963     ;;
28964 esac
28965 echo "$as_me:$LINENO: checking for $ac_header" >&5
28966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28968   echo $ECHO_N "(cached) $ECHO_C" >&6
28969 else
28970   eval "$as_ac_Header=\$ac_header_preproc"
28971 fi
28972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28974
28975 fi
28976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28977   cat >>confdefs.h <<_ACEOF
28978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28979 _ACEOF
28980
28981 fi
28982
28983 done
28984
28985
28986         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28987                 if test $krb5_impl = mit; then
28988                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28989 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28990 if test "${ac_cv_lib_krb4_main+set}" = set; then
28991   echo $ECHO_N "(cached) $ECHO_C" >&6
28992 else
28993   ac_check_lib_save_LIBS=$LIBS
28994 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28995 cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001
29002
29003 int
29004 main ()
29005 {
29006 main ();
29007   ;
29008   return 0;
29009 }
29010 _ACEOF
29011 rm -f conftest.$ac_objext conftest$ac_exeext
29012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29013   (eval $ac_link) 2>conftest.er1
29014   ac_status=$?
29015   grep -v '^ *+' conftest.er1 >conftest.err
29016   rm -f conftest.er1
29017   cat conftest.err >&5
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); } &&
29020          { ac_try='test -z "$ac_c_werror_flag"
29021                          || test ! -s conftest.err'
29022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023   (eval $ac_try) 2>&5
29024   ac_status=$?
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); }; } &&
29027          { ac_try='test -s conftest$ac_exeext'
29028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029   (eval $ac_try) 2>&5
29030   ac_status=$?
29031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); }; }; then
29033   ac_cv_lib_krb4_main=yes
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29037
29038 ac_cv_lib_krb4_main=no
29039 fi
29040 rm -f conftest.err conftest.$ac_objext \
29041       conftest$ac_exeext conftest.$ac_ext
29042 LIBS=$ac_check_lib_save_LIBS
29043 fi
29044 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29045 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29046 if test $ac_cv_lib_krb4_main = yes; then
29047   have_k425=yes
29048                                 KRB4_LIBS="-lkrb4 -ldes425"
29049 else
29050   have_k425=no
29051 fi
29052
29053
29054                 elif test $krb5_impl = heimdal; then
29055                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
29056 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
29057 if test "${ac_cv_lib_krb4_main+set}" = set; then
29058   echo $ECHO_N "(cached) $ECHO_C" >&6
29059 else
29060   ac_check_lib_save_LIBS=$LIBS
29061 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
29062 cat >conftest.$ac_ext <<_ACEOF
29063 /* confdefs.h.  */
29064 _ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h.  */
29068
29069
29070 int
29071 main ()
29072 {
29073 main ();
29074   ;
29075   return 0;
29076 }
29077 _ACEOF
29078 rm -f conftest.$ac_objext conftest$ac_exeext
29079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29080   (eval $ac_link) 2>conftest.er1
29081   ac_status=$?
29082   grep -v '^ *+' conftest.er1 >conftest.err
29083   rm -f conftest.er1
29084   cat conftest.err >&5
29085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086   (exit $ac_status); } &&
29087          { ac_try='test -z "$ac_c_werror_flag"
29088                          || test ! -s conftest.err'
29089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090   (eval $ac_try) 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); }; } &&
29094          { ac_try='test -s conftest$ac_exeext'
29095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096   (eval $ac_try) 2>&5
29097   ac_status=$?
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); }; }; then
29100   ac_cv_lib_krb4_main=yes
29101 else
29102   echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29104
29105 ac_cv_lib_krb4_main=no
29106 fi
29107 rm -f conftest.err conftest.$ac_objext \
29108       conftest$ac_exeext conftest.$ac_ext
29109 LIBS=$ac_check_lib_save_LIBS
29110 fi
29111 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29112 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29113 if test $ac_cv_lib_krb4_main = yes; then
29114   have_k425=yes
29115                                 KRB4_LIBS="-lkrb4"
29116 else
29117   have_k425=no
29118 fi
29119
29120
29121                 else
29122                         have_425=no
29123                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29124 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29125                 fi
29126
29127                 if test $have_k425 = yes ; then
29128                         ol_with_kerberos=found
29129                         ol_link_krb4=yes
29130
29131
29132 cat >>confdefs.h <<\_ACEOF
29133 #define HAVE_KRB425 1
29134 _ACEOF
29135
29136
29137 cat >>confdefs.h <<\_ACEOF
29138 #define HAVE_KRB4 1
29139 _ACEOF
29140
29141
29142                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29143 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29144 if test "${ol_cv_var_des_debug+set}" = set; then
29145   echo $ECHO_N "(cached) $ECHO_C" >&6
29146 else
29147
29148                                                                 save_LIBS="$LIBS"
29149                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29150                                 cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h.  */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h.  */
29156
29157 #include <kerberosIV/krb.h>
29158 #include <kerberosIV/des.h>
29159 extern int des_debug;
29160
29161 int
29162 main ()
29163 {
29164
29165 des_debug = 1;
29166
29167   ;
29168   return 0;
29169 }
29170 _ACEOF
29171 rm -f conftest.$ac_objext conftest$ac_exeext
29172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29173   (eval $ac_link) 2>conftest.er1
29174   ac_status=$?
29175   grep -v '^ *+' conftest.er1 >conftest.err
29176   rm -f conftest.er1
29177   cat conftest.err >&5
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); } &&
29180          { ac_try='test -z "$ac_c_werror_flag"
29181                          || test ! -s conftest.err'
29182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183   (eval $ac_try) 2>&5
29184   ac_status=$?
29185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186   (exit $ac_status); }; } &&
29187          { ac_try='test -s conftest$ac_exeext'
29188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189   (eval $ac_try) 2>&5
29190   ac_status=$?
29191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192   (exit $ac_status); }; }; then
29193   ol_cv_var_des_debug=yes
29194 else
29195   echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29197
29198 ol_cv_var_des_debug=no
29199 fi
29200 rm -f conftest.err conftest.$ac_objext \
29201       conftest$ac_exeext conftest.$ac_ext
29202                                                                 LIBS="$save_LIBS"
29203
29204 fi
29205 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29206 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29207
29208                         if test $ol_cv_var_des_debug = yes ; then
29209
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_DES_DEBUG 1
29212 _ACEOF
29213
29214                         fi
29215
29216                         LIBS="$save_LIBS"
29217                 fi
29218         fi
29219 fi
29220
29221 if test $ol_link_krb5 = yes ; then
29222         ol_with_kerberos=found
29223 fi
29224
29225 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29226         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29227
29228
29229
29230
29231 for ac_header in krb.h des.h krb-archaeology.h
29232 do
29233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29235   echo "$as_me:$LINENO: checking for $ac_header" >&5
29236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29238   echo $ECHO_N "(cached) $ECHO_C" >&6
29239 fi
29240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29242 else
29243   # Is the header compilable?
29244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29246 cat >conftest.$ac_ext <<_ACEOF
29247 /* confdefs.h.  */
29248 _ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h.  */
29252 $ac_includes_default
29253 #include <$ac_header>
29254 _ACEOF
29255 rm -f conftest.$ac_objext
29256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29257   (eval $ac_compile) 2>conftest.er1
29258   ac_status=$?
29259   grep -v '^ *+' conftest.er1 >conftest.err
29260   rm -f conftest.er1
29261   cat conftest.err >&5
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); } &&
29264          { ac_try='test -z "$ac_c_werror_flag"
29265                          || test ! -s conftest.err'
29266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267   (eval $ac_try) 2>&5
29268   ac_status=$?
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); }; } &&
29271          { ac_try='test -s conftest.$ac_objext'
29272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273   (eval $ac_try) 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); }; }; then
29277   ac_header_compiler=yes
29278 else
29279   echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29281
29282 ac_header_compiler=no
29283 fi
29284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29286 echo "${ECHO_T}$ac_header_compiler" >&6
29287
29288 # Is the header present?
29289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29291 cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297 #include <$ac_header>
29298 _ACEOF
29299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29301   ac_status=$?
29302   grep -v '^ *+' conftest.er1 >conftest.err
29303   rm -f conftest.er1
29304   cat conftest.err >&5
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); } >/dev/null; then
29307   if test -s conftest.err; then
29308     ac_cpp_err=$ac_c_preproc_warn_flag
29309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29310   else
29311     ac_cpp_err=
29312   fi
29313 else
29314   ac_cpp_err=yes
29315 fi
29316 if test -z "$ac_cpp_err"; then
29317   ac_header_preproc=yes
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322   ac_header_preproc=no
29323 fi
29324 rm -f conftest.err conftest.$ac_ext
29325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29326 echo "${ECHO_T}$ac_header_preproc" >&6
29327
29328 # So?  What about this header?
29329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29330   yes:no: )
29331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29335     ac_header_preproc=yes
29336     ;;
29337   no:yes:* )
29338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29350     (
29351       cat <<\_ASBOX
29352 ## ------------------------------------------ ##
29353 ## Report this to the AC_PACKAGE_NAME lists.  ##
29354 ## ------------------------------------------ ##
29355 _ASBOX
29356     ) |
29357       sed "s/^/$as_me: WARNING:     /" >&2
29358     ;;
29359 esac
29360 echo "$as_me:$LINENO: checking for $ac_header" >&5
29361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365   eval "$as_ac_Header=\$ac_header_preproc"
29366 fi
29367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29369
29370 fi
29371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29372   cat >>confdefs.h <<_ACEOF
29373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29374 _ACEOF
29375
29376 fi
29377
29378 done
29379
29380
29381         if test $ac_cv_header_krb_h = yes ; then
29382                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29383 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29384 if test "${ac_cv_lib_krb_main+set}" = set; then
29385   echo $ECHO_N "(cached) $ECHO_C" >&6
29386 else
29387   ac_check_lib_save_LIBS=$LIBS
29388 LIBS="-lkrb -ldes $LIBS"
29389 cat >conftest.$ac_ext <<_ACEOF
29390 /* confdefs.h.  */
29391 _ACEOF
29392 cat confdefs.h >>conftest.$ac_ext
29393 cat >>conftest.$ac_ext <<_ACEOF
29394 /* end confdefs.h.  */
29395
29396
29397 int
29398 main ()
29399 {
29400 main ();
29401   ;
29402   return 0;
29403 }
29404 _ACEOF
29405 rm -f conftest.$ac_objext conftest$ac_exeext
29406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29407   (eval $ac_link) 2>conftest.er1
29408   ac_status=$?
29409   grep -v '^ *+' conftest.er1 >conftest.err
29410   rm -f conftest.er1
29411   cat conftest.err >&5
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); } &&
29414          { ac_try='test -z "$ac_c_werror_flag"
29415                          || test ! -s conftest.err'
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); }; } &&
29421          { ac_try='test -s conftest$ac_exeext'
29422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423   (eval $ac_try) 2>&5
29424   ac_status=$?
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); }; }; then
29427   ac_cv_lib_krb_main=yes
29428 else
29429   echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29431
29432 ac_cv_lib_krb_main=no
29433 fi
29434 rm -f conftest.err conftest.$ac_objext \
29435       conftest$ac_exeext conftest.$ac_ext
29436 LIBS=$ac_check_lib_save_LIBS
29437 fi
29438 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29439 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29440 if test $ac_cv_lib_krb_main = yes; then
29441   have_k4=yes
29442 else
29443   have_k4=no
29444 fi
29445
29446
29447                 if test $have_k4 = yes ; then
29448                         ol_with_kerberos=found
29449                         ol_link_krb4=yes
29450
29451
29452 cat >>confdefs.h <<\_ACEOF
29453 #define HAVE_KRB4 1
29454 _ACEOF
29455
29456
29457                         KRB4_LIBS="-lkrb -ldes"
29458
29459                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29460
29461 cat >>confdefs.h <<\_ACEOF
29462 #define HAVE_KTH_KERBEROS 1
29463 _ACEOF
29464
29465                         fi
29466                 fi
29467         fi
29468 fi
29469
29470 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29471         ol_link_kbind=yes
29472
29473 elif test $ol_enable_kbind = yes ; then
29474         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29475 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29476    { (exit 1); exit 1; }; }
29477 fi
29478
29479 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29480
29481 cat >>confdefs.h <<\_ACEOF
29482 #define HAVE_KERBEROS 1
29483 _ACEOF
29484
29485
29486 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29487         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29488 echo "$as_me: error: Kerberos detection failed" >&2;}
29489    { (exit 1); exit 1; }; }
29490 fi
29491
29492
29493 ol_link_tls=no
29494 if test $ol_with_tls != no ; then
29495
29496
29497 for ac_header in openssl/ssl.h ssl.h
29498 do
29499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29501   echo "$as_me:$LINENO: checking for $ac_header" >&5
29502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29504   echo $ECHO_N "(cached) $ECHO_C" >&6
29505 fi
29506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29508 else
29509   # Is the header compilable?
29510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29512 cat >conftest.$ac_ext <<_ACEOF
29513 /* confdefs.h.  */
29514 _ACEOF
29515 cat confdefs.h >>conftest.$ac_ext
29516 cat >>conftest.$ac_ext <<_ACEOF
29517 /* end confdefs.h.  */
29518 $ac_includes_default
29519 #include <$ac_header>
29520 _ACEOF
29521 rm -f conftest.$ac_objext
29522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29523   (eval $ac_compile) 2>conftest.er1
29524   ac_status=$?
29525   grep -v '^ *+' conftest.er1 >conftest.err
29526   rm -f conftest.er1
29527   cat conftest.err >&5
29528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529   (exit $ac_status); } &&
29530          { ac_try='test -z "$ac_c_werror_flag"
29531                          || test ! -s conftest.err'
29532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29533   (eval $ac_try) 2>&5
29534   ac_status=$?
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); }; } &&
29537          { ac_try='test -s conftest.$ac_objext'
29538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539   (eval $ac_try) 2>&5
29540   ac_status=$?
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); }; }; then
29543   ac_header_compiler=yes
29544 else
29545   echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29547
29548 ac_header_compiler=no
29549 fi
29550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29552 echo "${ECHO_T}$ac_header_compiler" >&6
29553
29554 # Is the header present?
29555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29557 cat >conftest.$ac_ext <<_ACEOF
29558 /* confdefs.h.  */
29559 _ACEOF
29560 cat confdefs.h >>conftest.$ac_ext
29561 cat >>conftest.$ac_ext <<_ACEOF
29562 /* end confdefs.h.  */
29563 #include <$ac_header>
29564 _ACEOF
29565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29567   ac_status=$?
29568   grep -v '^ *+' conftest.er1 >conftest.err
29569   rm -f conftest.er1
29570   cat conftest.err >&5
29571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572   (exit $ac_status); } >/dev/null; then
29573   if test -s conftest.err; then
29574     ac_cpp_err=$ac_c_preproc_warn_flag
29575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29576   else
29577     ac_cpp_err=
29578   fi
29579 else
29580   ac_cpp_err=yes
29581 fi
29582 if test -z "$ac_cpp_err"; then
29583   ac_header_preproc=yes
29584 else
29585   echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29587
29588   ac_header_preproc=no
29589 fi
29590 rm -f conftest.err conftest.$ac_ext
29591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29592 echo "${ECHO_T}$ac_header_preproc" >&6
29593
29594 # So?  What about this header?
29595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29596   yes:no: )
29597     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29601     ac_header_preproc=yes
29602     ;;
29603   no:yes:* )
29604     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29606     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29607 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29608     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29610     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29611 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29614     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29616     (
29617       cat <<\_ASBOX
29618 ## ------------------------------------------ ##
29619 ## Report this to the AC_PACKAGE_NAME lists.  ##
29620 ## ------------------------------------------ ##
29621 _ASBOX
29622     ) |
29623       sed "s/^/$as_me: WARNING:     /" >&2
29624     ;;
29625 esac
29626 echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29629   echo $ECHO_N "(cached) $ECHO_C" >&6
29630 else
29631   eval "$as_ac_Header=\$ac_header_preproc"
29632 fi
29633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29635
29636 fi
29637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29638   cat >>confdefs.h <<_ACEOF
29639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29640 _ACEOF
29641
29642 fi
29643
29644 done
29645
29646
29647         if test $ac_cv_header_openssl_ssl_h = yes \
29648                 -o $ac_cv_header_ssl_h = yes ; then
29649                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29650 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29651 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29652   echo $ECHO_N "(cached) $ECHO_C" >&6
29653 else
29654   ac_check_lib_save_LIBS=$LIBS
29655 LIBS="-lssl -lcrypto $LIBS"
29656 cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662
29663 /* Override any gcc2 internal prototype to avoid an error.  */
29664 #ifdef __cplusplus
29665 extern "C"
29666 #endif
29667 /* We use char because int might match the return type of a gcc2
29668    builtin and then its argument prototype would still apply.  */
29669 char SSLeay_add_ssl_algorithms ();
29670 int
29671 main ()
29672 {
29673 SSLeay_add_ssl_algorithms ();
29674   ;
29675   return 0;
29676 }
29677 _ACEOF
29678 rm -f conftest.$ac_objext conftest$ac_exeext
29679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29680   (eval $ac_link) 2>conftest.er1
29681   ac_status=$?
29682   grep -v '^ *+' conftest.er1 >conftest.err
29683   rm -f conftest.er1
29684   cat conftest.err >&5
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); } &&
29687          { ac_try='test -z "$ac_c_werror_flag"
29688                          || test ! -s conftest.err'
29689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690   (eval $ac_try) 2>&5
29691   ac_status=$?
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); }; } &&
29694          { ac_try='test -s conftest$ac_exeext'
29695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696   (eval $ac_try) 2>&5
29697   ac_status=$?
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); }; }; then
29700   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29701 else
29702   echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29704
29705 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29706 fi
29707 rm -f conftest.err conftest.$ac_objext \
29708       conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29710 fi
29711 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29712 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29713 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29714   have_ssleay=yes
29715                         need_rsaref=no
29716 else
29717   have_ssleay=no
29718 fi
29719
29720
29721                 if test $have_ssleay = no ; then
29722                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29723 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29724 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lssl -lcrypto $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h.  */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h.  */
29735
29736 /* Override any gcc2 internal prototype to avoid an error.  */
29737 #ifdef __cplusplus
29738 extern "C"
29739 #endif
29740 /* We use char because int might match the return type of a gcc2
29741    builtin and then its argument prototype would still apply.  */
29742 char SSL_library_init ();
29743 int
29744 main ()
29745 {
29746 SSL_library_init ();
29747   ;
29748   return 0;
29749 }
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753   (eval $ac_link) 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } &&
29760          { ac_try='test -z "$ac_c_werror_flag"
29761                          || test ! -s conftest.err'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; } &&
29767          { ac_try='test -s conftest$ac_exeext'
29768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769   (eval $ac_try) 2>&5
29770   ac_status=$?
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); }; }; then
29773   ac_cv_lib_ssl_SSL_library_init=yes
29774 else
29775   echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29777
29778 ac_cv_lib_ssl_SSL_library_init=no
29779 fi
29780 rm -f conftest.err conftest.$ac_objext \
29781       conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29783 fi
29784 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29785 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29786 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29787   have_ssleay=yes
29788                                 need_rsaref=no
29789 else
29790   have_ssleay=no
29791 fi
29792
29793                 fi
29794
29795                 if test $have_ssleay = no ; then
29796                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29797 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29798 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801   ac_check_lib_save_LIBS=$LIBS
29802 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29803 cat >conftest.$ac_ext <<_ACEOF
29804 /* confdefs.h.  */
29805 _ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h.  */
29809
29810 /* Override any gcc2 internal prototype to avoid an error.  */
29811 #ifdef __cplusplus
29812 extern "C"
29813 #endif
29814 /* We use char because int might match the return type of a gcc2
29815    builtin and then its argument prototype would still apply.  */
29816 char ssl3_accept ();
29817 int
29818 main ()
29819 {
29820 ssl3_accept ();
29821   ;
29822   return 0;
29823 }
29824 _ACEOF
29825 rm -f conftest.$ac_objext conftest$ac_exeext
29826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29827   (eval $ac_link) 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } &&
29834          { ac_try='test -z "$ac_c_werror_flag"
29835                          || test ! -s conftest.err'
29836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837   (eval $ac_try) 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; } &&
29841          { ac_try='test -s conftest$ac_exeext'
29842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843   (eval $ac_try) 2>&5
29844   ac_status=$?
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); }; }; then
29847   ac_cv_lib_ssl_ssl3_accept=yes
29848 else
29849   echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29851
29852 ac_cv_lib_ssl_ssl3_accept=no
29853 fi
29854 rm -f conftest.err conftest.$ac_objext \
29855       conftest$ac_exeext conftest.$ac_ext
29856 LIBS=$ac_check_lib_save_LIBS
29857 fi
29858 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29859 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29860 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29861   have_ssleay=yes
29862                                 need_rsaref=yes
29863 else
29864   have_ssleay=no
29865 fi
29866
29867                 fi
29868
29869                 if test $have_ssleay = yes ; then
29870                         ol_with_tls=found
29871                         ol_link_tls=yes
29872
29873
29874 cat >>confdefs.h <<\_ACEOF
29875 #define HAVE_SSLEAY 1
29876 _ACEOF
29877
29878
29879                         if test $need_rsaref = yes; then
29880
29881 cat >>confdefs.h <<\_ACEOF
29882 #define HAVE_RSAREF 1
29883 _ACEOF
29884
29885
29886                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29887                         else
29888                                 TLS_LIBS="-lssl -lcrypto"
29889                         fi
29890                 fi
29891                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29892 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29893 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29894   echo $ECHO_N "(cached) $ECHO_C" >&6
29895 else
29896
29897         cat >conftest.$ac_ext <<_ACEOF
29898 /* confdefs.h.  */
29899 _ACEOF
29900 cat confdefs.h >>conftest.$ac_ext
29901 cat >>conftest.$ac_ext <<_ACEOF
29902 /* end confdefs.h.  */
29903
29904 #ifdef HAVE_OPENSSL_SSL_H
29905 #include <openssl/ssl.h>
29906 #else
29907 #include <ssl.h>
29908 #endif
29909
29910 /* Require 0.9.7d+ */
29911 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29912         char *__ssl_compat = "0.9.7d";
29913 #endif
29914
29915 _ACEOF
29916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29917   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29918   ol_cv_ssl_crl_compat=yes
29919 else
29920   ol_cv_ssl_crl_compat=no
29921 fi
29922 rm -f conftest*
29923
29924 fi
29925 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29926 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29927
29928                 if test $ol_cv_ssl_crl_compat = no ; then
29929                         ol_link_ssl=no
29930                 else
29931
29932 cat >>confdefs.h <<\_ACEOF
29933 #define HAVE_OPENSSL_CRL 1
29934 _ACEOF
29935
29936                 fi
29937         fi
29938
29939 else
29940         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29941 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29942 fi
29943
29944 WITH_TLS=no
29945 if test $ol_link_tls = yes ; then
29946
29947 cat >>confdefs.h <<\_ACEOF
29948 #define HAVE_TLS 1
29949 _ACEOF
29950
29951         WITH_TLS=yes
29952
29953 elif test $ol_with_tls = auto ; then
29954         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29955 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29956         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29957 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29958
29959 elif test $ol_with_tls != no ; then
29960         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29961 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29962    { (exit 1); exit 1; }; }
29963 fi
29964
29965 if test $ol_enable_lmpasswd != no; then
29966         if test $ol_link_tls != yes ; then
29967                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29968 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29969    { (exit 1); exit 1; }; }
29970         fi
29971
29972
29973 cat >>confdefs.h <<\_ACEOF
29974 #define SLAPD_LMHASH 1
29975 _ACEOF
29976
29977 fi
29978
29979 ol_link_threads=no
29980
29981 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29982         -o $ol_with_threads = nt ; then
29983
29984
29985         echo "$as_me:$LINENO: checking for _beginthread" >&5
29986 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29987 if test "${ac_cv_func__beginthread+set}" = set; then
29988   echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990   cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h.  */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h.  */
29996 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29998 #define _beginthread innocuous__beginthread
29999
30000 /* System header to define __stub macros and hopefully few prototypes,
30001     which can conflict with char _beginthread (); below.
30002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30003     <limits.h> exists even on freestanding compilers.  */
30004
30005 #ifdef __STDC__
30006 # include <limits.h>
30007 #else
30008 # include <assert.h>
30009 #endif
30010
30011 #undef _beginthread
30012
30013 /* Override any gcc2 internal prototype to avoid an error.  */
30014 #ifdef __cplusplus
30015 extern "C"
30016 {
30017 #endif
30018 /* We use char because int might match the return type of a gcc2
30019    builtin and then its argument prototype would still apply.  */
30020 char _beginthread ();
30021 /* The GNU C library defines this for functions which it implements
30022     to always fail with ENOSYS.  Some functions are actually named
30023     something starting with __ and the normal name is an alias.  */
30024 #if defined (__stub__beginthread) || defined (__stub____beginthread)
30025 choke me
30026 #else
30027 char (*f) () = _beginthread;
30028 #endif
30029 #ifdef __cplusplus
30030 }
30031 #endif
30032
30033 int
30034 main ()
30035 {
30036 return f != _beginthread;
30037   ;
30038   return 0;
30039 }
30040 _ACEOF
30041 rm -f conftest.$ac_objext conftest$ac_exeext
30042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30043   (eval $ac_link) 2>conftest.er1
30044   ac_status=$?
30045   grep -v '^ *+' conftest.er1 >conftest.err
30046   rm -f conftest.er1
30047   cat conftest.err >&5
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); } &&
30050          { ac_try='test -z "$ac_c_werror_flag"
30051                          || test ! -s conftest.err'
30052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053   (eval $ac_try) 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; } &&
30057          { ac_try='test -s conftest$ac_exeext'
30058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059   (eval $ac_try) 2>&5
30060   ac_status=$?
30061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062   (exit $ac_status); }; }; then
30063   ac_cv_func__beginthread=yes
30064 else
30065   echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068 ac_cv_func__beginthread=no
30069 fi
30070 rm -f conftest.err conftest.$ac_objext \
30071       conftest$ac_exeext conftest.$ac_ext
30072 fi
30073 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30074 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30075
30076
30077         if test $ac_cv_func__beginthread = yes ; then
30078
30079 cat >>confdefs.h <<\_ACEOF
30080 #define HAVE_NT_THREADS 1
30081 _ACEOF
30082
30083                 ol_cv_nt_threads=yes
30084         fi
30085
30086
30087         if test "$ol_cv_nt_threads" = yes ; then
30088                 ol_link_threads=nt
30089                 ol_with_threads=found
30090                 ol_with_yielding_select=yes
30091
30092
30093 cat >>confdefs.h <<\_ACEOF
30094 #define HAVE_NT_SERVICE_MANAGER 1
30095 _ACEOF
30096
30097
30098 cat >>confdefs.h <<\_ACEOF
30099 #define HAVE_NT_EVENT_LOG 1
30100 _ACEOF
30101
30102         fi
30103
30104         if test $ol_with_threads = nt ; then
30105                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30106 echo "$as_me: error: could not locate NT Threads" >&2;}
30107    { (exit 1); exit 1; }; }
30108         fi
30109 fi
30110
30111 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30112         -o $ol_with_threads = posix ; then
30113
30114
30115 for ac_header in pthread.h
30116 do
30117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30119   echo "$as_me:$LINENO: checking for $ac_header" >&5
30120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30122   echo $ECHO_N "(cached) $ECHO_C" >&6
30123 fi
30124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30126 else
30127   # Is the header compilable?
30128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30130 cat >conftest.$ac_ext <<_ACEOF
30131 /* confdefs.h.  */
30132 _ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h.  */
30136 $ac_includes_default
30137 #include <$ac_header>
30138 _ACEOF
30139 rm -f conftest.$ac_objext
30140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30141   (eval $ac_compile) 2>conftest.er1
30142   ac_status=$?
30143   grep -v '^ *+' conftest.er1 >conftest.err
30144   rm -f conftest.er1
30145   cat conftest.err >&5
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); } &&
30148          { ac_try='test -z "$ac_c_werror_flag"
30149                          || test ! -s conftest.err'
30150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151   (eval $ac_try) 2>&5
30152   ac_status=$?
30153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154   (exit $ac_status); }; } &&
30155          { ac_try='test -s conftest.$ac_objext'
30156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30157   (eval $ac_try) 2>&5
30158   ac_status=$?
30159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160   (exit $ac_status); }; }; then
30161   ac_header_compiler=yes
30162 else
30163   echo "$as_me: failed program was:" >&5
30164 sed 's/^/| /' conftest.$ac_ext >&5
30165
30166 ac_header_compiler=no
30167 fi
30168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30170 echo "${ECHO_T}$ac_header_compiler" >&6
30171
30172 # Is the header present?
30173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30175 cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181 #include <$ac_header>
30182 _ACEOF
30183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30185   ac_status=$?
30186   grep -v '^ *+' conftest.er1 >conftest.err
30187   rm -f conftest.er1
30188   cat conftest.err >&5
30189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190   (exit $ac_status); } >/dev/null; then
30191   if test -s conftest.err; then
30192     ac_cpp_err=$ac_c_preproc_warn_flag
30193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30194   else
30195     ac_cpp_err=
30196   fi
30197 else
30198   ac_cpp_err=yes
30199 fi
30200 if test -z "$ac_cpp_err"; then
30201   ac_header_preproc=yes
30202 else
30203   echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30205
30206   ac_header_preproc=no
30207 fi
30208 rm -f conftest.err conftest.$ac_ext
30209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30210 echo "${ECHO_T}$ac_header_preproc" >&6
30211
30212 # So?  What about this header?
30213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30214   yes:no: )
30215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30219     ac_header_preproc=yes
30220     ;;
30221   no:yes:* )
30222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30234     (
30235       cat <<\_ASBOX
30236 ## ------------------------------------------ ##
30237 ## Report this to the AC_PACKAGE_NAME lists.  ##
30238 ## ------------------------------------------ ##
30239 _ASBOX
30240     ) |
30241       sed "s/^/$as_me: WARNING:     /" >&2
30242     ;;
30243 esac
30244 echo "$as_me:$LINENO: checking for $ac_header" >&5
30245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30247   echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249   eval "$as_ac_Header=\$ac_header_preproc"
30250 fi
30251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30253
30254 fi
30255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30256   cat >>confdefs.h <<_ACEOF
30257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30258 _ACEOF
30259
30260 fi
30261
30262 done
30263
30264
30265         if test $ac_cv_header_pthread_h = yes ; then
30266                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30267 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30268 if test "${ol_cv_pthread_version+set}" = set; then
30269   echo $ECHO_N "(cached) $ECHO_C" >&6
30270 else
30271
30272         cat >conftest.$ac_ext <<_ACEOF
30273 /* confdefs.h.  */
30274 _ACEOF
30275 cat confdefs.h >>conftest.$ac_ext
30276 cat >>conftest.$ac_ext <<_ACEOF
30277 /* end confdefs.h.  */
30278
30279 #               include <pthread.h>
30280
30281 int
30282 main ()
30283 {
30284
30285                 int i = PTHREAD_CREATE_JOINABLE;
30286
30287   ;
30288   return 0;
30289 }
30290 _ACEOF
30291 rm -f conftest.$ac_objext
30292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30293   (eval $ac_compile) 2>conftest.er1
30294   ac_status=$?
30295   grep -v '^ *+' conftest.er1 >conftest.err
30296   rm -f conftest.er1
30297   cat conftest.err >&5
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); } &&
30300          { ac_try='test -z "$ac_c_werror_flag"
30301                          || test ! -s conftest.err'
30302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30303   (eval $ac_try) 2>&5
30304   ac_status=$?
30305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306   (exit $ac_status); }; } &&
30307          { ac_try='test -s conftest.$ac_objext'
30308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30309   (eval $ac_try) 2>&5
30310   ac_status=$?
30311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312   (exit $ac_status); }; }; then
30313
30314         cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h.  */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h.  */
30320 #include <pthread.h>
30321
30322 _ACEOF
30323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30324   $EGREP "pthread_detach" >/dev/null 2>&1; then
30325   ol_cv_pthread_version=10
30326 else
30327   ol_cv_pthread_version=8
30328 fi
30329 rm -f conftest*
30330
30331 else
30332   echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30334
30335
30336         cat >conftest.$ac_ext <<_ACEOF
30337 /* confdefs.h.  */
30338 _ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h.  */
30342
30343 #               include <pthread.h>
30344 #               ifdef PTHREAD_CREATE_UNDETACHED
30345                 draft7
30346 #               endif
30347
30348 _ACEOF
30349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30350   $EGREP "draft7" >/dev/null 2>&1; then
30351   ol_cv_pthread_version=7
30352 else
30353
30354         cat >conftest.$ac_ext <<_ACEOF
30355 /* confdefs.h.  */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h.  */
30360 #include <pthread.h>
30361
30362 _ACEOF
30363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30364   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30365   ol_cv_pthread_version=6
30366 else
30367
30368         cat >conftest.$ac_ext <<_ACEOF
30369 /* confdefs.h.  */
30370 _ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h.  */
30374
30375 #               include <pthread.h>
30376 #ifdef          PTHREAD_MUTEX_INITIALIZER
30377                 draft5
30378 #endif
30379
30380 _ACEOF
30381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30382   $EGREP "draft5" >/dev/null 2>&1; then
30383   ol_cv_pthread_version=5
30384 else
30385   ol_cv_pthread_version=4
30386 fi
30387 rm -f conftest*
30388
30389 fi
30390 rm -f conftest*
30391
30392 fi
30393 rm -f conftest*
30394
30395 fi
30396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30397
30398 fi
30399 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30400 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30401
30402
30403                 if test $ol_cv_pthread_version != 0 ; then
30404
30405 cat >>confdefs.h <<_ACEOF
30406 #define HAVE_PTHREADS $ol_cv_pthread_version
30407 _ACEOF
30408
30409                 else
30410                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30411 echo "$as_me: error: unknown pthread version" >&2;}
30412    { (exit 1); exit 1; }; }
30413                 fi
30414
30415                 # consider threads found
30416                 ol_with_threads=found
30417
30418
30419         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30420 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30421 if test "${ol_cv_header_linux_threads+set}" = set; then
30422   echo $ECHO_N "(cached) $ECHO_C" >&6
30423 else
30424   cat >conftest.$ac_ext <<_ACEOF
30425 /* confdefs.h.  */
30426 _ACEOF
30427 cat confdefs.h >>conftest.$ac_ext
30428 cat >>conftest.$ac_ext <<_ACEOF
30429 /* end confdefs.h.  */
30430 #include <pthread.h>
30431 _ACEOF
30432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30433   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30434   ol_cv_header_linux_threads=yes
30435 else
30436   ol_cv_header_linux_threads=no
30437 fi
30438 rm -f conftest*
30439
30440
30441 fi
30442 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30443 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30444         if test $ol_cv_header_linux_threads = yes; then
30445
30446 cat >>confdefs.h <<\_ACEOF
30447 #define HAVE_LINUX_THREADS 1
30448 _ACEOF
30449
30450         fi
30451
30452
30453         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30454 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30455 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30456   echo $ECHO_N "(cached) $ECHO_C" >&6
30457 else
30458   cat >conftest.$ac_ext <<_ACEOF
30459 /* confdefs.h.  */
30460 _ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h.  */
30464 #include <pthread.h>
30465 #ifdef _POSIX_THREAD_IS_GNU_PTH
30466         __gnu_pth__;
30467 #endif
30468
30469 _ACEOF
30470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30471   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30472   ol_cv_header_gnu_pth_pthread_h=yes
30473 else
30474   ol_cv_header_gnu_pth_pthread_h=no
30475 fi
30476 rm -f conftest*
30477
30478
30479 fi
30480 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30481 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30482
30483
30484                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30485
30486 for ac_header in sched.h
30487 do
30488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30490   echo "$as_me:$LINENO: checking for $ac_header" >&5
30491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30493   echo $ECHO_N "(cached) $ECHO_C" >&6
30494 fi
30495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30497 else
30498   # Is the header compilable?
30499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30501 cat >conftest.$ac_ext <<_ACEOF
30502 /* confdefs.h.  */
30503 _ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h.  */
30507 $ac_includes_default
30508 #include <$ac_header>
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30512   (eval $ac_compile) 2>conftest.er1
30513   ac_status=$?
30514   grep -v '^ *+' conftest.er1 >conftest.err
30515   rm -f conftest.er1
30516   cat conftest.err >&5
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); } &&
30519          { ac_try='test -z "$ac_c_werror_flag"
30520                          || test ! -s conftest.err'
30521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522   (eval $ac_try) 2>&5
30523   ac_status=$?
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); }; } &&
30526          { ac_try='test -s conftest.$ac_objext'
30527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528   (eval $ac_try) 2>&5
30529   ac_status=$?
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); }; }; then
30532   ac_header_compiler=yes
30533 else
30534   echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30536
30537 ac_header_compiler=no
30538 fi
30539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541 echo "${ECHO_T}$ac_header_compiler" >&6
30542
30543 # Is the header present?
30544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30546 cat >conftest.$ac_ext <<_ACEOF
30547 /* confdefs.h.  */
30548 _ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h.  */
30552 #include <$ac_header>
30553 _ACEOF
30554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30556   ac_status=$?
30557   grep -v '^ *+' conftest.er1 >conftest.err
30558   rm -f conftest.er1
30559   cat conftest.err >&5
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); } >/dev/null; then
30562   if test -s conftest.err; then
30563     ac_cpp_err=$ac_c_preproc_warn_flag
30564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30565   else
30566     ac_cpp_err=
30567   fi
30568 else
30569   ac_cpp_err=yes
30570 fi
30571 if test -z "$ac_cpp_err"; then
30572   ac_header_preproc=yes
30573 else
30574   echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30576
30577   ac_header_preproc=no
30578 fi
30579 rm -f conftest.err conftest.$ac_ext
30580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30581 echo "${ECHO_T}$ac_header_preproc" >&6
30582
30583 # So?  What about this header?
30584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30585   yes:no: )
30586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30590     ac_header_preproc=yes
30591     ;;
30592   no:yes:* )
30593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30605     (
30606       cat <<\_ASBOX
30607 ## ------------------------------------------ ##
30608 ## Report this to the AC_PACKAGE_NAME lists.  ##
30609 ## ------------------------------------------ ##
30610 _ASBOX
30611     ) |
30612       sed "s/^/$as_me: WARNING:     /" >&2
30613     ;;
30614 esac
30615 echo "$as_me:$LINENO: checking for $ac_header" >&5
30616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30618   echo $ECHO_N "(cached) $ECHO_C" >&6
30619 else
30620   eval "$as_ac_Header=\$ac_header_preproc"
30621 fi
30622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30624
30625 fi
30626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30627   cat >>confdefs.h <<_ACEOF
30628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30629 _ACEOF
30630
30631 fi
30632
30633 done
30634
30635                 fi
30636
30637
30638                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30639 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30640 if test "${ol_cv_pthread_create+set}" = set; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643
30644                         if test "$cross_compiling" = yes; then
30645   cat >conftest.$ac_ext <<_ACEOF
30646 /* confdefs.h.  */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h.  */
30651
30652 /* pthread test headers */
30653 #include <pthread.h>
30654 #if HAVE_PTHREADS < 7
30655 #include <errno.h>
30656 #endif
30657 #ifndef NULL
30658 #define NULL (void*)0
30659 #endif
30660
30661 static void *task(p)
30662         void *p;
30663 {
30664         return (void *) (p == NULL);
30665 }
30666
30667 int
30668 main ()
30669 {
30670
30671         /* pthread test function */
30672 #ifndef PTHREAD_CREATE_DETACHED
30673 #define PTHREAD_CREATE_DETACHED 1
30674 #endif
30675         pthread_t t;
30676         int status;
30677         int detach = PTHREAD_CREATE_DETACHED;
30678
30679 #if HAVE_PTHREADS > 4
30680         /* Final pthreads */
30681         pthread_attr_t attr;
30682
30683         status = pthread_attr_init(&attr);
30684         if( status ) return status;
30685
30686 #if HAVE_PTHREADS < 7
30687         status = pthread_attr_setdetachstate(&attr, &detach);
30688         if( status < 0 ) status = errno;
30689 #else
30690         status = pthread_attr_setdetachstate(&attr, detach);
30691 #endif
30692         if( status ) return status;
30693         status = pthread_create( &t, &attr, task, NULL );
30694 #if HAVE_PTHREADS < 7
30695         if( status < 0 ) status = errno;
30696 #endif
30697         if( status ) return status;
30698 #else
30699         /* Draft 4 pthreads */
30700         status = pthread_create( &t, pthread_attr_default, task, NULL );
30701         if( status ) return errno;
30702
30703         /* give thread a chance to complete */
30704         /* it should remain joinable and hence detachable */
30705         sleep( 1 );
30706
30707         status = pthread_detach( &t );
30708         if( status ) return errno;
30709 #endif
30710
30711 #ifdef HAVE_LINUX_THREADS
30712         pthread_kill_other_threads_np();
30713 #endif
30714
30715         return 0;
30716
30717   ;
30718   return 0;
30719 }
30720 _ACEOF
30721 rm -f conftest.$ac_objext conftest$ac_exeext
30722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30723   (eval $ac_link) 2>conftest.er1
30724   ac_status=$?
30725   grep -v '^ *+' conftest.er1 >conftest.err
30726   rm -f conftest.er1
30727   cat conftest.err >&5
30728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729   (exit $ac_status); } &&
30730          { ac_try='test -z "$ac_c_werror_flag"
30731                          || test ! -s conftest.err'
30732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30733   (eval $ac_try) 2>&5
30734   ac_status=$?
30735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736   (exit $ac_status); }; } &&
30737          { ac_try='test -s conftest$ac_exeext'
30738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30739   (eval $ac_try) 2>&5
30740   ac_status=$?
30741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742   (exit $ac_status); }; }; then
30743   ol_cv_pthread_create=yes
30744 else
30745   echo "$as_me: failed program was:" >&5
30746 sed 's/^/| /' conftest.$ac_ext >&5
30747
30748 ol_cv_pthread_create=no
30749 fi
30750 rm -f conftest.err conftest.$ac_objext \
30751       conftest$ac_exeext conftest.$ac_ext
30752 else
30753   cat >conftest.$ac_ext <<_ACEOF
30754 /* confdefs.h.  */
30755 _ACEOF
30756 cat confdefs.h >>conftest.$ac_ext
30757 cat >>conftest.$ac_ext <<_ACEOF
30758 /* end confdefs.h.  */
30759
30760 /* pthread test headers */
30761 #include <pthread.h>
30762 #if HAVE_PTHREADS < 7
30763 #include <errno.h>
30764 #endif
30765 #ifndef NULL
30766 #define NULL (void*)0
30767 #endif
30768
30769 static void *task(p)
30770         void *p;
30771 {
30772         return (void *) (p == NULL);
30773 }
30774
30775
30776 int main(argc, argv)
30777         int argc;
30778         char **argv;
30779 {
30780
30781         /* pthread test function */
30782 #ifndef PTHREAD_CREATE_DETACHED
30783 #define PTHREAD_CREATE_DETACHED 1
30784 #endif
30785         pthread_t t;
30786         int status;
30787         int detach = PTHREAD_CREATE_DETACHED;
30788
30789 #if HAVE_PTHREADS > 4
30790         /* Final pthreads */
30791         pthread_attr_t attr;
30792
30793         status = pthread_attr_init(&attr);
30794         if( status ) return status;
30795
30796 #if HAVE_PTHREADS < 7
30797         status = pthread_attr_setdetachstate(&attr, &detach);
30798         if( status < 0 ) status = errno;
30799 #else
30800         status = pthread_attr_setdetachstate(&attr, detach);
30801 #endif
30802         if( status ) return status;
30803         status = pthread_create( &t, &attr, task, NULL );
30804 #if HAVE_PTHREADS < 7
30805         if( status < 0 ) status = errno;
30806 #endif
30807         if( status ) return status;
30808 #else
30809         /* Draft 4 pthreads */
30810         status = pthread_create( &t, pthread_attr_default, task, NULL );
30811         if( status ) return errno;
30812
30813         /* give thread a chance to complete */
30814         /* it should remain joinable and hence detachable */
30815         sleep( 1 );
30816
30817         status = pthread_detach( &t );
30818         if( status ) return errno;
30819 #endif
30820
30821 #ifdef HAVE_LINUX_THREADS
30822         pthread_kill_other_threads_np();
30823 #endif
30824
30825         return 0;
30826
30827 }
30828
30829 _ACEOF
30830 rm -f conftest$ac_exeext
30831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30832   (eval $ac_link) 2>&5
30833   ac_status=$?
30834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837   (eval $ac_try) 2>&5
30838   ac_status=$?
30839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840   (exit $ac_status); }; }; then
30841   ol_cv_pthread_create=yes
30842 else
30843   echo "$as_me: program exited with status $ac_status" >&5
30844 echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847 ( exit $ac_status )
30848 ol_cv_pthread_create=no
30849 fi
30850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30851 fi
30852 fi
30853 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30854 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30855
30856                 if test $ol_cv_pthread_create != no ; then
30857                         ol_link_threads=posix
30858                         ol_link_pthreads=""
30859                 fi
30860
30861                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30862 if test "$ol_link_threads" = no ; then
30863         # try -kthread
30864         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30865 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30866 if test "${ol_cv_pthread_kthread+set}" = set; then
30867   echo $ECHO_N "(cached) $ECHO_C" >&6
30868 else
30869
30870                 # save the flags
30871                 ol_LIBS="$LIBS"
30872                 LIBS="-kthread $LIBS"
30873
30874                 if test "$cross_compiling" = yes; then
30875   cat >conftest.$ac_ext <<_ACEOF
30876 /* confdefs.h.  */
30877 _ACEOF
30878 cat confdefs.h >>conftest.$ac_ext
30879 cat >>conftest.$ac_ext <<_ACEOF
30880 /* end confdefs.h.  */
30881
30882 /* pthread test headers */
30883 #include <pthread.h>
30884 #if HAVE_PTHREADS < 7
30885 #include <errno.h>
30886 #endif
30887 #ifndef NULL
30888 #define NULL (void*)0
30889 #endif
30890
30891 static void *task(p)
30892         void *p;
30893 {
30894         return (void *) (p == NULL);
30895 }
30896
30897 int
30898 main ()
30899 {
30900
30901         /* pthread test function */
30902 #ifndef PTHREAD_CREATE_DETACHED
30903 #define PTHREAD_CREATE_DETACHED 1
30904 #endif
30905         pthread_t t;
30906         int status;
30907         int detach = PTHREAD_CREATE_DETACHED;
30908
30909 #if HAVE_PTHREADS > 4
30910         /* Final pthreads */
30911         pthread_attr_t attr;
30912
30913         status = pthread_attr_init(&attr);
30914         if( status ) return status;
30915
30916 #if HAVE_PTHREADS < 7
30917         status = pthread_attr_setdetachstate(&attr, &detach);
30918         if( status < 0 ) status = errno;
30919 #else
30920         status = pthread_attr_setdetachstate(&attr, detach);
30921 #endif
30922         if( status ) return status;
30923         status = pthread_create( &t, &attr, task, NULL );
30924 #if HAVE_PTHREADS < 7
30925         if( status < 0 ) status = errno;
30926 #endif
30927         if( status ) return status;
30928 #else
30929         /* Draft 4 pthreads */
30930         status = pthread_create( &t, pthread_attr_default, task, NULL );
30931         if( status ) return errno;
30932
30933         /* give thread a chance to complete */
30934         /* it should remain joinable and hence detachable */
30935         sleep( 1 );
30936
30937         status = pthread_detach( &t );
30938         if( status ) return errno;
30939 #endif
30940
30941 #ifdef HAVE_LINUX_THREADS
30942         pthread_kill_other_threads_np();
30943 #endif
30944
30945         return 0;
30946
30947   ;
30948   return 0;
30949 }
30950 _ACEOF
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30953   (eval $ac_link) 2>conftest.er1
30954   ac_status=$?
30955   grep -v '^ *+' conftest.er1 >conftest.err
30956   rm -f conftest.er1
30957   cat conftest.err >&5
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); } &&
30960          { ac_try='test -z "$ac_c_werror_flag"
30961                          || test ! -s conftest.err'
30962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963   (eval $ac_try) 2>&5
30964   ac_status=$?
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); }; } &&
30967          { ac_try='test -s conftest$ac_exeext'
30968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969   (eval $ac_try) 2>&5
30970   ac_status=$?
30971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972   (exit $ac_status); }; }; then
30973   ol_cv_pthread_kthread=yes
30974 else
30975   echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978 ol_cv_pthread_kthread=no
30979 fi
30980 rm -f conftest.err conftest.$ac_objext \
30981       conftest$ac_exeext conftest.$ac_ext
30982 else
30983   cat >conftest.$ac_ext <<_ACEOF
30984 /* confdefs.h.  */
30985 _ACEOF
30986 cat confdefs.h >>conftest.$ac_ext
30987 cat >>conftest.$ac_ext <<_ACEOF
30988 /* end confdefs.h.  */
30989
30990 /* pthread test headers */
30991 #include <pthread.h>
30992 #if HAVE_PTHREADS < 7
30993 #include <errno.h>
30994 #endif
30995 #ifndef NULL
30996 #define NULL (void*)0
30997 #endif
30998
30999 static void *task(p)
31000         void *p;
31001 {
31002         return (void *) (p == NULL);
31003 }
31004
31005
31006 int main(argc, argv)
31007         int argc;
31008         char **argv;
31009 {
31010
31011         /* pthread test function */
31012 #ifndef PTHREAD_CREATE_DETACHED
31013 #define PTHREAD_CREATE_DETACHED 1
31014 #endif
31015         pthread_t t;
31016         int status;
31017         int detach = PTHREAD_CREATE_DETACHED;
31018
31019 #if HAVE_PTHREADS > 4
31020         /* Final pthreads */
31021         pthread_attr_t attr;
31022
31023         status = pthread_attr_init(&attr);
31024         if( status ) return status;
31025
31026 #if HAVE_PTHREADS < 7
31027         status = pthread_attr_setdetachstate(&attr, &detach);
31028         if( status < 0 ) status = errno;
31029 #else
31030         status = pthread_attr_setdetachstate(&attr, detach);
31031 #endif
31032         if( status ) return status;
31033         status = pthread_create( &t, &attr, task, NULL );
31034 #if HAVE_PTHREADS < 7
31035         if( status < 0 ) status = errno;
31036 #endif
31037         if( status ) return status;
31038 #else
31039         /* Draft 4 pthreads */
31040         status = pthread_create( &t, pthread_attr_default, task, NULL );
31041         if( status ) return errno;
31042
31043         /* give thread a chance to complete */
31044         /* it should remain joinable and hence detachable */
31045         sleep( 1 );
31046
31047         status = pthread_detach( &t );
31048         if( status ) return errno;
31049 #endif
31050
31051 #ifdef HAVE_LINUX_THREADS
31052         pthread_kill_other_threads_np();
31053 #endif
31054
31055         return 0;
31056
31057 }
31058
31059 _ACEOF
31060 rm -f conftest$ac_exeext
31061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31062   (eval $ac_link) 2>&5
31063   ac_status=$?
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067   (eval $ac_try) 2>&5
31068   ac_status=$?
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); }; }; then
31071   ol_cv_pthread_kthread=yes
31072 else
31073   echo "$as_me: program exited with status $ac_status" >&5
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31076
31077 ( exit $ac_status )
31078 ol_cv_pthread_kthread=no
31079 fi
31080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31081 fi
31082
31083                 # restore the LIBS
31084                 LIBS="$ol_LIBS"
31085
31086 fi
31087 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31088 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31089
31090         if test $ol_cv_pthread_kthread = yes ; then
31091                 ol_link_pthreads="-kthread"
31092                 ol_link_threads=posix
31093         fi
31094 fi
31095
31096                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31097 if test "$ol_link_threads" = no ; then
31098         # try -pthread
31099         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31100 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31101 if test "${ol_cv_pthread_pthread+set}" = set; then
31102   echo $ECHO_N "(cached) $ECHO_C" >&6
31103 else
31104
31105                 # save the flags
31106                 ol_LIBS="$LIBS"
31107                 LIBS="-pthread $LIBS"
31108
31109                 if test "$cross_compiling" = yes; then
31110   cat >conftest.$ac_ext <<_ACEOF
31111 /* confdefs.h.  */
31112 _ACEOF
31113 cat confdefs.h >>conftest.$ac_ext
31114 cat >>conftest.$ac_ext <<_ACEOF
31115 /* end confdefs.h.  */
31116
31117 /* pthread test headers */
31118 #include <pthread.h>
31119 #if HAVE_PTHREADS < 7
31120 #include <errno.h>
31121 #endif
31122 #ifndef NULL
31123 #define NULL (void*)0
31124 #endif
31125
31126 static void *task(p)
31127         void *p;
31128 {
31129         return (void *) (p == NULL);
31130 }
31131
31132 int
31133 main ()
31134 {
31135
31136         /* pthread test function */
31137 #ifndef PTHREAD_CREATE_DETACHED
31138 #define PTHREAD_CREATE_DETACHED 1
31139 #endif
31140         pthread_t t;
31141         int status;
31142         int detach = PTHREAD_CREATE_DETACHED;
31143
31144 #if HAVE_PTHREADS > 4
31145         /* Final pthreads */
31146         pthread_attr_t attr;
31147
31148         status = pthread_attr_init(&attr);
31149         if( status ) return status;
31150
31151 #if HAVE_PTHREADS < 7
31152         status = pthread_attr_setdetachstate(&attr, &detach);
31153         if( status < 0 ) status = errno;
31154 #else
31155         status = pthread_attr_setdetachstate(&attr, detach);
31156 #endif
31157         if( status ) return status;
31158         status = pthread_create( &t, &attr, task, NULL );
31159 #if HAVE_PTHREADS < 7
31160         if( status < 0 ) status = errno;
31161 #endif
31162         if( status ) return status;
31163 #else
31164         /* Draft 4 pthreads */
31165         status = pthread_create( &t, pthread_attr_default, task, NULL );
31166         if( status ) return errno;
31167
31168         /* give thread a chance to complete */
31169         /* it should remain joinable and hence detachable */
31170         sleep( 1 );
31171
31172         status = pthread_detach( &t );
31173         if( status ) return errno;
31174 #endif
31175
31176 #ifdef HAVE_LINUX_THREADS
31177         pthread_kill_other_threads_np();
31178 #endif
31179
31180         return 0;
31181
31182   ;
31183   return 0;
31184 }
31185 _ACEOF
31186 rm -f conftest.$ac_objext conftest$ac_exeext
31187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31188   (eval $ac_link) 2>conftest.er1
31189   ac_status=$?
31190   grep -v '^ *+' conftest.er1 >conftest.err
31191   rm -f conftest.er1
31192   cat conftest.err >&5
31193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194   (exit $ac_status); } &&
31195          { ac_try='test -z "$ac_c_werror_flag"
31196                          || test ! -s conftest.err'
31197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198   (eval $ac_try) 2>&5
31199   ac_status=$?
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); }; } &&
31202          { ac_try='test -s conftest$ac_exeext'
31203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204   (eval $ac_try) 2>&5
31205   ac_status=$?
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); }; }; then
31208   ol_cv_pthread_pthread=yes
31209 else
31210   echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31212
31213 ol_cv_pthread_pthread=no
31214 fi
31215 rm -f conftest.err conftest.$ac_objext \
31216       conftest$ac_exeext conftest.$ac_ext
31217 else
31218   cat >conftest.$ac_ext <<_ACEOF
31219 /* confdefs.h.  */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h.  */
31224
31225 /* pthread test headers */
31226 #include <pthread.h>
31227 #if HAVE_PTHREADS < 7
31228 #include <errno.h>
31229 #endif
31230 #ifndef NULL
31231 #define NULL (void*)0
31232 #endif
31233
31234 static void *task(p)
31235         void *p;
31236 {
31237         return (void *) (p == NULL);
31238 }
31239
31240
31241 int main(argc, argv)
31242         int argc;
31243         char **argv;
31244 {
31245
31246         /* pthread test function */
31247 #ifndef PTHREAD_CREATE_DETACHED
31248 #define PTHREAD_CREATE_DETACHED 1
31249 #endif
31250         pthread_t t;
31251         int status;
31252         int detach = PTHREAD_CREATE_DETACHED;
31253
31254 #if HAVE_PTHREADS > 4
31255         /* Final pthreads */
31256         pthread_attr_t attr;
31257
31258         status = pthread_attr_init(&attr);
31259         if( status ) return status;
31260
31261 #if HAVE_PTHREADS < 7
31262         status = pthread_attr_setdetachstate(&attr, &detach);
31263         if( status < 0 ) status = errno;
31264 #else
31265         status = pthread_attr_setdetachstate(&attr, detach);
31266 #endif
31267         if( status ) return status;
31268         status = pthread_create( &t, &attr, task, NULL );
31269 #if HAVE_PTHREADS < 7
31270         if( status < 0 ) status = errno;
31271 #endif
31272         if( status ) return status;
31273 #else
31274         /* Draft 4 pthreads */
31275         status = pthread_create( &t, pthread_attr_default, task, NULL );
31276         if( status ) return errno;
31277
31278         /* give thread a chance to complete */
31279         /* it should remain joinable and hence detachable */
31280         sleep( 1 );
31281
31282         status = pthread_detach( &t );
31283         if( status ) return errno;
31284 #endif
31285
31286 #ifdef HAVE_LINUX_THREADS
31287         pthread_kill_other_threads_np();
31288 #endif
31289
31290         return 0;
31291
31292 }
31293
31294 _ACEOF
31295 rm -f conftest$ac_exeext
31296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31297   (eval $ac_link) 2>&5
31298   ac_status=$?
31299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31302   (eval $ac_try) 2>&5
31303   ac_status=$?
31304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305   (exit $ac_status); }; }; then
31306   ol_cv_pthread_pthread=yes
31307 else
31308   echo "$as_me: program exited with status $ac_status" >&5
31309 echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31311
31312 ( exit $ac_status )
31313 ol_cv_pthread_pthread=no
31314 fi
31315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31316 fi
31317
31318                 # restore the LIBS
31319                 LIBS="$ol_LIBS"
31320
31321 fi
31322 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31323 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31324
31325         if test $ol_cv_pthread_pthread = yes ; then
31326                 ol_link_pthreads="-pthread"
31327                 ol_link_threads=posix
31328         fi
31329 fi
31330
31331                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31332 if test "$ol_link_threads" = no ; then
31333         # try -pthreads
31334         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31335 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31336 if test "${ol_cv_pthread_pthreads+set}" = set; then
31337   echo $ECHO_N "(cached) $ECHO_C" >&6
31338 else
31339
31340                 # save the flags
31341                 ol_LIBS="$LIBS"
31342                 LIBS="-pthreads $LIBS"
31343
31344                 if test "$cross_compiling" = yes; then
31345   cat >conftest.$ac_ext <<_ACEOF
31346 /* confdefs.h.  */
31347 _ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h.  */
31351
31352 /* pthread test headers */
31353 #include <pthread.h>
31354 #if HAVE_PTHREADS < 7
31355 #include <errno.h>
31356 #endif
31357 #ifndef NULL
31358 #define NULL (void*)0
31359 #endif
31360
31361 static void *task(p)
31362         void *p;
31363 {
31364         return (void *) (p == NULL);
31365 }
31366
31367 int
31368 main ()
31369 {
31370
31371         /* pthread test function */
31372 #ifndef PTHREAD_CREATE_DETACHED
31373 #define PTHREAD_CREATE_DETACHED 1
31374 #endif
31375         pthread_t t;
31376         int status;
31377         int detach = PTHREAD_CREATE_DETACHED;
31378
31379 #if HAVE_PTHREADS > 4
31380         /* Final pthreads */
31381         pthread_attr_t attr;
31382
31383         status = pthread_attr_init(&attr);
31384         if( status ) return status;
31385
31386 #if HAVE_PTHREADS < 7
31387         status = pthread_attr_setdetachstate(&attr, &detach);
31388         if( status < 0 ) status = errno;
31389 #else
31390         status = pthread_attr_setdetachstate(&attr, detach);
31391 #endif
31392         if( status ) return status;
31393         status = pthread_create( &t, &attr, task, NULL );
31394 #if HAVE_PTHREADS < 7
31395         if( status < 0 ) status = errno;
31396 #endif
31397         if( status ) return status;
31398 #else
31399         /* Draft 4 pthreads */
31400         status = pthread_create( &t, pthread_attr_default, task, NULL );
31401         if( status ) return errno;
31402
31403         /* give thread a chance to complete */
31404         /* it should remain joinable and hence detachable */
31405         sleep( 1 );
31406
31407         status = pthread_detach( &t );
31408         if( status ) return errno;
31409 #endif
31410
31411 #ifdef HAVE_LINUX_THREADS
31412         pthread_kill_other_threads_np();
31413 #endif
31414
31415         return 0;
31416
31417   ;
31418   return 0;
31419 }
31420 _ACEOF
31421 rm -f conftest.$ac_objext conftest$ac_exeext
31422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31423   (eval $ac_link) 2>conftest.er1
31424   ac_status=$?
31425   grep -v '^ *+' conftest.er1 >conftest.err
31426   rm -f conftest.er1
31427   cat conftest.err >&5
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); } &&
31430          { ac_try='test -z "$ac_c_werror_flag"
31431                          || test ! -s conftest.err'
31432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433   (eval $ac_try) 2>&5
31434   ac_status=$?
31435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436   (exit $ac_status); }; } &&
31437          { ac_try='test -s conftest$ac_exeext'
31438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31439   (eval $ac_try) 2>&5
31440   ac_status=$?
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); }; }; then
31443   ol_cv_pthread_pthreads=yes
31444 else
31445   echo "$as_me: failed program was:" >&5
31446 sed 's/^/| /' conftest.$ac_ext >&5
31447
31448 ol_cv_pthread_pthreads=no
31449 fi
31450 rm -f conftest.err conftest.$ac_objext \
31451       conftest$ac_exeext conftest.$ac_ext
31452 else
31453   cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h.  */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h.  */
31459
31460 /* pthread test headers */
31461 #include <pthread.h>
31462 #if HAVE_PTHREADS < 7
31463 #include <errno.h>
31464 #endif
31465 #ifndef NULL
31466 #define NULL (void*)0
31467 #endif
31468
31469 static void *task(p)
31470         void *p;
31471 {
31472         return (void *) (p == NULL);
31473 }
31474
31475
31476 int main(argc, argv)
31477         int argc;
31478         char **argv;
31479 {
31480
31481         /* pthread test function */
31482 #ifndef PTHREAD_CREATE_DETACHED
31483 #define PTHREAD_CREATE_DETACHED 1
31484 #endif
31485         pthread_t t;
31486         int status;
31487         int detach = PTHREAD_CREATE_DETACHED;
31488
31489 #if HAVE_PTHREADS > 4
31490         /* Final pthreads */
31491         pthread_attr_t attr;
31492
31493         status = pthread_attr_init(&attr);
31494         if( status ) return status;
31495
31496 #if HAVE_PTHREADS < 7
31497         status = pthread_attr_setdetachstate(&attr, &detach);
31498         if( status < 0 ) status = errno;
31499 #else
31500         status = pthread_attr_setdetachstate(&attr, detach);
31501 #endif
31502         if( status ) return status;
31503         status = pthread_create( &t, &attr, task, NULL );
31504 #if HAVE_PTHREADS < 7
31505         if( status < 0 ) status = errno;
31506 #endif
31507         if( status ) return status;
31508 #else
31509         /* Draft 4 pthreads */
31510         status = pthread_create( &t, pthread_attr_default, task, NULL );
31511         if( status ) return errno;
31512
31513         /* give thread a chance to complete */
31514         /* it should remain joinable and hence detachable */
31515         sleep( 1 );
31516
31517         status = pthread_detach( &t );
31518         if( status ) return errno;
31519 #endif
31520
31521 #ifdef HAVE_LINUX_THREADS
31522         pthread_kill_other_threads_np();
31523 #endif
31524
31525         return 0;
31526
31527 }
31528
31529 _ACEOF
31530 rm -f conftest$ac_exeext
31531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31532   (eval $ac_link) 2>&5
31533   ac_status=$?
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537   (eval $ac_try) 2>&5
31538   ac_status=$?
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); }; }; then
31541   ol_cv_pthread_pthreads=yes
31542 else
31543   echo "$as_me: program exited with status $ac_status" >&5
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31546
31547 ( exit $ac_status )
31548 ol_cv_pthread_pthreads=no
31549 fi
31550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31551 fi
31552
31553                 # restore the LIBS
31554                 LIBS="$ol_LIBS"
31555
31556 fi
31557 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31558 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31559
31560         if test $ol_cv_pthread_pthreads = yes ; then
31561                 ol_link_pthreads="-pthreads"
31562                 ol_link_threads=posix
31563         fi
31564 fi
31565
31566                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31567 if test "$ol_link_threads" = no ; then
31568         # try -mthreads
31569         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31570 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31571 if test "${ol_cv_pthread_mthreads+set}" = set; then
31572   echo $ECHO_N "(cached) $ECHO_C" >&6
31573 else
31574
31575                 # save the flags
31576                 ol_LIBS="$LIBS"
31577                 LIBS="-mthreads $LIBS"
31578
31579                 if test "$cross_compiling" = yes; then
31580   cat >conftest.$ac_ext <<_ACEOF
31581 /* confdefs.h.  */
31582 _ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h.  */
31586
31587 /* pthread test headers */
31588 #include <pthread.h>
31589 #if HAVE_PTHREADS < 7
31590 #include <errno.h>
31591 #endif
31592 #ifndef NULL
31593 #define NULL (void*)0
31594 #endif
31595
31596 static void *task(p)
31597         void *p;
31598 {
31599         return (void *) (p == NULL);
31600 }
31601
31602 int
31603 main ()
31604 {
31605
31606         /* pthread test function */
31607 #ifndef PTHREAD_CREATE_DETACHED
31608 #define PTHREAD_CREATE_DETACHED 1
31609 #endif
31610         pthread_t t;
31611         int status;
31612         int detach = PTHREAD_CREATE_DETACHED;
31613
31614 #if HAVE_PTHREADS > 4
31615         /* Final pthreads */
31616         pthread_attr_t attr;
31617
31618         status = pthread_attr_init(&attr);
31619         if( status ) return status;
31620
31621 #if HAVE_PTHREADS < 7
31622         status = pthread_attr_setdetachstate(&attr, &detach);
31623         if( status < 0 ) status = errno;
31624 #else
31625         status = pthread_attr_setdetachstate(&attr, detach);
31626 #endif
31627         if( status ) return status;
31628         status = pthread_create( &t, &attr, task, NULL );
31629 #if HAVE_PTHREADS < 7
31630         if( status < 0 ) status = errno;
31631 #endif
31632         if( status ) return status;
31633 #else
31634         /* Draft 4 pthreads */
31635         status = pthread_create( &t, pthread_attr_default, task, NULL );
31636         if( status ) return errno;
31637
31638         /* give thread a chance to complete */
31639         /* it should remain joinable and hence detachable */
31640         sleep( 1 );
31641
31642         status = pthread_detach( &t );
31643         if( status ) return errno;
31644 #endif
31645
31646 #ifdef HAVE_LINUX_THREADS
31647         pthread_kill_other_threads_np();
31648 #endif
31649
31650         return 0;
31651
31652   ;
31653   return 0;
31654 }
31655 _ACEOF
31656 rm -f conftest.$ac_objext conftest$ac_exeext
31657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31658   (eval $ac_link) 2>conftest.er1
31659   ac_status=$?
31660   grep -v '^ *+' conftest.er1 >conftest.err
31661   rm -f conftest.er1
31662   cat conftest.err >&5
31663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664   (exit $ac_status); } &&
31665          { ac_try='test -z "$ac_c_werror_flag"
31666                          || test ! -s conftest.err'
31667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668   (eval $ac_try) 2>&5
31669   ac_status=$?
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); }; } &&
31672          { ac_try='test -s conftest$ac_exeext'
31673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674   (eval $ac_try) 2>&5
31675   ac_status=$?
31676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677   (exit $ac_status); }; }; then
31678   ol_cv_pthread_mthreads=yes
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683 ol_cv_pthread_mthreads=no
31684 fi
31685 rm -f conftest.err conftest.$ac_objext \
31686       conftest$ac_exeext conftest.$ac_ext
31687 else
31688   cat >conftest.$ac_ext <<_ACEOF
31689 /* confdefs.h.  */
31690 _ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h.  */
31694
31695 /* pthread test headers */
31696 #include <pthread.h>
31697 #if HAVE_PTHREADS < 7
31698 #include <errno.h>
31699 #endif
31700 #ifndef NULL
31701 #define NULL (void*)0
31702 #endif
31703
31704 static void *task(p)
31705         void *p;
31706 {
31707         return (void *) (p == NULL);
31708 }
31709
31710
31711 int main(argc, argv)
31712         int argc;
31713         char **argv;
31714 {
31715
31716         /* pthread test function */
31717 #ifndef PTHREAD_CREATE_DETACHED
31718 #define PTHREAD_CREATE_DETACHED 1
31719 #endif
31720         pthread_t t;
31721         int status;
31722         int detach = PTHREAD_CREATE_DETACHED;
31723
31724 #if HAVE_PTHREADS > 4
31725         /* Final pthreads */
31726         pthread_attr_t attr;
31727
31728         status = pthread_attr_init(&attr);
31729         if( status ) return status;
31730
31731 #if HAVE_PTHREADS < 7
31732         status = pthread_attr_setdetachstate(&attr, &detach);
31733         if( status < 0 ) status = errno;
31734 #else
31735         status = pthread_attr_setdetachstate(&attr, detach);
31736 #endif
31737         if( status ) return status;
31738         status = pthread_create( &t, &attr, task, NULL );
31739 #if HAVE_PTHREADS < 7
31740         if( status < 0 ) status = errno;
31741 #endif
31742         if( status ) return status;
31743 #else
31744         /* Draft 4 pthreads */
31745         status = pthread_create( &t, pthread_attr_default, task, NULL );
31746         if( status ) return errno;
31747
31748         /* give thread a chance to complete */
31749         /* it should remain joinable and hence detachable */
31750         sleep( 1 );
31751
31752         status = pthread_detach( &t );
31753         if( status ) return errno;
31754 #endif
31755
31756 #ifdef HAVE_LINUX_THREADS
31757         pthread_kill_other_threads_np();
31758 #endif
31759
31760         return 0;
31761
31762 }
31763
31764 _ACEOF
31765 rm -f conftest$ac_exeext
31766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31767   (eval $ac_link) 2>&5
31768   ac_status=$?
31769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772   (eval $ac_try) 2>&5
31773   ac_status=$?
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); }; }; then
31776   ol_cv_pthread_mthreads=yes
31777 else
31778   echo "$as_me: program exited with status $ac_status" >&5
31779 echo "$as_me: failed program was:" >&5
31780 sed 's/^/| /' conftest.$ac_ext >&5
31781
31782 ( exit $ac_status )
31783 ol_cv_pthread_mthreads=no
31784 fi
31785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31786 fi
31787
31788                 # restore the LIBS
31789                 LIBS="$ol_LIBS"
31790
31791 fi
31792 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31793 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31794
31795         if test $ol_cv_pthread_mthreads = yes ; then
31796                 ol_link_pthreads="-mthreads"
31797                 ol_link_threads=posix
31798         fi
31799 fi
31800
31801                 # Pthread try link: -thread (ol_cv_pthread_thread)
31802 if test "$ol_link_threads" = no ; then
31803         # try -thread
31804         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31805 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31806 if test "${ol_cv_pthread_thread+set}" = set; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 else
31809
31810                 # save the flags
31811                 ol_LIBS="$LIBS"
31812                 LIBS="-thread $LIBS"
31813
31814                 if test "$cross_compiling" = yes; then
31815   cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h.  */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h.  */
31821
31822 /* pthread test headers */
31823 #include <pthread.h>
31824 #if HAVE_PTHREADS < 7
31825 #include <errno.h>
31826 #endif
31827 #ifndef NULL
31828 #define NULL (void*)0
31829 #endif
31830
31831 static void *task(p)
31832         void *p;
31833 {
31834         return (void *) (p == NULL);
31835 }
31836
31837 int
31838 main ()
31839 {
31840
31841         /* pthread test function */
31842 #ifndef PTHREAD_CREATE_DETACHED
31843 #define PTHREAD_CREATE_DETACHED 1
31844 #endif
31845         pthread_t t;
31846         int status;
31847         int detach = PTHREAD_CREATE_DETACHED;
31848
31849 #if HAVE_PTHREADS > 4
31850         /* Final pthreads */
31851         pthread_attr_t attr;
31852
31853         status = pthread_attr_init(&attr);
31854         if( status ) return status;
31855
31856 #if HAVE_PTHREADS < 7
31857         status = pthread_attr_setdetachstate(&attr, &detach);
31858         if( status < 0 ) status = errno;
31859 #else
31860         status = pthread_attr_setdetachstate(&attr, detach);
31861 #endif
31862         if( status ) return status;
31863         status = pthread_create( &t, &attr, task, NULL );
31864 #if HAVE_PTHREADS < 7
31865         if( status < 0 ) status = errno;
31866 #endif
31867         if( status ) return status;
31868 #else
31869         /* Draft 4 pthreads */
31870         status = pthread_create( &t, pthread_attr_default, task, NULL );
31871         if( status ) return errno;
31872
31873         /* give thread a chance to complete */
31874         /* it should remain joinable and hence detachable */
31875         sleep( 1 );
31876
31877         status = pthread_detach( &t );
31878         if( status ) return errno;
31879 #endif
31880
31881 #ifdef HAVE_LINUX_THREADS
31882         pthread_kill_other_threads_np();
31883 #endif
31884
31885         return 0;
31886
31887   ;
31888   return 0;
31889 }
31890 _ACEOF
31891 rm -f conftest.$ac_objext conftest$ac_exeext
31892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31893   (eval $ac_link) 2>conftest.er1
31894   ac_status=$?
31895   grep -v '^ *+' conftest.er1 >conftest.err
31896   rm -f conftest.er1
31897   cat conftest.err >&5
31898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899   (exit $ac_status); } &&
31900          { ac_try='test -z "$ac_c_werror_flag"
31901                          || test ! -s conftest.err'
31902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903   (eval $ac_try) 2>&5
31904   ac_status=$?
31905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906   (exit $ac_status); }; } &&
31907          { ac_try='test -s conftest$ac_exeext'
31908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909   (eval $ac_try) 2>&5
31910   ac_status=$?
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); }; }; then
31913   ol_cv_pthread_thread=yes
31914 else
31915   echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918 ol_cv_pthread_thread=no
31919 fi
31920 rm -f conftest.err conftest.$ac_objext \
31921       conftest$ac_exeext conftest.$ac_ext
31922 else
31923   cat >conftest.$ac_ext <<_ACEOF
31924 /* confdefs.h.  */
31925 _ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h.  */
31929
31930 /* pthread test headers */
31931 #include <pthread.h>
31932 #if HAVE_PTHREADS < 7
31933 #include <errno.h>
31934 #endif
31935 #ifndef NULL
31936 #define NULL (void*)0
31937 #endif
31938
31939 static void *task(p)
31940         void *p;
31941 {
31942         return (void *) (p == NULL);
31943 }
31944
31945
31946 int main(argc, argv)
31947         int argc;
31948         char **argv;
31949 {
31950
31951         /* pthread test function */
31952 #ifndef PTHREAD_CREATE_DETACHED
31953 #define PTHREAD_CREATE_DETACHED 1
31954 #endif
31955         pthread_t t;
31956         int status;
31957         int detach = PTHREAD_CREATE_DETACHED;
31958
31959 #if HAVE_PTHREADS > 4
31960         /* Final pthreads */
31961         pthread_attr_t attr;
31962
31963         status = pthread_attr_init(&attr);
31964         if( status ) return status;
31965
31966 #if HAVE_PTHREADS < 7
31967         status = pthread_attr_setdetachstate(&attr, &detach);
31968         if( status < 0 ) status = errno;
31969 #else
31970         status = pthread_attr_setdetachstate(&attr, detach);
31971 #endif
31972         if( status ) return status;
31973         status = pthread_create( &t, &attr, task, NULL );
31974 #if HAVE_PTHREADS < 7
31975         if( status < 0 ) status = errno;
31976 #endif
31977         if( status ) return status;
31978 #else
31979         /* Draft 4 pthreads */
31980         status = pthread_create( &t, pthread_attr_default, task, NULL );
31981         if( status ) return errno;
31982
31983         /* give thread a chance to complete */
31984         /* it should remain joinable and hence detachable */
31985         sleep( 1 );
31986
31987         status = pthread_detach( &t );
31988         if( status ) return errno;
31989 #endif
31990
31991 #ifdef HAVE_LINUX_THREADS
31992         pthread_kill_other_threads_np();
31993 #endif
31994
31995         return 0;
31996
31997 }
31998
31999 _ACEOF
32000 rm -f conftest$ac_exeext
32001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32002   (eval $ac_link) 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007   (eval $ac_try) 2>&5
32008   ac_status=$?
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); }; }; then
32011   ol_cv_pthread_thread=yes
32012 else
32013   echo "$as_me: program exited with status $ac_status" >&5
32014 echo "$as_me: failed program was:" >&5
32015 sed 's/^/| /' conftest.$ac_ext >&5
32016
32017 ( exit $ac_status )
32018 ol_cv_pthread_thread=no
32019 fi
32020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32021 fi
32022
32023                 # restore the LIBS
32024                 LIBS="$ol_LIBS"
32025
32026 fi
32027 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
32028 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
32029
32030         if test $ol_cv_pthread_thread = yes ; then
32031                 ol_link_pthreads="-thread"
32032                 ol_link_threads=posix
32033         fi
32034 fi
32035
32036
32037                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
32038 if test "$ol_link_threads" = no ; then
32039         # try -lpthread -lmach -lexc -lc_r
32040         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
32041 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
32042 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
32043   echo $ECHO_N "(cached) $ECHO_C" >&6
32044 else
32045
32046                 # save the flags
32047                 ol_LIBS="$LIBS"
32048                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
32049
32050                 if test "$cross_compiling" = yes; then
32051   cat >conftest.$ac_ext <<_ACEOF
32052 /* confdefs.h.  */
32053 _ACEOF
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h.  */
32057
32058 /* pthread test headers */
32059 #include <pthread.h>
32060 #if HAVE_PTHREADS < 7
32061 #include <errno.h>
32062 #endif
32063 #ifndef NULL
32064 #define NULL (void*)0
32065 #endif
32066
32067 static void *task(p)
32068         void *p;
32069 {
32070         return (void *) (p == NULL);
32071 }
32072
32073 int
32074 main ()
32075 {
32076
32077         /* pthread test function */
32078 #ifndef PTHREAD_CREATE_DETACHED
32079 #define PTHREAD_CREATE_DETACHED 1
32080 #endif
32081         pthread_t t;
32082         int status;
32083         int detach = PTHREAD_CREATE_DETACHED;
32084
32085 #if HAVE_PTHREADS > 4
32086         /* Final pthreads */
32087         pthread_attr_t attr;
32088
32089         status = pthread_attr_init(&attr);
32090         if( status ) return status;
32091
32092 #if HAVE_PTHREADS < 7
32093         status = pthread_attr_setdetachstate(&attr, &detach);
32094         if( status < 0 ) status = errno;
32095 #else
32096         status = pthread_attr_setdetachstate(&attr, detach);
32097 #endif
32098         if( status ) return status;
32099         status = pthread_create( &t, &attr, task, NULL );
32100 #if HAVE_PTHREADS < 7
32101         if( status < 0 ) status = errno;
32102 #endif
32103         if( status ) return status;
32104 #else
32105         /* Draft 4 pthreads */
32106         status = pthread_create( &t, pthread_attr_default, task, NULL );
32107         if( status ) return errno;
32108
32109         /* give thread a chance to complete */
32110         /* it should remain joinable and hence detachable */
32111         sleep( 1 );
32112
32113         status = pthread_detach( &t );
32114         if( status ) return errno;
32115 #endif
32116
32117 #ifdef HAVE_LINUX_THREADS
32118         pthread_kill_other_threads_np();
32119 #endif
32120
32121         return 0;
32122
32123   ;
32124   return 0;
32125 }
32126 _ACEOF
32127 rm -f conftest.$ac_objext conftest$ac_exeext
32128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32129   (eval $ac_link) 2>conftest.er1
32130   ac_status=$?
32131   grep -v '^ *+' conftest.er1 >conftest.err
32132   rm -f conftest.er1
32133   cat conftest.err >&5
32134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135   (exit $ac_status); } &&
32136          { ac_try='test -z "$ac_c_werror_flag"
32137                          || test ! -s conftest.err'
32138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32139   (eval $ac_try) 2>&5
32140   ac_status=$?
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); }; } &&
32143          { ac_try='test -s conftest$ac_exeext'
32144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145   (eval $ac_try) 2>&5
32146   ac_status=$?
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); }; }; then
32149   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32150 else
32151   echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32153
32154 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32155 fi
32156 rm -f conftest.err conftest.$ac_objext \
32157       conftest$ac_exeext conftest.$ac_ext
32158 else
32159   cat >conftest.$ac_ext <<_ACEOF
32160 /* confdefs.h.  */
32161 _ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h.  */
32165
32166 /* pthread test headers */
32167 #include <pthread.h>
32168 #if HAVE_PTHREADS < 7
32169 #include <errno.h>
32170 #endif
32171 #ifndef NULL
32172 #define NULL (void*)0
32173 #endif
32174
32175 static void *task(p)
32176         void *p;
32177 {
32178         return (void *) (p == NULL);
32179 }
32180
32181
32182 int main(argc, argv)
32183         int argc;
32184         char **argv;
32185 {
32186
32187         /* pthread test function */
32188 #ifndef PTHREAD_CREATE_DETACHED
32189 #define PTHREAD_CREATE_DETACHED 1
32190 #endif
32191         pthread_t t;
32192         int status;
32193         int detach = PTHREAD_CREATE_DETACHED;
32194
32195 #if HAVE_PTHREADS > 4
32196         /* Final pthreads */
32197         pthread_attr_t attr;
32198
32199         status = pthread_attr_init(&attr);
32200         if( status ) return status;
32201
32202 #if HAVE_PTHREADS < 7
32203         status = pthread_attr_setdetachstate(&attr, &detach);
32204         if( status < 0 ) status = errno;
32205 #else
32206         status = pthread_attr_setdetachstate(&attr, detach);
32207 #endif
32208         if( status ) return status;
32209         status = pthread_create( &t, &attr, task, NULL );
32210 #if HAVE_PTHREADS < 7
32211         if( status < 0 ) status = errno;
32212 #endif
32213         if( status ) return status;
32214 #else
32215         /* Draft 4 pthreads */
32216         status = pthread_create( &t, pthread_attr_default, task, NULL );
32217         if( status ) return errno;
32218
32219         /* give thread a chance to complete */
32220         /* it should remain joinable and hence detachable */
32221         sleep( 1 );
32222
32223         status = pthread_detach( &t );
32224         if( status ) return errno;
32225 #endif
32226
32227 #ifdef HAVE_LINUX_THREADS
32228         pthread_kill_other_threads_np();
32229 #endif
32230
32231         return 0;
32232
32233 }
32234
32235 _ACEOF
32236 rm -f conftest$ac_exeext
32237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32238   (eval $ac_link) 2>&5
32239   ac_status=$?
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32243   (eval $ac_try) 2>&5
32244   ac_status=$?
32245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); }; }; then
32247   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32248 else
32249   echo "$as_me: program exited with status $ac_status" >&5
32250 echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32252
32253 ( exit $ac_status )
32254 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32255 fi
32256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32257 fi
32258
32259                 # restore the LIBS
32260                 LIBS="$ol_LIBS"
32261
32262 fi
32263 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32264 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32265
32266         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32267                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32268                 ol_link_threads=posix
32269         fi
32270 fi
32271
32272                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32273 if test "$ol_link_threads" = no ; then
32274         # try -lpthread -lmach -lexc
32275         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32276 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32277 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32278   echo $ECHO_N "(cached) $ECHO_C" >&6
32279 else
32280
32281                 # save the flags
32282                 ol_LIBS="$LIBS"
32283                 LIBS="-lpthread -lmach -lexc $LIBS"
32284
32285                 if test "$cross_compiling" = yes; then
32286   cat >conftest.$ac_ext <<_ACEOF
32287 /* confdefs.h.  */
32288 _ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h.  */
32292
32293 /* pthread test headers */
32294 #include <pthread.h>
32295 #if HAVE_PTHREADS < 7
32296 #include <errno.h>
32297 #endif
32298 #ifndef NULL
32299 #define NULL (void*)0
32300 #endif
32301
32302 static void *task(p)
32303         void *p;
32304 {
32305         return (void *) (p == NULL);
32306 }
32307
32308 int
32309 main ()
32310 {
32311
32312         /* pthread test function */
32313 #ifndef PTHREAD_CREATE_DETACHED
32314 #define PTHREAD_CREATE_DETACHED 1
32315 #endif
32316         pthread_t t;
32317         int status;
32318         int detach = PTHREAD_CREATE_DETACHED;
32319
32320 #if HAVE_PTHREADS > 4
32321         /* Final pthreads */
32322         pthread_attr_t attr;
32323
32324         status = pthread_attr_init(&attr);
32325         if( status ) return status;
32326
32327 #if HAVE_PTHREADS < 7
32328         status = pthread_attr_setdetachstate(&attr, &detach);
32329         if( status < 0 ) status = errno;
32330 #else
32331         status = pthread_attr_setdetachstate(&attr, detach);
32332 #endif
32333         if( status ) return status;
32334         status = pthread_create( &t, &attr, task, NULL );
32335 #if HAVE_PTHREADS < 7
32336         if( status < 0 ) status = errno;
32337 #endif
32338         if( status ) return status;
32339 #else
32340         /* Draft 4 pthreads */
32341         status = pthread_create( &t, pthread_attr_default, task, NULL );
32342         if( status ) return errno;
32343
32344         /* give thread a chance to complete */
32345         /* it should remain joinable and hence detachable */
32346         sleep( 1 );
32347
32348         status = pthread_detach( &t );
32349         if( status ) return errno;
32350 #endif
32351
32352 #ifdef HAVE_LINUX_THREADS
32353         pthread_kill_other_threads_np();
32354 #endif
32355
32356         return 0;
32357
32358   ;
32359   return 0;
32360 }
32361 _ACEOF
32362 rm -f conftest.$ac_objext conftest$ac_exeext
32363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32364   (eval $ac_link) 2>conftest.er1
32365   ac_status=$?
32366   grep -v '^ *+' conftest.er1 >conftest.err
32367   rm -f conftest.er1
32368   cat conftest.err >&5
32369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370   (exit $ac_status); } &&
32371          { ac_try='test -z "$ac_c_werror_flag"
32372                          || test ! -s conftest.err'
32373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374   (eval $ac_try) 2>&5
32375   ac_status=$?
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); }; } &&
32378          { ac_try='test -s conftest$ac_exeext'
32379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32380   (eval $ac_try) 2>&5
32381   ac_status=$?
32382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383   (exit $ac_status); }; }; then
32384   ol_cv_pthread_lpthread_lmach_lexc=yes
32385 else
32386   echo "$as_me: failed program was:" >&5
32387 sed 's/^/| /' conftest.$ac_ext >&5
32388
32389 ol_cv_pthread_lpthread_lmach_lexc=no
32390 fi
32391 rm -f conftest.err conftest.$ac_objext \
32392       conftest$ac_exeext conftest.$ac_ext
32393 else
32394   cat >conftest.$ac_ext <<_ACEOF
32395 /* confdefs.h.  */
32396 _ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h.  */
32400
32401 /* pthread test headers */
32402 #include <pthread.h>
32403 #if HAVE_PTHREADS < 7
32404 #include <errno.h>
32405 #endif
32406 #ifndef NULL
32407 #define NULL (void*)0
32408 #endif
32409
32410 static void *task(p)
32411         void *p;
32412 {
32413         return (void *) (p == NULL);
32414 }
32415
32416
32417 int main(argc, argv)
32418         int argc;
32419         char **argv;
32420 {
32421
32422         /* pthread test function */
32423 #ifndef PTHREAD_CREATE_DETACHED
32424 #define PTHREAD_CREATE_DETACHED 1
32425 #endif
32426         pthread_t t;
32427         int status;
32428         int detach = PTHREAD_CREATE_DETACHED;
32429
32430 #if HAVE_PTHREADS > 4
32431         /* Final pthreads */
32432         pthread_attr_t attr;
32433
32434         status = pthread_attr_init(&attr);
32435         if( status ) return status;
32436
32437 #if HAVE_PTHREADS < 7
32438         status = pthread_attr_setdetachstate(&attr, &detach);
32439         if( status < 0 ) status = errno;
32440 #else
32441         status = pthread_attr_setdetachstate(&attr, detach);
32442 #endif
32443         if( status ) return status;
32444         status = pthread_create( &t, &attr, task, NULL );
32445 #if HAVE_PTHREADS < 7
32446         if( status < 0 ) status = errno;
32447 #endif
32448         if( status ) return status;
32449 #else
32450         /* Draft 4 pthreads */
32451         status = pthread_create( &t, pthread_attr_default, task, NULL );
32452         if( status ) return errno;
32453
32454         /* give thread a chance to complete */
32455         /* it should remain joinable and hence detachable */
32456         sleep( 1 );
32457
32458         status = pthread_detach( &t );
32459         if( status ) return errno;
32460 #endif
32461
32462 #ifdef HAVE_LINUX_THREADS
32463         pthread_kill_other_threads_np();
32464 #endif
32465
32466         return 0;
32467
32468 }
32469
32470 _ACEOF
32471 rm -f conftest$ac_exeext
32472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32473   (eval $ac_link) 2>&5
32474   ac_status=$?
32475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478   (eval $ac_try) 2>&5
32479   ac_status=$?
32480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481   (exit $ac_status); }; }; then
32482   ol_cv_pthread_lpthread_lmach_lexc=yes
32483 else
32484   echo "$as_me: program exited with status $ac_status" >&5
32485 echo "$as_me: failed program was:" >&5
32486 sed 's/^/| /' conftest.$ac_ext >&5
32487
32488 ( exit $ac_status )
32489 ol_cv_pthread_lpthread_lmach_lexc=no
32490 fi
32491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32492 fi
32493
32494                 # restore the LIBS
32495                 LIBS="$ol_LIBS"
32496
32497 fi
32498 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32499 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32500
32501         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32502                 ol_link_pthreads="-lpthread -lmach -lexc"
32503                 ol_link_threads=posix
32504         fi
32505 fi
32506
32507
32508                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32509 if test "$ol_link_threads" = no ; then
32510         # try -lpthread -Wl,-woff,85
32511         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32512 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32513 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32514   echo $ECHO_N "(cached) $ECHO_C" >&6
32515 else
32516
32517                 # save the flags
32518                 ol_LIBS="$LIBS"
32519                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32520
32521                 if test "$cross_compiling" = yes; then
32522   cat >conftest.$ac_ext <<_ACEOF
32523 /* confdefs.h.  */
32524 _ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h.  */
32528
32529 /* pthread test headers */
32530 #include <pthread.h>
32531 #if HAVE_PTHREADS < 7
32532 #include <errno.h>
32533 #endif
32534 #ifndef NULL
32535 #define NULL (void*)0
32536 #endif
32537
32538 static void *task(p)
32539         void *p;
32540 {
32541         return (void *) (p == NULL);
32542 }
32543
32544 int
32545 main ()
32546 {
32547
32548         /* pthread test function */
32549 #ifndef PTHREAD_CREATE_DETACHED
32550 #define PTHREAD_CREATE_DETACHED 1
32551 #endif
32552         pthread_t t;
32553         int status;
32554         int detach = PTHREAD_CREATE_DETACHED;
32555
32556 #if HAVE_PTHREADS > 4
32557         /* Final pthreads */
32558         pthread_attr_t attr;
32559
32560         status = pthread_attr_init(&attr);
32561         if( status ) return status;
32562
32563 #if HAVE_PTHREADS < 7
32564         status = pthread_attr_setdetachstate(&attr, &detach);
32565         if( status < 0 ) status = errno;
32566 #else
32567         status = pthread_attr_setdetachstate(&attr, detach);
32568 #endif
32569         if( status ) return status;
32570         status = pthread_create( &t, &attr, task, NULL );
32571 #if HAVE_PTHREADS < 7
32572         if( status < 0 ) status = errno;
32573 #endif
32574         if( status ) return status;
32575 #else
32576         /* Draft 4 pthreads */
32577         status = pthread_create( &t, pthread_attr_default, task, NULL );
32578         if( status ) return errno;
32579
32580         /* give thread a chance to complete */
32581         /* it should remain joinable and hence detachable */
32582         sleep( 1 );
32583
32584         status = pthread_detach( &t );
32585         if( status ) return errno;
32586 #endif
32587
32588 #ifdef HAVE_LINUX_THREADS
32589         pthread_kill_other_threads_np();
32590 #endif
32591
32592         return 0;
32593
32594   ;
32595   return 0;
32596 }
32597 _ACEOF
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32600   (eval $ac_link) 2>conftest.er1
32601   ac_status=$?
32602   grep -v '^ *+' conftest.er1 >conftest.err
32603   rm -f conftest.er1
32604   cat conftest.err >&5
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); } &&
32607          { ac_try='test -z "$ac_c_werror_flag"
32608                          || test ! -s conftest.err'
32609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610   (eval $ac_try) 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; } &&
32614          { ac_try='test -s conftest$ac_exeext'
32615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616   (eval $ac_try) 2>&5
32617   ac_status=$?
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); }; }; then
32620   ol_cv_pthread_lib_lpthread_woff=yes
32621 else
32622   echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32624
32625 ol_cv_pthread_lib_lpthread_woff=no
32626 fi
32627 rm -f conftest.err conftest.$ac_objext \
32628       conftest$ac_exeext conftest.$ac_ext
32629 else
32630   cat >conftest.$ac_ext <<_ACEOF
32631 /* confdefs.h.  */
32632 _ACEOF
32633 cat confdefs.h >>conftest.$ac_ext
32634 cat >>conftest.$ac_ext <<_ACEOF
32635 /* end confdefs.h.  */
32636
32637 /* pthread test headers */
32638 #include <pthread.h>
32639 #if HAVE_PTHREADS < 7
32640 #include <errno.h>
32641 #endif
32642 #ifndef NULL
32643 #define NULL (void*)0
32644 #endif
32645
32646 static void *task(p)
32647         void *p;
32648 {
32649         return (void *) (p == NULL);
32650 }
32651
32652
32653 int main(argc, argv)
32654         int argc;
32655         char **argv;
32656 {
32657
32658         /* pthread test function */
32659 #ifndef PTHREAD_CREATE_DETACHED
32660 #define PTHREAD_CREATE_DETACHED 1
32661 #endif
32662         pthread_t t;
32663         int status;
32664         int detach = PTHREAD_CREATE_DETACHED;
32665
32666 #if HAVE_PTHREADS > 4
32667         /* Final pthreads */
32668         pthread_attr_t attr;
32669
32670         status = pthread_attr_init(&attr);
32671         if( status ) return status;
32672
32673 #if HAVE_PTHREADS < 7
32674         status = pthread_attr_setdetachstate(&attr, &detach);
32675         if( status < 0 ) status = errno;
32676 #else
32677         status = pthread_attr_setdetachstate(&attr, detach);
32678 #endif
32679         if( status ) return status;
32680         status = pthread_create( &t, &attr, task, NULL );
32681 #if HAVE_PTHREADS < 7
32682         if( status < 0 ) status = errno;
32683 #endif
32684         if( status ) return status;
32685 #else
32686         /* Draft 4 pthreads */
32687         status = pthread_create( &t, pthread_attr_default, task, NULL );
32688         if( status ) return errno;
32689
32690         /* give thread a chance to complete */
32691         /* it should remain joinable and hence detachable */
32692         sleep( 1 );
32693
32694         status = pthread_detach( &t );
32695         if( status ) return errno;
32696 #endif
32697
32698 #ifdef HAVE_LINUX_THREADS
32699         pthread_kill_other_threads_np();
32700 #endif
32701
32702         return 0;
32703
32704 }
32705
32706 _ACEOF
32707 rm -f conftest$ac_exeext
32708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32709   (eval $ac_link) 2>&5
32710   ac_status=$?
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714   (eval $ac_try) 2>&5
32715   ac_status=$?
32716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717   (exit $ac_status); }; }; then
32718   ol_cv_pthread_lib_lpthread_woff=yes
32719 else
32720   echo "$as_me: program exited with status $ac_status" >&5
32721 echo "$as_me: failed program was:" >&5
32722 sed 's/^/| /' conftest.$ac_ext >&5
32723
32724 ( exit $ac_status )
32725 ol_cv_pthread_lib_lpthread_woff=no
32726 fi
32727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32728 fi
32729
32730                 # restore the LIBS
32731                 LIBS="$ol_LIBS"
32732
32733 fi
32734 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32735 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32736
32737         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32738                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32739                 ol_link_threads=posix
32740         fi
32741 fi
32742
32743
32744                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32745 if test "$ol_link_threads" = no ; then
32746         # try -lpthread
32747         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32748 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32749 if test "${ol_cv_pthread_lpthread+set}" = set; then
32750   echo $ECHO_N "(cached) $ECHO_C" >&6
32751 else
32752
32753                 # save the flags
32754                 ol_LIBS="$LIBS"
32755                 LIBS="-lpthread $LIBS"
32756
32757                 if test "$cross_compiling" = yes; then
32758   cat >conftest.$ac_ext <<_ACEOF
32759 /* confdefs.h.  */
32760 _ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h.  */
32764
32765 /* pthread test headers */
32766 #include <pthread.h>
32767 #if HAVE_PTHREADS < 7
32768 #include <errno.h>
32769 #endif
32770 #ifndef NULL
32771 #define NULL (void*)0
32772 #endif
32773
32774 static void *task(p)
32775         void *p;
32776 {
32777         return (void *) (p == NULL);
32778 }
32779
32780 int
32781 main ()
32782 {
32783
32784         /* pthread test function */
32785 #ifndef PTHREAD_CREATE_DETACHED
32786 #define PTHREAD_CREATE_DETACHED 1
32787 #endif
32788         pthread_t t;
32789         int status;
32790         int detach = PTHREAD_CREATE_DETACHED;
32791
32792 #if HAVE_PTHREADS > 4
32793         /* Final pthreads */
32794         pthread_attr_t attr;
32795
32796         status = pthread_attr_init(&attr);
32797         if( status ) return status;
32798
32799 #if HAVE_PTHREADS < 7
32800         status = pthread_attr_setdetachstate(&attr, &detach);
32801         if( status < 0 ) status = errno;
32802 #else
32803         status = pthread_attr_setdetachstate(&attr, detach);
32804 #endif
32805         if( status ) return status;
32806         status = pthread_create( &t, &attr, task, NULL );
32807 #if HAVE_PTHREADS < 7
32808         if( status < 0 ) status = errno;
32809 #endif
32810         if( status ) return status;
32811 #else
32812         /* Draft 4 pthreads */
32813         status = pthread_create( &t, pthread_attr_default, task, NULL );
32814         if( status ) return errno;
32815
32816         /* give thread a chance to complete */
32817         /* it should remain joinable and hence detachable */
32818         sleep( 1 );
32819
32820         status = pthread_detach( &t );
32821         if( status ) return errno;
32822 #endif
32823
32824 #ifdef HAVE_LINUX_THREADS
32825         pthread_kill_other_threads_np();
32826 #endif
32827
32828         return 0;
32829
32830   ;
32831   return 0;
32832 }
32833 _ACEOF
32834 rm -f conftest.$ac_objext conftest$ac_exeext
32835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32836   (eval $ac_link) 2>conftest.er1
32837   ac_status=$?
32838   grep -v '^ *+' conftest.er1 >conftest.err
32839   rm -f conftest.er1
32840   cat conftest.err >&5
32841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); } &&
32843          { ac_try='test -z "$ac_c_werror_flag"
32844                          || test ! -s conftest.err'
32845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32846   (eval $ac_try) 2>&5
32847   ac_status=$?
32848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849   (exit $ac_status); }; } &&
32850          { ac_try='test -s conftest$ac_exeext'
32851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32852   (eval $ac_try) 2>&5
32853   ac_status=$?
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); }; }; then
32856   ol_cv_pthread_lpthread=yes
32857 else
32858   echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32860
32861 ol_cv_pthread_lpthread=no
32862 fi
32863 rm -f conftest.err conftest.$ac_objext \
32864       conftest$ac_exeext conftest.$ac_ext
32865 else
32866   cat >conftest.$ac_ext <<_ACEOF
32867 /* confdefs.h.  */
32868 _ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h.  */
32872
32873 /* pthread test headers */
32874 #include <pthread.h>
32875 #if HAVE_PTHREADS < 7
32876 #include <errno.h>
32877 #endif
32878 #ifndef NULL
32879 #define NULL (void*)0
32880 #endif
32881
32882 static void *task(p)
32883         void *p;
32884 {
32885         return (void *) (p == NULL);
32886 }
32887
32888
32889 int main(argc, argv)
32890         int argc;
32891         char **argv;
32892 {
32893
32894         /* pthread test function */
32895 #ifndef PTHREAD_CREATE_DETACHED
32896 #define PTHREAD_CREATE_DETACHED 1
32897 #endif
32898         pthread_t t;
32899         int status;
32900         int detach = PTHREAD_CREATE_DETACHED;
32901
32902 #if HAVE_PTHREADS > 4
32903         /* Final pthreads */
32904         pthread_attr_t attr;
32905
32906         status = pthread_attr_init(&attr);
32907         if( status ) return status;
32908
32909 #if HAVE_PTHREADS < 7
32910         status = pthread_attr_setdetachstate(&attr, &detach);
32911         if( status < 0 ) status = errno;
32912 #else
32913         status = pthread_attr_setdetachstate(&attr, detach);
32914 #endif
32915         if( status ) return status;
32916         status = pthread_create( &t, &attr, task, NULL );
32917 #if HAVE_PTHREADS < 7
32918         if( status < 0 ) status = errno;
32919 #endif
32920         if( status ) return status;
32921 #else
32922         /* Draft 4 pthreads */
32923         status = pthread_create( &t, pthread_attr_default, task, NULL );
32924         if( status ) return errno;
32925
32926         /* give thread a chance to complete */
32927         /* it should remain joinable and hence detachable */
32928         sleep( 1 );
32929
32930         status = pthread_detach( &t );
32931         if( status ) return errno;
32932 #endif
32933
32934 #ifdef HAVE_LINUX_THREADS
32935         pthread_kill_other_threads_np();
32936 #endif
32937
32938         return 0;
32939
32940 }
32941
32942 _ACEOF
32943 rm -f conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945   (eval $ac_link) 2>&5
32946   ac_status=$?
32947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950   (eval $ac_try) 2>&5
32951   ac_status=$?
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); }; }; then
32954   ol_cv_pthread_lpthread=yes
32955 else
32956   echo "$as_me: program exited with status $ac_status" >&5
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960 ( exit $ac_status )
32961 ol_cv_pthread_lpthread=no
32962 fi
32963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32964 fi
32965
32966                 # restore the LIBS
32967                 LIBS="$ol_LIBS"
32968
32969 fi
32970 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32971 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32972
32973         if test $ol_cv_pthread_lpthread = yes ; then
32974                 ol_link_pthreads="-lpthread"
32975                 ol_link_threads=posix
32976         fi
32977 fi
32978
32979                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32980 if test "$ol_link_threads" = no ; then
32981         # try -lc_r
32982         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32983 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32984 if test "${ol_cv_pthread_lc_r+set}" = set; then
32985   echo $ECHO_N "(cached) $ECHO_C" >&6
32986 else
32987
32988                 # save the flags
32989                 ol_LIBS="$LIBS"
32990                 LIBS="-lc_r $LIBS"
32991
32992                 if test "$cross_compiling" = yes; then
32993   cat >conftest.$ac_ext <<_ACEOF
32994 /* confdefs.h.  */
32995 _ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h.  */
32999
33000 /* pthread test headers */
33001 #include <pthread.h>
33002 #if HAVE_PTHREADS < 7
33003 #include <errno.h>
33004 #endif
33005 #ifndef NULL
33006 #define NULL (void*)0
33007 #endif
33008
33009 static void *task(p)
33010         void *p;
33011 {
33012         return (void *) (p == NULL);
33013 }
33014
33015 int
33016 main ()
33017 {
33018
33019         /* pthread test function */
33020 #ifndef PTHREAD_CREATE_DETACHED
33021 #define PTHREAD_CREATE_DETACHED 1
33022 #endif
33023         pthread_t t;
33024         int status;
33025         int detach = PTHREAD_CREATE_DETACHED;
33026
33027 #if HAVE_PTHREADS > 4
33028         /* Final pthreads */
33029         pthread_attr_t attr;
33030
33031         status = pthread_attr_init(&attr);
33032         if( status ) return status;
33033
33034 #if HAVE_PTHREADS < 7
33035         status = pthread_attr_setdetachstate(&attr, &detach);
33036         if( status < 0 ) status = errno;
33037 #else
33038         status = pthread_attr_setdetachstate(&attr, detach);
33039 #endif
33040         if( status ) return status;
33041         status = pthread_create( &t, &attr, task, NULL );
33042 #if HAVE_PTHREADS < 7
33043         if( status < 0 ) status = errno;
33044 #endif
33045         if( status ) return status;
33046 #else
33047         /* Draft 4 pthreads */
33048         status = pthread_create( &t, pthread_attr_default, task, NULL );
33049         if( status ) return errno;
33050
33051         /* give thread a chance to complete */
33052         /* it should remain joinable and hence detachable */
33053         sleep( 1 );
33054
33055         status = pthread_detach( &t );
33056         if( status ) return errno;
33057 #endif
33058
33059 #ifdef HAVE_LINUX_THREADS
33060         pthread_kill_other_threads_np();
33061 #endif
33062
33063         return 0;
33064
33065   ;
33066   return 0;
33067 }
33068 _ACEOF
33069 rm -f conftest.$ac_objext conftest$ac_exeext
33070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33071   (eval $ac_link) 2>conftest.er1
33072   ac_status=$?
33073   grep -v '^ *+' conftest.er1 >conftest.err
33074   rm -f conftest.er1
33075   cat conftest.err >&5
33076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077   (exit $ac_status); } &&
33078          { ac_try='test -z "$ac_c_werror_flag"
33079                          || test ! -s conftest.err'
33080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081   (eval $ac_try) 2>&5
33082   ac_status=$?
33083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084   (exit $ac_status); }; } &&
33085          { ac_try='test -s conftest$ac_exeext'
33086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087   (eval $ac_try) 2>&5
33088   ac_status=$?
33089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090   (exit $ac_status); }; }; then
33091   ol_cv_pthread_lc_r=yes
33092 else
33093   echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33095
33096 ol_cv_pthread_lc_r=no
33097 fi
33098 rm -f conftest.err conftest.$ac_objext \
33099       conftest$ac_exeext conftest.$ac_ext
33100 else
33101   cat >conftest.$ac_ext <<_ACEOF
33102 /* confdefs.h.  */
33103 _ACEOF
33104 cat confdefs.h >>conftest.$ac_ext
33105 cat >>conftest.$ac_ext <<_ACEOF
33106 /* end confdefs.h.  */
33107
33108 /* pthread test headers */
33109 #include <pthread.h>
33110 #if HAVE_PTHREADS < 7
33111 #include <errno.h>
33112 #endif
33113 #ifndef NULL
33114 #define NULL (void*)0
33115 #endif
33116
33117 static void *task(p)
33118         void *p;
33119 {
33120         return (void *) (p == NULL);
33121 }
33122
33123
33124 int main(argc, argv)
33125         int argc;
33126         char **argv;
33127 {
33128
33129         /* pthread test function */
33130 #ifndef PTHREAD_CREATE_DETACHED
33131 #define PTHREAD_CREATE_DETACHED 1
33132 #endif
33133         pthread_t t;
33134         int status;
33135         int detach = PTHREAD_CREATE_DETACHED;
33136
33137 #if HAVE_PTHREADS > 4
33138         /* Final pthreads */
33139         pthread_attr_t attr;
33140
33141         status = pthread_attr_init(&attr);
33142         if( status ) return status;
33143
33144 #if HAVE_PTHREADS < 7
33145         status = pthread_attr_setdetachstate(&attr, &detach);
33146         if( status < 0 ) status = errno;
33147 #else
33148         status = pthread_attr_setdetachstate(&attr, detach);
33149 #endif
33150         if( status ) return status;
33151         status = pthread_create( &t, &attr, task, NULL );
33152 #if HAVE_PTHREADS < 7
33153         if( status < 0 ) status = errno;
33154 #endif
33155         if( status ) return status;
33156 #else
33157         /* Draft 4 pthreads */
33158         status = pthread_create( &t, pthread_attr_default, task, NULL );
33159         if( status ) return errno;
33160
33161         /* give thread a chance to complete */
33162         /* it should remain joinable and hence detachable */
33163         sleep( 1 );
33164
33165         status = pthread_detach( &t );
33166         if( status ) return errno;
33167 #endif
33168
33169 #ifdef HAVE_LINUX_THREADS
33170         pthread_kill_other_threads_np();
33171 #endif
33172
33173         return 0;
33174
33175 }
33176
33177 _ACEOF
33178 rm -f conftest$ac_exeext
33179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33180   (eval $ac_link) 2>&5
33181   ac_status=$?
33182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185   (eval $ac_try) 2>&5
33186   ac_status=$?
33187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188   (exit $ac_status); }; }; then
33189   ol_cv_pthread_lc_r=yes
33190 else
33191   echo "$as_me: program exited with status $ac_status" >&5
33192 echo "$as_me: failed program was:" >&5
33193 sed 's/^/| /' conftest.$ac_ext >&5
33194
33195 ( exit $ac_status )
33196 ol_cv_pthread_lc_r=no
33197 fi
33198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33199 fi
33200
33201                 # restore the LIBS
33202                 LIBS="$ol_LIBS"
33203
33204 fi
33205 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33206 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33207
33208         if test $ol_cv_pthread_lc_r = yes ; then
33209                 ol_link_pthreads="-lc_r"
33210                 ol_link_threads=posix
33211         fi
33212 fi
33213
33214
33215                 # Pthread try link: -threads (ol_cv_pthread_threads)
33216 if test "$ol_link_threads" = no ; then
33217         # try -threads
33218         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33219 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33220 if test "${ol_cv_pthread_threads+set}" = set; then
33221   echo $ECHO_N "(cached) $ECHO_C" >&6
33222 else
33223
33224                 # save the flags
33225                 ol_LIBS="$LIBS"
33226                 LIBS="-threads $LIBS"
33227
33228                 if test "$cross_compiling" = yes; then
33229   cat >conftest.$ac_ext <<_ACEOF
33230 /* confdefs.h.  */
33231 _ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h.  */
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 int
33252 main ()
33253 {
33254
33255         /* pthread test function */
33256 #ifndef PTHREAD_CREATE_DETACHED
33257 #define PTHREAD_CREATE_DETACHED 1
33258 #endif
33259         pthread_t t;
33260         int status;
33261         int detach = PTHREAD_CREATE_DETACHED;
33262
33263 #if HAVE_PTHREADS > 4
33264         /* Final pthreads */
33265         pthread_attr_t attr;
33266
33267         status = pthread_attr_init(&attr);
33268         if( status ) return status;
33269
33270 #if HAVE_PTHREADS < 7
33271         status = pthread_attr_setdetachstate(&attr, &detach);
33272         if( status < 0 ) status = errno;
33273 #else
33274         status = pthread_attr_setdetachstate(&attr, detach);
33275 #endif
33276         if( status ) return status;
33277         status = pthread_create( &t, &attr, task, NULL );
33278 #if HAVE_PTHREADS < 7
33279         if( status < 0 ) status = errno;
33280 #endif
33281         if( status ) return status;
33282 #else
33283         /* Draft 4 pthreads */
33284         status = pthread_create( &t, pthread_attr_default, task, NULL );
33285         if( status ) return errno;
33286
33287         /* give thread a chance to complete */
33288         /* it should remain joinable and hence detachable */
33289         sleep( 1 );
33290
33291         status = pthread_detach( &t );
33292         if( status ) return errno;
33293 #endif
33294
33295 #ifdef HAVE_LINUX_THREADS
33296         pthread_kill_other_threads_np();
33297 #endif
33298
33299         return 0;
33300
33301   ;
33302   return 0;
33303 }
33304 _ACEOF
33305 rm -f conftest.$ac_objext conftest$ac_exeext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307   (eval $ac_link) 2>conftest.er1
33308   ac_status=$?
33309   grep -v '^ *+' conftest.er1 >conftest.err
33310   rm -f conftest.er1
33311   cat conftest.err >&5
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } &&
33314          { ac_try='test -z "$ac_c_werror_flag"
33315                          || test ! -s conftest.err'
33316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317   (eval $ac_try) 2>&5
33318   ac_status=$?
33319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320   (exit $ac_status); }; } &&
33321          { ac_try='test -s conftest$ac_exeext'
33322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323   (eval $ac_try) 2>&5
33324   ac_status=$?
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); }; }; then
33327   ol_cv_pthread_threads=yes
33328 else
33329   echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33331
33332 ol_cv_pthread_threads=no
33333 fi
33334 rm -f conftest.err conftest.$ac_objext \
33335       conftest$ac_exeext conftest.$ac_ext
33336 else
33337   cat >conftest.$ac_ext <<_ACEOF
33338 /* confdefs.h.  */
33339 _ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h.  */
33343
33344 /* pthread test headers */
33345 #include <pthread.h>
33346 #if HAVE_PTHREADS < 7
33347 #include <errno.h>
33348 #endif
33349 #ifndef NULL
33350 #define NULL (void*)0
33351 #endif
33352
33353 static void *task(p)
33354         void *p;
33355 {
33356         return (void *) (p == NULL);
33357 }
33358
33359
33360 int main(argc, argv)
33361         int argc;
33362         char **argv;
33363 {
33364
33365         /* pthread test function */
33366 #ifndef PTHREAD_CREATE_DETACHED
33367 #define PTHREAD_CREATE_DETACHED 1
33368 #endif
33369         pthread_t t;
33370         int status;
33371         int detach = PTHREAD_CREATE_DETACHED;
33372
33373 #if HAVE_PTHREADS > 4
33374         /* Final pthreads */
33375         pthread_attr_t attr;
33376
33377         status = pthread_attr_init(&attr);
33378         if( status ) return status;
33379
33380 #if HAVE_PTHREADS < 7
33381         status = pthread_attr_setdetachstate(&attr, &detach);
33382         if( status < 0 ) status = errno;
33383 #else
33384         status = pthread_attr_setdetachstate(&attr, detach);
33385 #endif
33386         if( status ) return status;
33387         status = pthread_create( &t, &attr, task, NULL );
33388 #if HAVE_PTHREADS < 7
33389         if( status < 0 ) status = errno;
33390 #endif
33391         if( status ) return status;
33392 #else
33393         /* Draft 4 pthreads */
33394         status = pthread_create( &t, pthread_attr_default, task, NULL );
33395         if( status ) return errno;
33396
33397         /* give thread a chance to complete */
33398         /* it should remain joinable and hence detachable */
33399         sleep( 1 );
33400
33401         status = pthread_detach( &t );
33402         if( status ) return errno;
33403 #endif
33404
33405 #ifdef HAVE_LINUX_THREADS
33406         pthread_kill_other_threads_np();
33407 #endif
33408
33409         return 0;
33410
33411 }
33412
33413 _ACEOF
33414 rm -f conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416   (eval $ac_link) 2>&5
33417   ac_status=$?
33418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421   (eval $ac_try) 2>&5
33422   ac_status=$?
33423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424   (exit $ac_status); }; }; then
33425   ol_cv_pthread_threads=yes
33426 else
33427   echo "$as_me: program exited with status $ac_status" >&5
33428 echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33430
33431 ( exit $ac_status )
33432 ol_cv_pthread_threads=no
33433 fi
33434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33435 fi
33436
33437                 # restore the LIBS
33438                 LIBS="$ol_LIBS"
33439
33440 fi
33441 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33442 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33443
33444         if test $ol_cv_pthread_threads = yes ; then
33445                 ol_link_pthreads="-threads"
33446                 ol_link_threads=posix
33447         fi
33448 fi
33449
33450
33451                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33452 if test "$ol_link_threads" = no ; then
33453         # try -lpthreads -lmach -lexc -lc_r
33454         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33455 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33456 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33457   echo $ECHO_N "(cached) $ECHO_C" >&6
33458 else
33459
33460                 # save the flags
33461                 ol_LIBS="$LIBS"
33462                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33463
33464                 if test "$cross_compiling" = yes; then
33465   cat >conftest.$ac_ext <<_ACEOF
33466 /* confdefs.h.  */
33467 _ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h.  */
33471
33472 /* pthread test headers */
33473 #include <pthread.h>
33474 #if HAVE_PTHREADS < 7
33475 #include <errno.h>
33476 #endif
33477 #ifndef NULL
33478 #define NULL (void*)0
33479 #endif
33480
33481 static void *task(p)
33482         void *p;
33483 {
33484         return (void *) (p == NULL);
33485 }
33486
33487 int
33488 main ()
33489 {
33490
33491         /* pthread test function */
33492 #ifndef PTHREAD_CREATE_DETACHED
33493 #define PTHREAD_CREATE_DETACHED 1
33494 #endif
33495         pthread_t t;
33496         int status;
33497         int detach = PTHREAD_CREATE_DETACHED;
33498
33499 #if HAVE_PTHREADS > 4
33500         /* Final pthreads */
33501         pthread_attr_t attr;
33502
33503         status = pthread_attr_init(&attr);
33504         if( status ) return status;
33505
33506 #if HAVE_PTHREADS < 7
33507         status = pthread_attr_setdetachstate(&attr, &detach);
33508         if( status < 0 ) status = errno;
33509 #else
33510         status = pthread_attr_setdetachstate(&attr, detach);
33511 #endif
33512         if( status ) return status;
33513         status = pthread_create( &t, &attr, task, NULL );
33514 #if HAVE_PTHREADS < 7
33515         if( status < 0 ) status = errno;
33516 #endif
33517         if( status ) return status;
33518 #else
33519         /* Draft 4 pthreads */
33520         status = pthread_create( &t, pthread_attr_default, task, NULL );
33521         if( status ) return errno;
33522
33523         /* give thread a chance to complete */
33524         /* it should remain joinable and hence detachable */
33525         sleep( 1 );
33526
33527         status = pthread_detach( &t );
33528         if( status ) return errno;
33529 #endif
33530
33531 #ifdef HAVE_LINUX_THREADS
33532         pthread_kill_other_threads_np();
33533 #endif
33534
33535         return 0;
33536
33537   ;
33538   return 0;
33539 }
33540 _ACEOF
33541 rm -f conftest.$ac_objext conftest$ac_exeext
33542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33543   (eval $ac_link) 2>conftest.er1
33544   ac_status=$?
33545   grep -v '^ *+' conftest.er1 >conftest.err
33546   rm -f conftest.er1
33547   cat conftest.err >&5
33548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549   (exit $ac_status); } &&
33550          { ac_try='test -z "$ac_c_werror_flag"
33551                          || test ! -s conftest.err'
33552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33553   (eval $ac_try) 2>&5
33554   ac_status=$?
33555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556   (exit $ac_status); }; } &&
33557          { ac_try='test -s conftest$ac_exeext'
33558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559   (eval $ac_try) 2>&5
33560   ac_status=$?
33561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562   (exit $ac_status); }; }; then
33563   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33564 else
33565   echo "$as_me: failed program was:" >&5
33566 sed 's/^/| /' conftest.$ac_ext >&5
33567
33568 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33569 fi
33570 rm -f conftest.err conftest.$ac_objext \
33571       conftest$ac_exeext conftest.$ac_ext
33572 else
33573   cat >conftest.$ac_ext <<_ACEOF
33574 /* confdefs.h.  */
33575 _ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h.  */
33579
33580 /* pthread test headers */
33581 #include <pthread.h>
33582 #if HAVE_PTHREADS < 7
33583 #include <errno.h>
33584 #endif
33585 #ifndef NULL
33586 #define NULL (void*)0
33587 #endif
33588
33589 static void *task(p)
33590         void *p;
33591 {
33592         return (void *) (p == NULL);
33593 }
33594
33595
33596 int main(argc, argv)
33597         int argc;
33598         char **argv;
33599 {
33600
33601         /* pthread test function */
33602 #ifndef PTHREAD_CREATE_DETACHED
33603 #define PTHREAD_CREATE_DETACHED 1
33604 #endif
33605         pthread_t t;
33606         int status;
33607         int detach = PTHREAD_CREATE_DETACHED;
33608
33609 #if HAVE_PTHREADS > 4
33610         /* Final pthreads */
33611         pthread_attr_t attr;
33612
33613         status = pthread_attr_init(&attr);
33614         if( status ) return status;
33615
33616 #if HAVE_PTHREADS < 7
33617         status = pthread_attr_setdetachstate(&attr, &detach);
33618         if( status < 0 ) status = errno;
33619 #else
33620         status = pthread_attr_setdetachstate(&attr, detach);
33621 #endif
33622         if( status ) return status;
33623         status = pthread_create( &t, &attr, task, NULL );
33624 #if HAVE_PTHREADS < 7
33625         if( status < 0 ) status = errno;
33626 #endif
33627         if( status ) return status;
33628 #else
33629         /* Draft 4 pthreads */
33630         status = pthread_create( &t, pthread_attr_default, task, NULL );
33631         if( status ) return errno;
33632
33633         /* give thread a chance to complete */
33634         /* it should remain joinable and hence detachable */
33635         sleep( 1 );
33636
33637         status = pthread_detach( &t );
33638         if( status ) return errno;
33639 #endif
33640
33641 #ifdef HAVE_LINUX_THREADS
33642         pthread_kill_other_threads_np();
33643 #endif
33644
33645         return 0;
33646
33647 }
33648
33649 _ACEOF
33650 rm -f conftest$ac_exeext
33651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33652   (eval $ac_link) 2>&5
33653   ac_status=$?
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657   (eval $ac_try) 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; }; then
33661   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33662 else
33663   echo "$as_me: program exited with status $ac_status" >&5
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33666
33667 ( exit $ac_status )
33668 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33669 fi
33670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33671 fi
33672
33673                 # restore the LIBS
33674                 LIBS="$ol_LIBS"
33675
33676 fi
33677 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33678 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33679
33680         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33681                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33682                 ol_link_threads=posix
33683         fi
33684 fi
33685
33686                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33687 if test "$ol_link_threads" = no ; then
33688         # try -lpthreads -lmach -lexc
33689         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33690 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33691 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33692   echo $ECHO_N "(cached) $ECHO_C" >&6
33693 else
33694
33695                 # save the flags
33696                 ol_LIBS="$LIBS"
33697                 LIBS="-lpthreads -lmach -lexc $LIBS"
33698
33699                 if test "$cross_compiling" = yes; then
33700   cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706
33707 /* pthread test headers */
33708 #include <pthread.h>
33709 #if HAVE_PTHREADS < 7
33710 #include <errno.h>
33711 #endif
33712 #ifndef NULL
33713 #define NULL (void*)0
33714 #endif
33715
33716 static void *task(p)
33717         void *p;
33718 {
33719         return (void *) (p == NULL);
33720 }
33721
33722 int
33723 main ()
33724 {
33725
33726         /* pthread test function */
33727 #ifndef PTHREAD_CREATE_DETACHED
33728 #define PTHREAD_CREATE_DETACHED 1
33729 #endif
33730         pthread_t t;
33731         int status;
33732         int detach = PTHREAD_CREATE_DETACHED;
33733
33734 #if HAVE_PTHREADS > 4
33735         /* Final pthreads */
33736         pthread_attr_t attr;
33737
33738         status = pthread_attr_init(&attr);
33739         if( status ) return status;
33740
33741 #if HAVE_PTHREADS < 7
33742         status = pthread_attr_setdetachstate(&attr, &detach);
33743         if( status < 0 ) status = errno;
33744 #else
33745         status = pthread_attr_setdetachstate(&attr, detach);
33746 #endif
33747         if( status ) return status;
33748         status = pthread_create( &t, &attr, task, NULL );
33749 #if HAVE_PTHREADS < 7
33750         if( status < 0 ) status = errno;
33751 #endif
33752         if( status ) return status;
33753 #else
33754         /* Draft 4 pthreads */
33755         status = pthread_create( &t, pthread_attr_default, task, NULL );
33756         if( status ) return errno;
33757
33758         /* give thread a chance to complete */
33759         /* it should remain joinable and hence detachable */
33760         sleep( 1 );
33761
33762         status = pthread_detach( &t );
33763         if( status ) return errno;
33764 #endif
33765
33766 #ifdef HAVE_LINUX_THREADS
33767         pthread_kill_other_threads_np();
33768 #endif
33769
33770         return 0;
33771
33772   ;
33773   return 0;
33774 }
33775 _ACEOF
33776 rm -f conftest.$ac_objext conftest$ac_exeext
33777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33778   (eval $ac_link) 2>conftest.er1
33779   ac_status=$?
33780   grep -v '^ *+' conftest.er1 >conftest.err
33781   rm -f conftest.er1
33782   cat conftest.err >&5
33783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784   (exit $ac_status); } &&
33785          { ac_try='test -z "$ac_c_werror_flag"
33786                          || test ! -s conftest.err'
33787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33788   (eval $ac_try) 2>&5
33789   ac_status=$?
33790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791   (exit $ac_status); }; } &&
33792          { ac_try='test -s conftest$ac_exeext'
33793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794   (eval $ac_try) 2>&5
33795   ac_status=$?
33796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797   (exit $ac_status); }; }; then
33798   ol_cv_pthread_lpthreads_lmach_lexc=yes
33799 else
33800   echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.$ac_ext >&5
33802
33803 ol_cv_pthread_lpthreads_lmach_lexc=no
33804 fi
33805 rm -f conftest.err conftest.$ac_objext \
33806       conftest$ac_exeext conftest.$ac_ext
33807 else
33808   cat >conftest.$ac_ext <<_ACEOF
33809 /* confdefs.h.  */
33810 _ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h.  */
33814
33815 /* pthread test headers */
33816 #include <pthread.h>
33817 #if HAVE_PTHREADS < 7
33818 #include <errno.h>
33819 #endif
33820 #ifndef NULL
33821 #define NULL (void*)0
33822 #endif
33823
33824 static void *task(p)
33825         void *p;
33826 {
33827         return (void *) (p == NULL);
33828 }
33829
33830
33831 int main(argc, argv)
33832         int argc;
33833         char **argv;
33834 {
33835
33836         /* pthread test function */
33837 #ifndef PTHREAD_CREATE_DETACHED
33838 #define PTHREAD_CREATE_DETACHED 1
33839 #endif
33840         pthread_t t;
33841         int status;
33842         int detach = PTHREAD_CREATE_DETACHED;
33843
33844 #if HAVE_PTHREADS > 4
33845         /* Final pthreads */
33846         pthread_attr_t attr;
33847
33848         status = pthread_attr_init(&attr);
33849         if( status ) return status;
33850
33851 #if HAVE_PTHREADS < 7
33852         status = pthread_attr_setdetachstate(&attr, &detach);
33853         if( status < 0 ) status = errno;
33854 #else
33855         status = pthread_attr_setdetachstate(&attr, detach);
33856 #endif
33857         if( status ) return status;
33858         status = pthread_create( &t, &attr, task, NULL );
33859 #if HAVE_PTHREADS < 7
33860         if( status < 0 ) status = errno;
33861 #endif
33862         if( status ) return status;
33863 #else
33864         /* Draft 4 pthreads */
33865         status = pthread_create( &t, pthread_attr_default, task, NULL );
33866         if( status ) return errno;
33867
33868         /* give thread a chance to complete */
33869         /* it should remain joinable and hence detachable */
33870         sleep( 1 );
33871
33872         status = pthread_detach( &t );
33873         if( status ) return errno;
33874 #endif
33875
33876 #ifdef HAVE_LINUX_THREADS
33877         pthread_kill_other_threads_np();
33878 #endif
33879
33880         return 0;
33881
33882 }
33883
33884 _ACEOF
33885 rm -f conftest$ac_exeext
33886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33887   (eval $ac_link) 2>&5
33888   ac_status=$?
33889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33892   (eval $ac_try) 2>&5
33893   ac_status=$?
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); }; }; then
33896   ol_cv_pthread_lpthreads_lmach_lexc=yes
33897 else
33898   echo "$as_me: program exited with status $ac_status" >&5
33899 echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33901
33902 ( exit $ac_status )
33903 ol_cv_pthread_lpthreads_lmach_lexc=no
33904 fi
33905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33906 fi
33907
33908                 # restore the LIBS
33909                 LIBS="$ol_LIBS"
33910
33911 fi
33912 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33913 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33914
33915         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33916                 ol_link_pthreads="-lpthreads -lmach -lexc"
33917                 ol_link_threads=posix
33918         fi
33919 fi
33920
33921                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33922 if test "$ol_link_threads" = no ; then
33923         # try -lpthreads -lexc
33924         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33925 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33926 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33927   echo $ECHO_N "(cached) $ECHO_C" >&6
33928 else
33929
33930                 # save the flags
33931                 ol_LIBS="$LIBS"
33932                 LIBS="-lpthreads -lexc $LIBS"
33933
33934                 if test "$cross_compiling" = yes; then
33935   cat >conftest.$ac_ext <<_ACEOF
33936 /* confdefs.h.  */
33937 _ACEOF
33938 cat confdefs.h >>conftest.$ac_ext
33939 cat >>conftest.$ac_ext <<_ACEOF
33940 /* end confdefs.h.  */
33941
33942 /* pthread test headers */
33943 #include <pthread.h>
33944 #if HAVE_PTHREADS < 7
33945 #include <errno.h>
33946 #endif
33947 #ifndef NULL
33948 #define NULL (void*)0
33949 #endif
33950
33951 static void *task(p)
33952         void *p;
33953 {
33954         return (void *) (p == NULL);
33955 }
33956
33957 int
33958 main ()
33959 {
33960
33961         /* pthread test function */
33962 #ifndef PTHREAD_CREATE_DETACHED
33963 #define PTHREAD_CREATE_DETACHED 1
33964 #endif
33965         pthread_t t;
33966         int status;
33967         int detach = PTHREAD_CREATE_DETACHED;
33968
33969 #if HAVE_PTHREADS > 4
33970         /* Final pthreads */
33971         pthread_attr_t attr;
33972
33973         status = pthread_attr_init(&attr);
33974         if( status ) return status;
33975
33976 #if HAVE_PTHREADS < 7
33977         status = pthread_attr_setdetachstate(&attr, &detach);
33978         if( status < 0 ) status = errno;
33979 #else
33980         status = pthread_attr_setdetachstate(&attr, detach);
33981 #endif
33982         if( status ) return status;
33983         status = pthread_create( &t, &attr, task, NULL );
33984 #if HAVE_PTHREADS < 7
33985         if( status < 0 ) status = errno;
33986 #endif
33987         if( status ) return status;
33988 #else
33989         /* Draft 4 pthreads */
33990         status = pthread_create( &t, pthread_attr_default, task, NULL );
33991         if( status ) return errno;
33992
33993         /* give thread a chance to complete */
33994         /* it should remain joinable and hence detachable */
33995         sleep( 1 );
33996
33997         status = pthread_detach( &t );
33998         if( status ) return errno;
33999 #endif
34000
34001 #ifdef HAVE_LINUX_THREADS
34002         pthread_kill_other_threads_np();
34003 #endif
34004
34005         return 0;
34006
34007   ;
34008   return 0;
34009 }
34010 _ACEOF
34011 rm -f conftest.$ac_objext conftest$ac_exeext
34012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34013   (eval $ac_link) 2>conftest.er1
34014   ac_status=$?
34015   grep -v '^ *+' conftest.er1 >conftest.err
34016   rm -f conftest.er1
34017   cat conftest.err >&5
34018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019   (exit $ac_status); } &&
34020          { ac_try='test -z "$ac_c_werror_flag"
34021                          || test ! -s conftest.err'
34022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023   (eval $ac_try) 2>&5
34024   ac_status=$?
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); }; } &&
34027          { ac_try='test -s conftest$ac_exeext'
34028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029   (eval $ac_try) 2>&5
34030   ac_status=$?
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); }; }; then
34033   ol_cv_pthread_lpthreads_lexc=yes
34034 else
34035   echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34037
34038 ol_cv_pthread_lpthreads_lexc=no
34039 fi
34040 rm -f conftest.err conftest.$ac_objext \
34041       conftest$ac_exeext conftest.$ac_ext
34042 else
34043   cat >conftest.$ac_ext <<_ACEOF
34044 /* confdefs.h.  */
34045 _ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h.  */
34049
34050 /* pthread test headers */
34051 #include <pthread.h>
34052 #if HAVE_PTHREADS < 7
34053 #include <errno.h>
34054 #endif
34055 #ifndef NULL
34056 #define NULL (void*)0
34057 #endif
34058
34059 static void *task(p)
34060         void *p;
34061 {
34062         return (void *) (p == NULL);
34063 }
34064
34065
34066 int main(argc, argv)
34067         int argc;
34068         char **argv;
34069 {
34070
34071         /* pthread test function */
34072 #ifndef PTHREAD_CREATE_DETACHED
34073 #define PTHREAD_CREATE_DETACHED 1
34074 #endif
34075         pthread_t t;
34076         int status;
34077         int detach = PTHREAD_CREATE_DETACHED;
34078
34079 #if HAVE_PTHREADS > 4
34080         /* Final pthreads */
34081         pthread_attr_t attr;
34082
34083         status = pthread_attr_init(&attr);
34084         if( status ) return status;
34085
34086 #if HAVE_PTHREADS < 7
34087         status = pthread_attr_setdetachstate(&attr, &detach);
34088         if( status < 0 ) status = errno;
34089 #else
34090         status = pthread_attr_setdetachstate(&attr, detach);
34091 #endif
34092         if( status ) return status;
34093         status = pthread_create( &t, &attr, task, NULL );
34094 #if HAVE_PTHREADS < 7
34095         if( status < 0 ) status = errno;
34096 #endif
34097         if( status ) return status;
34098 #else
34099         /* Draft 4 pthreads */
34100         status = pthread_create( &t, pthread_attr_default, task, NULL );
34101         if( status ) return errno;
34102
34103         /* give thread a chance to complete */
34104         /* it should remain joinable and hence detachable */
34105         sleep( 1 );
34106
34107         status = pthread_detach( &t );
34108         if( status ) return errno;
34109 #endif
34110
34111 #ifdef HAVE_LINUX_THREADS
34112         pthread_kill_other_threads_np();
34113 #endif
34114
34115         return 0;
34116
34117 }
34118
34119 _ACEOF
34120 rm -f conftest$ac_exeext
34121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34122   (eval $ac_link) 2>&5
34123   ac_status=$?
34124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127   (eval $ac_try) 2>&5
34128   ac_status=$?
34129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130   (exit $ac_status); }; }; then
34131   ol_cv_pthread_lpthreads_lexc=yes
34132 else
34133   echo "$as_me: program exited with status $ac_status" >&5
34134 echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34136
34137 ( exit $ac_status )
34138 ol_cv_pthread_lpthreads_lexc=no
34139 fi
34140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34141 fi
34142
34143                 # restore the LIBS
34144                 LIBS="$ol_LIBS"
34145
34146 fi
34147 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34148 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34149
34150         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34151                 ol_link_pthreads="-lpthreads -lexc"
34152                 ol_link_threads=posix
34153         fi
34154 fi
34155
34156
34157                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34158 if test "$ol_link_threads" = no ; then
34159         # try -lpthreads
34160         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34161 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34162 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34163   echo $ECHO_N "(cached) $ECHO_C" >&6
34164 else
34165
34166                 # save the flags
34167                 ol_LIBS="$LIBS"
34168                 LIBS="-lpthreads $LIBS"
34169
34170                 if test "$cross_compiling" = yes; then
34171   cat >conftest.$ac_ext <<_ACEOF
34172 /* confdefs.h.  */
34173 _ACEOF
34174 cat confdefs.h >>conftest.$ac_ext
34175 cat >>conftest.$ac_ext <<_ACEOF
34176 /* end confdefs.h.  */
34177
34178 /* pthread test headers */
34179 #include <pthread.h>
34180 #if HAVE_PTHREADS < 7
34181 #include <errno.h>
34182 #endif
34183 #ifndef NULL
34184 #define NULL (void*)0
34185 #endif
34186
34187 static void *task(p)
34188         void *p;
34189 {
34190         return (void *) (p == NULL);
34191 }
34192
34193 int
34194 main ()
34195 {
34196
34197         /* pthread test function */
34198 #ifndef PTHREAD_CREATE_DETACHED
34199 #define PTHREAD_CREATE_DETACHED 1
34200 #endif
34201         pthread_t t;
34202         int status;
34203         int detach = PTHREAD_CREATE_DETACHED;
34204
34205 #if HAVE_PTHREADS > 4
34206         /* Final pthreads */
34207         pthread_attr_t attr;
34208
34209         status = pthread_attr_init(&attr);
34210         if( status ) return status;
34211
34212 #if HAVE_PTHREADS < 7
34213         status = pthread_attr_setdetachstate(&attr, &detach);
34214         if( status < 0 ) status = errno;
34215 #else
34216         status = pthread_attr_setdetachstate(&attr, detach);
34217 #endif
34218         if( status ) return status;
34219         status = pthread_create( &t, &attr, task, NULL );
34220 #if HAVE_PTHREADS < 7
34221         if( status < 0 ) status = errno;
34222 #endif
34223         if( status ) return status;
34224 #else
34225         /* Draft 4 pthreads */
34226         status = pthread_create( &t, pthread_attr_default, task, NULL );
34227         if( status ) return errno;
34228
34229         /* give thread a chance to complete */
34230         /* it should remain joinable and hence detachable */
34231         sleep( 1 );
34232
34233         status = pthread_detach( &t );
34234         if( status ) return errno;
34235 #endif
34236
34237 #ifdef HAVE_LINUX_THREADS
34238         pthread_kill_other_threads_np();
34239 #endif
34240
34241         return 0;
34242
34243   ;
34244   return 0;
34245 }
34246 _ACEOF
34247 rm -f conftest.$ac_objext conftest$ac_exeext
34248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34249   (eval $ac_link) 2>conftest.er1
34250   ac_status=$?
34251   grep -v '^ *+' conftest.er1 >conftest.err
34252   rm -f conftest.er1
34253   cat conftest.err >&5
34254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255   (exit $ac_status); } &&
34256          { ac_try='test -z "$ac_c_werror_flag"
34257                          || test ! -s conftest.err'
34258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259   (eval $ac_try) 2>&5
34260   ac_status=$?
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); }; } &&
34263          { ac_try='test -s conftest$ac_exeext'
34264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34265   (eval $ac_try) 2>&5
34266   ac_status=$?
34267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268   (exit $ac_status); }; }; then
34269   ol_cv_pthread_lib_lpthreads=yes
34270 else
34271   echo "$as_me: failed program was:" >&5
34272 sed 's/^/| /' conftest.$ac_ext >&5
34273
34274 ol_cv_pthread_lib_lpthreads=no
34275 fi
34276 rm -f conftest.err conftest.$ac_objext \
34277       conftest$ac_exeext conftest.$ac_ext
34278 else
34279   cat >conftest.$ac_ext <<_ACEOF
34280 /* confdefs.h.  */
34281 _ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h.  */
34285
34286 /* pthread test headers */
34287 #include <pthread.h>
34288 #if HAVE_PTHREADS < 7
34289 #include <errno.h>
34290 #endif
34291 #ifndef NULL
34292 #define NULL (void*)0
34293 #endif
34294
34295 static void *task(p)
34296         void *p;
34297 {
34298         return (void *) (p == NULL);
34299 }
34300
34301
34302 int main(argc, argv)
34303         int argc;
34304         char **argv;
34305 {
34306
34307         /* pthread test function */
34308 #ifndef PTHREAD_CREATE_DETACHED
34309 #define PTHREAD_CREATE_DETACHED 1
34310 #endif
34311         pthread_t t;
34312         int status;
34313         int detach = PTHREAD_CREATE_DETACHED;
34314
34315 #if HAVE_PTHREADS > 4
34316         /* Final pthreads */
34317         pthread_attr_t attr;
34318
34319         status = pthread_attr_init(&attr);
34320         if( status ) return status;
34321
34322 #if HAVE_PTHREADS < 7
34323         status = pthread_attr_setdetachstate(&attr, &detach);
34324         if( status < 0 ) status = errno;
34325 #else
34326         status = pthread_attr_setdetachstate(&attr, detach);
34327 #endif
34328         if( status ) return status;
34329         status = pthread_create( &t, &attr, task, NULL );
34330 #if HAVE_PTHREADS < 7
34331         if( status < 0 ) status = errno;
34332 #endif
34333         if( status ) return status;
34334 #else
34335         /* Draft 4 pthreads */
34336         status = pthread_create( &t, pthread_attr_default, task, NULL );
34337         if( status ) return errno;
34338
34339         /* give thread a chance to complete */
34340         /* it should remain joinable and hence detachable */
34341         sleep( 1 );
34342
34343         status = pthread_detach( &t );
34344         if( status ) return errno;
34345 #endif
34346
34347 #ifdef HAVE_LINUX_THREADS
34348         pthread_kill_other_threads_np();
34349 #endif
34350
34351         return 0;
34352
34353 }
34354
34355 _ACEOF
34356 rm -f conftest$ac_exeext
34357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34358   (eval $ac_link) 2>&5
34359   ac_status=$?
34360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34363   (eval $ac_try) 2>&5
34364   ac_status=$?
34365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366   (exit $ac_status); }; }; then
34367   ol_cv_pthread_lib_lpthreads=yes
34368 else
34369   echo "$as_me: program exited with status $ac_status" >&5
34370 echo "$as_me: failed program was:" >&5
34371 sed 's/^/| /' conftest.$ac_ext >&5
34372
34373 ( exit $ac_status )
34374 ol_cv_pthread_lib_lpthreads=no
34375 fi
34376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34377 fi
34378
34379                 # restore the LIBS
34380                 LIBS="$ol_LIBS"
34381
34382 fi
34383 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34384 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34385
34386         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34387                 ol_link_pthreads="-lpthreads"
34388                 ol_link_threads=posix
34389         fi
34390 fi
34391
34392
34393                 if test $ol_link_threads != no ; then
34394                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34395
34396                                                 save_CPPFLAGS="$CPPFLAGS"
34397                         save_LIBS="$LIBS"
34398                         LIBS="$LTHREAD_LIBS $LIBS"
34399
34400
34401
34402
34403 for ac_func in sched_yield pthread_yield thr_yield
34404 do
34405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34406 echo "$as_me:$LINENO: checking for $ac_func" >&5
34407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34408 if eval "test \"\${$as_ac_var+set}\" = set"; then
34409   echo $ECHO_N "(cached) $ECHO_C" >&6
34410 else
34411   cat >conftest.$ac_ext <<_ACEOF
34412 /* confdefs.h.  */
34413 _ACEOF
34414 cat confdefs.h >>conftest.$ac_ext
34415 cat >>conftest.$ac_ext <<_ACEOF
34416 /* end confdefs.h.  */
34417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34419 #define $ac_func innocuous_$ac_func
34420
34421 /* System header to define __stub macros and hopefully few prototypes,
34422     which can conflict with char $ac_func (); below.
34423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34424     <limits.h> exists even on freestanding compilers.  */
34425
34426 #ifdef __STDC__
34427 # include <limits.h>
34428 #else
34429 # include <assert.h>
34430 #endif
34431
34432 #undef $ac_func
34433
34434 /* Override any gcc2 internal prototype to avoid an error.  */
34435 #ifdef __cplusplus
34436 extern "C"
34437 {
34438 #endif
34439 /* We use char because int might match the return type of a gcc2
34440    builtin and then its argument prototype would still apply.  */
34441 char $ac_func ();
34442 /* The GNU C library defines this for functions which it implements
34443     to always fail with ENOSYS.  Some functions are actually named
34444     something starting with __ and the normal name is an alias.  */
34445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34446 choke me
34447 #else
34448 char (*f) () = $ac_func;
34449 #endif
34450 #ifdef __cplusplus
34451 }
34452 #endif
34453
34454 int
34455 main ()
34456 {
34457 return f != $ac_func;
34458   ;
34459   return 0;
34460 }
34461 _ACEOF
34462 rm -f conftest.$ac_objext conftest$ac_exeext
34463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34464   (eval $ac_link) 2>conftest.er1
34465   ac_status=$?
34466   grep -v '^ *+' conftest.er1 >conftest.err
34467   rm -f conftest.er1
34468   cat conftest.err >&5
34469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470   (exit $ac_status); } &&
34471          { ac_try='test -z "$ac_c_werror_flag"
34472                          || test ! -s conftest.err'
34473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34474   (eval $ac_try) 2>&5
34475   ac_status=$?
34476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477   (exit $ac_status); }; } &&
34478          { ac_try='test -s conftest$ac_exeext'
34479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480   (eval $ac_try) 2>&5
34481   ac_status=$?
34482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483   (exit $ac_status); }; }; then
34484   eval "$as_ac_var=yes"
34485 else
34486   echo "$as_me: failed program was:" >&5
34487 sed 's/^/| /' conftest.$ac_ext >&5
34488
34489 eval "$as_ac_var=no"
34490 fi
34491 rm -f conftest.err conftest.$ac_objext \
34492       conftest$ac_exeext conftest.$ac_ext
34493 fi
34494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34496 if test `eval echo '${'$as_ac_var'}'` = yes; then
34497   cat >>confdefs.h <<_ACEOF
34498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34499 _ACEOF
34500
34501 fi
34502 done
34503
34504
34505                         if test $ac_cv_func_sched_yield = no -a \
34506                                 $ac_cv_func_pthread_yield = no -a \
34507                                 $ac_cv_func_thr_yield = no ; then
34508                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34509 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34510 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34511   echo $ECHO_N "(cached) $ECHO_C" >&6
34512 else
34513   ac_check_lib_save_LIBS=$LIBS
34514 LIBS="-lrt  $LIBS"
34515 cat >conftest.$ac_ext <<_ACEOF
34516 /* confdefs.h.  */
34517 _ACEOF
34518 cat confdefs.h >>conftest.$ac_ext
34519 cat >>conftest.$ac_ext <<_ACEOF
34520 /* end confdefs.h.  */
34521
34522 /* Override any gcc2 internal prototype to avoid an error.  */
34523 #ifdef __cplusplus
34524 extern "C"
34525 #endif
34526 /* We use char because int might match the return type of a gcc2
34527    builtin and then its argument prototype would still apply.  */
34528 char sched_yield ();
34529 int
34530 main ()
34531 {
34532 sched_yield ();
34533   ;
34534   return 0;
34535 }
34536 _ACEOF
34537 rm -f conftest.$ac_objext conftest$ac_exeext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34539   (eval $ac_link) 2>conftest.er1
34540   ac_status=$?
34541   grep -v '^ *+' conftest.er1 >conftest.err
34542   rm -f conftest.er1
34543   cat conftest.err >&5
34544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545   (exit $ac_status); } &&
34546          { ac_try='test -z "$ac_c_werror_flag"
34547                          || test ! -s conftest.err'
34548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549   (eval $ac_try) 2>&5
34550   ac_status=$?
34551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552   (exit $ac_status); }; } &&
34553          { ac_try='test -s conftest$ac_exeext'
34554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555   (eval $ac_try) 2>&5
34556   ac_status=$?
34557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558   (exit $ac_status); }; }; then
34559   ac_cv_lib_rt_sched_yield=yes
34560 else
34561   echo "$as_me: failed program was:" >&5
34562 sed 's/^/| /' conftest.$ac_ext >&5
34563
34564 ac_cv_lib_rt_sched_yield=no
34565 fi
34566 rm -f conftest.err conftest.$ac_objext \
34567       conftest$ac_exeext conftest.$ac_ext
34568 LIBS=$ac_check_lib_save_LIBS
34569 fi
34570 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34571 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34572 if test $ac_cv_lib_rt_sched_yield = yes; then
34573   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34574
34575 cat >>confdefs.h <<\_ACEOF
34576 #define HAVE_SCHED_YIELD 1
34577 _ACEOF
34578
34579                                         ac_cv_func_sched_yield=yes
34580 else
34581   ac_cv_func_sched_yield=no
34582 fi
34583
34584                         fi
34585                         if test $ac_cv_func_sched_yield = no -a \
34586                                 $ac_cv_func_pthread_yield = no -a \
34587                                 "$ac_cv_func_thr_yield" = no ; then
34588                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34589 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34590                         fi
34591
34592
34593
34594 for ac_func in pthread_kill pthread_rwlock_destroy
34595 do
34596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34597 echo "$as_me:$LINENO: checking for $ac_func" >&5
34598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34599 if eval "test \"\${$as_ac_var+set}\" = set"; then
34600   echo $ECHO_N "(cached) $ECHO_C" >&6
34601 else
34602   cat >conftest.$ac_ext <<_ACEOF
34603 /* confdefs.h.  */
34604 _ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h.  */
34608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34610 #define $ac_func innocuous_$ac_func
34611
34612 /* System header to define __stub macros and hopefully few prototypes,
34613     which can conflict with char $ac_func (); below.
34614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34615     <limits.h> exists even on freestanding compilers.  */
34616
34617 #ifdef __STDC__
34618 # include <limits.h>
34619 #else
34620 # include <assert.h>
34621 #endif
34622
34623 #undef $ac_func
34624
34625 /* Override any gcc2 internal prototype to avoid an error.  */
34626 #ifdef __cplusplus
34627 extern "C"
34628 {
34629 #endif
34630 /* We use char because int might match the return type of a gcc2
34631    builtin and then its argument prototype would still apply.  */
34632 char $ac_func ();
34633 /* The GNU C library defines this for functions which it implements
34634     to always fail with ENOSYS.  Some functions are actually named
34635     something starting with __ and the normal name is an alias.  */
34636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34637 choke me
34638 #else
34639 char (*f) () = $ac_func;
34640 #endif
34641 #ifdef __cplusplus
34642 }
34643 #endif
34644
34645 int
34646 main ()
34647 {
34648 return f != $ac_func;
34649   ;
34650   return 0;
34651 }
34652 _ACEOF
34653 rm -f conftest.$ac_objext conftest$ac_exeext
34654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34655   (eval $ac_link) 2>conftest.er1
34656   ac_status=$?
34657   grep -v '^ *+' conftest.er1 >conftest.err
34658   rm -f conftest.er1
34659   cat conftest.err >&5
34660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661   (exit $ac_status); } &&
34662          { ac_try='test -z "$ac_c_werror_flag"
34663                          || test ! -s conftest.err'
34664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665   (eval $ac_try) 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; } &&
34669          { ac_try='test -s conftest$ac_exeext'
34670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671   (eval $ac_try) 2>&5
34672   ac_status=$?
34673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674   (exit $ac_status); }; }; then
34675   eval "$as_ac_var=yes"
34676 else
34677   echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34679
34680 eval "$as_ac_var=no"
34681 fi
34682 rm -f conftest.err conftest.$ac_objext \
34683       conftest$ac_exeext conftest.$ac_ext
34684 fi
34685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34687 if test `eval echo '${'$as_ac_var'}'` = yes; then
34688   cat >>confdefs.h <<_ACEOF
34689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34690 _ACEOF
34691
34692 fi
34693 done
34694
34695
34696                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34697 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34698 if test "${ol_cv_func_pthread_detach+set}" = set; then
34699   echo $ECHO_N "(cached) $ECHO_C" >&6
34700 else
34701
34702                                                                 cat >conftest.$ac_ext <<_ACEOF
34703 /* confdefs.h.  */
34704 _ACEOF
34705 cat confdefs.h >>conftest.$ac_ext
34706 cat >>conftest.$ac_ext <<_ACEOF
34707 /* end confdefs.h.  */
34708
34709 #include <pthread.h>
34710 #ifndef NULL
34711 #define NULL (void*)0
34712 #endif
34713
34714 int
34715 main ()
34716 {
34717 pthread_detach(NULL);
34718   ;
34719   return 0;
34720 }
34721 _ACEOF
34722 rm -f conftest.$ac_objext conftest$ac_exeext
34723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34724   (eval $ac_link) 2>conftest.er1
34725   ac_status=$?
34726   grep -v '^ *+' conftest.er1 >conftest.err
34727   rm -f conftest.er1
34728   cat conftest.err >&5
34729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730   (exit $ac_status); } &&
34731          { ac_try='test -z "$ac_c_werror_flag"
34732                          || test ! -s conftest.err'
34733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734   (eval $ac_try) 2>&5
34735   ac_status=$?
34736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737   (exit $ac_status); }; } &&
34738          { ac_try='test -s conftest$ac_exeext'
34739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740   (eval $ac_try) 2>&5
34741   ac_status=$?
34742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743   (exit $ac_status); }; }; then
34744   ol_cv_func_pthread_detach=yes
34745 else
34746   echo "$as_me: failed program was:" >&5
34747 sed 's/^/| /' conftest.$ac_ext >&5
34748
34749 ol_cv_func_pthread_detach=no
34750 fi
34751 rm -f conftest.err conftest.$ac_objext \
34752       conftest$ac_exeext conftest.$ac_ext
34753
34754 fi
34755 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34756 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34757
34758                         if test $ol_cv_func_pthread_detach = no ; then
34759                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34760 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34761    { (exit 1); exit 1; }; }
34762                         fi
34763
34764
34765 cat >>confdefs.h <<\_ACEOF
34766 #define HAVE_PTHREAD_DETACH 1
34767 _ACEOF
34768
34769
34770
34771
34772
34773
34774 for ac_func in \
34775                                 pthread_setconcurrency \
34776                                 pthread_getconcurrency \
34777                                 thr_setconcurrency \
34778                                 thr_getconcurrency \
34779
34780 do
34781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34782 echo "$as_me:$LINENO: checking for $ac_func" >&5
34783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34784 if eval "test \"\${$as_ac_var+set}\" = set"; then
34785   echo $ECHO_N "(cached) $ECHO_C" >&6
34786 else
34787   cat >conftest.$ac_ext <<_ACEOF
34788 /* confdefs.h.  */
34789 _ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h.  */
34793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34795 #define $ac_func innocuous_$ac_func
34796
34797 /* System header to define __stub macros and hopefully few prototypes,
34798     which can conflict with char $ac_func (); below.
34799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34800     <limits.h> exists even on freestanding compilers.  */
34801
34802 #ifdef __STDC__
34803 # include <limits.h>
34804 #else
34805 # include <assert.h>
34806 #endif
34807
34808 #undef $ac_func
34809
34810 /* Override any gcc2 internal prototype to avoid an error.  */
34811 #ifdef __cplusplus
34812 extern "C"
34813 {
34814 #endif
34815 /* We use char because int might match the return type of a gcc2
34816    builtin and then its argument prototype would still apply.  */
34817 char $ac_func ();
34818 /* The GNU C library defines this for functions which it implements
34819     to always fail with ENOSYS.  Some functions are actually named
34820     something starting with __ and the normal name is an alias.  */
34821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34822 choke me
34823 #else
34824 char (*f) () = $ac_func;
34825 #endif
34826 #ifdef __cplusplus
34827 }
34828 #endif
34829
34830 int
34831 main ()
34832 {
34833 return f != $ac_func;
34834   ;
34835   return 0;
34836 }
34837 _ACEOF
34838 rm -f conftest.$ac_objext conftest$ac_exeext
34839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34840   (eval $ac_link) 2>conftest.er1
34841   ac_status=$?
34842   grep -v '^ *+' conftest.er1 >conftest.err
34843   rm -f conftest.er1
34844   cat conftest.err >&5
34845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846   (exit $ac_status); } &&
34847          { ac_try='test -z "$ac_c_werror_flag"
34848                          || test ! -s conftest.err'
34849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850   (eval $ac_try) 2>&5
34851   ac_status=$?
34852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853   (exit $ac_status); }; } &&
34854          { ac_try='test -s conftest$ac_exeext'
34855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856   (eval $ac_try) 2>&5
34857   ac_status=$?
34858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859   (exit $ac_status); }; }; then
34860   eval "$as_ac_var=yes"
34861 else
34862   echo "$as_me: failed program was:" >&5
34863 sed 's/^/| /' conftest.$ac_ext >&5
34864
34865 eval "$as_ac_var=no"
34866 fi
34867 rm -f conftest.err conftest.$ac_objext \
34868       conftest$ac_exeext conftest.$ac_ext
34869 fi
34870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34872 if test `eval echo '${'$as_ac_var'}'` = yes; then
34873   cat >>confdefs.h <<_ACEOF
34874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34875 _ACEOF
34876
34877 fi
34878 done
34879
34880
34881
34882
34883 for ac_func in pthread_kill_other_threads_np
34884 do
34885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34886 echo "$as_me:$LINENO: checking for $ac_func" >&5
34887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34888 if eval "test \"\${$as_ac_var+set}\" = set"; then
34889   echo $ECHO_N "(cached) $ECHO_C" >&6
34890 else
34891   cat >conftest.$ac_ext <<_ACEOF
34892 /* confdefs.h.  */
34893 _ACEOF
34894 cat confdefs.h >>conftest.$ac_ext
34895 cat >>conftest.$ac_ext <<_ACEOF
34896 /* end confdefs.h.  */
34897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34899 #define $ac_func innocuous_$ac_func
34900
34901 /* System header to define __stub macros and hopefully few prototypes,
34902     which can conflict with char $ac_func (); below.
34903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34904     <limits.h> exists even on freestanding compilers.  */
34905
34906 #ifdef __STDC__
34907 # include <limits.h>
34908 #else
34909 # include <assert.h>
34910 #endif
34911
34912 #undef $ac_func
34913
34914 /* Override any gcc2 internal prototype to avoid an error.  */
34915 #ifdef __cplusplus
34916 extern "C"
34917 {
34918 #endif
34919 /* We use char because int might match the return type of a gcc2
34920    builtin and then its argument prototype would still apply.  */
34921 char $ac_func ();
34922 /* The GNU C library defines this for functions which it implements
34923     to always fail with ENOSYS.  Some functions are actually named
34924     something starting with __ and the normal name is an alias.  */
34925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34926 choke me
34927 #else
34928 char (*f) () = $ac_func;
34929 #endif
34930 #ifdef __cplusplus
34931 }
34932 #endif
34933
34934 int
34935 main ()
34936 {
34937 return f != $ac_func;
34938   ;
34939   return 0;
34940 }
34941 _ACEOF
34942 rm -f conftest.$ac_objext conftest$ac_exeext
34943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34944   (eval $ac_link) 2>conftest.er1
34945   ac_status=$?
34946   grep -v '^ *+' conftest.er1 >conftest.err
34947   rm -f conftest.er1
34948   cat conftest.err >&5
34949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950   (exit $ac_status); } &&
34951          { ac_try='test -z "$ac_c_werror_flag"
34952                          || test ! -s conftest.err'
34953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954   (eval $ac_try) 2>&5
34955   ac_status=$?
34956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957   (exit $ac_status); }; } &&
34958          { ac_try='test -s conftest$ac_exeext'
34959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960   (eval $ac_try) 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); }; }; then
34964   eval "$as_ac_var=yes"
34965 else
34966   echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34968
34969 eval "$as_ac_var=no"
34970 fi
34971 rm -f conftest.err conftest.$ac_objext \
34972       conftest$ac_exeext conftest.$ac_ext
34973 fi
34974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34976 if test `eval echo '${'$as_ac_var'}'` = yes; then
34977   cat >>confdefs.h <<_ACEOF
34978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34979 _ACEOF
34980
34981 fi
34982 done
34983
34984         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34985 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34986 if test "${ol_cv_sys_linux_threads+set}" = set; then
34987   echo $ECHO_N "(cached) $ECHO_C" >&6
34988 else
34989   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34990 fi
34991 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34992 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34993
34994
34995
34996
34997         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34998 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34999 if test "${ol_cv_linux_threads+set}" = set; then
35000   echo $ECHO_N "(cached) $ECHO_C" >&6
35001 else
35002
35003                 if test $ol_cv_header_linux_threads = yes -a \
35004                         $ol_cv_sys_linux_threads = yes; then
35005                         ol_cv_linux_threads=yes
35006                 elif test $ol_cv_header_linux_threads = no -a \
35007                         $ol_cv_sys_linux_threads = no; then
35008                         ol_cv_linux_threads=no
35009                 else
35010                         ol_cv_linux_threads=error
35011                 fi
35012
35013 fi
35014 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
35015 echo "${ECHO_T}$ol_cv_linux_threads" >&6
35016
35017
35018                         if test $ol_cv_linux_threads = error; then
35019                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
35020 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
35021    { (exit 1); exit 1; }; };
35022                         fi
35023
35024                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
35025 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
35026 if test "${ol_cv_pthread_create_works+set}" = set; then
35027   echo $ECHO_N "(cached) $ECHO_C" >&6
35028 else
35029
35030                         if test "$cross_compiling" = yes; then
35031                                 ol_cv_pthread_create_works=yes
35032 else
35033   cat >conftest.$ac_ext <<_ACEOF
35034 /* confdefs.h.  */
35035 _ACEOF
35036 cat confdefs.h >>conftest.$ac_ext
35037 cat >>conftest.$ac_ext <<_ACEOF
35038 /* end confdefs.h.  */
35039
35040 /* pthread test headers */
35041 #include <pthread.h>
35042 #if HAVE_PTHREADS < 7
35043 #include <errno.h>
35044 #endif
35045 #ifndef NULL
35046 #define NULL (void*)0
35047 #endif
35048
35049 static void *task(p)
35050         void *p;
35051 {
35052         return (void *) (p == NULL);
35053 }
35054
35055
35056 int main(argc, argv)
35057         int argc;
35058         char **argv;
35059 {
35060
35061         /* pthread test function */
35062 #ifndef PTHREAD_CREATE_DETACHED
35063 #define PTHREAD_CREATE_DETACHED 1
35064 #endif
35065         pthread_t t;
35066         int status;
35067         int detach = PTHREAD_CREATE_DETACHED;
35068
35069 #if HAVE_PTHREADS > 4
35070         /* Final pthreads */
35071         pthread_attr_t attr;
35072
35073         status = pthread_attr_init(&attr);
35074         if( status ) return status;
35075
35076 #if HAVE_PTHREADS < 7
35077         status = pthread_attr_setdetachstate(&attr, &detach);
35078         if( status < 0 ) status = errno;
35079 #else
35080         status = pthread_attr_setdetachstate(&attr, detach);
35081 #endif
35082         if( status ) return status;
35083         status = pthread_create( &t, &attr, task, NULL );
35084 #if HAVE_PTHREADS < 7
35085         if( status < 0 ) status = errno;
35086 #endif
35087         if( status ) return status;
35088 #else
35089         /* Draft 4 pthreads */
35090         status = pthread_create( &t, pthread_attr_default, task, NULL );
35091         if( status ) return errno;
35092
35093         /* give thread a chance to complete */
35094         /* it should remain joinable and hence detachable */
35095         sleep( 1 );
35096
35097         status = pthread_detach( &t );
35098         if( status ) return errno;
35099 #endif
35100
35101 #ifdef HAVE_LINUX_THREADS
35102         pthread_kill_other_threads_np();
35103 #endif
35104
35105         return 0;
35106
35107 }
35108
35109 _ACEOF
35110 rm -f conftest$ac_exeext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35112   (eval $ac_link) 2>&5
35113   ac_status=$?
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35117   (eval $ac_try) 2>&5
35118   ac_status=$?
35119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120   (exit $ac_status); }; }; then
35121   ol_cv_pthread_create_works=yes
35122 else
35123   echo "$as_me: program exited with status $ac_status" >&5
35124 echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35126
35127 ( exit $ac_status )
35128 ol_cv_pthread_create_works=no
35129 fi
35130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35131 fi
35132 fi
35133 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35134 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35135
35136                         if test $ol_cv_pthread_create_works = no ; then
35137                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35138 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35139    { (exit 1); exit 1; }; }
35140                         fi
35141
35142                                                 if test $ol_with_yielding_select = auto ; then
35143                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35144 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35145 if test "${ol_cv_pthread_select_yields+set}" = set; then
35146   echo $ECHO_N "(cached) $ECHO_C" >&6
35147 else
35148
35149                                 if test "$cross_compiling" = yes; then
35150   ol_cv_pthread_select_yields=cross
35151 else
35152   cat >conftest.$ac_ext <<_ACEOF
35153 /* confdefs.h.  */
35154 _ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h.  */
35158
35159 #include <sys/types.h>
35160 #include <sys/time.h>
35161 #include <unistd.h>
35162 #include <pthread.h>
35163 #ifndef NULL
35164 #define NULL (void*) 0
35165 #endif
35166
35167 static int fildes[2];
35168
35169 static void *task(p)
35170         void *p;
35171 {
35172         int i;
35173         struct timeval tv;
35174
35175         fd_set rfds;
35176
35177         tv.tv_sec=10;
35178         tv.tv_usec=0;
35179
35180         FD_ZERO(&rfds);
35181         FD_SET(fildes[0], &rfds);
35182
35183         /* we're not interested in any fds */
35184         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35185
35186         if(i < 0) {
35187                 perror("select");
35188                 exit(10);
35189         }
35190
35191         exit(0); /* if we exit here, the select blocked the whole process */
35192 }
35193
35194 int main(argc, argv)
35195         int argc;
35196         char **argv;
35197 {
35198         pthread_t t;
35199
35200         /* create a pipe to select */
35201         if(pipe(&fildes[0])) {
35202                 perror("select");
35203                 exit(1);
35204         }
35205
35206 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35207         (void) pthread_setconcurrency(2);
35208 #else
35209 #ifdef HAVE_THR_SETCONCURRENCY
35210         /* Set Solaris LWP concurrency to 2 */
35211         thr_setconcurrency(2);
35212 #endif
35213 #endif
35214
35215 #if HAVE_PTHREADS < 6
35216         pthread_create(&t, pthread_attr_default, task, NULL);
35217 #else
35218         pthread_create(&t, NULL, task, NULL);
35219 #endif
35220
35221         /* make sure task runs first */
35222 #if HAVE_THR_YIELD
35223         thr_yield();
35224 #elif defined( HAVE_SCHED_YIELD )
35225         sched_yield();
35226 #elif defined( HAVE_PTHREAD_YIELD )
35227         pthread_yield();
35228 #endif
35229
35230         exit(2);
35231 }
35232 _ACEOF
35233 rm -f conftest$ac_exeext
35234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35235   (eval $ac_link) 2>&5
35236   ac_status=$?
35237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240   (eval $ac_try) 2>&5
35241   ac_status=$?
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); }; }; then
35244   ol_cv_pthread_select_yields=no
35245 else
35246   echo "$as_me: program exited with status $ac_status" >&5
35247 echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35249
35250 ( exit $ac_status )
35251 ol_cv_pthread_select_yields=yes
35252 fi
35253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35254 fi
35255 fi
35256 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35257 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35258
35259                                 if test $ol_cv_pthread_select_yields = cross ; then
35260                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35261 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35262    { (exit 1); exit 1; }; }
35263                                 fi
35264
35265                                 if test $ol_cv_pthread_select_yields = yes ; then
35266                                         ol_with_yielding_select=yes
35267                                 fi
35268                         fi
35269
35270                                                 CPPFLAGS="$save_CPPFLAGS"
35271                         LIBS="$save_LIBS"
35272                 else
35273                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35274 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35275    { (exit 1); exit 1; }; }
35276                 fi
35277         fi
35278
35279         if test $ol_with_threads = posix ; then
35280                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35281 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35282    { (exit 1); exit 1; }; }
35283         fi
35284 fi
35285
35286 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35287         -o $ol_with_threads = mach ; then
35288
35289
35290
35291 for ac_header in mach/cthreads.h cthreads.h
35292 do
35293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35295   echo "$as_me:$LINENO: checking for $ac_header" >&5
35296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35298   echo $ECHO_N "(cached) $ECHO_C" >&6
35299 fi
35300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35302 else
35303   # Is the header compilable?
35304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35306 cat >conftest.$ac_ext <<_ACEOF
35307 /* confdefs.h.  */
35308 _ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h.  */
35312 $ac_includes_default
35313 #include <$ac_header>
35314 _ACEOF
35315 rm -f conftest.$ac_objext
35316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35317   (eval $ac_compile) 2>conftest.er1
35318   ac_status=$?
35319   grep -v '^ *+' conftest.er1 >conftest.err
35320   rm -f conftest.er1
35321   cat conftest.err >&5
35322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323   (exit $ac_status); } &&
35324          { ac_try='test -z "$ac_c_werror_flag"
35325                          || test ! -s conftest.err'
35326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327   (eval $ac_try) 2>&5
35328   ac_status=$?
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); }; } &&
35331          { ac_try='test -s conftest.$ac_objext'
35332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333   (eval $ac_try) 2>&5
35334   ac_status=$?
35335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336   (exit $ac_status); }; }; then
35337   ac_header_compiler=yes
35338 else
35339   echo "$as_me: failed program was:" >&5
35340 sed 's/^/| /' conftest.$ac_ext >&5
35341
35342 ac_header_compiler=no
35343 fi
35344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35346 echo "${ECHO_T}$ac_header_compiler" >&6
35347
35348 # Is the header present?
35349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35351 cat >conftest.$ac_ext <<_ACEOF
35352 /* confdefs.h.  */
35353 _ACEOF
35354 cat confdefs.h >>conftest.$ac_ext
35355 cat >>conftest.$ac_ext <<_ACEOF
35356 /* end confdefs.h.  */
35357 #include <$ac_header>
35358 _ACEOF
35359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35361   ac_status=$?
35362   grep -v '^ *+' conftest.er1 >conftest.err
35363   rm -f conftest.er1
35364   cat conftest.err >&5
35365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366   (exit $ac_status); } >/dev/null; then
35367   if test -s conftest.err; then
35368     ac_cpp_err=$ac_c_preproc_warn_flag
35369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35370   else
35371     ac_cpp_err=
35372   fi
35373 else
35374   ac_cpp_err=yes
35375 fi
35376 if test -z "$ac_cpp_err"; then
35377   ac_header_preproc=yes
35378 else
35379   echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35381
35382   ac_header_preproc=no
35383 fi
35384 rm -f conftest.err conftest.$ac_ext
35385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35386 echo "${ECHO_T}$ac_header_preproc" >&6
35387
35388 # So?  What about this header?
35389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35390   yes:no: )
35391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35395     ac_header_preproc=yes
35396     ;;
35397   no:yes:* )
35398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35410     (
35411       cat <<\_ASBOX
35412 ## ------------------------------------------ ##
35413 ## Report this to the AC_PACKAGE_NAME lists.  ##
35414 ## ------------------------------------------ ##
35415 _ASBOX
35416     ) |
35417       sed "s/^/$as_me: WARNING:     /" >&2
35418     ;;
35419 esac
35420 echo "$as_me:$LINENO: checking for $ac_header" >&5
35421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35423   echo $ECHO_N "(cached) $ECHO_C" >&6
35424 else
35425   eval "$as_ac_Header=\$ac_header_preproc"
35426 fi
35427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35429
35430 fi
35431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35432   cat >>confdefs.h <<_ACEOF
35433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35434 _ACEOF
35435
35436 fi
35437
35438 done
35439
35440         if test $ac_cv_header_mach_cthreads_h = yes ; then
35441                 ol_with_threads=found
35442
35443                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35444 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35445 if test "${ac_cv_func_cthread_fork+set}" = set; then
35446   echo $ECHO_N "(cached) $ECHO_C" >&6
35447 else
35448   cat >conftest.$ac_ext <<_ACEOF
35449 /* confdefs.h.  */
35450 _ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h.  */
35454 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35456 #define cthread_fork innocuous_cthread_fork
35457
35458 /* System header to define __stub macros and hopefully few prototypes,
35459     which can conflict with char cthread_fork (); below.
35460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35461     <limits.h> exists even on freestanding compilers.  */
35462
35463 #ifdef __STDC__
35464 # include <limits.h>
35465 #else
35466 # include <assert.h>
35467 #endif
35468
35469 #undef cthread_fork
35470
35471 /* Override any gcc2 internal prototype to avoid an error.  */
35472 #ifdef __cplusplus
35473 extern "C"
35474 {
35475 #endif
35476 /* We use char because int might match the return type of a gcc2
35477    builtin and then its argument prototype would still apply.  */
35478 char cthread_fork ();
35479 /* The GNU C library defines this for functions which it implements
35480     to always fail with ENOSYS.  Some functions are actually named
35481     something starting with __ and the normal name is an alias.  */
35482 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35483 choke me
35484 #else
35485 char (*f) () = cthread_fork;
35486 #endif
35487 #ifdef __cplusplus
35488 }
35489 #endif
35490
35491 int
35492 main ()
35493 {
35494 return f != cthread_fork;
35495   ;
35496   return 0;
35497 }
35498 _ACEOF
35499 rm -f conftest.$ac_objext conftest$ac_exeext
35500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35501   (eval $ac_link) 2>conftest.er1
35502   ac_status=$?
35503   grep -v '^ *+' conftest.er1 >conftest.err
35504   rm -f conftest.er1
35505   cat conftest.err >&5
35506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507   (exit $ac_status); } &&
35508          { ac_try='test -z "$ac_c_werror_flag"
35509                          || test ! -s conftest.err'
35510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511   (eval $ac_try) 2>&5
35512   ac_status=$?
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); }; } &&
35515          { ac_try='test -s conftest$ac_exeext'
35516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517   (eval $ac_try) 2>&5
35518   ac_status=$?
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); }; }; then
35521   ac_cv_func_cthread_fork=yes
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526 ac_cv_func_cthread_fork=no
35527 fi
35528 rm -f conftest.err conftest.$ac_objext \
35529       conftest$ac_exeext conftest.$ac_ext
35530 fi
35531 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35532 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35533 if test $ac_cv_func_cthread_fork = yes; then
35534   ol_link_threads=yes
35535 fi
35536
35537
35538                 if test $ol_link_threads = no ; then
35539                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35540 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35541 if test "${ol_cv_cthread_all_load+set}" = set; then
35542   echo $ECHO_N "(cached) $ECHO_C" >&6
35543 else
35544
35545                                                                 save_LIBS="$LIBS"
35546                                 LIBS="-all_load $LIBS"
35547                                 cat >conftest.$ac_ext <<_ACEOF
35548 /* confdefs.h.  */
35549 _ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h.  */
35553 #include <mach/cthreads.h>
35554 int
35555 main ()
35556 {
35557
35558                                         cthread_fork((void *)0, (void *)0);
35559
35560   ;
35561   return 0;
35562 }
35563 _ACEOF
35564 rm -f conftest.$ac_objext conftest$ac_exeext
35565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35566   (eval $ac_link) 2>conftest.er1
35567   ac_status=$?
35568   grep -v '^ *+' conftest.er1 >conftest.err
35569   rm -f conftest.er1
35570   cat conftest.err >&5
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); } &&
35573          { ac_try='test -z "$ac_c_werror_flag"
35574                          || test ! -s conftest.err'
35575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35576   (eval $ac_try) 2>&5
35577   ac_status=$?
35578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579   (exit $ac_status); }; } &&
35580          { ac_try='test -s conftest$ac_exeext'
35581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582   (eval $ac_try) 2>&5
35583   ac_status=$?
35584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585   (exit $ac_status); }; }; then
35586   ol_cv_cthread_all_load=yes
35587 else
35588   echo "$as_me: failed program was:" >&5
35589 sed 's/^/| /' conftest.$ac_ext >&5
35590
35591 ol_cv_cthread_all_load=no
35592 fi
35593 rm -f conftest.err conftest.$ac_objext \
35594       conftest$ac_exeext conftest.$ac_ext
35595                                                                 LIBS="$save_LIBS"
35596
35597 fi
35598 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35599 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35600
35601                         if test $ol_cv_cthread_all_load = yes ; then
35602                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35603                                 ol_link_threads=mach
35604                                 ol_with_threads=found
35605                         fi
35606                 fi
35607
35608         elif test $ac_cv_header_cthreads_h = yes ; then
35609
35610                 ol_with_threads=found
35611
35612                                 save_LIBS="$LIBS"
35613                 LIBS="$LIBS -lthreads"
35614                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35615 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35616 if test "${ac_cv_func_cthread_fork+set}" = set; then
35617   echo $ECHO_N "(cached) $ECHO_C" >&6
35618 else
35619   cat >conftest.$ac_ext <<_ACEOF
35620 /* confdefs.h.  */
35621 _ACEOF
35622 cat confdefs.h >>conftest.$ac_ext
35623 cat >>conftest.$ac_ext <<_ACEOF
35624 /* end confdefs.h.  */
35625 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35627 #define cthread_fork innocuous_cthread_fork
35628
35629 /* System header to define __stub macros and hopefully few prototypes,
35630     which can conflict with char cthread_fork (); below.
35631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35632     <limits.h> exists even on freestanding compilers.  */
35633
35634 #ifdef __STDC__
35635 # include <limits.h>
35636 #else
35637 # include <assert.h>
35638 #endif
35639
35640 #undef cthread_fork
35641
35642 /* Override any gcc2 internal prototype to avoid an error.  */
35643 #ifdef __cplusplus
35644 extern "C"
35645 {
35646 #endif
35647 /* We use char because int might match the return type of a gcc2
35648    builtin and then its argument prototype would still apply.  */
35649 char cthread_fork ();
35650 /* The GNU C library defines this for functions which it implements
35651     to always fail with ENOSYS.  Some functions are actually named
35652     something starting with __ and the normal name is an alias.  */
35653 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35654 choke me
35655 #else
35656 char (*f) () = cthread_fork;
35657 #endif
35658 #ifdef __cplusplus
35659 }
35660 #endif
35661
35662 int
35663 main ()
35664 {
35665 return f != cthread_fork;
35666   ;
35667   return 0;
35668 }
35669 _ACEOF
35670 rm -f conftest.$ac_objext conftest$ac_exeext
35671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35672   (eval $ac_link) 2>conftest.er1
35673   ac_status=$?
35674   grep -v '^ *+' conftest.er1 >conftest.err
35675   rm -f conftest.er1
35676   cat conftest.err >&5
35677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678   (exit $ac_status); } &&
35679          { ac_try='test -z "$ac_c_werror_flag"
35680                          || test ! -s conftest.err'
35681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682   (eval $ac_try) 2>&5
35683   ac_status=$?
35684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685   (exit $ac_status); }; } &&
35686          { ac_try='test -s conftest$ac_exeext'
35687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688   (eval $ac_try) 2>&5
35689   ac_status=$?
35690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691   (exit $ac_status); }; }; then
35692   ac_cv_func_cthread_fork=yes
35693 else
35694   echo "$as_me: failed program was:" >&5
35695 sed 's/^/| /' conftest.$ac_ext >&5
35696
35697 ac_cv_func_cthread_fork=no
35698 fi
35699 rm -f conftest.err conftest.$ac_objext \
35700       conftest$ac_exeext conftest.$ac_ext
35701 fi
35702 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35703 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35704 if test $ac_cv_func_cthread_fork = yes; then
35705   ol_link_threads=yes
35706 fi
35707
35708                 LIBS="$save_LIBS"
35709
35710                 if test $ol_link_threads = yes ; then
35711                         LTHREAD_LIBS="-lthreads"
35712                         ol_link_threads=mach
35713                         ol_with_threads=found
35714                 else
35715                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35716 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35717    { (exit 1); exit 1; }; }
35718                 fi
35719
35720         elif test $ol_with_threads = mach ; then
35721                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35722 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35723    { (exit 1); exit 1; }; }
35724         fi
35725
35726         if test $ol_link_threads = mach ; then
35727
35728 cat >>confdefs.h <<\_ACEOF
35729 #define HAVE_MACH_CTHREADS 1
35730 _ACEOF
35731
35732         elif test $ol_with_threads = found ; then
35733                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35734 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35735    { (exit 1); exit 1; }; }
35736         fi
35737 fi
35738
35739 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35740         -o $ol_with_threads = pth ; then
35741
35742
35743 for ac_header in pth.h
35744 do
35745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35747   echo "$as_me:$LINENO: checking for $ac_header" >&5
35748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35750   echo $ECHO_N "(cached) $ECHO_C" >&6
35751 fi
35752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35754 else
35755   # Is the header compilable?
35756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35758 cat >conftest.$ac_ext <<_ACEOF
35759 /* confdefs.h.  */
35760 _ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h.  */
35764 $ac_includes_default
35765 #include <$ac_header>
35766 _ACEOF
35767 rm -f conftest.$ac_objext
35768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35769   (eval $ac_compile) 2>conftest.er1
35770   ac_status=$?
35771   grep -v '^ *+' conftest.er1 >conftest.err
35772   rm -f conftest.er1
35773   cat conftest.err >&5
35774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775   (exit $ac_status); } &&
35776          { ac_try='test -z "$ac_c_werror_flag"
35777                          || test ! -s conftest.err'
35778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779   (eval $ac_try) 2>&5
35780   ac_status=$?
35781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782   (exit $ac_status); }; } &&
35783          { ac_try='test -s conftest.$ac_objext'
35784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785   (eval $ac_try) 2>&5
35786   ac_status=$?
35787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); }; }; then
35789   ac_header_compiler=yes
35790 else
35791   echo "$as_me: failed program was:" >&5
35792 sed 's/^/| /' conftest.$ac_ext >&5
35793
35794 ac_header_compiler=no
35795 fi
35796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35798 echo "${ECHO_T}$ac_header_compiler" >&6
35799
35800 # Is the header present?
35801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35803 cat >conftest.$ac_ext <<_ACEOF
35804 /* confdefs.h.  */
35805 _ACEOF
35806 cat confdefs.h >>conftest.$ac_ext
35807 cat >>conftest.$ac_ext <<_ACEOF
35808 /* end confdefs.h.  */
35809 #include <$ac_header>
35810 _ACEOF
35811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35813   ac_status=$?
35814   grep -v '^ *+' conftest.er1 >conftest.err
35815   rm -f conftest.er1
35816   cat conftest.err >&5
35817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818   (exit $ac_status); } >/dev/null; then
35819   if test -s conftest.err; then
35820     ac_cpp_err=$ac_c_preproc_warn_flag
35821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35822   else
35823     ac_cpp_err=
35824   fi
35825 else
35826   ac_cpp_err=yes
35827 fi
35828 if test -z "$ac_cpp_err"; then
35829   ac_header_preproc=yes
35830 else
35831   echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35833
35834   ac_header_preproc=no
35835 fi
35836 rm -f conftest.err conftest.$ac_ext
35837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35838 echo "${ECHO_T}$ac_header_preproc" >&6
35839
35840 # So?  What about this header?
35841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35842   yes:no: )
35843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35847     ac_header_preproc=yes
35848     ;;
35849   no:yes:* )
35850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35862     (
35863       cat <<\_ASBOX
35864 ## ------------------------------------------ ##
35865 ## Report this to the AC_PACKAGE_NAME lists.  ##
35866 ## ------------------------------------------ ##
35867 _ASBOX
35868     ) |
35869       sed "s/^/$as_me: WARNING:     /" >&2
35870     ;;
35871 esac
35872 echo "$as_me:$LINENO: checking for $ac_header" >&5
35873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35875   echo $ECHO_N "(cached) $ECHO_C" >&6
35876 else
35877   eval "$as_ac_Header=\$ac_header_preproc"
35878 fi
35879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35881
35882 fi
35883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35884   cat >>confdefs.h <<_ACEOF
35885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35886 _ACEOF
35887
35888 fi
35889
35890 done
35891
35892
35893         if test $ac_cv_header_pth_h = yes ; then
35894                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35895 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35896 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35897   echo $ECHO_N "(cached) $ECHO_C" >&6
35898 else
35899   ac_check_lib_save_LIBS=$LIBS
35900 LIBS="-lpth  $LIBS"
35901 cat >conftest.$ac_ext <<_ACEOF
35902 /* confdefs.h.  */
35903 _ACEOF
35904 cat confdefs.h >>conftest.$ac_ext
35905 cat >>conftest.$ac_ext <<_ACEOF
35906 /* end confdefs.h.  */
35907
35908 /* Override any gcc2 internal prototype to avoid an error.  */
35909 #ifdef __cplusplus
35910 extern "C"
35911 #endif
35912 /* We use char because int might match the return type of a gcc2
35913    builtin and then its argument prototype would still apply.  */
35914 char pth_version ();
35915 int
35916 main ()
35917 {
35918 pth_version ();
35919   ;
35920   return 0;
35921 }
35922 _ACEOF
35923 rm -f conftest.$ac_objext conftest$ac_exeext
35924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35925   (eval $ac_link) 2>conftest.er1
35926   ac_status=$?
35927   grep -v '^ *+' conftest.er1 >conftest.err
35928   rm -f conftest.er1
35929   cat conftest.err >&5
35930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931   (exit $ac_status); } &&
35932          { ac_try='test -z "$ac_c_werror_flag"
35933                          || test ! -s conftest.err'
35934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935   (eval $ac_try) 2>&5
35936   ac_status=$?
35937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938   (exit $ac_status); }; } &&
35939          { ac_try='test -s conftest$ac_exeext'
35940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941   (eval $ac_try) 2>&5
35942   ac_status=$?
35943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944   (exit $ac_status); }; }; then
35945   ac_cv_lib_pth_pth_version=yes
35946 else
35947   echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35949
35950 ac_cv_lib_pth_pth_version=no
35951 fi
35952 rm -f conftest.err conftest.$ac_objext \
35953       conftest$ac_exeext conftest.$ac_ext
35954 LIBS=$ac_check_lib_save_LIBS
35955 fi
35956 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35957 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35958 if test $ac_cv_lib_pth_pth_version = yes; then
35959   have_pth=yes
35960 else
35961   have_pth=no
35962 fi
35963
35964
35965                 if test $have_pth = yes ; then
35966
35967 cat >>confdefs.h <<\_ACEOF
35968 #define HAVE_GNU_PTH 1
35969 _ACEOF
35970
35971                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35972                         ol_link_threads=pth
35973                         ol_with_threads=found
35974
35975                         if test $ol_with_yielding_select = auto ; then
35976                                 ol_with_yielding_select=yes
35977                         fi
35978                 fi
35979         fi
35980 fi
35981
35982 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35983         -o $ol_with_threads = lwp ; then
35984
35985
35986
35987 for ac_header in thread.h synch.h
35988 do
35989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35991   echo "$as_me:$LINENO: checking for $ac_header" >&5
35992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994   echo $ECHO_N "(cached) $ECHO_C" >&6
35995 fi
35996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35998 else
35999   # Is the header compilable?
36000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36002 cat >conftest.$ac_ext <<_ACEOF
36003 /* confdefs.h.  */
36004 _ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h.  */
36008 $ac_includes_default
36009 #include <$ac_header>
36010 _ACEOF
36011 rm -f conftest.$ac_objext
36012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36013   (eval $ac_compile) 2>conftest.er1
36014   ac_status=$?
36015   grep -v '^ *+' conftest.er1 >conftest.err
36016   rm -f conftest.er1
36017   cat conftest.err >&5
36018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019   (exit $ac_status); } &&
36020          { ac_try='test -z "$ac_c_werror_flag"
36021                          || test ! -s conftest.err'
36022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023   (eval $ac_try) 2>&5
36024   ac_status=$?
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); }; } &&
36027          { ac_try='test -s conftest.$ac_objext'
36028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029   (eval $ac_try) 2>&5
36030   ac_status=$?
36031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032   (exit $ac_status); }; }; then
36033   ac_header_compiler=yes
36034 else
36035   echo "$as_me: failed program was:" >&5
36036 sed 's/^/| /' conftest.$ac_ext >&5
36037
36038 ac_header_compiler=no
36039 fi
36040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36042 echo "${ECHO_T}$ac_header_compiler" >&6
36043
36044 # Is the header present?
36045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36047 cat >conftest.$ac_ext <<_ACEOF
36048 /* confdefs.h.  */
36049 _ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h.  */
36053 #include <$ac_header>
36054 _ACEOF
36055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36057   ac_status=$?
36058   grep -v '^ *+' conftest.er1 >conftest.err
36059   rm -f conftest.er1
36060   cat conftest.err >&5
36061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062   (exit $ac_status); } >/dev/null; then
36063   if test -s conftest.err; then
36064     ac_cpp_err=$ac_c_preproc_warn_flag
36065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36066   else
36067     ac_cpp_err=
36068   fi
36069 else
36070   ac_cpp_err=yes
36071 fi
36072 if test -z "$ac_cpp_err"; then
36073   ac_header_preproc=yes
36074 else
36075   echo "$as_me: failed program was:" >&5
36076 sed 's/^/| /' conftest.$ac_ext >&5
36077
36078   ac_header_preproc=no
36079 fi
36080 rm -f conftest.err conftest.$ac_ext
36081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36082 echo "${ECHO_T}$ac_header_preproc" >&6
36083
36084 # So?  What about this header?
36085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36086   yes:no: )
36087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36091     ac_header_preproc=yes
36092     ;;
36093   no:yes:* )
36094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36106     (
36107       cat <<\_ASBOX
36108 ## ------------------------------------------ ##
36109 ## Report this to the AC_PACKAGE_NAME lists.  ##
36110 ## ------------------------------------------ ##
36111 _ASBOX
36112     ) |
36113       sed "s/^/$as_me: WARNING:     /" >&2
36114     ;;
36115 esac
36116 echo "$as_me:$LINENO: checking for $ac_header" >&5
36117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36119   echo $ECHO_N "(cached) $ECHO_C" >&6
36120 else
36121   eval "$as_ac_Header=\$ac_header_preproc"
36122 fi
36123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36125
36126 fi
36127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36128   cat >>confdefs.h <<_ACEOF
36129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36130 _ACEOF
36131
36132 fi
36133
36134 done
36135
36136         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36137                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36138 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36139 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36140   echo $ECHO_N "(cached) $ECHO_C" >&6
36141 else
36142   ac_check_lib_save_LIBS=$LIBS
36143 LIBS="-lthread  $LIBS"
36144 cat >conftest.$ac_ext <<_ACEOF
36145 /* confdefs.h.  */
36146 _ACEOF
36147 cat confdefs.h >>conftest.$ac_ext
36148 cat >>conftest.$ac_ext <<_ACEOF
36149 /* end confdefs.h.  */
36150
36151 /* Override any gcc2 internal prototype to avoid an error.  */
36152 #ifdef __cplusplus
36153 extern "C"
36154 #endif
36155 /* We use char because int might match the return type of a gcc2
36156    builtin and then its argument prototype would still apply.  */
36157 char thr_create ();
36158 int
36159 main ()
36160 {
36161 thr_create ();
36162   ;
36163   return 0;
36164 }
36165 _ACEOF
36166 rm -f conftest.$ac_objext conftest$ac_exeext
36167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36168   (eval $ac_link) 2>conftest.er1
36169   ac_status=$?
36170   grep -v '^ *+' conftest.er1 >conftest.err
36171   rm -f conftest.er1
36172   cat conftest.err >&5
36173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174   (exit $ac_status); } &&
36175          { ac_try='test -z "$ac_c_werror_flag"
36176                          || test ! -s conftest.err'
36177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36178   (eval $ac_try) 2>&5
36179   ac_status=$?
36180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181   (exit $ac_status); }; } &&
36182          { ac_try='test -s conftest$ac_exeext'
36183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184   (eval $ac_try) 2>&5
36185   ac_status=$?
36186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187   (exit $ac_status); }; }; then
36188   ac_cv_lib_thread_thr_create=yes
36189 else
36190   echo "$as_me: failed program was:" >&5
36191 sed 's/^/| /' conftest.$ac_ext >&5
36192
36193 ac_cv_lib_thread_thr_create=no
36194 fi
36195 rm -f conftest.err conftest.$ac_objext \
36196       conftest$ac_exeext conftest.$ac_ext
36197 LIBS=$ac_check_lib_save_LIBS
36198 fi
36199 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36200 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36201 if test $ac_cv_lib_thread_thr_create = yes; then
36202   have_thr=yes
36203 else
36204   have_thr=no
36205 fi
36206
36207
36208                 if test $have_thr = yes ; then
36209
36210 cat >>confdefs.h <<\_ACEOF
36211 #define HAVE_THR 1
36212 _ACEOF
36213
36214                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36215                         ol_link_threads=thr
36216
36217                         if test $ol_with_yielding_select = auto ; then
36218                                 ol_with_yielding_select=yes
36219                         fi
36220
36221
36222
36223 for ac_func in \
36224                                 thr_setconcurrency \
36225                                 thr_getconcurrency \
36226
36227 do
36228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36229 echo "$as_me:$LINENO: checking for $ac_func" >&5
36230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36231 if eval "test \"\${$as_ac_var+set}\" = set"; then
36232   echo $ECHO_N "(cached) $ECHO_C" >&6
36233 else
36234   cat >conftest.$ac_ext <<_ACEOF
36235 /* confdefs.h.  */
36236 _ACEOF
36237 cat confdefs.h >>conftest.$ac_ext
36238 cat >>conftest.$ac_ext <<_ACEOF
36239 /* end confdefs.h.  */
36240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36242 #define $ac_func innocuous_$ac_func
36243
36244 /* System header to define __stub macros and hopefully few prototypes,
36245     which can conflict with char $ac_func (); below.
36246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36247     <limits.h> exists even on freestanding compilers.  */
36248
36249 #ifdef __STDC__
36250 # include <limits.h>
36251 #else
36252 # include <assert.h>
36253 #endif
36254
36255 #undef $ac_func
36256
36257 /* Override any gcc2 internal prototype to avoid an error.  */
36258 #ifdef __cplusplus
36259 extern "C"
36260 {
36261 #endif
36262 /* We use char because int might match the return type of a gcc2
36263    builtin and then its argument prototype would still apply.  */
36264 char $ac_func ();
36265 /* The GNU C library defines this for functions which it implements
36266     to always fail with ENOSYS.  Some functions are actually named
36267     something starting with __ and the normal name is an alias.  */
36268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36269 choke me
36270 #else
36271 char (*f) () = $ac_func;
36272 #endif
36273 #ifdef __cplusplus
36274 }
36275 #endif
36276
36277 int
36278 main ()
36279 {
36280 return f != $ac_func;
36281   ;
36282   return 0;
36283 }
36284 _ACEOF
36285 rm -f conftest.$ac_objext conftest$ac_exeext
36286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36287   (eval $ac_link) 2>conftest.er1
36288   ac_status=$?
36289   grep -v '^ *+' conftest.er1 >conftest.err
36290   rm -f conftest.er1
36291   cat conftest.err >&5
36292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293   (exit $ac_status); } &&
36294          { ac_try='test -z "$ac_c_werror_flag"
36295                          || test ! -s conftest.err'
36296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297   (eval $ac_try) 2>&5
36298   ac_status=$?
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); }; } &&
36301          { ac_try='test -s conftest$ac_exeext'
36302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303   (eval $ac_try) 2>&5
36304   ac_status=$?
36305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306   (exit $ac_status); }; }; then
36307   eval "$as_ac_var=yes"
36308 else
36309   echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.$ac_ext >&5
36311
36312 eval "$as_ac_var=no"
36313 fi
36314 rm -f conftest.err conftest.$ac_objext \
36315       conftest$ac_exeext conftest.$ac_ext
36316 fi
36317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36319 if test `eval echo '${'$as_ac_var'}'` = yes; then
36320   cat >>confdefs.h <<_ACEOF
36321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36322 _ACEOF
36323
36324 fi
36325 done
36326
36327                 fi
36328         fi
36329
36330
36331 for ac_header in lwp/lwp.h
36332 do
36333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36335   echo "$as_me:$LINENO: checking for $ac_header" >&5
36336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36338   echo $ECHO_N "(cached) $ECHO_C" >&6
36339 fi
36340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36342 else
36343   # Is the header compilable?
36344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36346 cat >conftest.$ac_ext <<_ACEOF
36347 /* confdefs.h.  */
36348 _ACEOF
36349 cat confdefs.h >>conftest.$ac_ext
36350 cat >>conftest.$ac_ext <<_ACEOF
36351 /* end confdefs.h.  */
36352 $ac_includes_default
36353 #include <$ac_header>
36354 _ACEOF
36355 rm -f conftest.$ac_objext
36356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36357   (eval $ac_compile) 2>conftest.er1
36358   ac_status=$?
36359   grep -v '^ *+' conftest.er1 >conftest.err
36360   rm -f conftest.er1
36361   cat conftest.err >&5
36362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); } &&
36364          { ac_try='test -z "$ac_c_werror_flag"
36365                          || test ! -s conftest.err'
36366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367   (eval $ac_try) 2>&5
36368   ac_status=$?
36369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370   (exit $ac_status); }; } &&
36371          { ac_try='test -s conftest.$ac_objext'
36372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373   (eval $ac_try) 2>&5
36374   ac_status=$?
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); }; }; then
36377   ac_header_compiler=yes
36378 else
36379   echo "$as_me: failed program was:" >&5
36380 sed 's/^/| /' conftest.$ac_ext >&5
36381
36382 ac_header_compiler=no
36383 fi
36384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36386 echo "${ECHO_T}$ac_header_compiler" >&6
36387
36388 # Is the header present?
36389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36391 cat >conftest.$ac_ext <<_ACEOF
36392 /* confdefs.h.  */
36393 _ACEOF
36394 cat confdefs.h >>conftest.$ac_ext
36395 cat >>conftest.$ac_ext <<_ACEOF
36396 /* end confdefs.h.  */
36397 #include <$ac_header>
36398 _ACEOF
36399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36401   ac_status=$?
36402   grep -v '^ *+' conftest.er1 >conftest.err
36403   rm -f conftest.er1
36404   cat conftest.err >&5
36405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406   (exit $ac_status); } >/dev/null; then
36407   if test -s conftest.err; then
36408     ac_cpp_err=$ac_c_preproc_warn_flag
36409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36410   else
36411     ac_cpp_err=
36412   fi
36413 else
36414   ac_cpp_err=yes
36415 fi
36416 if test -z "$ac_cpp_err"; then
36417   ac_header_preproc=yes
36418 else
36419   echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36421
36422   ac_header_preproc=no
36423 fi
36424 rm -f conftest.err conftest.$ac_ext
36425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36426 echo "${ECHO_T}$ac_header_preproc" >&6
36427
36428 # So?  What about this header?
36429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36430   yes:no: )
36431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36435     ac_header_preproc=yes
36436     ;;
36437   no:yes:* )
36438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36450     (
36451       cat <<\_ASBOX
36452 ## ------------------------------------------ ##
36453 ## Report this to the AC_PACKAGE_NAME lists.  ##
36454 ## ------------------------------------------ ##
36455 _ASBOX
36456     ) |
36457       sed "s/^/$as_me: WARNING:     /" >&2
36458     ;;
36459 esac
36460 echo "$as_me:$LINENO: checking for $ac_header" >&5
36461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36463   echo $ECHO_N "(cached) $ECHO_C" >&6
36464 else
36465   eval "$as_ac_Header=\$ac_header_preproc"
36466 fi
36467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36469
36470 fi
36471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36472   cat >>confdefs.h <<_ACEOF
36473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36474 _ACEOF
36475
36476 fi
36477
36478 done
36479
36480         if test $ac_cv_header_lwp_lwp_h = yes ; then
36481                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36482 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36483 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36484   echo $ECHO_N "(cached) $ECHO_C" >&6
36485 else
36486   ac_check_lib_save_LIBS=$LIBS
36487 LIBS="-llwp  $LIBS"
36488 cat >conftest.$ac_ext <<_ACEOF
36489 /* confdefs.h.  */
36490 _ACEOF
36491 cat confdefs.h >>conftest.$ac_ext
36492 cat >>conftest.$ac_ext <<_ACEOF
36493 /* end confdefs.h.  */
36494
36495 /* Override any gcc2 internal prototype to avoid an error.  */
36496 #ifdef __cplusplus
36497 extern "C"
36498 #endif
36499 /* We use char because int might match the return type of a gcc2
36500    builtin and then its argument prototype would still apply.  */
36501 char lwp_create ();
36502 int
36503 main ()
36504 {
36505 lwp_create ();
36506   ;
36507   return 0;
36508 }
36509 _ACEOF
36510 rm -f conftest.$ac_objext conftest$ac_exeext
36511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36512   (eval $ac_link) 2>conftest.er1
36513   ac_status=$?
36514   grep -v '^ *+' conftest.er1 >conftest.err
36515   rm -f conftest.er1
36516   cat conftest.err >&5
36517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518   (exit $ac_status); } &&
36519          { ac_try='test -z "$ac_c_werror_flag"
36520                          || test ! -s conftest.err'
36521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522   (eval $ac_try) 2>&5
36523   ac_status=$?
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); }; } &&
36526          { ac_try='test -s conftest$ac_exeext'
36527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36528   (eval $ac_try) 2>&5
36529   ac_status=$?
36530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531   (exit $ac_status); }; }; then
36532   ac_cv_lib_lwp_lwp_create=yes
36533 else
36534   echo "$as_me: failed program was:" >&5
36535 sed 's/^/| /' conftest.$ac_ext >&5
36536
36537 ac_cv_lib_lwp_lwp_create=no
36538 fi
36539 rm -f conftest.err conftest.$ac_objext \
36540       conftest$ac_exeext conftest.$ac_ext
36541 LIBS=$ac_check_lib_save_LIBS
36542 fi
36543 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36544 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36545 if test $ac_cv_lib_lwp_lwp_create = yes; then
36546   have_lwp=yes
36547 else
36548   have_lwp=no
36549 fi
36550
36551
36552                 if test $have_lwp = yes ; then
36553
36554 cat >>confdefs.h <<\_ACEOF
36555 #define HAVE_LWP 1
36556 _ACEOF
36557
36558                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36559                         ol_link_threads=lwp
36560
36561                         if test $ol_with_yielding_select = auto ; then
36562                                 ol_with_yielding_select=no
36563                         fi
36564                 fi
36565         fi
36566 fi
36567
36568 if test $ol_with_yielding_select = yes ; then
36569
36570 cat >>confdefs.h <<\_ACEOF
36571 #define HAVE_YIELDING_SELECT 1
36572 _ACEOF
36573
36574 fi
36575
36576 if test $ol_with_threads = manual ; then
36577                 ol_link_threads=yes
36578
36579         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36580 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36581
36582
36583
36584 for ac_header in pthread.h sched.h
36585 do
36586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36588   echo "$as_me:$LINENO: checking for $ac_header" >&5
36589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36591   echo $ECHO_N "(cached) $ECHO_C" >&6
36592 fi
36593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36595 else
36596   # Is the header compilable?
36597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36599 cat >conftest.$ac_ext <<_ACEOF
36600 /* confdefs.h.  */
36601 _ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h.  */
36605 $ac_includes_default
36606 #include <$ac_header>
36607 _ACEOF
36608 rm -f conftest.$ac_objext
36609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36610   (eval $ac_compile) 2>conftest.er1
36611   ac_status=$?
36612   grep -v '^ *+' conftest.er1 >conftest.err
36613   rm -f conftest.er1
36614   cat conftest.err >&5
36615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616   (exit $ac_status); } &&
36617          { ac_try='test -z "$ac_c_werror_flag"
36618                          || test ! -s conftest.err'
36619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36620   (eval $ac_try) 2>&5
36621   ac_status=$?
36622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); }; } &&
36624          { ac_try='test -s conftest.$ac_objext'
36625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626   (eval $ac_try) 2>&5
36627   ac_status=$?
36628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629   (exit $ac_status); }; }; then
36630   ac_header_compiler=yes
36631 else
36632   echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.$ac_ext >&5
36634
36635 ac_header_compiler=no
36636 fi
36637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36639 echo "${ECHO_T}$ac_header_compiler" >&6
36640
36641 # Is the header present?
36642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36644 cat >conftest.$ac_ext <<_ACEOF
36645 /* confdefs.h.  */
36646 _ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h.  */
36650 #include <$ac_header>
36651 _ACEOF
36652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36654   ac_status=$?
36655   grep -v '^ *+' conftest.er1 >conftest.err
36656   rm -f conftest.er1
36657   cat conftest.err >&5
36658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659   (exit $ac_status); } >/dev/null; then
36660   if test -s conftest.err; then
36661     ac_cpp_err=$ac_c_preproc_warn_flag
36662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36663   else
36664     ac_cpp_err=
36665   fi
36666 else
36667   ac_cpp_err=yes
36668 fi
36669 if test -z "$ac_cpp_err"; then
36670   ac_header_preproc=yes
36671 else
36672   echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36674
36675   ac_header_preproc=no
36676 fi
36677 rm -f conftest.err conftest.$ac_ext
36678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36679 echo "${ECHO_T}$ac_header_preproc" >&6
36680
36681 # So?  What about this header?
36682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36683   yes:no: )
36684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36688     ac_header_preproc=yes
36689     ;;
36690   no:yes:* )
36691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36703     (
36704       cat <<\_ASBOX
36705 ## ------------------------------------------ ##
36706 ## Report this to the AC_PACKAGE_NAME lists.  ##
36707 ## ------------------------------------------ ##
36708 _ASBOX
36709     ) |
36710       sed "s/^/$as_me: WARNING:     /" >&2
36711     ;;
36712 esac
36713 echo "$as_me:$LINENO: checking for $ac_header" >&5
36714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36716   echo $ECHO_N "(cached) $ECHO_C" >&6
36717 else
36718   eval "$as_ac_Header=\$ac_header_preproc"
36719 fi
36720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36722
36723 fi
36724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36725   cat >>confdefs.h <<_ACEOF
36726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36727 _ACEOF
36728
36729 fi
36730
36731 done
36732
36733
36734
36735 for ac_func in sched_yield pthread_yield
36736 do
36737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36738 echo "$as_me:$LINENO: checking for $ac_func" >&5
36739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36740 if eval "test \"\${$as_ac_var+set}\" = set"; then
36741   echo $ECHO_N "(cached) $ECHO_C" >&6
36742 else
36743   cat >conftest.$ac_ext <<_ACEOF
36744 /* confdefs.h.  */
36745 _ACEOF
36746 cat confdefs.h >>conftest.$ac_ext
36747 cat >>conftest.$ac_ext <<_ACEOF
36748 /* end confdefs.h.  */
36749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36751 #define $ac_func innocuous_$ac_func
36752
36753 /* System header to define __stub macros and hopefully few prototypes,
36754     which can conflict with char $ac_func (); below.
36755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36756     <limits.h> exists even on freestanding compilers.  */
36757
36758 #ifdef __STDC__
36759 # include <limits.h>
36760 #else
36761 # include <assert.h>
36762 #endif
36763
36764 #undef $ac_func
36765
36766 /* Override any gcc2 internal prototype to avoid an error.  */
36767 #ifdef __cplusplus
36768 extern "C"
36769 {
36770 #endif
36771 /* We use char because int might match the return type of a gcc2
36772    builtin and then its argument prototype would still apply.  */
36773 char $ac_func ();
36774 /* The GNU C library defines this for functions which it implements
36775     to always fail with ENOSYS.  Some functions are actually named
36776     something starting with __ and the normal name is an alias.  */
36777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36778 choke me
36779 #else
36780 char (*f) () = $ac_func;
36781 #endif
36782 #ifdef __cplusplus
36783 }
36784 #endif
36785
36786 int
36787 main ()
36788 {
36789 return f != $ac_func;
36790   ;
36791   return 0;
36792 }
36793 _ACEOF
36794 rm -f conftest.$ac_objext conftest$ac_exeext
36795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36796   (eval $ac_link) 2>conftest.er1
36797   ac_status=$?
36798   grep -v '^ *+' conftest.er1 >conftest.err
36799   rm -f conftest.er1
36800   cat conftest.err >&5
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); } &&
36803          { ac_try='test -z "$ac_c_werror_flag"
36804                          || test ! -s conftest.err'
36805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36806   (eval $ac_try) 2>&5
36807   ac_status=$?
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); }; } &&
36810          { ac_try='test -s conftest$ac_exeext'
36811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812   (eval $ac_try) 2>&5
36813   ac_status=$?
36814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815   (exit $ac_status); }; }; then
36816   eval "$as_ac_var=yes"
36817 else
36818   echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36820
36821 eval "$as_ac_var=no"
36822 fi
36823 rm -f conftest.err conftest.$ac_objext \
36824       conftest$ac_exeext conftest.$ac_ext
36825 fi
36826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36828 if test `eval echo '${'$as_ac_var'}'` = yes; then
36829   cat >>confdefs.h <<_ACEOF
36830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36831 _ACEOF
36832
36833 fi
36834 done
36835
36836
36837         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36838 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36839 if test "${ol_cv_header_linux_threads+set}" = set; then
36840   echo $ECHO_N "(cached) $ECHO_C" >&6
36841 else
36842   cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848 #include <pthread.h>
36849 _ACEOF
36850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36851   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36852   ol_cv_header_linux_threads=yes
36853 else
36854   ol_cv_header_linux_threads=no
36855 fi
36856 rm -f conftest*
36857
36858
36859 fi
36860 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36861 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36862         if test $ol_cv_header_linux_threads = yes; then
36863
36864 cat >>confdefs.h <<\_ACEOF
36865 #define HAVE_LINUX_THREADS 1
36866 _ACEOF
36867
36868         fi
36869
36870
36871
36872 for ac_header in mach/cthreads.h
36873 do
36874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36876   echo "$as_me:$LINENO: checking for $ac_header" >&5
36877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36879   echo $ECHO_N "(cached) $ECHO_C" >&6
36880 fi
36881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36883 else
36884   # Is the header compilable?
36885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36887 cat >conftest.$ac_ext <<_ACEOF
36888 /* confdefs.h.  */
36889 _ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h.  */
36893 $ac_includes_default
36894 #include <$ac_header>
36895 _ACEOF
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898   (eval $ac_compile) 2>conftest.er1
36899   ac_status=$?
36900   grep -v '^ *+' conftest.er1 >conftest.err
36901   rm -f conftest.er1
36902   cat conftest.err >&5
36903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904   (exit $ac_status); } &&
36905          { ac_try='test -z "$ac_c_werror_flag"
36906                          || test ! -s conftest.err'
36907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36908   (eval $ac_try) 2>&5
36909   ac_status=$?
36910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911   (exit $ac_status); }; } &&
36912          { ac_try='test -s conftest.$ac_objext'
36913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914   (eval $ac_try) 2>&5
36915   ac_status=$?
36916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917   (exit $ac_status); }; }; then
36918   ac_header_compiler=yes
36919 else
36920   echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36922
36923 ac_header_compiler=no
36924 fi
36925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36927 echo "${ECHO_T}$ac_header_compiler" >&6
36928
36929 # Is the header present?
36930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36932 cat >conftest.$ac_ext <<_ACEOF
36933 /* confdefs.h.  */
36934 _ACEOF
36935 cat confdefs.h >>conftest.$ac_ext
36936 cat >>conftest.$ac_ext <<_ACEOF
36937 /* end confdefs.h.  */
36938 #include <$ac_header>
36939 _ACEOF
36940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36942   ac_status=$?
36943   grep -v '^ *+' conftest.er1 >conftest.err
36944   rm -f conftest.er1
36945   cat conftest.err >&5
36946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947   (exit $ac_status); } >/dev/null; then
36948   if test -s conftest.err; then
36949     ac_cpp_err=$ac_c_preproc_warn_flag
36950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36951   else
36952     ac_cpp_err=
36953   fi
36954 else
36955   ac_cpp_err=yes
36956 fi
36957 if test -z "$ac_cpp_err"; then
36958   ac_header_preproc=yes
36959 else
36960   echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36962
36963   ac_header_preproc=no
36964 fi
36965 rm -f conftest.err conftest.$ac_ext
36966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36967 echo "${ECHO_T}$ac_header_preproc" >&6
36968
36969 # So?  What about this header?
36970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36971   yes:no: )
36972     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36976     ac_header_preproc=yes
36977     ;;
36978   no:yes:* )
36979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36981     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36982 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36983     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36985     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36986 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36989     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36991     (
36992       cat <<\_ASBOX
36993 ## ------------------------------------------ ##
36994 ## Report this to the AC_PACKAGE_NAME lists.  ##
36995 ## ------------------------------------------ ##
36996 _ASBOX
36997     ) |
36998       sed "s/^/$as_me: WARNING:     /" >&2
36999     ;;
37000 esac
37001 echo "$as_me:$LINENO: checking for $ac_header" >&5
37002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37004   echo $ECHO_N "(cached) $ECHO_C" >&6
37005 else
37006   eval "$as_ac_Header=\$ac_header_preproc"
37007 fi
37008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37010
37011 fi
37012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37013   cat >>confdefs.h <<_ACEOF
37014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37015 _ACEOF
37016
37017 fi
37018
37019 done
37020
37021
37022 for ac_header in lwp/lwp.h
37023 do
37024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37026   echo "$as_me:$LINENO: checking for $ac_header" >&5
37027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37029   echo $ECHO_N "(cached) $ECHO_C" >&6
37030 fi
37031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37033 else
37034   # Is the header compilable?
37035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37037 cat >conftest.$ac_ext <<_ACEOF
37038 /* confdefs.h.  */
37039 _ACEOF
37040 cat confdefs.h >>conftest.$ac_ext
37041 cat >>conftest.$ac_ext <<_ACEOF
37042 /* end confdefs.h.  */
37043 $ac_includes_default
37044 #include <$ac_header>
37045 _ACEOF
37046 rm -f conftest.$ac_objext
37047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37048   (eval $ac_compile) 2>conftest.er1
37049   ac_status=$?
37050   grep -v '^ *+' conftest.er1 >conftest.err
37051   rm -f conftest.er1
37052   cat conftest.err >&5
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); } &&
37055          { ac_try='test -z "$ac_c_werror_flag"
37056                          || test ! -s conftest.err'
37057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37058   (eval $ac_try) 2>&5
37059   ac_status=$?
37060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061   (exit $ac_status); }; } &&
37062          { ac_try='test -s conftest.$ac_objext'
37063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064   (eval $ac_try) 2>&5
37065   ac_status=$?
37066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067   (exit $ac_status); }; }; then
37068   ac_header_compiler=yes
37069 else
37070   echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37072
37073 ac_header_compiler=no
37074 fi
37075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37077 echo "${ECHO_T}$ac_header_compiler" >&6
37078
37079 # Is the header present?
37080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37082 cat >conftest.$ac_ext <<_ACEOF
37083 /* confdefs.h.  */
37084 _ACEOF
37085 cat confdefs.h >>conftest.$ac_ext
37086 cat >>conftest.$ac_ext <<_ACEOF
37087 /* end confdefs.h.  */
37088 #include <$ac_header>
37089 _ACEOF
37090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37092   ac_status=$?
37093   grep -v '^ *+' conftest.er1 >conftest.err
37094   rm -f conftest.er1
37095   cat conftest.err >&5
37096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097   (exit $ac_status); } >/dev/null; then
37098   if test -s conftest.err; then
37099     ac_cpp_err=$ac_c_preproc_warn_flag
37100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37101   else
37102     ac_cpp_err=
37103   fi
37104 else
37105   ac_cpp_err=yes
37106 fi
37107 if test -z "$ac_cpp_err"; then
37108   ac_header_preproc=yes
37109 else
37110   echo "$as_me: failed program was:" >&5
37111 sed 's/^/| /' conftest.$ac_ext >&5
37112
37113   ac_header_preproc=no
37114 fi
37115 rm -f conftest.err conftest.$ac_ext
37116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37117 echo "${ECHO_T}$ac_header_preproc" >&6
37118
37119 # So?  What about this header?
37120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37121   yes:no: )
37122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37126     ac_header_preproc=yes
37127     ;;
37128   no:yes:* )
37129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37141     (
37142       cat <<\_ASBOX
37143 ## ------------------------------------------ ##
37144 ## Report this to the AC_PACKAGE_NAME lists.  ##
37145 ## ------------------------------------------ ##
37146 _ASBOX
37147     ) |
37148       sed "s/^/$as_me: WARNING:     /" >&2
37149     ;;
37150 esac
37151 echo "$as_me:$LINENO: checking for $ac_header" >&5
37152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37154   echo $ECHO_N "(cached) $ECHO_C" >&6
37155 else
37156   eval "$as_ac_Header=\$ac_header_preproc"
37157 fi
37158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37160
37161 fi
37162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37163   cat >>confdefs.h <<_ACEOF
37164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37165 _ACEOF
37166
37167 fi
37168
37169 done
37170
37171
37172
37173 for ac_header in thread.h synch.h
37174 do
37175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37177   echo "$as_me:$LINENO: checking for $ac_header" >&5
37178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37180   echo $ECHO_N "(cached) $ECHO_C" >&6
37181 fi
37182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37184 else
37185   # Is the header compilable?
37186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37188 cat >conftest.$ac_ext <<_ACEOF
37189 /* confdefs.h.  */
37190 _ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h.  */
37194 $ac_includes_default
37195 #include <$ac_header>
37196 _ACEOF
37197 rm -f conftest.$ac_objext
37198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37199   (eval $ac_compile) 2>conftest.er1
37200   ac_status=$?
37201   grep -v '^ *+' conftest.er1 >conftest.err
37202   rm -f conftest.er1
37203   cat conftest.err >&5
37204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); } &&
37206          { ac_try='test -z "$ac_c_werror_flag"
37207                          || test ! -s conftest.err'
37208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209   (eval $ac_try) 2>&5
37210   ac_status=$?
37211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212   (exit $ac_status); }; } &&
37213          { ac_try='test -s conftest.$ac_objext'
37214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215   (eval $ac_try) 2>&5
37216   ac_status=$?
37217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218   (exit $ac_status); }; }; then
37219   ac_header_compiler=yes
37220 else
37221   echo "$as_me: failed program was:" >&5
37222 sed 's/^/| /' conftest.$ac_ext >&5
37223
37224 ac_header_compiler=no
37225 fi
37226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37228 echo "${ECHO_T}$ac_header_compiler" >&6
37229
37230 # Is the header present?
37231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37233 cat >conftest.$ac_ext <<_ACEOF
37234 /* confdefs.h.  */
37235 _ACEOF
37236 cat confdefs.h >>conftest.$ac_ext
37237 cat >>conftest.$ac_ext <<_ACEOF
37238 /* end confdefs.h.  */
37239 #include <$ac_header>
37240 _ACEOF
37241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37243   ac_status=$?
37244   grep -v '^ *+' conftest.er1 >conftest.err
37245   rm -f conftest.er1
37246   cat conftest.err >&5
37247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248   (exit $ac_status); } >/dev/null; then
37249   if test -s conftest.err; then
37250     ac_cpp_err=$ac_c_preproc_warn_flag
37251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37252   else
37253     ac_cpp_err=
37254   fi
37255 else
37256   ac_cpp_err=yes
37257 fi
37258 if test -z "$ac_cpp_err"; then
37259   ac_header_preproc=yes
37260 else
37261   echo "$as_me: failed program was:" >&5
37262 sed 's/^/| /' conftest.$ac_ext >&5
37263
37264   ac_header_preproc=no
37265 fi
37266 rm -f conftest.err conftest.$ac_ext
37267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37268 echo "${ECHO_T}$ac_header_preproc" >&6
37269
37270 # So?  What about this header?
37271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37272   yes:no: )
37273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37277     ac_header_preproc=yes
37278     ;;
37279   no:yes:* )
37280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37292     (
37293       cat <<\_ASBOX
37294 ## ------------------------------------------ ##
37295 ## Report this to the AC_PACKAGE_NAME lists.  ##
37296 ## ------------------------------------------ ##
37297 _ASBOX
37298     ) |
37299       sed "s/^/$as_me: WARNING:     /" >&2
37300     ;;
37301 esac
37302 echo "$as_me:$LINENO: checking for $ac_header" >&5
37303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37305   echo $ECHO_N "(cached) $ECHO_C" >&6
37306 else
37307   eval "$as_ac_Header=\$ac_header_preproc"
37308 fi
37309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37311
37312 fi
37313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37314   cat >>confdefs.h <<_ACEOF
37315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37316 _ACEOF
37317
37318 fi
37319
37320 done
37321
37322 fi
37323
37324 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37325                         cat >>confdefs.h <<\_ACEOF
37326 #define REENTRANT 1
37327 _ACEOF
37328
37329         cat >>confdefs.h <<\_ACEOF
37330 #define _REENTRANT 1
37331 _ACEOF
37332
37333         cat >>confdefs.h <<\_ACEOF
37334 #define THREAD_SAFE 1
37335 _ACEOF
37336
37337         cat >>confdefs.h <<\_ACEOF
37338 #define _THREAD_SAFE 1
37339 _ACEOF
37340
37341         cat >>confdefs.h <<\_ACEOF
37342 #define THREADSAFE 1
37343 _ACEOF
37344
37345         cat >>confdefs.h <<\_ACEOF
37346 #define _THREADSAFE 1
37347 _ACEOF
37348
37349         cat >>confdefs.h <<\_ACEOF
37350 #define _SGI_MP_SOURCE 1
37351 _ACEOF
37352
37353
37354                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37355 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37356 if test "${ol_cv_errno_thread_specific+set}" = set; then
37357   echo $ECHO_N "(cached) $ECHO_C" >&6
37358 else
37359
37360                 cat >conftest.$ac_ext <<_ACEOF
37361 /* confdefs.h.  */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h.  */
37366 #include <errno.h>
37367 int
37368 main ()
37369 {
37370 errno = 0;
37371   ;
37372   return 0;
37373 }
37374 _ACEOF
37375 rm -f conftest.$ac_objext conftest$ac_exeext
37376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37377   (eval $ac_link) 2>conftest.er1
37378   ac_status=$?
37379   grep -v '^ *+' conftest.er1 >conftest.err
37380   rm -f conftest.er1
37381   cat conftest.err >&5
37382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37383   (exit $ac_status); } &&
37384          { ac_try='test -z "$ac_c_werror_flag"
37385                          || test ! -s conftest.err'
37386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37387   (eval $ac_try) 2>&5
37388   ac_status=$?
37389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390   (exit $ac_status); }; } &&
37391          { ac_try='test -s conftest$ac_exeext'
37392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393   (eval $ac_try) 2>&5
37394   ac_status=$?
37395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396   (exit $ac_status); }; }; then
37397   ol_cv_errno_thread_specific=yes
37398 else
37399   echo "$as_me: failed program was:" >&5
37400 sed 's/^/| /' conftest.$ac_ext >&5
37401
37402 ol_cv_errno_thread_specific=no
37403 fi
37404 rm -f conftest.err conftest.$ac_objext \
37405       conftest$ac_exeext conftest.$ac_ext
37406
37407 fi
37408 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37409 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37410
37411                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37412 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37413 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37414   echo $ECHO_N "(cached) $ECHO_C" >&6
37415 else
37416
37417                 cat >conftest.$ac_ext <<_ACEOF
37418 /* confdefs.h.  */
37419 _ACEOF
37420 cat confdefs.h >>conftest.$ac_ext
37421 cat >>conftest.$ac_ext <<_ACEOF
37422 /* end confdefs.h.  */
37423 #include <netdb.h>
37424 int
37425 main ()
37426 {
37427 h_errno = 0;
37428   ;
37429   return 0;
37430 }
37431 _ACEOF
37432 rm -f conftest.$ac_objext conftest$ac_exeext
37433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37434   (eval $ac_link) 2>conftest.er1
37435   ac_status=$?
37436   grep -v '^ *+' conftest.er1 >conftest.err
37437   rm -f conftest.er1
37438   cat conftest.err >&5
37439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440   (exit $ac_status); } &&
37441          { ac_try='test -z "$ac_c_werror_flag"
37442                          || test ! -s conftest.err'
37443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444   (eval $ac_try) 2>&5
37445   ac_status=$?
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); }; } &&
37448          { ac_try='test -s conftest$ac_exeext'
37449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450   (eval $ac_try) 2>&5
37451   ac_status=$?
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); }; }; then
37454   ol_cv_h_errno_thread_specific=yes
37455 else
37456   echo "$as_me: failed program was:" >&5
37457 sed 's/^/| /' conftest.$ac_ext >&5
37458
37459 ol_cv_h_errno_thread_specific=no
37460 fi
37461 rm -f conftest.err conftest.$ac_objext \
37462       conftest$ac_exeext conftest.$ac_ext
37463
37464 fi
37465 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37466 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37467
37468         if test $ol_cv_errno_thread_specific != yes \
37469                 -o $ol_cv_h_errno_thread_specific != yes ; then
37470                 LIBS="$LTHREAD_LIBS $LIBS"
37471                 LTHREAD_LIBS=""
37472         fi
37473
37474 fi
37475
37476 if test $ol_link_threads = no ; then
37477         if test $ol_with_threads = yes ; then
37478                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37479 echo "$as_me: error: no suitable thread support" >&2;}
37480    { (exit 1); exit 1; }; }
37481         fi
37482
37483         if test $ol_with_threads = auto ; then
37484                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37485 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37486                 ol_with_threads=no
37487         fi
37488
37489
37490 cat >>confdefs.h <<\_ACEOF
37491 #define NO_THREADS 1
37492 _ACEOF
37493
37494         LTHREAD_LIBS=""
37495 fi
37496
37497 if test $ol_link_threads != no ; then
37498
37499 cat >>confdefs.h <<\_ACEOF
37500 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37501 _ACEOF
37502
37503 fi
37504
37505
37506
37507
37508 for ac_func in \
37509         ctime_r                 \
37510         gethostbyname_r gethostbyaddr_r \
37511
37512 do
37513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37514 echo "$as_me:$LINENO: checking for $ac_func" >&5
37515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37516 if eval "test \"\${$as_ac_var+set}\" = set"; then
37517   echo $ECHO_N "(cached) $ECHO_C" >&6
37518 else
37519   cat >conftest.$ac_ext <<_ACEOF
37520 /* confdefs.h.  */
37521 _ACEOF
37522 cat confdefs.h >>conftest.$ac_ext
37523 cat >>conftest.$ac_ext <<_ACEOF
37524 /* end confdefs.h.  */
37525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37527 #define $ac_func innocuous_$ac_func
37528
37529 /* System header to define __stub macros and hopefully few prototypes,
37530     which can conflict with char $ac_func (); below.
37531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37532     <limits.h> exists even on freestanding compilers.  */
37533
37534 #ifdef __STDC__
37535 # include <limits.h>
37536 #else
37537 # include <assert.h>
37538 #endif
37539
37540 #undef $ac_func
37541
37542 /* Override any gcc2 internal prototype to avoid an error.  */
37543 #ifdef __cplusplus
37544 extern "C"
37545 {
37546 #endif
37547 /* We use char because int might match the return type of a gcc2
37548    builtin and then its argument prototype would still apply.  */
37549 char $ac_func ();
37550 /* The GNU C library defines this for functions which it implements
37551     to always fail with ENOSYS.  Some functions are actually named
37552     something starting with __ and the normal name is an alias.  */
37553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37554 choke me
37555 #else
37556 char (*f) () = $ac_func;
37557 #endif
37558 #ifdef __cplusplus
37559 }
37560 #endif
37561
37562 int
37563 main ()
37564 {
37565 return f != $ac_func;
37566   ;
37567   return 0;
37568 }
37569 _ACEOF
37570 rm -f conftest.$ac_objext conftest$ac_exeext
37571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37572   (eval $ac_link) 2>conftest.er1
37573   ac_status=$?
37574   grep -v '^ *+' conftest.er1 >conftest.err
37575   rm -f conftest.er1
37576   cat conftest.err >&5
37577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578   (exit $ac_status); } &&
37579          { ac_try='test -z "$ac_c_werror_flag"
37580                          || test ! -s conftest.err'
37581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582   (eval $ac_try) 2>&5
37583   ac_status=$?
37584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585   (exit $ac_status); }; } &&
37586          { ac_try='test -s conftest$ac_exeext'
37587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588   (eval $ac_try) 2>&5
37589   ac_status=$?
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); }; }; then
37592   eval "$as_ac_var=yes"
37593 else
37594   echo "$as_me: failed program was:" >&5
37595 sed 's/^/| /' conftest.$ac_ext >&5
37596
37597 eval "$as_ac_var=no"
37598 fi
37599 rm -f conftest.err conftest.$ac_objext \
37600       conftest$ac_exeext conftest.$ac_ext
37601 fi
37602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37604 if test `eval echo '${'$as_ac_var'}'` = yes; then
37605   cat >>confdefs.h <<_ACEOF
37606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37607 _ACEOF
37608
37609 fi
37610 done
37611
37612
37613 if test "$ac_cv_func_ctime_r" = no ; then
37614         ol_cv_func_ctime_r_nargs=0
37615 else
37616         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37617 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37618 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37619   echo $ECHO_N "(cached) $ECHO_C" >&6
37620 else
37621   cat >conftest.$ac_ext <<_ACEOF
37622 /* confdefs.h.  */
37623 _ACEOF
37624 cat confdefs.h >>conftest.$ac_ext
37625 cat >>conftest.$ac_ext <<_ACEOF
37626 /* end confdefs.h.  */
37627 #include <time.h>
37628 int
37629 main ()
37630 {
37631 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37632   ;
37633   return 0;
37634 }
37635 _ACEOF
37636 rm -f conftest.$ac_objext
37637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37638   (eval $ac_compile) 2>conftest.er1
37639   ac_status=$?
37640   grep -v '^ *+' conftest.er1 >conftest.err
37641   rm -f conftest.er1
37642   cat conftest.err >&5
37643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644   (exit $ac_status); } &&
37645          { ac_try='test -z "$ac_c_werror_flag"
37646                          || test ! -s conftest.err'
37647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37648   (eval $ac_try) 2>&5
37649   ac_status=$?
37650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651   (exit $ac_status); }; } &&
37652          { ac_try='test -s conftest.$ac_objext'
37653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654   (eval $ac_try) 2>&5
37655   ac_status=$?
37656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657   (exit $ac_status); }; }; then
37658   ol_cv_func_ctime_r_nargs3=yes
37659 else
37660   echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37662
37663 ol_cv_func_ctime_r_nargs3=no
37664 fi
37665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37666
37667         cat >conftest.$ac_ext <<_ACEOF
37668 /* confdefs.h.  */
37669 _ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h.  */
37673 #include <time.h>
37674 int
37675 main ()
37676 {
37677 time_t ti; char *buffer; ctime_r(&ti,buffer);
37678   ;
37679   return 0;
37680 }
37681 _ACEOF
37682 rm -f conftest.$ac_objext
37683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37684   (eval $ac_compile) 2>conftest.er1
37685   ac_status=$?
37686   grep -v '^ *+' conftest.er1 >conftest.err
37687   rm -f conftest.er1
37688   cat conftest.err >&5
37689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690   (exit $ac_status); } &&
37691          { ac_try='test -z "$ac_c_werror_flag"
37692                          || test ! -s conftest.err'
37693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694   (eval $ac_try) 2>&5
37695   ac_status=$?
37696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697   (exit $ac_status); }; } &&
37698          { ac_try='test -s conftest.$ac_objext'
37699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37700   (eval $ac_try) 2>&5
37701   ac_status=$?
37702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703   (exit $ac_status); }; }; then
37704   ol_cv_func_ctime_r_nargs2=yes
37705 else
37706   echo "$as_me: failed program was:" >&5
37707 sed 's/^/| /' conftest.$ac_ext >&5
37708
37709 ol_cv_func_ctime_r_nargs2=no
37710 fi
37711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37712
37713         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37714                 $ol_cv_func_ctime_r_nargs2 = no ; then
37715
37716                 ol_cv_func_ctime_r_nargs=3
37717
37718         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37719                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37720
37721                 ol_cv_func_ctime_r_nargs=2
37722
37723         else
37724                 ol_cv_func_ctime_r_nargs=0
37725         fi
37726
37727 fi
37728 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37729 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37730
37731   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37732
37733 cat >>confdefs.h <<_ACEOF
37734 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37735 _ACEOF
37736
37737   fi
37738
37739 fi
37740
37741 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37742         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37743 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37744 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37745   echo $ECHO_N "(cached) $ECHO_C" >&6
37746 else
37747   cat >conftest.$ac_ext <<_ACEOF
37748 /* confdefs.h.  */
37749 _ACEOF
37750 cat confdefs.h >>conftest.$ac_ext
37751 cat >>conftest.$ac_ext <<_ACEOF
37752 /* end confdefs.h.  */
37753 #include <sys/types.h>
37754 #include <sys/socket.h>
37755 #include <netinet/in.h>
37756 #include <netdb.h>
37757 #define BUFSIZE (sizeof(struct hostent)+10)
37758 int
37759 main ()
37760 {
37761 struct hostent hent; char buffer[BUFSIZE];
37762                 int bufsize=BUFSIZE;int h_errno;
37763                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37764                         buffer, bufsize, &h_errno);
37765   ;
37766   return 0;
37767 }
37768 _ACEOF
37769 rm -f conftest.$ac_objext
37770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37771   (eval $ac_compile) 2>conftest.er1
37772   ac_status=$?
37773   grep -v '^ *+' conftest.er1 >conftest.err
37774   rm -f conftest.er1
37775   cat conftest.err >&5
37776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777   (exit $ac_status); } &&
37778          { ac_try='test -z "$ac_c_werror_flag"
37779                          || test ! -s conftest.err'
37780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37781   (eval $ac_try) 2>&5
37782   ac_status=$?
37783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784   (exit $ac_status); }; } &&
37785          { ac_try='test -s conftest.$ac_objext'
37786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37787   (eval $ac_try) 2>&5
37788   ac_status=$?
37789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790   (exit $ac_status); }; }; then
37791   ol_cv_func_gethostbyname_r_nargs5=yes
37792 else
37793   echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37795
37796 ol_cv_func_gethostbyname_r_nargs5=no
37797 fi
37798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37799
37800         cat >conftest.$ac_ext <<_ACEOF
37801 /* confdefs.h.  */
37802 _ACEOF
37803 cat confdefs.h >>conftest.$ac_ext
37804 cat >>conftest.$ac_ext <<_ACEOF
37805 /* end confdefs.h.  */
37806 #include <sys/types.h>
37807 #include <sys/socket.h>
37808 #include <netinet/in.h>
37809 #include <netdb.h>
37810 #define BUFSIZE (sizeof(struct hostent)+10)
37811 int
37812 main ()
37813 {
37814 struct hostent hent;struct hostent *rhent;
37815                 char buffer[BUFSIZE];
37816                 int bufsize=BUFSIZE;int h_errno;
37817                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37818                         &rhent, &h_errno);
37819   ;
37820   return 0;
37821 }
37822 _ACEOF
37823 rm -f conftest.$ac_objext
37824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37825   (eval $ac_compile) 2>conftest.er1
37826   ac_status=$?
37827   grep -v '^ *+' conftest.er1 >conftest.err
37828   rm -f conftest.er1
37829   cat conftest.err >&5
37830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831   (exit $ac_status); } &&
37832          { ac_try='test -z "$ac_c_werror_flag"
37833                          || test ! -s conftest.err'
37834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37835   (eval $ac_try) 2>&5
37836   ac_status=$?
37837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838   (exit $ac_status); }; } &&
37839          { ac_try='test -s conftest.$ac_objext'
37840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841   (eval $ac_try) 2>&5
37842   ac_status=$?
37843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844   (exit $ac_status); }; }; then
37845   ol_cv_func_gethostbyname_r_nargs6=yes
37846 else
37847   echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37849
37850 ol_cv_func_gethostbyname_r_nargs6=no
37851 fi
37852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37853
37854         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37855                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37856
37857                 ol_cv_func_gethostbyname_r_nargs=5
37858
37859         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37860                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37861
37862                 ol_cv_func_gethostbyname_r_nargs=6
37863
37864         else
37865                 ol_cv_func_gethostbyname_r_nargs=0
37866         fi
37867
37868 fi
37869 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37870 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37871   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37872
37873 cat >>confdefs.h <<_ACEOF
37874 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37875 _ACEOF
37876
37877   fi
37878
37879 else
37880         ol_cv_func_gethostbyname_r_nargs=0
37881 fi
37882
37883 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37884         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37885 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37886 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37887   echo $ECHO_N "(cached) $ECHO_C" >&6
37888 else
37889   cat >conftest.$ac_ext <<_ACEOF
37890 /* confdefs.h.  */
37891 _ACEOF
37892 cat confdefs.h >>conftest.$ac_ext
37893 cat >>conftest.$ac_ext <<_ACEOF
37894 /* end confdefs.h.  */
37895 #include <sys/types.h>
37896 #include <sys/socket.h>
37897 #include <netinet/in.h>
37898 #include <netdb.h>
37899 #define BUFSIZE (sizeof(struct hostent)+10)
37900 int
37901 main ()
37902 {
37903 struct hostent hent; char buffer[BUFSIZE];
37904             struct in_addr add;
37905             size_t alen=sizeof(struct in_addr);
37906             int bufsize=BUFSIZE;int h_errno;
37907                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37908                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37909   ;
37910   return 0;
37911 }
37912 _ACEOF
37913 rm -f conftest.$ac_objext
37914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37915   (eval $ac_compile) 2>conftest.er1
37916   ac_status=$?
37917   grep -v '^ *+' conftest.er1 >conftest.err
37918   rm -f conftest.er1
37919   cat conftest.err >&5
37920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921   (exit $ac_status); } &&
37922          { ac_try='test -z "$ac_c_werror_flag"
37923                          || test ! -s conftest.err'
37924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925   (eval $ac_try) 2>&5
37926   ac_status=$?
37927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928   (exit $ac_status); }; } &&
37929          { ac_try='test -s conftest.$ac_objext'
37930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37931   (eval $ac_try) 2>&5
37932   ac_status=$?
37933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934   (exit $ac_status); }; }; then
37935   ol_cv_func_gethostbyaddr_r_nargs7=yes
37936 else
37937   echo "$as_me: failed program was:" >&5
37938 sed 's/^/| /' conftest.$ac_ext >&5
37939
37940 ol_cv_func_gethostbyaddr_r_nargs7=no
37941 fi
37942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37943
37944         cat >conftest.$ac_ext <<_ACEOF
37945 /* confdefs.h.  */
37946 _ACEOF
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h.  */
37950 #include <sys/types.h>
37951 #include <sys/socket.h>
37952 #include <netinet/in.h>
37953 #include <netdb.h>
37954 #define BUFSIZE (sizeof(struct hostent)+10)
37955 int
37956 main ()
37957 {
37958 struct hostent hent;
37959                 struct hostent *rhent; char buffer[BUFSIZE];
37960                 struct in_addr add;
37961                 size_t alen=sizeof(struct in_addr);
37962                 int bufsize=BUFSIZE;int h_errno;
37963                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37964                         alen, AF_INET, &hent, buffer, bufsize,
37965                         &rhent, &h_errno);
37966   ;
37967   return 0;
37968 }
37969 _ACEOF
37970 rm -f conftest.$ac_objext
37971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37972   (eval $ac_compile) 2>conftest.er1
37973   ac_status=$?
37974   grep -v '^ *+' conftest.er1 >conftest.err
37975   rm -f conftest.er1
37976   cat conftest.err >&5
37977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37978   (exit $ac_status); } &&
37979          { ac_try='test -z "$ac_c_werror_flag"
37980                          || test ! -s conftest.err'
37981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37982   (eval $ac_try) 2>&5
37983   ac_status=$?
37984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985   (exit $ac_status); }; } &&
37986          { ac_try='test -s conftest.$ac_objext'
37987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988   (eval $ac_try) 2>&5
37989   ac_status=$?
37990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991   (exit $ac_status); }; }; then
37992   ol_cv_func_gethostbyaddr_r_nargs8=yes
37993 else
37994   echo "$as_me: failed program was:" >&5
37995 sed 's/^/| /' conftest.$ac_ext >&5
37996
37997 ol_cv_func_gethostbyaddr_r_nargs8=no
37998 fi
37999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38000
38001         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
38002                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
38003
38004                 ol_cv_func_gethostbyaddr_r_nargs=7
38005
38006         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
38007                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
38008
38009                 ol_cv_func_gethostbyaddr_r_nargs=8
38010
38011         else
38012                 ol_cv_func_gethostbyaddr_r_nargs=0
38013         fi
38014
38015 fi
38016 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
38017 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
38018   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
38019
38020 cat >>confdefs.h <<_ACEOF
38021 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
38022 _ACEOF
38023
38024   fi
38025
38026 else
38027         ol_cv_func_gethostbyaddr_r_nargs=0
38028 fi
38029
38030 ol_link_ldbm=no
38031
38032 if test $ol_enable_ldbm_api = auto \
38033         -o $ol_enable_ldbm_api = berkeley \
38034         -o $ol_enable_ldbm_api = bcompat ; then
38035
38036         if test $ol_enable_ldbm_api = bcompat; then \
38037
38038
38039 for ac_header in db_185.h db.h
38040 do
38041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38043   echo "$as_me:$LINENO: checking for $ac_header" >&5
38044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38046   echo $ECHO_N "(cached) $ECHO_C" >&6
38047 fi
38048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38050 else
38051   # Is the header compilable?
38052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38054 cat >conftest.$ac_ext <<_ACEOF
38055 /* confdefs.h.  */
38056 _ACEOF
38057 cat confdefs.h >>conftest.$ac_ext
38058 cat >>conftest.$ac_ext <<_ACEOF
38059 /* end confdefs.h.  */
38060 $ac_includes_default
38061 #include <$ac_header>
38062 _ACEOF
38063 rm -f conftest.$ac_objext
38064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38065   (eval $ac_compile) 2>conftest.er1
38066   ac_status=$?
38067   grep -v '^ *+' conftest.er1 >conftest.err
38068   rm -f conftest.er1
38069   cat conftest.err >&5
38070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071   (exit $ac_status); } &&
38072          { ac_try='test -z "$ac_c_werror_flag"
38073                          || test ! -s conftest.err'
38074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38075   (eval $ac_try) 2>&5
38076   ac_status=$?
38077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078   (exit $ac_status); }; } &&
38079          { ac_try='test -s conftest.$ac_objext'
38080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38081   (eval $ac_try) 2>&5
38082   ac_status=$?
38083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084   (exit $ac_status); }; }; then
38085   ac_header_compiler=yes
38086 else
38087   echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.$ac_ext >&5
38089
38090 ac_header_compiler=no
38091 fi
38092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38094 echo "${ECHO_T}$ac_header_compiler" >&6
38095
38096 # Is the header present?
38097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38099 cat >conftest.$ac_ext <<_ACEOF
38100 /* confdefs.h.  */
38101 _ACEOF
38102 cat confdefs.h >>conftest.$ac_ext
38103 cat >>conftest.$ac_ext <<_ACEOF
38104 /* end confdefs.h.  */
38105 #include <$ac_header>
38106 _ACEOF
38107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38109   ac_status=$?
38110   grep -v '^ *+' conftest.er1 >conftest.err
38111   rm -f conftest.er1
38112   cat conftest.err >&5
38113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114   (exit $ac_status); } >/dev/null; then
38115   if test -s conftest.err; then
38116     ac_cpp_err=$ac_c_preproc_warn_flag
38117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38118   else
38119     ac_cpp_err=
38120   fi
38121 else
38122   ac_cpp_err=yes
38123 fi
38124 if test -z "$ac_cpp_err"; then
38125   ac_header_preproc=yes
38126 else
38127   echo "$as_me: failed program was:" >&5
38128 sed 's/^/| /' conftest.$ac_ext >&5
38129
38130   ac_header_preproc=no
38131 fi
38132 rm -f conftest.err conftest.$ac_ext
38133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38134 echo "${ECHO_T}$ac_header_preproc" >&6
38135
38136 # So?  What about this header?
38137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38138   yes:no: )
38139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38143     ac_header_preproc=yes
38144     ;;
38145   no:yes:* )
38146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38158     (
38159       cat <<\_ASBOX
38160 ## ------------------------------------------ ##
38161 ## Report this to the AC_PACKAGE_NAME lists.  ##
38162 ## ------------------------------------------ ##
38163 _ASBOX
38164     ) |
38165       sed "s/^/$as_me: WARNING:     /" >&2
38166     ;;
38167 esac
38168 echo "$as_me:$LINENO: checking for $ac_header" >&5
38169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38171   echo $ECHO_N "(cached) $ECHO_C" >&6
38172 else
38173   eval "$as_ac_Header=\$ac_header_preproc"
38174 fi
38175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38177
38178 fi
38179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38180   cat >>confdefs.h <<_ACEOF
38181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38182 _ACEOF
38183
38184 fi
38185
38186 done
38187
38188 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38189         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38190 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38191 if test "${ol_cv_header_db1+set}" = set; then
38192   echo $ECHO_N "(cached) $ECHO_C" >&6
38193 else
38194
38195                 cat >conftest.$ac_ext <<_ACEOF
38196 /* confdefs.h.  */
38197 _ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h.  */
38201
38202 #if HAVE_DB_185_H
38203 #       include <db_185.h>
38204 #else
38205 #       include <db.h>
38206 #endif
38207
38208  /* this check could be improved */
38209 #ifndef DB_VERSION_MAJOR
38210 #       define DB_VERSION_MAJOR 1
38211 #endif
38212
38213 #if DB_VERSION_MAJOR == 1
38214         __db_version_1
38215 #endif
38216
38217 _ACEOF
38218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38219   $EGREP "__db_version_1" >/dev/null 2>&1; then
38220   ol_cv_header_db1=yes
38221 else
38222   ol_cv_header_db1=no
38223 fi
38224 rm -f conftest*
38225
38226 fi
38227 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38228 echo "${ECHO_T}$ol_cv_header_db1" >&6
38229
38230         if test $ol_cv_header_db1 = yes ; then
38231                 ol_cv_lib_db=no
38232 if test $ol_cv_lib_db = no ; then
38233         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38234 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38235 if test "${ol_cv_db_none+set}" = set; then
38236   echo $ECHO_N "(cached) $ECHO_C" >&6
38237 else
38238
38239         ol_DB_LIB=
38240         ol_LIBS=$LIBS
38241         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38242
38243         cat >conftest.$ac_ext <<_ACEOF
38244 /* confdefs.h.  */
38245 _ACEOF
38246 cat confdefs.h >>conftest.$ac_ext
38247 cat >>conftest.$ac_ext <<_ACEOF
38248 /* end confdefs.h.  */
38249
38250 #ifdef HAVE_DB_185_H
38251 # include <db_185.h>
38252 #else
38253 # include <db.h>
38254 #endif
38255
38256 #ifndef DB_VERSION_MAJOR
38257 # define DB_VERSION_MAJOR 1
38258 #endif
38259
38260 #ifndef NULL
38261 #define NULL ((void*)0)
38262 #endif
38263
38264 int
38265 main ()
38266 {
38267
38268 #if DB_VERSION_MAJOR > 1
38269         {
38270                 char *version;
38271                 int major, minor, patch;
38272
38273                 version = db_version( &major, &minor, &patch );
38274
38275                 if( major != DB_VERSION_MAJOR ||
38276                         minor < DB_VERSION_MINOR )
38277                 {
38278                         printf("Berkeley DB version mismatch\n"
38279                                 "\theader: %s\n\tlibrary: %s\n",
38280                                 DB_VERSION_STRING, version);
38281                         return 1;
38282                 }
38283         }
38284 #endif
38285
38286 #if DB_VERSION_MAJOR > 2
38287         db_env_create( NULL, 0 );
38288 #elif DB_VERSION_MAJOR > 1
38289         db_appexit( NULL );
38290 #else
38291         (void) dbopen( NULL, 0, 0, 0, NULL);
38292 #endif
38293
38294   ;
38295   return 0;
38296 }
38297 _ACEOF
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38300   (eval $ac_link) 2>conftest.er1
38301   ac_status=$?
38302   grep -v '^ *+' conftest.er1 >conftest.err
38303   rm -f conftest.er1
38304   cat conftest.err >&5
38305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306   (exit $ac_status); } &&
38307          { ac_try='test -z "$ac_c_werror_flag"
38308                          || test ! -s conftest.err'
38309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38310   (eval $ac_try) 2>&5
38311   ac_status=$?
38312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313   (exit $ac_status); }; } &&
38314          { ac_try='test -s conftest$ac_exeext'
38315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38316   (eval $ac_try) 2>&5
38317   ac_status=$?
38318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319   (exit $ac_status); }; }; then
38320   ol_cv_db_none=yes
38321 else
38322   echo "$as_me: failed program was:" >&5
38323 sed 's/^/| /' conftest.$ac_ext >&5
38324
38325 ol_cv_db_none=no
38326 fi
38327 rm -f conftest.err conftest.$ac_objext \
38328       conftest$ac_exeext conftest.$ac_ext
38329
38330         LIBS="$ol_LIBS"
38331
38332 fi
38333 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38334 echo "${ECHO_T}$ol_cv_db_none" >&6
38335
38336         if test $ol_cv_db_none = yes ; then
38337                 ol_cv_lib_db=yes
38338         fi
38339 fi
38340
38341 if test $ol_cv_lib_db = no ; then
38342         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38343 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38344 if test "${ol_cv_db_db43+set}" = set; then
38345   echo $ECHO_N "(cached) $ECHO_C" >&6
38346 else
38347
38348         ol_DB_LIB=-ldb43
38349         ol_LIBS=$LIBS
38350         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38351
38352         cat >conftest.$ac_ext <<_ACEOF
38353 /* confdefs.h.  */
38354 _ACEOF
38355 cat confdefs.h >>conftest.$ac_ext
38356 cat >>conftest.$ac_ext <<_ACEOF
38357 /* end confdefs.h.  */
38358
38359 #ifdef HAVE_DB_185_H
38360 # include <db_185.h>
38361 #else
38362 # include <db.h>
38363 #endif
38364
38365 #ifndef DB_VERSION_MAJOR
38366 # define DB_VERSION_MAJOR 1
38367 #endif
38368
38369 #ifndef NULL
38370 #define NULL ((void*)0)
38371 #endif
38372
38373 int
38374 main ()
38375 {
38376
38377 #if DB_VERSION_MAJOR > 1
38378         {
38379                 char *version;
38380                 int major, minor, patch;
38381
38382                 version = db_version( &major, &minor, &patch );
38383
38384                 if( major != DB_VERSION_MAJOR ||
38385                         minor < DB_VERSION_MINOR )
38386                 {
38387                         printf("Berkeley DB version mismatch\n"
38388                                 "\theader: %s\n\tlibrary: %s\n",
38389                                 DB_VERSION_STRING, version);
38390                         return 1;
38391                 }
38392         }
38393 #endif
38394
38395 #if DB_VERSION_MAJOR > 2
38396         db_env_create( NULL, 0 );
38397 #elif DB_VERSION_MAJOR > 1
38398         db_appexit( NULL );
38399 #else
38400         (void) dbopen( NULL, 0, 0, 0, NULL);
38401 #endif
38402
38403   ;
38404   return 0;
38405 }
38406 _ACEOF
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38409   (eval $ac_link) 2>conftest.er1
38410   ac_status=$?
38411   grep -v '^ *+' conftest.er1 >conftest.err
38412   rm -f conftest.er1
38413   cat conftest.err >&5
38414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415   (exit $ac_status); } &&
38416          { ac_try='test -z "$ac_c_werror_flag"
38417                          || test ! -s conftest.err'
38418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38419   (eval $ac_try) 2>&5
38420   ac_status=$?
38421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422   (exit $ac_status); }; } &&
38423          { ac_try='test -s conftest$ac_exeext'
38424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38425   (eval $ac_try) 2>&5
38426   ac_status=$?
38427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428   (exit $ac_status); }; }; then
38429   ol_cv_db_db43=yes
38430 else
38431   echo "$as_me: failed program was:" >&5
38432 sed 's/^/| /' conftest.$ac_ext >&5
38433
38434 ol_cv_db_db43=no
38435 fi
38436 rm -f conftest.err conftest.$ac_objext \
38437       conftest$ac_exeext conftest.$ac_ext
38438
38439         LIBS="$ol_LIBS"
38440
38441 fi
38442 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38443 echo "${ECHO_T}$ol_cv_db_db43" >&6
38444
38445         if test $ol_cv_db_db43 = yes ; then
38446                 ol_cv_lib_db=-ldb43
38447         fi
38448 fi
38449
38450 if test $ol_cv_lib_db = no ; then
38451         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38452 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38453 if test "${ol_cv_db_db_43+set}" = set; then
38454   echo $ECHO_N "(cached) $ECHO_C" >&6
38455 else
38456
38457         ol_DB_LIB=-ldb-43
38458         ol_LIBS=$LIBS
38459         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38460
38461         cat >conftest.$ac_ext <<_ACEOF
38462 /* confdefs.h.  */
38463 _ACEOF
38464 cat confdefs.h >>conftest.$ac_ext
38465 cat >>conftest.$ac_ext <<_ACEOF
38466 /* end confdefs.h.  */
38467
38468 #ifdef HAVE_DB_185_H
38469 # include <db_185.h>
38470 #else
38471 # include <db.h>
38472 #endif
38473
38474 #ifndef DB_VERSION_MAJOR
38475 # define DB_VERSION_MAJOR 1
38476 #endif
38477
38478 #ifndef NULL
38479 #define NULL ((void*)0)
38480 #endif
38481
38482 int
38483 main ()
38484 {
38485
38486 #if DB_VERSION_MAJOR > 1
38487         {
38488                 char *version;
38489                 int major, minor, patch;
38490
38491                 version = db_version( &major, &minor, &patch );
38492
38493                 if( major != DB_VERSION_MAJOR ||
38494                         minor < DB_VERSION_MINOR )
38495                 {
38496                         printf("Berkeley DB version mismatch\n"
38497                                 "\theader: %s\n\tlibrary: %s\n",
38498                                 DB_VERSION_STRING, version);
38499                         return 1;
38500                 }
38501         }
38502 #endif
38503
38504 #if DB_VERSION_MAJOR > 2
38505         db_env_create( NULL, 0 );
38506 #elif DB_VERSION_MAJOR > 1
38507         db_appexit( NULL );
38508 #else
38509         (void) dbopen( NULL, 0, 0, 0, NULL);
38510 #endif
38511
38512   ;
38513   return 0;
38514 }
38515 _ACEOF
38516 rm -f conftest.$ac_objext conftest$ac_exeext
38517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38518   (eval $ac_link) 2>conftest.er1
38519   ac_status=$?
38520   grep -v '^ *+' conftest.er1 >conftest.err
38521   rm -f conftest.er1
38522   cat conftest.err >&5
38523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524   (exit $ac_status); } &&
38525          { ac_try='test -z "$ac_c_werror_flag"
38526                          || test ! -s conftest.err'
38527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38528   (eval $ac_try) 2>&5
38529   ac_status=$?
38530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531   (exit $ac_status); }; } &&
38532          { ac_try='test -s conftest$ac_exeext'
38533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38534   (eval $ac_try) 2>&5
38535   ac_status=$?
38536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38537   (exit $ac_status); }; }; then
38538   ol_cv_db_db_43=yes
38539 else
38540   echo "$as_me: failed program was:" >&5
38541 sed 's/^/| /' conftest.$ac_ext >&5
38542
38543 ol_cv_db_db_43=no
38544 fi
38545 rm -f conftest.err conftest.$ac_objext \
38546       conftest$ac_exeext conftest.$ac_ext
38547
38548         LIBS="$ol_LIBS"
38549
38550 fi
38551 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38552 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38553
38554         if test $ol_cv_db_db_43 = yes ; then
38555                 ol_cv_lib_db=-ldb-43
38556         fi
38557 fi
38558
38559 if test $ol_cv_lib_db = no ; then
38560         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38561 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38562 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38563   echo $ECHO_N "(cached) $ECHO_C" >&6
38564 else
38565
38566         ol_DB_LIB=-ldb-4.3
38567         ol_LIBS=$LIBS
38568         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38569
38570         cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h.  */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h.  */
38576
38577 #ifdef HAVE_DB_185_H
38578 # include <db_185.h>
38579 #else
38580 # include <db.h>
38581 #endif
38582
38583 #ifndef DB_VERSION_MAJOR
38584 # define DB_VERSION_MAJOR 1
38585 #endif
38586
38587 #ifndef NULL
38588 #define NULL ((void*)0)
38589 #endif
38590
38591 int
38592 main ()
38593 {
38594
38595 #if DB_VERSION_MAJOR > 1
38596         {
38597                 char *version;
38598                 int major, minor, patch;
38599
38600                 version = db_version( &major, &minor, &patch );
38601
38602                 if( major != DB_VERSION_MAJOR ||
38603                         minor < DB_VERSION_MINOR )
38604                 {
38605                         printf("Berkeley DB version mismatch\n"
38606                                 "\theader: %s\n\tlibrary: %s\n",
38607                                 DB_VERSION_STRING, version);
38608                         return 1;
38609                 }
38610         }
38611 #endif
38612
38613 #if DB_VERSION_MAJOR > 2
38614         db_env_create( NULL, 0 );
38615 #elif DB_VERSION_MAJOR > 1
38616         db_appexit( NULL );
38617 #else
38618         (void) dbopen( NULL, 0, 0, 0, NULL);
38619 #endif
38620
38621   ;
38622   return 0;
38623 }
38624 _ACEOF
38625 rm -f conftest.$ac_objext conftest$ac_exeext
38626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38627   (eval $ac_link) 2>conftest.er1
38628   ac_status=$?
38629   grep -v '^ *+' conftest.er1 >conftest.err
38630   rm -f conftest.er1
38631   cat conftest.err >&5
38632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38633   (exit $ac_status); } &&
38634          { ac_try='test -z "$ac_c_werror_flag"
38635                          || test ! -s conftest.err'
38636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38637   (eval $ac_try) 2>&5
38638   ac_status=$?
38639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640   (exit $ac_status); }; } &&
38641          { ac_try='test -s conftest$ac_exeext'
38642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38643   (eval $ac_try) 2>&5
38644   ac_status=$?
38645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38646   (exit $ac_status); }; }; then
38647   ol_cv_db_db_4_dot_3=yes
38648 else
38649   echo "$as_me: failed program was:" >&5
38650 sed 's/^/| /' conftest.$ac_ext >&5
38651
38652 ol_cv_db_db_4_dot_3=no
38653 fi
38654 rm -f conftest.err conftest.$ac_objext \
38655       conftest$ac_exeext conftest.$ac_ext
38656
38657         LIBS="$ol_LIBS"
38658
38659 fi
38660 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38661 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38662
38663         if test $ol_cv_db_db_4_dot_3 = yes ; then
38664                 ol_cv_lib_db=-ldb-4.3
38665         fi
38666 fi
38667
38668 if test $ol_cv_lib_db = no ; then
38669         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38670 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38671 if test "${ol_cv_db_db_4_3+set}" = set; then
38672   echo $ECHO_N "(cached) $ECHO_C" >&6
38673 else
38674
38675         ol_DB_LIB=-ldb-4-3
38676         ol_LIBS=$LIBS
38677         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38678
38679         cat >conftest.$ac_ext <<_ACEOF
38680 /* confdefs.h.  */
38681 _ACEOF
38682 cat confdefs.h >>conftest.$ac_ext
38683 cat >>conftest.$ac_ext <<_ACEOF
38684 /* end confdefs.h.  */
38685
38686 #ifdef HAVE_DB_185_H
38687 # include <db_185.h>
38688 #else
38689 # include <db.h>
38690 #endif
38691
38692 #ifndef DB_VERSION_MAJOR
38693 # define DB_VERSION_MAJOR 1
38694 #endif
38695
38696 #ifndef NULL
38697 #define NULL ((void*)0)
38698 #endif
38699
38700 int
38701 main ()
38702 {
38703
38704 #if DB_VERSION_MAJOR > 1
38705         {
38706                 char *version;
38707                 int major, minor, patch;
38708
38709                 version = db_version( &major, &minor, &patch );
38710
38711                 if( major != DB_VERSION_MAJOR ||
38712                         minor < DB_VERSION_MINOR )
38713                 {
38714                         printf("Berkeley DB version mismatch\n"
38715                                 "\theader: %s\n\tlibrary: %s\n",
38716                                 DB_VERSION_STRING, version);
38717                         return 1;
38718                 }
38719         }
38720 #endif
38721
38722 #if DB_VERSION_MAJOR > 2
38723         db_env_create( NULL, 0 );
38724 #elif DB_VERSION_MAJOR > 1
38725         db_appexit( NULL );
38726 #else
38727         (void) dbopen( NULL, 0, 0, 0, NULL);
38728 #endif
38729
38730   ;
38731   return 0;
38732 }
38733 _ACEOF
38734 rm -f conftest.$ac_objext conftest$ac_exeext
38735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38736   (eval $ac_link) 2>conftest.er1
38737   ac_status=$?
38738   grep -v '^ *+' conftest.er1 >conftest.err
38739   rm -f conftest.er1
38740   cat conftest.err >&5
38741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38742   (exit $ac_status); } &&
38743          { ac_try='test -z "$ac_c_werror_flag"
38744                          || test ! -s conftest.err'
38745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746   (eval $ac_try) 2>&5
38747   ac_status=$?
38748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749   (exit $ac_status); }; } &&
38750          { ac_try='test -s conftest$ac_exeext'
38751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752   (eval $ac_try) 2>&5
38753   ac_status=$?
38754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755   (exit $ac_status); }; }; then
38756   ol_cv_db_db_4_3=yes
38757 else
38758   echo "$as_me: failed program was:" >&5
38759 sed 's/^/| /' conftest.$ac_ext >&5
38760
38761 ol_cv_db_db_4_3=no
38762 fi
38763 rm -f conftest.err conftest.$ac_objext \
38764       conftest$ac_exeext conftest.$ac_ext
38765
38766         LIBS="$ol_LIBS"
38767
38768 fi
38769 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38770 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38771
38772         if test $ol_cv_db_db_4_3 = yes ; then
38773                 ol_cv_lib_db=-ldb-4-3
38774         fi
38775 fi
38776
38777 if test $ol_cv_lib_db = no ; then
38778         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38779 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38780 if test "${ol_cv_db_db42+set}" = set; then
38781   echo $ECHO_N "(cached) $ECHO_C" >&6
38782 else
38783
38784         ol_DB_LIB=-ldb42
38785         ol_LIBS=$LIBS
38786         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38787
38788         cat >conftest.$ac_ext <<_ACEOF
38789 /* confdefs.h.  */
38790 _ACEOF
38791 cat confdefs.h >>conftest.$ac_ext
38792 cat >>conftest.$ac_ext <<_ACEOF
38793 /* end confdefs.h.  */
38794
38795 #ifdef HAVE_DB_185_H
38796 # include <db_185.h>
38797 #else
38798 # include <db.h>
38799 #endif
38800
38801 #ifndef DB_VERSION_MAJOR
38802 # define DB_VERSION_MAJOR 1
38803 #endif
38804
38805 #ifndef NULL
38806 #define NULL ((void*)0)
38807 #endif
38808
38809 int
38810 main ()
38811 {
38812
38813 #if DB_VERSION_MAJOR > 1
38814         {
38815                 char *version;
38816                 int major, minor, patch;
38817
38818                 version = db_version( &major, &minor, &patch );
38819
38820                 if( major != DB_VERSION_MAJOR ||
38821                         minor < DB_VERSION_MINOR )
38822                 {
38823                         printf("Berkeley DB version mismatch\n"
38824                                 "\theader: %s\n\tlibrary: %s\n",
38825                                 DB_VERSION_STRING, version);
38826                         return 1;
38827                 }
38828         }
38829 #endif
38830
38831 #if DB_VERSION_MAJOR > 2
38832         db_env_create( NULL, 0 );
38833 #elif DB_VERSION_MAJOR > 1
38834         db_appexit( NULL );
38835 #else
38836         (void) dbopen( NULL, 0, 0, 0, NULL);
38837 #endif
38838
38839   ;
38840   return 0;
38841 }
38842 _ACEOF
38843 rm -f conftest.$ac_objext conftest$ac_exeext
38844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38845   (eval $ac_link) 2>conftest.er1
38846   ac_status=$?
38847   grep -v '^ *+' conftest.er1 >conftest.err
38848   rm -f conftest.er1
38849   cat conftest.err >&5
38850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851   (exit $ac_status); } &&
38852          { ac_try='test -z "$ac_c_werror_flag"
38853                          || test ! -s conftest.err'
38854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855   (eval $ac_try) 2>&5
38856   ac_status=$?
38857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858   (exit $ac_status); }; } &&
38859          { ac_try='test -s conftest$ac_exeext'
38860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38861   (eval $ac_try) 2>&5
38862   ac_status=$?
38863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864   (exit $ac_status); }; }; then
38865   ol_cv_db_db42=yes
38866 else
38867   echo "$as_me: failed program was:" >&5
38868 sed 's/^/| /' conftest.$ac_ext >&5
38869
38870 ol_cv_db_db42=no
38871 fi
38872 rm -f conftest.err conftest.$ac_objext \
38873       conftest$ac_exeext conftest.$ac_ext
38874
38875         LIBS="$ol_LIBS"
38876
38877 fi
38878 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38879 echo "${ECHO_T}$ol_cv_db_db42" >&6
38880
38881         if test $ol_cv_db_db42 = yes ; then
38882                 ol_cv_lib_db=-ldb42
38883         fi
38884 fi
38885
38886 if test $ol_cv_lib_db = no ; then
38887         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38888 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38889 if test "${ol_cv_db_db_42+set}" = set; then
38890   echo $ECHO_N "(cached) $ECHO_C" >&6
38891 else
38892
38893         ol_DB_LIB=-ldb-42
38894         ol_LIBS=$LIBS
38895         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38896
38897         cat >conftest.$ac_ext <<_ACEOF
38898 /* confdefs.h.  */
38899 _ACEOF
38900 cat confdefs.h >>conftest.$ac_ext
38901 cat >>conftest.$ac_ext <<_ACEOF
38902 /* end confdefs.h.  */
38903
38904 #ifdef HAVE_DB_185_H
38905 # include <db_185.h>
38906 #else
38907 # include <db.h>
38908 #endif
38909
38910 #ifndef DB_VERSION_MAJOR
38911 # define DB_VERSION_MAJOR 1
38912 #endif
38913
38914 #ifndef NULL
38915 #define NULL ((void*)0)
38916 #endif
38917
38918 int
38919 main ()
38920 {
38921
38922 #if DB_VERSION_MAJOR > 1
38923         {
38924                 char *version;
38925                 int major, minor, patch;
38926
38927                 version = db_version( &major, &minor, &patch );
38928
38929                 if( major != DB_VERSION_MAJOR ||
38930                         minor < DB_VERSION_MINOR )
38931                 {
38932                         printf("Berkeley DB version mismatch\n"
38933                                 "\theader: %s\n\tlibrary: %s\n",
38934                                 DB_VERSION_STRING, version);
38935                         return 1;
38936                 }
38937         }
38938 #endif
38939
38940 #if DB_VERSION_MAJOR > 2
38941         db_env_create( NULL, 0 );
38942 #elif DB_VERSION_MAJOR > 1
38943         db_appexit( NULL );
38944 #else
38945         (void) dbopen( NULL, 0, 0, 0, NULL);
38946 #endif
38947
38948   ;
38949   return 0;
38950 }
38951 _ACEOF
38952 rm -f conftest.$ac_objext conftest$ac_exeext
38953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38954   (eval $ac_link) 2>conftest.er1
38955   ac_status=$?
38956   grep -v '^ *+' conftest.er1 >conftest.err
38957   rm -f conftest.er1
38958   cat conftest.err >&5
38959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960   (exit $ac_status); } &&
38961          { ac_try='test -z "$ac_c_werror_flag"
38962                          || test ! -s conftest.err'
38963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38964   (eval $ac_try) 2>&5
38965   ac_status=$?
38966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38967   (exit $ac_status); }; } &&
38968          { ac_try='test -s conftest$ac_exeext'
38969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38970   (eval $ac_try) 2>&5
38971   ac_status=$?
38972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973   (exit $ac_status); }; }; then
38974   ol_cv_db_db_42=yes
38975 else
38976   echo "$as_me: failed program was:" >&5
38977 sed 's/^/| /' conftest.$ac_ext >&5
38978
38979 ol_cv_db_db_42=no
38980 fi
38981 rm -f conftest.err conftest.$ac_objext \
38982       conftest$ac_exeext conftest.$ac_ext
38983
38984         LIBS="$ol_LIBS"
38985
38986 fi
38987 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38988 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38989
38990         if test $ol_cv_db_db_42 = yes ; then
38991                 ol_cv_lib_db=-ldb-42
38992         fi
38993 fi
38994
38995 if test $ol_cv_lib_db = no ; then
38996         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38997 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38998 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38999   echo $ECHO_N "(cached) $ECHO_C" >&6
39000 else
39001
39002         ol_DB_LIB=-ldb-4.2
39003         ol_LIBS=$LIBS
39004         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39005
39006         cat >conftest.$ac_ext <<_ACEOF
39007 /* confdefs.h.  */
39008 _ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h.  */
39012
39013 #ifdef HAVE_DB_185_H
39014 # include <db_185.h>
39015 #else
39016 # include <db.h>
39017 #endif
39018
39019 #ifndef DB_VERSION_MAJOR
39020 # define DB_VERSION_MAJOR 1
39021 #endif
39022
39023 #ifndef NULL
39024 #define NULL ((void*)0)
39025 #endif
39026
39027 int
39028 main ()
39029 {
39030
39031 #if DB_VERSION_MAJOR > 1
39032         {
39033                 char *version;
39034                 int major, minor, patch;
39035
39036                 version = db_version( &major, &minor, &patch );
39037
39038                 if( major != DB_VERSION_MAJOR ||
39039                         minor < DB_VERSION_MINOR )
39040                 {
39041                         printf("Berkeley DB version mismatch\n"
39042                                 "\theader: %s\n\tlibrary: %s\n",
39043                                 DB_VERSION_STRING, version);
39044                         return 1;
39045                 }
39046         }
39047 #endif
39048
39049 #if DB_VERSION_MAJOR > 2
39050         db_env_create( NULL, 0 );
39051 #elif DB_VERSION_MAJOR > 1
39052         db_appexit( NULL );
39053 #else
39054         (void) dbopen( NULL, 0, 0, 0, NULL);
39055 #endif
39056
39057   ;
39058   return 0;
39059 }
39060 _ACEOF
39061 rm -f conftest.$ac_objext conftest$ac_exeext
39062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39063   (eval $ac_link) 2>conftest.er1
39064   ac_status=$?
39065   grep -v '^ *+' conftest.er1 >conftest.err
39066   rm -f conftest.er1
39067   cat conftest.err >&5
39068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069   (exit $ac_status); } &&
39070          { ac_try='test -z "$ac_c_werror_flag"
39071                          || test ! -s conftest.err'
39072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39073   (eval $ac_try) 2>&5
39074   ac_status=$?
39075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076   (exit $ac_status); }; } &&
39077          { ac_try='test -s conftest$ac_exeext'
39078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079   (eval $ac_try) 2>&5
39080   ac_status=$?
39081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082   (exit $ac_status); }; }; then
39083   ol_cv_db_db_4_dot_2=yes
39084 else
39085   echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39087
39088 ol_cv_db_db_4_dot_2=no
39089 fi
39090 rm -f conftest.err conftest.$ac_objext \
39091       conftest$ac_exeext conftest.$ac_ext
39092
39093         LIBS="$ol_LIBS"
39094
39095 fi
39096 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39097 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39098
39099         if test $ol_cv_db_db_4_dot_2 = yes ; then
39100                 ol_cv_lib_db=-ldb-4.2
39101         fi
39102 fi
39103
39104 if test $ol_cv_lib_db = no ; then
39105         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39106 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39107 if test "${ol_cv_db_db_4_2+set}" = set; then
39108   echo $ECHO_N "(cached) $ECHO_C" >&6
39109 else
39110
39111         ol_DB_LIB=-ldb-4-2
39112         ol_LIBS=$LIBS
39113         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39114
39115         cat >conftest.$ac_ext <<_ACEOF
39116 /* confdefs.h.  */
39117 _ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h.  */
39121
39122 #ifdef HAVE_DB_185_H
39123 # include <db_185.h>
39124 #else
39125 # include <db.h>
39126 #endif
39127
39128 #ifndef DB_VERSION_MAJOR
39129 # define DB_VERSION_MAJOR 1
39130 #endif
39131
39132 #ifndef NULL
39133 #define NULL ((void*)0)
39134 #endif
39135
39136 int
39137 main ()
39138 {
39139
39140 #if DB_VERSION_MAJOR > 1
39141         {
39142                 char *version;
39143                 int major, minor, patch;
39144
39145                 version = db_version( &major, &minor, &patch );
39146
39147                 if( major != DB_VERSION_MAJOR ||
39148                         minor < DB_VERSION_MINOR )
39149                 {
39150                         printf("Berkeley DB version mismatch\n"
39151                                 "\theader: %s\n\tlibrary: %s\n",
39152                                 DB_VERSION_STRING, version);
39153                         return 1;
39154                 }
39155         }
39156 #endif
39157
39158 #if DB_VERSION_MAJOR > 2
39159         db_env_create( NULL, 0 );
39160 #elif DB_VERSION_MAJOR > 1
39161         db_appexit( NULL );
39162 #else
39163         (void) dbopen( NULL, 0, 0, 0, NULL);
39164 #endif
39165
39166   ;
39167   return 0;
39168 }
39169 _ACEOF
39170 rm -f conftest.$ac_objext conftest$ac_exeext
39171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39172   (eval $ac_link) 2>conftest.er1
39173   ac_status=$?
39174   grep -v '^ *+' conftest.er1 >conftest.err
39175   rm -f conftest.er1
39176   cat conftest.err >&5
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); } &&
39179          { ac_try='test -z "$ac_c_werror_flag"
39180                          || test ! -s conftest.err'
39181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182   (eval $ac_try) 2>&5
39183   ac_status=$?
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); }; } &&
39186          { ac_try='test -s conftest$ac_exeext'
39187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188   (eval $ac_try) 2>&5
39189   ac_status=$?
39190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191   (exit $ac_status); }; }; then
39192   ol_cv_db_db_4_2=yes
39193 else
39194   echo "$as_me: failed program was:" >&5
39195 sed 's/^/| /' conftest.$ac_ext >&5
39196
39197 ol_cv_db_db_4_2=no
39198 fi
39199 rm -f conftest.err conftest.$ac_objext \
39200       conftest$ac_exeext conftest.$ac_ext
39201
39202         LIBS="$ol_LIBS"
39203
39204 fi
39205 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39206 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39207
39208         if test $ol_cv_db_db_4_2 = yes ; then
39209                 ol_cv_lib_db=-ldb-4-2
39210         fi
39211 fi
39212
39213 if test $ol_cv_lib_db = no ; then
39214         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39215 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39216 if test "${ol_cv_db_db_4+set}" = set; then
39217   echo $ECHO_N "(cached) $ECHO_C" >&6
39218 else
39219
39220         ol_DB_LIB=-ldb-4
39221         ol_LIBS=$LIBS
39222         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39223
39224         cat >conftest.$ac_ext <<_ACEOF
39225 /* confdefs.h.  */
39226 _ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h.  */
39230
39231 #ifdef HAVE_DB_185_H
39232 # include <db_185.h>
39233 #else
39234 # include <db.h>
39235 #endif
39236
39237 #ifndef DB_VERSION_MAJOR
39238 # define DB_VERSION_MAJOR 1
39239 #endif
39240
39241 #ifndef NULL
39242 #define NULL ((void*)0)
39243 #endif
39244
39245 int
39246 main ()
39247 {
39248
39249 #if DB_VERSION_MAJOR > 1
39250         {
39251                 char *version;
39252                 int major, minor, patch;
39253
39254                 version = db_version( &major, &minor, &patch );
39255
39256                 if( major != DB_VERSION_MAJOR ||
39257                         minor < DB_VERSION_MINOR )
39258                 {
39259                         printf("Berkeley DB version mismatch\n"
39260                                 "\theader: %s\n\tlibrary: %s\n",
39261                                 DB_VERSION_STRING, version);
39262                         return 1;
39263                 }
39264         }
39265 #endif
39266
39267 #if DB_VERSION_MAJOR > 2
39268         db_env_create( NULL, 0 );
39269 #elif DB_VERSION_MAJOR > 1
39270         db_appexit( NULL );
39271 #else
39272         (void) dbopen( NULL, 0, 0, 0, NULL);
39273 #endif
39274
39275   ;
39276   return 0;
39277 }
39278 _ACEOF
39279 rm -f conftest.$ac_objext conftest$ac_exeext
39280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39281   (eval $ac_link) 2>conftest.er1
39282   ac_status=$?
39283   grep -v '^ *+' conftest.er1 >conftest.err
39284   rm -f conftest.er1
39285   cat conftest.err >&5
39286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287   (exit $ac_status); } &&
39288          { ac_try='test -z "$ac_c_werror_flag"
39289                          || test ! -s conftest.err'
39290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291   (eval $ac_try) 2>&5
39292   ac_status=$?
39293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294   (exit $ac_status); }; } &&
39295          { ac_try='test -s conftest$ac_exeext'
39296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297   (eval $ac_try) 2>&5
39298   ac_status=$?
39299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300   (exit $ac_status); }; }; then
39301   ol_cv_db_db_4=yes
39302 else
39303   echo "$as_me: failed program was:" >&5
39304 sed 's/^/| /' conftest.$ac_ext >&5
39305
39306 ol_cv_db_db_4=no
39307 fi
39308 rm -f conftest.err conftest.$ac_objext \
39309       conftest$ac_exeext conftest.$ac_ext
39310
39311         LIBS="$ol_LIBS"
39312
39313 fi
39314 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39315 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39316
39317         if test $ol_cv_db_db_4 = yes ; then
39318                 ol_cv_lib_db=-ldb-4
39319         fi
39320 fi
39321
39322 if test $ol_cv_lib_db = no ; then
39323         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39324 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39325 if test "${ol_cv_db_db4+set}" = set; then
39326   echo $ECHO_N "(cached) $ECHO_C" >&6
39327 else
39328
39329         ol_DB_LIB=-ldb4
39330         ol_LIBS=$LIBS
39331         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39332
39333         cat >conftest.$ac_ext <<_ACEOF
39334 /* confdefs.h.  */
39335 _ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h.  */
39339
39340 #ifdef HAVE_DB_185_H
39341 # include <db_185.h>
39342 #else
39343 # include <db.h>
39344 #endif
39345
39346 #ifndef DB_VERSION_MAJOR
39347 # define DB_VERSION_MAJOR 1
39348 #endif
39349
39350 #ifndef NULL
39351 #define NULL ((void*)0)
39352 #endif
39353
39354 int
39355 main ()
39356 {
39357
39358 #if DB_VERSION_MAJOR > 1
39359         {
39360                 char *version;
39361                 int major, minor, patch;
39362
39363                 version = db_version( &major, &minor, &patch );
39364
39365                 if( major != DB_VERSION_MAJOR ||
39366                         minor < DB_VERSION_MINOR )
39367                 {
39368                         printf("Berkeley DB version mismatch\n"
39369                                 "\theader: %s\n\tlibrary: %s\n",
39370                                 DB_VERSION_STRING, version);
39371                         return 1;
39372                 }
39373         }
39374 #endif
39375
39376 #if DB_VERSION_MAJOR > 2
39377         db_env_create( NULL, 0 );
39378 #elif DB_VERSION_MAJOR > 1
39379         db_appexit( NULL );
39380 #else
39381         (void) dbopen( NULL, 0, 0, 0, NULL);
39382 #endif
39383
39384   ;
39385   return 0;
39386 }
39387 _ACEOF
39388 rm -f conftest.$ac_objext conftest$ac_exeext
39389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39390   (eval $ac_link) 2>conftest.er1
39391   ac_status=$?
39392   grep -v '^ *+' conftest.er1 >conftest.err
39393   rm -f conftest.er1
39394   cat conftest.err >&5
39395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396   (exit $ac_status); } &&
39397          { ac_try='test -z "$ac_c_werror_flag"
39398                          || test ! -s conftest.err'
39399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39400   (eval $ac_try) 2>&5
39401   ac_status=$?
39402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403   (exit $ac_status); }; } &&
39404          { ac_try='test -s conftest$ac_exeext'
39405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39406   (eval $ac_try) 2>&5
39407   ac_status=$?
39408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409   (exit $ac_status); }; }; then
39410   ol_cv_db_db4=yes
39411 else
39412   echo "$as_me: failed program was:" >&5
39413 sed 's/^/| /' conftest.$ac_ext >&5
39414
39415 ol_cv_db_db4=no
39416 fi
39417 rm -f conftest.err conftest.$ac_objext \
39418       conftest$ac_exeext conftest.$ac_ext
39419
39420         LIBS="$ol_LIBS"
39421
39422 fi
39423 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39424 echo "${ECHO_T}$ol_cv_db_db4" >&6
39425
39426         if test $ol_cv_db_db4 = yes ; then
39427                 ol_cv_lib_db=-ldb4
39428         fi
39429 fi
39430
39431 if test $ol_cv_lib_db = no ; then
39432         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39433 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39434 if test "${ol_cv_db_db+set}" = set; then
39435   echo $ECHO_N "(cached) $ECHO_C" >&6
39436 else
39437
39438         ol_DB_LIB=-ldb
39439         ol_LIBS=$LIBS
39440         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39441
39442         cat >conftest.$ac_ext <<_ACEOF
39443 /* confdefs.h.  */
39444 _ACEOF
39445 cat confdefs.h >>conftest.$ac_ext
39446 cat >>conftest.$ac_ext <<_ACEOF
39447 /* end confdefs.h.  */
39448
39449 #ifdef HAVE_DB_185_H
39450 # include <db_185.h>
39451 #else
39452 # include <db.h>
39453 #endif
39454
39455 #ifndef DB_VERSION_MAJOR
39456 # define DB_VERSION_MAJOR 1
39457 #endif
39458
39459 #ifndef NULL
39460 #define NULL ((void*)0)
39461 #endif
39462
39463 int
39464 main ()
39465 {
39466
39467 #if DB_VERSION_MAJOR > 1
39468         {
39469                 char *version;
39470                 int major, minor, patch;
39471
39472                 version = db_version( &major, &minor, &patch );
39473
39474                 if( major != DB_VERSION_MAJOR ||
39475                         minor < DB_VERSION_MINOR )
39476                 {
39477                         printf("Berkeley DB version mismatch\n"
39478                                 "\theader: %s\n\tlibrary: %s\n",
39479                                 DB_VERSION_STRING, version);
39480                         return 1;
39481                 }
39482         }
39483 #endif
39484
39485 #if DB_VERSION_MAJOR > 2
39486         db_env_create( NULL, 0 );
39487 #elif DB_VERSION_MAJOR > 1
39488         db_appexit( NULL );
39489 #else
39490         (void) dbopen( NULL, 0, 0, 0, NULL);
39491 #endif
39492
39493   ;
39494   return 0;
39495 }
39496 _ACEOF
39497 rm -f conftest.$ac_objext conftest$ac_exeext
39498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39499   (eval $ac_link) 2>conftest.er1
39500   ac_status=$?
39501   grep -v '^ *+' conftest.er1 >conftest.err
39502   rm -f conftest.er1
39503   cat conftest.err >&5
39504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505   (exit $ac_status); } &&
39506          { ac_try='test -z "$ac_c_werror_flag"
39507                          || test ! -s conftest.err'
39508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39509   (eval $ac_try) 2>&5
39510   ac_status=$?
39511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512   (exit $ac_status); }; } &&
39513          { ac_try='test -s conftest$ac_exeext'
39514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39515   (eval $ac_try) 2>&5
39516   ac_status=$?
39517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518   (exit $ac_status); }; }; then
39519   ol_cv_db_db=yes
39520 else
39521   echo "$as_me: failed program was:" >&5
39522 sed 's/^/| /' conftest.$ac_ext >&5
39523
39524 ol_cv_db_db=no
39525 fi
39526 rm -f conftest.err conftest.$ac_objext \
39527       conftest$ac_exeext conftest.$ac_ext
39528
39529         LIBS="$ol_LIBS"
39530
39531 fi
39532 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39533 echo "${ECHO_T}$ol_cv_db_db" >&6
39534
39535         if test $ol_cv_db_db = yes ; then
39536                 ol_cv_lib_db=-ldb
39537         fi
39538 fi
39539
39540 if test $ol_cv_lib_db = no ; then
39541         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39542 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39543 if test "${ol_cv_db_db41+set}" = set; then
39544   echo $ECHO_N "(cached) $ECHO_C" >&6
39545 else
39546
39547         ol_DB_LIB=-ldb41
39548         ol_LIBS=$LIBS
39549         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39550
39551         cat >conftest.$ac_ext <<_ACEOF
39552 /* confdefs.h.  */
39553 _ACEOF
39554 cat confdefs.h >>conftest.$ac_ext
39555 cat >>conftest.$ac_ext <<_ACEOF
39556 /* end confdefs.h.  */
39557
39558 #ifdef HAVE_DB_185_H
39559 # include <db_185.h>
39560 #else
39561 # include <db.h>
39562 #endif
39563
39564 #ifndef DB_VERSION_MAJOR
39565 # define DB_VERSION_MAJOR 1
39566 #endif
39567
39568 #ifndef NULL
39569 #define NULL ((void*)0)
39570 #endif
39571
39572 int
39573 main ()
39574 {
39575
39576 #if DB_VERSION_MAJOR > 1
39577         {
39578                 char *version;
39579                 int major, minor, patch;
39580
39581                 version = db_version( &major, &minor, &patch );
39582
39583                 if( major != DB_VERSION_MAJOR ||
39584                         minor < DB_VERSION_MINOR )
39585                 {
39586                         printf("Berkeley DB version mismatch\n"
39587                                 "\theader: %s\n\tlibrary: %s\n",
39588                                 DB_VERSION_STRING, version);
39589                         return 1;
39590                 }
39591         }
39592 #endif
39593
39594 #if DB_VERSION_MAJOR > 2
39595         db_env_create( NULL, 0 );
39596 #elif DB_VERSION_MAJOR > 1
39597         db_appexit( NULL );
39598 #else
39599         (void) dbopen( NULL, 0, 0, 0, NULL);
39600 #endif
39601
39602   ;
39603   return 0;
39604 }
39605 _ACEOF
39606 rm -f conftest.$ac_objext conftest$ac_exeext
39607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39608   (eval $ac_link) 2>conftest.er1
39609   ac_status=$?
39610   grep -v '^ *+' conftest.er1 >conftest.err
39611   rm -f conftest.er1
39612   cat conftest.err >&5
39613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614   (exit $ac_status); } &&
39615          { ac_try='test -z "$ac_c_werror_flag"
39616                          || test ! -s conftest.err'
39617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618   (eval $ac_try) 2>&5
39619   ac_status=$?
39620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621   (exit $ac_status); }; } &&
39622          { ac_try='test -s conftest$ac_exeext'
39623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39624   (eval $ac_try) 2>&5
39625   ac_status=$?
39626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627   (exit $ac_status); }; }; then
39628   ol_cv_db_db41=yes
39629 else
39630   echo "$as_me: failed program was:" >&5
39631 sed 's/^/| /' conftest.$ac_ext >&5
39632
39633 ol_cv_db_db41=no
39634 fi
39635 rm -f conftest.err conftest.$ac_objext \
39636       conftest$ac_exeext conftest.$ac_ext
39637
39638         LIBS="$ol_LIBS"
39639
39640 fi
39641 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39642 echo "${ECHO_T}$ol_cv_db_db41" >&6
39643
39644         if test $ol_cv_db_db41 = yes ; then
39645                 ol_cv_lib_db=-ldb41
39646         fi
39647 fi
39648
39649 if test $ol_cv_lib_db = no ; then
39650         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39651 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39652 if test "${ol_cv_db_db_41+set}" = set; then
39653   echo $ECHO_N "(cached) $ECHO_C" >&6
39654 else
39655
39656         ol_DB_LIB=-ldb-41
39657         ol_LIBS=$LIBS
39658         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39659
39660         cat >conftest.$ac_ext <<_ACEOF
39661 /* confdefs.h.  */
39662 _ACEOF
39663 cat confdefs.h >>conftest.$ac_ext
39664 cat >>conftest.$ac_ext <<_ACEOF
39665 /* end confdefs.h.  */
39666
39667 #ifdef HAVE_DB_185_H
39668 # include <db_185.h>
39669 #else
39670 # include <db.h>
39671 #endif
39672
39673 #ifndef DB_VERSION_MAJOR
39674 # define DB_VERSION_MAJOR 1
39675 #endif
39676
39677 #ifndef NULL
39678 #define NULL ((void*)0)
39679 #endif
39680
39681 int
39682 main ()
39683 {
39684
39685 #if DB_VERSION_MAJOR > 1
39686         {
39687                 char *version;
39688                 int major, minor, patch;
39689
39690                 version = db_version( &major, &minor, &patch );
39691
39692                 if( major != DB_VERSION_MAJOR ||
39693                         minor < DB_VERSION_MINOR )
39694                 {
39695                         printf("Berkeley DB version mismatch\n"
39696                                 "\theader: %s\n\tlibrary: %s\n",
39697                                 DB_VERSION_STRING, version);
39698                         return 1;
39699                 }
39700         }
39701 #endif
39702
39703 #if DB_VERSION_MAJOR > 2
39704         db_env_create( NULL, 0 );
39705 #elif DB_VERSION_MAJOR > 1
39706         db_appexit( NULL );
39707 #else
39708         (void) dbopen( NULL, 0, 0, 0, NULL);
39709 #endif
39710
39711   ;
39712   return 0;
39713 }
39714 _ACEOF
39715 rm -f conftest.$ac_objext conftest$ac_exeext
39716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39717   (eval $ac_link) 2>conftest.er1
39718   ac_status=$?
39719   grep -v '^ *+' conftest.er1 >conftest.err
39720   rm -f conftest.er1
39721   cat conftest.err >&5
39722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723   (exit $ac_status); } &&
39724          { ac_try='test -z "$ac_c_werror_flag"
39725                          || test ! -s conftest.err'
39726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39727   (eval $ac_try) 2>&5
39728   ac_status=$?
39729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730   (exit $ac_status); }; } &&
39731          { ac_try='test -s conftest$ac_exeext'
39732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39733   (eval $ac_try) 2>&5
39734   ac_status=$?
39735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736   (exit $ac_status); }; }; then
39737   ol_cv_db_db_41=yes
39738 else
39739   echo "$as_me: failed program was:" >&5
39740 sed 's/^/| /' conftest.$ac_ext >&5
39741
39742 ol_cv_db_db_41=no
39743 fi
39744 rm -f conftest.err conftest.$ac_objext \
39745       conftest$ac_exeext conftest.$ac_ext
39746
39747         LIBS="$ol_LIBS"
39748
39749 fi
39750 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39751 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39752
39753         if test $ol_cv_db_db_41 = yes ; then
39754                 ol_cv_lib_db=-ldb-41
39755         fi
39756 fi
39757
39758 if test $ol_cv_lib_db = no ; then
39759         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39760 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39761 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39762   echo $ECHO_N "(cached) $ECHO_C" >&6
39763 else
39764
39765         ol_DB_LIB=-ldb-4.1
39766         ol_LIBS=$LIBS
39767         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39768
39769         cat >conftest.$ac_ext <<_ACEOF
39770 /* confdefs.h.  */
39771 _ACEOF
39772 cat confdefs.h >>conftest.$ac_ext
39773 cat >>conftest.$ac_ext <<_ACEOF
39774 /* end confdefs.h.  */
39775
39776 #ifdef HAVE_DB_185_H
39777 # include <db_185.h>
39778 #else
39779 # include <db.h>
39780 #endif
39781
39782 #ifndef DB_VERSION_MAJOR
39783 # define DB_VERSION_MAJOR 1
39784 #endif
39785
39786 #ifndef NULL
39787 #define NULL ((void*)0)
39788 #endif
39789
39790 int
39791 main ()
39792 {
39793
39794 #if DB_VERSION_MAJOR > 1
39795         {
39796                 char *version;
39797                 int major, minor, patch;
39798
39799                 version = db_version( &major, &minor, &patch );
39800
39801                 if( major != DB_VERSION_MAJOR ||
39802                         minor < DB_VERSION_MINOR )
39803                 {
39804                         printf("Berkeley DB version mismatch\n"
39805                                 "\theader: %s\n\tlibrary: %s\n",
39806                                 DB_VERSION_STRING, version);
39807                         return 1;
39808                 }
39809         }
39810 #endif
39811
39812 #if DB_VERSION_MAJOR > 2
39813         db_env_create( NULL, 0 );
39814 #elif DB_VERSION_MAJOR > 1
39815         db_appexit( NULL );
39816 #else
39817         (void) dbopen( NULL, 0, 0, 0, NULL);
39818 #endif
39819
39820   ;
39821   return 0;
39822 }
39823 _ACEOF
39824 rm -f conftest.$ac_objext conftest$ac_exeext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39826   (eval $ac_link) 2>conftest.er1
39827   ac_status=$?
39828   grep -v '^ *+' conftest.er1 >conftest.err
39829   rm -f conftest.er1
39830   cat conftest.err >&5
39831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832   (exit $ac_status); } &&
39833          { ac_try='test -z "$ac_c_werror_flag"
39834                          || test ! -s conftest.err'
39835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836   (eval $ac_try) 2>&5
39837   ac_status=$?
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); }; } &&
39840          { ac_try='test -s conftest$ac_exeext'
39841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842   (eval $ac_try) 2>&5
39843   ac_status=$?
39844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845   (exit $ac_status); }; }; then
39846   ol_cv_db_db_4_dot_1=yes
39847 else
39848   echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39850
39851 ol_cv_db_db_4_dot_1=no
39852 fi
39853 rm -f conftest.err conftest.$ac_objext \
39854       conftest$ac_exeext conftest.$ac_ext
39855
39856         LIBS="$ol_LIBS"
39857
39858 fi
39859 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39860 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39861
39862         if test $ol_cv_db_db_4_dot_1 = yes ; then
39863                 ol_cv_lib_db=-ldb-4.1
39864         fi
39865 fi
39866
39867 if test $ol_cv_lib_db = no ; then
39868         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39869 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39870 if test "${ol_cv_db_db_4_1+set}" = set; then
39871   echo $ECHO_N "(cached) $ECHO_C" >&6
39872 else
39873
39874         ol_DB_LIB=-ldb-4-1
39875         ol_LIBS=$LIBS
39876         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39877
39878         cat >conftest.$ac_ext <<_ACEOF
39879 /* confdefs.h.  */
39880 _ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h.  */
39884
39885 #ifdef HAVE_DB_185_H
39886 # include <db_185.h>
39887 #else
39888 # include <db.h>
39889 #endif
39890
39891 #ifndef DB_VERSION_MAJOR
39892 # define DB_VERSION_MAJOR 1
39893 #endif
39894
39895 #ifndef NULL
39896 #define NULL ((void*)0)
39897 #endif
39898
39899 int
39900 main ()
39901 {
39902
39903 #if DB_VERSION_MAJOR > 1
39904         {
39905                 char *version;
39906                 int major, minor, patch;
39907
39908                 version = db_version( &major, &minor, &patch );
39909
39910                 if( major != DB_VERSION_MAJOR ||
39911                         minor < DB_VERSION_MINOR )
39912                 {
39913                         printf("Berkeley DB version mismatch\n"
39914                                 "\theader: %s\n\tlibrary: %s\n",
39915                                 DB_VERSION_STRING, version);
39916                         return 1;
39917                 }
39918         }
39919 #endif
39920
39921 #if DB_VERSION_MAJOR > 2
39922         db_env_create( NULL, 0 );
39923 #elif DB_VERSION_MAJOR > 1
39924         db_appexit( NULL );
39925 #else
39926         (void) dbopen( NULL, 0, 0, 0, NULL);
39927 #endif
39928
39929   ;
39930   return 0;
39931 }
39932 _ACEOF
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39935   (eval $ac_link) 2>conftest.er1
39936   ac_status=$?
39937   grep -v '^ *+' conftest.er1 >conftest.err
39938   rm -f conftest.er1
39939   cat conftest.err >&5
39940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941   (exit $ac_status); } &&
39942          { ac_try='test -z "$ac_c_werror_flag"
39943                          || test ! -s conftest.err'
39944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39945   (eval $ac_try) 2>&5
39946   ac_status=$?
39947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948   (exit $ac_status); }; } &&
39949          { ac_try='test -s conftest$ac_exeext'
39950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39951   (eval $ac_try) 2>&5
39952   ac_status=$?
39953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); }; }; then
39955   ol_cv_db_db_4_1=yes
39956 else
39957   echo "$as_me: failed program was:" >&5
39958 sed 's/^/| /' conftest.$ac_ext >&5
39959
39960 ol_cv_db_db_4_1=no
39961 fi
39962 rm -f conftest.err conftest.$ac_objext \
39963       conftest$ac_exeext conftest.$ac_ext
39964
39965         LIBS="$ol_LIBS"
39966
39967 fi
39968 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39969 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39970
39971         if test $ol_cv_db_db_4_1 = yes ; then
39972                 ol_cv_lib_db=-ldb-4-1
39973         fi
39974 fi
39975
39976 if test $ol_cv_lib_db = no ; then
39977         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39978 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39979 if test "${ol_cv_db_db3+set}" = set; then
39980   echo $ECHO_N "(cached) $ECHO_C" >&6
39981 else
39982
39983         ol_DB_LIB=-ldb3
39984         ol_LIBS=$LIBS
39985         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39986
39987         cat >conftest.$ac_ext <<_ACEOF
39988 /* confdefs.h.  */
39989 _ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h.  */
39993
39994 #ifdef HAVE_DB_185_H
39995 # include <db_185.h>
39996 #else
39997 # include <db.h>
39998 #endif
39999
40000 #ifndef DB_VERSION_MAJOR
40001 # define DB_VERSION_MAJOR 1
40002 #endif
40003
40004 #ifndef NULL
40005 #define NULL ((void*)0)
40006 #endif
40007
40008 int
40009 main ()
40010 {
40011
40012 #if DB_VERSION_MAJOR > 1
40013         {
40014                 char *version;
40015                 int major, minor, patch;
40016
40017                 version = db_version( &major, &minor, &patch );
40018
40019                 if( major != DB_VERSION_MAJOR ||
40020                         minor < DB_VERSION_MINOR )
40021                 {
40022                         printf("Berkeley DB version mismatch\n"
40023                                 "\theader: %s\n\tlibrary: %s\n",
40024                                 DB_VERSION_STRING, version);
40025                         return 1;
40026                 }
40027         }
40028 #endif
40029
40030 #if DB_VERSION_MAJOR > 2
40031         db_env_create( NULL, 0 );
40032 #elif DB_VERSION_MAJOR > 1
40033         db_appexit( NULL );
40034 #else
40035         (void) dbopen( NULL, 0, 0, 0, NULL);
40036 #endif
40037
40038   ;
40039   return 0;
40040 }
40041 _ACEOF
40042 rm -f conftest.$ac_objext conftest$ac_exeext
40043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40044   (eval $ac_link) 2>conftest.er1
40045   ac_status=$?
40046   grep -v '^ *+' conftest.er1 >conftest.err
40047   rm -f conftest.er1
40048   cat conftest.err >&5
40049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050   (exit $ac_status); } &&
40051          { ac_try='test -z "$ac_c_werror_flag"
40052                          || test ! -s conftest.err'
40053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054   (eval $ac_try) 2>&5
40055   ac_status=$?
40056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057   (exit $ac_status); }; } &&
40058          { ac_try='test -s conftest$ac_exeext'
40059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060   (eval $ac_try) 2>&5
40061   ac_status=$?
40062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063   (exit $ac_status); }; }; then
40064   ol_cv_db_db3=yes
40065 else
40066   echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40068
40069 ol_cv_db_db3=no
40070 fi
40071 rm -f conftest.err conftest.$ac_objext \
40072       conftest$ac_exeext conftest.$ac_ext
40073
40074         LIBS="$ol_LIBS"
40075
40076 fi
40077 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40078 echo "${ECHO_T}$ol_cv_db_db3" >&6
40079
40080         if test $ol_cv_db_db3 = yes ; then
40081                 ol_cv_lib_db=-ldb3
40082         fi
40083 fi
40084
40085 if test $ol_cv_lib_db = no ; then
40086         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40087 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40088 if test "${ol_cv_db_db_3+set}" = set; then
40089   echo $ECHO_N "(cached) $ECHO_C" >&6
40090 else
40091
40092         ol_DB_LIB=-ldb-3
40093         ol_LIBS=$LIBS
40094         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40095
40096         cat >conftest.$ac_ext <<_ACEOF
40097 /* confdefs.h.  */
40098 _ACEOF
40099 cat confdefs.h >>conftest.$ac_ext
40100 cat >>conftest.$ac_ext <<_ACEOF
40101 /* end confdefs.h.  */
40102
40103 #ifdef HAVE_DB_185_H
40104 # include <db_185.h>
40105 #else
40106 # include <db.h>
40107 #endif
40108
40109 #ifndef DB_VERSION_MAJOR
40110 # define DB_VERSION_MAJOR 1
40111 #endif
40112
40113 #ifndef NULL
40114 #define NULL ((void*)0)
40115 #endif
40116
40117 int
40118 main ()
40119 {
40120
40121 #if DB_VERSION_MAJOR > 1
40122         {
40123                 char *version;
40124                 int major, minor, patch;
40125
40126                 version = db_version( &major, &minor, &patch );
40127
40128                 if( major != DB_VERSION_MAJOR ||
40129                         minor < DB_VERSION_MINOR )
40130                 {
40131                         printf("Berkeley DB version mismatch\n"
40132                                 "\theader: %s\n\tlibrary: %s\n",
40133                                 DB_VERSION_STRING, version);
40134                         return 1;
40135                 }
40136         }
40137 #endif
40138
40139 #if DB_VERSION_MAJOR > 2
40140         db_env_create( NULL, 0 );
40141 #elif DB_VERSION_MAJOR > 1
40142         db_appexit( NULL );
40143 #else
40144         (void) dbopen( NULL, 0, 0, 0, NULL);
40145 #endif
40146
40147   ;
40148   return 0;
40149 }
40150 _ACEOF
40151 rm -f conftest.$ac_objext conftest$ac_exeext
40152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40153   (eval $ac_link) 2>conftest.er1
40154   ac_status=$?
40155   grep -v '^ *+' conftest.er1 >conftest.err
40156   rm -f conftest.er1
40157   cat conftest.err >&5
40158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159   (exit $ac_status); } &&
40160          { ac_try='test -z "$ac_c_werror_flag"
40161                          || test ! -s conftest.err'
40162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163   (eval $ac_try) 2>&5
40164   ac_status=$?
40165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166   (exit $ac_status); }; } &&
40167          { ac_try='test -s conftest$ac_exeext'
40168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40169   (eval $ac_try) 2>&5
40170   ac_status=$?
40171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172   (exit $ac_status); }; }; then
40173   ol_cv_db_db_3=yes
40174 else
40175   echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40177
40178 ol_cv_db_db_3=no
40179 fi
40180 rm -f conftest.err conftest.$ac_objext \
40181       conftest$ac_exeext conftest.$ac_ext
40182
40183         LIBS="$ol_LIBS"
40184
40185 fi
40186 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40187 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40188
40189         if test $ol_cv_db_db_3 = yes ; then
40190                 ol_cv_lib_db=-ldb-3
40191         fi
40192 fi
40193
40194 if test $ol_cv_lib_db = no ; then
40195         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40196 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40197 if test "${ol_cv_db_db2+set}" = set; then
40198   echo $ECHO_N "(cached) $ECHO_C" >&6
40199 else
40200
40201         ol_DB_LIB=-ldb2
40202         ol_LIBS=$LIBS
40203         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40204
40205         cat >conftest.$ac_ext <<_ACEOF
40206 /* confdefs.h.  */
40207 _ACEOF
40208 cat confdefs.h >>conftest.$ac_ext
40209 cat >>conftest.$ac_ext <<_ACEOF
40210 /* end confdefs.h.  */
40211
40212 #ifdef HAVE_DB_185_H
40213 # include <db_185.h>
40214 #else
40215 # include <db.h>
40216 #endif
40217
40218 #ifndef DB_VERSION_MAJOR
40219 # define DB_VERSION_MAJOR 1
40220 #endif
40221
40222 #ifndef NULL
40223 #define NULL ((void*)0)
40224 #endif
40225
40226 int
40227 main ()
40228 {
40229
40230 #if DB_VERSION_MAJOR > 1
40231         {
40232                 char *version;
40233                 int major, minor, patch;
40234
40235                 version = db_version( &major, &minor, &patch );
40236
40237                 if( major != DB_VERSION_MAJOR ||
40238                         minor < DB_VERSION_MINOR )
40239                 {
40240                         printf("Berkeley DB version mismatch\n"
40241                                 "\theader: %s\n\tlibrary: %s\n",
40242                                 DB_VERSION_STRING, version);
40243                         return 1;
40244                 }
40245         }
40246 #endif
40247
40248 #if DB_VERSION_MAJOR > 2
40249         db_env_create( NULL, 0 );
40250 #elif DB_VERSION_MAJOR > 1
40251         db_appexit( NULL );
40252 #else
40253         (void) dbopen( NULL, 0, 0, 0, NULL);
40254 #endif
40255
40256   ;
40257   return 0;
40258 }
40259 _ACEOF
40260 rm -f conftest.$ac_objext conftest$ac_exeext
40261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40262   (eval $ac_link) 2>conftest.er1
40263   ac_status=$?
40264   grep -v '^ *+' conftest.er1 >conftest.err
40265   rm -f conftest.er1
40266   cat conftest.err >&5
40267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268   (exit $ac_status); } &&
40269          { ac_try='test -z "$ac_c_werror_flag"
40270                          || test ! -s conftest.err'
40271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40272   (eval $ac_try) 2>&5
40273   ac_status=$?
40274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275   (exit $ac_status); }; } &&
40276          { ac_try='test -s conftest$ac_exeext'
40277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40278   (eval $ac_try) 2>&5
40279   ac_status=$?
40280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281   (exit $ac_status); }; }; then
40282   ol_cv_db_db2=yes
40283 else
40284   echo "$as_me: failed program was:" >&5
40285 sed 's/^/| /' conftest.$ac_ext >&5
40286
40287 ol_cv_db_db2=no
40288 fi
40289 rm -f conftest.err conftest.$ac_objext \
40290       conftest$ac_exeext conftest.$ac_ext
40291
40292         LIBS="$ol_LIBS"
40293
40294 fi
40295 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40296 echo "${ECHO_T}$ol_cv_db_db2" >&6
40297
40298         if test $ol_cv_db_db2 = yes ; then
40299                 ol_cv_lib_db=-ldb2
40300         fi
40301 fi
40302
40303 if test $ol_cv_lib_db = no ; then
40304         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40305 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40306 if test "${ol_cv_db_db_2+set}" = set; then
40307   echo $ECHO_N "(cached) $ECHO_C" >&6
40308 else
40309
40310         ol_DB_LIB=-ldb-2
40311         ol_LIBS=$LIBS
40312         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40313
40314         cat >conftest.$ac_ext <<_ACEOF
40315 /* confdefs.h.  */
40316 _ACEOF
40317 cat confdefs.h >>conftest.$ac_ext
40318 cat >>conftest.$ac_ext <<_ACEOF
40319 /* end confdefs.h.  */
40320
40321 #ifdef HAVE_DB_185_H
40322 # include <db_185.h>
40323 #else
40324 # include <db.h>
40325 #endif
40326
40327 #ifndef DB_VERSION_MAJOR
40328 # define DB_VERSION_MAJOR 1
40329 #endif
40330
40331 #ifndef NULL
40332 #define NULL ((void*)0)
40333 #endif
40334
40335 int
40336 main ()
40337 {
40338
40339 #if DB_VERSION_MAJOR > 1
40340         {
40341                 char *version;
40342                 int major, minor, patch;
40343
40344                 version = db_version( &major, &minor, &patch );
40345
40346                 if( major != DB_VERSION_MAJOR ||
40347                         minor < DB_VERSION_MINOR )
40348                 {
40349                         printf("Berkeley DB version mismatch\n"
40350                                 "\theader: %s\n\tlibrary: %s\n",
40351                                 DB_VERSION_STRING, version);
40352                         return 1;
40353                 }
40354         }
40355 #endif
40356
40357 #if DB_VERSION_MAJOR > 2
40358         db_env_create( NULL, 0 );
40359 #elif DB_VERSION_MAJOR > 1
40360         db_appexit( NULL );
40361 #else
40362         (void) dbopen( NULL, 0, 0, 0, NULL);
40363 #endif
40364
40365   ;
40366   return 0;
40367 }
40368 _ACEOF
40369 rm -f conftest.$ac_objext conftest$ac_exeext
40370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40371   (eval $ac_link) 2>conftest.er1
40372   ac_status=$?
40373   grep -v '^ *+' conftest.er1 >conftest.err
40374   rm -f conftest.er1
40375   cat conftest.err >&5
40376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377   (exit $ac_status); } &&
40378          { ac_try='test -z "$ac_c_werror_flag"
40379                          || test ! -s conftest.err'
40380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40381   (eval $ac_try) 2>&5
40382   ac_status=$?
40383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384   (exit $ac_status); }; } &&
40385          { ac_try='test -s conftest$ac_exeext'
40386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40387   (eval $ac_try) 2>&5
40388   ac_status=$?
40389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390   (exit $ac_status); }; }; then
40391   ol_cv_db_db_2=yes
40392 else
40393   echo "$as_me: failed program was:" >&5
40394 sed 's/^/| /' conftest.$ac_ext >&5
40395
40396 ol_cv_db_db_2=no
40397 fi
40398 rm -f conftest.err conftest.$ac_objext \
40399       conftest$ac_exeext conftest.$ac_ext
40400
40401         LIBS="$ol_LIBS"
40402
40403 fi
40404 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40405 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40406
40407         if test $ol_cv_db_db_2 = yes ; then
40408                 ol_cv_lib_db=-ldb-2
40409         fi
40410 fi
40411
40412 if test $ol_cv_lib_db = no ; then
40413         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40414 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40415 if test "${ol_cv_db_db1+set}" = set; then
40416   echo $ECHO_N "(cached) $ECHO_C" >&6
40417 else
40418
40419         ol_DB_LIB=-ldb1
40420         ol_LIBS=$LIBS
40421         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40422
40423         cat >conftest.$ac_ext <<_ACEOF
40424 /* confdefs.h.  */
40425 _ACEOF
40426 cat confdefs.h >>conftest.$ac_ext
40427 cat >>conftest.$ac_ext <<_ACEOF
40428 /* end confdefs.h.  */
40429
40430 #ifdef HAVE_DB_185_H
40431 # include <db_185.h>
40432 #else
40433 # include <db.h>
40434 #endif
40435
40436 #ifndef DB_VERSION_MAJOR
40437 # define DB_VERSION_MAJOR 1
40438 #endif
40439
40440 #ifndef NULL
40441 #define NULL ((void*)0)
40442 #endif
40443
40444 int
40445 main ()
40446 {
40447
40448 #if DB_VERSION_MAJOR > 1
40449         {
40450                 char *version;
40451                 int major, minor, patch;
40452
40453                 version = db_version( &major, &minor, &patch );
40454
40455                 if( major != DB_VERSION_MAJOR ||
40456                         minor < DB_VERSION_MINOR )
40457                 {
40458                         printf("Berkeley DB version mismatch\n"
40459                                 "\theader: %s\n\tlibrary: %s\n",
40460                                 DB_VERSION_STRING, version);
40461                         return 1;
40462                 }
40463         }
40464 #endif
40465
40466 #if DB_VERSION_MAJOR > 2
40467         db_env_create( NULL, 0 );
40468 #elif DB_VERSION_MAJOR > 1
40469         db_appexit( NULL );
40470 #else
40471         (void) dbopen( NULL, 0, 0, 0, NULL);
40472 #endif
40473
40474   ;
40475   return 0;
40476 }
40477 _ACEOF
40478 rm -f conftest.$ac_objext conftest$ac_exeext
40479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40480   (eval $ac_link) 2>conftest.er1
40481   ac_status=$?
40482   grep -v '^ *+' conftest.er1 >conftest.err
40483   rm -f conftest.er1
40484   cat conftest.err >&5
40485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486   (exit $ac_status); } &&
40487          { ac_try='test -z "$ac_c_werror_flag"
40488                          || test ! -s conftest.err'
40489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40490   (eval $ac_try) 2>&5
40491   ac_status=$?
40492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493   (exit $ac_status); }; } &&
40494          { ac_try='test -s conftest$ac_exeext'
40495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40496   (eval $ac_try) 2>&5
40497   ac_status=$?
40498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499   (exit $ac_status); }; }; then
40500   ol_cv_db_db1=yes
40501 else
40502   echo "$as_me: failed program was:" >&5
40503 sed 's/^/| /' conftest.$ac_ext >&5
40504
40505 ol_cv_db_db1=no
40506 fi
40507 rm -f conftest.err conftest.$ac_objext \
40508       conftest$ac_exeext conftest.$ac_ext
40509
40510         LIBS="$ol_LIBS"
40511
40512 fi
40513 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40514 echo "${ECHO_T}$ol_cv_db_db1" >&6
40515
40516         if test $ol_cv_db_db1 = yes ; then
40517                 ol_cv_lib_db=-ldb1
40518         fi
40519 fi
40520
40521 if test $ol_cv_lib_db = no ; then
40522         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40523 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40524 if test "${ol_cv_db_db_1+set}" = set; then
40525   echo $ECHO_N "(cached) $ECHO_C" >&6
40526 else
40527
40528         ol_DB_LIB=-ldb-1
40529         ol_LIBS=$LIBS
40530         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40531
40532         cat >conftest.$ac_ext <<_ACEOF
40533 /* confdefs.h.  */
40534 _ACEOF
40535 cat confdefs.h >>conftest.$ac_ext
40536 cat >>conftest.$ac_ext <<_ACEOF
40537 /* end confdefs.h.  */
40538
40539 #ifdef HAVE_DB_185_H
40540 # include <db_185.h>
40541 #else
40542 # include <db.h>
40543 #endif
40544
40545 #ifndef DB_VERSION_MAJOR
40546 # define DB_VERSION_MAJOR 1
40547 #endif
40548
40549 #ifndef NULL
40550 #define NULL ((void*)0)
40551 #endif
40552
40553 int
40554 main ()
40555 {
40556
40557 #if DB_VERSION_MAJOR > 1
40558         {
40559                 char *version;
40560                 int major, minor, patch;
40561
40562                 version = db_version( &major, &minor, &patch );
40563
40564                 if( major != DB_VERSION_MAJOR ||
40565                         minor < DB_VERSION_MINOR )
40566                 {
40567                         printf("Berkeley DB version mismatch\n"
40568                                 "\theader: %s\n\tlibrary: %s\n",
40569                                 DB_VERSION_STRING, version);
40570                         return 1;
40571                 }
40572         }
40573 #endif
40574
40575 #if DB_VERSION_MAJOR > 2
40576         db_env_create( NULL, 0 );
40577 #elif DB_VERSION_MAJOR > 1
40578         db_appexit( NULL );
40579 #else
40580         (void) dbopen( NULL, 0, 0, 0, NULL);
40581 #endif
40582
40583   ;
40584   return 0;
40585 }
40586 _ACEOF
40587 rm -f conftest.$ac_objext conftest$ac_exeext
40588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40589   (eval $ac_link) 2>conftest.er1
40590   ac_status=$?
40591   grep -v '^ *+' conftest.er1 >conftest.err
40592   rm -f conftest.er1
40593   cat conftest.err >&5
40594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40595   (exit $ac_status); } &&
40596          { ac_try='test -z "$ac_c_werror_flag"
40597                          || test ! -s conftest.err'
40598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40599   (eval $ac_try) 2>&5
40600   ac_status=$?
40601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602   (exit $ac_status); }; } &&
40603          { ac_try='test -s conftest$ac_exeext'
40604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40605   (eval $ac_try) 2>&5
40606   ac_status=$?
40607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608   (exit $ac_status); }; }; then
40609   ol_cv_db_db_1=yes
40610 else
40611   echo "$as_me: failed program was:" >&5
40612 sed 's/^/| /' conftest.$ac_ext >&5
40613
40614 ol_cv_db_db_1=no
40615 fi
40616 rm -f conftest.err conftest.$ac_objext \
40617       conftest$ac_exeext conftest.$ac_ext
40618
40619         LIBS="$ol_LIBS"
40620
40621 fi
40622 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40623 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40624
40625         if test $ol_cv_db_db_1 = yes ; then
40626                 ol_cv_lib_db=-ldb-1
40627         fi
40628 fi
40629
40630
40631                 if test "$ol_cv_lib_db" != no ; then
40632                         ol_cv_berkeley_db=yes
40633                 fi
40634         fi
40635 fi
40636
40637         else
40638                 ol_cv_berkeley_db=no
40639
40640 for ac_header in db.h
40641 do
40642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40644   echo "$as_me:$LINENO: checking for $ac_header" >&5
40645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40647   echo $ECHO_N "(cached) $ECHO_C" >&6
40648 fi
40649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40651 else
40652   # Is the header compilable?
40653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40655 cat >conftest.$ac_ext <<_ACEOF
40656 /* confdefs.h.  */
40657 _ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h.  */
40661 $ac_includes_default
40662 #include <$ac_header>
40663 _ACEOF
40664 rm -f conftest.$ac_objext
40665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40666   (eval $ac_compile) 2>conftest.er1
40667   ac_status=$?
40668   grep -v '^ *+' conftest.er1 >conftest.err
40669   rm -f conftest.er1
40670   cat conftest.err >&5
40671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672   (exit $ac_status); } &&
40673          { ac_try='test -z "$ac_c_werror_flag"
40674                          || test ! -s conftest.err'
40675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676   (eval $ac_try) 2>&5
40677   ac_status=$?
40678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679   (exit $ac_status); }; } &&
40680          { ac_try='test -s conftest.$ac_objext'
40681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40682   (eval $ac_try) 2>&5
40683   ac_status=$?
40684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40685   (exit $ac_status); }; }; then
40686   ac_header_compiler=yes
40687 else
40688   echo "$as_me: failed program was:" >&5
40689 sed 's/^/| /' conftest.$ac_ext >&5
40690
40691 ac_header_compiler=no
40692 fi
40693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40695 echo "${ECHO_T}$ac_header_compiler" >&6
40696
40697 # Is the header present?
40698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40700 cat >conftest.$ac_ext <<_ACEOF
40701 /* confdefs.h.  */
40702 _ACEOF
40703 cat confdefs.h >>conftest.$ac_ext
40704 cat >>conftest.$ac_ext <<_ACEOF
40705 /* end confdefs.h.  */
40706 #include <$ac_header>
40707 _ACEOF
40708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40710   ac_status=$?
40711   grep -v '^ *+' conftest.er1 >conftest.err
40712   rm -f conftest.er1
40713   cat conftest.err >&5
40714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715   (exit $ac_status); } >/dev/null; then
40716   if test -s conftest.err; then
40717     ac_cpp_err=$ac_c_preproc_warn_flag
40718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40719   else
40720     ac_cpp_err=
40721   fi
40722 else
40723   ac_cpp_err=yes
40724 fi
40725 if test -z "$ac_cpp_err"; then
40726   ac_header_preproc=yes
40727 else
40728   echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.$ac_ext >&5
40730
40731   ac_header_preproc=no
40732 fi
40733 rm -f conftest.err conftest.$ac_ext
40734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40735 echo "${ECHO_T}$ac_header_preproc" >&6
40736
40737 # So?  What about this header?
40738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40739   yes:no: )
40740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40744     ac_header_preproc=yes
40745     ;;
40746   no:yes:* )
40747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40759     (
40760       cat <<\_ASBOX
40761 ## ------------------------------------------ ##
40762 ## Report this to the AC_PACKAGE_NAME lists.  ##
40763 ## ------------------------------------------ ##
40764 _ASBOX
40765     ) |
40766       sed "s/^/$as_me: WARNING:     /" >&2
40767     ;;
40768 esac
40769 echo "$as_me:$LINENO: checking for $ac_header" >&5
40770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40772   echo $ECHO_N "(cached) $ECHO_C" >&6
40773 else
40774   eval "$as_ac_Header=\$ac_header_preproc"
40775 fi
40776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40778
40779 fi
40780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40781   cat >>confdefs.h <<_ACEOF
40782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40783 _ACEOF
40784
40785 fi
40786
40787 done
40788
40789 if test $ac_cv_header_db_h = yes; then
40790         ol_cv_lib_db=no
40791 if test $ol_cv_lib_db = no ; then
40792         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40793 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40794 if test "${ol_cv_db_none+set}" = set; then
40795   echo $ECHO_N "(cached) $ECHO_C" >&6
40796 else
40797
40798         ol_DB_LIB=
40799         ol_LIBS=$LIBS
40800         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40801
40802         cat >conftest.$ac_ext <<_ACEOF
40803 /* confdefs.h.  */
40804 _ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h.  */
40808
40809 #ifdef HAVE_DB_185_H
40810 # include <db_185.h>
40811 #else
40812 # include <db.h>
40813 #endif
40814
40815 #ifndef DB_VERSION_MAJOR
40816 # define DB_VERSION_MAJOR 1
40817 #endif
40818
40819 #ifndef NULL
40820 #define NULL ((void*)0)
40821 #endif
40822
40823 int
40824 main ()
40825 {
40826
40827 #if DB_VERSION_MAJOR > 1
40828         {
40829                 char *version;
40830                 int major, minor, patch;
40831
40832                 version = db_version( &major, &minor, &patch );
40833
40834                 if( major != DB_VERSION_MAJOR ||
40835                         minor < DB_VERSION_MINOR )
40836                 {
40837                         printf("Berkeley DB version mismatch\n"
40838                                 "\theader: %s\n\tlibrary: %s\n",
40839                                 DB_VERSION_STRING, version);
40840                         return 1;
40841                 }
40842         }
40843 #endif
40844
40845 #if DB_VERSION_MAJOR > 2
40846         db_env_create( NULL, 0 );
40847 #elif DB_VERSION_MAJOR > 1
40848         db_appexit( NULL );
40849 #else
40850         (void) dbopen( NULL, 0, 0, 0, NULL);
40851 #endif
40852
40853   ;
40854   return 0;
40855 }
40856 _ACEOF
40857 rm -f conftest.$ac_objext conftest$ac_exeext
40858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40859   (eval $ac_link) 2>conftest.er1
40860   ac_status=$?
40861   grep -v '^ *+' conftest.er1 >conftest.err
40862   rm -f conftest.er1
40863   cat conftest.err >&5
40864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865   (exit $ac_status); } &&
40866          { ac_try='test -z "$ac_c_werror_flag"
40867                          || test ! -s conftest.err'
40868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40869   (eval $ac_try) 2>&5
40870   ac_status=$?
40871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872   (exit $ac_status); }; } &&
40873          { ac_try='test -s conftest$ac_exeext'
40874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875   (eval $ac_try) 2>&5
40876   ac_status=$?
40877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878   (exit $ac_status); }; }; then
40879   ol_cv_db_none=yes
40880 else
40881   echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40883
40884 ol_cv_db_none=no
40885 fi
40886 rm -f conftest.err conftest.$ac_objext \
40887       conftest$ac_exeext conftest.$ac_ext
40888
40889         LIBS="$ol_LIBS"
40890
40891 fi
40892 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40893 echo "${ECHO_T}$ol_cv_db_none" >&6
40894
40895         if test $ol_cv_db_none = yes ; then
40896                 ol_cv_lib_db=yes
40897         fi
40898 fi
40899
40900 if test $ol_cv_lib_db = no ; then
40901         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40902 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40903 if test "${ol_cv_db_db43+set}" = set; then
40904   echo $ECHO_N "(cached) $ECHO_C" >&6
40905 else
40906
40907         ol_DB_LIB=-ldb43
40908         ol_LIBS=$LIBS
40909         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40910
40911         cat >conftest.$ac_ext <<_ACEOF
40912 /* confdefs.h.  */
40913 _ACEOF
40914 cat confdefs.h >>conftest.$ac_ext
40915 cat >>conftest.$ac_ext <<_ACEOF
40916 /* end confdefs.h.  */
40917
40918 #ifdef HAVE_DB_185_H
40919 # include <db_185.h>
40920 #else
40921 # include <db.h>
40922 #endif
40923
40924 #ifndef DB_VERSION_MAJOR
40925 # define DB_VERSION_MAJOR 1
40926 #endif
40927
40928 #ifndef NULL
40929 #define NULL ((void*)0)
40930 #endif
40931
40932 int
40933 main ()
40934 {
40935
40936 #if DB_VERSION_MAJOR > 1
40937         {
40938                 char *version;
40939                 int major, minor, patch;
40940
40941                 version = db_version( &major, &minor, &patch );
40942
40943                 if( major != DB_VERSION_MAJOR ||
40944                         minor < DB_VERSION_MINOR )
40945                 {
40946                         printf("Berkeley DB version mismatch\n"
40947                                 "\theader: %s\n\tlibrary: %s\n",
40948                                 DB_VERSION_STRING, version);
40949                         return 1;
40950                 }
40951         }
40952 #endif
40953
40954 #if DB_VERSION_MAJOR > 2
40955         db_env_create( NULL, 0 );
40956 #elif DB_VERSION_MAJOR > 1
40957         db_appexit( NULL );
40958 #else
40959         (void) dbopen( NULL, 0, 0, 0, NULL);
40960 #endif
40961
40962   ;
40963   return 0;
40964 }
40965 _ACEOF
40966 rm -f conftest.$ac_objext conftest$ac_exeext
40967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40968   (eval $ac_link) 2>conftest.er1
40969   ac_status=$?
40970   grep -v '^ *+' conftest.er1 >conftest.err
40971   rm -f conftest.er1
40972   cat conftest.err >&5
40973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974   (exit $ac_status); } &&
40975          { ac_try='test -z "$ac_c_werror_flag"
40976                          || test ! -s conftest.err'
40977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40978   (eval $ac_try) 2>&5
40979   ac_status=$?
40980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40981   (exit $ac_status); }; } &&
40982          { ac_try='test -s conftest$ac_exeext'
40983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40984   (eval $ac_try) 2>&5
40985   ac_status=$?
40986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40987   (exit $ac_status); }; }; then
40988   ol_cv_db_db43=yes
40989 else
40990   echo "$as_me: failed program was:" >&5
40991 sed 's/^/| /' conftest.$ac_ext >&5
40992
40993 ol_cv_db_db43=no
40994 fi
40995 rm -f conftest.err conftest.$ac_objext \
40996       conftest$ac_exeext conftest.$ac_ext
40997
40998         LIBS="$ol_LIBS"
40999
41000 fi
41001 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
41002 echo "${ECHO_T}$ol_cv_db_db43" >&6
41003
41004         if test $ol_cv_db_db43 = yes ; then
41005                 ol_cv_lib_db=-ldb43
41006         fi
41007 fi
41008
41009 if test $ol_cv_lib_db = no ; then
41010         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
41011 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
41012 if test "${ol_cv_db_db_43+set}" = set; then
41013   echo $ECHO_N "(cached) $ECHO_C" >&6
41014 else
41015
41016         ol_DB_LIB=-ldb-43
41017         ol_LIBS=$LIBS
41018         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41019
41020         cat >conftest.$ac_ext <<_ACEOF
41021 /* confdefs.h.  */
41022 _ACEOF
41023 cat confdefs.h >>conftest.$ac_ext
41024 cat >>conftest.$ac_ext <<_ACEOF
41025 /* end confdefs.h.  */
41026
41027 #ifdef HAVE_DB_185_H
41028 # include <db_185.h>
41029 #else
41030 # include <db.h>
41031 #endif
41032
41033 #ifndef DB_VERSION_MAJOR
41034 # define DB_VERSION_MAJOR 1
41035 #endif
41036
41037 #ifndef NULL
41038 #define NULL ((void*)0)
41039 #endif
41040
41041 int
41042 main ()
41043 {
41044
41045 #if DB_VERSION_MAJOR > 1
41046         {
41047                 char *version;
41048                 int major, minor, patch;
41049
41050                 version = db_version( &major, &minor, &patch );
41051
41052                 if( major != DB_VERSION_MAJOR ||
41053                         minor < DB_VERSION_MINOR )
41054                 {
41055                         printf("Berkeley DB version mismatch\n"
41056                                 "\theader: %s\n\tlibrary: %s\n",
41057                                 DB_VERSION_STRING, version);
41058                         return 1;
41059                 }
41060         }
41061 #endif
41062
41063 #if DB_VERSION_MAJOR > 2
41064         db_env_create( NULL, 0 );
41065 #elif DB_VERSION_MAJOR > 1
41066         db_appexit( NULL );
41067 #else
41068         (void) dbopen( NULL, 0, 0, 0, NULL);
41069 #endif
41070
41071   ;
41072   return 0;
41073 }
41074 _ACEOF
41075 rm -f conftest.$ac_objext conftest$ac_exeext
41076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41077   (eval $ac_link) 2>conftest.er1
41078   ac_status=$?
41079   grep -v '^ *+' conftest.er1 >conftest.err
41080   rm -f conftest.er1
41081   cat conftest.err >&5
41082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41083   (exit $ac_status); } &&
41084          { ac_try='test -z "$ac_c_werror_flag"
41085                          || test ! -s conftest.err'
41086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41087   (eval $ac_try) 2>&5
41088   ac_status=$?
41089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090   (exit $ac_status); }; } &&
41091          { ac_try='test -s conftest$ac_exeext'
41092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41093   (eval $ac_try) 2>&5
41094   ac_status=$?
41095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41096   (exit $ac_status); }; }; then
41097   ol_cv_db_db_43=yes
41098 else
41099   echo "$as_me: failed program was:" >&5
41100 sed 's/^/| /' conftest.$ac_ext >&5
41101
41102 ol_cv_db_db_43=no
41103 fi
41104 rm -f conftest.err conftest.$ac_objext \
41105       conftest$ac_exeext conftest.$ac_ext
41106
41107         LIBS="$ol_LIBS"
41108
41109 fi
41110 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41111 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41112
41113         if test $ol_cv_db_db_43 = yes ; then
41114                 ol_cv_lib_db=-ldb-43
41115         fi
41116 fi
41117
41118 if test $ol_cv_lib_db = no ; then
41119         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41120 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41121 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41122   echo $ECHO_N "(cached) $ECHO_C" >&6
41123 else
41124
41125         ol_DB_LIB=-ldb-4.3
41126         ol_LIBS=$LIBS
41127         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41128
41129         cat >conftest.$ac_ext <<_ACEOF
41130 /* confdefs.h.  */
41131 _ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h.  */
41135
41136 #ifdef HAVE_DB_185_H
41137 # include <db_185.h>
41138 #else
41139 # include <db.h>
41140 #endif
41141
41142 #ifndef DB_VERSION_MAJOR
41143 # define DB_VERSION_MAJOR 1
41144 #endif
41145
41146 #ifndef NULL
41147 #define NULL ((void*)0)
41148 #endif
41149
41150 int
41151 main ()
41152 {
41153
41154 #if DB_VERSION_MAJOR > 1
41155         {
41156                 char *version;
41157                 int major, minor, patch;
41158
41159                 version = db_version( &major, &minor, &patch );
41160
41161                 if( major != DB_VERSION_MAJOR ||
41162                         minor < DB_VERSION_MINOR )
41163                 {
41164                         printf("Berkeley DB version mismatch\n"
41165                                 "\theader: %s\n\tlibrary: %s\n",
41166                                 DB_VERSION_STRING, version);
41167                         return 1;
41168                 }
41169         }
41170 #endif
41171
41172 #if DB_VERSION_MAJOR > 2
41173         db_env_create( NULL, 0 );
41174 #elif DB_VERSION_MAJOR > 1
41175         db_appexit( NULL );
41176 #else
41177         (void) dbopen( NULL, 0, 0, 0, NULL);
41178 #endif
41179
41180   ;
41181   return 0;
41182 }
41183 _ACEOF
41184 rm -f conftest.$ac_objext conftest$ac_exeext
41185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41186   (eval $ac_link) 2>conftest.er1
41187   ac_status=$?
41188   grep -v '^ *+' conftest.er1 >conftest.err
41189   rm -f conftest.er1
41190   cat conftest.err >&5
41191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192   (exit $ac_status); } &&
41193          { ac_try='test -z "$ac_c_werror_flag"
41194                          || test ! -s conftest.err'
41195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41196   (eval $ac_try) 2>&5
41197   ac_status=$?
41198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199   (exit $ac_status); }; } &&
41200          { ac_try='test -s conftest$ac_exeext'
41201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41202   (eval $ac_try) 2>&5
41203   ac_status=$?
41204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41205   (exit $ac_status); }; }; then
41206   ol_cv_db_db_4_dot_3=yes
41207 else
41208   echo "$as_me: failed program was:" >&5
41209 sed 's/^/| /' conftest.$ac_ext >&5
41210
41211 ol_cv_db_db_4_dot_3=no
41212 fi
41213 rm -f conftest.err conftest.$ac_objext \
41214       conftest$ac_exeext conftest.$ac_ext
41215
41216         LIBS="$ol_LIBS"
41217
41218 fi
41219 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41220 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41221
41222         if test $ol_cv_db_db_4_dot_3 = yes ; then
41223                 ol_cv_lib_db=-ldb-4.3
41224         fi
41225 fi
41226
41227 if test $ol_cv_lib_db = no ; then
41228         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41229 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41230 if test "${ol_cv_db_db_4_3+set}" = set; then
41231   echo $ECHO_N "(cached) $ECHO_C" >&6
41232 else
41233
41234         ol_DB_LIB=-ldb-4-3
41235         ol_LIBS=$LIBS
41236         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41237
41238         cat >conftest.$ac_ext <<_ACEOF
41239 /* confdefs.h.  */
41240 _ACEOF
41241 cat confdefs.h >>conftest.$ac_ext
41242 cat >>conftest.$ac_ext <<_ACEOF
41243 /* end confdefs.h.  */
41244
41245 #ifdef HAVE_DB_185_H
41246 # include <db_185.h>
41247 #else
41248 # include <db.h>
41249 #endif
41250
41251 #ifndef DB_VERSION_MAJOR
41252 # define DB_VERSION_MAJOR 1
41253 #endif
41254
41255 #ifndef NULL
41256 #define NULL ((void*)0)
41257 #endif
41258
41259 int
41260 main ()
41261 {
41262
41263 #if DB_VERSION_MAJOR > 1
41264         {
41265                 char *version;
41266                 int major, minor, patch;
41267
41268                 version = db_version( &major, &minor, &patch );
41269
41270                 if( major != DB_VERSION_MAJOR ||
41271                         minor < DB_VERSION_MINOR )
41272                 {
41273                         printf("Berkeley DB version mismatch\n"
41274                                 "\theader: %s\n\tlibrary: %s\n",
41275                                 DB_VERSION_STRING, version);
41276                         return 1;
41277                 }
41278         }
41279 #endif
41280
41281 #if DB_VERSION_MAJOR > 2
41282         db_env_create( NULL, 0 );
41283 #elif DB_VERSION_MAJOR > 1
41284         db_appexit( NULL );
41285 #else
41286         (void) dbopen( NULL, 0, 0, 0, NULL);
41287 #endif
41288
41289   ;
41290   return 0;
41291 }
41292 _ACEOF
41293 rm -f conftest.$ac_objext conftest$ac_exeext
41294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41295   (eval $ac_link) 2>conftest.er1
41296   ac_status=$?
41297   grep -v '^ *+' conftest.er1 >conftest.err
41298   rm -f conftest.er1
41299   cat conftest.err >&5
41300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41301   (exit $ac_status); } &&
41302          { ac_try='test -z "$ac_c_werror_flag"
41303                          || test ! -s conftest.err'
41304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41305   (eval $ac_try) 2>&5
41306   ac_status=$?
41307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308   (exit $ac_status); }; } &&
41309          { ac_try='test -s conftest$ac_exeext'
41310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41311   (eval $ac_try) 2>&5
41312   ac_status=$?
41313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314   (exit $ac_status); }; }; then
41315   ol_cv_db_db_4_3=yes
41316 else
41317   echo "$as_me: failed program was:" >&5
41318 sed 's/^/| /' conftest.$ac_ext >&5
41319
41320 ol_cv_db_db_4_3=no
41321 fi
41322 rm -f conftest.err conftest.$ac_objext \
41323       conftest$ac_exeext conftest.$ac_ext
41324
41325         LIBS="$ol_LIBS"
41326
41327 fi
41328 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41329 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41330
41331         if test $ol_cv_db_db_4_3 = yes ; then
41332                 ol_cv_lib_db=-ldb-4-3
41333         fi
41334 fi
41335
41336 if test $ol_cv_lib_db = no ; then
41337         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41338 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41339 if test "${ol_cv_db_db42+set}" = set; then
41340   echo $ECHO_N "(cached) $ECHO_C" >&6
41341 else
41342
41343         ol_DB_LIB=-ldb42
41344         ol_LIBS=$LIBS
41345         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41346
41347         cat >conftest.$ac_ext <<_ACEOF
41348 /* confdefs.h.  */
41349 _ACEOF
41350 cat confdefs.h >>conftest.$ac_ext
41351 cat >>conftest.$ac_ext <<_ACEOF
41352 /* end confdefs.h.  */
41353
41354 #ifdef HAVE_DB_185_H
41355 # include <db_185.h>
41356 #else
41357 # include <db.h>
41358 #endif
41359
41360 #ifndef DB_VERSION_MAJOR
41361 # define DB_VERSION_MAJOR 1
41362 #endif
41363
41364 #ifndef NULL
41365 #define NULL ((void*)0)
41366 #endif
41367
41368 int
41369 main ()
41370 {
41371
41372 #if DB_VERSION_MAJOR > 1
41373         {
41374                 char *version;
41375                 int major, minor, patch;
41376
41377                 version = db_version( &major, &minor, &patch );
41378
41379                 if( major != DB_VERSION_MAJOR ||
41380                         minor < DB_VERSION_MINOR )
41381                 {
41382                         printf("Berkeley DB version mismatch\n"
41383                                 "\theader: %s\n\tlibrary: %s\n",
41384                                 DB_VERSION_STRING, version);
41385                         return 1;
41386                 }
41387         }
41388 #endif
41389
41390 #if DB_VERSION_MAJOR > 2
41391         db_env_create( NULL, 0 );
41392 #elif DB_VERSION_MAJOR > 1
41393         db_appexit( NULL );
41394 #else
41395         (void) dbopen( NULL, 0, 0, 0, NULL);
41396 #endif
41397
41398   ;
41399   return 0;
41400 }
41401 _ACEOF
41402 rm -f conftest.$ac_objext conftest$ac_exeext
41403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41404   (eval $ac_link) 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } &&
41411          { ac_try='test -z "$ac_c_werror_flag"
41412                          || test ! -s conftest.err'
41413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41414   (eval $ac_try) 2>&5
41415   ac_status=$?
41416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41417   (exit $ac_status); }; } &&
41418          { ac_try='test -s conftest$ac_exeext'
41419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41420   (eval $ac_try) 2>&5
41421   ac_status=$?
41422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423   (exit $ac_status); }; }; then
41424   ol_cv_db_db42=yes
41425 else
41426   echo "$as_me: failed program was:" >&5
41427 sed 's/^/| /' conftest.$ac_ext >&5
41428
41429 ol_cv_db_db42=no
41430 fi
41431 rm -f conftest.err conftest.$ac_objext \
41432       conftest$ac_exeext conftest.$ac_ext
41433
41434         LIBS="$ol_LIBS"
41435
41436 fi
41437 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41438 echo "${ECHO_T}$ol_cv_db_db42" >&6
41439
41440         if test $ol_cv_db_db42 = yes ; then
41441                 ol_cv_lib_db=-ldb42
41442         fi
41443 fi
41444
41445 if test $ol_cv_lib_db = no ; then
41446         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41447 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41448 if test "${ol_cv_db_db_42+set}" = set; then
41449   echo $ECHO_N "(cached) $ECHO_C" >&6
41450 else
41451
41452         ol_DB_LIB=-ldb-42
41453         ol_LIBS=$LIBS
41454         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41455
41456         cat >conftest.$ac_ext <<_ACEOF
41457 /* confdefs.h.  */
41458 _ACEOF
41459 cat confdefs.h >>conftest.$ac_ext
41460 cat >>conftest.$ac_ext <<_ACEOF
41461 /* end confdefs.h.  */
41462
41463 #ifdef HAVE_DB_185_H
41464 # include <db_185.h>
41465 #else
41466 # include <db.h>
41467 #endif
41468
41469 #ifndef DB_VERSION_MAJOR
41470 # define DB_VERSION_MAJOR 1
41471 #endif
41472
41473 #ifndef NULL
41474 #define NULL ((void*)0)
41475 #endif
41476
41477 int
41478 main ()
41479 {
41480
41481 #if DB_VERSION_MAJOR > 1
41482         {
41483                 char *version;
41484                 int major, minor, patch;
41485
41486                 version = db_version( &major, &minor, &patch );
41487
41488                 if( major != DB_VERSION_MAJOR ||
41489                         minor < DB_VERSION_MINOR )
41490                 {
41491                         printf("Berkeley DB version mismatch\n"
41492                                 "\theader: %s\n\tlibrary: %s\n",
41493                                 DB_VERSION_STRING, version);
41494                         return 1;
41495                 }
41496         }
41497 #endif
41498
41499 #if DB_VERSION_MAJOR > 2
41500         db_env_create( NULL, 0 );
41501 #elif DB_VERSION_MAJOR > 1
41502         db_appexit( NULL );
41503 #else
41504         (void) dbopen( NULL, 0, 0, 0, NULL);
41505 #endif
41506
41507   ;
41508   return 0;
41509 }
41510 _ACEOF
41511 rm -f conftest.$ac_objext conftest$ac_exeext
41512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41513   (eval $ac_link) 2>conftest.er1
41514   ac_status=$?
41515   grep -v '^ *+' conftest.er1 >conftest.err
41516   rm -f conftest.er1
41517   cat conftest.err >&5
41518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519   (exit $ac_status); } &&
41520          { ac_try='test -z "$ac_c_werror_flag"
41521                          || test ! -s conftest.err'
41522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41523   (eval $ac_try) 2>&5
41524   ac_status=$?
41525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526   (exit $ac_status); }; } &&
41527          { ac_try='test -s conftest$ac_exeext'
41528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529   (eval $ac_try) 2>&5
41530   ac_status=$?
41531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532   (exit $ac_status); }; }; then
41533   ol_cv_db_db_42=yes
41534 else
41535   echo "$as_me: failed program was:" >&5
41536 sed 's/^/| /' conftest.$ac_ext >&5
41537
41538 ol_cv_db_db_42=no
41539 fi
41540 rm -f conftest.err conftest.$ac_objext \
41541       conftest$ac_exeext conftest.$ac_ext
41542
41543         LIBS="$ol_LIBS"
41544
41545 fi
41546 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41547 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41548
41549         if test $ol_cv_db_db_42 = yes ; then
41550                 ol_cv_lib_db=-ldb-42
41551         fi
41552 fi
41553
41554 if test $ol_cv_lib_db = no ; then
41555         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41556 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41557 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41558   echo $ECHO_N "(cached) $ECHO_C" >&6
41559 else
41560
41561         ol_DB_LIB=-ldb-4.2
41562         ol_LIBS=$LIBS
41563         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41564
41565         cat >conftest.$ac_ext <<_ACEOF
41566 /* confdefs.h.  */
41567 _ACEOF
41568 cat confdefs.h >>conftest.$ac_ext
41569 cat >>conftest.$ac_ext <<_ACEOF
41570 /* end confdefs.h.  */
41571
41572 #ifdef HAVE_DB_185_H
41573 # include <db_185.h>
41574 #else
41575 # include <db.h>
41576 #endif
41577
41578 #ifndef DB_VERSION_MAJOR
41579 # define DB_VERSION_MAJOR 1
41580 #endif
41581
41582 #ifndef NULL
41583 #define NULL ((void*)0)
41584 #endif
41585
41586 int
41587 main ()
41588 {
41589
41590 #if DB_VERSION_MAJOR > 1
41591         {
41592                 char *version;
41593                 int major, minor, patch;
41594
41595                 version = db_version( &major, &minor, &patch );
41596
41597                 if( major != DB_VERSION_MAJOR ||
41598                         minor < DB_VERSION_MINOR )
41599                 {
41600                         printf("Berkeley DB version mismatch\n"
41601                                 "\theader: %s\n\tlibrary: %s\n",
41602                                 DB_VERSION_STRING, version);
41603                         return 1;
41604                 }
41605         }
41606 #endif
41607
41608 #if DB_VERSION_MAJOR > 2
41609         db_env_create( NULL, 0 );
41610 #elif DB_VERSION_MAJOR > 1
41611         db_appexit( NULL );
41612 #else
41613         (void) dbopen( NULL, 0, 0, 0, NULL);
41614 #endif
41615
41616   ;
41617   return 0;
41618 }
41619 _ACEOF
41620 rm -f conftest.$ac_objext conftest$ac_exeext
41621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41622   (eval $ac_link) 2>conftest.er1
41623   ac_status=$?
41624   grep -v '^ *+' conftest.er1 >conftest.err
41625   rm -f conftest.er1
41626   cat conftest.err >&5
41627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628   (exit $ac_status); } &&
41629          { ac_try='test -z "$ac_c_werror_flag"
41630                          || test ! -s conftest.err'
41631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41632   (eval $ac_try) 2>&5
41633   ac_status=$?
41634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635   (exit $ac_status); }; } &&
41636          { ac_try='test -s conftest$ac_exeext'
41637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41638   (eval $ac_try) 2>&5
41639   ac_status=$?
41640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641   (exit $ac_status); }; }; then
41642   ol_cv_db_db_4_dot_2=yes
41643 else
41644   echo "$as_me: failed program was:" >&5
41645 sed 's/^/| /' conftest.$ac_ext >&5
41646
41647 ol_cv_db_db_4_dot_2=no
41648 fi
41649 rm -f conftest.err conftest.$ac_objext \
41650       conftest$ac_exeext conftest.$ac_ext
41651
41652         LIBS="$ol_LIBS"
41653
41654 fi
41655 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41656 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41657
41658         if test $ol_cv_db_db_4_dot_2 = yes ; then
41659                 ol_cv_lib_db=-ldb-4.2
41660         fi
41661 fi
41662
41663 if test $ol_cv_lib_db = no ; then
41664         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41665 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41666 if test "${ol_cv_db_db_4_2+set}" = set; then
41667   echo $ECHO_N "(cached) $ECHO_C" >&6
41668 else
41669
41670         ol_DB_LIB=-ldb-4-2
41671         ol_LIBS=$LIBS
41672         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41673
41674         cat >conftest.$ac_ext <<_ACEOF
41675 /* confdefs.h.  */
41676 _ACEOF
41677 cat confdefs.h >>conftest.$ac_ext
41678 cat >>conftest.$ac_ext <<_ACEOF
41679 /* end confdefs.h.  */
41680
41681 #ifdef HAVE_DB_185_H
41682 # include <db_185.h>
41683 #else
41684 # include <db.h>
41685 #endif
41686
41687 #ifndef DB_VERSION_MAJOR
41688 # define DB_VERSION_MAJOR 1
41689 #endif
41690
41691 #ifndef NULL
41692 #define NULL ((void*)0)
41693 #endif
41694
41695 int
41696 main ()
41697 {
41698
41699 #if DB_VERSION_MAJOR > 1
41700         {
41701                 char *version;
41702                 int major, minor, patch;
41703
41704                 version = db_version( &major, &minor, &patch );
41705
41706                 if( major != DB_VERSION_MAJOR ||
41707                         minor < DB_VERSION_MINOR )
41708                 {
41709                         printf("Berkeley DB version mismatch\n"
41710                                 "\theader: %s\n\tlibrary: %s\n",
41711                                 DB_VERSION_STRING, version);
41712                         return 1;
41713                 }
41714         }
41715 #endif
41716
41717 #if DB_VERSION_MAJOR > 2
41718         db_env_create( NULL, 0 );
41719 #elif DB_VERSION_MAJOR > 1
41720         db_appexit( NULL );
41721 #else
41722         (void) dbopen( NULL, 0, 0, 0, NULL);
41723 #endif
41724
41725   ;
41726   return 0;
41727 }
41728 _ACEOF
41729 rm -f conftest.$ac_objext conftest$ac_exeext
41730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41731   (eval $ac_link) 2>conftest.er1
41732   ac_status=$?
41733   grep -v '^ *+' conftest.er1 >conftest.err
41734   rm -f conftest.er1
41735   cat conftest.err >&5
41736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737   (exit $ac_status); } &&
41738          { ac_try='test -z "$ac_c_werror_flag"
41739                          || test ! -s conftest.err'
41740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741   (eval $ac_try) 2>&5
41742   ac_status=$?
41743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744   (exit $ac_status); }; } &&
41745          { ac_try='test -s conftest$ac_exeext'
41746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41747   (eval $ac_try) 2>&5
41748   ac_status=$?
41749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750   (exit $ac_status); }; }; then
41751   ol_cv_db_db_4_2=yes
41752 else
41753   echo "$as_me: failed program was:" >&5
41754 sed 's/^/| /' conftest.$ac_ext >&5
41755
41756 ol_cv_db_db_4_2=no
41757 fi
41758 rm -f conftest.err conftest.$ac_objext \
41759       conftest$ac_exeext conftest.$ac_ext
41760
41761         LIBS="$ol_LIBS"
41762
41763 fi
41764 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41765 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41766
41767         if test $ol_cv_db_db_4_2 = yes ; then
41768                 ol_cv_lib_db=-ldb-4-2
41769         fi
41770 fi
41771
41772 if test $ol_cv_lib_db = no ; then
41773         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41774 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41775 if test "${ol_cv_db_db_4+set}" = set; then
41776   echo $ECHO_N "(cached) $ECHO_C" >&6
41777 else
41778
41779         ol_DB_LIB=-ldb-4
41780         ol_LIBS=$LIBS
41781         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41782
41783         cat >conftest.$ac_ext <<_ACEOF
41784 /* confdefs.h.  */
41785 _ACEOF
41786 cat confdefs.h >>conftest.$ac_ext
41787 cat >>conftest.$ac_ext <<_ACEOF
41788 /* end confdefs.h.  */
41789
41790 #ifdef HAVE_DB_185_H
41791 # include <db_185.h>
41792 #else
41793 # include <db.h>
41794 #endif
41795
41796 #ifndef DB_VERSION_MAJOR
41797 # define DB_VERSION_MAJOR 1
41798 #endif
41799
41800 #ifndef NULL
41801 #define NULL ((void*)0)
41802 #endif
41803
41804 int
41805 main ()
41806 {
41807
41808 #if DB_VERSION_MAJOR > 1
41809         {
41810                 char *version;
41811                 int major, minor, patch;
41812
41813                 version = db_version( &major, &minor, &patch );
41814
41815                 if( major != DB_VERSION_MAJOR ||
41816                         minor < DB_VERSION_MINOR )
41817                 {
41818                         printf("Berkeley DB version mismatch\n"
41819                                 "\theader: %s\n\tlibrary: %s\n",
41820                                 DB_VERSION_STRING, version);
41821                         return 1;
41822                 }
41823         }
41824 #endif
41825
41826 #if DB_VERSION_MAJOR > 2
41827         db_env_create( NULL, 0 );
41828 #elif DB_VERSION_MAJOR > 1
41829         db_appexit( NULL );
41830 #else
41831         (void) dbopen( NULL, 0, 0, 0, NULL);
41832 #endif
41833
41834   ;
41835   return 0;
41836 }
41837 _ACEOF
41838 rm -f conftest.$ac_objext conftest$ac_exeext
41839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41840   (eval $ac_link) 2>conftest.er1
41841   ac_status=$?
41842   grep -v '^ *+' conftest.er1 >conftest.err
41843   rm -f conftest.er1
41844   cat conftest.err >&5
41845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846   (exit $ac_status); } &&
41847          { ac_try='test -z "$ac_c_werror_flag"
41848                          || test ! -s conftest.err'
41849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850   (eval $ac_try) 2>&5
41851   ac_status=$?
41852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853   (exit $ac_status); }; } &&
41854          { ac_try='test -s conftest$ac_exeext'
41855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41856   (eval $ac_try) 2>&5
41857   ac_status=$?
41858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41859   (exit $ac_status); }; }; then
41860   ol_cv_db_db_4=yes
41861 else
41862   echo "$as_me: failed program was:" >&5
41863 sed 's/^/| /' conftest.$ac_ext >&5
41864
41865 ol_cv_db_db_4=no
41866 fi
41867 rm -f conftest.err conftest.$ac_objext \
41868       conftest$ac_exeext conftest.$ac_ext
41869
41870         LIBS="$ol_LIBS"
41871
41872 fi
41873 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41874 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41875
41876         if test $ol_cv_db_db_4 = yes ; then
41877                 ol_cv_lib_db=-ldb-4
41878         fi
41879 fi
41880
41881 if test $ol_cv_lib_db = no ; then
41882         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41883 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41884 if test "${ol_cv_db_db4+set}" = set; then
41885   echo $ECHO_N "(cached) $ECHO_C" >&6
41886 else
41887
41888         ol_DB_LIB=-ldb4
41889         ol_LIBS=$LIBS
41890         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41891
41892         cat >conftest.$ac_ext <<_ACEOF
41893 /* confdefs.h.  */
41894 _ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h.  */
41898
41899 #ifdef HAVE_DB_185_H
41900 # include <db_185.h>
41901 #else
41902 # include <db.h>
41903 #endif
41904
41905 #ifndef DB_VERSION_MAJOR
41906 # define DB_VERSION_MAJOR 1
41907 #endif
41908
41909 #ifndef NULL
41910 #define NULL ((void*)0)
41911 #endif
41912
41913 int
41914 main ()
41915 {
41916
41917 #if DB_VERSION_MAJOR > 1
41918         {
41919                 char *version;
41920                 int major, minor, patch;
41921
41922                 version = db_version( &major, &minor, &patch );
41923
41924                 if( major != DB_VERSION_MAJOR ||
41925                         minor < DB_VERSION_MINOR )
41926                 {
41927                         printf("Berkeley DB version mismatch\n"
41928                                 "\theader: %s\n\tlibrary: %s\n",
41929                                 DB_VERSION_STRING, version);
41930                         return 1;
41931                 }
41932         }
41933 #endif
41934
41935 #if DB_VERSION_MAJOR > 2
41936         db_env_create( NULL, 0 );
41937 #elif DB_VERSION_MAJOR > 1
41938         db_appexit( NULL );
41939 #else
41940         (void) dbopen( NULL, 0, 0, 0, NULL);
41941 #endif
41942
41943   ;
41944   return 0;
41945 }
41946 _ACEOF
41947 rm -f conftest.$ac_objext conftest$ac_exeext
41948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41949   (eval $ac_link) 2>conftest.er1
41950   ac_status=$?
41951   grep -v '^ *+' conftest.er1 >conftest.err
41952   rm -f conftest.er1
41953   cat conftest.err >&5
41954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955   (exit $ac_status); } &&
41956          { ac_try='test -z "$ac_c_werror_flag"
41957                          || test ! -s conftest.err'
41958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959   (eval $ac_try) 2>&5
41960   ac_status=$?
41961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962   (exit $ac_status); }; } &&
41963          { ac_try='test -s conftest$ac_exeext'
41964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965   (eval $ac_try) 2>&5
41966   ac_status=$?
41967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968   (exit $ac_status); }; }; then
41969   ol_cv_db_db4=yes
41970 else
41971   echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41973
41974 ol_cv_db_db4=no
41975 fi
41976 rm -f conftest.err conftest.$ac_objext \
41977       conftest$ac_exeext conftest.$ac_ext
41978
41979         LIBS="$ol_LIBS"
41980
41981 fi
41982 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41983 echo "${ECHO_T}$ol_cv_db_db4" >&6
41984
41985         if test $ol_cv_db_db4 = yes ; then
41986                 ol_cv_lib_db=-ldb4
41987         fi
41988 fi
41989
41990 if test $ol_cv_lib_db = no ; then
41991         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41992 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41993 if test "${ol_cv_db_db+set}" = set; then
41994   echo $ECHO_N "(cached) $ECHO_C" >&6
41995 else
41996
41997         ol_DB_LIB=-ldb
41998         ol_LIBS=$LIBS
41999         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42000
42001         cat >conftest.$ac_ext <<_ACEOF
42002 /* confdefs.h.  */
42003 _ACEOF
42004 cat confdefs.h >>conftest.$ac_ext
42005 cat >>conftest.$ac_ext <<_ACEOF
42006 /* end confdefs.h.  */
42007
42008 #ifdef HAVE_DB_185_H
42009 # include <db_185.h>
42010 #else
42011 # include <db.h>
42012 #endif
42013
42014 #ifndef DB_VERSION_MAJOR
42015 # define DB_VERSION_MAJOR 1
42016 #endif
42017
42018 #ifndef NULL
42019 #define NULL ((void*)0)
42020 #endif
42021
42022 int
42023 main ()
42024 {
42025
42026 #if DB_VERSION_MAJOR > 1
42027         {
42028                 char *version;
42029                 int major, minor, patch;
42030
42031                 version = db_version( &major, &minor, &patch );
42032
42033                 if( major != DB_VERSION_MAJOR ||
42034                         minor < DB_VERSION_MINOR )
42035                 {
42036                         printf("Berkeley DB version mismatch\n"
42037                                 "\theader: %s\n\tlibrary: %s\n",
42038                                 DB_VERSION_STRING, version);
42039                         return 1;
42040                 }
42041         }
42042 #endif
42043
42044 #if DB_VERSION_MAJOR > 2
42045         db_env_create( NULL, 0 );
42046 #elif DB_VERSION_MAJOR > 1
42047         db_appexit( NULL );
42048 #else
42049         (void) dbopen( NULL, 0, 0, 0, NULL);
42050 #endif
42051
42052   ;
42053   return 0;
42054 }
42055 _ACEOF
42056 rm -f conftest.$ac_objext conftest$ac_exeext
42057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42058   (eval $ac_link) 2>conftest.er1
42059   ac_status=$?
42060   grep -v '^ *+' conftest.er1 >conftest.err
42061   rm -f conftest.er1
42062   cat conftest.err >&5
42063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064   (exit $ac_status); } &&
42065          { ac_try='test -z "$ac_c_werror_flag"
42066                          || test ! -s conftest.err'
42067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068   (eval $ac_try) 2>&5
42069   ac_status=$?
42070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071   (exit $ac_status); }; } &&
42072          { ac_try='test -s conftest$ac_exeext'
42073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42074   (eval $ac_try) 2>&5
42075   ac_status=$?
42076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077   (exit $ac_status); }; }; then
42078   ol_cv_db_db=yes
42079 else
42080   echo "$as_me: failed program was:" >&5
42081 sed 's/^/| /' conftest.$ac_ext >&5
42082
42083 ol_cv_db_db=no
42084 fi
42085 rm -f conftest.err conftest.$ac_objext \
42086       conftest$ac_exeext conftest.$ac_ext
42087
42088         LIBS="$ol_LIBS"
42089
42090 fi
42091 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42092 echo "${ECHO_T}$ol_cv_db_db" >&6
42093
42094         if test $ol_cv_db_db = yes ; then
42095                 ol_cv_lib_db=-ldb
42096         fi
42097 fi
42098
42099 if test $ol_cv_lib_db = no ; then
42100         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42101 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42102 if test "${ol_cv_db_db41+set}" = set; then
42103   echo $ECHO_N "(cached) $ECHO_C" >&6
42104 else
42105
42106         ol_DB_LIB=-ldb41
42107         ol_LIBS=$LIBS
42108         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42109
42110         cat >conftest.$ac_ext <<_ACEOF
42111 /* confdefs.h.  */
42112 _ACEOF
42113 cat confdefs.h >>conftest.$ac_ext
42114 cat >>conftest.$ac_ext <<_ACEOF
42115 /* end confdefs.h.  */
42116
42117 #ifdef HAVE_DB_185_H
42118 # include <db_185.h>
42119 #else
42120 # include <db.h>
42121 #endif
42122
42123 #ifndef DB_VERSION_MAJOR
42124 # define DB_VERSION_MAJOR 1
42125 #endif
42126
42127 #ifndef NULL
42128 #define NULL ((void*)0)
42129 #endif
42130
42131 int
42132 main ()
42133 {
42134
42135 #if DB_VERSION_MAJOR > 1
42136         {
42137                 char *version;
42138                 int major, minor, patch;
42139
42140                 version = db_version( &major, &minor, &patch );
42141
42142                 if( major != DB_VERSION_MAJOR ||
42143                         minor < DB_VERSION_MINOR )
42144                 {
42145                         printf("Berkeley DB version mismatch\n"
42146                                 "\theader: %s\n\tlibrary: %s\n",
42147                                 DB_VERSION_STRING, version);
42148                         return 1;
42149                 }
42150         }
42151 #endif
42152
42153 #if DB_VERSION_MAJOR > 2
42154         db_env_create( NULL, 0 );
42155 #elif DB_VERSION_MAJOR > 1
42156         db_appexit( NULL );
42157 #else
42158         (void) dbopen( NULL, 0, 0, 0, NULL);
42159 #endif
42160
42161   ;
42162   return 0;
42163 }
42164 _ACEOF
42165 rm -f conftest.$ac_objext conftest$ac_exeext
42166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42167   (eval $ac_link) 2>conftest.er1
42168   ac_status=$?
42169   grep -v '^ *+' conftest.er1 >conftest.err
42170   rm -f conftest.er1
42171   cat conftest.err >&5
42172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42173   (exit $ac_status); } &&
42174          { ac_try='test -z "$ac_c_werror_flag"
42175                          || test ! -s conftest.err'
42176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42177   (eval $ac_try) 2>&5
42178   ac_status=$?
42179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42180   (exit $ac_status); }; } &&
42181          { ac_try='test -s conftest$ac_exeext'
42182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42183   (eval $ac_try) 2>&5
42184   ac_status=$?
42185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186   (exit $ac_status); }; }; then
42187   ol_cv_db_db41=yes
42188 else
42189   echo "$as_me: failed program was:" >&5
42190 sed 's/^/| /' conftest.$ac_ext >&5
42191
42192 ol_cv_db_db41=no
42193 fi
42194 rm -f conftest.err conftest.$ac_objext \
42195       conftest$ac_exeext conftest.$ac_ext
42196
42197         LIBS="$ol_LIBS"
42198
42199 fi
42200 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42201 echo "${ECHO_T}$ol_cv_db_db41" >&6
42202
42203         if test $ol_cv_db_db41 = yes ; then
42204                 ol_cv_lib_db=-ldb41
42205         fi
42206 fi
42207
42208 if test $ol_cv_lib_db = no ; then
42209         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42210 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42211 if test "${ol_cv_db_db_41+set}" = set; then
42212   echo $ECHO_N "(cached) $ECHO_C" >&6
42213 else
42214
42215         ol_DB_LIB=-ldb-41
42216         ol_LIBS=$LIBS
42217         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42218
42219         cat >conftest.$ac_ext <<_ACEOF
42220 /* confdefs.h.  */
42221 _ACEOF
42222 cat confdefs.h >>conftest.$ac_ext
42223 cat >>conftest.$ac_ext <<_ACEOF
42224 /* end confdefs.h.  */
42225
42226 #ifdef HAVE_DB_185_H
42227 # include <db_185.h>
42228 #else
42229 # include <db.h>
42230 #endif
42231
42232 #ifndef DB_VERSION_MAJOR
42233 # define DB_VERSION_MAJOR 1
42234 #endif
42235
42236 #ifndef NULL
42237 #define NULL ((void*)0)
42238 #endif
42239
42240 int
42241 main ()
42242 {
42243
42244 #if DB_VERSION_MAJOR > 1
42245         {
42246                 char *version;
42247                 int major, minor, patch;
42248
42249                 version = db_version( &major, &minor, &patch );
42250
42251                 if( major != DB_VERSION_MAJOR ||
42252                         minor < DB_VERSION_MINOR )
42253                 {
42254                         printf("Berkeley DB version mismatch\n"
42255                                 "\theader: %s\n\tlibrary: %s\n",
42256                                 DB_VERSION_STRING, version);
42257                         return 1;
42258                 }
42259         }
42260 #endif
42261
42262 #if DB_VERSION_MAJOR > 2
42263         db_env_create( NULL, 0 );
42264 #elif DB_VERSION_MAJOR > 1
42265         db_appexit( NULL );
42266 #else
42267         (void) dbopen( NULL, 0, 0, 0, NULL);
42268 #endif
42269
42270   ;
42271   return 0;
42272 }
42273 _ACEOF
42274 rm -f conftest.$ac_objext conftest$ac_exeext
42275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42276   (eval $ac_link) 2>conftest.er1
42277   ac_status=$?
42278   grep -v '^ *+' conftest.er1 >conftest.err
42279   rm -f conftest.er1
42280   cat conftest.err >&5
42281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282   (exit $ac_status); } &&
42283          { ac_try='test -z "$ac_c_werror_flag"
42284                          || test ! -s conftest.err'
42285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42286   (eval $ac_try) 2>&5
42287   ac_status=$?
42288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42289   (exit $ac_status); }; } &&
42290          { ac_try='test -s conftest$ac_exeext'
42291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42292   (eval $ac_try) 2>&5
42293   ac_status=$?
42294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295   (exit $ac_status); }; }; then
42296   ol_cv_db_db_41=yes
42297 else
42298   echo "$as_me: failed program was:" >&5
42299 sed 's/^/| /' conftest.$ac_ext >&5
42300
42301 ol_cv_db_db_41=no
42302 fi
42303 rm -f conftest.err conftest.$ac_objext \
42304       conftest$ac_exeext conftest.$ac_ext
42305
42306         LIBS="$ol_LIBS"
42307
42308 fi
42309 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42310 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42311
42312         if test $ol_cv_db_db_41 = yes ; then
42313                 ol_cv_lib_db=-ldb-41
42314         fi
42315 fi
42316
42317 if test $ol_cv_lib_db = no ; then
42318         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42319 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42320 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42321   echo $ECHO_N "(cached) $ECHO_C" >&6
42322 else
42323
42324         ol_DB_LIB=-ldb-4.1
42325         ol_LIBS=$LIBS
42326         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42327
42328         cat >conftest.$ac_ext <<_ACEOF
42329 /* confdefs.h.  */
42330 _ACEOF
42331 cat confdefs.h >>conftest.$ac_ext
42332 cat >>conftest.$ac_ext <<_ACEOF
42333 /* end confdefs.h.  */
42334
42335 #ifdef HAVE_DB_185_H
42336 # include <db_185.h>
42337 #else
42338 # include <db.h>
42339 #endif
42340
42341 #ifndef DB_VERSION_MAJOR
42342 # define DB_VERSION_MAJOR 1
42343 #endif
42344
42345 #ifndef NULL
42346 #define NULL ((void*)0)
42347 #endif
42348
42349 int
42350 main ()
42351 {
42352
42353 #if DB_VERSION_MAJOR > 1
42354         {
42355                 char *version;
42356                 int major, minor, patch;
42357
42358                 version = db_version( &major, &minor, &patch );
42359
42360                 if( major != DB_VERSION_MAJOR ||
42361                         minor < DB_VERSION_MINOR )
42362                 {
42363                         printf("Berkeley DB version mismatch\n"
42364                                 "\theader: %s\n\tlibrary: %s\n",
42365                                 DB_VERSION_STRING, version);
42366                         return 1;
42367                 }
42368         }
42369 #endif
42370
42371 #if DB_VERSION_MAJOR > 2
42372         db_env_create( NULL, 0 );
42373 #elif DB_VERSION_MAJOR > 1
42374         db_appexit( NULL );
42375 #else
42376         (void) dbopen( NULL, 0, 0, 0, NULL);
42377 #endif
42378
42379   ;
42380   return 0;
42381 }
42382 _ACEOF
42383 rm -f conftest.$ac_objext conftest$ac_exeext
42384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42385   (eval $ac_link) 2>conftest.er1
42386   ac_status=$?
42387   grep -v '^ *+' conftest.er1 >conftest.err
42388   rm -f conftest.er1
42389   cat conftest.err >&5
42390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42391   (exit $ac_status); } &&
42392          { ac_try='test -z "$ac_c_werror_flag"
42393                          || test ! -s conftest.err'
42394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395   (eval $ac_try) 2>&5
42396   ac_status=$?
42397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398   (exit $ac_status); }; } &&
42399          { ac_try='test -s conftest$ac_exeext'
42400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401   (eval $ac_try) 2>&5
42402   ac_status=$?
42403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404   (exit $ac_status); }; }; then
42405   ol_cv_db_db_4_dot_1=yes
42406 else
42407   echo "$as_me: failed program was:" >&5
42408 sed 's/^/| /' conftest.$ac_ext >&5
42409
42410 ol_cv_db_db_4_dot_1=no
42411 fi
42412 rm -f conftest.err conftest.$ac_objext \
42413       conftest$ac_exeext conftest.$ac_ext
42414
42415         LIBS="$ol_LIBS"
42416
42417 fi
42418 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42419 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42420
42421         if test $ol_cv_db_db_4_dot_1 = yes ; then
42422                 ol_cv_lib_db=-ldb-4.1
42423         fi
42424 fi
42425
42426 if test $ol_cv_lib_db = no ; then
42427         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42428 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42429 if test "${ol_cv_db_db_4_1+set}" = set; then
42430   echo $ECHO_N "(cached) $ECHO_C" >&6
42431 else
42432
42433         ol_DB_LIB=-ldb-4-1
42434         ol_LIBS=$LIBS
42435         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42436
42437         cat >conftest.$ac_ext <<_ACEOF
42438 /* confdefs.h.  */
42439 _ACEOF
42440 cat confdefs.h >>conftest.$ac_ext
42441 cat >>conftest.$ac_ext <<_ACEOF
42442 /* end confdefs.h.  */
42443
42444 #ifdef HAVE_DB_185_H
42445 # include <db_185.h>
42446 #else
42447 # include <db.h>
42448 #endif
42449
42450 #ifndef DB_VERSION_MAJOR
42451 # define DB_VERSION_MAJOR 1
42452 #endif
42453
42454 #ifndef NULL
42455 #define NULL ((void*)0)
42456 #endif
42457
42458 int
42459 main ()
42460 {
42461
42462 #if DB_VERSION_MAJOR > 1
42463         {
42464                 char *version;
42465                 int major, minor, patch;
42466
42467                 version = db_version( &major, &minor, &patch );
42468
42469                 if( major != DB_VERSION_MAJOR ||
42470                         minor < DB_VERSION_MINOR )
42471                 {
42472                         printf("Berkeley DB version mismatch\n"
42473                                 "\theader: %s\n\tlibrary: %s\n",
42474                                 DB_VERSION_STRING, version);
42475                         return 1;
42476                 }
42477         }
42478 #endif
42479
42480 #if DB_VERSION_MAJOR > 2
42481         db_env_create( NULL, 0 );
42482 #elif DB_VERSION_MAJOR > 1
42483         db_appexit( NULL );
42484 #else
42485         (void) dbopen( NULL, 0, 0, 0, NULL);
42486 #endif
42487
42488   ;
42489   return 0;
42490 }
42491 _ACEOF
42492 rm -f conftest.$ac_objext conftest$ac_exeext
42493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42494   (eval $ac_link) 2>conftest.er1
42495   ac_status=$?
42496   grep -v '^ *+' conftest.er1 >conftest.err
42497   rm -f conftest.er1
42498   cat conftest.err >&5
42499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500   (exit $ac_status); } &&
42501          { ac_try='test -z "$ac_c_werror_flag"
42502                          || test ! -s conftest.err'
42503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42504   (eval $ac_try) 2>&5
42505   ac_status=$?
42506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507   (exit $ac_status); }; } &&
42508          { ac_try='test -s conftest$ac_exeext'
42509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42510   (eval $ac_try) 2>&5
42511   ac_status=$?
42512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42513   (exit $ac_status); }; }; then
42514   ol_cv_db_db_4_1=yes
42515 else
42516   echo "$as_me: failed program was:" >&5
42517 sed 's/^/| /' conftest.$ac_ext >&5
42518
42519 ol_cv_db_db_4_1=no
42520 fi
42521 rm -f conftest.err conftest.$ac_objext \
42522       conftest$ac_exeext conftest.$ac_ext
42523
42524         LIBS="$ol_LIBS"
42525
42526 fi
42527 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42528 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42529
42530         if test $ol_cv_db_db_4_1 = yes ; then
42531                 ol_cv_lib_db=-ldb-4-1
42532         fi
42533 fi
42534
42535 if test $ol_cv_lib_db = no ; then
42536         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42537 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42538 if test "${ol_cv_db_db3+set}" = set; then
42539   echo $ECHO_N "(cached) $ECHO_C" >&6
42540 else
42541
42542         ol_DB_LIB=-ldb3
42543         ol_LIBS=$LIBS
42544         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42545
42546         cat >conftest.$ac_ext <<_ACEOF
42547 /* confdefs.h.  */
42548 _ACEOF
42549 cat confdefs.h >>conftest.$ac_ext
42550 cat >>conftest.$ac_ext <<_ACEOF
42551 /* end confdefs.h.  */
42552
42553 #ifdef HAVE_DB_185_H
42554 # include <db_185.h>
42555 #else
42556 # include <db.h>
42557 #endif
42558
42559 #ifndef DB_VERSION_MAJOR
42560 # define DB_VERSION_MAJOR 1
42561 #endif
42562
42563 #ifndef NULL
42564 #define NULL ((void*)0)
42565 #endif
42566
42567 int
42568 main ()
42569 {
42570
42571 #if DB_VERSION_MAJOR > 1
42572         {
42573                 char *version;
42574                 int major, minor, patch;
42575
42576                 version = db_version( &major, &minor, &patch );
42577
42578                 if( major != DB_VERSION_MAJOR ||
42579                         minor < DB_VERSION_MINOR )
42580                 {
42581                         printf("Berkeley DB version mismatch\n"
42582                                 "\theader: %s\n\tlibrary: %s\n",
42583                                 DB_VERSION_STRING, version);
42584                         return 1;
42585                 }
42586         }
42587 #endif
42588
42589 #if DB_VERSION_MAJOR > 2
42590         db_env_create( NULL, 0 );
42591 #elif DB_VERSION_MAJOR > 1
42592         db_appexit( NULL );
42593 #else
42594         (void) dbopen( NULL, 0, 0, 0, NULL);
42595 #endif
42596
42597   ;
42598   return 0;
42599 }
42600 _ACEOF
42601 rm -f conftest.$ac_objext conftest$ac_exeext
42602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42603   (eval $ac_link) 2>conftest.er1
42604   ac_status=$?
42605   grep -v '^ *+' conftest.er1 >conftest.err
42606   rm -f conftest.er1
42607   cat conftest.err >&5
42608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609   (exit $ac_status); } &&
42610          { ac_try='test -z "$ac_c_werror_flag"
42611                          || test ! -s conftest.err'
42612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42613   (eval $ac_try) 2>&5
42614   ac_status=$?
42615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616   (exit $ac_status); }; } &&
42617          { ac_try='test -s conftest$ac_exeext'
42618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42619   (eval $ac_try) 2>&5
42620   ac_status=$?
42621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622   (exit $ac_status); }; }; then
42623   ol_cv_db_db3=yes
42624 else
42625   echo "$as_me: failed program was:" >&5
42626 sed 's/^/| /' conftest.$ac_ext >&5
42627
42628 ol_cv_db_db3=no
42629 fi
42630 rm -f conftest.err conftest.$ac_objext \
42631       conftest$ac_exeext conftest.$ac_ext
42632
42633         LIBS="$ol_LIBS"
42634
42635 fi
42636 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42637 echo "${ECHO_T}$ol_cv_db_db3" >&6
42638
42639         if test $ol_cv_db_db3 = yes ; then
42640                 ol_cv_lib_db=-ldb3
42641         fi
42642 fi
42643
42644 if test $ol_cv_lib_db = no ; then
42645         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42646 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42647 if test "${ol_cv_db_db_3+set}" = set; then
42648   echo $ECHO_N "(cached) $ECHO_C" >&6
42649 else
42650
42651         ol_DB_LIB=-ldb-3
42652         ol_LIBS=$LIBS
42653         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42654
42655         cat >conftest.$ac_ext <<_ACEOF
42656 /* confdefs.h.  */
42657 _ACEOF
42658 cat confdefs.h >>conftest.$ac_ext
42659 cat >>conftest.$ac_ext <<_ACEOF
42660 /* end confdefs.h.  */
42661
42662 #ifdef HAVE_DB_185_H
42663 # include <db_185.h>
42664 #else
42665 # include <db.h>
42666 #endif
42667
42668 #ifndef DB_VERSION_MAJOR
42669 # define DB_VERSION_MAJOR 1
42670 #endif
42671
42672 #ifndef NULL
42673 #define NULL ((void*)0)
42674 #endif
42675
42676 int
42677 main ()
42678 {
42679
42680 #if DB_VERSION_MAJOR > 1
42681         {
42682                 char *version;
42683                 int major, minor, patch;
42684
42685                 version = db_version( &major, &minor, &patch );
42686
42687                 if( major != DB_VERSION_MAJOR ||
42688                         minor < DB_VERSION_MINOR )
42689                 {
42690                         printf("Berkeley DB version mismatch\n"
42691                                 "\theader: %s\n\tlibrary: %s\n",
42692                                 DB_VERSION_STRING, version);
42693                         return 1;
42694                 }
42695         }
42696 #endif
42697
42698 #if DB_VERSION_MAJOR > 2
42699         db_env_create( NULL, 0 );
42700 #elif DB_VERSION_MAJOR > 1
42701         db_appexit( NULL );
42702 #else
42703         (void) dbopen( NULL, 0, 0, 0, NULL);
42704 #endif
42705
42706   ;
42707   return 0;
42708 }
42709 _ACEOF
42710 rm -f conftest.$ac_objext conftest$ac_exeext
42711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42712   (eval $ac_link) 2>conftest.er1
42713   ac_status=$?
42714   grep -v '^ *+' conftest.er1 >conftest.err
42715   rm -f conftest.er1
42716   cat conftest.err >&5
42717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718   (exit $ac_status); } &&
42719          { ac_try='test -z "$ac_c_werror_flag"
42720                          || test ! -s conftest.err'
42721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42722   (eval $ac_try) 2>&5
42723   ac_status=$?
42724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725   (exit $ac_status); }; } &&
42726          { ac_try='test -s conftest$ac_exeext'
42727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728   (eval $ac_try) 2>&5
42729   ac_status=$?
42730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731   (exit $ac_status); }; }; then
42732   ol_cv_db_db_3=yes
42733 else
42734   echo "$as_me: failed program was:" >&5
42735 sed 's/^/| /' conftest.$ac_ext >&5
42736
42737 ol_cv_db_db_3=no
42738 fi
42739 rm -f conftest.err conftest.$ac_objext \
42740       conftest$ac_exeext conftest.$ac_ext
42741
42742         LIBS="$ol_LIBS"
42743
42744 fi
42745 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42746 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42747
42748         if test $ol_cv_db_db_3 = yes ; then
42749                 ol_cv_lib_db=-ldb-3
42750         fi
42751 fi
42752
42753 if test $ol_cv_lib_db = no ; then
42754         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42755 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42756 if test "${ol_cv_db_db2+set}" = set; then
42757   echo $ECHO_N "(cached) $ECHO_C" >&6
42758 else
42759
42760         ol_DB_LIB=-ldb2
42761         ol_LIBS=$LIBS
42762         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42763
42764         cat >conftest.$ac_ext <<_ACEOF
42765 /* confdefs.h.  */
42766 _ACEOF
42767 cat confdefs.h >>conftest.$ac_ext
42768 cat >>conftest.$ac_ext <<_ACEOF
42769 /* end confdefs.h.  */
42770
42771 #ifdef HAVE_DB_185_H
42772 # include <db_185.h>
42773 #else
42774 # include <db.h>
42775 #endif
42776
42777 #ifndef DB_VERSION_MAJOR
42778 # define DB_VERSION_MAJOR 1
42779 #endif
42780
42781 #ifndef NULL
42782 #define NULL ((void*)0)
42783 #endif
42784
42785 int
42786 main ()
42787 {
42788
42789 #if DB_VERSION_MAJOR > 1
42790         {
42791                 char *version;
42792                 int major, minor, patch;
42793
42794                 version = db_version( &major, &minor, &patch );
42795
42796                 if( major != DB_VERSION_MAJOR ||
42797                         minor < DB_VERSION_MINOR )
42798                 {
42799                         printf("Berkeley DB version mismatch\n"
42800                                 "\theader: %s\n\tlibrary: %s\n",
42801                                 DB_VERSION_STRING, version);
42802                         return 1;
42803                 }
42804         }
42805 #endif
42806
42807 #if DB_VERSION_MAJOR > 2
42808         db_env_create( NULL, 0 );
42809 #elif DB_VERSION_MAJOR > 1
42810         db_appexit( NULL );
42811 #else
42812         (void) dbopen( NULL, 0, 0, 0, NULL);
42813 #endif
42814
42815   ;
42816   return 0;
42817 }
42818 _ACEOF
42819 rm -f conftest.$ac_objext conftest$ac_exeext
42820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42821   (eval $ac_link) 2>conftest.er1
42822   ac_status=$?
42823   grep -v '^ *+' conftest.er1 >conftest.err
42824   rm -f conftest.er1
42825   cat conftest.err >&5
42826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42827   (exit $ac_status); } &&
42828          { ac_try='test -z "$ac_c_werror_flag"
42829                          || test ! -s conftest.err'
42830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42831   (eval $ac_try) 2>&5
42832   ac_status=$?
42833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834   (exit $ac_status); }; } &&
42835          { ac_try='test -s conftest$ac_exeext'
42836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42837   (eval $ac_try) 2>&5
42838   ac_status=$?
42839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840   (exit $ac_status); }; }; then
42841   ol_cv_db_db2=yes
42842 else
42843   echo "$as_me: failed program was:" >&5
42844 sed 's/^/| /' conftest.$ac_ext >&5
42845
42846 ol_cv_db_db2=no
42847 fi
42848 rm -f conftest.err conftest.$ac_objext \
42849       conftest$ac_exeext conftest.$ac_ext
42850
42851         LIBS="$ol_LIBS"
42852
42853 fi
42854 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42855 echo "${ECHO_T}$ol_cv_db_db2" >&6
42856
42857         if test $ol_cv_db_db2 = yes ; then
42858                 ol_cv_lib_db=-ldb2
42859         fi
42860 fi
42861
42862 if test $ol_cv_lib_db = no ; then
42863         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42864 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42865 if test "${ol_cv_db_db_2+set}" = set; then
42866   echo $ECHO_N "(cached) $ECHO_C" >&6
42867 else
42868
42869         ol_DB_LIB=-ldb-2
42870         ol_LIBS=$LIBS
42871         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42872
42873         cat >conftest.$ac_ext <<_ACEOF
42874 /* confdefs.h.  */
42875 _ACEOF
42876 cat confdefs.h >>conftest.$ac_ext
42877 cat >>conftest.$ac_ext <<_ACEOF
42878 /* end confdefs.h.  */
42879
42880 #ifdef HAVE_DB_185_H
42881 # include <db_185.h>
42882 #else
42883 # include <db.h>
42884 #endif
42885
42886 #ifndef DB_VERSION_MAJOR
42887 # define DB_VERSION_MAJOR 1
42888 #endif
42889
42890 #ifndef NULL
42891 #define NULL ((void*)0)
42892 #endif
42893
42894 int
42895 main ()
42896 {
42897
42898 #if DB_VERSION_MAJOR > 1
42899         {
42900                 char *version;
42901                 int major, minor, patch;
42902
42903                 version = db_version( &major, &minor, &patch );
42904
42905                 if( major != DB_VERSION_MAJOR ||
42906                         minor < DB_VERSION_MINOR )
42907                 {
42908                         printf("Berkeley DB version mismatch\n"
42909                                 "\theader: %s\n\tlibrary: %s\n",
42910                                 DB_VERSION_STRING, version);
42911                         return 1;
42912                 }
42913         }
42914 #endif
42915
42916 #if DB_VERSION_MAJOR > 2
42917         db_env_create( NULL, 0 );
42918 #elif DB_VERSION_MAJOR > 1
42919         db_appexit( NULL );
42920 #else
42921         (void) dbopen( NULL, 0, 0, 0, NULL);
42922 #endif
42923
42924   ;
42925   return 0;
42926 }
42927 _ACEOF
42928 rm -f conftest.$ac_objext conftest$ac_exeext
42929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42930   (eval $ac_link) 2>conftest.er1
42931   ac_status=$?
42932   grep -v '^ *+' conftest.er1 >conftest.err
42933   rm -f conftest.er1
42934   cat conftest.err >&5
42935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936   (exit $ac_status); } &&
42937          { ac_try='test -z "$ac_c_werror_flag"
42938                          || test ! -s conftest.err'
42939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42940   (eval $ac_try) 2>&5
42941   ac_status=$?
42942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42943   (exit $ac_status); }; } &&
42944          { ac_try='test -s conftest$ac_exeext'
42945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42946   (eval $ac_try) 2>&5
42947   ac_status=$?
42948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42949   (exit $ac_status); }; }; then
42950   ol_cv_db_db_2=yes
42951 else
42952   echo "$as_me: failed program was:" >&5
42953 sed 's/^/| /' conftest.$ac_ext >&5
42954
42955 ol_cv_db_db_2=no
42956 fi
42957 rm -f conftest.err conftest.$ac_objext \
42958       conftest$ac_exeext conftest.$ac_ext
42959
42960         LIBS="$ol_LIBS"
42961
42962 fi
42963 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42964 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42965
42966         if test $ol_cv_db_db_2 = yes ; then
42967                 ol_cv_lib_db=-ldb-2
42968         fi
42969 fi
42970
42971 if test $ol_cv_lib_db = no ; then
42972         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42973 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42974 if test "${ol_cv_db_db1+set}" = set; then
42975   echo $ECHO_N "(cached) $ECHO_C" >&6
42976 else
42977
42978         ol_DB_LIB=-ldb1
42979         ol_LIBS=$LIBS
42980         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42981
42982         cat >conftest.$ac_ext <<_ACEOF
42983 /* confdefs.h.  */
42984 _ACEOF
42985 cat confdefs.h >>conftest.$ac_ext
42986 cat >>conftest.$ac_ext <<_ACEOF
42987 /* end confdefs.h.  */
42988
42989 #ifdef HAVE_DB_185_H
42990 # include <db_185.h>
42991 #else
42992 # include <db.h>
42993 #endif
42994
42995 #ifndef DB_VERSION_MAJOR
42996 # define DB_VERSION_MAJOR 1
42997 #endif
42998
42999 #ifndef NULL
43000 #define NULL ((void*)0)
43001 #endif
43002
43003 int
43004 main ()
43005 {
43006
43007 #if DB_VERSION_MAJOR > 1
43008         {
43009                 char *version;
43010                 int major, minor, patch;
43011
43012                 version = db_version( &major, &minor, &patch );
43013
43014                 if( major != DB_VERSION_MAJOR ||
43015                         minor < DB_VERSION_MINOR )
43016                 {
43017                         printf("Berkeley DB version mismatch\n"
43018                                 "\theader: %s\n\tlibrary: %s\n",
43019                                 DB_VERSION_STRING, version);
43020                         return 1;
43021                 }
43022         }
43023 #endif
43024
43025 #if DB_VERSION_MAJOR > 2
43026         db_env_create( NULL, 0 );
43027 #elif DB_VERSION_MAJOR > 1
43028         db_appexit( NULL );
43029 #else
43030         (void) dbopen( NULL, 0, 0, 0, NULL);
43031 #endif
43032
43033   ;
43034   return 0;
43035 }
43036 _ACEOF
43037 rm -f conftest.$ac_objext conftest$ac_exeext
43038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43039   (eval $ac_link) 2>conftest.er1
43040   ac_status=$?
43041   grep -v '^ *+' conftest.er1 >conftest.err
43042   rm -f conftest.er1
43043   cat conftest.err >&5
43044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43045   (exit $ac_status); } &&
43046          { ac_try='test -z "$ac_c_werror_flag"
43047                          || test ! -s conftest.err'
43048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43049   (eval $ac_try) 2>&5
43050   ac_status=$?
43051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052   (exit $ac_status); }; } &&
43053          { ac_try='test -s conftest$ac_exeext'
43054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43055   (eval $ac_try) 2>&5
43056   ac_status=$?
43057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058   (exit $ac_status); }; }; then
43059   ol_cv_db_db1=yes
43060 else
43061   echo "$as_me: failed program was:" >&5
43062 sed 's/^/| /' conftest.$ac_ext >&5
43063
43064 ol_cv_db_db1=no
43065 fi
43066 rm -f conftest.err conftest.$ac_objext \
43067       conftest$ac_exeext conftest.$ac_ext
43068
43069         LIBS="$ol_LIBS"
43070
43071 fi
43072 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
43073 echo "${ECHO_T}$ol_cv_db_db1" >&6
43074
43075         if test $ol_cv_db_db1 = yes ; then
43076                 ol_cv_lib_db=-ldb1
43077         fi
43078 fi
43079
43080 if test $ol_cv_lib_db = no ; then
43081         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43082 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43083 if test "${ol_cv_db_db_1+set}" = set; then
43084   echo $ECHO_N "(cached) $ECHO_C" >&6
43085 else
43086
43087         ol_DB_LIB=-ldb-1
43088         ol_LIBS=$LIBS
43089         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43090
43091         cat >conftest.$ac_ext <<_ACEOF
43092 /* confdefs.h.  */
43093 _ACEOF
43094 cat confdefs.h >>conftest.$ac_ext
43095 cat >>conftest.$ac_ext <<_ACEOF
43096 /* end confdefs.h.  */
43097
43098 #ifdef HAVE_DB_185_H
43099 # include <db_185.h>
43100 #else
43101 # include <db.h>
43102 #endif
43103
43104 #ifndef DB_VERSION_MAJOR
43105 # define DB_VERSION_MAJOR 1
43106 #endif
43107
43108 #ifndef NULL
43109 #define NULL ((void*)0)
43110 #endif
43111
43112 int
43113 main ()
43114 {
43115
43116 #if DB_VERSION_MAJOR > 1
43117         {
43118                 char *version;
43119                 int major, minor, patch;
43120
43121                 version = db_version( &major, &minor, &patch );
43122
43123                 if( major != DB_VERSION_MAJOR ||
43124                         minor < DB_VERSION_MINOR )
43125                 {
43126                         printf("Berkeley DB version mismatch\n"
43127                                 "\theader: %s\n\tlibrary: %s\n",
43128                                 DB_VERSION_STRING, version);
43129                         return 1;
43130                 }
43131         }
43132 #endif
43133
43134 #if DB_VERSION_MAJOR > 2
43135         db_env_create( NULL, 0 );
43136 #elif DB_VERSION_MAJOR > 1
43137         db_appexit( NULL );
43138 #else
43139         (void) dbopen( NULL, 0, 0, 0, NULL);
43140 #endif
43141
43142   ;
43143   return 0;
43144 }
43145 _ACEOF
43146 rm -f conftest.$ac_objext conftest$ac_exeext
43147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43148   (eval $ac_link) 2>conftest.er1
43149   ac_status=$?
43150   grep -v '^ *+' conftest.er1 >conftest.err
43151   rm -f conftest.er1
43152   cat conftest.err >&5
43153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154   (exit $ac_status); } &&
43155          { ac_try='test -z "$ac_c_werror_flag"
43156                          || test ! -s conftest.err'
43157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43158   (eval $ac_try) 2>&5
43159   ac_status=$?
43160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43161   (exit $ac_status); }; } &&
43162          { ac_try='test -s conftest$ac_exeext'
43163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43164   (eval $ac_try) 2>&5
43165   ac_status=$?
43166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43167   (exit $ac_status); }; }; then
43168   ol_cv_db_db_1=yes
43169 else
43170   echo "$as_me: failed program was:" >&5
43171 sed 's/^/| /' conftest.$ac_ext >&5
43172
43173 ol_cv_db_db_1=no
43174 fi
43175 rm -f conftest.err conftest.$ac_objext \
43176       conftest$ac_exeext conftest.$ac_ext
43177
43178         LIBS="$ol_LIBS"
43179
43180 fi
43181 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43182 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43183
43184         if test $ol_cv_db_db_1 = yes ; then
43185                 ol_cv_lib_db=-ldb-1
43186         fi
43187 fi
43188
43189
43190         if test "$ol_cv_lib_db" != no ; then
43191                 ol_cv_berkeley_db=yes
43192                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43193 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43194 if test "${ol_cv_berkeley_db_version+set}" = set; then
43195   echo $ECHO_N "(cached) $ECHO_C" >&6
43196 else
43197
43198         ol_LIBS="$LIBS"
43199         LIBS="$LTHREAD_LIBS $LIBS"
43200         if test $ol_cv_lib_db != yes ; then
43201                 LIBS="$ol_cv_lib_db $LIBS"
43202         fi
43203
43204         if test "$cross_compiling" = yes; then
43205   ol_cv_berkeley_db_version=cross
43206 else
43207   cat >conftest.$ac_ext <<_ACEOF
43208 /* confdefs.h.  */
43209 _ACEOF
43210 cat confdefs.h >>conftest.$ac_ext
43211 cat >>conftest.$ac_ext <<_ACEOF
43212 /* end confdefs.h.  */
43213
43214 #ifdef HAVE_DB_185_H
43215         choke me;
43216 #else
43217 #include <db.h>
43218 #endif
43219 #ifndef DB_VERSION_MAJOR
43220 # define DB_VERSION_MAJOR 1
43221 #endif
43222 #ifndef NULL
43223 #define NULL ((void *)0)
43224 #endif
43225 main()
43226 {
43227 #if DB_VERSION_MAJOR > 1
43228         char *version;
43229         int major, minor, patch;
43230
43231         version = db_version( &major, &minor, &patch );
43232
43233         if( major != DB_VERSION_MAJOR ||
43234                 minor != DB_VERSION_MINOR ||
43235                 patch != DB_VERSION_PATCH )
43236         {
43237                 printf("Berkeley DB version mismatch\n"
43238                         "\theader: %s\n\tlibrary: %s\n",
43239                         DB_VERSION_STRING, version);
43240                 return 1;
43241         }
43242 #endif
43243
43244         return 0;
43245 }
43246 _ACEOF
43247 rm -f conftest$ac_exeext
43248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43249   (eval $ac_link) 2>&5
43250   ac_status=$?
43251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43254   (eval $ac_try) 2>&5
43255   ac_status=$?
43256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257   (exit $ac_status); }; }; then
43258   ol_cv_berkeley_db_version=yes
43259 else
43260   echo "$as_me: program exited with status $ac_status" >&5
43261 echo "$as_me: failed program was:" >&5
43262 sed 's/^/| /' conftest.$ac_ext >&5
43263
43264 ( exit $ac_status )
43265 ol_cv_berkeley_db_version=no
43266 fi
43267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43268 fi
43269
43270         LIBS="$ol_LIBS"
43271
43272 fi
43273 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43274 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43275
43276         if test $ol_cv_berkeley_db_version = no ; then
43277                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43278 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43279    { (exit 1); exit 1; }; }
43280         fi
43281
43282                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43283 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43284 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43285   echo $ECHO_N "(cached) $ECHO_C" >&6
43286 else
43287
43288         ol_LIBS="$LIBS"
43289         LIBS="$LTHREAD_LIBS $LIBS"
43290         if test $ol_cv_lib_db != yes ; then
43291                 LIBS="$ol_cv_lib_db $LIBS"
43292         fi
43293
43294         if test "$cross_compiling" = yes; then
43295   ol_cv_berkeley_db_thread=cross
43296 else
43297   cat >conftest.$ac_ext <<_ACEOF
43298 /* confdefs.h.  */
43299 _ACEOF
43300 cat confdefs.h >>conftest.$ac_ext
43301 cat >>conftest.$ac_ext <<_ACEOF
43302 /* end confdefs.h.  */
43303
43304 #ifdef HAVE_DB_185_H
43305         choke me;
43306 #else
43307 #include <db.h>
43308 #endif
43309 #ifndef NULL
43310 #define NULL ((void *)0)
43311 #endif
43312 main()
43313 {
43314         int rc;
43315         u_int32_t flags = DB_CREATE |
43316 #ifdef DB_PRIVATE
43317                 DB_PRIVATE |
43318 #endif
43319                 DB_THREAD;
43320
43321 #if DB_VERSION_MAJOR > 2
43322         DB_ENV *env = NULL;
43323
43324         rc = db_env_create( &env, 0 );
43325
43326         flags |= DB_INIT_MPOOL;
43327 #ifdef DB_MPOOL_PRIVATE
43328         flags |= DB_MPOOL_PRIVATE;
43329 #endif
43330
43331         if( rc ) {
43332                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43333                 return rc;
43334         }
43335
43336 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43337         rc = env->open( env, NULL, flags, 0 );
43338 #else
43339         rc = env->open( env, NULL, NULL, flags, 0 );
43340 #endif
43341
43342         if ( rc == 0 ) {
43343                 rc = env->close( env, 0 );
43344         }
43345
43346         if( rc ) {
43347                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43348                 return rc;
43349         }
43350
43351 #else
43352         DB_ENV env;
43353         memset( &env, '\0', sizeof(env) );
43354
43355         rc = db_appinit( NULL, NULL, &env, flags );
43356
43357         if( rc == 0 ) {
43358                 db_appexit( &env );
43359         }
43360
43361         unlink("__db_mpool.share");
43362         unlink("__db_lock.share");
43363 #endif
43364
43365         return rc;
43366 }
43367 _ACEOF
43368 rm -f conftest$ac_exeext
43369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43370   (eval $ac_link) 2>&5
43371   ac_status=$?
43372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43375   (eval $ac_try) 2>&5
43376   ac_status=$?
43377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43378   (exit $ac_status); }; }; then
43379   ol_cv_berkeley_db_thread=yes
43380 else
43381   echo "$as_me: program exited with status $ac_status" >&5
43382 echo "$as_me: failed program was:" >&5
43383 sed 's/^/| /' conftest.$ac_ext >&5
43384
43385 ( exit $ac_status )
43386 ol_cv_berkeley_db_thread=no
43387 fi
43388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43389 fi
43390
43391         LIBS="$ol_LIBS"
43392
43393 fi
43394 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43395 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43396
43397         if test $ol_cv_berkeley_db_thread != no ; then
43398
43399 cat >>confdefs.h <<\_ACEOF
43400 #define HAVE_BERKELEY_DB_THREAD 1
43401 _ACEOF
43402
43403         fi
43404
43405         fi
43406 fi
43407
43408         fi
43409
43410         if test $ol_cv_berkeley_db != no ; then
43411
43412 cat >>confdefs.h <<\_ACEOF
43413 #define HAVE_BERKELEY_DB 1
43414 _ACEOF
43415
43416
43417                 ol_link_ldbm=berkeley
43418                 ol_enable_ldbm_api=berkeley
43419
43420                 if test $ol_enable_ldbm_type = hash ; then
43421
43422 cat >>confdefs.h <<\_ACEOF
43423 #define LDBM_USE_DBHASH 1
43424 _ACEOF
43425
43426                 else
43427
43428 cat >>confdefs.h <<\_ACEOF
43429 #define LDBM_USE_DBBTREE 1
43430 _ACEOF
43431
43432                 fi
43433
43434                                                 if test $ol_cv_lib_db != yes ; then
43435                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43436                 fi
43437         fi
43438 fi
43439
43440 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43441         if test $ol_link_ldbm != berkeley ; then
43442                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43443 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43444    { (exit 1); exit 1; }; }
43445         else
43446                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43447 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43448 if test "${ol_cv_bdb_compat+set}" = set; then
43449   echo $ECHO_N "(cached) $ECHO_C" >&6
43450 else
43451
43452         cat >conftest.$ac_ext <<_ACEOF
43453 /* confdefs.h.  */
43454 _ACEOF
43455 cat confdefs.h >>conftest.$ac_ext
43456 cat >>conftest.$ac_ext <<_ACEOF
43457 /* end confdefs.h.  */
43458
43459 #include <db.h>
43460
43461  /* this check could be improved */
43462 #ifndef DB_VERSION_MAJOR
43463 #       define DB_VERSION_MAJOR 1
43464 #endif
43465 #ifndef DB_VERSION_MINOR
43466 #       define DB_VERSION_MINOR 0
43467 #endif
43468
43469 /* require 4.2 or later */
43470 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43471         __db_version_compat
43472 #endif
43473
43474 _ACEOF
43475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43476   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43477   ol_cv_bdb_compat=yes
43478 else
43479   ol_cv_bdb_compat=no
43480 fi
43481 rm -f conftest*
43482
43483 fi
43484 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43485 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43486
43487
43488                 if test $ol_cv_bdb_compat != yes ; then
43489                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43490 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43491    { (exit 1); exit 1; }; }
43492                 fi
43493         fi
43494 fi
43495
43496 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43497         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43498 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43499         ol_enable_ldbm_api=none
43500 fi
43501
43502 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43503         echo "$as_me:$LINENO: checking for MDBM library" >&5
43504 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43505 if test "${ol_cv_lib_mdbm+set}" = set; then
43506   echo $ECHO_N "(cached) $ECHO_C" >&6
43507 else
43508         ol_LIBS="$LIBS"
43509         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43510 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43511 if test "${ac_cv_func_mdbm_set_chain+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 mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43522 #define mdbm_set_chain innocuous_mdbm_set_chain
43523
43524 /* System header to define __stub macros and hopefully few prototypes,
43525     which can conflict with char mdbm_set_chain (); 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 mdbm_set_chain
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 mdbm_set_chain ();
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_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43549 choke me
43550 #else
43551 char (*f) () = mdbm_set_chain;
43552 #endif
43553 #ifdef __cplusplus
43554 }
43555 #endif
43556
43557 int
43558 main ()
43559 {
43560 return f != mdbm_set_chain;
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_mdbm_set_chain=yes
43588 else
43589   echo "$as_me: failed program was:" >&5
43590 sed 's/^/| /' conftest.$ac_ext >&5
43591
43592 ac_cv_func_mdbm_set_chain=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_mdbm_set_chain" >&5
43598 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43599 if test $ac_cv_func_mdbm_set_chain = yes; then
43600   ol_cv_lib_mdbm=yes
43601 else
43602
43603                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43604 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43605 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43606   echo $ECHO_N "(cached) $ECHO_C" >&6
43607 else
43608   ac_check_lib_save_LIBS=$LIBS
43609 LIBS="-lmdbm  $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 mdbm_set_chain ();
43624 int
43625 main ()
43626 {
43627 mdbm_set_chain ();
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_mdbm_mdbm_set_chain=yes
43655 else
43656   echo "$as_me: failed program was:" >&5
43657 sed 's/^/| /' conftest.$ac_ext >&5
43658
43659 ac_cv_lib_mdbm_mdbm_set_chain=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_mdbm_mdbm_set_chain" >&5
43666 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43667 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43668   ol_cv_lib_mdbm=-lmdbm
43669 else
43670   ol_cv_lib_mdbm=no
43671 fi
43672
43673
43674 fi
43675
43676         LIBS="$ol_LIBS"
43677
43678 fi
43679 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43680 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43681
43682
43683
43684 for ac_header in mdbm.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_mdbm+set}" = set; then
43836   echo $ECHO_N "(cached) $ECHO_C" >&6
43837 else
43838
43839         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43840                 ol_cv_mdbm=no
43841         else
43842                 ol_cv_mdbm=yes
43843         fi
43844
43845 fi
43846 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43847 echo "${ECHO_T}$ol_cv_mdbm" >&6
43848  if test $ol_cv_mdbm = yes ; then
43849
43850 cat >>confdefs.h <<\_ACEOF
43851 #define HAVE_MDBM 1
43852 _ACEOF
43853
43854  fi
43855
43856
43857         if test $ol_cv_mdbm = yes ; then
43858                 ol_link_ldbm=mdbm
43859                 ol_enable_ldbm_api=mdbm
43860                 if test $ol_cv_lib_mdbm != yes ; then
43861                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43862                 fi
43863         fi
43864 fi
43865
43866 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43867         echo "$as_me:$LINENO: checking for GDBM library" >&5
43868 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43869 if test "${ol_cv_lib_gdbm+set}" = set; then
43870   echo $ECHO_N "(cached) $ECHO_C" >&6
43871 else
43872         ol_LIBS="$LIBS"
43873         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43874 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43875 if test "${ac_cv_func_gdbm_open+set}" = set; then
43876   echo $ECHO_N "(cached) $ECHO_C" >&6
43877 else
43878   cat >conftest.$ac_ext <<_ACEOF
43879 /* confdefs.h.  */
43880 _ACEOF
43881 cat confdefs.h >>conftest.$ac_ext
43882 cat >>conftest.$ac_ext <<_ACEOF
43883 /* end confdefs.h.  */
43884 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43886 #define gdbm_open innocuous_gdbm_open
43887
43888 /* System header to define __stub macros and hopefully few prototypes,
43889     which can conflict with char gdbm_open (); below.
43890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43891     <limits.h> exists even on freestanding compilers.  */
43892
43893 #ifdef __STDC__
43894 # include <limits.h>
43895 #else
43896 # include <assert.h>
43897 #endif
43898
43899 #undef gdbm_open
43900
43901 /* Override any gcc2 internal prototype to avoid an error.  */
43902 #ifdef __cplusplus
43903 extern "C"
43904 {
43905 #endif
43906 /* We use char because int might match the return type of a gcc2
43907    builtin and then its argument prototype would still apply.  */
43908 char gdbm_open ();
43909 /* The GNU C library defines this for functions which it implements
43910     to always fail with ENOSYS.  Some functions are actually named
43911     something starting with __ and the normal name is an alias.  */
43912 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43913 choke me
43914 #else
43915 char (*f) () = gdbm_open;
43916 #endif
43917 #ifdef __cplusplus
43918 }
43919 #endif
43920
43921 int
43922 main ()
43923 {
43924 return f != gdbm_open;
43925   ;
43926   return 0;
43927 }
43928 _ACEOF
43929 rm -f conftest.$ac_objext conftest$ac_exeext
43930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43931   (eval $ac_link) 2>conftest.er1
43932   ac_status=$?
43933   grep -v '^ *+' conftest.er1 >conftest.err
43934   rm -f conftest.er1
43935   cat conftest.err >&5
43936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43937   (exit $ac_status); } &&
43938          { ac_try='test -z "$ac_c_werror_flag"
43939                          || test ! -s conftest.err'
43940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43941   (eval $ac_try) 2>&5
43942   ac_status=$?
43943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43944   (exit $ac_status); }; } &&
43945          { ac_try='test -s conftest$ac_exeext'
43946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43947   (eval $ac_try) 2>&5
43948   ac_status=$?
43949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43950   (exit $ac_status); }; }; then
43951   ac_cv_func_gdbm_open=yes
43952 else
43953   echo "$as_me: failed program was:" >&5
43954 sed 's/^/| /' conftest.$ac_ext >&5
43955
43956 ac_cv_func_gdbm_open=no
43957 fi
43958 rm -f conftest.err conftest.$ac_objext \
43959       conftest$ac_exeext conftest.$ac_ext
43960 fi
43961 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43962 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43963 if test $ac_cv_func_gdbm_open = yes; then
43964   ol_cv_lib_gdbm=yes
43965 else
43966
43967                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43968 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43969 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43970   echo $ECHO_N "(cached) $ECHO_C" >&6
43971 else
43972   ac_check_lib_save_LIBS=$LIBS
43973 LIBS="-lgdbm  $LIBS"
43974 cat >conftest.$ac_ext <<_ACEOF
43975 /* confdefs.h.  */
43976 _ACEOF
43977 cat confdefs.h >>conftest.$ac_ext
43978 cat >>conftest.$ac_ext <<_ACEOF
43979 /* end confdefs.h.  */
43980
43981 /* Override any gcc2 internal prototype to avoid an error.  */
43982 #ifdef __cplusplus
43983 extern "C"
43984 #endif
43985 /* We use char because int might match the return type of a gcc2
43986    builtin and then its argument prototype would still apply.  */
43987 char gdbm_open ();
43988 int
43989 main ()
43990 {
43991 gdbm_open ();
43992   ;
43993   return 0;
43994 }
43995 _ACEOF
43996 rm -f conftest.$ac_objext conftest$ac_exeext
43997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43998   (eval $ac_link) 2>conftest.er1
43999   ac_status=$?
44000   grep -v '^ *+' conftest.er1 >conftest.err
44001   rm -f conftest.er1
44002   cat conftest.err >&5
44003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004   (exit $ac_status); } &&
44005          { ac_try='test -z "$ac_c_werror_flag"
44006                          || test ! -s conftest.err'
44007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44008   (eval $ac_try) 2>&5
44009   ac_status=$?
44010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011   (exit $ac_status); }; } &&
44012          { ac_try='test -s conftest$ac_exeext'
44013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44014   (eval $ac_try) 2>&5
44015   ac_status=$?
44016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44017   (exit $ac_status); }; }; then
44018   ac_cv_lib_gdbm_gdbm_open=yes
44019 else
44020   echo "$as_me: failed program was:" >&5
44021 sed 's/^/| /' conftest.$ac_ext >&5
44022
44023 ac_cv_lib_gdbm_gdbm_open=no
44024 fi
44025 rm -f conftest.err conftest.$ac_objext \
44026       conftest$ac_exeext conftest.$ac_ext
44027 LIBS=$ac_check_lib_save_LIBS
44028 fi
44029 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
44030 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
44031 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
44032   ol_cv_lib_gdbm=-lgdbm
44033 else
44034   ol_cv_lib_gdbm=no
44035 fi
44036
44037
44038 fi
44039
44040         LIBS="$ol_LIBS"
44041
44042 fi
44043 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
44044 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
44045
44046
44047
44048 for ac_header in gdbm.h
44049 do
44050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44052   echo "$as_me:$LINENO: checking for $ac_header" >&5
44053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44055   echo $ECHO_N "(cached) $ECHO_C" >&6
44056 fi
44057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44059 else
44060   # Is the header compilable?
44061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44063 cat >conftest.$ac_ext <<_ACEOF
44064 /* confdefs.h.  */
44065 _ACEOF
44066 cat confdefs.h >>conftest.$ac_ext
44067 cat >>conftest.$ac_ext <<_ACEOF
44068 /* end confdefs.h.  */
44069 $ac_includes_default
44070 #include <$ac_header>
44071 _ACEOF
44072 rm -f conftest.$ac_objext
44073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44074   (eval $ac_compile) 2>conftest.er1
44075   ac_status=$?
44076   grep -v '^ *+' conftest.er1 >conftest.err
44077   rm -f conftest.er1
44078   cat conftest.err >&5
44079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080   (exit $ac_status); } &&
44081          { ac_try='test -z "$ac_c_werror_flag"
44082                          || test ! -s conftest.err'
44083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44084   (eval $ac_try) 2>&5
44085   ac_status=$?
44086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44087   (exit $ac_status); }; } &&
44088          { ac_try='test -s conftest.$ac_objext'
44089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44090   (eval $ac_try) 2>&5
44091   ac_status=$?
44092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44093   (exit $ac_status); }; }; then
44094   ac_header_compiler=yes
44095 else
44096   echo "$as_me: failed program was:" >&5
44097 sed 's/^/| /' conftest.$ac_ext >&5
44098
44099 ac_header_compiler=no
44100 fi
44101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44103 echo "${ECHO_T}$ac_header_compiler" >&6
44104
44105 # Is the header present?
44106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44108 cat >conftest.$ac_ext <<_ACEOF
44109 /* confdefs.h.  */
44110 _ACEOF
44111 cat confdefs.h >>conftest.$ac_ext
44112 cat >>conftest.$ac_ext <<_ACEOF
44113 /* end confdefs.h.  */
44114 #include <$ac_header>
44115 _ACEOF
44116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44118   ac_status=$?
44119   grep -v '^ *+' conftest.er1 >conftest.err
44120   rm -f conftest.er1
44121   cat conftest.err >&5
44122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44123   (exit $ac_status); } >/dev/null; then
44124   if test -s conftest.err; then
44125     ac_cpp_err=$ac_c_preproc_warn_flag
44126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44127   else
44128     ac_cpp_err=
44129   fi
44130 else
44131   ac_cpp_err=yes
44132 fi
44133 if test -z "$ac_cpp_err"; then
44134   ac_header_preproc=yes
44135 else
44136   echo "$as_me: failed program was:" >&5
44137 sed 's/^/| /' conftest.$ac_ext >&5
44138
44139   ac_header_preproc=no
44140 fi
44141 rm -f conftest.err conftest.$ac_ext
44142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44143 echo "${ECHO_T}$ac_header_preproc" >&6
44144
44145 # So?  What about this header?
44146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44147   yes:no: )
44148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44152     ac_header_preproc=yes
44153     ;;
44154   no:yes:* )
44155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44167     (
44168       cat <<\_ASBOX
44169 ## ------------------------------------------ ##
44170 ## Report this to the AC_PACKAGE_NAME lists.  ##
44171 ## ------------------------------------------ ##
44172 _ASBOX
44173     ) |
44174       sed "s/^/$as_me: WARNING:     /" >&2
44175     ;;
44176 esac
44177 echo "$as_me:$LINENO: checking for $ac_header" >&5
44178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44180   echo $ECHO_N "(cached) $ECHO_C" >&6
44181 else
44182   eval "$as_ac_Header=\$ac_header_preproc"
44183 fi
44184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44186
44187 fi
44188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44189   cat >>confdefs.h <<_ACEOF
44190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44191 _ACEOF
44192
44193 fi
44194
44195 done
44196
44197  echo "$as_me:$LINENO: checking for db" >&5
44198 echo $ECHO_N "checking for db... $ECHO_C" >&6
44199 if test "${ol_cv_gdbm+set}" = set; then
44200   echo $ECHO_N "(cached) $ECHO_C" >&6
44201 else
44202
44203         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44204                 ol_cv_gdbm=no
44205         else
44206                 ol_cv_gdbm=yes
44207         fi
44208
44209 fi
44210 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44211 echo "${ECHO_T}$ol_cv_gdbm" >&6
44212  if test $ol_cv_gdbm = yes ; then
44213
44214 cat >>confdefs.h <<\_ACEOF
44215 #define HAVE_GDBM 1
44216 _ACEOF
44217
44218  fi
44219
44220
44221         if test $ol_cv_gdbm = yes ; then
44222                 ol_link_ldbm=gdbm
44223                 ol_enable_ldbm_api=gdbm
44224
44225                 if test $ol_cv_lib_gdbm != yes ; then
44226                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44227                 fi
44228         fi
44229 fi
44230
44231 if test $ol_enable_ldbm_api = ndbm ; then
44232         echo "$as_me:$LINENO: checking for NDBM library" >&5
44233 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44234 if test "${ol_cv_lib_ndbm+set}" = set; then
44235   echo $ECHO_N "(cached) $ECHO_C" >&6
44236 else
44237         ol_LIBS="$LIBS"
44238         echo "$as_me:$LINENO: checking for dbm_open" >&5
44239 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44240 if test "${ac_cv_func_dbm_open+set}" = set; then
44241   echo $ECHO_N "(cached) $ECHO_C" >&6
44242 else
44243   cat >conftest.$ac_ext <<_ACEOF
44244 /* confdefs.h.  */
44245 _ACEOF
44246 cat confdefs.h >>conftest.$ac_ext
44247 cat >>conftest.$ac_ext <<_ACEOF
44248 /* end confdefs.h.  */
44249 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44251 #define dbm_open innocuous_dbm_open
44252
44253 /* System header to define __stub macros and hopefully few prototypes,
44254     which can conflict with char dbm_open (); below.
44255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44256     <limits.h> exists even on freestanding compilers.  */
44257
44258 #ifdef __STDC__
44259 # include <limits.h>
44260 #else
44261 # include <assert.h>
44262 #endif
44263
44264 #undef dbm_open
44265
44266 /* Override any gcc2 internal prototype to avoid an error.  */
44267 #ifdef __cplusplus
44268 extern "C"
44269 {
44270 #endif
44271 /* We use char because int might match the return type of a gcc2
44272    builtin and then its argument prototype would still apply.  */
44273 char dbm_open ();
44274 /* The GNU C library defines this for functions which it implements
44275     to always fail with ENOSYS.  Some functions are actually named
44276     something starting with __ and the normal name is an alias.  */
44277 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44278 choke me
44279 #else
44280 char (*f) () = dbm_open;
44281 #endif
44282 #ifdef __cplusplus
44283 }
44284 #endif
44285
44286 int
44287 main ()
44288 {
44289 return f != dbm_open;
44290   ;
44291   return 0;
44292 }
44293 _ACEOF
44294 rm -f conftest.$ac_objext conftest$ac_exeext
44295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44296   (eval $ac_link) 2>conftest.er1
44297   ac_status=$?
44298   grep -v '^ *+' conftest.er1 >conftest.err
44299   rm -f conftest.er1
44300   cat conftest.err >&5
44301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302   (exit $ac_status); } &&
44303          { ac_try='test -z "$ac_c_werror_flag"
44304                          || test ! -s conftest.err'
44305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44306   (eval $ac_try) 2>&5
44307   ac_status=$?
44308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44309   (exit $ac_status); }; } &&
44310          { ac_try='test -s conftest$ac_exeext'
44311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44312   (eval $ac_try) 2>&5
44313   ac_status=$?
44314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44315   (exit $ac_status); }; }; then
44316   ac_cv_func_dbm_open=yes
44317 else
44318   echo "$as_me: failed program was:" >&5
44319 sed 's/^/| /' conftest.$ac_ext >&5
44320
44321 ac_cv_func_dbm_open=no
44322 fi
44323 rm -f conftest.err conftest.$ac_objext \
44324       conftest$ac_exeext conftest.$ac_ext
44325 fi
44326 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44327 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44328 if test $ac_cv_func_dbm_open = yes; then
44329   ol_cv_lib_ndbm=yes
44330 else
44331
44332                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44333 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44334 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44335   echo $ECHO_N "(cached) $ECHO_C" >&6
44336 else
44337   ac_check_lib_save_LIBS=$LIBS
44338 LIBS="-lndbm  $LIBS"
44339 cat >conftest.$ac_ext <<_ACEOF
44340 /* confdefs.h.  */
44341 _ACEOF
44342 cat confdefs.h >>conftest.$ac_ext
44343 cat >>conftest.$ac_ext <<_ACEOF
44344 /* end confdefs.h.  */
44345
44346 /* Override any gcc2 internal prototype to avoid an error.  */
44347 #ifdef __cplusplus
44348 extern "C"
44349 #endif
44350 /* We use char because int might match the return type of a gcc2
44351    builtin and then its argument prototype would still apply.  */
44352 char dbm_open ();
44353 int
44354 main ()
44355 {
44356 dbm_open ();
44357   ;
44358   return 0;
44359 }
44360 _ACEOF
44361 rm -f conftest.$ac_objext conftest$ac_exeext
44362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44363   (eval $ac_link) 2>conftest.er1
44364   ac_status=$?
44365   grep -v '^ *+' conftest.er1 >conftest.err
44366   rm -f conftest.er1
44367   cat conftest.err >&5
44368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369   (exit $ac_status); } &&
44370          { ac_try='test -z "$ac_c_werror_flag"
44371                          || test ! -s conftest.err'
44372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44373   (eval $ac_try) 2>&5
44374   ac_status=$?
44375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376   (exit $ac_status); }; } &&
44377          { ac_try='test -s conftest$ac_exeext'
44378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44379   (eval $ac_try) 2>&5
44380   ac_status=$?
44381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382   (exit $ac_status); }; }; then
44383   ac_cv_lib_ndbm_dbm_open=yes
44384 else
44385   echo "$as_me: failed program was:" >&5
44386 sed 's/^/| /' conftest.$ac_ext >&5
44387
44388 ac_cv_lib_ndbm_dbm_open=no
44389 fi
44390 rm -f conftest.err conftest.$ac_objext \
44391       conftest$ac_exeext conftest.$ac_ext
44392 LIBS=$ac_check_lib_save_LIBS
44393 fi
44394 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44395 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44396 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44397   ol_cv_lib_ndbm=-lndbm
44398 else
44399
44400                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44401 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44402 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44403   echo $ECHO_N "(cached) $ECHO_C" >&6
44404 else
44405   ac_check_lib_save_LIBS=$LIBS
44406 LIBS="-ldbm  $LIBS"
44407 cat >conftest.$ac_ext <<_ACEOF
44408 /* confdefs.h.  */
44409 _ACEOF
44410 cat confdefs.h >>conftest.$ac_ext
44411 cat >>conftest.$ac_ext <<_ACEOF
44412 /* end confdefs.h.  */
44413
44414 /* Override any gcc2 internal prototype to avoid an error.  */
44415 #ifdef __cplusplus
44416 extern "C"
44417 #endif
44418 /* We use char because int might match the return type of a gcc2
44419    builtin and then its argument prototype would still apply.  */
44420 char dbm_open ();
44421 int
44422 main ()
44423 {
44424 dbm_open ();
44425   ;
44426   return 0;
44427 }
44428 _ACEOF
44429 rm -f conftest.$ac_objext conftest$ac_exeext
44430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44431   (eval $ac_link) 2>conftest.er1
44432   ac_status=$?
44433   grep -v '^ *+' conftest.er1 >conftest.err
44434   rm -f conftest.er1
44435   cat conftest.err >&5
44436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44437   (exit $ac_status); } &&
44438          { ac_try='test -z "$ac_c_werror_flag"
44439                          || test ! -s conftest.err'
44440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44441   (eval $ac_try) 2>&5
44442   ac_status=$?
44443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444   (exit $ac_status); }; } &&
44445          { ac_try='test -s conftest$ac_exeext'
44446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44447   (eval $ac_try) 2>&5
44448   ac_status=$?
44449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44450   (exit $ac_status); }; }; then
44451   ac_cv_lib_dbm_dbm_open=yes
44452 else
44453   echo "$as_me: failed program was:" >&5
44454 sed 's/^/| /' conftest.$ac_ext >&5
44455
44456 ac_cv_lib_dbm_dbm_open=no
44457 fi
44458 rm -f conftest.err conftest.$ac_objext \
44459       conftest$ac_exeext conftest.$ac_ext
44460 LIBS=$ac_check_lib_save_LIBS
44461 fi
44462 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44463 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44464 if test $ac_cv_lib_dbm_dbm_open = yes; then
44465   ol_cv_lib_ndbm=-ldbm
44466 else
44467   ol_cv_lib_ndbm=no
44468 fi
44469
44470 fi
44471
44472
44473 fi
44474
44475         LIBS="$ol_LIBS"
44476
44477 fi
44478 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44479 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44480
44481
44482
44483 for ac_header in ndbm.h
44484 do
44485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44487   echo "$as_me:$LINENO: checking for $ac_header" >&5
44488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44490   echo $ECHO_N "(cached) $ECHO_C" >&6
44491 fi
44492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44494 else
44495   # Is the header compilable?
44496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44498 cat >conftest.$ac_ext <<_ACEOF
44499 /* confdefs.h.  */
44500 _ACEOF
44501 cat confdefs.h >>conftest.$ac_ext
44502 cat >>conftest.$ac_ext <<_ACEOF
44503 /* end confdefs.h.  */
44504 $ac_includes_default
44505 #include <$ac_header>
44506 _ACEOF
44507 rm -f conftest.$ac_objext
44508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44509   (eval $ac_compile) 2>conftest.er1
44510   ac_status=$?
44511   grep -v '^ *+' conftest.er1 >conftest.err
44512   rm -f conftest.er1
44513   cat conftest.err >&5
44514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515   (exit $ac_status); } &&
44516          { ac_try='test -z "$ac_c_werror_flag"
44517                          || test ! -s conftest.err'
44518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44519   (eval $ac_try) 2>&5
44520   ac_status=$?
44521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44522   (exit $ac_status); }; } &&
44523          { ac_try='test -s conftest.$ac_objext'
44524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44525   (eval $ac_try) 2>&5
44526   ac_status=$?
44527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44528   (exit $ac_status); }; }; then
44529   ac_header_compiler=yes
44530 else
44531   echo "$as_me: failed program was:" >&5
44532 sed 's/^/| /' conftest.$ac_ext >&5
44533
44534 ac_header_compiler=no
44535 fi
44536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44538 echo "${ECHO_T}$ac_header_compiler" >&6
44539
44540 # Is the header present?
44541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44543 cat >conftest.$ac_ext <<_ACEOF
44544 /* confdefs.h.  */
44545 _ACEOF
44546 cat confdefs.h >>conftest.$ac_ext
44547 cat >>conftest.$ac_ext <<_ACEOF
44548 /* end confdefs.h.  */
44549 #include <$ac_header>
44550 _ACEOF
44551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44553   ac_status=$?
44554   grep -v '^ *+' conftest.er1 >conftest.err
44555   rm -f conftest.er1
44556   cat conftest.err >&5
44557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44558   (exit $ac_status); } >/dev/null; then
44559   if test -s conftest.err; then
44560     ac_cpp_err=$ac_c_preproc_warn_flag
44561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44562   else
44563     ac_cpp_err=
44564   fi
44565 else
44566   ac_cpp_err=yes
44567 fi
44568 if test -z "$ac_cpp_err"; then
44569   ac_header_preproc=yes
44570 else
44571   echo "$as_me: failed program was:" >&5
44572 sed 's/^/| /' conftest.$ac_ext >&5
44573
44574   ac_header_preproc=no
44575 fi
44576 rm -f conftest.err conftest.$ac_ext
44577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44578 echo "${ECHO_T}$ac_header_preproc" >&6
44579
44580 # So?  What about this header?
44581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44582   yes:no: )
44583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44587     ac_header_preproc=yes
44588     ;;
44589   no:yes:* )
44590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44602     (
44603       cat <<\_ASBOX
44604 ## ------------------------------------------ ##
44605 ## Report this to the AC_PACKAGE_NAME lists.  ##
44606 ## ------------------------------------------ ##
44607 _ASBOX
44608     ) |
44609       sed "s/^/$as_me: WARNING:     /" >&2
44610     ;;
44611 esac
44612 echo "$as_me:$LINENO: checking for $ac_header" >&5
44613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44615   echo $ECHO_N "(cached) $ECHO_C" >&6
44616 else
44617   eval "$as_ac_Header=\$ac_header_preproc"
44618 fi
44619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44621
44622 fi
44623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44624   cat >>confdefs.h <<_ACEOF
44625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44626 _ACEOF
44627
44628 fi
44629
44630 done
44631
44632  echo "$as_me:$LINENO: checking for db" >&5
44633 echo $ECHO_N "checking for db... $ECHO_C" >&6
44634 if test "${ol_cv_ndbm+set}" = set; then
44635   echo $ECHO_N "(cached) $ECHO_C" >&6
44636 else
44637
44638         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44639                 ol_cv_ndbm=no
44640         else
44641                 ol_cv_ndbm=yes
44642         fi
44643
44644 fi
44645 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44646 echo "${ECHO_T}$ol_cv_ndbm" >&6
44647  if test $ol_cv_ndbm = yes ; then
44648
44649 cat >>confdefs.h <<\_ACEOF
44650 #define HAVE_NDBM 1
44651 _ACEOF
44652
44653  fi
44654
44655
44656         if test $ol_cv_ndbm = yes ; then
44657                 ol_link_ldbm=ndbm
44658                 ol_enable_ldbm_api=ndbm
44659
44660                 if test $ol_cv_lib_ndbm != yes ; then
44661                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44662                 fi
44663         fi
44664 fi
44665
44666 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44667         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44668 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44669    { (exit 1); exit 1; }; }
44670 fi
44671
44672 if test $ol_enable_bdb = yes -o \
44673         $ol_enable_hdb = yes -o \
44674         $ol_enable_ldbm = yes ; then
44675         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44676 fi
44677
44678
44679 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44680         BUILD_LIBS_DYNAMIC=shared
44681
44682 cat >>confdefs.h <<\_ACEOF
44683 #define LDAP_LIBS_DYNAMIC 1
44684 _ACEOF
44685
44686         LTSTATIC=""
44687 else
44688         BUILD_LIBS_DYNAMIC=static
44689         LTSTATIC="-static"
44690 fi
44691
44692 if test $ol_enable_wrappers != no ; then
44693
44694 for ac_header in tcpd.h
44695 do
44696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44698   echo "$as_me:$LINENO: checking for $ac_header" >&5
44699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44701   echo $ECHO_N "(cached) $ECHO_C" >&6
44702 fi
44703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44705 else
44706   # Is the header compilable?
44707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44709 cat >conftest.$ac_ext <<_ACEOF
44710 /* confdefs.h.  */
44711 _ACEOF
44712 cat confdefs.h >>conftest.$ac_ext
44713 cat >>conftest.$ac_ext <<_ACEOF
44714 /* end confdefs.h.  */
44715 $ac_includes_default
44716 #include <$ac_header>
44717 _ACEOF
44718 rm -f conftest.$ac_objext
44719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44720   (eval $ac_compile) 2>conftest.er1
44721   ac_status=$?
44722   grep -v '^ *+' conftest.er1 >conftest.err
44723   rm -f conftest.er1
44724   cat conftest.err >&5
44725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44726   (exit $ac_status); } &&
44727          { ac_try='test -z "$ac_c_werror_flag"
44728                          || test ! -s conftest.err'
44729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44730   (eval $ac_try) 2>&5
44731   ac_status=$?
44732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733   (exit $ac_status); }; } &&
44734          { ac_try='test -s conftest.$ac_objext'
44735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44736   (eval $ac_try) 2>&5
44737   ac_status=$?
44738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739   (exit $ac_status); }; }; then
44740   ac_header_compiler=yes
44741 else
44742   echo "$as_me: failed program was:" >&5
44743 sed 's/^/| /' conftest.$ac_ext >&5
44744
44745 ac_header_compiler=no
44746 fi
44747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44749 echo "${ECHO_T}$ac_header_compiler" >&6
44750
44751 # Is the header present?
44752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44754 cat >conftest.$ac_ext <<_ACEOF
44755 /* confdefs.h.  */
44756 _ACEOF
44757 cat confdefs.h >>conftest.$ac_ext
44758 cat >>conftest.$ac_ext <<_ACEOF
44759 /* end confdefs.h.  */
44760 #include <$ac_header>
44761 _ACEOF
44762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44764   ac_status=$?
44765   grep -v '^ *+' conftest.er1 >conftest.err
44766   rm -f conftest.er1
44767   cat conftest.err >&5
44768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44769   (exit $ac_status); } >/dev/null; then
44770   if test -s conftest.err; then
44771     ac_cpp_err=$ac_c_preproc_warn_flag
44772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44773   else
44774     ac_cpp_err=
44775   fi
44776 else
44777   ac_cpp_err=yes
44778 fi
44779 if test -z "$ac_cpp_err"; then
44780   ac_header_preproc=yes
44781 else
44782   echo "$as_me: failed program was:" >&5
44783 sed 's/^/| /' conftest.$ac_ext >&5
44784
44785   ac_header_preproc=no
44786 fi
44787 rm -f conftest.err conftest.$ac_ext
44788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44789 echo "${ECHO_T}$ac_header_preproc" >&6
44790
44791 # So?  What about this header?
44792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44793   yes:no: )
44794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44798     ac_header_preproc=yes
44799     ;;
44800   no:yes:* )
44801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44813     (
44814       cat <<\_ASBOX
44815 ## ------------------------------------------ ##
44816 ## Report this to the AC_PACKAGE_NAME lists.  ##
44817 ## ------------------------------------------ ##
44818 _ASBOX
44819     ) |
44820       sed "s/^/$as_me: WARNING:     /" >&2
44821     ;;
44822 esac
44823 echo "$as_me:$LINENO: checking for $ac_header" >&5
44824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44826   echo $ECHO_N "(cached) $ECHO_C" >&6
44827 else
44828   eval "$as_ac_Header=\$ac_header_preproc"
44829 fi
44830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44832
44833 fi
44834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44835   cat >>confdefs.h <<_ACEOF
44836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44837 _ACEOF
44838
44839                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44840 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44841                 save_LIBS="$LIBS"
44842                 LIBS="$LIBS -lwrap"
44843                 cat >conftest.$ac_ext <<_ACEOF
44844 /* confdefs.h.  */
44845 _ACEOF
44846 cat confdefs.h >>conftest.$ac_ext
44847 cat >>conftest.$ac_ext <<_ACEOF
44848 /* end confdefs.h.  */
44849
44850 #include <tcpd.h>
44851 int allow_severity = 0;
44852 int deny_severity  = 0;
44853
44854 struct request_info *req;
44855
44856 int
44857 main ()
44858 {
44859
44860 hosts_access(req)
44861
44862   ;
44863   return 0;
44864 }
44865 _ACEOF
44866 rm -f conftest.$ac_objext conftest$ac_exeext
44867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44868   (eval $ac_link) 2>conftest.er1
44869   ac_status=$?
44870   grep -v '^ *+' conftest.er1 >conftest.err
44871   rm -f conftest.er1
44872   cat conftest.err >&5
44873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44874   (exit $ac_status); } &&
44875          { ac_try='test -z "$ac_c_werror_flag"
44876                          || test ! -s conftest.err'
44877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44878   (eval $ac_try) 2>&5
44879   ac_status=$?
44880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44881   (exit $ac_status); }; } &&
44882          { ac_try='test -s conftest$ac_exeext'
44883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44884   (eval $ac_try) 2>&5
44885   ac_status=$?
44886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44887   (exit $ac_status); }; }; then
44888   echo "$as_me:$LINENO: result: -lwrap" >&5
44889 echo "${ECHO_T}-lwrap" >&6
44890                 have_wrappers=yes
44891                 LIBS="$save_LIBS"
44892 else
44893   echo "$as_me: failed program was:" >&5
44894 sed 's/^/| /' conftest.$ac_ext >&5
44895
44896
44897                                 LIBS="$LIBS -lnsl"
44898                 cat >conftest.$ac_ext <<_ACEOF
44899 /* confdefs.h.  */
44900 _ACEOF
44901 cat confdefs.h >>conftest.$ac_ext
44902 cat >>conftest.$ac_ext <<_ACEOF
44903 /* end confdefs.h.  */
44904
44905 #include <tcpd.h>
44906 int allow_severity = 0;
44907 int deny_severity  = 0;
44908
44909 struct request_info *req;
44910
44911 int
44912 main ()
44913 {
44914
44915 hosts_access(req)
44916
44917   ;
44918   return 0;
44919 }
44920 _ACEOF
44921 rm -f conftest.$ac_objext conftest$ac_exeext
44922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44923   (eval $ac_link) 2>conftest.er1
44924   ac_status=$?
44925   grep -v '^ *+' conftest.er1 >conftest.err
44926   rm -f conftest.er1
44927   cat conftest.err >&5
44928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44929   (exit $ac_status); } &&
44930          { ac_try='test -z "$ac_c_werror_flag"
44931                          || test ! -s conftest.err'
44932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44933   (eval $ac_try) 2>&5
44934   ac_status=$?
44935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936   (exit $ac_status); }; } &&
44937          { ac_try='test -s conftest$ac_exeext'
44938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44939   (eval $ac_try) 2>&5
44940   ac_status=$?
44941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44942   (exit $ac_status); }; }; then
44943   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44944 echo "${ECHO_T}-lwrap -lnsl" >&6
44945                 have_wrappers=yes
44946                 LIBS="$save_LIBS -lnsl"
44947 else
44948   echo "$as_me: failed program was:" >&5
44949 sed 's/^/| /' conftest.$ac_ext >&5
44950
44951
44952                 echo "$as_me:$LINENO: result: no" >&5
44953 echo "${ECHO_T}no" >&6
44954                 have_wrappers=no
44955                 LIBS=$save_LIBS
44956 fi
44957 rm -f conftest.err conftest.$ac_objext \
44958       conftest$ac_exeext conftest.$ac_ext
44959 fi
44960 rm -f conftest.err conftest.$ac_objext \
44961       conftest$ac_exeext conftest.$ac_ext
44962 else
44963   have_wrappers=no
44964 fi
44965
44966 done
44967
44968
44969         if test $have_wrappers = yes ; then
44970
44971 cat >>confdefs.h <<\_ACEOF
44972 #define HAVE_TCPD 1
44973 _ACEOF
44974
44975                 WRAP_LIBS="-lwrap"
44976         elif test $ol_enable_wrappers = yes ; then
44977                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44978 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44979    { (exit 1); exit 1; }; }
44980         else
44981                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44982 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44983                 WRAP_LIBS=""
44984         fi
44985 fi
44986
44987 if test $ol_enable_syslog != no ; then
44988         echo "$as_me:$LINENO: checking for openlog" >&5
44989 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44990 if test "${ac_cv_func_openlog+set}" = set; then
44991   echo $ECHO_N "(cached) $ECHO_C" >&6
44992 else
44993   cat >conftest.$ac_ext <<_ACEOF
44994 /* confdefs.h.  */
44995 _ACEOF
44996 cat confdefs.h >>conftest.$ac_ext
44997 cat >>conftest.$ac_ext <<_ACEOF
44998 /* end confdefs.h.  */
44999 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
45000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45001 #define openlog innocuous_openlog
45002
45003 /* System header to define __stub macros and hopefully few prototypes,
45004     which can conflict with char openlog (); below.
45005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45006     <limits.h> exists even on freestanding compilers.  */
45007
45008 #ifdef __STDC__
45009 # include <limits.h>
45010 #else
45011 # include <assert.h>
45012 #endif
45013
45014 #undef openlog
45015
45016 /* Override any gcc2 internal prototype to avoid an error.  */
45017 #ifdef __cplusplus
45018 extern "C"
45019 {
45020 #endif
45021 /* We use char because int might match the return type of a gcc2
45022    builtin and then its argument prototype would still apply.  */
45023 char openlog ();
45024 /* The GNU C library defines this for functions which it implements
45025     to always fail with ENOSYS.  Some functions are actually named
45026     something starting with __ and the normal name is an alias.  */
45027 #if defined (__stub_openlog) || defined (__stub___openlog)
45028 choke me
45029 #else
45030 char (*f) () = openlog;
45031 #endif
45032 #ifdef __cplusplus
45033 }
45034 #endif
45035
45036 int
45037 main ()
45038 {
45039 return f != openlog;
45040   ;
45041   return 0;
45042 }
45043 _ACEOF
45044 rm -f conftest.$ac_objext conftest$ac_exeext
45045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45046   (eval $ac_link) 2>conftest.er1
45047   ac_status=$?
45048   grep -v '^ *+' conftest.er1 >conftest.err
45049   rm -f conftest.er1
45050   cat conftest.err >&5
45051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45052   (exit $ac_status); } &&
45053          { ac_try='test -z "$ac_c_werror_flag"
45054                          || test ! -s conftest.err'
45055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45056   (eval $ac_try) 2>&5
45057   ac_status=$?
45058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45059   (exit $ac_status); }; } &&
45060          { ac_try='test -s conftest$ac_exeext'
45061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45062   (eval $ac_try) 2>&5
45063   ac_status=$?
45064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45065   (exit $ac_status); }; }; then
45066   ac_cv_func_openlog=yes
45067 else
45068   echo "$as_me: failed program was:" >&5
45069 sed 's/^/| /' conftest.$ac_ext >&5
45070
45071 ac_cv_func_openlog=no
45072 fi
45073 rm -f conftest.err conftest.$ac_objext \
45074       conftest$ac_exeext conftest.$ac_ext
45075 fi
45076 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45077 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45078
45079         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45080                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45081 echo "$as_me: error: could not find syslog" >&2;}
45082    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45083         fi
45084         ol_enable_syslog=$ac_cv_func_openlog
45085 fi
45086
45087 ol_link_sql=no
45088 if test $ol_enable_sql != no ; then
45089
45090
45091 for ac_header in sql.h sqlext.h
45092 do
45093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45095   echo "$as_me:$LINENO: checking for $ac_header" >&5
45096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45098   echo $ECHO_N "(cached) $ECHO_C" >&6
45099 fi
45100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45102 else
45103   # Is the header compilable?
45104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45106 cat >conftest.$ac_ext <<_ACEOF
45107 /* confdefs.h.  */
45108 _ACEOF
45109 cat confdefs.h >>conftest.$ac_ext
45110 cat >>conftest.$ac_ext <<_ACEOF
45111 /* end confdefs.h.  */
45112 $ac_includes_default
45113 #include <$ac_header>
45114 _ACEOF
45115 rm -f conftest.$ac_objext
45116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45117   (eval $ac_compile) 2>conftest.er1
45118   ac_status=$?
45119   grep -v '^ *+' conftest.er1 >conftest.err
45120   rm -f conftest.er1
45121   cat conftest.err >&5
45122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123   (exit $ac_status); } &&
45124          { ac_try='test -z "$ac_c_werror_flag"
45125                          || test ! -s conftest.err'
45126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45127   (eval $ac_try) 2>&5
45128   ac_status=$?
45129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130   (exit $ac_status); }; } &&
45131          { ac_try='test -s conftest.$ac_objext'
45132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45133   (eval $ac_try) 2>&5
45134   ac_status=$?
45135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45136   (exit $ac_status); }; }; then
45137   ac_header_compiler=yes
45138 else
45139   echo "$as_me: failed program was:" >&5
45140 sed 's/^/| /' conftest.$ac_ext >&5
45141
45142 ac_header_compiler=no
45143 fi
45144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45146 echo "${ECHO_T}$ac_header_compiler" >&6
45147
45148 # Is the header present?
45149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45151 cat >conftest.$ac_ext <<_ACEOF
45152 /* confdefs.h.  */
45153 _ACEOF
45154 cat confdefs.h >>conftest.$ac_ext
45155 cat >>conftest.$ac_ext <<_ACEOF
45156 /* end confdefs.h.  */
45157 #include <$ac_header>
45158 _ACEOF
45159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45161   ac_status=$?
45162   grep -v '^ *+' conftest.er1 >conftest.err
45163   rm -f conftest.er1
45164   cat conftest.err >&5
45165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45166   (exit $ac_status); } >/dev/null; then
45167   if test -s conftest.err; then
45168     ac_cpp_err=$ac_c_preproc_warn_flag
45169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45170   else
45171     ac_cpp_err=
45172   fi
45173 else
45174   ac_cpp_err=yes
45175 fi
45176 if test -z "$ac_cpp_err"; then
45177   ac_header_preproc=yes
45178 else
45179   echo "$as_me: failed program was:" >&5
45180 sed 's/^/| /' conftest.$ac_ext >&5
45181
45182   ac_header_preproc=no
45183 fi
45184 rm -f conftest.err conftest.$ac_ext
45185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45186 echo "${ECHO_T}$ac_header_preproc" >&6
45187
45188 # So?  What about this header?
45189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45190   yes:no: )
45191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45195     ac_header_preproc=yes
45196     ;;
45197   no:yes:* )
45198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45210     (
45211       cat <<\_ASBOX
45212 ## ------------------------------------------ ##
45213 ## Report this to the AC_PACKAGE_NAME lists.  ##
45214 ## ------------------------------------------ ##
45215 _ASBOX
45216     ) |
45217       sed "s/^/$as_me: WARNING:     /" >&2
45218     ;;
45219 esac
45220 echo "$as_me:$LINENO: checking for $ac_header" >&5
45221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45223   echo $ECHO_N "(cached) $ECHO_C" >&6
45224 else
45225   eval "$as_ac_Header=\$ac_header_preproc"
45226 fi
45227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45229
45230 fi
45231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45232   cat >>confdefs.h <<_ACEOF
45233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45234 _ACEOF
45235
45236 else
45237
45238                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45239 echo "$as_me: error: could not locate SQL headers" >&2;}
45240    { (exit 1); exit 1; }; }
45241
45242 fi
45243
45244 done
45245
45246
45247         sql_LIBS="$LIBS"
45248         LIBS="$LTHREAD_LIBS"
45249
45250         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45251 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45252 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45253   echo $ECHO_N "(cached) $ECHO_C" >&6
45254 else
45255   ac_check_lib_save_LIBS=$LIBS
45256 LIBS="-liodbc  $LIBS"
45257 cat >conftest.$ac_ext <<_ACEOF
45258 /* confdefs.h.  */
45259 _ACEOF
45260 cat confdefs.h >>conftest.$ac_ext
45261 cat >>conftest.$ac_ext <<_ACEOF
45262 /* end confdefs.h.  */
45263
45264 /* Override any gcc2 internal prototype to avoid an error.  */
45265 #ifdef __cplusplus
45266 extern "C"
45267 #endif
45268 /* We use char because int might match the return type of a gcc2
45269    builtin and then its argument prototype would still apply.  */
45270 char SQLDriverConnect ();
45271 int
45272 main ()
45273 {
45274 SQLDriverConnect ();
45275   ;
45276   return 0;
45277 }
45278 _ACEOF
45279 rm -f conftest.$ac_objext conftest$ac_exeext
45280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45281   (eval $ac_link) 2>conftest.er1
45282   ac_status=$?
45283   grep -v '^ *+' conftest.er1 >conftest.err
45284   rm -f conftest.er1
45285   cat conftest.err >&5
45286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45287   (exit $ac_status); } &&
45288          { ac_try='test -z "$ac_c_werror_flag"
45289                          || test ! -s conftest.err'
45290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45291   (eval $ac_try) 2>&5
45292   ac_status=$?
45293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45294   (exit $ac_status); }; } &&
45295          { ac_try='test -s conftest$ac_exeext'
45296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45297   (eval $ac_try) 2>&5
45298   ac_status=$?
45299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45300   (exit $ac_status); }; }; then
45301   ac_cv_lib_iodbc_SQLDriverConnect=yes
45302 else
45303   echo "$as_me: failed program was:" >&5
45304 sed 's/^/| /' conftest.$ac_ext >&5
45305
45306 ac_cv_lib_iodbc_SQLDriverConnect=no
45307 fi
45308 rm -f conftest.err conftest.$ac_objext \
45309       conftest$ac_exeext conftest.$ac_ext
45310 LIBS=$ac_check_lib_save_LIBS
45311 fi
45312 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45313 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45314 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45315   have_iodbc=yes
45316 else
45317   have_iodbc=no
45318 fi
45319
45320         if test $have_iodbc = yes ; then
45321                 ol_link_sql="-liodbc"
45322         else
45323                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45324 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45325 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45326   echo $ECHO_N "(cached) $ECHO_C" >&6
45327 else
45328   ac_check_lib_save_LIBS=$LIBS
45329 LIBS="-lodbc  $LIBS"
45330 cat >conftest.$ac_ext <<_ACEOF
45331 /* confdefs.h.  */
45332 _ACEOF
45333 cat confdefs.h >>conftest.$ac_ext
45334 cat >>conftest.$ac_ext <<_ACEOF
45335 /* end confdefs.h.  */
45336
45337 /* Override any gcc2 internal prototype to avoid an error.  */
45338 #ifdef __cplusplus
45339 extern "C"
45340 #endif
45341 /* We use char because int might match the return type of a gcc2
45342    builtin and then its argument prototype would still apply.  */
45343 char SQLDriverConnect ();
45344 int
45345 main ()
45346 {
45347 SQLDriverConnect ();
45348   ;
45349   return 0;
45350 }
45351 _ACEOF
45352 rm -f conftest.$ac_objext conftest$ac_exeext
45353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45354   (eval $ac_link) 2>conftest.er1
45355   ac_status=$?
45356   grep -v '^ *+' conftest.er1 >conftest.err
45357   rm -f conftest.er1
45358   cat conftest.err >&5
45359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45360   (exit $ac_status); } &&
45361          { ac_try='test -z "$ac_c_werror_flag"
45362                          || test ! -s conftest.err'
45363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45364   (eval $ac_try) 2>&5
45365   ac_status=$?
45366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45367   (exit $ac_status); }; } &&
45368          { ac_try='test -s conftest$ac_exeext'
45369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45370   (eval $ac_try) 2>&5
45371   ac_status=$?
45372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373   (exit $ac_status); }; }; then
45374   ac_cv_lib_odbc_SQLDriverConnect=yes
45375 else
45376   echo "$as_me: failed program was:" >&5
45377 sed 's/^/| /' conftest.$ac_ext >&5
45378
45379 ac_cv_lib_odbc_SQLDriverConnect=no
45380 fi
45381 rm -f conftest.err conftest.$ac_objext \
45382       conftest$ac_exeext conftest.$ac_ext
45383 LIBS=$ac_check_lib_save_LIBS
45384 fi
45385 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45386 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45387 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45388   have_odbc=yes
45389 else
45390   have_odbc=no
45391 fi
45392
45393                 if test $have_odbc = yes ; then
45394                         ol_link_sql="-lodbc"
45395                 fi
45396         fi
45397
45398         LIBS="$sql_LIBS"
45399
45400         if test $ol_link_sql != no ; then
45401                 SLAPD_SQL_LIBS="$ol_link_sql"
45402
45403         elif test $ol_enable_sql != auto ; then
45404                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45405 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45406    { (exit 1); exit 1; }; }
45407         fi
45408 fi
45409
45410 WITH_SASL=no
45411 ol_link_sasl=no
45412 ol_link_spasswd=no
45413 if test $ol_with_cyrus_sasl != no ; then
45414
45415
45416 for ac_header in sasl/sasl.h sasl.h
45417 do
45418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45420   echo "$as_me:$LINENO: checking for $ac_header" >&5
45421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45423   echo $ECHO_N "(cached) $ECHO_C" >&6
45424 fi
45425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45427 else
45428   # Is the header compilable?
45429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45431 cat >conftest.$ac_ext <<_ACEOF
45432 /* confdefs.h.  */
45433 _ACEOF
45434 cat confdefs.h >>conftest.$ac_ext
45435 cat >>conftest.$ac_ext <<_ACEOF
45436 /* end confdefs.h.  */
45437 $ac_includes_default
45438 #include <$ac_header>
45439 _ACEOF
45440 rm -f conftest.$ac_objext
45441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45442   (eval $ac_compile) 2>conftest.er1
45443   ac_status=$?
45444   grep -v '^ *+' conftest.er1 >conftest.err
45445   rm -f conftest.er1
45446   cat conftest.err >&5
45447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); } &&
45449          { ac_try='test -z "$ac_c_werror_flag"
45450                          || test ! -s conftest.err'
45451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45452   (eval $ac_try) 2>&5
45453   ac_status=$?
45454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45455   (exit $ac_status); }; } &&
45456          { ac_try='test -s conftest.$ac_objext'
45457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45458   (eval $ac_try) 2>&5
45459   ac_status=$?
45460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45461   (exit $ac_status); }; }; then
45462   ac_header_compiler=yes
45463 else
45464   echo "$as_me: failed program was:" >&5
45465 sed 's/^/| /' conftest.$ac_ext >&5
45466
45467 ac_header_compiler=no
45468 fi
45469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45471 echo "${ECHO_T}$ac_header_compiler" >&6
45472
45473 # Is the header present?
45474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45476 cat >conftest.$ac_ext <<_ACEOF
45477 /* confdefs.h.  */
45478 _ACEOF
45479 cat confdefs.h >>conftest.$ac_ext
45480 cat >>conftest.$ac_ext <<_ACEOF
45481 /* end confdefs.h.  */
45482 #include <$ac_header>
45483 _ACEOF
45484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45486   ac_status=$?
45487   grep -v '^ *+' conftest.er1 >conftest.err
45488   rm -f conftest.er1
45489   cat conftest.err >&5
45490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45491   (exit $ac_status); } >/dev/null; then
45492   if test -s conftest.err; then
45493     ac_cpp_err=$ac_c_preproc_warn_flag
45494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45495   else
45496     ac_cpp_err=
45497   fi
45498 else
45499   ac_cpp_err=yes
45500 fi
45501 if test -z "$ac_cpp_err"; then
45502   ac_header_preproc=yes
45503 else
45504   echo "$as_me: failed program was:" >&5
45505 sed 's/^/| /' conftest.$ac_ext >&5
45506
45507   ac_header_preproc=no
45508 fi
45509 rm -f conftest.err conftest.$ac_ext
45510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45511 echo "${ECHO_T}$ac_header_preproc" >&6
45512
45513 # So?  What about this header?
45514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45515   yes:no: )
45516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45520     ac_header_preproc=yes
45521     ;;
45522   no:yes:* )
45523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45535     (
45536       cat <<\_ASBOX
45537 ## ------------------------------------------ ##
45538 ## Report this to the AC_PACKAGE_NAME lists.  ##
45539 ## ------------------------------------------ ##
45540 _ASBOX
45541     ) |
45542       sed "s/^/$as_me: WARNING:     /" >&2
45543     ;;
45544 esac
45545 echo "$as_me:$LINENO: checking for $ac_header" >&5
45546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45548   echo $ECHO_N "(cached) $ECHO_C" >&6
45549 else
45550   eval "$as_ac_Header=\$ac_header_preproc"
45551 fi
45552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45554
45555 fi
45556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45557   cat >>confdefs.h <<_ACEOF
45558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45559 _ACEOF
45560
45561 fi
45562
45563 done
45564
45565
45566         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45567                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45568 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45569 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45570   echo $ECHO_N "(cached) $ECHO_C" >&6
45571 else
45572   ac_check_lib_save_LIBS=$LIBS
45573 LIBS="-lsasl2  $LIBS"
45574 cat >conftest.$ac_ext <<_ACEOF
45575 /* confdefs.h.  */
45576 _ACEOF
45577 cat confdefs.h >>conftest.$ac_ext
45578 cat >>conftest.$ac_ext <<_ACEOF
45579 /* end confdefs.h.  */
45580
45581 /* Override any gcc2 internal prototype to avoid an error.  */
45582 #ifdef __cplusplus
45583 extern "C"
45584 #endif
45585 /* We use char because int might match the return type of a gcc2
45586    builtin and then its argument prototype would still apply.  */
45587 char sasl_client_init ();
45588 int
45589 main ()
45590 {
45591 sasl_client_init ();
45592   ;
45593   return 0;
45594 }
45595 _ACEOF
45596 rm -f conftest.$ac_objext conftest$ac_exeext
45597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45598   (eval $ac_link) 2>conftest.er1
45599   ac_status=$?
45600   grep -v '^ *+' conftest.er1 >conftest.err
45601   rm -f conftest.er1
45602   cat conftest.err >&5
45603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604   (exit $ac_status); } &&
45605          { ac_try='test -z "$ac_c_werror_flag"
45606                          || test ! -s conftest.err'
45607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45608   (eval $ac_try) 2>&5
45609   ac_status=$?
45610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611   (exit $ac_status); }; } &&
45612          { ac_try='test -s conftest$ac_exeext'
45613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45614   (eval $ac_try) 2>&5
45615   ac_status=$?
45616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45617   (exit $ac_status); }; }; then
45618   ac_cv_lib_sasl2_sasl_client_init=yes
45619 else
45620   echo "$as_me: failed program was:" >&5
45621 sed 's/^/| /' conftest.$ac_ext >&5
45622
45623 ac_cv_lib_sasl2_sasl_client_init=no
45624 fi
45625 rm -f conftest.err conftest.$ac_objext \
45626       conftest$ac_exeext conftest.$ac_ext
45627 LIBS=$ac_check_lib_save_LIBS
45628 fi
45629 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45630 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45631 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45632   ol_link_sasl="-lsasl2"
45633 else
45634   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45635 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45636 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45637   echo $ECHO_N "(cached) $ECHO_C" >&6
45638 else
45639   ac_check_lib_save_LIBS=$LIBS
45640 LIBS="-lsasl  $LIBS"
45641 cat >conftest.$ac_ext <<_ACEOF
45642 /* confdefs.h.  */
45643 _ACEOF
45644 cat confdefs.h >>conftest.$ac_ext
45645 cat >>conftest.$ac_ext <<_ACEOF
45646 /* end confdefs.h.  */
45647
45648 /* Override any gcc2 internal prototype to avoid an error.  */
45649 #ifdef __cplusplus
45650 extern "C"
45651 #endif
45652 /* We use char because int might match the return type of a gcc2
45653    builtin and then its argument prototype would still apply.  */
45654 char sasl_client_init ();
45655 int
45656 main ()
45657 {
45658 sasl_client_init ();
45659   ;
45660   return 0;
45661 }
45662 _ACEOF
45663 rm -f conftest.$ac_objext conftest$ac_exeext
45664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45665   (eval $ac_link) 2>conftest.er1
45666   ac_status=$?
45667   grep -v '^ *+' conftest.er1 >conftest.err
45668   rm -f conftest.er1
45669   cat conftest.err >&5
45670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45671   (exit $ac_status); } &&
45672          { ac_try='test -z "$ac_c_werror_flag"
45673                          || test ! -s conftest.err'
45674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45675   (eval $ac_try) 2>&5
45676   ac_status=$?
45677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45678   (exit $ac_status); }; } &&
45679          { ac_try='test -s conftest$ac_exeext'
45680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45681   (eval $ac_try) 2>&5
45682   ac_status=$?
45683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45684   (exit $ac_status); }; }; then
45685   ac_cv_lib_sasl_sasl_client_init=yes
45686 else
45687   echo "$as_me: failed program was:" >&5
45688 sed 's/^/| /' conftest.$ac_ext >&5
45689
45690 ac_cv_lib_sasl_sasl_client_init=no
45691 fi
45692 rm -f conftest.err conftest.$ac_objext \
45693       conftest$ac_exeext conftest.$ac_ext
45694 LIBS=$ac_check_lib_save_LIBS
45695 fi
45696 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45697 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45698 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45699   ol_link_sasl="-lsasl"
45700 fi
45701
45702 fi
45703
45704         fi
45705
45706         if test $ol_link_sasl = no ; then
45707                 if test $ol_with_cyrus_sasl != auto ; then
45708                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45709 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45710    { (exit 1); exit 1; }; }
45711                 else
45712                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45713 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45714                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45715 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45716                         if test $ol_link_tls = no ; then
45717                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45718 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45719                         fi
45720                 fi
45721         else
45722                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45723 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45724 if test "${ol_cv_sasl_compat+set}" = set; then
45725   echo $ECHO_N "(cached) $ECHO_C" >&6
45726 else
45727
45728         cat >conftest.$ac_ext <<_ACEOF
45729 /* confdefs.h.  */
45730 _ACEOF
45731 cat confdefs.h >>conftest.$ac_ext
45732 cat >>conftest.$ac_ext <<_ACEOF
45733 /* end confdefs.h.  */
45734
45735 #ifdef HAVE_SASL_SASL_H
45736 #include <sasl/sasl.h>
45737 #else
45738 #include <sasl.h>
45739 #endif
45740
45741 /* Require 2.1.15+ */
45742 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45743         char *__sasl_compat = "2.2+ or better okay (we guess)";
45744 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45745         && SASL_VERSION_STEP >=15
45746         char *__sasl_compat = "2.1.15+ or better okay";
45747 #endif
45748
45749 _ACEOF
45750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45751   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45752   ol_cv_sasl_compat=yes
45753 else
45754   ol_cv_sasl_compat=no
45755 fi
45756 rm -f conftest*
45757
45758 fi
45759 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45760 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45761
45762                 if test $ol_cv_sasl_compat = no ; then
45763                         ol_link_sasl=no
45764                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45765 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45766    { (exit 1); exit 1; }; }
45767                 fi
45768
45769
45770 cat >>confdefs.h <<\_ACEOF
45771 #define HAVE_CYRUS_SASL 1
45772 _ACEOF
45773
45774                 SASL_LIBS="$ol_link_sasl"
45775                 if test $ol_enable_spasswd != no ; then
45776                         ol_link_spasswd=yes
45777                 fi
45778
45779                 ac_save_LIBS="$LIBS"
45780                 LIBS="$LIBS $ol_link_sasl"
45781                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45782 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45783 if test "${ac_cv_func_sasl_version+set}" = set; then
45784   echo $ECHO_N "(cached) $ECHO_C" >&6
45785 else
45786   cat >conftest.$ac_ext <<_ACEOF
45787 /* confdefs.h.  */
45788 _ACEOF
45789 cat confdefs.h >>conftest.$ac_ext
45790 cat >>conftest.$ac_ext <<_ACEOF
45791 /* end confdefs.h.  */
45792 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45794 #define sasl_version innocuous_sasl_version
45795
45796 /* System header to define __stub macros and hopefully few prototypes,
45797     which can conflict with char sasl_version (); below.
45798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45799     <limits.h> exists even on freestanding compilers.  */
45800
45801 #ifdef __STDC__
45802 # include <limits.h>
45803 #else
45804 # include <assert.h>
45805 #endif
45806
45807 #undef sasl_version
45808
45809 /* Override any gcc2 internal prototype to avoid an error.  */
45810 #ifdef __cplusplus
45811 extern "C"
45812 {
45813 #endif
45814 /* We use char because int might match the return type of a gcc2
45815    builtin and then its argument prototype would still apply.  */
45816 char sasl_version ();
45817 /* The GNU C library defines this for functions which it implements
45818     to always fail with ENOSYS.  Some functions are actually named
45819     something starting with __ and the normal name is an alias.  */
45820 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45821 choke me
45822 #else
45823 char (*f) () = sasl_version;
45824 #endif
45825 #ifdef __cplusplus
45826 }
45827 #endif
45828
45829 int
45830 main ()
45831 {
45832 return f != sasl_version;
45833   ;
45834   return 0;
45835 }
45836 _ACEOF
45837 rm -f conftest.$ac_objext conftest$ac_exeext
45838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45839   (eval $ac_link) 2>conftest.er1
45840   ac_status=$?
45841   grep -v '^ *+' conftest.er1 >conftest.err
45842   rm -f conftest.er1
45843   cat conftest.err >&5
45844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45845   (exit $ac_status); } &&
45846          { ac_try='test -z "$ac_c_werror_flag"
45847                          || test ! -s conftest.err'
45848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45849   (eval $ac_try) 2>&5
45850   ac_status=$?
45851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45852   (exit $ac_status); }; } &&
45853          { ac_try='test -s conftest$ac_exeext'
45854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45855   (eval $ac_try) 2>&5
45856   ac_status=$?
45857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45858   (exit $ac_status); }; }; then
45859   ac_cv_func_sasl_version=yes
45860 else
45861   echo "$as_me: failed program was:" >&5
45862 sed 's/^/| /' conftest.$ac_ext >&5
45863
45864 ac_cv_func_sasl_version=no
45865 fi
45866 rm -f conftest.err conftest.$ac_objext \
45867       conftest$ac_exeext conftest.$ac_ext
45868 fi
45869 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45870 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45871 if test $ac_cv_func_sasl_version = yes; then
45872
45873 cat >>confdefs.h <<\_ACEOF
45874 #define HAVE_SASL_VERSION 1
45875 _ACEOF
45876
45877 fi
45878
45879                 LIBS="$ac_save_LIBS"
45880
45881                 WITH_SASL=yes
45882         fi
45883
45884 else
45885         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45886 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45887         if test $ol_link_tls = no ; then
45888                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45889 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45890         fi
45891 fi
45892
45893 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45894         dev=no
45895         if test -r /dev/urandom ; then
45896                 dev="/dev/urandom";
45897         elif test -r /idev/urandom ; then
45898                 dev="/idev/urandom";
45899         elif test -r /dev/srandom ; then
45900                 dev="/dev/srandom";
45901         elif test -r /dev/random ; then
45902                 dev="/dev/random";
45903         elif test -r /idev/random ; then
45904                 dev="/idev/random";
45905         fi
45906
45907         if test $dev != no ; then
45908
45909 cat >>confdefs.h <<_ACEOF
45910 #define URANDOM_DEVICE "$dev"
45911 _ACEOF
45912
45913         fi
45914 fi
45915
45916 ol_link_fetch=no
45917 if test $ol_with_fetch != no ; then
45918         ol_LIBS=$LIBS
45919 LIBS="-lfetch -lcom_err $LIBS"
45920 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45921 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45922 if test "${ol_cv_lib_fetch+set}" = set; then
45923   echo $ECHO_N "(cached) $ECHO_C" >&6
45924 else
45925
45926         cat >conftest.$ac_ext <<_ACEOF
45927 /* confdefs.h.  */
45928 _ACEOF
45929 cat confdefs.h >>conftest.$ac_ext
45930 cat >>conftest.$ac_ext <<_ACEOF
45931 /* end confdefs.h.  */
45932
45933 #include <sys/param.h>
45934 #include <stdio.h>
45935 #include <fetch.h>
45936 int
45937 main ()
45938 {
45939 struct url *u = fetchParseURL("file:///");
45940   ;
45941   return 0;
45942 }
45943 _ACEOF
45944 rm -f conftest.$ac_objext conftest$ac_exeext
45945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45946   (eval $ac_link) 2>conftest.er1
45947   ac_status=$?
45948   grep -v '^ *+' conftest.er1 >conftest.err
45949   rm -f conftest.er1
45950   cat conftest.err >&5
45951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45952   (exit $ac_status); } &&
45953          { ac_try='test -z "$ac_c_werror_flag"
45954                          || test ! -s conftest.err'
45955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45956   (eval $ac_try) 2>&5
45957   ac_status=$?
45958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45959   (exit $ac_status); }; } &&
45960          { ac_try='test -s conftest$ac_exeext'
45961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45962   (eval $ac_try) 2>&5
45963   ac_status=$?
45964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45965   (exit $ac_status); }; }; then
45966   ol_cv_lib_fetch=yes
45967 else
45968   echo "$as_me: failed program was:" >&5
45969 sed 's/^/| /' conftest.$ac_ext >&5
45970
45971 ol_cv_lib_fetch=no
45972 fi
45973 rm -f conftest.err conftest.$ac_objext \
45974       conftest$ac_exeext conftest.$ac_ext
45975 fi
45976 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45977 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45978 LIBS=$ol_LIBS
45979 if test $ol_cv_lib_fetch != no ; then
45980         ol_link_fetch="-lfetch -lcom_err"
45981
45982 cat >>confdefs.h <<\_ACEOF
45983 #define HAVE_FETCH 1
45984 _ACEOF
45985
45986 fi
45987
45988
45989         if test $ol_cv_lib_fetch != no ; then
45990                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45991                 ol_link_fetch=freebsd
45992
45993         elif test $ol_with_fetch != auto ; then
45994                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45995 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45996    { (exit 1); exit 1; }; }
45997         fi
45998 fi
45999
46000 if test $ol_enable_crypt != no ; then
46001         save_LIBS="$LIBS"
46002         LIBS="$TLS_LIBS $LIBS"
46003
46004         echo "$as_me:$LINENO: checking for crypt" >&5
46005 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
46006 if test "${ac_cv_func_crypt+set}" = set; then
46007   echo $ECHO_N "(cached) $ECHO_C" >&6
46008 else
46009   cat >conftest.$ac_ext <<_ACEOF
46010 /* confdefs.h.  */
46011 _ACEOF
46012 cat confdefs.h >>conftest.$ac_ext
46013 cat >>conftest.$ac_ext <<_ACEOF
46014 /* end confdefs.h.  */
46015 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
46016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46017 #define crypt innocuous_crypt
46018
46019 /* System header to define __stub macros and hopefully few prototypes,
46020     which can conflict with char crypt (); below.
46021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46022     <limits.h> exists even on freestanding compilers.  */
46023
46024 #ifdef __STDC__
46025 # include <limits.h>
46026 #else
46027 # include <assert.h>
46028 #endif
46029
46030 #undef crypt
46031
46032 /* Override any gcc2 internal prototype to avoid an error.  */
46033 #ifdef __cplusplus
46034 extern "C"
46035 {
46036 #endif
46037 /* We use char because int might match the return type of a gcc2
46038    builtin and then its argument prototype would still apply.  */
46039 char crypt ();
46040 /* The GNU C library defines this for functions which it implements
46041     to always fail with ENOSYS.  Some functions are actually named
46042     something starting with __ and the normal name is an alias.  */
46043 #if defined (__stub_crypt) || defined (__stub___crypt)
46044 choke me
46045 #else
46046 char (*f) () = crypt;
46047 #endif
46048 #ifdef __cplusplus
46049 }
46050 #endif
46051
46052 int
46053 main ()
46054 {
46055 return f != crypt;
46056   ;
46057   return 0;
46058 }
46059 _ACEOF
46060 rm -f conftest.$ac_objext conftest$ac_exeext
46061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46062   (eval $ac_link) 2>conftest.er1
46063   ac_status=$?
46064   grep -v '^ *+' conftest.er1 >conftest.err
46065   rm -f conftest.er1
46066   cat conftest.err >&5
46067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068   (exit $ac_status); } &&
46069          { ac_try='test -z "$ac_c_werror_flag"
46070                          || test ! -s conftest.err'
46071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46072   (eval $ac_try) 2>&5
46073   ac_status=$?
46074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46075   (exit $ac_status); }; } &&
46076          { ac_try='test -s conftest$ac_exeext'
46077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46078   (eval $ac_try) 2>&5
46079   ac_status=$?
46080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46081   (exit $ac_status); }; }; then
46082   ac_cv_func_crypt=yes
46083 else
46084   echo "$as_me: failed program was:" >&5
46085 sed 's/^/| /' conftest.$ac_ext >&5
46086
46087 ac_cv_func_crypt=no
46088 fi
46089 rm -f conftest.err conftest.$ac_objext \
46090       conftest$ac_exeext conftest.$ac_ext
46091 fi
46092 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46093 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46094 if test $ac_cv_func_crypt = yes; then
46095   have_crypt=yes
46096 else
46097
46098                 LIBS="$save_LIBS"
46099                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46100 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46101 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46102   echo $ECHO_N "(cached) $ECHO_C" >&6
46103 else
46104   ac_check_lib_save_LIBS=$LIBS
46105 LIBS="-lcrypt  $LIBS"
46106 cat >conftest.$ac_ext <<_ACEOF
46107 /* confdefs.h.  */
46108 _ACEOF
46109 cat confdefs.h >>conftest.$ac_ext
46110 cat >>conftest.$ac_ext <<_ACEOF
46111 /* end confdefs.h.  */
46112
46113 /* Override any gcc2 internal prototype to avoid an error.  */
46114 #ifdef __cplusplus
46115 extern "C"
46116 #endif
46117 /* We use char because int might match the return type of a gcc2
46118    builtin and then its argument prototype would still apply.  */
46119 char crypt ();
46120 int
46121 main ()
46122 {
46123 crypt ();
46124   ;
46125   return 0;
46126 }
46127 _ACEOF
46128 rm -f conftest.$ac_objext conftest$ac_exeext
46129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46130   (eval $ac_link) 2>conftest.er1
46131   ac_status=$?
46132   grep -v '^ *+' conftest.er1 >conftest.err
46133   rm -f conftest.er1
46134   cat conftest.err >&5
46135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46136   (exit $ac_status); } &&
46137          { ac_try='test -z "$ac_c_werror_flag"
46138                          || test ! -s conftest.err'
46139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46140   (eval $ac_try) 2>&5
46141   ac_status=$?
46142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143   (exit $ac_status); }; } &&
46144          { ac_try='test -s conftest$ac_exeext'
46145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46146   (eval $ac_try) 2>&5
46147   ac_status=$?
46148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46149   (exit $ac_status); }; }; then
46150   ac_cv_lib_crypt_crypt=yes
46151 else
46152   echo "$as_me: failed program was:" >&5
46153 sed 's/^/| /' conftest.$ac_ext >&5
46154
46155 ac_cv_lib_crypt_crypt=no
46156 fi
46157 rm -f conftest.err conftest.$ac_objext \
46158       conftest$ac_exeext conftest.$ac_ext
46159 LIBS=$ac_check_lib_save_LIBS
46160 fi
46161 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46162 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46163 if test $ac_cv_lib_crypt_crypt = yes; then
46164   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46165                         have_crypt=yes
46166 else
46167   have_crypt=no
46168 fi
46169
46170 fi
46171
46172
46173         LIBS="$save_LIBS"
46174
46175         if test $have_crypt = yes ; then
46176
46177 cat >>confdefs.h <<\_ACEOF
46178 #define HAVE_CRYPT 1
46179 _ACEOF
46180
46181         else
46182                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46183 echo "$as_me: WARNING: could not find crypt" >&2;}
46184                 if test $ol_enable_crypt = yes ; then
46185                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46186 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46187    { (exit 1); exit 1; }; }
46188                 fi
46189
46190                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46191 echo "$as_me: WARNING: disabling crypt support" >&2;}
46192                 ol_enable_crypt=no
46193         fi
46194 fi
46195
46196 if test $ol_enable_proctitle != no ; then
46197         echo "$as_me:$LINENO: checking for setproctitle" >&5
46198 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46199 if test "${ac_cv_func_setproctitle+set}" = set; then
46200   echo $ECHO_N "(cached) $ECHO_C" >&6
46201 else
46202   cat >conftest.$ac_ext <<_ACEOF
46203 /* confdefs.h.  */
46204 _ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h.  */
46208 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46210 #define setproctitle innocuous_setproctitle
46211
46212 /* System header to define __stub macros and hopefully few prototypes,
46213     which can conflict with char setproctitle (); below.
46214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46215     <limits.h> exists even on freestanding compilers.  */
46216
46217 #ifdef __STDC__
46218 # include <limits.h>
46219 #else
46220 # include <assert.h>
46221 #endif
46222
46223 #undef setproctitle
46224
46225 /* Override any gcc2 internal prototype to avoid an error.  */
46226 #ifdef __cplusplus
46227 extern "C"
46228 {
46229 #endif
46230 /* We use char because int might match the return type of a gcc2
46231    builtin and then its argument prototype would still apply.  */
46232 char setproctitle ();
46233 /* The GNU C library defines this for functions which it implements
46234     to always fail with ENOSYS.  Some functions are actually named
46235     something starting with __ and the normal name is an alias.  */
46236 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46237 choke me
46238 #else
46239 char (*f) () = setproctitle;
46240 #endif
46241 #ifdef __cplusplus
46242 }
46243 #endif
46244
46245 int
46246 main ()
46247 {
46248 return f != setproctitle;
46249   ;
46250   return 0;
46251 }
46252 _ACEOF
46253 rm -f conftest.$ac_objext conftest$ac_exeext
46254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46255   (eval $ac_link) 2>conftest.er1
46256   ac_status=$?
46257   grep -v '^ *+' conftest.er1 >conftest.err
46258   rm -f conftest.er1
46259   cat conftest.err >&5
46260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261   (exit $ac_status); } &&
46262          { ac_try='test -z "$ac_c_werror_flag"
46263                          || test ! -s conftest.err'
46264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46265   (eval $ac_try) 2>&5
46266   ac_status=$?
46267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46268   (exit $ac_status); }; } &&
46269          { ac_try='test -s conftest$ac_exeext'
46270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46271   (eval $ac_try) 2>&5
46272   ac_status=$?
46273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46274   (exit $ac_status); }; }; then
46275   ac_cv_func_setproctitle=yes
46276 else
46277   echo "$as_me: failed program was:" >&5
46278 sed 's/^/| /' conftest.$ac_ext >&5
46279
46280 ac_cv_func_setproctitle=no
46281 fi
46282 rm -f conftest.err conftest.$ac_objext \
46283       conftest$ac_exeext conftest.$ac_ext
46284 fi
46285 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46286 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46287 if test $ac_cv_func_setproctitle = yes; then
46288   have_setproctitle=yes
46289 else
46290
46291                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46292 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46293 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46294   echo $ECHO_N "(cached) $ECHO_C" >&6
46295 else
46296   ac_check_lib_save_LIBS=$LIBS
46297 LIBS="-lutil  $LIBS"
46298 cat >conftest.$ac_ext <<_ACEOF
46299 /* confdefs.h.  */
46300 _ACEOF
46301 cat confdefs.h >>conftest.$ac_ext
46302 cat >>conftest.$ac_ext <<_ACEOF
46303 /* end confdefs.h.  */
46304
46305 /* Override any gcc2 internal prototype to avoid an error.  */
46306 #ifdef __cplusplus
46307 extern "C"
46308 #endif
46309 /* We use char because int might match the return type of a gcc2
46310    builtin and then its argument prototype would still apply.  */
46311 char setproctitle ();
46312 int
46313 main ()
46314 {
46315 setproctitle ();
46316   ;
46317   return 0;
46318 }
46319 _ACEOF
46320 rm -f conftest.$ac_objext conftest$ac_exeext
46321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46322   (eval $ac_link) 2>conftest.er1
46323   ac_status=$?
46324   grep -v '^ *+' conftest.er1 >conftest.err
46325   rm -f conftest.er1
46326   cat conftest.err >&5
46327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46328   (exit $ac_status); } &&
46329          { ac_try='test -z "$ac_c_werror_flag"
46330                          || test ! -s conftest.err'
46331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46332   (eval $ac_try) 2>&5
46333   ac_status=$?
46334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46335   (exit $ac_status); }; } &&
46336          { ac_try='test -s conftest$ac_exeext'
46337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46338   (eval $ac_try) 2>&5
46339   ac_status=$?
46340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46341   (exit $ac_status); }; }; then
46342   ac_cv_lib_util_setproctitle=yes
46343 else
46344   echo "$as_me: failed program was:" >&5
46345 sed 's/^/| /' conftest.$ac_ext >&5
46346
46347 ac_cv_lib_util_setproctitle=no
46348 fi
46349 rm -f conftest.err conftest.$ac_objext \
46350       conftest$ac_exeext conftest.$ac_ext
46351 LIBS=$ac_check_lib_save_LIBS
46352 fi
46353 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46354 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46355 if test $ac_cv_lib_util_setproctitle = yes; then
46356   have_setproctitle=yes
46357                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46358 else
46359   have_setproctitle=no
46360                         case $LIBOBJS in
46361     "setproctitle.$ac_objext"   | \
46362   *" setproctitle.$ac_objext"   | \
46363     "setproctitle.$ac_objext "* | \
46364   *" setproctitle.$ac_objext "* ) ;;
46365   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46366 esac
46367
46368                         LIBSRCS="$LIBSRCS setproctitle.c"
46369 fi
46370
46371 fi
46372
46373
46374         if test $have_setproctitle = yes ; then
46375
46376 cat >>confdefs.h <<\_ACEOF
46377 #define HAVE_SETPROCTITLE 1
46378 _ACEOF
46379
46380         fi
46381 fi
46382
46383 if test $ol_enable_slp != no ; then
46384
46385 for ac_header in slp.h
46386 do
46387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46389   echo "$as_me:$LINENO: checking for $ac_header" >&5
46390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46392   echo $ECHO_N "(cached) $ECHO_C" >&6
46393 fi
46394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46396 else
46397   # Is the header compilable?
46398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46400 cat >conftest.$ac_ext <<_ACEOF
46401 /* confdefs.h.  */
46402 _ACEOF
46403 cat confdefs.h >>conftest.$ac_ext
46404 cat >>conftest.$ac_ext <<_ACEOF
46405 /* end confdefs.h.  */
46406 $ac_includes_default
46407 #include <$ac_header>
46408 _ACEOF
46409 rm -f conftest.$ac_objext
46410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46411   (eval $ac_compile) 2>conftest.er1
46412   ac_status=$?
46413   grep -v '^ *+' conftest.er1 >conftest.err
46414   rm -f conftest.er1
46415   cat conftest.err >&5
46416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46417   (exit $ac_status); } &&
46418          { ac_try='test -z "$ac_c_werror_flag"
46419                          || test ! -s conftest.err'
46420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46421   (eval $ac_try) 2>&5
46422   ac_status=$?
46423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46424   (exit $ac_status); }; } &&
46425          { ac_try='test -s conftest.$ac_objext'
46426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46427   (eval $ac_try) 2>&5
46428   ac_status=$?
46429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46430   (exit $ac_status); }; }; then
46431   ac_header_compiler=yes
46432 else
46433   echo "$as_me: failed program was:" >&5
46434 sed 's/^/| /' conftest.$ac_ext >&5
46435
46436 ac_header_compiler=no
46437 fi
46438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46440 echo "${ECHO_T}$ac_header_compiler" >&6
46441
46442 # Is the header present?
46443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46445 cat >conftest.$ac_ext <<_ACEOF
46446 /* confdefs.h.  */
46447 _ACEOF
46448 cat confdefs.h >>conftest.$ac_ext
46449 cat >>conftest.$ac_ext <<_ACEOF
46450 /* end confdefs.h.  */
46451 #include <$ac_header>
46452 _ACEOF
46453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46455   ac_status=$?
46456   grep -v '^ *+' conftest.er1 >conftest.err
46457   rm -f conftest.er1
46458   cat conftest.err >&5
46459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460   (exit $ac_status); } >/dev/null; then
46461   if test -s conftest.err; then
46462     ac_cpp_err=$ac_c_preproc_warn_flag
46463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46464   else
46465     ac_cpp_err=
46466   fi
46467 else
46468   ac_cpp_err=yes
46469 fi
46470 if test -z "$ac_cpp_err"; then
46471   ac_header_preproc=yes
46472 else
46473   echo "$as_me: failed program was:" >&5
46474 sed 's/^/| /' conftest.$ac_ext >&5
46475
46476   ac_header_preproc=no
46477 fi
46478 rm -f conftest.err conftest.$ac_ext
46479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46480 echo "${ECHO_T}$ac_header_preproc" >&6
46481
46482 # So?  What about this header?
46483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46484   yes:no: )
46485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46489     ac_header_preproc=yes
46490     ;;
46491   no:yes:* )
46492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46504     (
46505       cat <<\_ASBOX
46506 ## ------------------------------------------ ##
46507 ## Report this to the AC_PACKAGE_NAME lists.  ##
46508 ## ------------------------------------------ ##
46509 _ASBOX
46510     ) |
46511       sed "s/^/$as_me: WARNING:     /" >&2
46512     ;;
46513 esac
46514 echo "$as_me:$LINENO: checking for $ac_header" >&5
46515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46517   echo $ECHO_N "(cached) $ECHO_C" >&6
46518 else
46519   eval "$as_ac_Header=\$ac_header_preproc"
46520 fi
46521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46523
46524 fi
46525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46526   cat >>confdefs.h <<_ACEOF
46527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46528 _ACEOF
46529
46530 fi
46531
46532 done
46533
46534
46535         if test $ac_cv_header_slp_h = yes ; then
46536                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46537 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46538 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46539   echo $ECHO_N "(cached) $ECHO_C" >&6
46540 else
46541   ac_check_lib_save_LIBS=$LIBS
46542 LIBS="-lslp  $LIBS"
46543 cat >conftest.$ac_ext <<_ACEOF
46544 /* confdefs.h.  */
46545 _ACEOF
46546 cat confdefs.h >>conftest.$ac_ext
46547 cat >>conftest.$ac_ext <<_ACEOF
46548 /* end confdefs.h.  */
46549
46550 /* Override any gcc2 internal prototype to avoid an error.  */
46551 #ifdef __cplusplus
46552 extern "C"
46553 #endif
46554 /* We use char because int might match the return type of a gcc2
46555    builtin and then its argument prototype would still apply.  */
46556 char SLPOpen ();
46557 int
46558 main ()
46559 {
46560 SLPOpen ();
46561   ;
46562   return 0;
46563 }
46564 _ACEOF
46565 rm -f conftest.$ac_objext conftest$ac_exeext
46566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46567   (eval $ac_link) 2>conftest.er1
46568   ac_status=$?
46569   grep -v '^ *+' conftest.er1 >conftest.err
46570   rm -f conftest.er1
46571   cat conftest.err >&5
46572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46573   (exit $ac_status); } &&
46574          { ac_try='test -z "$ac_c_werror_flag"
46575                          || test ! -s conftest.err'
46576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46577   (eval $ac_try) 2>&5
46578   ac_status=$?
46579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46580   (exit $ac_status); }; } &&
46581          { ac_try='test -s conftest$ac_exeext'
46582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46583   (eval $ac_try) 2>&5
46584   ac_status=$?
46585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586   (exit $ac_status); }; }; then
46587   ac_cv_lib_slp_SLPOpen=yes
46588 else
46589   echo "$as_me: failed program was:" >&5
46590 sed 's/^/| /' conftest.$ac_ext >&5
46591
46592 ac_cv_lib_slp_SLPOpen=no
46593 fi
46594 rm -f conftest.err conftest.$ac_objext \
46595       conftest$ac_exeext conftest.$ac_ext
46596 LIBS=$ac_check_lib_save_LIBS
46597 fi
46598 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46599 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46600 if test $ac_cv_lib_slp_SLPOpen = yes; then
46601   have_slp=yes
46602 else
46603   have_slp=no
46604 fi
46605
46606                 if test $have_slp = yes ; then
46607
46608 cat >>confdefs.h <<\_ACEOF
46609 #define HAVE_SLP 1
46610 _ACEOF
46611
46612                         SLAPD_SLP_LIBS=-lslp
46613                 fi
46614
46615         elif test $ol_enable_slp = yes ; then
46616                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46617 echo "$as_me: error: SLP not found" >&2;}
46618    { (exit 1); exit 1; }; }
46619         fi
46620 fi
46621
46622 if test "$ol_with_multiple_precision" != "no" ; then
46623         ol_have_bignum=no
46624         ol_have_gmp=no
46625
46626
46627
46628 for ac_header in openssl/bn.h bn.h
46629 do
46630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46632   echo "$as_me:$LINENO: checking for $ac_header" >&5
46633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46635   echo $ECHO_N "(cached) $ECHO_C" >&6
46636 fi
46637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46639 else
46640   # Is the header compilable?
46641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46643 cat >conftest.$ac_ext <<_ACEOF
46644 /* confdefs.h.  */
46645 _ACEOF
46646 cat confdefs.h >>conftest.$ac_ext
46647 cat >>conftest.$ac_ext <<_ACEOF
46648 /* end confdefs.h.  */
46649 $ac_includes_default
46650 #include <$ac_header>
46651 _ACEOF
46652 rm -f conftest.$ac_objext
46653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46654   (eval $ac_compile) 2>conftest.er1
46655   ac_status=$?
46656   grep -v '^ *+' conftest.er1 >conftest.err
46657   rm -f conftest.er1
46658   cat conftest.err >&5
46659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); } &&
46661          { ac_try='test -z "$ac_c_werror_flag"
46662                          || test ! -s conftest.err'
46663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46664   (eval $ac_try) 2>&5
46665   ac_status=$?
46666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46667   (exit $ac_status); }; } &&
46668          { ac_try='test -s conftest.$ac_objext'
46669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46670   (eval $ac_try) 2>&5
46671   ac_status=$?
46672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46673   (exit $ac_status); }; }; then
46674   ac_header_compiler=yes
46675 else
46676   echo "$as_me: failed program was:" >&5
46677 sed 's/^/| /' conftest.$ac_ext >&5
46678
46679 ac_header_compiler=no
46680 fi
46681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46683 echo "${ECHO_T}$ac_header_compiler" >&6
46684
46685 # Is the header present?
46686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46688 cat >conftest.$ac_ext <<_ACEOF
46689 /* confdefs.h.  */
46690 _ACEOF
46691 cat confdefs.h >>conftest.$ac_ext
46692 cat >>conftest.$ac_ext <<_ACEOF
46693 /* end confdefs.h.  */
46694 #include <$ac_header>
46695 _ACEOF
46696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46698   ac_status=$?
46699   grep -v '^ *+' conftest.er1 >conftest.err
46700   rm -f conftest.er1
46701   cat conftest.err >&5
46702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46703   (exit $ac_status); } >/dev/null; then
46704   if test -s conftest.err; then
46705     ac_cpp_err=$ac_c_preproc_warn_flag
46706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46707   else
46708     ac_cpp_err=
46709   fi
46710 else
46711   ac_cpp_err=yes
46712 fi
46713 if test -z "$ac_cpp_err"; then
46714   ac_header_preproc=yes
46715 else
46716   echo "$as_me: failed program was:" >&5
46717 sed 's/^/| /' conftest.$ac_ext >&5
46718
46719   ac_header_preproc=no
46720 fi
46721 rm -f conftest.err conftest.$ac_ext
46722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46723 echo "${ECHO_T}$ac_header_preproc" >&6
46724
46725 # So?  What about this header?
46726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46727   yes:no: )
46728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46732     ac_header_preproc=yes
46733     ;;
46734   no:yes:* )
46735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46747     (
46748       cat <<\_ASBOX
46749 ## ------------------------------------------ ##
46750 ## Report this to the AC_PACKAGE_NAME lists.  ##
46751 ## ------------------------------------------ ##
46752 _ASBOX
46753     ) |
46754       sed "s/^/$as_me: WARNING:     /" >&2
46755     ;;
46756 esac
46757 echo "$as_me:$LINENO: checking for $ac_header" >&5
46758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46760   echo $ECHO_N "(cached) $ECHO_C" >&6
46761 else
46762   eval "$as_ac_Header=\$ac_header_preproc"
46763 fi
46764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46766
46767 fi
46768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46769   cat >>confdefs.h <<_ACEOF
46770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46771 _ACEOF
46772
46773 fi
46774
46775 done
46776
46777
46778
46779 for ac_header in openssl/crypto.h crypto.h
46780 do
46781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46783   echo "$as_me:$LINENO: checking for $ac_header" >&5
46784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46786   echo $ECHO_N "(cached) $ECHO_C" >&6
46787 fi
46788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46790 else
46791   # Is the header compilable?
46792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46794 cat >conftest.$ac_ext <<_ACEOF
46795 /* confdefs.h.  */
46796 _ACEOF
46797 cat confdefs.h >>conftest.$ac_ext
46798 cat >>conftest.$ac_ext <<_ACEOF
46799 /* end confdefs.h.  */
46800 $ac_includes_default
46801 #include <$ac_header>
46802 _ACEOF
46803 rm -f conftest.$ac_objext
46804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46805   (eval $ac_compile) 2>conftest.er1
46806   ac_status=$?
46807   grep -v '^ *+' conftest.er1 >conftest.err
46808   rm -f conftest.er1
46809   cat conftest.err >&5
46810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46811   (exit $ac_status); } &&
46812          { ac_try='test -z "$ac_c_werror_flag"
46813                          || test ! -s conftest.err'
46814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46815   (eval $ac_try) 2>&5
46816   ac_status=$?
46817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818   (exit $ac_status); }; } &&
46819          { ac_try='test -s conftest.$ac_objext'
46820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46821   (eval $ac_try) 2>&5
46822   ac_status=$?
46823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824   (exit $ac_status); }; }; then
46825   ac_header_compiler=yes
46826 else
46827   echo "$as_me: failed program was:" >&5
46828 sed 's/^/| /' conftest.$ac_ext >&5
46829
46830 ac_header_compiler=no
46831 fi
46832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46834 echo "${ECHO_T}$ac_header_compiler" >&6
46835
46836 # Is the header present?
46837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46839 cat >conftest.$ac_ext <<_ACEOF
46840 /* confdefs.h.  */
46841 _ACEOF
46842 cat confdefs.h >>conftest.$ac_ext
46843 cat >>conftest.$ac_ext <<_ACEOF
46844 /* end confdefs.h.  */
46845 #include <$ac_header>
46846 _ACEOF
46847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46849   ac_status=$?
46850   grep -v '^ *+' conftest.er1 >conftest.err
46851   rm -f conftest.er1
46852   cat conftest.err >&5
46853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46854   (exit $ac_status); } >/dev/null; then
46855   if test -s conftest.err; then
46856     ac_cpp_err=$ac_c_preproc_warn_flag
46857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46858   else
46859     ac_cpp_err=
46860   fi
46861 else
46862   ac_cpp_err=yes
46863 fi
46864 if test -z "$ac_cpp_err"; then
46865   ac_header_preproc=yes
46866 else
46867   echo "$as_me: failed program was:" >&5
46868 sed 's/^/| /' conftest.$ac_ext >&5
46869
46870   ac_header_preproc=no
46871 fi
46872 rm -f conftest.err conftest.$ac_ext
46873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46874 echo "${ECHO_T}$ac_header_preproc" >&6
46875
46876 # So?  What about this header?
46877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46878   yes:no: )
46879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46883     ac_header_preproc=yes
46884     ;;
46885   no:yes:* )
46886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46898     (
46899       cat <<\_ASBOX
46900 ## ------------------------------------------ ##
46901 ## Report this to the AC_PACKAGE_NAME lists.  ##
46902 ## ------------------------------------------ ##
46903 _ASBOX
46904     ) |
46905       sed "s/^/$as_me: WARNING:     /" >&2
46906     ;;
46907 esac
46908 echo "$as_me:$LINENO: checking for $ac_header" >&5
46909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46911   echo $ECHO_N "(cached) $ECHO_C" >&6
46912 else
46913   eval "$as_ac_Header=\$ac_header_preproc"
46914 fi
46915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46917
46918 fi
46919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46920   cat >>confdefs.h <<_ACEOF
46921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46922 _ACEOF
46923
46924 fi
46925
46926 done
46927
46928
46929 for ac_header in gmp.h
46930 do
46931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46933   echo "$as_me:$LINENO: checking for $ac_header" >&5
46934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46936   echo $ECHO_N "(cached) $ECHO_C" >&6
46937 fi
46938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46940 else
46941   # Is the header compilable?
46942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46944 cat >conftest.$ac_ext <<_ACEOF
46945 /* confdefs.h.  */
46946 _ACEOF
46947 cat confdefs.h >>conftest.$ac_ext
46948 cat >>conftest.$ac_ext <<_ACEOF
46949 /* end confdefs.h.  */
46950 $ac_includes_default
46951 #include <$ac_header>
46952 _ACEOF
46953 rm -f conftest.$ac_objext
46954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46955   (eval $ac_compile) 2>conftest.er1
46956   ac_status=$?
46957   grep -v '^ *+' conftest.er1 >conftest.err
46958   rm -f conftest.er1
46959   cat conftest.err >&5
46960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961   (exit $ac_status); } &&
46962          { ac_try='test -z "$ac_c_werror_flag"
46963                          || test ! -s conftest.err'
46964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46965   (eval $ac_try) 2>&5
46966   ac_status=$?
46967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968   (exit $ac_status); }; } &&
46969          { ac_try='test -s conftest.$ac_objext'
46970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46971   (eval $ac_try) 2>&5
46972   ac_status=$?
46973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46974   (exit $ac_status); }; }; then
46975   ac_header_compiler=yes
46976 else
46977   echo "$as_me: failed program was:" >&5
46978 sed 's/^/| /' conftest.$ac_ext >&5
46979
46980 ac_header_compiler=no
46981 fi
46982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46984 echo "${ECHO_T}$ac_header_compiler" >&6
46985
46986 # Is the header present?
46987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46989 cat >conftest.$ac_ext <<_ACEOF
46990 /* confdefs.h.  */
46991 _ACEOF
46992 cat confdefs.h >>conftest.$ac_ext
46993 cat >>conftest.$ac_ext <<_ACEOF
46994 /* end confdefs.h.  */
46995 #include <$ac_header>
46996 _ACEOF
46997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46999   ac_status=$?
47000   grep -v '^ *+' conftest.er1 >conftest.err
47001   rm -f conftest.er1
47002   cat conftest.err >&5
47003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47004   (exit $ac_status); } >/dev/null; then
47005   if test -s conftest.err; then
47006     ac_cpp_err=$ac_c_preproc_warn_flag
47007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47008   else
47009     ac_cpp_err=
47010   fi
47011 else
47012   ac_cpp_err=yes
47013 fi
47014 if test -z "$ac_cpp_err"; then
47015   ac_header_preproc=yes
47016 else
47017   echo "$as_me: failed program was:" >&5
47018 sed 's/^/| /' conftest.$ac_ext >&5
47019
47020   ac_header_preproc=no
47021 fi
47022 rm -f conftest.err conftest.$ac_ext
47023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47024 echo "${ECHO_T}$ac_header_preproc" >&6
47025
47026 # So?  What about this header?
47027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47028   yes:no: )
47029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47033     ac_header_preproc=yes
47034     ;;
47035   no:yes:* )
47036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47048     (
47049       cat <<\_ASBOX
47050 ## ------------------------------------------ ##
47051 ## Report this to the AC_PACKAGE_NAME lists.  ##
47052 ## ------------------------------------------ ##
47053 _ASBOX
47054     ) |
47055       sed "s/^/$as_me: WARNING:     /" >&2
47056     ;;
47057 esac
47058 echo "$as_me:$LINENO: checking for $ac_header" >&5
47059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47061   echo $ECHO_N "(cached) $ECHO_C" >&6
47062 else
47063   eval "$as_ac_Header=\$ac_header_preproc"
47064 fi
47065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47067
47068 fi
47069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47070   cat >>confdefs.h <<_ACEOF
47071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47072 _ACEOF
47073
47074 fi
47075
47076 done
47077
47078
47079         if test "$ol_with_tls" = "found" ; then
47080                 ol_have_bn_h=no
47081                 ol_have_crypto_h=no
47082
47083                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47084                                 -o "$ac_cv_header_bn_h" = "yes" ; then
47085                         ol_have_bn_h=yes
47086                 fi
47087
47088                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47089                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
47090                         ol_have_crypto_h=yes
47091                 fi
47092
47093                 if test "$ol_have_bn_h" = "yes" \
47094                                 -a "$ol_have_crypto_h" = "yes" ; then
47095                         ol_have_bignum=yes
47096                 fi
47097         fi
47098
47099         if test $ac_cv_header_gmp_h = yes ; then
47100                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47101 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47102 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47103   echo $ECHO_N "(cached) $ECHO_C" >&6
47104 else
47105   ac_check_lib_save_LIBS=$LIBS
47106 LIBS="-lgmp  $LIBS"
47107 cat >conftest.$ac_ext <<_ACEOF
47108 /* confdefs.h.  */
47109 _ACEOF
47110 cat confdefs.h >>conftest.$ac_ext
47111 cat >>conftest.$ac_ext <<_ACEOF
47112 /* end confdefs.h.  */
47113
47114 /* Override any gcc2 internal prototype to avoid an error.  */
47115 #ifdef __cplusplus
47116 extern "C"
47117 #endif
47118 /* We use char because int might match the return type of a gcc2
47119    builtin and then its argument prototype would still apply.  */
47120 char __gmpz_add_ui ();
47121 int
47122 main ()
47123 {
47124 __gmpz_add_ui ();
47125   ;
47126   return 0;
47127 }
47128 _ACEOF
47129 rm -f conftest.$ac_objext conftest$ac_exeext
47130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47131   (eval $ac_link) 2>conftest.er1
47132   ac_status=$?
47133   grep -v '^ *+' conftest.er1 >conftest.err
47134   rm -f conftest.er1
47135   cat conftest.err >&5
47136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47137   (exit $ac_status); } &&
47138          { ac_try='test -z "$ac_c_werror_flag"
47139                          || test ! -s conftest.err'
47140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47141   (eval $ac_try) 2>&5
47142   ac_status=$?
47143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47144   (exit $ac_status); }; } &&
47145          { ac_try='test -s conftest$ac_exeext'
47146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47147   (eval $ac_try) 2>&5
47148   ac_status=$?
47149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47150   (exit $ac_status); }; }; then
47151   ac_cv_lib_gmp___gmpz_add_ui=yes
47152 else
47153   echo "$as_me: failed program was:" >&5
47154 sed 's/^/| /' conftest.$ac_ext >&5
47155
47156 ac_cv_lib_gmp___gmpz_add_ui=no
47157 fi
47158 rm -f conftest.err conftest.$ac_objext \
47159       conftest$ac_exeext conftest.$ac_ext
47160 LIBS=$ac_check_lib_save_LIBS
47161 fi
47162 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47163 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47164 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47165   have_gmp=yes
47166 else
47167   have_gmp=no
47168 fi
47169
47170                 if test $have_gmp = yes ; then
47171                         ol_have_gmp=yes
47172                 fi
47173         fi
47174
47175         echo "$as_me:$LINENO: checking for multiple precision support" >&5
47176 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47177
47178         ol_mp_support="none"
47179         case "$ol_with_multiple_precision" in
47180         auto)
47181                                                                                 if test "$ol_have_bignum" = "yes" ; then
47182                         ol_mp_support="bignum"
47183                 else
47184                         if test "$ol_have_gmp" = "yes" ; then
47185                                 ol_mp_support="gmp"
47186                         fi
47187                 fi
47188                 ;;
47189         bignum)
47190                 if test "$ol_have_bignum" != "yes" ; then
47191                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47192 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47193    { (exit 1); exit 1; }; }
47194                 fi
47195                 ol_mp_support="bignum"
47196                 ;;
47197         gmp)
47198                 if test "$ol_have_gmp" != "yes" ; then
47199                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
47200 echo "$as_me: error: GMP not available" >&2;}
47201    { (exit 1); exit 1; }; }
47202                 fi
47203                 ol_mp_support="gmp"
47204                 ;;
47205         yes)
47206                 if test "$ol_have_bignum" = "yes" ; then
47207                         ol_mp_support="bignum"
47208                 elif test "$ol_have_gmp" = "yes" ; then
47209                         ol_mp_support="gmp"
47210                 else
47211                         { { echo "$as_me:$LINENO: error: not available" >&5
47212 echo "$as_me: error: not available" >&2;}
47213    { (exit 1); exit 1; }; }
47214                 fi
47215                 ;;
47216         esac
47217
47218         case "$ol_mp_support" in
47219         bignum)
47220
47221 cat >>confdefs.h <<\_ACEOF
47222 #define HAVE_BIGNUM 1
47223 _ACEOF
47224
47225                 ;;
47226         gmp)
47227
47228 cat >>confdefs.h <<\_ACEOF
47229 #define HAVE_GMP 1
47230 _ACEOF
47231
47232                 SLAPD_GMP_LIBS=-lgmp
47233                 ;;
47234         none)
47235                 ;;
47236         esac
47237
47238         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47239 echo "${ECHO_T}$ol_mp_support" >&6
47240 fi
47241
47242
47243 echo "$as_me:$LINENO: checking for mode_t" >&5
47244 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47245 if test "${ac_cv_type_mode_t+set}" = set; then
47246   echo $ECHO_N "(cached) $ECHO_C" >&6
47247 else
47248   cat >conftest.$ac_ext <<_ACEOF
47249 /* confdefs.h.  */
47250 _ACEOF
47251 cat confdefs.h >>conftest.$ac_ext
47252 cat >>conftest.$ac_ext <<_ACEOF
47253 /* end confdefs.h.  */
47254 $ac_includes_default
47255 int
47256 main ()
47257 {
47258 if ((mode_t *) 0)
47259   return 0;
47260 if (sizeof (mode_t))
47261   return 0;
47262   ;
47263   return 0;
47264 }
47265 _ACEOF
47266 rm -f conftest.$ac_objext
47267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47268   (eval $ac_compile) 2>conftest.er1
47269   ac_status=$?
47270   grep -v '^ *+' conftest.er1 >conftest.err
47271   rm -f conftest.er1
47272   cat conftest.err >&5
47273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274   (exit $ac_status); } &&
47275          { ac_try='test -z "$ac_c_werror_flag"
47276                          || test ! -s conftest.err'
47277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47278   (eval $ac_try) 2>&5
47279   ac_status=$?
47280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47281   (exit $ac_status); }; } &&
47282          { ac_try='test -s conftest.$ac_objext'
47283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47284   (eval $ac_try) 2>&5
47285   ac_status=$?
47286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47287   (exit $ac_status); }; }; then
47288   ac_cv_type_mode_t=yes
47289 else
47290   echo "$as_me: failed program was:" >&5
47291 sed 's/^/| /' conftest.$ac_ext >&5
47292
47293 ac_cv_type_mode_t=no
47294 fi
47295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47296 fi
47297 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47298 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47299 if test $ac_cv_type_mode_t = yes; then
47300   :
47301 else
47302
47303 cat >>confdefs.h <<_ACEOF
47304 #define mode_t int
47305 _ACEOF
47306
47307 fi
47308
47309 echo "$as_me:$LINENO: checking for off_t" >&5
47310 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47311 if test "${ac_cv_type_off_t+set}" = set; then
47312   echo $ECHO_N "(cached) $ECHO_C" >&6
47313 else
47314   cat >conftest.$ac_ext <<_ACEOF
47315 /* confdefs.h.  */
47316 _ACEOF
47317 cat confdefs.h >>conftest.$ac_ext
47318 cat >>conftest.$ac_ext <<_ACEOF
47319 /* end confdefs.h.  */
47320 $ac_includes_default
47321 int
47322 main ()
47323 {
47324 if ((off_t *) 0)
47325   return 0;
47326 if (sizeof (off_t))
47327   return 0;
47328   ;
47329   return 0;
47330 }
47331 _ACEOF
47332 rm -f conftest.$ac_objext
47333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47334   (eval $ac_compile) 2>conftest.er1
47335   ac_status=$?
47336   grep -v '^ *+' conftest.er1 >conftest.err
47337   rm -f conftest.er1
47338   cat conftest.err >&5
47339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340   (exit $ac_status); } &&
47341          { ac_try='test -z "$ac_c_werror_flag"
47342                          || test ! -s conftest.err'
47343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47344   (eval $ac_try) 2>&5
47345   ac_status=$?
47346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47347   (exit $ac_status); }; } &&
47348          { ac_try='test -s conftest.$ac_objext'
47349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47350   (eval $ac_try) 2>&5
47351   ac_status=$?
47352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353   (exit $ac_status); }; }; then
47354   ac_cv_type_off_t=yes
47355 else
47356   echo "$as_me: failed program was:" >&5
47357 sed 's/^/| /' conftest.$ac_ext >&5
47358
47359 ac_cv_type_off_t=no
47360 fi
47361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47362 fi
47363 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47364 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47365 if test $ac_cv_type_off_t = yes; then
47366   :
47367 else
47368
47369 cat >>confdefs.h <<_ACEOF
47370 #define off_t long
47371 _ACEOF
47372
47373 fi
47374
47375 echo "$as_me:$LINENO: checking for pid_t" >&5
47376 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47377 if test "${ac_cv_type_pid_t+set}" = set; then
47378   echo $ECHO_N "(cached) $ECHO_C" >&6
47379 else
47380   cat >conftest.$ac_ext <<_ACEOF
47381 /* confdefs.h.  */
47382 _ACEOF
47383 cat confdefs.h >>conftest.$ac_ext
47384 cat >>conftest.$ac_ext <<_ACEOF
47385 /* end confdefs.h.  */
47386 $ac_includes_default
47387 int
47388 main ()
47389 {
47390 if ((pid_t *) 0)
47391   return 0;
47392 if (sizeof (pid_t))
47393   return 0;
47394   ;
47395   return 0;
47396 }
47397 _ACEOF
47398 rm -f conftest.$ac_objext
47399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47400   (eval $ac_compile) 2>conftest.er1
47401   ac_status=$?
47402   grep -v '^ *+' conftest.er1 >conftest.err
47403   rm -f conftest.er1
47404   cat conftest.err >&5
47405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47406   (exit $ac_status); } &&
47407          { ac_try='test -z "$ac_c_werror_flag"
47408                          || test ! -s conftest.err'
47409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47410   (eval $ac_try) 2>&5
47411   ac_status=$?
47412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413   (exit $ac_status); }; } &&
47414          { ac_try='test -s conftest.$ac_objext'
47415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47416   (eval $ac_try) 2>&5
47417   ac_status=$?
47418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47419   (exit $ac_status); }; }; then
47420   ac_cv_type_pid_t=yes
47421 else
47422   echo "$as_me: failed program was:" >&5
47423 sed 's/^/| /' conftest.$ac_ext >&5
47424
47425 ac_cv_type_pid_t=no
47426 fi
47427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47428 fi
47429 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47430 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47431 if test $ac_cv_type_pid_t = yes; then
47432   :
47433 else
47434
47435 cat >>confdefs.h <<_ACEOF
47436 #define pid_t int
47437 _ACEOF
47438
47439 fi
47440
47441 echo "$as_me:$LINENO: checking for ssize_t" >&5
47442 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47443 if test "${ac_cv_type_ssize_t+set}" = set; then
47444   echo $ECHO_N "(cached) $ECHO_C" >&6
47445 else
47446   cat >conftest.$ac_ext <<_ACEOF
47447 /* confdefs.h.  */
47448 _ACEOF
47449 cat confdefs.h >>conftest.$ac_ext
47450 cat >>conftest.$ac_ext <<_ACEOF
47451 /* end confdefs.h.  */
47452 $ac_includes_default
47453 int
47454 main ()
47455 {
47456 if ((ssize_t *) 0)
47457   return 0;
47458 if (sizeof (ssize_t))
47459   return 0;
47460   ;
47461   return 0;
47462 }
47463 _ACEOF
47464 rm -f conftest.$ac_objext
47465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47466   (eval $ac_compile) 2>conftest.er1
47467   ac_status=$?
47468   grep -v '^ *+' conftest.er1 >conftest.err
47469   rm -f conftest.er1
47470   cat conftest.err >&5
47471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47472   (exit $ac_status); } &&
47473          { ac_try='test -z "$ac_c_werror_flag"
47474                          || test ! -s conftest.err'
47475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47476   (eval $ac_try) 2>&5
47477   ac_status=$?
47478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47479   (exit $ac_status); }; } &&
47480          { ac_try='test -s conftest.$ac_objext'
47481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47482   (eval $ac_try) 2>&5
47483   ac_status=$?
47484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485   (exit $ac_status); }; }; then
47486   ac_cv_type_ssize_t=yes
47487 else
47488   echo "$as_me: failed program was:" >&5
47489 sed 's/^/| /' conftest.$ac_ext >&5
47490
47491 ac_cv_type_ssize_t=no
47492 fi
47493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47494 fi
47495 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47496 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47497 if test $ac_cv_type_ssize_t = yes; then
47498   :
47499 else
47500
47501 cat >>confdefs.h <<_ACEOF
47502 #define ssize_t signed int
47503 _ACEOF
47504
47505 fi
47506
47507 echo "$as_me:$LINENO: checking for caddr_t" >&5
47508 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47509 if test "${ac_cv_type_caddr_t+set}" = set; then
47510   echo $ECHO_N "(cached) $ECHO_C" >&6
47511 else
47512   cat >conftest.$ac_ext <<_ACEOF
47513 /* confdefs.h.  */
47514 _ACEOF
47515 cat confdefs.h >>conftest.$ac_ext
47516 cat >>conftest.$ac_ext <<_ACEOF
47517 /* end confdefs.h.  */
47518 $ac_includes_default
47519 int
47520 main ()
47521 {
47522 if ((caddr_t *) 0)
47523   return 0;
47524 if (sizeof (caddr_t))
47525   return 0;
47526   ;
47527   return 0;
47528 }
47529 _ACEOF
47530 rm -f conftest.$ac_objext
47531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47532   (eval $ac_compile) 2>conftest.er1
47533   ac_status=$?
47534   grep -v '^ *+' conftest.er1 >conftest.err
47535   rm -f conftest.er1
47536   cat conftest.err >&5
47537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47538   (exit $ac_status); } &&
47539          { ac_try='test -z "$ac_c_werror_flag"
47540                          || test ! -s conftest.err'
47541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47542   (eval $ac_try) 2>&5
47543   ac_status=$?
47544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47545   (exit $ac_status); }; } &&
47546          { ac_try='test -s conftest.$ac_objext'
47547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47548   (eval $ac_try) 2>&5
47549   ac_status=$?
47550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551   (exit $ac_status); }; }; then
47552   ac_cv_type_caddr_t=yes
47553 else
47554   echo "$as_me: failed program was:" >&5
47555 sed 's/^/| /' conftest.$ac_ext >&5
47556
47557 ac_cv_type_caddr_t=no
47558 fi
47559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47560 fi
47561 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47562 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47563 if test $ac_cv_type_caddr_t = yes; then
47564   :
47565 else
47566
47567 cat >>confdefs.h <<_ACEOF
47568 #define caddr_t char *
47569 _ACEOF
47570
47571 fi
47572
47573 echo "$as_me:$LINENO: checking for size_t" >&5
47574 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47575 if test "${ac_cv_type_size_t+set}" = set; then
47576   echo $ECHO_N "(cached) $ECHO_C" >&6
47577 else
47578   cat >conftest.$ac_ext <<_ACEOF
47579 /* confdefs.h.  */
47580 _ACEOF
47581 cat confdefs.h >>conftest.$ac_ext
47582 cat >>conftest.$ac_ext <<_ACEOF
47583 /* end confdefs.h.  */
47584 $ac_includes_default
47585 int
47586 main ()
47587 {
47588 if ((size_t *) 0)
47589   return 0;
47590 if (sizeof (size_t))
47591   return 0;
47592   ;
47593   return 0;
47594 }
47595 _ACEOF
47596 rm -f conftest.$ac_objext
47597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47598   (eval $ac_compile) 2>conftest.er1
47599   ac_status=$?
47600   grep -v '^ *+' conftest.er1 >conftest.err
47601   rm -f conftest.er1
47602   cat conftest.err >&5
47603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604   (exit $ac_status); } &&
47605          { ac_try='test -z "$ac_c_werror_flag"
47606                          || test ! -s conftest.err'
47607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47608   (eval $ac_try) 2>&5
47609   ac_status=$?
47610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611   (exit $ac_status); }; } &&
47612          { ac_try='test -s conftest.$ac_objext'
47613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47614   (eval $ac_try) 2>&5
47615   ac_status=$?
47616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617   (exit $ac_status); }; }; then
47618   ac_cv_type_size_t=yes
47619 else
47620   echo "$as_me: failed program was:" >&5
47621 sed 's/^/| /' conftest.$ac_ext >&5
47622
47623 ac_cv_type_size_t=no
47624 fi
47625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47626 fi
47627 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47628 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47629 if test $ac_cv_type_size_t = yes; then
47630   :
47631 else
47632
47633 cat >>confdefs.h <<_ACEOF
47634 #define size_t unsigned
47635 _ACEOF
47636
47637 fi
47638
47639
47640 echo "$as_me:$LINENO: checking for long long" >&5
47641 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47642 if test "${ac_cv_type_long_long+set}" = set; then
47643   echo $ECHO_N "(cached) $ECHO_C" >&6
47644 else
47645   cat >conftest.$ac_ext <<_ACEOF
47646 /* confdefs.h.  */
47647 _ACEOF
47648 cat confdefs.h >>conftest.$ac_ext
47649 cat >>conftest.$ac_ext <<_ACEOF
47650 /* end confdefs.h.  */
47651 $ac_includes_default
47652 int
47653 main ()
47654 {
47655 if ((long long *) 0)
47656   return 0;
47657 if (sizeof (long long))
47658   return 0;
47659   ;
47660   return 0;
47661 }
47662 _ACEOF
47663 rm -f conftest.$ac_objext
47664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47665   (eval $ac_compile) 2>conftest.er1
47666   ac_status=$?
47667   grep -v '^ *+' conftest.er1 >conftest.err
47668   rm -f conftest.er1
47669   cat conftest.err >&5
47670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47671   (exit $ac_status); } &&
47672          { ac_try='test -z "$ac_c_werror_flag"
47673                          || test ! -s conftest.err'
47674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47675   (eval $ac_try) 2>&5
47676   ac_status=$?
47677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47678   (exit $ac_status); }; } &&
47679          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
47685   ac_cv_type_long_long=yes
47686 else
47687   echo "$as_me: failed program was:" >&5
47688 sed 's/^/| /' conftest.$ac_ext >&5
47689
47690 ac_cv_type_long_long=no
47691 fi
47692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47693 fi
47694 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47695 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47696 if test $ac_cv_type_long_long = yes; then
47697
47698 cat >>confdefs.h <<_ACEOF
47699 #define HAVE_LONG_LONG 1
47700 _ACEOF
47701
47702
47703 fi
47704
47705 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47706 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47707 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47708   echo $ECHO_N "(cached) $ECHO_C" >&6
47709 else
47710   cat >conftest.$ac_ext <<_ACEOF
47711 /* confdefs.h.  */
47712 _ACEOF
47713 cat confdefs.h >>conftest.$ac_ext
47714 cat >>conftest.$ac_ext <<_ACEOF
47715 /* end confdefs.h.  */
47716 $ac_includes_default
47717 int
47718 main ()
47719 {
47720 if ((ptrdiff_t *) 0)
47721   return 0;
47722 if (sizeof (ptrdiff_t))
47723   return 0;
47724   ;
47725   return 0;
47726 }
47727 _ACEOF
47728 rm -f conftest.$ac_objext
47729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47730   (eval $ac_compile) 2>conftest.er1
47731   ac_status=$?
47732   grep -v '^ *+' conftest.er1 >conftest.err
47733   rm -f conftest.er1
47734   cat conftest.err >&5
47735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47736   (exit $ac_status); } &&
47737          { ac_try='test -z "$ac_c_werror_flag"
47738                          || test ! -s conftest.err'
47739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47740   (eval $ac_try) 2>&5
47741   ac_status=$?
47742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47743   (exit $ac_status); }; } &&
47744          { ac_try='test -s conftest.$ac_objext'
47745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47746   (eval $ac_try) 2>&5
47747   ac_status=$?
47748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47749   (exit $ac_status); }; }; then
47750   ac_cv_type_ptrdiff_t=yes
47751 else
47752   echo "$as_me: failed program was:" >&5
47753 sed 's/^/| /' conftest.$ac_ext >&5
47754
47755 ac_cv_type_ptrdiff_t=no
47756 fi
47757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47758 fi
47759 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47760 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47761 if test $ac_cv_type_ptrdiff_t = yes; then
47762
47763 cat >>confdefs.h <<_ACEOF
47764 #define HAVE_PTRDIFF_T 1
47765 _ACEOF
47766
47767
47768 fi
47769
47770
47771 echo "$as_me:$LINENO: checking for socklen_t" >&5
47772 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47773 if test "${ac_cv_type_socklen_t+set}" = set; then
47774   echo $ECHO_N "(cached) $ECHO_C" >&6
47775 else
47776   cat >conftest.$ac_ext <<_ACEOF
47777 /* confdefs.h.  */
47778 _ACEOF
47779 cat confdefs.h >>conftest.$ac_ext
47780 cat >>conftest.$ac_ext <<_ACEOF
47781 /* end confdefs.h.  */
47782 $ac_includes_default
47783 #ifdef HAVE_SYS_SOCKET_H
47784 #include <sys/socket.h>
47785 #endif
47786
47787
47788 int
47789 main ()
47790 {
47791 if ((socklen_t *) 0)
47792   return 0;
47793 if (sizeof (socklen_t))
47794   return 0;
47795   ;
47796   return 0;
47797 }
47798 _ACEOF
47799 rm -f conftest.$ac_objext
47800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47801   (eval $ac_compile) 2>conftest.er1
47802   ac_status=$?
47803   grep -v '^ *+' conftest.er1 >conftest.err
47804   rm -f conftest.er1
47805   cat conftest.err >&5
47806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47807   (exit $ac_status); } &&
47808          { ac_try='test -z "$ac_c_werror_flag"
47809                          || test ! -s conftest.err'
47810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47811   (eval $ac_try) 2>&5
47812   ac_status=$?
47813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47814   (exit $ac_status); }; } &&
47815          { ac_try='test -s conftest.$ac_objext'
47816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47817   (eval $ac_try) 2>&5
47818   ac_status=$?
47819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47820   (exit $ac_status); }; }; then
47821   ac_cv_type_socklen_t=yes
47822 else
47823   echo "$as_me: failed program was:" >&5
47824 sed 's/^/| /' conftest.$ac_ext >&5
47825
47826 ac_cv_type_socklen_t=no
47827 fi
47828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47829 fi
47830 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47831 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47832 if test $ac_cv_type_socklen_t = yes; then
47833   :
47834 else
47835
47836 cat >>confdefs.h <<_ACEOF
47837 #define socklen_t int
47838 _ACEOF
47839
47840 fi
47841
47842
47843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47845 if test "${ac_cv_type_signal+set}" = set; then
47846   echo $ECHO_N "(cached) $ECHO_C" >&6
47847 else
47848   cat >conftest.$ac_ext <<_ACEOF
47849 /* confdefs.h.  */
47850 _ACEOF
47851 cat confdefs.h >>conftest.$ac_ext
47852 cat >>conftest.$ac_ext <<_ACEOF
47853 /* end confdefs.h.  */
47854 #include <sys/types.h>
47855 #include <signal.h>
47856 #ifdef signal
47857 # undef signal
47858 #endif
47859 #ifdef __cplusplus
47860 extern "C" void (*signal (int, void (*)(int)))(int);
47861 #else
47862 void (*signal ()) ();
47863 #endif
47864
47865 int
47866 main ()
47867 {
47868 int i;
47869   ;
47870   return 0;
47871 }
47872 _ACEOF
47873 rm -f conftest.$ac_objext
47874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47875   (eval $ac_compile) 2>conftest.er1
47876   ac_status=$?
47877   grep -v '^ *+' conftest.er1 >conftest.err
47878   rm -f conftest.er1
47879   cat conftest.err >&5
47880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881   (exit $ac_status); } &&
47882          { ac_try='test -z "$ac_c_werror_flag"
47883                          || test ! -s conftest.err'
47884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47885   (eval $ac_try) 2>&5
47886   ac_status=$?
47887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47888   (exit $ac_status); }; } &&
47889          { ac_try='test -s conftest.$ac_objext'
47890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47891   (eval $ac_try) 2>&5
47892   ac_status=$?
47893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47894   (exit $ac_status); }; }; then
47895   ac_cv_type_signal=void
47896 else
47897   echo "$as_me: failed program was:" >&5
47898 sed 's/^/| /' conftest.$ac_ext >&5
47899
47900 ac_cv_type_signal=int
47901 fi
47902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47903 fi
47904 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47905 echo "${ECHO_T}$ac_cv_type_signal" >&6
47906
47907 cat >>confdefs.h <<_ACEOF
47908 #define RETSIGTYPE $ac_cv_type_signal
47909 _ACEOF
47910
47911
47912
47913 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47914 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47915 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47916   echo $ECHO_N "(cached) $ECHO_C" >&6
47917 else
47918   cat >conftest.$ac_ext <<_ACEOF
47919 /* confdefs.h.  */
47920 _ACEOF
47921 cat confdefs.h >>conftest.$ac_ext
47922 cat >>conftest.$ac_ext <<_ACEOF
47923 /* end confdefs.h.  */
47924 $ac_includes_default
47925 #include <signal.h>
47926
47927
47928 int
47929 main ()
47930 {
47931 if ((sig_atomic_t *) 0)
47932   return 0;
47933 if (sizeof (sig_atomic_t))
47934   return 0;
47935   ;
47936   return 0;
47937 }
47938 _ACEOF
47939 rm -f conftest.$ac_objext
47940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47941   (eval $ac_compile) 2>conftest.er1
47942   ac_status=$?
47943   grep -v '^ *+' conftest.er1 >conftest.err
47944   rm -f conftest.er1
47945   cat conftest.err >&5
47946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947   (exit $ac_status); } &&
47948          { ac_try='test -z "$ac_c_werror_flag"
47949                          || test ! -s conftest.err'
47950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47951   (eval $ac_try) 2>&5
47952   ac_status=$?
47953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954   (exit $ac_status); }; } &&
47955          { ac_try='test -s conftest.$ac_objext'
47956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47957   (eval $ac_try) 2>&5
47958   ac_status=$?
47959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960   (exit $ac_status); }; }; then
47961   ac_cv_type_sig_atomic_t=yes
47962 else
47963   echo "$as_me: failed program was:" >&5
47964 sed 's/^/| /' conftest.$ac_ext >&5
47965
47966 ac_cv_type_sig_atomic_t=no
47967 fi
47968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47969 fi
47970 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47971 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47972 if test $ac_cv_type_sig_atomic_t = yes; then
47973   :
47974 else
47975
47976 cat >>confdefs.h <<_ACEOF
47977 #define sig_atomic_t int
47978 _ACEOF
47979
47980 fi
47981
47982
47983 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47984 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47985 if test "${ac_cv_type_uid_t+set}" = set; then
47986   echo $ECHO_N "(cached) $ECHO_C" >&6
47987 else
47988   cat >conftest.$ac_ext <<_ACEOF
47989 /* confdefs.h.  */
47990 _ACEOF
47991 cat confdefs.h >>conftest.$ac_ext
47992 cat >>conftest.$ac_ext <<_ACEOF
47993 /* end confdefs.h.  */
47994 #include <sys/types.h>
47995
47996 _ACEOF
47997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47998   $EGREP "uid_t" >/dev/null 2>&1; then
47999   ac_cv_type_uid_t=yes
48000 else
48001   ac_cv_type_uid_t=no
48002 fi
48003 rm -f conftest*
48004
48005 fi
48006 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
48007 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
48008 if test $ac_cv_type_uid_t = no; then
48009
48010 cat >>confdefs.h <<\_ACEOF
48011 #define uid_t int
48012 _ACEOF
48013
48014
48015 cat >>confdefs.h <<\_ACEOF
48016 #define gid_t int
48017 _ACEOF
48018
48019 fi
48020
48021
48022 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48023 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48024 if test "${ac_cv_header_time+set}" = set; then
48025   echo $ECHO_N "(cached) $ECHO_C" >&6
48026 else
48027   cat >conftest.$ac_ext <<_ACEOF
48028 /* confdefs.h.  */
48029 _ACEOF
48030 cat confdefs.h >>conftest.$ac_ext
48031 cat >>conftest.$ac_ext <<_ACEOF
48032 /* end confdefs.h.  */
48033 #include <sys/types.h>
48034 #include <sys/time.h>
48035 #include <time.h>
48036
48037 int
48038 main ()
48039 {
48040 if ((struct tm *) 0)
48041 return 0;
48042   ;
48043   return 0;
48044 }
48045 _ACEOF
48046 rm -f conftest.$ac_objext
48047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48048   (eval $ac_compile) 2>conftest.er1
48049   ac_status=$?
48050   grep -v '^ *+' conftest.er1 >conftest.err
48051   rm -f conftest.er1
48052   cat conftest.err >&5
48053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48054   (exit $ac_status); } &&
48055          { ac_try='test -z "$ac_c_werror_flag"
48056                          || test ! -s conftest.err'
48057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48058   (eval $ac_try) 2>&5
48059   ac_status=$?
48060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48061   (exit $ac_status); }; } &&
48062          { ac_try='test -s conftest.$ac_objext'
48063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48064   (eval $ac_try) 2>&5
48065   ac_status=$?
48066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48067   (exit $ac_status); }; }; then
48068   ac_cv_header_time=yes
48069 else
48070   echo "$as_me: failed program was:" >&5
48071 sed 's/^/| /' conftest.$ac_ext >&5
48072
48073 ac_cv_header_time=no
48074 fi
48075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48076 fi
48077 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48078 echo "${ECHO_T}$ac_cv_header_time" >&6
48079 if test $ac_cv_header_time = yes; then
48080
48081 cat >>confdefs.h <<\_ACEOF
48082 #define TIME_WITH_SYS_TIME 1
48083 _ACEOF
48084
48085 fi
48086
48087 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48089 if test "${ac_cv_struct_tm+set}" = set; then
48090   echo $ECHO_N "(cached) $ECHO_C" >&6
48091 else
48092   cat >conftest.$ac_ext <<_ACEOF
48093 /* confdefs.h.  */
48094 _ACEOF
48095 cat confdefs.h >>conftest.$ac_ext
48096 cat >>conftest.$ac_ext <<_ACEOF
48097 /* end confdefs.h.  */
48098 #include <sys/types.h>
48099 #include <time.h>
48100
48101 int
48102 main ()
48103 {
48104 struct tm *tp; tp->tm_sec;
48105   ;
48106   return 0;
48107 }
48108 _ACEOF
48109 rm -f conftest.$ac_objext
48110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48111   (eval $ac_compile) 2>conftest.er1
48112   ac_status=$?
48113   grep -v '^ *+' conftest.er1 >conftest.err
48114   rm -f conftest.er1
48115   cat conftest.err >&5
48116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48117   (exit $ac_status); } &&
48118          { ac_try='test -z "$ac_c_werror_flag"
48119                          || test ! -s conftest.err'
48120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48121   (eval $ac_try) 2>&5
48122   ac_status=$?
48123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48124   (exit $ac_status); }; } &&
48125          { ac_try='test -s conftest.$ac_objext'
48126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48127   (eval $ac_try) 2>&5
48128   ac_status=$?
48129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48130   (exit $ac_status); }; }; then
48131   ac_cv_struct_tm=time.h
48132 else
48133   echo "$as_me: failed program was:" >&5
48134 sed 's/^/| /' conftest.$ac_ext >&5
48135
48136 ac_cv_struct_tm=sys/time.h
48137 fi
48138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48139 fi
48140 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48141 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48142 if test $ac_cv_struct_tm = sys/time.h; then
48143
48144 cat >>confdefs.h <<\_ACEOF
48145 #define TM_IN_SYS_TIME 1
48146 _ACEOF
48147
48148 fi
48149
48150 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48151 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48152 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48153   echo $ECHO_N "(cached) $ECHO_C" >&6
48154 else
48155   cat >conftest.$ac_ext <<_ACEOF
48156 /* confdefs.h.  */
48157 _ACEOF
48158 cat confdefs.h >>conftest.$ac_ext
48159 cat >>conftest.$ac_ext <<_ACEOF
48160 /* end confdefs.h.  */
48161 $ac_includes_default
48162 int
48163 main ()
48164 {
48165 static struct stat ac_aggr;
48166 if (ac_aggr.st_blksize)
48167 return 0;
48168   ;
48169   return 0;
48170 }
48171 _ACEOF
48172 rm -f conftest.$ac_objext
48173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48174   (eval $ac_compile) 2>conftest.er1
48175   ac_status=$?
48176   grep -v '^ *+' conftest.er1 >conftest.err
48177   rm -f conftest.er1
48178   cat conftest.err >&5
48179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180   (exit $ac_status); } &&
48181          { ac_try='test -z "$ac_c_werror_flag"
48182                          || test ! -s conftest.err'
48183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184   (eval $ac_try) 2>&5
48185   ac_status=$?
48186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187   (exit $ac_status); }; } &&
48188          { ac_try='test -s conftest.$ac_objext'
48189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190   (eval $ac_try) 2>&5
48191   ac_status=$?
48192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193   (exit $ac_status); }; }; then
48194   ac_cv_member_struct_stat_st_blksize=yes
48195 else
48196   echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48198
48199 cat >conftest.$ac_ext <<_ACEOF
48200 /* confdefs.h.  */
48201 _ACEOF
48202 cat confdefs.h >>conftest.$ac_ext
48203 cat >>conftest.$ac_ext <<_ACEOF
48204 /* end confdefs.h.  */
48205 $ac_includes_default
48206 int
48207 main ()
48208 {
48209 static struct stat ac_aggr;
48210 if (sizeof ac_aggr.st_blksize)
48211 return 0;
48212   ;
48213   return 0;
48214 }
48215 _ACEOF
48216 rm -f conftest.$ac_objext
48217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48218   (eval $ac_compile) 2>conftest.er1
48219   ac_status=$?
48220   grep -v '^ *+' conftest.er1 >conftest.err
48221   rm -f conftest.er1
48222   cat conftest.err >&5
48223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48224   (exit $ac_status); } &&
48225          { ac_try='test -z "$ac_c_werror_flag"
48226                          || test ! -s conftest.err'
48227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48228   (eval $ac_try) 2>&5
48229   ac_status=$?
48230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48231   (exit $ac_status); }; } &&
48232          { ac_try='test -s conftest.$ac_objext'
48233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48234   (eval $ac_try) 2>&5
48235   ac_status=$?
48236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237   (exit $ac_status); }; }; then
48238   ac_cv_member_struct_stat_st_blksize=yes
48239 else
48240   echo "$as_me: failed program was:" >&5
48241 sed 's/^/| /' conftest.$ac_ext >&5
48242
48243 ac_cv_member_struct_stat_st_blksize=no
48244 fi
48245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48246 fi
48247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48248 fi
48249 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48250 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48251 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48252
48253 cat >>confdefs.h <<_ACEOF
48254 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48255 _ACEOF
48256
48257
48258 fi
48259
48260 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48261 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48262 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48263   echo $ECHO_N "(cached) $ECHO_C" >&6
48264 else
48265   cat >conftest.$ac_ext <<_ACEOF
48266 /* confdefs.h.  */
48267 _ACEOF
48268 cat confdefs.h >>conftest.$ac_ext
48269 cat >>conftest.$ac_ext <<_ACEOF
48270 /* end confdefs.h.  */
48271 $ac_includes_default
48272 #include <pwd.h>
48273
48274 int
48275 main ()
48276 {
48277 static struct passwd ac_aggr;
48278 if (ac_aggr.pw_gecos)
48279 return 0;
48280   ;
48281   return 0;
48282 }
48283 _ACEOF
48284 rm -f conftest.$ac_objext
48285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48286   (eval $ac_compile) 2>conftest.er1
48287   ac_status=$?
48288   grep -v '^ *+' conftest.er1 >conftest.err
48289   rm -f conftest.er1
48290   cat conftest.err >&5
48291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48292   (exit $ac_status); } &&
48293          { ac_try='test -z "$ac_c_werror_flag"
48294                          || test ! -s conftest.err'
48295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48296   (eval $ac_try) 2>&5
48297   ac_status=$?
48298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48299   (exit $ac_status); }; } &&
48300          { ac_try='test -s conftest.$ac_objext'
48301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48302   (eval $ac_try) 2>&5
48303   ac_status=$?
48304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48305   (exit $ac_status); }; }; then
48306   ac_cv_member_struct_passwd_pw_gecos=yes
48307 else
48308   echo "$as_me: failed program was:" >&5
48309 sed 's/^/| /' conftest.$ac_ext >&5
48310
48311 cat >conftest.$ac_ext <<_ACEOF
48312 /* confdefs.h.  */
48313 _ACEOF
48314 cat confdefs.h >>conftest.$ac_ext
48315 cat >>conftest.$ac_ext <<_ACEOF
48316 /* end confdefs.h.  */
48317 $ac_includes_default
48318 #include <pwd.h>
48319
48320 int
48321 main ()
48322 {
48323 static struct passwd ac_aggr;
48324 if (sizeof ac_aggr.pw_gecos)
48325 return 0;
48326   ;
48327   return 0;
48328 }
48329 _ACEOF
48330 rm -f conftest.$ac_objext
48331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48332   (eval $ac_compile) 2>conftest.er1
48333   ac_status=$?
48334   grep -v '^ *+' conftest.er1 >conftest.err
48335   rm -f conftest.er1
48336   cat conftest.err >&5
48337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48338   (exit $ac_status); } &&
48339          { ac_try='test -z "$ac_c_werror_flag"
48340                          || test ! -s conftest.err'
48341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48342   (eval $ac_try) 2>&5
48343   ac_status=$?
48344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48345   (exit $ac_status); }; } &&
48346          { ac_try='test -s conftest.$ac_objext'
48347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48348   (eval $ac_try) 2>&5
48349   ac_status=$?
48350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48351   (exit $ac_status); }; }; then
48352   ac_cv_member_struct_passwd_pw_gecos=yes
48353 else
48354   echo "$as_me: failed program was:" >&5
48355 sed 's/^/| /' conftest.$ac_ext >&5
48356
48357 ac_cv_member_struct_passwd_pw_gecos=no
48358 fi
48359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48360 fi
48361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48362 fi
48363 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48364 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48365 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48366
48367 cat >>confdefs.h <<_ACEOF
48368 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48369 _ACEOF
48370
48371
48372 fi
48373
48374 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48375 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48376 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48377   echo $ECHO_N "(cached) $ECHO_C" >&6
48378 else
48379   cat >conftest.$ac_ext <<_ACEOF
48380 /* confdefs.h.  */
48381 _ACEOF
48382 cat confdefs.h >>conftest.$ac_ext
48383 cat >>conftest.$ac_ext <<_ACEOF
48384 /* end confdefs.h.  */
48385 $ac_includes_default
48386 #include <pwd.h>
48387
48388 int
48389 main ()
48390 {
48391 static struct passwd ac_aggr;
48392 if (ac_aggr.pw_passwd)
48393 return 0;
48394   ;
48395   return 0;
48396 }
48397 _ACEOF
48398 rm -f conftest.$ac_objext
48399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48400   (eval $ac_compile) 2>conftest.er1
48401   ac_status=$?
48402   grep -v '^ *+' conftest.er1 >conftest.err
48403   rm -f conftest.er1
48404   cat conftest.err >&5
48405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48406   (exit $ac_status); } &&
48407          { ac_try='test -z "$ac_c_werror_flag"
48408                          || test ! -s conftest.err'
48409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48410   (eval $ac_try) 2>&5
48411   ac_status=$?
48412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48413   (exit $ac_status); }; } &&
48414          { ac_try='test -s conftest.$ac_objext'
48415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48416   (eval $ac_try) 2>&5
48417   ac_status=$?
48418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48419   (exit $ac_status); }; }; then
48420   ac_cv_member_struct_passwd_pw_passwd=yes
48421 else
48422   echo "$as_me: failed program was:" >&5
48423 sed 's/^/| /' conftest.$ac_ext >&5
48424
48425 cat >conftest.$ac_ext <<_ACEOF
48426 /* confdefs.h.  */
48427 _ACEOF
48428 cat confdefs.h >>conftest.$ac_ext
48429 cat >>conftest.$ac_ext <<_ACEOF
48430 /* end confdefs.h.  */
48431 $ac_includes_default
48432 #include <pwd.h>
48433
48434 int
48435 main ()
48436 {
48437 static struct passwd ac_aggr;
48438 if (sizeof ac_aggr.pw_passwd)
48439 return 0;
48440   ;
48441   return 0;
48442 }
48443 _ACEOF
48444 rm -f conftest.$ac_objext
48445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48446   (eval $ac_compile) 2>conftest.er1
48447   ac_status=$?
48448   grep -v '^ *+' conftest.er1 >conftest.err
48449   rm -f conftest.er1
48450   cat conftest.err >&5
48451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48452   (exit $ac_status); } &&
48453          { ac_try='test -z "$ac_c_werror_flag"
48454                          || test ! -s conftest.err'
48455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48456   (eval $ac_try) 2>&5
48457   ac_status=$?
48458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48459   (exit $ac_status); }; } &&
48460          { ac_try='test -s conftest.$ac_objext'
48461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48462   (eval $ac_try) 2>&5
48463   ac_status=$?
48464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48465   (exit $ac_status); }; }; then
48466   ac_cv_member_struct_passwd_pw_passwd=yes
48467 else
48468   echo "$as_me: failed program was:" >&5
48469 sed 's/^/| /' conftest.$ac_ext >&5
48470
48471 ac_cv_member_struct_passwd_pw_passwd=no
48472 fi
48473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48474 fi
48475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48476 fi
48477 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48478 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48479 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48480
48481 cat >>confdefs.h <<_ACEOF
48482 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48483 _ACEOF
48484
48485
48486 fi
48487
48488
48489 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48490 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48491 if test "${ol_cv_c_upper_lower+set}" = set; then
48492   echo $ECHO_N "(cached) $ECHO_C" >&6
48493 else
48494
48495         if test "$cross_compiling" = yes; then
48496   ol_cv_c_upper_lower=safe
48497 else
48498   cat >conftest.$ac_ext <<_ACEOF
48499 /* confdefs.h.  */
48500 _ACEOF
48501 cat confdefs.h >>conftest.$ac_ext
48502 cat >>conftest.$ac_ext <<_ACEOF
48503 /* end confdefs.h.  */
48504
48505 #include <ctype.h>
48506 main()
48507 {
48508         if ('C' == toupper('C'))
48509                 exit(0);
48510         else
48511                 exit(1);
48512 }
48513 _ACEOF
48514 rm -f conftest$ac_exeext
48515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48516   (eval $ac_link) 2>&5
48517   ac_status=$?
48518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48521   (eval $ac_try) 2>&5
48522   ac_status=$?
48523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48524   (exit $ac_status); }; }; then
48525   ol_cv_c_upper_lower=no
48526 else
48527   echo "$as_me: program exited with status $ac_status" >&5
48528 echo "$as_me: failed program was:" >&5
48529 sed 's/^/| /' conftest.$ac_ext >&5
48530
48531 ( exit $ac_status )
48532 ol_cv_c_upper_lower=yes
48533 fi
48534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48535 fi
48536 fi
48537 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48538 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48539 if test $ol_cv_c_upper_lower != no ; then
48540
48541 cat >>confdefs.h <<\_ACEOF
48542 #define C_UPPER_LOWER 1
48543 _ACEOF
48544
48545 fi
48546
48547 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48548 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48549 if test "${ac_cv_c_const+set}" = set; then
48550   echo $ECHO_N "(cached) $ECHO_C" >&6
48551 else
48552   cat >conftest.$ac_ext <<_ACEOF
48553 /* confdefs.h.  */
48554 _ACEOF
48555 cat confdefs.h >>conftest.$ac_ext
48556 cat >>conftest.$ac_ext <<_ACEOF
48557 /* end confdefs.h.  */
48558
48559 int
48560 main ()
48561 {
48562 /* FIXME: Include the comments suggested by Paul. */
48563 #ifndef __cplusplus
48564   /* Ultrix mips cc rejects this.  */
48565   typedef int charset[2];
48566   const charset x;
48567   /* SunOS 4.1.1 cc rejects this.  */
48568   char const *const *ccp;
48569   char **p;
48570   /* NEC SVR4.0.2 mips cc rejects this.  */
48571   struct point {int x, y;};
48572   static struct point const zero = {0,0};
48573   /* AIX XL C 1.02.0.0 rejects this.
48574      It does not let you subtract one const X* pointer from another in
48575      an arm of an if-expression whose if-part is not a constant
48576      expression */
48577   const char *g = "string";
48578   ccp = &g + (g ? g-g : 0);
48579   /* HPUX 7.0 cc rejects these. */
48580   ++ccp;
48581   p = (char**) ccp;
48582   ccp = (char const *const *) p;
48583   { /* SCO 3.2v4 cc rejects this.  */
48584     char *t;
48585     char const *s = 0 ? (char *) 0 : (char const *) 0;
48586
48587     *t++ = 0;
48588   }
48589   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48590     int x[] = {25, 17};
48591     const int *foo = &x[0];
48592     ++foo;
48593   }
48594   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48595     typedef const int *iptr;
48596     iptr p = 0;
48597     ++p;
48598   }
48599   { /* AIX XL C 1.02.0.0 rejects this saying
48600        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48601     struct s { int j; const int *ap[3]; };
48602     struct s *b; b->j = 5;
48603   }
48604   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48605     const int foo = 10;
48606   }
48607 #endif
48608
48609   ;
48610   return 0;
48611 }
48612 _ACEOF
48613 rm -f conftest.$ac_objext
48614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48615   (eval $ac_compile) 2>conftest.er1
48616   ac_status=$?
48617   grep -v '^ *+' conftest.er1 >conftest.err
48618   rm -f conftest.er1
48619   cat conftest.err >&5
48620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48621   (exit $ac_status); } &&
48622          { ac_try='test -z "$ac_c_werror_flag"
48623                          || test ! -s conftest.err'
48624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48625   (eval $ac_try) 2>&5
48626   ac_status=$?
48627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48628   (exit $ac_status); }; } &&
48629          { ac_try='test -s conftest.$ac_objext'
48630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48631   (eval $ac_try) 2>&5
48632   ac_status=$?
48633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48634   (exit $ac_status); }; }; then
48635   ac_cv_c_const=yes
48636 else
48637   echo "$as_me: failed program was:" >&5
48638 sed 's/^/| /' conftest.$ac_ext >&5
48639
48640 ac_cv_c_const=no
48641 fi
48642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48643 fi
48644 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48645 echo "${ECHO_T}$ac_cv_c_const" >&6
48646 if test $ac_cv_c_const = no; then
48647
48648 cat >>confdefs.h <<\_ACEOF
48649 #define const
48650 _ACEOF
48651
48652 fi
48653
48654 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48655 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48656 if test "${ol_cv_c_volatile+set}" = set; then
48657   echo $ECHO_N "(cached) $ECHO_C" >&6
48658 else
48659   cat >conftest.$ac_ext <<_ACEOF
48660 /* confdefs.h.  */
48661 _ACEOF
48662 cat confdefs.h >>conftest.$ac_ext
48663 cat >>conftest.$ac_ext <<_ACEOF
48664 /* end confdefs.h.  */
48665 int x, y, z;
48666 int
48667 main ()
48668 {
48669 volatile int a; int * volatile b = x ? &y : &z;
48670       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48671       *b = 0;
48672   ;
48673   return 0;
48674 }
48675 _ACEOF
48676 rm -f conftest.$ac_objext
48677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48678   (eval $ac_compile) 2>conftest.er1
48679   ac_status=$?
48680   grep -v '^ *+' conftest.er1 >conftest.err
48681   rm -f conftest.er1
48682   cat conftest.err >&5
48683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684   (exit $ac_status); } &&
48685          { ac_try='test -z "$ac_c_werror_flag"
48686                          || test ! -s conftest.err'
48687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48688   (eval $ac_try) 2>&5
48689   ac_status=$?
48690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48691   (exit $ac_status); }; } &&
48692          { ac_try='test -s conftest.$ac_objext'
48693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48694   (eval $ac_try) 2>&5
48695   ac_status=$?
48696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48697   (exit $ac_status); }; }; then
48698   ol_cv_c_volatile=yes
48699 else
48700   echo "$as_me: failed program was:" >&5
48701 sed 's/^/| /' conftest.$ac_ext >&5
48702
48703 ol_cv_c_volatile=no
48704 fi
48705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48706 fi
48707 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48708 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48709   if test $ol_cv_c_volatile = yes; then
48710     :
48711   else
48712
48713 cat >>confdefs.h <<\_ACEOF
48714 #define volatile
48715 _ACEOF
48716
48717   fi
48718
48719
48720 if test $cross_compiling = yes ; then
48721         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48722 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48723
48724 cat >>confdefs.h <<\_ACEOF
48725 #define CROSS_COMPILING 1
48726 _ACEOF
48727
48728 else
48729         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48730 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48731 if test "${ac_cv_c_bigendian+set}" = set; then
48732   echo $ECHO_N "(cached) $ECHO_C" >&6
48733 else
48734   # See if sys/param.h defines the BYTE_ORDER macro.
48735 cat >conftest.$ac_ext <<_ACEOF
48736 /* confdefs.h.  */
48737 _ACEOF
48738 cat confdefs.h >>conftest.$ac_ext
48739 cat >>conftest.$ac_ext <<_ACEOF
48740 /* end confdefs.h.  */
48741 #include <sys/types.h>
48742 #include <sys/param.h>
48743
48744 int
48745 main ()
48746 {
48747 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48748  bogus endian macros
48749 #endif
48750
48751   ;
48752   return 0;
48753 }
48754 _ACEOF
48755 rm -f conftest.$ac_objext
48756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48757   (eval $ac_compile) 2>conftest.er1
48758   ac_status=$?
48759   grep -v '^ *+' conftest.er1 >conftest.err
48760   rm -f conftest.er1
48761   cat conftest.err >&5
48762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48763   (exit $ac_status); } &&
48764          { ac_try='test -z "$ac_c_werror_flag"
48765                          || test ! -s conftest.err'
48766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48767   (eval $ac_try) 2>&5
48768   ac_status=$?
48769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770   (exit $ac_status); }; } &&
48771          { ac_try='test -s conftest.$ac_objext'
48772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48773   (eval $ac_try) 2>&5
48774   ac_status=$?
48775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48776   (exit $ac_status); }; }; then
48777   # It does; now see whether it defined to BIG_ENDIAN or not.
48778 cat >conftest.$ac_ext <<_ACEOF
48779 /* confdefs.h.  */
48780 _ACEOF
48781 cat confdefs.h >>conftest.$ac_ext
48782 cat >>conftest.$ac_ext <<_ACEOF
48783 /* end confdefs.h.  */
48784 #include <sys/types.h>
48785 #include <sys/param.h>
48786
48787 int
48788 main ()
48789 {
48790 #if BYTE_ORDER != BIG_ENDIAN
48791  not big endian
48792 #endif
48793
48794   ;
48795   return 0;
48796 }
48797 _ACEOF
48798 rm -f conftest.$ac_objext
48799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48800   (eval $ac_compile) 2>conftest.er1
48801   ac_status=$?
48802   grep -v '^ *+' conftest.er1 >conftest.err
48803   rm -f conftest.er1
48804   cat conftest.err >&5
48805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806   (exit $ac_status); } &&
48807          { ac_try='test -z "$ac_c_werror_flag"
48808                          || test ! -s conftest.err'
48809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48810   (eval $ac_try) 2>&5
48811   ac_status=$?
48812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813   (exit $ac_status); }; } &&
48814          { ac_try='test -s conftest.$ac_objext'
48815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48816   (eval $ac_try) 2>&5
48817   ac_status=$?
48818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48819   (exit $ac_status); }; }; then
48820   ac_cv_c_bigendian=yes
48821 else
48822   echo "$as_me: failed program was:" >&5
48823 sed 's/^/| /' conftest.$ac_ext >&5
48824
48825 ac_cv_c_bigendian=no
48826 fi
48827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48828 else
48829   echo "$as_me: failed program was:" >&5
48830 sed 's/^/| /' conftest.$ac_ext >&5
48831
48832 # It does not; compile a test program.
48833 if test "$cross_compiling" = yes; then
48834   # try to guess the endianness by grepping values into an object file
48835   ac_cv_c_bigendian=unknown
48836   cat >conftest.$ac_ext <<_ACEOF
48837 /* confdefs.h.  */
48838 _ACEOF
48839 cat confdefs.h >>conftest.$ac_ext
48840 cat >>conftest.$ac_ext <<_ACEOF
48841 /* end confdefs.h.  */
48842 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48843 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48844 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48845 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48846 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48847 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48848 int
48849 main ()
48850 {
48851  _ascii (); _ebcdic ();
48852   ;
48853   return 0;
48854 }
48855 _ACEOF
48856 rm -f conftest.$ac_objext
48857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48858   (eval $ac_compile) 2>conftest.er1
48859   ac_status=$?
48860   grep -v '^ *+' conftest.er1 >conftest.err
48861   rm -f conftest.er1
48862   cat conftest.err >&5
48863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48864   (exit $ac_status); } &&
48865          { ac_try='test -z "$ac_c_werror_flag"
48866                          || test ! -s conftest.err'
48867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48868   (eval $ac_try) 2>&5
48869   ac_status=$?
48870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48871   (exit $ac_status); }; } &&
48872          { ac_try='test -s conftest.$ac_objext'
48873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48874   (eval $ac_try) 2>&5
48875   ac_status=$?
48876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48877   (exit $ac_status); }; }; then
48878   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48879   ac_cv_c_bigendian=yes
48880 fi
48881 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48882   if test "$ac_cv_c_bigendian" = unknown; then
48883     ac_cv_c_bigendian=no
48884   else
48885     # finding both strings is unlikely to happen, but who knows?
48886     ac_cv_c_bigendian=unknown
48887   fi
48888 fi
48889 else
48890   echo "$as_me: failed program was:" >&5
48891 sed 's/^/| /' conftest.$ac_ext >&5
48892
48893 fi
48894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48895 else
48896   cat >conftest.$ac_ext <<_ACEOF
48897 /* confdefs.h.  */
48898 _ACEOF
48899 cat confdefs.h >>conftest.$ac_ext
48900 cat >>conftest.$ac_ext <<_ACEOF
48901 /* end confdefs.h.  */
48902 int
48903 main ()
48904 {
48905   /* Are we little or big endian?  From Harbison&Steele.  */
48906   union
48907   {
48908     long l;
48909     char c[sizeof (long)];
48910   } u;
48911   u.l = 1;
48912   exit (u.c[sizeof (long) - 1] == 1);
48913 }
48914 _ACEOF
48915 rm -f conftest$ac_exeext
48916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48917   (eval $ac_link) 2>&5
48918   ac_status=$?
48919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48922   (eval $ac_try) 2>&5
48923   ac_status=$?
48924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925   (exit $ac_status); }; }; then
48926   ac_cv_c_bigendian=no
48927 else
48928   echo "$as_me: program exited with status $ac_status" >&5
48929 echo "$as_me: failed program was:" >&5
48930 sed 's/^/| /' conftest.$ac_ext >&5
48931
48932 ( exit $ac_status )
48933 ac_cv_c_bigendian=yes
48934 fi
48935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48936 fi
48937 fi
48938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48939 fi
48940 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48941 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48942 case $ac_cv_c_bigendian in
48943   yes)
48944
48945 cat >>confdefs.h <<\_ACEOF
48946 #define WORDS_BIGENDIAN 1
48947 _ACEOF
48948  ;;
48949   no)
48950      ;;
48951   *)
48952     { { echo "$as_me:$LINENO: error: unknown endianness
48953 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48954 echo "$as_me: error: unknown endianness
48955 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48956    { (exit 1); exit 1; }; } ;;
48957 esac
48958
48959 fi
48960
48961 echo "$as_me:$LINENO: checking for short" >&5
48962 echo $ECHO_N "checking for short... $ECHO_C" >&6
48963 if test "${ac_cv_type_short+set}" = set; then
48964   echo $ECHO_N "(cached) $ECHO_C" >&6
48965 else
48966   cat >conftest.$ac_ext <<_ACEOF
48967 /* confdefs.h.  */
48968 _ACEOF
48969 cat confdefs.h >>conftest.$ac_ext
48970 cat >>conftest.$ac_ext <<_ACEOF
48971 /* end confdefs.h.  */
48972 $ac_includes_default
48973 int
48974 main ()
48975 {
48976 if ((short *) 0)
48977   return 0;
48978 if (sizeof (short))
48979   return 0;
48980   ;
48981   return 0;
48982 }
48983 _ACEOF
48984 rm -f conftest.$ac_objext
48985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48986   (eval $ac_compile) 2>conftest.er1
48987   ac_status=$?
48988   grep -v '^ *+' conftest.er1 >conftest.err
48989   rm -f conftest.er1
48990   cat conftest.err >&5
48991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48992   (exit $ac_status); } &&
48993          { ac_try='test -z "$ac_c_werror_flag"
48994                          || test ! -s conftest.err'
48995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48996   (eval $ac_try) 2>&5
48997   ac_status=$?
48998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48999   (exit $ac_status); }; } &&
49000          { ac_try='test -s conftest.$ac_objext'
49001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49002   (eval $ac_try) 2>&5
49003   ac_status=$?
49004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49005   (exit $ac_status); }; }; then
49006   ac_cv_type_short=yes
49007 else
49008   echo "$as_me: failed program was:" >&5
49009 sed 's/^/| /' conftest.$ac_ext >&5
49010
49011 ac_cv_type_short=no
49012 fi
49013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49014 fi
49015 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
49016 echo "${ECHO_T}$ac_cv_type_short" >&6
49017
49018 echo "$as_me:$LINENO: checking size of short" >&5
49019 echo $ECHO_N "checking size of short... $ECHO_C" >&6
49020 if test "${ac_cv_sizeof_short+set}" = set; then
49021   echo $ECHO_N "(cached) $ECHO_C" >&6
49022 else
49023   if test "$ac_cv_type_short" = yes; then
49024   # The cast to unsigned long works around a bug in the HP C Compiler
49025   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49026   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49027   # This bug is HP SR number 8606223364.
49028   if test "$cross_compiling" = yes; then
49029   # Depending upon the size, compute the lo and hi bounds.
49030 cat >conftest.$ac_ext <<_ACEOF
49031 /* confdefs.h.  */
49032 _ACEOF
49033 cat confdefs.h >>conftest.$ac_ext
49034 cat >>conftest.$ac_ext <<_ACEOF
49035 /* end confdefs.h.  */
49036 $ac_includes_default
49037 int
49038 main ()
49039 {
49040 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
49041 test_array [0] = 0
49042
49043   ;
49044   return 0;
49045 }
49046 _ACEOF
49047 rm -f conftest.$ac_objext
49048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49049   (eval $ac_compile) 2>conftest.er1
49050   ac_status=$?
49051   grep -v '^ *+' conftest.er1 >conftest.err
49052   rm -f conftest.er1
49053   cat conftest.err >&5
49054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49055   (exit $ac_status); } &&
49056          { ac_try='test -z "$ac_c_werror_flag"
49057                          || test ! -s conftest.err'
49058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49059   (eval $ac_try) 2>&5
49060   ac_status=$?
49061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062   (exit $ac_status); }; } &&
49063          { ac_try='test -s conftest.$ac_objext'
49064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49065   (eval $ac_try) 2>&5
49066   ac_status=$?
49067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49068   (exit $ac_status); }; }; then
49069   ac_lo=0 ac_mid=0
49070   while :; do
49071     cat >conftest.$ac_ext <<_ACEOF
49072 /* confdefs.h.  */
49073 _ACEOF
49074 cat confdefs.h >>conftest.$ac_ext
49075 cat >>conftest.$ac_ext <<_ACEOF
49076 /* end confdefs.h.  */
49077 $ac_includes_default
49078 int
49079 main ()
49080 {
49081 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49082 test_array [0] = 0
49083
49084   ;
49085   return 0;
49086 }
49087 _ACEOF
49088 rm -f conftest.$ac_objext
49089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49090   (eval $ac_compile) 2>conftest.er1
49091   ac_status=$?
49092   grep -v '^ *+' conftest.er1 >conftest.err
49093   rm -f conftest.er1
49094   cat conftest.err >&5
49095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49096   (exit $ac_status); } &&
49097          { ac_try='test -z "$ac_c_werror_flag"
49098                          || test ! -s conftest.err'
49099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49100   (eval $ac_try) 2>&5
49101   ac_status=$?
49102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49103   (exit $ac_status); }; } &&
49104          { ac_try='test -s conftest.$ac_objext'
49105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49106   (eval $ac_try) 2>&5
49107   ac_status=$?
49108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49109   (exit $ac_status); }; }; then
49110   ac_hi=$ac_mid; break
49111 else
49112   echo "$as_me: failed program was:" >&5
49113 sed 's/^/| /' conftest.$ac_ext >&5
49114
49115 ac_lo=`expr $ac_mid + 1`
49116                     if test $ac_lo -le $ac_mid; then
49117                       ac_lo= ac_hi=
49118                       break
49119                     fi
49120                     ac_mid=`expr 2 '*' $ac_mid + 1`
49121 fi
49122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49123   done
49124 else
49125   echo "$as_me: failed program was:" >&5
49126 sed 's/^/| /' conftest.$ac_ext >&5
49127
49128 cat >conftest.$ac_ext <<_ACEOF
49129 /* confdefs.h.  */
49130 _ACEOF
49131 cat confdefs.h >>conftest.$ac_ext
49132 cat >>conftest.$ac_ext <<_ACEOF
49133 /* end confdefs.h.  */
49134 $ac_includes_default
49135 int
49136 main ()
49137 {
49138 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49139 test_array [0] = 0
49140
49141   ;
49142   return 0;
49143 }
49144 _ACEOF
49145 rm -f conftest.$ac_objext
49146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49147   (eval $ac_compile) 2>conftest.er1
49148   ac_status=$?
49149   grep -v '^ *+' conftest.er1 >conftest.err
49150   rm -f conftest.er1
49151   cat conftest.err >&5
49152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153   (exit $ac_status); } &&
49154          { ac_try='test -z "$ac_c_werror_flag"
49155                          || test ! -s conftest.err'
49156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157   (eval $ac_try) 2>&5
49158   ac_status=$?
49159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160   (exit $ac_status); }; } &&
49161          { ac_try='test -s conftest.$ac_objext'
49162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163   (eval $ac_try) 2>&5
49164   ac_status=$?
49165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166   (exit $ac_status); }; }; then
49167   ac_hi=-1 ac_mid=-1
49168   while :; do
49169     cat >conftest.$ac_ext <<_ACEOF
49170 /* confdefs.h.  */
49171 _ACEOF
49172 cat confdefs.h >>conftest.$ac_ext
49173 cat >>conftest.$ac_ext <<_ACEOF
49174 /* end confdefs.h.  */
49175 $ac_includes_default
49176 int
49177 main ()
49178 {
49179 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49180 test_array [0] = 0
49181
49182   ;
49183   return 0;
49184 }
49185 _ACEOF
49186 rm -f conftest.$ac_objext
49187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49188   (eval $ac_compile) 2>conftest.er1
49189   ac_status=$?
49190   grep -v '^ *+' conftest.er1 >conftest.err
49191   rm -f conftest.er1
49192   cat conftest.err >&5
49193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49194   (exit $ac_status); } &&
49195          { ac_try='test -z "$ac_c_werror_flag"
49196                          || test ! -s conftest.err'
49197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49198   (eval $ac_try) 2>&5
49199   ac_status=$?
49200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49201   (exit $ac_status); }; } &&
49202          { ac_try='test -s conftest.$ac_objext'
49203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49204   (eval $ac_try) 2>&5
49205   ac_status=$?
49206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207   (exit $ac_status); }; }; then
49208   ac_lo=$ac_mid; break
49209 else
49210   echo "$as_me: failed program was:" >&5
49211 sed 's/^/| /' conftest.$ac_ext >&5
49212
49213 ac_hi=`expr '(' $ac_mid ')' - 1`
49214                        if test $ac_mid -le $ac_hi; then
49215                          ac_lo= ac_hi=
49216                          break
49217                        fi
49218                        ac_mid=`expr 2 '*' $ac_mid`
49219 fi
49220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49221   done
49222 else
49223   echo "$as_me: failed program was:" >&5
49224 sed 's/^/| /' conftest.$ac_ext >&5
49225
49226 ac_lo= ac_hi=
49227 fi
49228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49229 fi
49230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49231 # Binary search between lo and hi bounds.
49232 while test "x$ac_lo" != "x$ac_hi"; do
49233   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49234   cat >conftest.$ac_ext <<_ACEOF
49235 /* confdefs.h.  */
49236 _ACEOF
49237 cat confdefs.h >>conftest.$ac_ext
49238 cat >>conftest.$ac_ext <<_ACEOF
49239 /* end confdefs.h.  */
49240 $ac_includes_default
49241 int
49242 main ()
49243 {
49244 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49245 test_array [0] = 0
49246
49247   ;
49248   return 0;
49249 }
49250 _ACEOF
49251 rm -f conftest.$ac_objext
49252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49253   (eval $ac_compile) 2>conftest.er1
49254   ac_status=$?
49255   grep -v '^ *+' conftest.er1 >conftest.err
49256   rm -f conftest.er1
49257   cat conftest.err >&5
49258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259   (exit $ac_status); } &&
49260          { ac_try='test -z "$ac_c_werror_flag"
49261                          || test ! -s conftest.err'
49262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49263   (eval $ac_try) 2>&5
49264   ac_status=$?
49265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49266   (exit $ac_status); }; } &&
49267          { ac_try='test -s conftest.$ac_objext'
49268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49269   (eval $ac_try) 2>&5
49270   ac_status=$?
49271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49272   (exit $ac_status); }; }; then
49273   ac_hi=$ac_mid
49274 else
49275   echo "$as_me: failed program was:" >&5
49276 sed 's/^/| /' conftest.$ac_ext >&5
49277
49278 ac_lo=`expr '(' $ac_mid ')' + 1`
49279 fi
49280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49281 done
49282 case $ac_lo in
49283 ?*) ac_cv_sizeof_short=$ac_lo;;
49284 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49285 See \`config.log' for more details." >&5
49286 echo "$as_me: error: cannot compute sizeof (short), 77
49287 See \`config.log' for more details." >&2;}
49288    { (exit 1); exit 1; }; } ;;
49289 esac
49290 else
49291   if test "$cross_compiling" = yes; then
49292   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49293 See \`config.log' for more details." >&5
49294 echo "$as_me: error: cannot run test program while cross compiling
49295 See \`config.log' for more details." >&2;}
49296    { (exit 1); exit 1; }; }
49297 else
49298   cat >conftest.$ac_ext <<_ACEOF
49299 /* confdefs.h.  */
49300 _ACEOF
49301 cat confdefs.h >>conftest.$ac_ext
49302 cat >>conftest.$ac_ext <<_ACEOF
49303 /* end confdefs.h.  */
49304 $ac_includes_default
49305 long longval () { return (long) (sizeof (short)); }
49306 unsigned long ulongval () { return (long) (sizeof (short)); }
49307 #include <stdio.h>
49308 #include <stdlib.h>
49309 int
49310 main ()
49311 {
49312
49313   FILE *f = fopen ("conftest.val", "w");
49314   if (! f)
49315     exit (1);
49316   if (((long) (sizeof (short))) < 0)
49317     {
49318       long i = longval ();
49319       if (i != ((long) (sizeof (short))))
49320         exit (1);
49321       fprintf (f, "%ld\n", i);
49322     }
49323   else
49324     {
49325       unsigned long i = ulongval ();
49326       if (i != ((long) (sizeof (short))))
49327         exit (1);
49328       fprintf (f, "%lu\n", i);
49329     }
49330   exit (ferror (f) || fclose (f) != 0);
49331
49332   ;
49333   return 0;
49334 }
49335 _ACEOF
49336 rm -f conftest$ac_exeext
49337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49338   (eval $ac_link) 2>&5
49339   ac_status=$?
49340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49343   (eval $ac_try) 2>&5
49344   ac_status=$?
49345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346   (exit $ac_status); }; }; then
49347   ac_cv_sizeof_short=`cat conftest.val`
49348 else
49349   echo "$as_me: program exited with status $ac_status" >&5
49350 echo "$as_me: failed program was:" >&5
49351 sed 's/^/| /' conftest.$ac_ext >&5
49352
49353 ( exit $ac_status )
49354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49355 See \`config.log' for more details." >&5
49356 echo "$as_me: error: cannot compute sizeof (short), 77
49357 See \`config.log' for more details." >&2;}
49358    { (exit 1); exit 1; }; }
49359 fi
49360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49361 fi
49362 fi
49363 rm -f conftest.val
49364 else
49365   ac_cv_sizeof_short=0
49366 fi
49367 fi
49368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49369 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49370 cat >>confdefs.h <<_ACEOF
49371 #define SIZEOF_SHORT $ac_cv_sizeof_short
49372 _ACEOF
49373
49374
49375 echo "$as_me:$LINENO: checking for int" >&5
49376 echo $ECHO_N "checking for int... $ECHO_C" >&6
49377 if test "${ac_cv_type_int+set}" = set; then
49378   echo $ECHO_N "(cached) $ECHO_C" >&6
49379 else
49380   cat >conftest.$ac_ext <<_ACEOF
49381 /* confdefs.h.  */
49382 _ACEOF
49383 cat confdefs.h >>conftest.$ac_ext
49384 cat >>conftest.$ac_ext <<_ACEOF
49385 /* end confdefs.h.  */
49386 $ac_includes_default
49387 int
49388 main ()
49389 {
49390 if ((int *) 0)
49391   return 0;
49392 if (sizeof (int))
49393   return 0;
49394   ;
49395   return 0;
49396 }
49397 _ACEOF
49398 rm -f conftest.$ac_objext
49399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49400   (eval $ac_compile) 2>conftest.er1
49401   ac_status=$?
49402   grep -v '^ *+' conftest.er1 >conftest.err
49403   rm -f conftest.er1
49404   cat conftest.err >&5
49405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49406   (exit $ac_status); } &&
49407          { ac_try='test -z "$ac_c_werror_flag"
49408                          || test ! -s conftest.err'
49409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49410   (eval $ac_try) 2>&5
49411   ac_status=$?
49412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49413   (exit $ac_status); }; } &&
49414          { ac_try='test -s conftest.$ac_objext'
49415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49416   (eval $ac_try) 2>&5
49417   ac_status=$?
49418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419   (exit $ac_status); }; }; then
49420   ac_cv_type_int=yes
49421 else
49422   echo "$as_me: failed program was:" >&5
49423 sed 's/^/| /' conftest.$ac_ext >&5
49424
49425 ac_cv_type_int=no
49426 fi
49427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49428 fi
49429 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49430 echo "${ECHO_T}$ac_cv_type_int" >&6
49431
49432 echo "$as_me:$LINENO: checking size of int" >&5
49433 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49434 if test "${ac_cv_sizeof_int+set}" = set; then
49435   echo $ECHO_N "(cached) $ECHO_C" >&6
49436 else
49437   if test "$ac_cv_type_int" = yes; then
49438   # The cast to unsigned long works around a bug in the HP C Compiler
49439   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49440   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49441   # This bug is HP SR number 8606223364.
49442   if test "$cross_compiling" = yes; then
49443   # Depending upon the size, compute the lo and hi bounds.
49444 cat >conftest.$ac_ext <<_ACEOF
49445 /* confdefs.h.  */
49446 _ACEOF
49447 cat confdefs.h >>conftest.$ac_ext
49448 cat >>conftest.$ac_ext <<_ACEOF
49449 /* end confdefs.h.  */
49450 $ac_includes_default
49451 int
49452 main ()
49453 {
49454 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49455 test_array [0] = 0
49456
49457   ;
49458   return 0;
49459 }
49460 _ACEOF
49461 rm -f conftest.$ac_objext
49462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49463   (eval $ac_compile) 2>conftest.er1
49464   ac_status=$?
49465   grep -v '^ *+' conftest.er1 >conftest.err
49466   rm -f conftest.er1
49467   cat conftest.err >&5
49468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49469   (exit $ac_status); } &&
49470          { ac_try='test -z "$ac_c_werror_flag"
49471                          || test ! -s conftest.err'
49472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49473   (eval $ac_try) 2>&5
49474   ac_status=$?
49475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49476   (exit $ac_status); }; } &&
49477          { ac_try='test -s conftest.$ac_objext'
49478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479   (eval $ac_try) 2>&5
49480   ac_status=$?
49481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482   (exit $ac_status); }; }; then
49483   ac_lo=0 ac_mid=0
49484   while :; do
49485     cat >conftest.$ac_ext <<_ACEOF
49486 /* confdefs.h.  */
49487 _ACEOF
49488 cat confdefs.h >>conftest.$ac_ext
49489 cat >>conftest.$ac_ext <<_ACEOF
49490 /* end confdefs.h.  */
49491 $ac_includes_default
49492 int
49493 main ()
49494 {
49495 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49496 test_array [0] = 0
49497
49498   ;
49499   return 0;
49500 }
49501 _ACEOF
49502 rm -f conftest.$ac_objext
49503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49504   (eval $ac_compile) 2>conftest.er1
49505   ac_status=$?
49506   grep -v '^ *+' conftest.er1 >conftest.err
49507   rm -f conftest.er1
49508   cat conftest.err >&5
49509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49510   (exit $ac_status); } &&
49511          { ac_try='test -z "$ac_c_werror_flag"
49512                          || test ! -s conftest.err'
49513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49514   (eval $ac_try) 2>&5
49515   ac_status=$?
49516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49517   (exit $ac_status); }; } &&
49518          { ac_try='test -s conftest.$ac_objext'
49519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49520   (eval $ac_try) 2>&5
49521   ac_status=$?
49522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523   (exit $ac_status); }; }; then
49524   ac_hi=$ac_mid; break
49525 else
49526   echo "$as_me: failed program was:" >&5
49527 sed 's/^/| /' conftest.$ac_ext >&5
49528
49529 ac_lo=`expr $ac_mid + 1`
49530                     if test $ac_lo -le $ac_mid; then
49531                       ac_lo= ac_hi=
49532                       break
49533                     fi
49534                     ac_mid=`expr 2 '*' $ac_mid + 1`
49535 fi
49536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49537   done
49538 else
49539   echo "$as_me: failed program was:" >&5
49540 sed 's/^/| /' conftest.$ac_ext >&5
49541
49542 cat >conftest.$ac_ext <<_ACEOF
49543 /* confdefs.h.  */
49544 _ACEOF
49545 cat confdefs.h >>conftest.$ac_ext
49546 cat >>conftest.$ac_ext <<_ACEOF
49547 /* end confdefs.h.  */
49548 $ac_includes_default
49549 int
49550 main ()
49551 {
49552 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49553 test_array [0] = 0
49554
49555   ;
49556   return 0;
49557 }
49558 _ACEOF
49559 rm -f conftest.$ac_objext
49560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49561   (eval $ac_compile) 2>conftest.er1
49562   ac_status=$?
49563   grep -v '^ *+' conftest.er1 >conftest.err
49564   rm -f conftest.er1
49565   cat conftest.err >&5
49566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49567   (exit $ac_status); } &&
49568          { ac_try='test -z "$ac_c_werror_flag"
49569                          || test ! -s conftest.err'
49570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49571   (eval $ac_try) 2>&5
49572   ac_status=$?
49573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49574   (exit $ac_status); }; } &&
49575          { ac_try='test -s conftest.$ac_objext'
49576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577   (eval $ac_try) 2>&5
49578   ac_status=$?
49579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580   (exit $ac_status); }; }; then
49581   ac_hi=-1 ac_mid=-1
49582   while :; do
49583     cat >conftest.$ac_ext <<_ACEOF
49584 /* confdefs.h.  */
49585 _ACEOF
49586 cat confdefs.h >>conftest.$ac_ext
49587 cat >>conftest.$ac_ext <<_ACEOF
49588 /* end confdefs.h.  */
49589 $ac_includes_default
49590 int
49591 main ()
49592 {
49593 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49594 test_array [0] = 0
49595
49596   ;
49597   return 0;
49598 }
49599 _ACEOF
49600 rm -f conftest.$ac_objext
49601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49602   (eval $ac_compile) 2>conftest.er1
49603   ac_status=$?
49604   grep -v '^ *+' conftest.er1 >conftest.err
49605   rm -f conftest.er1
49606   cat conftest.err >&5
49607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49608   (exit $ac_status); } &&
49609          { ac_try='test -z "$ac_c_werror_flag"
49610                          || test ! -s conftest.err'
49611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49612   (eval $ac_try) 2>&5
49613   ac_status=$?
49614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49615   (exit $ac_status); }; } &&
49616          { ac_try='test -s conftest.$ac_objext'
49617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49618   (eval $ac_try) 2>&5
49619   ac_status=$?
49620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49621   (exit $ac_status); }; }; then
49622   ac_lo=$ac_mid; break
49623 else
49624   echo "$as_me: failed program was:" >&5
49625 sed 's/^/| /' conftest.$ac_ext >&5
49626
49627 ac_hi=`expr '(' $ac_mid ')' - 1`
49628                        if test $ac_mid -le $ac_hi; then
49629                          ac_lo= ac_hi=
49630                          break
49631                        fi
49632                        ac_mid=`expr 2 '*' $ac_mid`
49633 fi
49634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49635   done
49636 else
49637   echo "$as_me: failed program was:" >&5
49638 sed 's/^/| /' conftest.$ac_ext >&5
49639
49640 ac_lo= ac_hi=
49641 fi
49642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49643 fi
49644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49645 # Binary search between lo and hi bounds.
49646 while test "x$ac_lo" != "x$ac_hi"; do
49647   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49648   cat >conftest.$ac_ext <<_ACEOF
49649 /* confdefs.h.  */
49650 _ACEOF
49651 cat confdefs.h >>conftest.$ac_ext
49652 cat >>conftest.$ac_ext <<_ACEOF
49653 /* end confdefs.h.  */
49654 $ac_includes_default
49655 int
49656 main ()
49657 {
49658 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49659 test_array [0] = 0
49660
49661   ;
49662   return 0;
49663 }
49664 _ACEOF
49665 rm -f conftest.$ac_objext
49666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49667   (eval $ac_compile) 2>conftest.er1
49668   ac_status=$?
49669   grep -v '^ *+' conftest.er1 >conftest.err
49670   rm -f conftest.er1
49671   cat conftest.err >&5
49672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49673   (exit $ac_status); } &&
49674          { ac_try='test -z "$ac_c_werror_flag"
49675                          || test ! -s conftest.err'
49676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49677   (eval $ac_try) 2>&5
49678   ac_status=$?
49679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49680   (exit $ac_status); }; } &&
49681          { ac_try='test -s conftest.$ac_objext'
49682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49683   (eval $ac_try) 2>&5
49684   ac_status=$?
49685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49686   (exit $ac_status); }; }; then
49687   ac_hi=$ac_mid
49688 else
49689   echo "$as_me: failed program was:" >&5
49690 sed 's/^/| /' conftest.$ac_ext >&5
49691
49692 ac_lo=`expr '(' $ac_mid ')' + 1`
49693 fi
49694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49695 done
49696 case $ac_lo in
49697 ?*) ac_cv_sizeof_int=$ac_lo;;
49698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49699 See \`config.log' for more details." >&5
49700 echo "$as_me: error: cannot compute sizeof (int), 77
49701 See \`config.log' for more details." >&2;}
49702    { (exit 1); exit 1; }; } ;;
49703 esac
49704 else
49705   if test "$cross_compiling" = yes; then
49706   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49707 See \`config.log' for more details." >&5
49708 echo "$as_me: error: cannot run test program while cross compiling
49709 See \`config.log' for more details." >&2;}
49710    { (exit 1); exit 1; }; }
49711 else
49712   cat >conftest.$ac_ext <<_ACEOF
49713 /* confdefs.h.  */
49714 _ACEOF
49715 cat confdefs.h >>conftest.$ac_ext
49716 cat >>conftest.$ac_ext <<_ACEOF
49717 /* end confdefs.h.  */
49718 $ac_includes_default
49719 long longval () { return (long) (sizeof (int)); }
49720 unsigned long ulongval () { return (long) (sizeof (int)); }
49721 #include <stdio.h>
49722 #include <stdlib.h>
49723 int
49724 main ()
49725 {
49726
49727   FILE *f = fopen ("conftest.val", "w");
49728   if (! f)
49729     exit (1);
49730   if (((long) (sizeof (int))) < 0)
49731     {
49732       long i = longval ();
49733       if (i != ((long) (sizeof (int))))
49734         exit (1);
49735       fprintf (f, "%ld\n", i);
49736     }
49737   else
49738     {
49739       unsigned long i = ulongval ();
49740       if (i != ((long) (sizeof (int))))
49741         exit (1);
49742       fprintf (f, "%lu\n", i);
49743     }
49744   exit (ferror (f) || fclose (f) != 0);
49745
49746   ;
49747   return 0;
49748 }
49749 _ACEOF
49750 rm -f conftest$ac_exeext
49751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49752   (eval $ac_link) 2>&5
49753   ac_status=$?
49754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49757   (eval $ac_try) 2>&5
49758   ac_status=$?
49759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760   (exit $ac_status); }; }; then
49761   ac_cv_sizeof_int=`cat conftest.val`
49762 else
49763   echo "$as_me: program exited with status $ac_status" >&5
49764 echo "$as_me: failed program was:" >&5
49765 sed 's/^/| /' conftest.$ac_ext >&5
49766
49767 ( exit $ac_status )
49768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49769 See \`config.log' for more details." >&5
49770 echo "$as_me: error: cannot compute sizeof (int), 77
49771 See \`config.log' for more details." >&2;}
49772    { (exit 1); exit 1; }; }
49773 fi
49774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49775 fi
49776 fi
49777 rm -f conftest.val
49778 else
49779   ac_cv_sizeof_int=0
49780 fi
49781 fi
49782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49783 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49784 cat >>confdefs.h <<_ACEOF
49785 #define SIZEOF_INT $ac_cv_sizeof_int
49786 _ACEOF
49787
49788
49789 echo "$as_me:$LINENO: checking for long" >&5
49790 echo $ECHO_N "checking for long... $ECHO_C" >&6
49791 if test "${ac_cv_type_long+set}" = set; then
49792   echo $ECHO_N "(cached) $ECHO_C" >&6
49793 else
49794   cat >conftest.$ac_ext <<_ACEOF
49795 /* confdefs.h.  */
49796 _ACEOF
49797 cat confdefs.h >>conftest.$ac_ext
49798 cat >>conftest.$ac_ext <<_ACEOF
49799 /* end confdefs.h.  */
49800 $ac_includes_default
49801 int
49802 main ()
49803 {
49804 if ((long *) 0)
49805   return 0;
49806 if (sizeof (long))
49807   return 0;
49808   ;
49809   return 0;
49810 }
49811 _ACEOF
49812 rm -f conftest.$ac_objext
49813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49814   (eval $ac_compile) 2>conftest.er1
49815   ac_status=$?
49816   grep -v '^ *+' conftest.er1 >conftest.err
49817   rm -f conftest.er1
49818   cat conftest.err >&5
49819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49820   (exit $ac_status); } &&
49821          { ac_try='test -z "$ac_c_werror_flag"
49822                          || test ! -s conftest.err'
49823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49824   (eval $ac_try) 2>&5
49825   ac_status=$?
49826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49827   (exit $ac_status); }; } &&
49828          { ac_try='test -s conftest.$ac_objext'
49829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49830   (eval $ac_try) 2>&5
49831   ac_status=$?
49832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49833   (exit $ac_status); }; }; then
49834   ac_cv_type_long=yes
49835 else
49836   echo "$as_me: failed program was:" >&5
49837 sed 's/^/| /' conftest.$ac_ext >&5
49838
49839 ac_cv_type_long=no
49840 fi
49841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49842 fi
49843 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49844 echo "${ECHO_T}$ac_cv_type_long" >&6
49845
49846 echo "$as_me:$LINENO: checking size of long" >&5
49847 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49848 if test "${ac_cv_sizeof_long+set}" = set; then
49849   echo $ECHO_N "(cached) $ECHO_C" >&6
49850 else
49851   if test "$ac_cv_type_long" = yes; then
49852   # The cast to unsigned long works around a bug in the HP C Compiler
49853   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49854   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49855   # This bug is HP SR number 8606223364.
49856   if test "$cross_compiling" = yes; then
49857   # Depending upon the size, compute the lo and hi bounds.
49858 cat >conftest.$ac_ext <<_ACEOF
49859 /* confdefs.h.  */
49860 _ACEOF
49861 cat confdefs.h >>conftest.$ac_ext
49862 cat >>conftest.$ac_ext <<_ACEOF
49863 /* end confdefs.h.  */
49864 $ac_includes_default
49865 int
49866 main ()
49867 {
49868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49869 test_array [0] = 0
49870
49871   ;
49872   return 0;
49873 }
49874 _ACEOF
49875 rm -f conftest.$ac_objext
49876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49877   (eval $ac_compile) 2>conftest.er1
49878   ac_status=$?
49879   grep -v '^ *+' conftest.er1 >conftest.err
49880   rm -f conftest.er1
49881   cat conftest.err >&5
49882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49883   (exit $ac_status); } &&
49884          { ac_try='test -z "$ac_c_werror_flag"
49885                          || test ! -s conftest.err'
49886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49887   (eval $ac_try) 2>&5
49888   ac_status=$?
49889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49890   (exit $ac_status); }; } &&
49891          { ac_try='test -s conftest.$ac_objext'
49892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49893   (eval $ac_try) 2>&5
49894   ac_status=$?
49895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49896   (exit $ac_status); }; }; then
49897   ac_lo=0 ac_mid=0
49898   while :; do
49899     cat >conftest.$ac_ext <<_ACEOF
49900 /* confdefs.h.  */
49901 _ACEOF
49902 cat confdefs.h >>conftest.$ac_ext
49903 cat >>conftest.$ac_ext <<_ACEOF
49904 /* end confdefs.h.  */
49905 $ac_includes_default
49906 int
49907 main ()
49908 {
49909 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49910 test_array [0] = 0
49911
49912   ;
49913   return 0;
49914 }
49915 _ACEOF
49916 rm -f conftest.$ac_objext
49917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49918   (eval $ac_compile) 2>conftest.er1
49919   ac_status=$?
49920   grep -v '^ *+' conftest.er1 >conftest.err
49921   rm -f conftest.er1
49922   cat conftest.err >&5
49923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49924   (exit $ac_status); } &&
49925          { ac_try='test -z "$ac_c_werror_flag"
49926                          || test ! -s conftest.err'
49927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49928   (eval $ac_try) 2>&5
49929   ac_status=$?
49930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49931   (exit $ac_status); }; } &&
49932          { ac_try='test -s conftest.$ac_objext'
49933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49934   (eval $ac_try) 2>&5
49935   ac_status=$?
49936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937   (exit $ac_status); }; }; then
49938   ac_hi=$ac_mid; break
49939 else
49940   echo "$as_me: failed program was:" >&5
49941 sed 's/^/| /' conftest.$ac_ext >&5
49942
49943 ac_lo=`expr $ac_mid + 1`
49944                     if test $ac_lo -le $ac_mid; then
49945                       ac_lo= ac_hi=
49946                       break
49947                     fi
49948                     ac_mid=`expr 2 '*' $ac_mid + 1`
49949 fi
49950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49951   done
49952 else
49953   echo "$as_me: failed program was:" >&5
49954 sed 's/^/| /' conftest.$ac_ext >&5
49955
49956 cat >conftest.$ac_ext <<_ACEOF
49957 /* confdefs.h.  */
49958 _ACEOF
49959 cat confdefs.h >>conftest.$ac_ext
49960 cat >>conftest.$ac_ext <<_ACEOF
49961 /* end confdefs.h.  */
49962 $ac_includes_default
49963 int
49964 main ()
49965 {
49966 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49967 test_array [0] = 0
49968
49969   ;
49970   return 0;
49971 }
49972 _ACEOF
49973 rm -f conftest.$ac_objext
49974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49975   (eval $ac_compile) 2>conftest.er1
49976   ac_status=$?
49977   grep -v '^ *+' conftest.er1 >conftest.err
49978   rm -f conftest.er1
49979   cat conftest.err >&5
49980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981   (exit $ac_status); } &&
49982          { ac_try='test -z "$ac_c_werror_flag"
49983                          || test ! -s conftest.err'
49984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49985   (eval $ac_try) 2>&5
49986   ac_status=$?
49987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49988   (exit $ac_status); }; } &&
49989          { ac_try='test -s conftest.$ac_objext'
49990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991   (eval $ac_try) 2>&5
49992   ac_status=$?
49993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994   (exit $ac_status); }; }; then
49995   ac_hi=-1 ac_mid=-1
49996   while :; do
49997     cat >conftest.$ac_ext <<_ACEOF
49998 /* confdefs.h.  */
49999 _ACEOF
50000 cat confdefs.h >>conftest.$ac_ext
50001 cat >>conftest.$ac_ext <<_ACEOF
50002 /* end confdefs.h.  */
50003 $ac_includes_default
50004 int
50005 main ()
50006 {
50007 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
50008 test_array [0] = 0
50009
50010   ;
50011   return 0;
50012 }
50013 _ACEOF
50014 rm -f conftest.$ac_objext
50015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50016   (eval $ac_compile) 2>conftest.er1
50017   ac_status=$?
50018   grep -v '^ *+' conftest.er1 >conftest.err
50019   rm -f conftest.er1
50020   cat conftest.err >&5
50021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50022   (exit $ac_status); } &&
50023          { ac_try='test -z "$ac_c_werror_flag"
50024                          || test ! -s conftest.err'
50025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50026   (eval $ac_try) 2>&5
50027   ac_status=$?
50028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50029   (exit $ac_status); }; } &&
50030          { ac_try='test -s conftest.$ac_objext'
50031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50032   (eval $ac_try) 2>&5
50033   ac_status=$?
50034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50035   (exit $ac_status); }; }; then
50036   ac_lo=$ac_mid; break
50037 else
50038   echo "$as_me: failed program was:" >&5
50039 sed 's/^/| /' conftest.$ac_ext >&5
50040
50041 ac_hi=`expr '(' $ac_mid ')' - 1`
50042                        if test $ac_mid -le $ac_hi; then
50043                          ac_lo= ac_hi=
50044                          break
50045                        fi
50046                        ac_mid=`expr 2 '*' $ac_mid`
50047 fi
50048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50049   done
50050 else
50051   echo "$as_me: failed program was:" >&5
50052 sed 's/^/| /' conftest.$ac_ext >&5
50053
50054 ac_lo= ac_hi=
50055 fi
50056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50057 fi
50058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50059 # Binary search between lo and hi bounds.
50060 while test "x$ac_lo" != "x$ac_hi"; do
50061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50062   cat >conftest.$ac_ext <<_ACEOF
50063 /* confdefs.h.  */
50064 _ACEOF
50065 cat confdefs.h >>conftest.$ac_ext
50066 cat >>conftest.$ac_ext <<_ACEOF
50067 /* end confdefs.h.  */
50068 $ac_includes_default
50069 int
50070 main ()
50071 {
50072 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50073 test_array [0] = 0
50074
50075   ;
50076   return 0;
50077 }
50078 _ACEOF
50079 rm -f conftest.$ac_objext
50080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50081   (eval $ac_compile) 2>conftest.er1
50082   ac_status=$?
50083   grep -v '^ *+' conftest.er1 >conftest.err
50084   rm -f conftest.er1
50085   cat conftest.err >&5
50086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087   (exit $ac_status); } &&
50088          { ac_try='test -z "$ac_c_werror_flag"
50089                          || test ! -s conftest.err'
50090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50091   (eval $ac_try) 2>&5
50092   ac_status=$?
50093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50094   (exit $ac_status); }; } &&
50095          { ac_try='test -s conftest.$ac_objext'
50096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50097   (eval $ac_try) 2>&5
50098   ac_status=$?
50099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100   (exit $ac_status); }; }; then
50101   ac_hi=$ac_mid
50102 else
50103   echo "$as_me: failed program was:" >&5
50104 sed 's/^/| /' conftest.$ac_ext >&5
50105
50106 ac_lo=`expr '(' $ac_mid ')' + 1`
50107 fi
50108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50109 done
50110 case $ac_lo in
50111 ?*) ac_cv_sizeof_long=$ac_lo;;
50112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50113 See \`config.log' for more details." >&5
50114 echo "$as_me: error: cannot compute sizeof (long), 77
50115 See \`config.log' for more details." >&2;}
50116    { (exit 1); exit 1; }; } ;;
50117 esac
50118 else
50119   if test "$cross_compiling" = yes; then
50120   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50121 See \`config.log' for more details." >&5
50122 echo "$as_me: error: cannot run test program while cross compiling
50123 See \`config.log' for more details." >&2;}
50124    { (exit 1); exit 1; }; }
50125 else
50126   cat >conftest.$ac_ext <<_ACEOF
50127 /* confdefs.h.  */
50128 _ACEOF
50129 cat confdefs.h >>conftest.$ac_ext
50130 cat >>conftest.$ac_ext <<_ACEOF
50131 /* end confdefs.h.  */
50132 $ac_includes_default
50133 long longval () { return (long) (sizeof (long)); }
50134 unsigned long ulongval () { return (long) (sizeof (long)); }
50135 #include <stdio.h>
50136 #include <stdlib.h>
50137 int
50138 main ()
50139 {
50140
50141   FILE *f = fopen ("conftest.val", "w");
50142   if (! f)
50143     exit (1);
50144   if (((long) (sizeof (long))) < 0)
50145     {
50146       long i = longval ();
50147       if (i != ((long) (sizeof (long))))
50148         exit (1);
50149       fprintf (f, "%ld\n", i);
50150     }
50151   else
50152     {
50153       unsigned long i = ulongval ();
50154       if (i != ((long) (sizeof (long))))
50155         exit (1);
50156       fprintf (f, "%lu\n", i);
50157     }
50158   exit (ferror (f) || fclose (f) != 0);
50159
50160   ;
50161   return 0;
50162 }
50163 _ACEOF
50164 rm -f conftest$ac_exeext
50165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50166   (eval $ac_link) 2>&5
50167   ac_status=$?
50168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50171   (eval $ac_try) 2>&5
50172   ac_status=$?
50173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174   (exit $ac_status); }; }; then
50175   ac_cv_sizeof_long=`cat conftest.val`
50176 else
50177   echo "$as_me: program exited with status $ac_status" >&5
50178 echo "$as_me: failed program was:" >&5
50179 sed 's/^/| /' conftest.$ac_ext >&5
50180
50181 ( exit $ac_status )
50182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50183 See \`config.log' for more details." >&5
50184 echo "$as_me: error: cannot compute sizeof (long), 77
50185 See \`config.log' for more details." >&2;}
50186    { (exit 1); exit 1; }; }
50187 fi
50188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50189 fi
50190 fi
50191 rm -f conftest.val
50192 else
50193   ac_cv_sizeof_long=0
50194 fi
50195 fi
50196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50197 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50198 cat >>confdefs.h <<_ACEOF
50199 #define SIZEOF_LONG $ac_cv_sizeof_long
50200 _ACEOF
50201
50202
50203 echo "$as_me:$LINENO: checking for wchar_t" >&5
50204 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50205 if test "${ac_cv_type_wchar_t+set}" = set; then
50206   echo $ECHO_N "(cached) $ECHO_C" >&6
50207 else
50208   cat >conftest.$ac_ext <<_ACEOF
50209 /* confdefs.h.  */
50210 _ACEOF
50211 cat confdefs.h >>conftest.$ac_ext
50212 cat >>conftest.$ac_ext <<_ACEOF
50213 /* end confdefs.h.  */
50214 $ac_includes_default
50215 int
50216 main ()
50217 {
50218 if ((wchar_t *) 0)
50219   return 0;
50220 if (sizeof (wchar_t))
50221   return 0;
50222   ;
50223   return 0;
50224 }
50225 _ACEOF
50226 rm -f conftest.$ac_objext
50227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50228   (eval $ac_compile) 2>conftest.er1
50229   ac_status=$?
50230   grep -v '^ *+' conftest.er1 >conftest.err
50231   rm -f conftest.er1
50232   cat conftest.err >&5
50233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50234   (exit $ac_status); } &&
50235          { ac_try='test -z "$ac_c_werror_flag"
50236                          || test ! -s conftest.err'
50237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50238   (eval $ac_try) 2>&5
50239   ac_status=$?
50240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50241   (exit $ac_status); }; } &&
50242          { ac_try='test -s conftest.$ac_objext'
50243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50244   (eval $ac_try) 2>&5
50245   ac_status=$?
50246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50247   (exit $ac_status); }; }; then
50248   ac_cv_type_wchar_t=yes
50249 else
50250   echo "$as_me: failed program was:" >&5
50251 sed 's/^/| /' conftest.$ac_ext >&5
50252
50253 ac_cv_type_wchar_t=no
50254 fi
50255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50256 fi
50257 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50258 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50259
50260 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50261 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50262 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50263   echo $ECHO_N "(cached) $ECHO_C" >&6
50264 else
50265   if test "$ac_cv_type_wchar_t" = yes; then
50266   # The cast to unsigned long works around a bug in the HP C Compiler
50267   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50268   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50269   # This bug is HP SR number 8606223364.
50270   if test "$cross_compiling" = yes; then
50271   # Depending upon the size, compute the lo and hi bounds.
50272 cat >conftest.$ac_ext <<_ACEOF
50273 /* confdefs.h.  */
50274 _ACEOF
50275 cat confdefs.h >>conftest.$ac_ext
50276 cat >>conftest.$ac_ext <<_ACEOF
50277 /* end confdefs.h.  */
50278 $ac_includes_default
50279 int
50280 main ()
50281 {
50282 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50283 test_array [0] = 0
50284
50285   ;
50286   return 0;
50287 }
50288 _ACEOF
50289 rm -f conftest.$ac_objext
50290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50291   (eval $ac_compile) 2>conftest.er1
50292   ac_status=$?
50293   grep -v '^ *+' conftest.er1 >conftest.err
50294   rm -f conftest.er1
50295   cat conftest.err >&5
50296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50297   (exit $ac_status); } &&
50298          { ac_try='test -z "$ac_c_werror_flag"
50299                          || test ! -s conftest.err'
50300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50301   (eval $ac_try) 2>&5
50302   ac_status=$?
50303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50304   (exit $ac_status); }; } &&
50305          { ac_try='test -s conftest.$ac_objext'
50306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50307   (eval $ac_try) 2>&5
50308   ac_status=$?
50309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50310   (exit $ac_status); }; }; then
50311   ac_lo=0 ac_mid=0
50312   while :; do
50313     cat >conftest.$ac_ext <<_ACEOF
50314 /* confdefs.h.  */
50315 _ACEOF
50316 cat confdefs.h >>conftest.$ac_ext
50317 cat >>conftest.$ac_ext <<_ACEOF
50318 /* end confdefs.h.  */
50319 $ac_includes_default
50320 int
50321 main ()
50322 {
50323 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50324 test_array [0] = 0
50325
50326   ;
50327   return 0;
50328 }
50329 _ACEOF
50330 rm -f conftest.$ac_objext
50331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50332   (eval $ac_compile) 2>conftest.er1
50333   ac_status=$?
50334   grep -v '^ *+' conftest.er1 >conftest.err
50335   rm -f conftest.er1
50336   cat conftest.err >&5
50337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50338   (exit $ac_status); } &&
50339          { ac_try='test -z "$ac_c_werror_flag"
50340                          || test ! -s conftest.err'
50341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50342   (eval $ac_try) 2>&5
50343   ac_status=$?
50344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50345   (exit $ac_status); }; } &&
50346          { ac_try='test -s conftest.$ac_objext'
50347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50348   (eval $ac_try) 2>&5
50349   ac_status=$?
50350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50351   (exit $ac_status); }; }; then
50352   ac_hi=$ac_mid; break
50353 else
50354   echo "$as_me: failed program was:" >&5
50355 sed 's/^/| /' conftest.$ac_ext >&5
50356
50357 ac_lo=`expr $ac_mid + 1`
50358                     if test $ac_lo -le $ac_mid; then
50359                       ac_lo= ac_hi=
50360                       break
50361                     fi
50362                     ac_mid=`expr 2 '*' $ac_mid + 1`
50363 fi
50364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50365   done
50366 else
50367   echo "$as_me: failed program was:" >&5
50368 sed 's/^/| /' conftest.$ac_ext >&5
50369
50370 cat >conftest.$ac_ext <<_ACEOF
50371 /* confdefs.h.  */
50372 _ACEOF
50373 cat confdefs.h >>conftest.$ac_ext
50374 cat >>conftest.$ac_ext <<_ACEOF
50375 /* end confdefs.h.  */
50376 $ac_includes_default
50377 int
50378 main ()
50379 {
50380 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50381 test_array [0] = 0
50382
50383   ;
50384   return 0;
50385 }
50386 _ACEOF
50387 rm -f conftest.$ac_objext
50388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50389   (eval $ac_compile) 2>conftest.er1
50390   ac_status=$?
50391   grep -v '^ *+' conftest.er1 >conftest.err
50392   rm -f conftest.er1
50393   cat conftest.err >&5
50394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50395   (exit $ac_status); } &&
50396          { ac_try='test -z "$ac_c_werror_flag"
50397                          || test ! -s conftest.err'
50398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50399   (eval $ac_try) 2>&5
50400   ac_status=$?
50401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50402   (exit $ac_status); }; } &&
50403          { ac_try='test -s conftest.$ac_objext'
50404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50405   (eval $ac_try) 2>&5
50406   ac_status=$?
50407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50408   (exit $ac_status); }; }; then
50409   ac_hi=-1 ac_mid=-1
50410   while :; do
50411     cat >conftest.$ac_ext <<_ACEOF
50412 /* confdefs.h.  */
50413 _ACEOF
50414 cat confdefs.h >>conftest.$ac_ext
50415 cat >>conftest.$ac_ext <<_ACEOF
50416 /* end confdefs.h.  */
50417 $ac_includes_default
50418 int
50419 main ()
50420 {
50421 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50422 test_array [0] = 0
50423
50424   ;
50425   return 0;
50426 }
50427 _ACEOF
50428 rm -f conftest.$ac_objext
50429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50430   (eval $ac_compile) 2>conftest.er1
50431   ac_status=$?
50432   grep -v '^ *+' conftest.er1 >conftest.err
50433   rm -f conftest.er1
50434   cat conftest.err >&5
50435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50436   (exit $ac_status); } &&
50437          { ac_try='test -z "$ac_c_werror_flag"
50438                          || test ! -s conftest.err'
50439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50440   (eval $ac_try) 2>&5
50441   ac_status=$?
50442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50443   (exit $ac_status); }; } &&
50444          { ac_try='test -s conftest.$ac_objext'
50445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50446   (eval $ac_try) 2>&5
50447   ac_status=$?
50448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50449   (exit $ac_status); }; }; then
50450   ac_lo=$ac_mid; break
50451 else
50452   echo "$as_me: failed program was:" >&5
50453 sed 's/^/| /' conftest.$ac_ext >&5
50454
50455 ac_hi=`expr '(' $ac_mid ')' - 1`
50456                        if test $ac_mid -le $ac_hi; then
50457                          ac_lo= ac_hi=
50458                          break
50459                        fi
50460                        ac_mid=`expr 2 '*' $ac_mid`
50461 fi
50462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50463   done
50464 else
50465   echo "$as_me: failed program was:" >&5
50466 sed 's/^/| /' conftest.$ac_ext >&5
50467
50468 ac_lo= ac_hi=
50469 fi
50470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50471 fi
50472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50473 # Binary search between lo and hi bounds.
50474 while test "x$ac_lo" != "x$ac_hi"; do
50475   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50476   cat >conftest.$ac_ext <<_ACEOF
50477 /* confdefs.h.  */
50478 _ACEOF
50479 cat confdefs.h >>conftest.$ac_ext
50480 cat >>conftest.$ac_ext <<_ACEOF
50481 /* end confdefs.h.  */
50482 $ac_includes_default
50483 int
50484 main ()
50485 {
50486 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50487 test_array [0] = 0
50488
50489   ;
50490   return 0;
50491 }
50492 _ACEOF
50493 rm -f conftest.$ac_objext
50494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50495   (eval $ac_compile) 2>conftest.er1
50496   ac_status=$?
50497   grep -v '^ *+' conftest.er1 >conftest.err
50498   rm -f conftest.er1
50499   cat conftest.err >&5
50500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50501   (exit $ac_status); } &&
50502          { ac_try='test -z "$ac_c_werror_flag"
50503                          || test ! -s conftest.err'
50504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50505   (eval $ac_try) 2>&5
50506   ac_status=$?
50507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50508   (exit $ac_status); }; } &&
50509          { ac_try='test -s conftest.$ac_objext'
50510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50511   (eval $ac_try) 2>&5
50512   ac_status=$?
50513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50514   (exit $ac_status); }; }; then
50515   ac_hi=$ac_mid
50516 else
50517   echo "$as_me: failed program was:" >&5
50518 sed 's/^/| /' conftest.$ac_ext >&5
50519
50520 ac_lo=`expr '(' $ac_mid ')' + 1`
50521 fi
50522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50523 done
50524 case $ac_lo in
50525 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50527 See \`config.log' for more details." >&5
50528 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50529 See \`config.log' for more details." >&2;}
50530    { (exit 1); exit 1; }; } ;;
50531 esac
50532 else
50533   if test "$cross_compiling" = yes; then
50534   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50535 See \`config.log' for more details." >&5
50536 echo "$as_me: error: cannot run test program while cross compiling
50537 See \`config.log' for more details." >&2;}
50538    { (exit 1); exit 1; }; }
50539 else
50540   cat >conftest.$ac_ext <<_ACEOF
50541 /* confdefs.h.  */
50542 _ACEOF
50543 cat confdefs.h >>conftest.$ac_ext
50544 cat >>conftest.$ac_ext <<_ACEOF
50545 /* end confdefs.h.  */
50546 $ac_includes_default
50547 long longval () { return (long) (sizeof (wchar_t)); }
50548 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50549 #include <stdio.h>
50550 #include <stdlib.h>
50551 int
50552 main ()
50553 {
50554
50555   FILE *f = fopen ("conftest.val", "w");
50556   if (! f)
50557     exit (1);
50558   if (((long) (sizeof (wchar_t))) < 0)
50559     {
50560       long i = longval ();
50561       if (i != ((long) (sizeof (wchar_t))))
50562         exit (1);
50563       fprintf (f, "%ld\n", i);
50564     }
50565   else
50566     {
50567       unsigned long i = ulongval ();
50568       if (i != ((long) (sizeof (wchar_t))))
50569         exit (1);
50570       fprintf (f, "%lu\n", i);
50571     }
50572   exit (ferror (f) || fclose (f) != 0);
50573
50574   ;
50575   return 0;
50576 }
50577 _ACEOF
50578 rm -f conftest$ac_exeext
50579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50580   (eval $ac_link) 2>&5
50581   ac_status=$?
50582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50585   (eval $ac_try) 2>&5
50586   ac_status=$?
50587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50588   (exit $ac_status); }; }; then
50589   ac_cv_sizeof_wchar_t=`cat conftest.val`
50590 else
50591   echo "$as_me: program exited with status $ac_status" >&5
50592 echo "$as_me: failed program was:" >&5
50593 sed 's/^/| /' conftest.$ac_ext >&5
50594
50595 ( exit $ac_status )
50596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50597 See \`config.log' for more details." >&5
50598 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50599 See \`config.log' for more details." >&2;}
50600    { (exit 1); exit 1; }; }
50601 fi
50602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50603 fi
50604 fi
50605 rm -f conftest.val
50606 else
50607   ac_cv_sizeof_wchar_t=0
50608 fi
50609 fi
50610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50611 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50612 cat >>confdefs.h <<_ACEOF
50613 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50614 _ACEOF
50615
50616
50617
50618 if test "$ac_cv_sizeof_int" -lt 4 ; then
50619         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50620 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50621
50622
50623 cat >>confdefs.h <<\_ACEOF
50624 #define LBER_INT_T long
50625 _ACEOF
50626
50627 else
50628
50629 cat >>confdefs.h <<\_ACEOF
50630 #define LBER_INT_T int
50631 _ACEOF
50632
50633 fi
50634
50635
50636 cat >>confdefs.h <<\_ACEOF
50637 #define LBER_LEN_T long
50638 _ACEOF
50639
50640
50641 cat >>confdefs.h <<\_ACEOF
50642 #define LBER_SOCKET_T int
50643 _ACEOF
50644
50645
50646 cat >>confdefs.h <<\_ACEOF
50647 #define LBER_TAG_T long
50648 _ACEOF
50649
50650
50651 echo "$as_me:$LINENO: checking for working memcmp" >&5
50652 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50653 if test "${ac_cv_func_memcmp_working+set}" = set; then
50654   echo $ECHO_N "(cached) $ECHO_C" >&6
50655 else
50656   if test "$cross_compiling" = yes; then
50657   ac_cv_func_memcmp_working=no
50658 else
50659   cat >conftest.$ac_ext <<_ACEOF
50660 /* confdefs.h.  */
50661 _ACEOF
50662 cat confdefs.h >>conftest.$ac_ext
50663 cat >>conftest.$ac_ext <<_ACEOF
50664 /* end confdefs.h.  */
50665 $ac_includes_default
50666 int
50667 main ()
50668 {
50669
50670   /* Some versions of memcmp are not 8-bit clean.  */
50671   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50672   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50673     exit (1);
50674
50675   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50676      or more and with at least one buffer not starting on a 4-byte boundary.
50677      William Lewis provided this test program.   */
50678   {
50679     char foo[21];
50680     char bar[21];
50681     int i;
50682     for (i = 0; i < 4; i++)
50683       {
50684         char *a = foo + i;
50685         char *b = bar + i;
50686         strcpy (a, "--------01111111");
50687         strcpy (b, "--------10000000");
50688         if (memcmp (a, b, 16) >= 0)
50689           exit (1);
50690       }
50691     exit (0);
50692   }
50693
50694   ;
50695   return 0;
50696 }
50697 _ACEOF
50698 rm -f conftest$ac_exeext
50699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50700   (eval $ac_link) 2>&5
50701   ac_status=$?
50702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50705   (eval $ac_try) 2>&5
50706   ac_status=$?
50707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50708   (exit $ac_status); }; }; then
50709   ac_cv_func_memcmp_working=yes
50710 else
50711   echo "$as_me: program exited with status $ac_status" >&5
50712 echo "$as_me: failed program was:" >&5
50713 sed 's/^/| /' conftest.$ac_ext >&5
50714
50715 ( exit $ac_status )
50716 ac_cv_func_memcmp_working=no
50717 fi
50718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50719 fi
50720 fi
50721 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50722 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50723 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50724     "memcmp.$ac_objext"   | \
50725   *" memcmp.$ac_objext"   | \
50726     "memcmp.$ac_objext "* | \
50727   *" memcmp.$ac_objext "* ) ;;
50728   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50729 esac
50730
50731
50732
50733 if test $ac_cv_func_memcmp_working = no ; then
50734
50735 cat >>confdefs.h <<\_ACEOF
50736 #define NEED_MEMCMP_REPLACEMENT 1
50737 _ACEOF
50738
50739 fi
50740
50741
50742 for ac_func in strftime
50743 do
50744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50745 echo "$as_me:$LINENO: checking for $ac_func" >&5
50746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50747 if eval "test \"\${$as_ac_var+set}\" = set"; then
50748   echo $ECHO_N "(cached) $ECHO_C" >&6
50749 else
50750   cat >conftest.$ac_ext <<_ACEOF
50751 /* confdefs.h.  */
50752 _ACEOF
50753 cat confdefs.h >>conftest.$ac_ext
50754 cat >>conftest.$ac_ext <<_ACEOF
50755 /* end confdefs.h.  */
50756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50758 #define $ac_func innocuous_$ac_func
50759
50760 /* System header to define __stub macros and hopefully few prototypes,
50761     which can conflict with char $ac_func (); below.
50762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50763     <limits.h> exists even on freestanding compilers.  */
50764
50765 #ifdef __STDC__
50766 # include <limits.h>
50767 #else
50768 # include <assert.h>
50769 #endif
50770
50771 #undef $ac_func
50772
50773 /* Override any gcc2 internal prototype to avoid an error.  */
50774 #ifdef __cplusplus
50775 extern "C"
50776 {
50777 #endif
50778 /* We use char because int might match the return type of a gcc2
50779    builtin and then its argument prototype would still apply.  */
50780 char $ac_func ();
50781 /* The GNU C library defines this for functions which it implements
50782     to always fail with ENOSYS.  Some functions are actually named
50783     something starting with __ and the normal name is an alias.  */
50784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50785 choke me
50786 #else
50787 char (*f) () = $ac_func;
50788 #endif
50789 #ifdef __cplusplus
50790 }
50791 #endif
50792
50793 int
50794 main ()
50795 {
50796 return f != $ac_func;
50797   ;
50798   return 0;
50799 }
50800 _ACEOF
50801 rm -f conftest.$ac_objext conftest$ac_exeext
50802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50803   (eval $ac_link) 2>conftest.er1
50804   ac_status=$?
50805   grep -v '^ *+' conftest.er1 >conftest.err
50806   rm -f conftest.er1
50807   cat conftest.err >&5
50808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50809   (exit $ac_status); } &&
50810          { ac_try='test -z "$ac_c_werror_flag"
50811                          || test ! -s conftest.err'
50812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50813   (eval $ac_try) 2>&5
50814   ac_status=$?
50815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50816   (exit $ac_status); }; } &&
50817          { ac_try='test -s conftest$ac_exeext'
50818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50819   (eval $ac_try) 2>&5
50820   ac_status=$?
50821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50822   (exit $ac_status); }; }; then
50823   eval "$as_ac_var=yes"
50824 else
50825   echo "$as_me: failed program was:" >&5
50826 sed 's/^/| /' conftest.$ac_ext >&5
50827
50828 eval "$as_ac_var=no"
50829 fi
50830 rm -f conftest.err conftest.$ac_objext \
50831       conftest$ac_exeext conftest.$ac_ext
50832 fi
50833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50835 if test `eval echo '${'$as_ac_var'}'` = yes; then
50836   cat >>confdefs.h <<_ACEOF
50837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50838 _ACEOF
50839
50840 else
50841   # strftime is in -lintl on SCO UNIX.
50842 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50843 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50844 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50845   echo $ECHO_N "(cached) $ECHO_C" >&6
50846 else
50847   ac_check_lib_save_LIBS=$LIBS
50848 LIBS="-lintl  $LIBS"
50849 cat >conftest.$ac_ext <<_ACEOF
50850 /* confdefs.h.  */
50851 _ACEOF
50852 cat confdefs.h >>conftest.$ac_ext
50853 cat >>conftest.$ac_ext <<_ACEOF
50854 /* end confdefs.h.  */
50855
50856 /* Override any gcc2 internal prototype to avoid an error.  */
50857 #ifdef __cplusplus
50858 extern "C"
50859 #endif
50860 /* We use char because int might match the return type of a gcc2
50861    builtin and then its argument prototype would still apply.  */
50862 char strftime ();
50863 int
50864 main ()
50865 {
50866 strftime ();
50867   ;
50868   return 0;
50869 }
50870 _ACEOF
50871 rm -f conftest.$ac_objext conftest$ac_exeext
50872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50873   (eval $ac_link) 2>conftest.er1
50874   ac_status=$?
50875   grep -v '^ *+' conftest.er1 >conftest.err
50876   rm -f conftest.er1
50877   cat conftest.err >&5
50878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50879   (exit $ac_status); } &&
50880          { ac_try='test -z "$ac_c_werror_flag"
50881                          || test ! -s conftest.err'
50882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50883   (eval $ac_try) 2>&5
50884   ac_status=$?
50885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50886   (exit $ac_status); }; } &&
50887          { ac_try='test -s conftest$ac_exeext'
50888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50889   (eval $ac_try) 2>&5
50890   ac_status=$?
50891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50892   (exit $ac_status); }; }; then
50893   ac_cv_lib_intl_strftime=yes
50894 else
50895   echo "$as_me: failed program was:" >&5
50896 sed 's/^/| /' conftest.$ac_ext >&5
50897
50898 ac_cv_lib_intl_strftime=no
50899 fi
50900 rm -f conftest.err conftest.$ac_objext \
50901       conftest$ac_exeext conftest.$ac_ext
50902 LIBS=$ac_check_lib_save_LIBS
50903 fi
50904 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50905 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50906 if test $ac_cv_lib_intl_strftime = yes; then
50907   cat >>confdefs.h <<\_ACEOF
50908 #define HAVE_STRFTIME 1
50909 _ACEOF
50910
50911 LIBS="-lintl $LIBS"
50912 fi
50913
50914 fi
50915 done
50916
50917
50918 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50919 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50920 if test "${ol_cv_func_inet_aton+set}" = set; then
50921   echo $ECHO_N "(cached) $ECHO_C" >&6
50922 else
50923   cat >conftest.$ac_ext <<_ACEOF
50924 /* confdefs.h.  */
50925 _ACEOF
50926 cat confdefs.h >>conftest.$ac_ext
50927 cat >>conftest.$ac_ext <<_ACEOF
50928 /* end confdefs.h.  */
50929
50930 #ifdef HAVE_SYS_TYPES_H
50931 #       include <sys/types.h>
50932 #endif
50933 #ifdef HAVE_SYS_SOCKET_H
50934 #       include <sys/socket.h>
50935 #       ifdef HAVE_SYS_SELECT_H
50936 #               include <sys/select.h>
50937 #       endif
50938 #       include <netinet/in.h>
50939 #       ifdef HAVE_ARPA_INET_H
50940 #               include <arpa/inet.h>
50941 #       endif
50942 #endif
50943
50944 int
50945 main ()
50946 {
50947 struct in_addr in;
50948 int rc = inet_aton( "255.255.255.255", &in );
50949   ;
50950   return 0;
50951 }
50952 _ACEOF
50953 rm -f conftest.$ac_objext conftest$ac_exeext
50954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50955   (eval $ac_link) 2>conftest.er1
50956   ac_status=$?
50957   grep -v '^ *+' conftest.er1 >conftest.err
50958   rm -f conftest.er1
50959   cat conftest.err >&5
50960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50961   (exit $ac_status); } &&
50962          { ac_try='test -z "$ac_c_werror_flag"
50963                          || test ! -s conftest.err'
50964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50965   (eval $ac_try) 2>&5
50966   ac_status=$?
50967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50968   (exit $ac_status); }; } &&
50969          { ac_try='test -s conftest$ac_exeext'
50970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50971   (eval $ac_try) 2>&5
50972   ac_status=$?
50973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50974   (exit $ac_status); }; }; then
50975   ol_cv_func_inet_aton=yes
50976 else
50977   echo "$as_me: failed program was:" >&5
50978 sed 's/^/| /' conftest.$ac_ext >&5
50979
50980 ol_cv_func_inet_aton=no
50981 fi
50982 rm -f conftest.err conftest.$ac_objext \
50983       conftest$ac_exeext conftest.$ac_ext
50984 fi
50985 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50986 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50987   if test $ol_cv_func_inet_aton != no; then
50988
50989 cat >>confdefs.h <<\_ACEOF
50990 #define HAVE_INET_ATON 1
50991 _ACEOF
50992
50993   fi
50994
50995
50996 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50997 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50998 if test "${ac_cv_func__spawnlp+set}" = set; then
50999   echo $ECHO_N "(cached) $ECHO_C" >&6
51000 else
51001   cat >conftest.$ac_ext <<_ACEOF
51002 /* confdefs.h.  */
51003 _ACEOF
51004 cat confdefs.h >>conftest.$ac_ext
51005 cat >>conftest.$ac_ext <<_ACEOF
51006 /* end confdefs.h.  */
51007 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
51008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51009 #define _spawnlp innocuous__spawnlp
51010
51011 /* System header to define __stub macros and hopefully few prototypes,
51012     which can conflict with char _spawnlp (); below.
51013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51014     <limits.h> exists even on freestanding compilers.  */
51015
51016 #ifdef __STDC__
51017 # include <limits.h>
51018 #else
51019 # include <assert.h>
51020 #endif
51021
51022 #undef _spawnlp
51023
51024 /* Override any gcc2 internal prototype to avoid an error.  */
51025 #ifdef __cplusplus
51026 extern "C"
51027 {
51028 #endif
51029 /* We use char because int might match the return type of a gcc2
51030    builtin and then its argument prototype would still apply.  */
51031 char _spawnlp ();
51032 /* The GNU C library defines this for functions which it implements
51033     to always fail with ENOSYS.  Some functions are actually named
51034     something starting with __ and the normal name is an alias.  */
51035 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
51036 choke me
51037 #else
51038 char (*f) () = _spawnlp;
51039 #endif
51040 #ifdef __cplusplus
51041 }
51042 #endif
51043
51044 int
51045 main ()
51046 {
51047 return f != _spawnlp;
51048   ;
51049   return 0;
51050 }
51051 _ACEOF
51052 rm -f conftest.$ac_objext conftest$ac_exeext
51053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51054   (eval $ac_link) 2>conftest.er1
51055   ac_status=$?
51056   grep -v '^ *+' conftest.er1 >conftest.err
51057   rm -f conftest.er1
51058   cat conftest.err >&5
51059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51060   (exit $ac_status); } &&
51061          { ac_try='test -z "$ac_c_werror_flag"
51062                          || test ! -s conftest.err'
51063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51064   (eval $ac_try) 2>&5
51065   ac_status=$?
51066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51067   (exit $ac_status); }; } &&
51068          { ac_try='test -s conftest$ac_exeext'
51069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51070   (eval $ac_try) 2>&5
51071   ac_status=$?
51072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073   (exit $ac_status); }; }; then
51074   ac_cv_func__spawnlp=yes
51075 else
51076   echo "$as_me: failed program was:" >&5
51077 sed 's/^/| /' conftest.$ac_ext >&5
51078
51079 ac_cv_func__spawnlp=no
51080 fi
51081 rm -f conftest.err conftest.$ac_objext \
51082       conftest$ac_exeext conftest.$ac_ext
51083 fi
51084 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51085 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51086 if test $ac_cv_func__spawnlp = yes; then
51087
51088 cat >>confdefs.h <<\_ACEOF
51089 #define HAVE_SPAWNLP 1
51090 _ACEOF
51091
51092 fi
51093
51094
51095 echo "$as_me:$LINENO: checking for _snprintf" >&5
51096 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51097 if test "${ac_cv_func__snprintf+set}" = set; then
51098   echo $ECHO_N "(cached) $ECHO_C" >&6
51099 else
51100   cat >conftest.$ac_ext <<_ACEOF
51101 /* confdefs.h.  */
51102 _ACEOF
51103 cat confdefs.h >>conftest.$ac_ext
51104 cat >>conftest.$ac_ext <<_ACEOF
51105 /* end confdefs.h.  */
51106 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51108 #define _snprintf innocuous__snprintf
51109
51110 /* System header to define __stub macros and hopefully few prototypes,
51111     which can conflict with char _snprintf (); below.
51112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51113     <limits.h> exists even on freestanding compilers.  */
51114
51115 #ifdef __STDC__
51116 # include <limits.h>
51117 #else
51118 # include <assert.h>
51119 #endif
51120
51121 #undef _snprintf
51122
51123 /* Override any gcc2 internal prototype to avoid an error.  */
51124 #ifdef __cplusplus
51125 extern "C"
51126 {
51127 #endif
51128 /* We use char because int might match the return type of a gcc2
51129    builtin and then its argument prototype would still apply.  */
51130 char _snprintf ();
51131 /* The GNU C library defines this for functions which it implements
51132     to always fail with ENOSYS.  Some functions are actually named
51133     something starting with __ and the normal name is an alias.  */
51134 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51135 choke me
51136 #else
51137 char (*f) () = _snprintf;
51138 #endif
51139 #ifdef __cplusplus
51140 }
51141 #endif
51142
51143 int
51144 main ()
51145 {
51146 return f != _snprintf;
51147   ;
51148   return 0;
51149 }
51150 _ACEOF
51151 rm -f conftest.$ac_objext conftest$ac_exeext
51152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51153   (eval $ac_link) 2>conftest.er1
51154   ac_status=$?
51155   grep -v '^ *+' conftest.er1 >conftest.err
51156   rm -f conftest.er1
51157   cat conftest.err >&5
51158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51159   (exit $ac_status); } &&
51160          { ac_try='test -z "$ac_c_werror_flag"
51161                          || test ! -s conftest.err'
51162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51163   (eval $ac_try) 2>&5
51164   ac_status=$?
51165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51166   (exit $ac_status); }; } &&
51167          { ac_try='test -s conftest$ac_exeext'
51168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51169   (eval $ac_try) 2>&5
51170   ac_status=$?
51171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51172   (exit $ac_status); }; }; then
51173   ac_cv_func__snprintf=yes
51174 else
51175   echo "$as_me: failed program was:" >&5
51176 sed 's/^/| /' conftest.$ac_ext >&5
51177
51178 ac_cv_func__snprintf=no
51179 fi
51180 rm -f conftest.err conftest.$ac_objext \
51181       conftest$ac_exeext conftest.$ac_ext
51182 fi
51183 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51184 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51185 if test $ac_cv_func__snprintf = yes; then
51186   ac_cv_func_snprintf=yes
51187
51188 cat >>confdefs.h <<\_ACEOF
51189 #define snprintf _snprintf
51190 _ACEOF
51191
51192
51193 fi
51194
51195
51196 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51197 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51198 if test "${ac_cv_func__vsnprintf+set}" = set; then
51199   echo $ECHO_N "(cached) $ECHO_C" >&6
51200 else
51201   cat >conftest.$ac_ext <<_ACEOF
51202 /* confdefs.h.  */
51203 _ACEOF
51204 cat confdefs.h >>conftest.$ac_ext
51205 cat >>conftest.$ac_ext <<_ACEOF
51206 /* end confdefs.h.  */
51207 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51209 #define _vsnprintf innocuous__vsnprintf
51210
51211 /* System header to define __stub macros and hopefully few prototypes,
51212     which can conflict with char _vsnprintf (); below.
51213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51214     <limits.h> exists even on freestanding compilers.  */
51215
51216 #ifdef __STDC__
51217 # include <limits.h>
51218 #else
51219 # include <assert.h>
51220 #endif
51221
51222 #undef _vsnprintf
51223
51224 /* Override any gcc2 internal prototype to avoid an error.  */
51225 #ifdef __cplusplus
51226 extern "C"
51227 {
51228 #endif
51229 /* We use char because int might match the return type of a gcc2
51230    builtin and then its argument prototype would still apply.  */
51231 char _vsnprintf ();
51232 /* The GNU C library defines this for functions which it implements
51233     to always fail with ENOSYS.  Some functions are actually named
51234     something starting with __ and the normal name is an alias.  */
51235 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51236 choke me
51237 #else
51238 char (*f) () = _vsnprintf;
51239 #endif
51240 #ifdef __cplusplus
51241 }
51242 #endif
51243
51244 int
51245 main ()
51246 {
51247 return f != _vsnprintf;
51248   ;
51249   return 0;
51250 }
51251 _ACEOF
51252 rm -f conftest.$ac_objext conftest$ac_exeext
51253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51254   (eval $ac_link) 2>conftest.er1
51255   ac_status=$?
51256   grep -v '^ *+' conftest.er1 >conftest.err
51257   rm -f conftest.er1
51258   cat conftest.err >&5
51259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51260   (exit $ac_status); } &&
51261          { ac_try='test -z "$ac_c_werror_flag"
51262                          || test ! -s conftest.err'
51263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51264   (eval $ac_try) 2>&5
51265   ac_status=$?
51266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51267   (exit $ac_status); }; } &&
51268          { ac_try='test -s conftest$ac_exeext'
51269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51270   (eval $ac_try) 2>&5
51271   ac_status=$?
51272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51273   (exit $ac_status); }; }; then
51274   ac_cv_func__vsnprintf=yes
51275 else
51276   echo "$as_me: failed program was:" >&5
51277 sed 's/^/| /' conftest.$ac_ext >&5
51278
51279 ac_cv_func__vsnprintf=no
51280 fi
51281 rm -f conftest.err conftest.$ac_objext \
51282       conftest$ac_exeext conftest.$ac_ext
51283 fi
51284 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51285 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51286 if test $ac_cv_func__vsnprintf = yes; then
51287   ac_cv_func_vsnprintf=yes
51288
51289 cat >>confdefs.h <<\_ACEOF
51290 #define vsnprintf _vsnprintf
51291 _ACEOF
51292
51293
51294 fi
51295
51296
51297
51298 for ac_func in vprintf
51299 do
51300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51301 echo "$as_me:$LINENO: checking for $ac_func" >&5
51302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51303 if eval "test \"\${$as_ac_var+set}\" = set"; then
51304   echo $ECHO_N "(cached) $ECHO_C" >&6
51305 else
51306   cat >conftest.$ac_ext <<_ACEOF
51307 /* confdefs.h.  */
51308 _ACEOF
51309 cat confdefs.h >>conftest.$ac_ext
51310 cat >>conftest.$ac_ext <<_ACEOF
51311 /* end confdefs.h.  */
51312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51314 #define $ac_func innocuous_$ac_func
51315
51316 /* System header to define __stub macros and hopefully few prototypes,
51317     which can conflict with char $ac_func (); below.
51318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51319     <limits.h> exists even on freestanding compilers.  */
51320
51321 #ifdef __STDC__
51322 # include <limits.h>
51323 #else
51324 # include <assert.h>
51325 #endif
51326
51327 #undef $ac_func
51328
51329 /* Override any gcc2 internal prototype to avoid an error.  */
51330 #ifdef __cplusplus
51331 extern "C"
51332 {
51333 #endif
51334 /* We use char because int might match the return type of a gcc2
51335    builtin and then its argument prototype would still apply.  */
51336 char $ac_func ();
51337 /* The GNU C library defines this for functions which it implements
51338     to always fail with ENOSYS.  Some functions are actually named
51339     something starting with __ and the normal name is an alias.  */
51340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51341 choke me
51342 #else
51343 char (*f) () = $ac_func;
51344 #endif
51345 #ifdef __cplusplus
51346 }
51347 #endif
51348
51349 int
51350 main ()
51351 {
51352 return f != $ac_func;
51353   ;
51354   return 0;
51355 }
51356 _ACEOF
51357 rm -f conftest.$ac_objext conftest$ac_exeext
51358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51359   (eval $ac_link) 2>conftest.er1
51360   ac_status=$?
51361   grep -v '^ *+' conftest.er1 >conftest.err
51362   rm -f conftest.er1
51363   cat conftest.err >&5
51364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51365   (exit $ac_status); } &&
51366          { ac_try='test -z "$ac_c_werror_flag"
51367                          || test ! -s conftest.err'
51368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51369   (eval $ac_try) 2>&5
51370   ac_status=$?
51371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51372   (exit $ac_status); }; } &&
51373          { ac_try='test -s conftest$ac_exeext'
51374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51375   (eval $ac_try) 2>&5
51376   ac_status=$?
51377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51378   (exit $ac_status); }; }; then
51379   eval "$as_ac_var=yes"
51380 else
51381   echo "$as_me: failed program was:" >&5
51382 sed 's/^/| /' conftest.$ac_ext >&5
51383
51384 eval "$as_ac_var=no"
51385 fi
51386 rm -f conftest.err conftest.$ac_objext \
51387       conftest$ac_exeext conftest.$ac_ext
51388 fi
51389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51391 if test `eval echo '${'$as_ac_var'}'` = yes; then
51392   cat >>confdefs.h <<_ACEOF
51393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51394 _ACEOF
51395
51396 echo "$as_me:$LINENO: checking for _doprnt" >&5
51397 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51398 if test "${ac_cv_func__doprnt+set}" = set; then
51399   echo $ECHO_N "(cached) $ECHO_C" >&6
51400 else
51401   cat >conftest.$ac_ext <<_ACEOF
51402 /* confdefs.h.  */
51403 _ACEOF
51404 cat confdefs.h >>conftest.$ac_ext
51405 cat >>conftest.$ac_ext <<_ACEOF
51406 /* end confdefs.h.  */
51407 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51409 #define _doprnt innocuous__doprnt
51410
51411 /* System header to define __stub macros and hopefully few prototypes,
51412     which can conflict with char _doprnt (); below.
51413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51414     <limits.h> exists even on freestanding compilers.  */
51415
51416 #ifdef __STDC__
51417 # include <limits.h>
51418 #else
51419 # include <assert.h>
51420 #endif
51421
51422 #undef _doprnt
51423
51424 /* Override any gcc2 internal prototype to avoid an error.  */
51425 #ifdef __cplusplus
51426 extern "C"
51427 {
51428 #endif
51429 /* We use char because int might match the return type of a gcc2
51430    builtin and then its argument prototype would still apply.  */
51431 char _doprnt ();
51432 /* The GNU C library defines this for functions which it implements
51433     to always fail with ENOSYS.  Some functions are actually named
51434     something starting with __ and the normal name is an alias.  */
51435 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51436 choke me
51437 #else
51438 char (*f) () = _doprnt;
51439 #endif
51440 #ifdef __cplusplus
51441 }
51442 #endif
51443
51444 int
51445 main ()
51446 {
51447 return f != _doprnt;
51448   ;
51449   return 0;
51450 }
51451 _ACEOF
51452 rm -f conftest.$ac_objext conftest$ac_exeext
51453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51454   (eval $ac_link) 2>conftest.er1
51455   ac_status=$?
51456   grep -v '^ *+' conftest.er1 >conftest.err
51457   rm -f conftest.er1
51458   cat conftest.err >&5
51459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51460   (exit $ac_status); } &&
51461          { ac_try='test -z "$ac_c_werror_flag"
51462                          || test ! -s conftest.err'
51463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51464   (eval $ac_try) 2>&5
51465   ac_status=$?
51466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51467   (exit $ac_status); }; } &&
51468          { ac_try='test -s conftest$ac_exeext'
51469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51470   (eval $ac_try) 2>&5
51471   ac_status=$?
51472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51473   (exit $ac_status); }; }; then
51474   ac_cv_func__doprnt=yes
51475 else
51476   echo "$as_me: failed program was:" >&5
51477 sed 's/^/| /' conftest.$ac_ext >&5
51478
51479 ac_cv_func__doprnt=no
51480 fi
51481 rm -f conftest.err conftest.$ac_objext \
51482       conftest$ac_exeext conftest.$ac_ext
51483 fi
51484 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51485 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51486 if test $ac_cv_func__doprnt = yes; then
51487
51488 cat >>confdefs.h <<\_ACEOF
51489 #define HAVE_DOPRNT 1
51490 _ACEOF
51491
51492 fi
51493
51494 fi
51495 done
51496
51497
51498
51499 if test $ac_cv_func_vprintf = yes ; then
51500
51501
51502 for ac_func in snprintf vsnprintf
51503 do
51504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51505 echo "$as_me:$LINENO: checking for $ac_func" >&5
51506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51507 if eval "test \"\${$as_ac_var+set}\" = set"; then
51508   echo $ECHO_N "(cached) $ECHO_C" >&6
51509 else
51510   cat >conftest.$ac_ext <<_ACEOF
51511 /* confdefs.h.  */
51512 _ACEOF
51513 cat confdefs.h >>conftest.$ac_ext
51514 cat >>conftest.$ac_ext <<_ACEOF
51515 /* end confdefs.h.  */
51516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51518 #define $ac_func innocuous_$ac_func
51519
51520 /* System header to define __stub macros and hopefully few prototypes,
51521     which can conflict with char $ac_func (); below.
51522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51523     <limits.h> exists even on freestanding compilers.  */
51524
51525 #ifdef __STDC__
51526 # include <limits.h>
51527 #else
51528 # include <assert.h>
51529 #endif
51530
51531 #undef $ac_func
51532
51533 /* Override any gcc2 internal prototype to avoid an error.  */
51534 #ifdef __cplusplus
51535 extern "C"
51536 {
51537 #endif
51538 /* We use char because int might match the return type of a gcc2
51539    builtin and then its argument prototype would still apply.  */
51540 char $ac_func ();
51541 /* The GNU C library defines this for functions which it implements
51542     to always fail with ENOSYS.  Some functions are actually named
51543     something starting with __ and the normal name is an alias.  */
51544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51545 choke me
51546 #else
51547 char (*f) () = $ac_func;
51548 #endif
51549 #ifdef __cplusplus
51550 }
51551 #endif
51552
51553 int
51554 main ()
51555 {
51556 return f != $ac_func;
51557   ;
51558   return 0;
51559 }
51560 _ACEOF
51561 rm -f conftest.$ac_objext conftest$ac_exeext
51562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51563   (eval $ac_link) 2>conftest.er1
51564   ac_status=$?
51565   grep -v '^ *+' conftest.er1 >conftest.err
51566   rm -f conftest.er1
51567   cat conftest.err >&5
51568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51569   (exit $ac_status); } &&
51570          { ac_try='test -z "$ac_c_werror_flag"
51571                          || test ! -s conftest.err'
51572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51573   (eval $ac_try) 2>&5
51574   ac_status=$?
51575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51576   (exit $ac_status); }; } &&
51577          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
51583   eval "$as_ac_var=yes"
51584 else
51585   echo "$as_me: failed program was:" >&5
51586 sed 's/^/| /' conftest.$ac_ext >&5
51587
51588 eval "$as_ac_var=no"
51589 fi
51590 rm -f conftest.err conftest.$ac_objext \
51591       conftest$ac_exeext conftest.$ac_ext
51592 fi
51593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51595 if test `eval echo '${'$as_ac_var'}'` = yes; then
51596   cat >>confdefs.h <<_ACEOF
51597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51598 _ACEOF
51599
51600 fi
51601 done
51602
51603 fi
51604
51605
51606
51607
51608
51609
51610
51611
51612
51613
51614
51615
51616
51617
51618
51619
51620
51621
51622
51623
51624
51625
51626
51627
51628
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654
51655
51656
51657
51658 for ac_func in \
51659         bcopy                   \
51660         closesocket             \
51661         chroot                  \
51662         endgrent                \
51663         endpwent                \
51664         fcntl                   \
51665         flock                   \
51666         fstat                   \
51667         getdtablesize   \
51668         getgrgid                \
51669         gethostname             \
51670         getpass                 \
51671         getpassphrase   \
51672         getpwuid                \
51673         getpwnam                \
51674         getspnam                \
51675         gettimeofday    \
51676         initgroups              \
51677         lockf                   \
51678         memcpy                  \
51679         memmove                 \
51680         mkstemp                 \
51681         mktemp                  \
51682         pipe                    \
51683         read                    \
51684         recv                    \
51685         recvfrom                \
51686         setpwfile               \
51687         setgid                  \
51688         setegid                 \
51689         setsid                  \
51690         setuid                  \
51691         seteuid                 \
51692         signal                  \
51693         strdup                  \
51694         strpbrk                 \
51695         strrchr                 \
51696         strsep                  \
51697         strstr                  \
51698         strtol                  \
51699         strtoul                 \
51700         strtoq                  \
51701         strtouq                 \
51702         strtoll                 \
51703         strspn                  \
51704         sysconf                 \
51705         usleep                  \
51706         waitpid                 \
51707         wait4                   \
51708         write                   \
51709         send                    \
51710         sendmsg                 \
51711         sendto                  \
51712
51713 do
51714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51715 echo "$as_me:$LINENO: checking for $ac_func" >&5
51716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51717 if eval "test \"\${$as_ac_var+set}\" = set"; then
51718   echo $ECHO_N "(cached) $ECHO_C" >&6
51719 else
51720   cat >conftest.$ac_ext <<_ACEOF
51721 /* confdefs.h.  */
51722 _ACEOF
51723 cat confdefs.h >>conftest.$ac_ext
51724 cat >>conftest.$ac_ext <<_ACEOF
51725 /* end confdefs.h.  */
51726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51728 #define $ac_func innocuous_$ac_func
51729
51730 /* System header to define __stub macros and hopefully few prototypes,
51731     which can conflict with char $ac_func (); below.
51732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51733     <limits.h> exists even on freestanding compilers.  */
51734
51735 #ifdef __STDC__
51736 # include <limits.h>
51737 #else
51738 # include <assert.h>
51739 #endif
51740
51741 #undef $ac_func
51742
51743 /* Override any gcc2 internal prototype to avoid an error.  */
51744 #ifdef __cplusplus
51745 extern "C"
51746 {
51747 #endif
51748 /* We use char because int might match the return type of a gcc2
51749    builtin and then its argument prototype would still apply.  */
51750 char $ac_func ();
51751 /* The GNU C library defines this for functions which it implements
51752     to always fail with ENOSYS.  Some functions are actually named
51753     something starting with __ and the normal name is an alias.  */
51754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51755 choke me
51756 #else
51757 char (*f) () = $ac_func;
51758 #endif
51759 #ifdef __cplusplus
51760 }
51761 #endif
51762
51763 int
51764 main ()
51765 {
51766 return f != $ac_func;
51767   ;
51768   return 0;
51769 }
51770 _ACEOF
51771 rm -f conftest.$ac_objext conftest$ac_exeext
51772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51773   (eval $ac_link) 2>conftest.er1
51774   ac_status=$?
51775   grep -v '^ *+' conftest.er1 >conftest.err
51776   rm -f conftest.er1
51777   cat conftest.err >&5
51778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51779   (exit $ac_status); } &&
51780          { ac_try='test -z "$ac_c_werror_flag"
51781                          || test ! -s conftest.err'
51782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51783   (eval $ac_try) 2>&5
51784   ac_status=$?
51785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51786   (exit $ac_status); }; } &&
51787          { ac_try='test -s conftest$ac_exeext'
51788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51789   (eval $ac_try) 2>&5
51790   ac_status=$?
51791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51792   (exit $ac_status); }; }; then
51793   eval "$as_ac_var=yes"
51794 else
51795   echo "$as_me: failed program was:" >&5
51796 sed 's/^/| /' conftest.$ac_ext >&5
51797
51798 eval "$as_ac_var=no"
51799 fi
51800 rm -f conftest.err conftest.$ac_objext \
51801       conftest$ac_exeext conftest.$ac_ext
51802 fi
51803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51805 if test `eval echo '${'$as_ac_var'}'` = yes; then
51806   cat >>confdefs.h <<_ACEOF
51807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51808 _ACEOF
51809
51810 fi
51811 done
51812
51813
51814
51815
51816 for ac_func in getopt getpeereid
51817 do
51818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51819 echo "$as_me:$LINENO: checking for $ac_func" >&5
51820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51821 if eval "test \"\${$as_ac_var+set}\" = set"; then
51822   echo $ECHO_N "(cached) $ECHO_C" >&6
51823 else
51824   cat >conftest.$ac_ext <<_ACEOF
51825 /* confdefs.h.  */
51826 _ACEOF
51827 cat confdefs.h >>conftest.$ac_ext
51828 cat >>conftest.$ac_ext <<_ACEOF
51829 /* end confdefs.h.  */
51830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51832 #define $ac_func innocuous_$ac_func
51833
51834 /* System header to define __stub macros and hopefully few prototypes,
51835     which can conflict with char $ac_func (); below.
51836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51837     <limits.h> exists even on freestanding compilers.  */
51838
51839 #ifdef __STDC__
51840 # include <limits.h>
51841 #else
51842 # include <assert.h>
51843 #endif
51844
51845 #undef $ac_func
51846
51847 /* Override any gcc2 internal prototype to avoid an error.  */
51848 #ifdef __cplusplus
51849 extern "C"
51850 {
51851 #endif
51852 /* We use char because int might match the return type of a gcc2
51853    builtin and then its argument prototype would still apply.  */
51854 char $ac_func ();
51855 /* The GNU C library defines this for functions which it implements
51856     to always fail with ENOSYS.  Some functions are actually named
51857     something starting with __ and the normal name is an alias.  */
51858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51859 choke me
51860 #else
51861 char (*f) () = $ac_func;
51862 #endif
51863 #ifdef __cplusplus
51864 }
51865 #endif
51866
51867 int
51868 main ()
51869 {
51870 return f != $ac_func;
51871   ;
51872   return 0;
51873 }
51874 _ACEOF
51875 rm -f conftest.$ac_objext conftest$ac_exeext
51876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51877   (eval $ac_link) 2>conftest.er1
51878   ac_status=$?
51879   grep -v '^ *+' conftest.er1 >conftest.err
51880   rm -f conftest.er1
51881   cat conftest.err >&5
51882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51883   (exit $ac_status); } &&
51884          { ac_try='test -z "$ac_c_werror_flag"
51885                          || test ! -s conftest.err'
51886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51887   (eval $ac_try) 2>&5
51888   ac_status=$?
51889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51890   (exit $ac_status); }; } &&
51891          { ac_try='test -s conftest$ac_exeext'
51892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51893   (eval $ac_try) 2>&5
51894   ac_status=$?
51895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51896   (exit $ac_status); }; }; then
51897   eval "$as_ac_var=yes"
51898 else
51899   echo "$as_me: failed program was:" >&5
51900 sed 's/^/| /' conftest.$ac_ext >&5
51901
51902 eval "$as_ac_var=no"
51903 fi
51904 rm -f conftest.err conftest.$ac_objext \
51905       conftest$ac_exeext conftest.$ac_ext
51906 fi
51907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51909 if test `eval echo '${'$as_ac_var'}'` = yes; then
51910   cat >>confdefs.h <<_ACEOF
51911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51912 _ACEOF
51913
51914 else
51915   case $LIBOBJS in
51916     "$ac_func.$ac_objext"   | \
51917   *" $ac_func.$ac_objext"   | \
51918     "$ac_func.$ac_objext "* | \
51919   *" $ac_func.$ac_objext "* ) ;;
51920   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51921 esac
51922
51923 fi
51924 done
51925
51926
51927
51928 if test "$ac_cv_func_getopt" != yes; then
51929         LIBSRCS="$LIBSRCS getopt.c"
51930 fi
51931 if test "$ac_cv_func_getpeereid" != yes; then
51932         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51933 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51934 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51935   echo $ECHO_N "(cached) $ECHO_C" >&6
51936 else
51937   cat >conftest.$ac_ext <<_ACEOF
51938 /* confdefs.h.  */
51939 _ACEOF
51940 cat confdefs.h >>conftest.$ac_ext
51941 cat >>conftest.$ac_ext <<_ACEOF
51942 /* end confdefs.h.  */
51943 $ac_includes_default
51944 #ifdef HAVE_SYS_SOCKET_H
51945 #include <sys/socket.h>
51946 #endif
51947
51948 int
51949 main ()
51950 {
51951 static struct msghdr ac_aggr;
51952 if (ac_aggr.msg_accrightslen)
51953 return 0;
51954   ;
51955   return 0;
51956 }
51957 _ACEOF
51958 rm -f conftest.$ac_objext
51959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51960   (eval $ac_compile) 2>conftest.er1
51961   ac_status=$?
51962   grep -v '^ *+' conftest.er1 >conftest.err
51963   rm -f conftest.er1
51964   cat conftest.err >&5
51965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966   (exit $ac_status); } &&
51967          { ac_try='test -z "$ac_c_werror_flag"
51968                          || test ! -s conftest.err'
51969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51970   (eval $ac_try) 2>&5
51971   ac_status=$?
51972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51973   (exit $ac_status); }; } &&
51974          { ac_try='test -s conftest.$ac_objext'
51975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51976   (eval $ac_try) 2>&5
51977   ac_status=$?
51978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51979   (exit $ac_status); }; }; then
51980   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51981 else
51982   echo "$as_me: failed program was:" >&5
51983 sed 's/^/| /' conftest.$ac_ext >&5
51984
51985 cat >conftest.$ac_ext <<_ACEOF
51986 /* confdefs.h.  */
51987 _ACEOF
51988 cat confdefs.h >>conftest.$ac_ext
51989 cat >>conftest.$ac_ext <<_ACEOF
51990 /* end confdefs.h.  */
51991 $ac_includes_default
51992 #ifdef HAVE_SYS_SOCKET_H
51993 #include <sys/socket.h>
51994 #endif
51995
51996 int
51997 main ()
51998 {
51999 static struct msghdr ac_aggr;
52000 if (sizeof ac_aggr.msg_accrightslen)
52001 return 0;
52002   ;
52003   return 0;
52004 }
52005 _ACEOF
52006 rm -f conftest.$ac_objext
52007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52008   (eval $ac_compile) 2>conftest.er1
52009   ac_status=$?
52010   grep -v '^ *+' conftest.er1 >conftest.err
52011   rm -f conftest.er1
52012   cat conftest.err >&5
52013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52014   (exit $ac_status); } &&
52015          { ac_try='test -z "$ac_c_werror_flag"
52016                          || test ! -s conftest.err'
52017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52018   (eval $ac_try) 2>&5
52019   ac_status=$?
52020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52021   (exit $ac_status); }; } &&
52022          { ac_try='test -s conftest.$ac_objext'
52023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52024   (eval $ac_try) 2>&5
52025   ac_status=$?
52026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52027   (exit $ac_status); }; }; then
52028   ac_cv_member_struct_msghdr_msg_accrightslen=yes
52029 else
52030   echo "$as_me: failed program was:" >&5
52031 sed 's/^/| /' conftest.$ac_ext >&5
52032
52033 ac_cv_member_struct_msghdr_msg_accrightslen=no
52034 fi
52035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52036 fi
52037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52038 fi
52039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
52040 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
52041 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
52042
52043 cat >>confdefs.h <<_ACEOF
52044 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
52045 _ACEOF
52046
52047
52048 fi
52049
52050         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
52051                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
52052 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
52053 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
52054   echo $ECHO_N "(cached) $ECHO_C" >&6
52055 else
52056   cat >conftest.$ac_ext <<_ACEOF
52057 /* confdefs.h.  */
52058 _ACEOF
52059 cat confdefs.h >>conftest.$ac_ext
52060 cat >>conftest.$ac_ext <<_ACEOF
52061 /* end confdefs.h.  */
52062 $ac_includes_default
52063 #ifdef HAVE_SYS_SOCKET_H
52064 #include <sys/socket.h>
52065 #endif
52066
52067 int
52068 main ()
52069 {
52070 static struct msghdr ac_aggr;
52071 if (ac_aggr.msg_control)
52072 return 0;
52073   ;
52074   return 0;
52075 }
52076 _ACEOF
52077 rm -f conftest.$ac_objext
52078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52079   (eval $ac_compile) 2>conftest.er1
52080   ac_status=$?
52081   grep -v '^ *+' conftest.er1 >conftest.err
52082   rm -f conftest.er1
52083   cat conftest.err >&5
52084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52085   (exit $ac_status); } &&
52086          { ac_try='test -z "$ac_c_werror_flag"
52087                          || test ! -s conftest.err'
52088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52089   (eval $ac_try) 2>&5
52090   ac_status=$?
52091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52092   (exit $ac_status); }; } &&
52093          { ac_try='test -s conftest.$ac_objext'
52094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52095   (eval $ac_try) 2>&5
52096   ac_status=$?
52097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52098   (exit $ac_status); }; }; then
52099   ac_cv_member_struct_msghdr_msg_control=yes
52100 else
52101   echo "$as_me: failed program was:" >&5
52102 sed 's/^/| /' conftest.$ac_ext >&5
52103
52104 cat >conftest.$ac_ext <<_ACEOF
52105 /* confdefs.h.  */
52106 _ACEOF
52107 cat confdefs.h >>conftest.$ac_ext
52108 cat >>conftest.$ac_ext <<_ACEOF
52109 /* end confdefs.h.  */
52110 $ac_includes_default
52111 #ifdef HAVE_SYS_SOCKET_H
52112 #include <sys/socket.h>
52113 #endif
52114
52115 int
52116 main ()
52117 {
52118 static struct msghdr ac_aggr;
52119 if (sizeof ac_aggr.msg_control)
52120 return 0;
52121   ;
52122   return 0;
52123 }
52124 _ACEOF
52125 rm -f conftest.$ac_objext
52126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52127   (eval $ac_compile) 2>conftest.er1
52128   ac_status=$?
52129   grep -v '^ *+' conftest.er1 >conftest.err
52130   rm -f conftest.er1
52131   cat conftest.err >&5
52132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52133   (exit $ac_status); } &&
52134          { ac_try='test -z "$ac_c_werror_flag"
52135                          || test ! -s conftest.err'
52136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52137   (eval $ac_try) 2>&5
52138   ac_status=$?
52139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52140   (exit $ac_status); }; } &&
52141          { ac_try='test -s conftest.$ac_objext'
52142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52143   (eval $ac_try) 2>&5
52144   ac_status=$?
52145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52146   (exit $ac_status); }; }; then
52147   ac_cv_member_struct_msghdr_msg_control=yes
52148 else
52149   echo "$as_me: failed program was:" >&5
52150 sed 's/^/| /' conftest.$ac_ext >&5
52151
52152 ac_cv_member_struct_msghdr_msg_control=no
52153 fi
52154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52155 fi
52156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52157 fi
52158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52159 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52160 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52161
52162 cat >>confdefs.h <<_ACEOF
52163 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52164 _ACEOF
52165
52166
52167 fi
52168
52169         fi
52170         LIBSRCS="$LIBSRCS getpeereid.c"
52171 fi
52172 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52173         if test "$ac_cv_func_snprintf" != yes; then
52174
52175 cat >>confdefs.h <<\_ACEOF
52176 #define snprintf ber_pvt_snprintf
52177 _ACEOF
52178
52179         fi
52180         if test "$ac_cv_func_vsnprintf" != yes; then
52181
52182 cat >>confdefs.h <<\_ACEOF
52183 #define vsnprintf ber_pvt_vsnprintf
52184 _ACEOF
52185
52186         fi
52187 fi
52188
52189
52190 if test "$ol_enable_slapi" != no ; then
52191
52192 for ac_header in ltdl.h
52193 do
52194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52196   echo "$as_me:$LINENO: checking for $ac_header" >&5
52197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52199   echo $ECHO_N "(cached) $ECHO_C" >&6
52200 fi
52201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52203 else
52204   # Is the header compilable?
52205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52207 cat >conftest.$ac_ext <<_ACEOF
52208 /* confdefs.h.  */
52209 _ACEOF
52210 cat confdefs.h >>conftest.$ac_ext
52211 cat >>conftest.$ac_ext <<_ACEOF
52212 /* end confdefs.h.  */
52213 $ac_includes_default
52214 #include <$ac_header>
52215 _ACEOF
52216 rm -f conftest.$ac_objext
52217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52218   (eval $ac_compile) 2>conftest.er1
52219   ac_status=$?
52220   grep -v '^ *+' conftest.er1 >conftest.err
52221   rm -f conftest.er1
52222   cat conftest.err >&5
52223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52224   (exit $ac_status); } &&
52225          { ac_try='test -z "$ac_c_werror_flag"
52226                          || test ! -s conftest.err'
52227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52228   (eval $ac_try) 2>&5
52229   ac_status=$?
52230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52231   (exit $ac_status); }; } &&
52232          { ac_try='test -s conftest.$ac_objext'
52233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52234   (eval $ac_try) 2>&5
52235   ac_status=$?
52236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52237   (exit $ac_status); }; }; then
52238   ac_header_compiler=yes
52239 else
52240   echo "$as_me: failed program was:" >&5
52241 sed 's/^/| /' conftest.$ac_ext >&5
52242
52243 ac_header_compiler=no
52244 fi
52245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52247 echo "${ECHO_T}$ac_header_compiler" >&6
52248
52249 # Is the header present?
52250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52252 cat >conftest.$ac_ext <<_ACEOF
52253 /* confdefs.h.  */
52254 _ACEOF
52255 cat confdefs.h >>conftest.$ac_ext
52256 cat >>conftest.$ac_ext <<_ACEOF
52257 /* end confdefs.h.  */
52258 #include <$ac_header>
52259 _ACEOF
52260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52262   ac_status=$?
52263   grep -v '^ *+' conftest.er1 >conftest.err
52264   rm -f conftest.er1
52265   cat conftest.err >&5
52266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52267   (exit $ac_status); } >/dev/null; then
52268   if test -s conftest.err; then
52269     ac_cpp_err=$ac_c_preproc_warn_flag
52270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52271   else
52272     ac_cpp_err=
52273   fi
52274 else
52275   ac_cpp_err=yes
52276 fi
52277 if test -z "$ac_cpp_err"; then
52278   ac_header_preproc=yes
52279 else
52280   echo "$as_me: failed program was:" >&5
52281 sed 's/^/| /' conftest.$ac_ext >&5
52282
52283   ac_header_preproc=no
52284 fi
52285 rm -f conftest.err conftest.$ac_ext
52286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52287 echo "${ECHO_T}$ac_header_preproc" >&6
52288
52289 # So?  What about this header?
52290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52291   yes:no: )
52292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52296     ac_header_preproc=yes
52297     ;;
52298   no:yes:* )
52299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52311     (
52312       cat <<\_ASBOX
52313 ## ------------------------------------------ ##
52314 ## Report this to the AC_PACKAGE_NAME lists.  ##
52315 ## ------------------------------------------ ##
52316 _ASBOX
52317     ) |
52318       sed "s/^/$as_me: WARNING:     /" >&2
52319     ;;
52320 esac
52321 echo "$as_me:$LINENO: checking for $ac_header" >&5
52322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52324   echo $ECHO_N "(cached) $ECHO_C" >&6
52325 else
52326   eval "$as_ac_Header=\$ac_header_preproc"
52327 fi
52328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52330
52331 fi
52332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52333   cat >>confdefs.h <<_ACEOF
52334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52335 _ACEOF
52336
52337 fi
52338
52339 done
52340
52341
52342         if test $ac_cv_header_ltdl_h != yes ; then
52343                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52344 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52345    { (exit 1); exit 1; }; }
52346         fi
52347         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52348 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52349 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52350   echo $ECHO_N "(cached) $ECHO_C" >&6
52351 else
52352   ac_check_lib_save_LIBS=$LIBS
52353 LIBS="-lltdl  $LIBS"
52354 cat >conftest.$ac_ext <<_ACEOF
52355 /* confdefs.h.  */
52356 _ACEOF
52357 cat confdefs.h >>conftest.$ac_ext
52358 cat >>conftest.$ac_ext <<_ACEOF
52359 /* end confdefs.h.  */
52360
52361 /* Override any gcc2 internal prototype to avoid an error.  */
52362 #ifdef __cplusplus
52363 extern "C"
52364 #endif
52365 /* We use char because int might match the return type of a gcc2
52366    builtin and then its argument prototype would still apply.  */
52367 char lt_dlinit ();
52368 int
52369 main ()
52370 {
52371 lt_dlinit ();
52372   ;
52373   return 0;
52374 }
52375 _ACEOF
52376 rm -f conftest.$ac_objext conftest$ac_exeext
52377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52378   (eval $ac_link) 2>conftest.er1
52379   ac_status=$?
52380   grep -v '^ *+' conftest.er1 >conftest.err
52381   rm -f conftest.er1
52382   cat conftest.err >&5
52383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52384   (exit $ac_status); } &&
52385          { ac_try='test -z "$ac_c_werror_flag"
52386                          || test ! -s conftest.err'
52387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52388   (eval $ac_try) 2>&5
52389   ac_status=$?
52390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52391   (exit $ac_status); }; } &&
52392          { ac_try='test -s conftest$ac_exeext'
52393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52394   (eval $ac_try) 2>&5
52395   ac_status=$?
52396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52397   (exit $ac_status); }; }; then
52398   ac_cv_lib_ltdl_lt_dlinit=yes
52399 else
52400   echo "$as_me: failed program was:" >&5
52401 sed 's/^/| /' conftest.$ac_ext >&5
52402
52403 ac_cv_lib_ltdl_lt_dlinit=no
52404 fi
52405 rm -f conftest.err conftest.$ac_objext \
52406       conftest$ac_exeext conftest.$ac_ext
52407 LIBS=$ac_check_lib_save_LIBS
52408 fi
52409 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52410 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52411 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52412
52413                 SLAPI_LIBS=-lltdl
52414                 LIBSLAPI=libslapi.a
52415                 LIBSLAPITOOLS=../libslapi.a
52416
52417 cat >>confdefs.h <<\_ACEOF
52418 #define HAVE_LIBLTDL 1
52419 _ACEOF
52420
52421
52422 else
52423   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52424 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52425    { (exit 1); exit 1; }; }
52426 fi
52427
52428
52429
52430 cat >>confdefs.h <<\_ACEOF
52431 #define LDAP_SLAPI 1
52432 _ACEOF
52433
52434 fi
52435
52436 if test "$ol_enable_debug" != no ; then
52437
52438 cat >>confdefs.h <<\_ACEOF
52439 #define LDAP_DEBUG 1
52440 _ACEOF
52441
52442 fi
52443 if test "$ol_enable_syslog" = yes ; then
52444
52445 cat >>confdefs.h <<\_ACEOF
52446 #define LDAP_SYSLOG 1
52447 _ACEOF
52448
52449 fi
52450 if test "$ol_link_kbind" != no ; then
52451
52452 cat >>confdefs.h <<\_ACEOF
52453 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52454 _ACEOF
52455
52456 fi
52457 if test "$ol_enable_proctitle" != no ; then
52458
52459 cat >>confdefs.h <<\_ACEOF
52460 #define LDAP_PROCTITLE 1
52461 _ACEOF
52462
52463 fi
52464 if test "$ol_enable_referrals" != no ; then
52465
52466 cat >>confdefs.h <<\_ACEOF
52467 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52468 _ACEOF
52469
52470 fi
52471 if test "$ol_enable_local" != no; then
52472
52473 cat >>confdefs.h <<\_ACEOF
52474 #define LDAP_PF_LOCAL 1
52475 _ACEOF
52476
52477 fi
52478 if test "$ol_link_ipv6" != no; then
52479
52480 cat >>confdefs.h <<\_ACEOF
52481 #define LDAP_PF_INET6 1
52482 _ACEOF
52483
52484 fi
52485 if test "$ol_enable_cleartext" != no ; then
52486
52487 cat >>confdefs.h <<\_ACEOF
52488 #define SLAPD_CLEARTEXT 1
52489 _ACEOF
52490
52491 fi
52492 if test "$ol_enable_crypt" != no ; then
52493
52494 cat >>confdefs.h <<\_ACEOF
52495 #define SLAPD_CRYPT 1
52496 _ACEOF
52497
52498 fi
52499 if test "$ol_link_spasswd" != no ; then
52500
52501 cat >>confdefs.h <<\_ACEOF
52502 #define SLAPD_SPASSWD 1
52503 _ACEOF
52504
52505 fi
52506 if test "$ol_enable_multimaster" != no ; then
52507
52508 cat >>confdefs.h <<\_ACEOF
52509 #define SLAPD_MULTIMASTER 1
52510 _ACEOF
52511
52512 fi
52513 if test "$ol_enable_rlookups" != no ; then
52514
52515 cat >>confdefs.h <<\_ACEOF
52516 #define SLAPD_RLOOKUPS 1
52517 _ACEOF
52518
52519 fi
52520 if test "$ol_enable_aci" != no ; then
52521
52522 cat >>confdefs.h <<\_ACEOF
52523 #define SLAPD_ACI_ENABLED 1
52524 _ACEOF
52525
52526 fi
52527
52528 if test "$ol_link_modules" != no ; then
52529
52530 cat >>confdefs.h <<\_ACEOF
52531 #define SLAPD_MODULES 1
52532 _ACEOF
52533
52534         BUILD_SLAPD=yes
52535         SLAPD_MODULES_LDFLAGS="-dlopen self"
52536 fi
52537
52538
52539 cat >>confdefs.h <<\_ACEOF
52540 #define SLAPD_MOD_STATIC 1
52541 _ACEOF
52542
52543
52544 cat >>confdefs.h <<\_ACEOF
52545 #define SLAPD_MOD_DYNAMIC 2
52546 _ACEOF
52547
52548
52549 if test "$ol_enable_bdb" != no ; then
52550         BUILD_SLAPD=yes
52551         BUILD_BDB=$ol_enable_bdb
52552         if test "$ol_enable_bdb" = mod ; then
52553                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52554                 MFLAG=SLAPD_MOD_DYNAMIC
52555         else
52556                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52557                 MFLAG=SLAPD_MOD_STATIC
52558         fi
52559
52560 cat >>confdefs.h <<_ACEOF
52561 #define SLAPD_BDB $MFLAG
52562 _ACEOF
52563
52564 fi
52565
52566 if test "$ol_enable_dnssrv" != no ; then
52567         BUILD_SLAPD=yes
52568         BUILD_DNSSRV=$ol_enable_dnssrv
52569         if test "$ol_enable_dnssrv" = mod ; then
52570                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52571                 MFLAG=SLAPD_MOD_DYNAMIC
52572         else
52573                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52574                 MFLAG=SLAPD_MOD_STATIC
52575         fi
52576
52577 cat >>confdefs.h <<_ACEOF
52578 #define SLAPD_DNSSRV $MFLAG
52579 _ACEOF
52580
52581 fi
52582
52583 if test "$ol_enable_hdb" != no ; then
52584         BUILD_SLAPD=yes
52585         BUILD_HDB=$ol_enable_hdb
52586         if test "$ol_enable_hdb" = mod ; then
52587                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52588                 MFLAG=SLAPD_MOD_DYNAMIC
52589         else
52590                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52591                 MFLAG=SLAPD_MOD_STATIC
52592         fi
52593
52594 cat >>confdefs.h <<_ACEOF
52595 #define SLAPD_HDB $MFLAG
52596 _ACEOF
52597
52598 fi
52599
52600 if test "$ol_enable_ldap" != no ; then
52601         BUILD_SLAPD=yes
52602         BUILD_LDAP=$ol_enable_ldap
52603         if test "$ol_enable_ldap" = mod ; then
52604                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52605                 MFLAG=SLAPD_MOD_DYNAMIC
52606         else
52607                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52608                 MFLAG=SLAPD_MOD_STATIC
52609         fi
52610
52611 cat >>confdefs.h <<_ACEOF
52612 #define SLAPD_LDAP $MFLAG
52613 _ACEOF
52614
52615 fi
52616
52617 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52618         BUILD_SLAPD=yes
52619         BUILD_LDBM=$ol_enable_ldbm
52620         if test "$ol_enable_ldbm" = mod ; then
52621                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52622                 MFLAG=SLAPD_MOD_DYNAMIC
52623         else
52624                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52625                 MFLAG=SLAPD_MOD_STATIC
52626         fi
52627
52628 cat >>confdefs.h <<_ACEOF
52629 #define SLAPD_LDBM $MFLAG
52630 _ACEOF
52631
52632 fi
52633
52634 if test "$ol_enable_meta" != no ; then
52635         BUILD_SLAPD=yes
52636         BUILD_META=$ol_enable_meta
52637         BUILD_REWRITE=yes
52638         if test "$ol_enable_meta" = mod ; then
52639                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52640                 MFLAG=SLAPD_MOD_DYNAMIC
52641         else
52642                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52643                 MFLAG=SLAPD_MOD_STATIC
52644         fi
52645
52646 cat >>confdefs.h <<_ACEOF
52647 #define SLAPD_META $MFLAG
52648 _ACEOF
52649
52650 fi
52651
52652 if test "$ol_enable_monitor" != no ; then
52653         BUILD_SLAPD=yes
52654         BUILD_MONITOR=$ol_enable_monitor
52655         if test "$ol_enable_monitor" = mod ; then
52656                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52657                 MFLAG=SLAPD_MOD_DYNAMIC
52658         else
52659                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52660                 MFLAG=SLAPD_MOD_STATIC
52661         fi
52662
52663 cat >>confdefs.h <<_ACEOF
52664 #define SLAPD_MONITOR $MFLAG
52665 _ACEOF
52666
52667 fi
52668
52669 if test "$ol_enable_null" != no ; then
52670         BUILD_SLAPD=yes
52671         BUILD_NULL=$ol_enable_null
52672         if test "$ol_enable_null" = mod ; then
52673                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52674                 MFLAG=SLAPD_MOD_DYNAMIC
52675         else
52676                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52677                 MFLAG=SLAPD_MOD_STATIC
52678         fi
52679
52680 cat >>confdefs.h <<_ACEOF
52681 #define SLAPD_NULL $MFLAG
52682 _ACEOF
52683
52684 fi
52685
52686 if test "$ol_enable_passwd" != no ; then
52687         BUILD_SLAPD=yes
52688         BUILD_PASSWD=$ol_enable_passwd
52689         if test "$ol_enable_passwd" = mod ; then
52690                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52691                 MFLAG=SLAPD_MOD_DYNAMIC
52692         else
52693                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52694                 MFLAG=SLAPD_MOD_STATIC
52695         fi
52696
52697 cat >>confdefs.h <<_ACEOF
52698 #define SLAPD_PASSWD $MFLAG
52699 _ACEOF
52700
52701 fi
52702
52703 if test "$ol_link_perl" != no ; then
52704         BUILD_SLAPD=yes
52705         BUILD_PERL=$ol_enable_perl
52706         if test "$ol_enable_perl" = mod ; then
52707                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52708                 MFLAG=SLAPD_MOD_DYNAMIC
52709         else
52710                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52711                 MFLAG=SLAPD_MOD_STATIC
52712         fi
52713
52714 cat >>confdefs.h <<_ACEOF
52715 #define SLAPD_PERL $MFLAG
52716 _ACEOF
52717
52718 fi
52719
52720 if test "$ol_enable_relay" != no ; then
52721         BUILD_SLAPD=yes
52722         BUILD_RELAY=$ol_enable_relay
52723         if test "$ol_enable_relay" = mod ; then
52724                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52725                 MFLAG=SLAPD_MOD_DYNAMIC
52726         else
52727                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52728                 MFLAG=SLAPD_MOD_STATIC
52729         fi
52730
52731 cat >>confdefs.h <<_ACEOF
52732 #define SLAPD_RELAY $MFLAG
52733 _ACEOF
52734
52735 fi
52736
52737 if test "$ol_enable_shell" != no ; then
52738         if test "$ol_link_threads" != no ; then
52739                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52740 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52741         fi
52742         BUILD_SLAPD=yes
52743         BUILD_SHELL=$ol_enable_shell
52744         if test "$ol_enable_shell" = mod ; then
52745                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52746                 MFLAG=SLAPD_MOD_DYNAMIC
52747         else
52748                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52749                 MFLAG=SLAPD_MOD_STATIC
52750         fi
52751
52752 cat >>confdefs.h <<_ACEOF
52753 #define SLAPD_SHELL $MFLAG
52754 _ACEOF
52755
52756 fi
52757
52758 if test "$ol_link_sql" != no ; then
52759         BUILD_SLAPD=yes
52760         BUILD_SQL=$ol_enable_sql
52761         if test "$ol_enable_sql" = mod; then
52762                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52763                 MFLAG=SLAPD_MOD_DYNAMIC
52764         else
52765                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52766                 MFLAG=SLAPD_MOD_STATIC
52767         fi
52768
52769 cat >>confdefs.h <<_ACEOF
52770 #define SLAPD_SQL $MFLAG
52771 _ACEOF
52772
52773 fi
52774
52775 if test "$ol_enable_accesslog" != no ; then
52776         BUILD_ACCESSLOG=$ol_enable_accesslog
52777         if test "$ol_enable_accesslog" = mod ; then
52778                 MFLAG=SLAPD_MOD_DYNAMIC
52779                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52780         else
52781                 MFLAG=SLAPD_MOD_STATIC
52782                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52783         fi
52784
52785 cat >>confdefs.h <<_ACEOF
52786 #define SLAPD_OVER_ACCESSLOG $MFLAG
52787 _ACEOF
52788
52789 fi
52790
52791 if test "$ol_enable_denyop" != no ; then
52792         BUILD_DENYOP=$ol_enable_denyop
52793         if test "$ol_enable_denyop" = mod ; then
52794                 MFLAG=SLAPD_MOD_DYNAMIC
52795                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52796         else
52797                 MFLAG=SLAPD_MOD_STATIC
52798                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52799         fi
52800
52801 cat >>confdefs.h <<_ACEOF
52802 #define SLAPD_OVER_DENYOP $MFLAG
52803 _ACEOF
52804
52805 fi
52806
52807 if test "$ol_enable_dyngroup" != no ; then
52808         BUILD_DYNGROUP=$ol_enable_dyngroup
52809         if test "$ol_enable_dyngroup" = mod ; then
52810                 MFLAG=SLAPD_MOD_DYNAMIC
52811                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52812         else
52813                 MFLAG=SLAPD_MOD_STATIC
52814                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52815         fi
52816
52817 cat >>confdefs.h <<_ACEOF
52818 #define SLAPD_OVER_DYNGROUP $MFLAG
52819 _ACEOF
52820
52821 fi
52822
52823 if test "$ol_enable_dynlist" != no ; then
52824         BUILD_DYNLIST=$ol_enable_dynlist
52825         if test "$ol_enable_dynlist" = mod ; then
52826                 MFLAG=SLAPD_MOD_DYNAMIC
52827                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52828         else
52829                 MFLAG=SLAPD_MOD_STATIC
52830                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52831         fi
52832
52833 cat >>confdefs.h <<_ACEOF
52834 #define SLAPD_OVER_DYNLIST $MFLAG
52835 _ACEOF
52836
52837 fi
52838
52839 if test "$ol_enable_glue" != no ; then
52840         BUILD_GLUE=$ol_enable_glue
52841         if test "$ol_enable_glue" = mod ; then
52842                 MFLAG=SLAPD_MOD_DYNAMIC
52843                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52844         else
52845                 MFLAG=SLAPD_MOD_STATIC
52846                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52847         fi
52848
52849 cat >>confdefs.h <<_ACEOF
52850 #define SLAPD_OVER_GLUE $MFLAG
52851 _ACEOF
52852
52853 fi
52854
52855 if test "$ol_enable_lastmod" != no ; then
52856         BUILD_LASTMOD=$ol_enable_lastmod
52857         if test "$ol_enable_lastmod" = mod ; then
52858                 MFLAG=SLAPD_MOD_DYNAMIC
52859                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52860         else
52861                 MFLAG=SLAPD_MOD_STATIC
52862                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52863         fi
52864
52865 cat >>confdefs.h <<_ACEOF
52866 #define SLAPD_OVER_LASTMOD $MFLAG
52867 _ACEOF
52868
52869 fi
52870
52871 if test "$ol_enable_ppolicy" != no ; then
52872         BUILD_PPOLICY=$ol_enable_ppolicy
52873         if test "$ol_enable_ppolicy" = mod ; then
52874                 MFLAG=SLAPD_MOD_DYNAMIC
52875                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52876         else
52877                 MFLAG=SLAPD_MOD_STATIC
52878                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52879         fi
52880
52881 cat >>confdefs.h <<_ACEOF
52882 #define SLAPD_OVER_PPOLICY $MFLAG
52883 _ACEOF
52884
52885 fi
52886
52887 if test "$ol_enable_proxycache" != no ; then
52888         BUILD_PROXYCACHE=$ol_enable_proxycache
52889         if test "$ol_enable_proxycache" = mod ; then
52890                 MFLAG=SLAPD_MOD_DYNAMIC
52891                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52892         else
52893                 MFLAG=SLAPD_MOD_STATIC
52894                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52895         fi
52896
52897 cat >>confdefs.h <<_ACEOF
52898 #define SLAPD_OVER_PROXYCACHE $MFLAG
52899 _ACEOF
52900
52901 fi
52902
52903 if test "$ol_enable_refint" != no ; then
52904         BUILD_REFINT=$ol_enable_refint
52905         if test "$ol_enable_refint" = mod ; then
52906                 MFLAG=SLAPD_MOD_DYNAMIC
52907                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52908         else
52909                 MFLAG=SLAPD_MOD_STATIC
52910                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52911         fi
52912
52913 cat >>confdefs.h <<_ACEOF
52914 #define SLAPD_OVER_REFINT $MFLAG
52915 _ACEOF
52916
52917 fi
52918
52919 if test "$ol_enable_retcode" != no ; then
52920         BUILD_RETCODE=$ol_enable_retcode
52921         if test "$ol_enable_retcode" = mod ; then
52922                 MFLAG=SLAPD_MOD_DYNAMIC
52923                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52924         else
52925                 MFLAG=SLAPD_MOD_STATIC
52926                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52927         fi
52928
52929 cat >>confdefs.h <<_ACEOF
52930 #define SLAPD_OVER_RETCODE $MFLAG
52931 _ACEOF
52932
52933 fi
52934
52935 if test "$ol_enable_rwm" != no ; then
52936         BUILD_REWRITE=yes
52937         BUILD_RWM=$ol_enable_rwm
52938         if test "$ol_enable_rwm" = mod ; then
52939                 MFLAG=SLAPD_MOD_DYNAMIC
52940                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52941         else
52942                 MFLAG=SLAPD_MOD_STATIC
52943                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52944         fi
52945
52946 cat >>confdefs.h <<_ACEOF
52947 #define SLAPD_OVER_RWM $MFLAG
52948 _ACEOF
52949
52950 fi
52951
52952 if test "$ol_enable_syncprov" != no ; then
52953         BUILD_SYNCPROV=$ol_enable_syncprov
52954         if test "$ol_enable_syncprov" = mod ; then
52955                 MFLAG=SLAPD_MOD_DYNAMIC
52956                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52957         else
52958                 MFLAG=SLAPD_MOD_STATIC
52959                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52960         fi
52961
52962 cat >>confdefs.h <<_ACEOF
52963 #define SLAPD_OVER_SYNCPROV $MFLAG
52964 _ACEOF
52965
52966 fi
52967
52968 if test "$ol_enable_translucent" != no ; then
52969         BUILD_TRANSLUCENT=$ol_enable_translucent
52970         if test "$ol_enable_translucent" = mod ; then
52971                 MFLAG=SLAPD_MOD_DYNAMIC
52972                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52973         else
52974                 MFLAG=SLAPD_MOD_STATIC
52975                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52976         fi
52977
52978 cat >>confdefs.h <<_ACEOF
52979 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52980 _ACEOF
52981
52982 fi
52983
52984 if test "$ol_enable_unique" != no ; then
52985         BUILD_UNIQUE=$ol_enable_unique
52986         if test "$ol_enable_unique" = mod ; then
52987                 MFLAG=SLAPD_MOD_DYNAMIC
52988                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52989         else
52990                 MFLAG=SLAPD_MOD_STATIC
52991                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52992         fi
52993
52994 cat >>confdefs.h <<_ACEOF
52995 #define SLAPD_OVER_UNIQUE $MFLAG
52996 _ACEOF
52997
52998 fi
52999
53000 if test "$ol_enable_valsort" != no ; then
53001         BUILD_VALSORT=$ol_enable_valsort
53002         if test "$ol_enable_valsort" = mod ; then
53003                 MFLAG=SLAPD_MOD_DYNAMIC
53004                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
53005         else
53006                 MFLAG=SLAPD_MOD_STATIC
53007                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
53008         fi
53009
53010 cat >>confdefs.h <<_ACEOF
53011 #define SLAPD_OVER_VALSORT $MFLAG
53012 _ACEOF
53013
53014 fi
53015
53016 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
53017         $BUILD_SLAPD = yes ; then
53018         BUILD_SLURPD=yes
53019 fi
53020
53021 if test "$ol_enable_rewrite" != no ; then
53022
53023 cat >>confdefs.h <<\_ACEOF
53024 #define ENABLE_REWRITE 1
53025 _ACEOF
53026
53027         BUILD_REWRITE=yes
53028 fi
53029
53030 if test "$ol_enable_slapi" != no ; then
53031
53032 cat >>confdefs.h <<\_ACEOF
53033 #define ENABLE_SLAPI 1
53034 _ACEOF
53035
53036         BUILD_SLAPI=yes
53037         SLAPD_SLAPI_DEPEND=libslapi.a
53038 fi
53039
53040
53041
53042 if test "$ac_cv_mingw32" = yes ; then
53043         PLAT=NT
53044         SLAPD_MODULES_LDFLAGS=
53045 else
53046         PLAT=UNIX
53047 fi
53048
53049
53050
53051
53052
53053
53054
53055
53056
53057
53058
53059
53060
53061
53062
53063
53064
53065
53066
53067
53068
53069
53070
53071
53072
53073
53074
53075
53076
53077
53078
53079
53080
53081
53082
53083
53084
53085
53086
53087
53088
53089
53090
53091
53092
53093
53094
53095
53096
53097
53098
53099
53100
53101
53102
53103
53104
53105
53106
53107
53108
53109
53110
53111
53112
53113
53114
53115
53116
53117
53118
53119
53120
53121
53122
53123
53124
53125
53126
53127
53128 # Check whether --with-xxinstall or --without-xxinstall was given.
53129 if test "${with_xxinstall+set}" = set; then
53130   withval="$with_xxinstall"
53131
53132 fi;
53133
53134
53135                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
53136
53137
53138           ac_config_commands="$ac_config_commands default"
53139
53140
53141
53142 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53143 # Let make expand exec_prefix.
53144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53145
53146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53148 # trailing colons and then remove the whole line if VPATH becomes empty
53149 # (actually we leave an empty line to preserve line numbers).
53150 if test "x$srcdir" = x.; then
53151   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53152 s/:*\$(srcdir):*/:/;
53153 s/:*\${srcdir}:*/:/;
53154 s/:*@srcdir@:*/:/;
53155 s/^\([^=]*=[     ]*\):*/\1/;
53156 s/:*$//;
53157 s/^[^=]*=[       ]*$//;
53158 }'
53159 fi
53160
53161 DEFS=-DHAVE_CONFIG_H
53162
53163 ac_libobjs=
53164 ac_ltlibobjs=
53165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53166   # 1. Remove the extension, and $U if already installed.
53167   ac_i=`echo "$ac_i" |
53168          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53169   # 2. Add them.
53170   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53171   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53172 done
53173 LIBOBJS=$ac_libobjs
53174
53175 LTLIBOBJS=$ac_ltlibobjs
53176
53177
53178 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53179   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53180 Usually this means the macro was only invoked conditionally." >&5
53181 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53182 Usually this means the macro was only invoked conditionally." >&2;}
53183    { (exit 1); exit 1; }; }
53184 fi
53185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53186   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53187 Usually this means the macro was only invoked conditionally." >&5
53188 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53189 Usually this means the macro was only invoked conditionally." >&2;}
53190    { (exit 1); exit 1; }; }
53191 fi
53192 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53193   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53194 Usually this means the macro was only invoked conditionally." >&5
53195 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53196 Usually this means the macro was only invoked conditionally." >&2;}
53197    { (exit 1); exit 1; }; }
53198 fi
53199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53200   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53201 Usually this means the macro was only invoked conditionally." >&5
53202 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53203 Usually this means the macro was only invoked conditionally." >&2;}
53204    { (exit 1); exit 1; }; }
53205 fi
53206
53207 : ${CONFIG_STATUS=./config.status}
53208 ac_clean_files_save=$ac_clean_files
53209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53210 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53211 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53212 cat >$CONFIG_STATUS <<_ACEOF
53213 #! $SHELL
53214 # Generated by $as_me.
53215 # Run this file to recreate the current configuration.
53216 # Compiler output produced by configure, useful for debugging
53217 # configure, is in config.log if it exists.
53218
53219 debug=false
53220 ac_cs_recheck=false
53221 ac_cs_silent=false
53222 SHELL=\${CONFIG_SHELL-$SHELL}
53223 _ACEOF
53224
53225 cat >>$CONFIG_STATUS <<\_ACEOF
53226 ## --------------------- ##
53227 ## M4sh Initialization.  ##
53228 ## --------------------- ##
53229
53230 # Be Bourne compatible
53231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53232   emulate sh
53233   NULLCMD=:
53234   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53235   # is contrary to our usage.  Disable this feature.
53236   alias -g '${1+"$@"}'='"$@"'
53237 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53238   set -o posix
53239 fi
53240 DUALCASE=1; export DUALCASE # for MKS sh
53241
53242 # Support unset when possible.
53243 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53244   as_unset=unset
53245 else
53246   as_unset=false
53247 fi
53248
53249
53250 # Work around bugs in pre-3.0 UWIN ksh.
53251 $as_unset ENV MAIL MAILPATH
53252 PS1='$ '
53253 PS2='> '
53254 PS4='+ '
53255
53256 # NLS nuisances.
53257 for as_var in \
53258   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53259   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53260   LC_TELEPHONE LC_TIME
53261 do
53262   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53263     eval $as_var=C; export $as_var
53264   else
53265     $as_unset $as_var
53266   fi
53267 done
53268
53269 # Required to use basename.
53270 if expr a : '\(a\)' >/dev/null 2>&1; then
53271   as_expr=expr
53272 else
53273   as_expr=false
53274 fi
53275
53276 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53277   as_basename=basename
53278 else
53279   as_basename=false
53280 fi
53281
53282
53283 # Name of the executable.
53284 as_me=`$as_basename "$0" ||
53285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53286          X"$0" : 'X\(//\)$' \| \
53287          X"$0" : 'X\(/\)$' \| \
53288          .     : '\(.\)' 2>/dev/null ||
53289 echo X/"$0" |
53290     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53291           /^X\/\(\/\/\)$/{ s//\1/; q; }
53292           /^X\/\(\/\).*/{ s//\1/; q; }
53293           s/.*/./; q'`
53294
53295
53296 # PATH needs CR, and LINENO needs CR and PATH.
53297 # Avoid depending upon Character Ranges.
53298 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53299 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53300 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53301 as_cr_digits='0123456789'
53302 as_cr_alnum=$as_cr_Letters$as_cr_digits
53303
53304 # The user is always right.
53305 if test "${PATH_SEPARATOR+set}" != set; then
53306   echo "#! /bin/sh" >conf$$.sh
53307   echo  "exit 0"   >>conf$$.sh
53308   chmod +x conf$$.sh
53309   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53310     PATH_SEPARATOR=';'
53311   else
53312     PATH_SEPARATOR=:
53313   fi
53314   rm -f conf$$.sh
53315 fi
53316
53317
53318   as_lineno_1=$LINENO
53319   as_lineno_2=$LINENO
53320   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53321   test "x$as_lineno_1" != "x$as_lineno_2" &&
53322   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53323   # Find who we are.  Look in the path if we contain no path at all
53324   # relative or not.
53325   case $0 in
53326     *[\\/]* ) as_myself=$0 ;;
53327     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53328 for as_dir in $PATH
53329 do
53330   IFS=$as_save_IFS
53331   test -z "$as_dir" && as_dir=.
53332   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53333 done
53334
53335        ;;
53336   esac
53337   # We did not find ourselves, most probably we were run as `sh COMMAND'
53338   # in which case we are not to be found in the path.
53339   if test "x$as_myself" = x; then
53340     as_myself=$0
53341   fi
53342   if test ! -f "$as_myself"; then
53343     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53344 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53345    { (exit 1); exit 1; }; }
53346   fi
53347   case $CONFIG_SHELL in
53348   '')
53349     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53350 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53351 do
53352   IFS=$as_save_IFS
53353   test -z "$as_dir" && as_dir=.
53354   for as_base in sh bash ksh sh5; do
53355          case $as_dir in
53356          /*)
53357            if ("$as_dir/$as_base" -c '
53358   as_lineno_1=$LINENO
53359   as_lineno_2=$LINENO
53360   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53361   test "x$as_lineno_1" != "x$as_lineno_2" &&
53362   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53363              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53364              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53365              CONFIG_SHELL=$as_dir/$as_base
53366              export CONFIG_SHELL
53367              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53368            fi;;
53369          esac
53370        done
53371 done
53372 ;;
53373   esac
53374
53375   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53376   # uniformly replaced by the line number.  The first 'sed' inserts a
53377   # line-number line before each line; the second 'sed' does the real
53378   # work.  The second script uses 'N' to pair each line-number line
53379   # with the numbered line, and appends trailing '-' during
53380   # substitution so that $LINENO is not a special case at line end.
53381   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53382   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53383   sed '=' <$as_myself |
53384     sed '
53385       N
53386       s,$,-,
53387       : loop
53388       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53389       t loop
53390       s,-$,,
53391       s,^['$as_cr_digits']*\n,,
53392     ' >$as_me.lineno &&
53393   chmod +x $as_me.lineno ||
53394     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53395 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53396    { (exit 1); exit 1; }; }
53397
53398   # Don't try to exec as it changes $[0], causing all sort of problems
53399   # (the dirname of $[0] is not the place where we might find the
53400   # original and so on.  Autoconf is especially sensible to this).
53401   . ./$as_me.lineno
53402   # Exit status is that of the last command.
53403   exit
53404 }
53405
53406
53407 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53408   *c*,-n*) ECHO_N= ECHO_C='
53409 ' ECHO_T='      ' ;;
53410   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53411   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53412 esac
53413
53414 if expr a : '\(a\)' >/dev/null 2>&1; then
53415   as_expr=expr
53416 else
53417   as_expr=false
53418 fi
53419
53420 rm -f conf$$ conf$$.exe conf$$.file
53421 echo >conf$$.file
53422 if ln -s conf$$.file conf$$ 2>/dev/null; then
53423   # We could just check for DJGPP; but this test a) works b) is more generic
53424   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53425   if test -f conf$$.exe; then
53426     # Don't use ln at all; we don't have any links
53427     as_ln_s='cp -p'
53428   else
53429     as_ln_s='ln -s'
53430   fi
53431 elif ln conf$$.file conf$$ 2>/dev/null; then
53432   as_ln_s=ln
53433 else
53434   as_ln_s='cp -p'
53435 fi
53436 rm -f conf$$ conf$$.exe conf$$.file
53437
53438 if mkdir -p . 2>/dev/null; then
53439   as_mkdir_p=:
53440 else
53441   test -d ./-p && rmdir ./-p
53442   as_mkdir_p=false
53443 fi
53444
53445 as_executable_p="test -f"
53446
53447 # Sed expression to map a string onto a valid CPP name.
53448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53449
53450 # Sed expression to map a string onto a valid variable name.
53451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53452
53453
53454 # IFS
53455 # We need space, tab and new line, in precisely that order.
53456 as_nl='
53457 '
53458 IFS="   $as_nl"
53459
53460 # CDPATH.
53461 $as_unset CDPATH
53462
53463 exec 6>&1
53464
53465 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53466 # report actual input values of CONFIG_FILES etc. instead of their
53467 # values after options handling.  Logging --version etc. is OK.
53468 exec 5>>config.log
53469 {
53470   echo
53471   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53472 ## Running $as_me. ##
53473 _ASBOX
53474 } >&5
53475 cat >&5 <<_CSEOF
53476
53477 This file was extended by $as_me, which was
53478 generated by GNU Autoconf 2.59.  Invocation command line was
53479
53480   CONFIG_FILES    = $CONFIG_FILES
53481   CONFIG_HEADERS  = $CONFIG_HEADERS
53482   CONFIG_LINKS    = $CONFIG_LINKS
53483   CONFIG_COMMANDS = $CONFIG_COMMANDS
53484   $ $0 $@
53485
53486 _CSEOF
53487 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53488 echo >&5
53489 _ACEOF
53490
53491 # Files that config.status was made for.
53492 if test -n "$ac_config_files"; then
53493   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53494 fi
53495
53496 if test -n "$ac_config_headers"; then
53497   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53498 fi
53499
53500 if test -n "$ac_config_links"; then
53501   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53502 fi
53503
53504 if test -n "$ac_config_commands"; then
53505   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53506 fi
53507
53508 cat >>$CONFIG_STATUS <<\_ACEOF
53509
53510 ac_cs_usage="\
53511 \`$as_me' instantiates files from templates according to the
53512 current configuration.
53513
53514 Usage: $0 [OPTIONS] [FILE]...
53515
53516   -h, --help       print this help, then exit
53517   -V, --version    print version number, then exit
53518   -q, --quiet      do not print progress messages
53519   -d, --debug      don't remove temporary files
53520       --recheck    update $as_me by reconfiguring in the same conditions
53521   --file=FILE[:TEMPLATE]
53522                    instantiate the configuration file FILE
53523   --header=FILE[:TEMPLATE]
53524                    instantiate the configuration header FILE
53525
53526 Configuration files:
53527 $config_files
53528
53529 Configuration headers:
53530 $config_headers
53531
53532 Configuration commands:
53533 $config_commands
53534
53535 Report bugs to <bug-autoconf@gnu.org>."
53536 _ACEOF
53537
53538 cat >>$CONFIG_STATUS <<_ACEOF
53539 ac_cs_version="\\
53540 config.status
53541 configured by $0, generated by GNU Autoconf 2.59,
53542   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53543
53544 Copyright (C) 2003 Free Software Foundation, Inc.
53545 This config.status script is free software; the Free Software Foundation
53546 gives unlimited permission to copy, distribute and modify it."
53547 srcdir=$srcdir
53548 INSTALL="$INSTALL"
53549 _ACEOF
53550
53551 cat >>$CONFIG_STATUS <<\_ACEOF
53552 # If no file are specified by the user, then we need to provide default
53553 # value.  By we need to know if files were specified by the user.
53554 ac_need_defaults=:
53555 while test $# != 0
53556 do
53557   case $1 in
53558   --*=*)
53559     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53560     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53561     ac_shift=:
53562     ;;
53563   -*)
53564     ac_option=$1
53565     ac_optarg=$2
53566     ac_shift=shift
53567     ;;
53568   *) # This is not an option, so the user has probably given explicit
53569      # arguments.
53570      ac_option=$1
53571      ac_need_defaults=false;;
53572   esac
53573
53574   case $ac_option in
53575   # Handling of the options.
53576 _ACEOF
53577 cat >>$CONFIG_STATUS <<\_ACEOF
53578   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53579     ac_cs_recheck=: ;;
53580   --version | --vers* | -V )
53581     echo "$ac_cs_version"; exit 0 ;;
53582   --he | --h)
53583     # Conflict between --help and --header
53584     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53585 Try \`$0 --help' for more information." >&5
53586 echo "$as_me: error: ambiguous option: $1
53587 Try \`$0 --help' for more information." >&2;}
53588    { (exit 1); exit 1; }; };;
53589   --help | --hel | -h )
53590     echo "$ac_cs_usage"; exit 0 ;;
53591   --debug | --d* | -d )
53592     debug=: ;;
53593   --file | --fil | --fi | --f )
53594     $ac_shift
53595     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53596     ac_need_defaults=false;;
53597   --header | --heade | --head | --hea )
53598     $ac_shift
53599     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53600     ac_need_defaults=false;;
53601   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53602   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53603     ac_cs_silent=: ;;
53604
53605   # This is an error.
53606   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53607 Try \`$0 --help' for more information." >&5
53608 echo "$as_me: error: unrecognized option: $1
53609 Try \`$0 --help' for more information." >&2;}
53610    { (exit 1); exit 1; }; } ;;
53611
53612   *) ac_config_targets="$ac_config_targets $1" ;;
53613
53614   esac
53615   shift
53616 done
53617
53618 ac_configure_extra_args=
53619
53620 if $ac_cs_silent; then
53621   exec 6>/dev/null
53622   ac_configure_extra_args="$ac_configure_extra_args --silent"
53623 fi
53624
53625 _ACEOF
53626 cat >>$CONFIG_STATUS <<_ACEOF
53627 if \$ac_cs_recheck; then
53628   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53629   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53630 fi
53631
53632 _ACEOF
53633
53634 cat >>$CONFIG_STATUS <<_ACEOF
53635 #
53636 # INIT-COMMANDS section.
53637 #
53638
53639 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53640 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53641
53642 _ACEOF
53643
53644
53645
53646 cat >>$CONFIG_STATUS <<\_ACEOF
53647 for ac_config_target in $ac_config_targets
53648 do
53649   case "$ac_config_target" in
53650   # Handling of arguments.
53651   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53652   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53653   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53654   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53655   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53656   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53657   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53658   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53659   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53660   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53661   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53662   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53663   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53664   "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" ;;
53665   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53666   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53667   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53668   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53669   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53670   "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" ;;
53671   "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" ;;
53672   "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" ;;
53673   "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" ;;
53674   "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" ;;
53675   "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" ;;
53676   "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" ;;
53677   "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" ;;
53678   "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" ;;
53679   "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" ;;
53680   "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" ;;
53681   "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" ;;
53682   "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" ;;
53683   "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" ;;
53684   "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" ;;
53685   "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" ;;
53686   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53687   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53688   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53689   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53690   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53691   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53692   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53693   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53694   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53695   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53696   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53697 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53698    { (exit 1); exit 1; }; };;
53699   esac
53700 done
53701
53702 # If the user did not use the arguments to specify the items to instantiate,
53703 # then the envvar interface is used.  Set only those that are not.
53704 # We use the long form for the default assignment because of an extremely
53705 # bizarre bug on SunOS 4.1.3.
53706 if $ac_need_defaults; then
53707   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53708   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53709   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53710 fi
53711
53712 # Have a temporary directory for convenience.  Make it in the build tree
53713 # simply because there is no reason to put it here, and in addition,
53714 # creating and moving files from /tmp can sometimes cause problems.
53715 # Create a temporary directory, and hook for its removal unless debugging.
53716 $debug ||
53717 {
53718   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53719   trap '{ (exit 1); exit 1; }' 1 2 13 15
53720 }
53721
53722 # Create a (secure) tmp directory for tmp files.
53723
53724 {
53725   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53726   test -n "$tmp" && test -d "$tmp"
53727 }  ||
53728 {
53729   tmp=./confstat$$-$RANDOM
53730   (umask 077 && mkdir $tmp)
53731 } ||
53732 {
53733    echo "$me: cannot create a temporary directory in ." >&2
53734    { (exit 1); exit 1; }
53735 }
53736
53737 _ACEOF
53738
53739 cat >>$CONFIG_STATUS <<_ACEOF
53740
53741 #
53742 # CONFIG_FILES section.
53743 #
53744
53745 # No need to generate the scripts if there are no CONFIG_FILES.
53746 # This happens for instance when ./config.status config.h
53747 if test -n "\$CONFIG_FILES"; then
53748   # Protect against being on the right side of a sed subst in config.status.
53749   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53750    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53751 s,@SHELL@,$SHELL,;t t
53752 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53753 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53754 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53755 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53756 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53757 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53758 s,@exec_prefix@,$exec_prefix,;t t
53759 s,@prefix@,$prefix,;t t
53760 s,@program_transform_name@,$program_transform_name,;t t
53761 s,@bindir@,$bindir,;t t
53762 s,@sbindir@,$sbindir,;t t
53763 s,@libexecdir@,$libexecdir,;t t
53764 s,@datadir@,$datadir,;t t
53765 s,@sysconfdir@,$sysconfdir,;t t
53766 s,@sharedstatedir@,$sharedstatedir,;t t
53767 s,@localstatedir@,$localstatedir,;t t
53768 s,@libdir@,$libdir,;t t
53769 s,@includedir@,$includedir,;t t
53770 s,@oldincludedir@,$oldincludedir,;t t
53771 s,@infodir@,$infodir,;t t
53772 s,@mandir@,$mandir,;t t
53773 s,@build_alias@,$build_alias,;t t
53774 s,@host_alias@,$host_alias,;t t
53775 s,@target_alias@,$target_alias,;t t
53776 s,@DEFS@,$DEFS,;t t
53777 s,@ECHO_C@,$ECHO_C,;t t
53778 s,@ECHO_N@,$ECHO_N,;t t
53779 s,@ECHO_T@,$ECHO_T,;t t
53780 s,@LIBS@,$LIBS,;t t
53781 s,@build@,$build,;t t
53782 s,@build_cpu@,$build_cpu,;t t
53783 s,@build_vendor@,$build_vendor,;t t
53784 s,@build_os@,$build_os,;t t
53785 s,@host@,$host,;t t
53786 s,@host_cpu@,$host_cpu,;t t
53787 s,@host_vendor@,$host_vendor,;t t
53788 s,@host_os@,$host_os,;t t
53789 s,@target@,$target,;t t
53790 s,@target_cpu@,$target_cpu,;t t
53791 s,@target_vendor@,$target_vendor,;t t
53792 s,@target_os@,$target_os,;t t
53793 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53794 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53795 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53796 s,@CYGPATH_W@,$CYGPATH_W,;t t
53797 s,@PACKAGE@,$PACKAGE,;t t
53798 s,@VERSION@,$VERSION,;t t
53799 s,@ACLOCAL@,$ACLOCAL,;t t
53800 s,@AUTOCONF@,$AUTOCONF,;t t
53801 s,@AUTOMAKE@,$AUTOMAKE,;t t
53802 s,@AUTOHEADER@,$AUTOHEADER,;t t
53803 s,@MAKEINFO@,$MAKEINFO,;t t
53804 s,@install_sh@,$install_sh,;t t
53805 s,@STRIP@,$STRIP,;t t
53806 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53807 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53808 s,@mkdir_p@,$mkdir_p,;t t
53809 s,@AWK@,$AWK,;t t
53810 s,@SET_MAKE@,$SET_MAKE,;t t
53811 s,@am__leading_dot@,$am__leading_dot,;t t
53812 s,@AMTAR@,$AMTAR,;t t
53813 s,@am__tar@,$am__tar,;t t
53814 s,@am__untar@,$am__untar,;t t
53815 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53816 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53817 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53818 s,@top_builddir@,$top_builddir,;t t
53819 s,@ldap_subdir@,$ldap_subdir,;t t
53820 s,@CC@,$CC,;t t
53821 s,@AR@,$AR,;t t
53822 s,@CFLAGS@,$CFLAGS,;t t
53823 s,@LDFLAGS@,$LDFLAGS,;t t
53824 s,@CPPFLAGS@,$CPPFLAGS,;t t
53825 s,@ac_ct_CC@,$ac_ct_CC,;t t
53826 s,@EXEEXT@,$EXEEXT,;t t
53827 s,@OBJEXT@,$OBJEXT,;t t
53828 s,@DEPDIR@,$DEPDIR,;t t
53829 s,@am__include@,$am__include,;t t
53830 s,@am__quote@,$am__quote,;t t
53831 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53832 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53833 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53834 s,@CCDEPMODE@,$CCDEPMODE,;t t
53835 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53836 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53837 s,@EGREP@,$EGREP,;t t
53838 s,@LN_S@,$LN_S,;t t
53839 s,@ECHO@,$ECHO,;t t
53840 s,@ac_ct_AR@,$ac_ct_AR,;t t
53841 s,@RANLIB@,$RANLIB,;t t
53842 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53843 s,@DLLTOOL@,$DLLTOOL,;t t
53844 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53845 s,@AS@,$AS,;t t
53846 s,@ac_ct_AS@,$ac_ct_AS,;t t
53847 s,@OBJDUMP@,$OBJDUMP,;t t
53848 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53849 s,@CPP@,$CPP,;t t
53850 s,@CXX@,$CXX,;t t
53851 s,@CXXFLAGS@,$CXXFLAGS,;t t
53852 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53853 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53854 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53855 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53856 s,@CXXCPP@,$CXXCPP,;t t
53857 s,@F77@,$F77,;t t
53858 s,@FFLAGS@,$FFLAGS,;t t
53859 s,@ac_ct_F77@,$ac_ct_F77,;t t
53860 s,@LIBTOOL@,$LIBTOOL,;t t
53861 s,@PERLBIN@,$PERLBIN,;t t
53862 s,@OL_MKDEP@,$OL_MKDEP,;t t
53863 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53864 s,@LTSTATIC@,$LTSTATIC,;t t
53865 s,@LIBOBJS@,$LIBOBJS,;t t
53866 s,@LIBSRCS@,$LIBSRCS,;t t
53867 s,@PLAT@,$PLAT,;t t
53868 s,@WITH_SASL@,$WITH_SASL,;t t
53869 s,@WITH_TLS@,$WITH_TLS,;t t
53870 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53871 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53872 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53873 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53874 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53875 s,@BUILD_BDB@,$BUILD_BDB,;t t
53876 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53877 s,@BUILD_HDB@,$BUILD_HDB,;t t
53878 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53879 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53880 s,@BUILD_META@,$BUILD_META,;t t
53881 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53882 s,@BUILD_NULL@,$BUILD_NULL,;t t
53883 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53884 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53885 s,@BUILD_PERL@,$BUILD_PERL,;t t
53886 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53887 s,@BUILD_SQL@,$BUILD_SQL,;t t
53888 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53889 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53890 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53891 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53892 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53893 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53894 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53895 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53896 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53897 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53898 s,@BUILD_RWM@,$BUILD_RWM,;t t
53899 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53900 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53901 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53902 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
53903 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53904 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53905 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53906 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53907 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53908 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53909 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53910 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53911 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53912 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53913 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53914 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53915 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53916 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53917 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53918 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53919 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53920 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53921 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53922 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53923 s,@SASL_LIBS@,$SASL_LIBS,;t t
53924 s,@TLS_LIBS@,$TLS_LIBS,;t t
53925 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53926 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53927 s,@LIBSLAPI@,$LIBSLAPI,;t t
53928 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53929 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53930 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53931 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53932 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53933 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53934 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53936 CEOF
53937
53938 _ACEOF
53939
53940   cat >>$CONFIG_STATUS <<\_ACEOF
53941   # Split the substitutions into bite-sized pieces for seds with
53942   # small command number limits, like on Digital OSF/1 and HP-UX.
53943   ac_max_sed_lines=48
53944   ac_sed_frag=1 # Number of current file.
53945   ac_beg=1 # First line for current file.
53946   ac_end=$ac_max_sed_lines # Line after last line for current file.
53947   ac_more_lines=:
53948   ac_sed_cmds=
53949   while $ac_more_lines; do
53950     if test $ac_beg -gt 1; then
53951       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53952     else
53953       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53954     fi
53955     if test ! -s $tmp/subs.frag; then
53956       ac_more_lines=false
53957     else
53958       # The purpose of the label and of the branching condition is to
53959       # speed up the sed processing (if there are no `@' at all, there
53960       # is no need to browse any of the substitutions).
53961       # These are the two extra sed commands mentioned above.
53962       (echo ':t
53963   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53964       if test -z "$ac_sed_cmds"; then
53965         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53966       else
53967         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53968       fi
53969       ac_sed_frag=`expr $ac_sed_frag + 1`
53970       ac_beg=$ac_end
53971       ac_end=`expr $ac_end + $ac_max_sed_lines`
53972     fi
53973   done
53974   if test -z "$ac_sed_cmds"; then
53975     ac_sed_cmds=cat
53976   fi
53977 fi # test -n "$CONFIG_FILES"
53978
53979 _ACEOF
53980 cat >>$CONFIG_STATUS <<\_ACEOF
53981 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53982   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53983   case $ac_file in
53984   - | *:- | *:-:* ) # input from stdin
53985         cat >$tmp/stdin
53986         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53987         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53988   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53989         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53990   * )   ac_file_in=$ac_file.in ;;
53991   esac
53992
53993   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53994   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53996          X"$ac_file" : 'X\(//\)[^/]' \| \
53997          X"$ac_file" : 'X\(//\)$' \| \
53998          X"$ac_file" : 'X\(/\)' \| \
53999          .     : '\(.\)' 2>/dev/null ||
54000 echo X"$ac_file" |
54001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54003           /^X\(\/\/\)$/{ s//\1/; q; }
54004           /^X\(\/\).*/{ s//\1/; q; }
54005           s/.*/./; q'`
54006   { if $as_mkdir_p; then
54007     mkdir -p "$ac_dir"
54008   else
54009     as_dir="$ac_dir"
54010     as_dirs=
54011     while test ! -d "$as_dir"; do
54012       as_dirs="$as_dir $as_dirs"
54013       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54015          X"$as_dir" : 'X\(//\)[^/]' \| \
54016          X"$as_dir" : 'X\(//\)$' \| \
54017          X"$as_dir" : 'X\(/\)' \| \
54018          .     : '\(.\)' 2>/dev/null ||
54019 echo X"$as_dir" |
54020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54021           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54022           /^X\(\/\/\)$/{ s//\1/; q; }
54023           /^X\(\/\).*/{ s//\1/; q; }
54024           s/.*/./; q'`
54025     done
54026     test ! -n "$as_dirs" || mkdir $as_dirs
54027   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54029    { (exit 1); exit 1; }; }; }
54030
54031   ac_builddir=.
54032
54033 if test "$ac_dir" != .; then
54034   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54035   # A "../" for each directory in $ac_dir_suffix.
54036   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54037 else
54038   ac_dir_suffix= ac_top_builddir=
54039 fi
54040
54041 case $srcdir in
54042   .)  # No --srcdir option.  We are building in place.
54043     ac_srcdir=.
54044     if test -z "$ac_top_builddir"; then
54045        ac_top_srcdir=.
54046     else
54047        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54048     fi ;;
54049   [\\/]* | ?:[\\/]* )  # Absolute path.
54050     ac_srcdir=$srcdir$ac_dir_suffix;
54051     ac_top_srcdir=$srcdir ;;
54052   *) # Relative path.
54053     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54054     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54055 esac
54056
54057 # Do not use `cd foo && pwd` to compute absolute paths, because
54058 # the directories may not exist.
54059 case `pwd` in
54060 .) ac_abs_builddir="$ac_dir";;
54061 *)
54062   case "$ac_dir" in
54063   .) ac_abs_builddir=`pwd`;;
54064   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54065   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54066   esac;;
54067 esac
54068 case $ac_abs_builddir in
54069 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54070 *)
54071   case ${ac_top_builddir}. in
54072   .) ac_abs_top_builddir=$ac_abs_builddir;;
54073   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54074   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54075   esac;;
54076 esac
54077 case $ac_abs_builddir in
54078 .) ac_abs_srcdir=$ac_srcdir;;
54079 *)
54080   case $ac_srcdir in
54081   .) ac_abs_srcdir=$ac_abs_builddir;;
54082   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54083   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54084   esac;;
54085 esac
54086 case $ac_abs_builddir in
54087 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54088 *)
54089   case $ac_top_srcdir in
54090   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54091   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54092   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54093   esac;;
54094 esac
54095
54096
54097   case $INSTALL in
54098   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54099   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54100   esac
54101
54102   if test x"$ac_file" != x-; then
54103     { echo "$as_me:$LINENO: creating $ac_file" >&5
54104 echo "$as_me: creating $ac_file" >&6;}
54105     rm -f "$ac_file"
54106   fi
54107   # Let's still pretend it is `configure' which instantiates (i.e., don't
54108   # use $as_me), people would be surprised to read:
54109   #    /* config.h.  Generated by config.status.  */
54110   if test x"$ac_file" = x-; then
54111     configure_input=
54112   else
54113     configure_input="$ac_file.  "
54114   fi
54115   configure_input=$configure_input"Generated from `echo $ac_file_in |
54116                                      sed 's,.*/,,'` by configure."
54117
54118   # First look for the input files in the build tree, otherwise in the
54119   # src tree.
54120   ac_file_inputs=`IFS=:
54121     for f in $ac_file_in; do
54122       case $f in
54123       -) echo $tmp/stdin ;;
54124       [\\/$]*)
54125          # Absolute (can't be DOS-style, as IFS=:)
54126          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54127 echo "$as_me: error: cannot find input file: $f" >&2;}
54128    { (exit 1); exit 1; }; }
54129          echo "$f";;
54130       *) # Relative
54131          if test -f "$f"; then
54132            # Build tree
54133            echo "$f"
54134          elif test -f "$srcdir/$f"; then
54135            # Source tree
54136            echo "$srcdir/$f"
54137          else
54138            # /dev/null tree
54139            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54140 echo "$as_me: error: cannot find input file: $f" >&2;}
54141    { (exit 1); exit 1; }; }
54142          fi;;
54143       esac
54144     done` || { (exit 1); exit 1; }
54145 _ACEOF
54146 cat >>$CONFIG_STATUS <<_ACEOF
54147   sed "$ac_vpsub
54148 $extrasub
54149 _ACEOF
54150 cat >>$CONFIG_STATUS <<\_ACEOF
54151 :t
54152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54153 s,@configure_input@,$configure_input,;t t
54154 s,@srcdir@,$ac_srcdir,;t t
54155 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54156 s,@top_srcdir@,$ac_top_srcdir,;t t
54157 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54158 s,@builddir@,$ac_builddir,;t t
54159 s,@abs_builddir@,$ac_abs_builddir,;t t
54160 s,@top_builddir@,$ac_top_builddir,;t t
54161 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54162 s,@INSTALL@,$ac_INSTALL,;t t
54163 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54164   rm -f $tmp/stdin
54165   if test x"$ac_file" != x-; then
54166     mv $tmp/out $ac_file
54167   else
54168     cat $tmp/out
54169     rm -f $tmp/out
54170   fi
54171
54172 done
54173 _ACEOF
54174 cat >>$CONFIG_STATUS <<\_ACEOF
54175
54176 #
54177 # CONFIG_HEADER section.
54178 #
54179
54180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54182 #
54183 # ac_d sets the value in "#define NAME VALUE" lines.
54184 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54185 ac_dB='[         ].*$,\1#\2'
54186 ac_dC=' '
54187 ac_dD=',;t'
54188 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54189 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54190 ac_uB='$,\1#\2define\3'
54191 ac_uC=' '
54192 ac_uD=',;t'
54193
54194 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54195   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54196   case $ac_file in
54197   - | *:- | *:-:* ) # input from stdin
54198         cat >$tmp/stdin
54199         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54200         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54201   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54202         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54203   * )   ac_file_in=$ac_file.in ;;
54204   esac
54205
54206   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54207 echo "$as_me: creating $ac_file" >&6;}
54208
54209   # First look for the input files in the build tree, otherwise in the
54210   # src tree.
54211   ac_file_inputs=`IFS=:
54212     for f in $ac_file_in; do
54213       case $f in
54214       -) echo $tmp/stdin ;;
54215       [\\/$]*)
54216          # Absolute (can't be DOS-style, as IFS=:)
54217          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54218 echo "$as_me: error: cannot find input file: $f" >&2;}
54219    { (exit 1); exit 1; }; }
54220          # Do quote $f, to prevent DOS paths from being IFS'd.
54221          echo "$f";;
54222       *) # Relative
54223          if test -f "$f"; then
54224            # Build tree
54225            echo "$f"
54226          elif test -f "$srcdir/$f"; then
54227            # Source tree
54228            echo "$srcdir/$f"
54229          else
54230            # /dev/null tree
54231            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54232 echo "$as_me: error: cannot find input file: $f" >&2;}
54233    { (exit 1); exit 1; }; }
54234          fi;;
54235       esac
54236     done` || { (exit 1); exit 1; }
54237   # Remove the trailing spaces.
54238   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54239
54240 _ACEOF
54241
54242 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54243 # `conftest.undefs', that substitutes the proper values into
54244 # config.h.in to produce config.h.  The first handles `#define'
54245 # templates, and the second `#undef' templates.
54246 # And first: Protect against being on the right side of a sed subst in
54247 # config.status.  Protect against being in an unquoted here document
54248 # in config.status.
54249 rm -f conftest.defines conftest.undefs
54250 # Using a here document instead of a string reduces the quoting nightmare.
54251 # Putting comments in sed scripts is not portable.
54252 #
54253 # `end' is used to avoid that the second main sed command (meant for
54254 # 0-ary CPP macros) applies to n-ary macro definitions.
54255 # See the Autoconf documentation for `clear'.
54256 cat >confdef2sed.sed <<\_ACEOF
54257 s/[\\&,]/\\&/g
54258 s,[\\$`],\\&,g
54259 t clear
54260 : clear
54261 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54262 t end
54263 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54264 : end
54265 _ACEOF
54266 # If some macros were called several times there might be several times
54267 # the same #defines, which is useless.  Nevertheless, we may not want to
54268 # sort them, since we want the *last* AC-DEFINE to be honored.
54269 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54270 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54271 rm -f confdef2sed.sed
54272
54273 # This sed command replaces #undef with comments.  This is necessary, for
54274 # example, in the case of _POSIX_SOURCE, which is predefined and required
54275 # on some systems where configure will not decide to define it.
54276 cat >>conftest.undefs <<\_ACEOF
54277 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54278 _ACEOF
54279
54280 # Break up conftest.defines because some shells have a limit on the size
54281 # of here documents, and old seds have small limits too (100 cmds).
54282 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54283 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54284 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54285 echo '  :' >>$CONFIG_STATUS
54286 rm -f conftest.tail
54287 while grep . conftest.defines >/dev/null
54288 do
54289   # Write a limited-size here document to $tmp/defines.sed.
54290   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54291   # Speed up: don't consider the non `#define' lines.
54292   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54293   # Work around the forget-to-reset-the-flag bug.
54294   echo 't clr' >>$CONFIG_STATUS
54295   echo ': clr' >>$CONFIG_STATUS
54296   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54297   echo 'CEOF
54298   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54299   rm -f $tmp/in
54300   mv $tmp/out $tmp/in
54301 ' >>$CONFIG_STATUS
54302   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54303   rm -f conftest.defines
54304   mv conftest.tail conftest.defines
54305 done
54306 rm -f conftest.defines
54307 echo '  fi # grep' >>$CONFIG_STATUS
54308 echo >>$CONFIG_STATUS
54309
54310 # Break up conftest.undefs because some shells have a limit on the size
54311 # of here documents, and old seds have small limits too (100 cmds).
54312 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54313 rm -f conftest.tail
54314 while grep . conftest.undefs >/dev/null
54315 do
54316   # Write a limited-size here document to $tmp/undefs.sed.
54317   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54318   # Speed up: don't consider the non `#undef'
54319   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54320   # Work around the forget-to-reset-the-flag bug.
54321   echo 't clr' >>$CONFIG_STATUS
54322   echo ': clr' >>$CONFIG_STATUS
54323   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54324   echo 'CEOF
54325   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54326   rm -f $tmp/in
54327   mv $tmp/out $tmp/in
54328 ' >>$CONFIG_STATUS
54329   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54330   rm -f conftest.undefs
54331   mv conftest.tail conftest.undefs
54332 done
54333 rm -f conftest.undefs
54334
54335 cat >>$CONFIG_STATUS <<\_ACEOF
54336   # Let's still pretend it is `configure' which instantiates (i.e., don't
54337   # use $as_me), people would be surprised to read:
54338   #    /* config.h.  Generated by config.status.  */
54339   if test x"$ac_file" = x-; then
54340     echo "/* Generated by configure.  */" >$tmp/config.h
54341   else
54342     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54343   fi
54344   cat $tmp/in >>$tmp/config.h
54345   rm -f $tmp/in
54346   if test x"$ac_file" != x-; then
54347     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54348       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54349 echo "$as_me: $ac_file is unchanged" >&6;}
54350     else
54351       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54353          X"$ac_file" : 'X\(//\)[^/]' \| \
54354          X"$ac_file" : 'X\(//\)$' \| \
54355          X"$ac_file" : 'X\(/\)' \| \
54356          .     : '\(.\)' 2>/dev/null ||
54357 echo X"$ac_file" |
54358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54359           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54360           /^X\(\/\/\)$/{ s//\1/; q; }
54361           /^X\(\/\).*/{ s//\1/; q; }
54362           s/.*/./; q'`
54363       { if $as_mkdir_p; then
54364     mkdir -p "$ac_dir"
54365   else
54366     as_dir="$ac_dir"
54367     as_dirs=
54368     while test ! -d "$as_dir"; do
54369       as_dirs="$as_dir $as_dirs"
54370       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54372          X"$as_dir" : 'X\(//\)[^/]' \| \
54373          X"$as_dir" : 'X\(//\)$' \| \
54374          X"$as_dir" : 'X\(/\)' \| \
54375          .     : '\(.\)' 2>/dev/null ||
54376 echo X"$as_dir" |
54377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54379           /^X\(\/\/\)$/{ s//\1/; q; }
54380           /^X\(\/\).*/{ s//\1/; q; }
54381           s/.*/./; q'`
54382     done
54383     test ! -n "$as_dirs" || mkdir $as_dirs
54384   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54385 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54386    { (exit 1); exit 1; }; }; }
54387
54388       rm -f $ac_file
54389       mv $tmp/config.h $ac_file
54390     fi
54391   else
54392     cat $tmp/config.h
54393     rm -f $tmp/config.h
54394   fi
54395 # Compute $ac_file's index in $config_headers.
54396 _am_stamp_count=1
54397 for _am_header in $config_headers :; do
54398   case $_am_header in
54399     $ac_file | $ac_file:* )
54400       break ;;
54401     * )
54402       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54403   esac
54404 done
54405 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54406 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54407          X$ac_file : 'X\(//\)[^/]' \| \
54408          X$ac_file : 'X\(//\)$' \| \
54409          X$ac_file : 'X\(/\)' \| \
54410          .     : '\(.\)' 2>/dev/null ||
54411 echo X$ac_file |
54412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54414           /^X\(\/\/\)$/{ s//\1/; q; }
54415           /^X\(\/\).*/{ s//\1/; q; }
54416           s/.*/./; q'`/stamp-h$_am_stamp_count
54417 done
54418 _ACEOF
54419 cat >>$CONFIG_STATUS <<\_ACEOF
54420
54421 #
54422 # CONFIG_COMMANDS section.
54423 #
54424 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54425   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54426   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54427   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54428 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54429          X"$ac_dest" : 'X\(//\)[^/]' \| \
54430          X"$ac_dest" : 'X\(//\)$' \| \
54431          X"$ac_dest" : 'X\(/\)' \| \
54432          .     : '\(.\)' 2>/dev/null ||
54433 echo X"$ac_dest" |
54434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54436           /^X\(\/\/\)$/{ s//\1/; q; }
54437           /^X\(\/\).*/{ s//\1/; q; }
54438           s/.*/./; q'`
54439   { if $as_mkdir_p; then
54440     mkdir -p "$ac_dir"
54441   else
54442     as_dir="$ac_dir"
54443     as_dirs=
54444     while test ! -d "$as_dir"; do
54445       as_dirs="$as_dir $as_dirs"
54446       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54448          X"$as_dir" : 'X\(//\)[^/]' \| \
54449          X"$as_dir" : 'X\(//\)$' \| \
54450          X"$as_dir" : 'X\(/\)' \| \
54451          .     : '\(.\)' 2>/dev/null ||
54452 echo X"$as_dir" |
54453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54455           /^X\(\/\/\)$/{ s//\1/; q; }
54456           /^X\(\/\).*/{ s//\1/; q; }
54457           s/.*/./; q'`
54458     done
54459     test ! -n "$as_dirs" || mkdir $as_dirs
54460   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54461 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54462    { (exit 1); exit 1; }; }; }
54463
54464   ac_builddir=.
54465
54466 if test "$ac_dir" != .; then
54467   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54468   # A "../" for each directory in $ac_dir_suffix.
54469   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54470 else
54471   ac_dir_suffix= ac_top_builddir=
54472 fi
54473
54474 case $srcdir in
54475   .)  # No --srcdir option.  We are building in place.
54476     ac_srcdir=.
54477     if test -z "$ac_top_builddir"; then
54478        ac_top_srcdir=.
54479     else
54480        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54481     fi ;;
54482   [\\/]* | ?:[\\/]* )  # Absolute path.
54483     ac_srcdir=$srcdir$ac_dir_suffix;
54484     ac_top_srcdir=$srcdir ;;
54485   *) # Relative path.
54486     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54487     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54488 esac
54489
54490 # Do not use `cd foo && pwd` to compute absolute paths, because
54491 # the directories may not exist.
54492 case `pwd` in
54493 .) ac_abs_builddir="$ac_dir";;
54494 *)
54495   case "$ac_dir" in
54496   .) ac_abs_builddir=`pwd`;;
54497   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54498   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54499   esac;;
54500 esac
54501 case $ac_abs_builddir in
54502 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54503 *)
54504   case ${ac_top_builddir}. in
54505   .) ac_abs_top_builddir=$ac_abs_builddir;;
54506   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54507   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54508   esac;;
54509 esac
54510 case $ac_abs_builddir in
54511 .) ac_abs_srcdir=$ac_srcdir;;
54512 *)
54513   case $ac_srcdir in
54514   .) ac_abs_srcdir=$ac_abs_builddir;;
54515   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54516   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54517   esac;;
54518 esac
54519 case $ac_abs_builddir in
54520 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54521 *)
54522   case $ac_top_srcdir in
54523   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54524   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54525   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54526   esac;;
54527 esac
54528
54529
54530   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54531 echo "$as_me: executing $ac_dest commands" >&6;}
54532   case $ac_dest in
54533     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54534   # Strip MF so we end up with the name of the file.
54535   mf=`echo "$mf" | sed -e 's/:.*$//'`
54536   # Check whether this is an Automake generated Makefile or not.
54537   # We used to match only the files named `Makefile.in', but
54538   # some people rename them; so instead we look at the file content.
54539   # Grep'ing the first line is not enough: some people post-process
54540   # each Makefile.in and add a new line on top of each file to say so.
54541   # So let's grep whole file.
54542   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54543     dirpart=`(dirname "$mf") 2>/dev/null ||
54544 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54545          X"$mf" : 'X\(//\)[^/]' \| \
54546          X"$mf" : 'X\(//\)$' \| \
54547          X"$mf" : 'X\(/\)' \| \
54548          .     : '\(.\)' 2>/dev/null ||
54549 echo X"$mf" |
54550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54551           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54552           /^X\(\/\/\)$/{ s//\1/; q; }
54553           /^X\(\/\).*/{ s//\1/; q; }
54554           s/.*/./; q'`
54555   else
54556     continue
54557   fi
54558   # Extract the definition of DEPDIR, am__include, and am__quote
54559   # from the Makefile without running `make'.
54560   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54561   test -z "$DEPDIR" && continue
54562   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54563   test -z "am__include" && continue
54564   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54565   # When using ansi2knr, U may be empty or an underscore; expand it
54566   U=`sed -n 's/^U = //p' < "$mf"`
54567   # Find all dependency output files, they are included files with
54568   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54569   # simplest approach to changing $(DEPDIR) to its actual value in the
54570   # expansion.
54571   for file in `sed -n "
54572     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54573        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54574     # Make sure the directory exists.
54575     test -f "$dirpart/$file" && continue
54576     fdir=`(dirname "$file") 2>/dev/null ||
54577 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54578          X"$file" : 'X\(//\)[^/]' \| \
54579          X"$file" : 'X\(//\)$' \| \
54580          X"$file" : 'X\(/\)' \| \
54581          .     : '\(.\)' 2>/dev/null ||
54582 echo X"$file" |
54583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54585           /^X\(\/\/\)$/{ s//\1/; q; }
54586           /^X\(\/\).*/{ s//\1/; q; }
54587           s/.*/./; q'`
54588     { if $as_mkdir_p; then
54589     mkdir -p $dirpart/$fdir
54590   else
54591     as_dir=$dirpart/$fdir
54592     as_dirs=
54593     while test ! -d "$as_dir"; do
54594       as_dirs="$as_dir $as_dirs"
54595       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54597          X"$as_dir" : 'X\(//\)[^/]' \| \
54598          X"$as_dir" : 'X\(//\)$' \| \
54599          X"$as_dir" : 'X\(/\)' \| \
54600          .     : '\(.\)' 2>/dev/null ||
54601 echo X"$as_dir" |
54602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54603           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54604           /^X\(\/\/\)$/{ s//\1/; q; }
54605           /^X\(\/\).*/{ s//\1/; q; }
54606           s/.*/./; q'`
54607     done
54608     test ! -n "$as_dirs" || mkdir $as_dirs
54609   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54610 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54611    { (exit 1); exit 1; }; }; }
54612
54613     # echo "creating $dirpart/$file"
54614     echo '# dummy' > "$dirpart/$file"
54615   done
54616 done
54617  ;;
54618     default )
54619 chmod +x tests/run
54620 date > stamp-h
54621 BACKENDSC="servers/slapd/backends.c"
54622 echo "Making $BACKENDSC"
54623 rm -f $BACKENDSC
54624 cat > $BACKENDSC << ENDX
54625 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54626  *
54627  * Copyright 1998-2005 The OpenLDAP Foundation.
54628  * All rights reserved.
54629  *
54630  * Redistribution and use in source and binary forms, with or without
54631  * modification, are permitted only as authorized by the OpenLDAP
54632  * Public License.
54633  *
54634  * A copy of this license is available in the file LICENSE in the
54635  * top-level directory of the distribution or, alternatively, at
54636  * <http://www.OpenLDAP.org/license.html>.
54637  */
54638 /* This file is automatically generated by configure; please do not edit. */
54639
54640 #include "portable.h"
54641 #include "slap.h"
54642
54643 ENDX
54644 if test "${STATIC_BACKENDS}"; then
54645         for b in config ${STATIC_BACKENDS}; do
54646                 bb=`echo "${b}" | sed -e 's/back-//'`
54647                 cat >> $BACKENDSC << ENDX
54648 extern BI_init ${bb}_back_initialize;
54649 ENDX
54650         done
54651
54652         cat >> $BACKENDSC << ENDX
54653
54654 BackendInfo slap_binfo[] = {
54655 ENDX
54656
54657         for b in config ${STATIC_BACKENDS}; do
54658                 bb=`echo "${b}" | sed -e 's/back-//'`
54659                 echo "    Add ${bb} ..."
54660                 cat >> $BACKENDSC << ENDX
54661         { "${bb}", ${bb}_back_initialize },
54662 ENDX
54663         done
54664
54665         cat >> $BACKENDSC << ENDX
54666         { NULL, NULL },
54667 };
54668
54669 /* end of generated file */
54670 ENDX
54671 fi
54672
54673 echo Please run \"make depend\" to build dependencies
54674  ;;
54675   esac
54676 done
54677 _ACEOF
54678
54679 cat >>$CONFIG_STATUS <<\_ACEOF
54680
54681 { (exit 0); exit 0; }
54682 _ACEOF
54683 chmod +x $CONFIG_STATUS
54684 ac_clean_files=$ac_clean_files_save
54685
54686
54687 # configure is writing to config.log, and then calls config.status.
54688 # config.status does its own redirection, appending to config.log.
54689 # Unfortunately, on DOS this fails, as config.log is still kept open
54690 # by configure, so config.status won't be able to write to it; its
54691 # output is simply discarded.  So we exec the FD to /dev/null,
54692 # effectively closing config.log, so it can be properly (re)opened and
54693 # appended to by config.status.  When coming back to configure, we
54694 # need to make the FD available again.
54695 if test "$no_create" != yes; then
54696   ac_cs_success=:
54697   ac_config_status_args=
54698   test "$silent" = yes &&
54699     ac_config_status_args="$ac_config_status_args --quiet"
54700   exec 5>/dev/null
54701   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54702   exec 5>>config.log
54703   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54704   # would make configure fail if this is the last instruction.
54705   $ac_cs_success || { (exit 1); exit 1; }
54706 fi
54707