]> git.sur5r.net Git - openldap/blob - configure
Regenerated with new OL_ARG_ENABLE
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.21 2005/08/25 07:48:28 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_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
1089 SLURPD (Replication Daemon) Options:
1090   --enable-slurpd         enable building slurpd [auto]
1091
1092 Library Generation & Linking Options
1093   --enable-static[=PKGS]
1094                           build static libraries [default=yes]
1095   --enable-shared[=PKGS]
1096                           build shared libraries [default=yes]
1097   --enable-fast-install[=PKGS]
1098                           optimize for fast installation [default=yes]
1099   --disable-dependency-tracking  speeds up one-time build
1100   --enable-dependency-tracking   do not reject slow dependency extractors
1101   --disable-libtool-lock  avoid locking (might break parallel builds)
1102
1103 Optional Packages:
1104   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1105   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1106   --with-subdir=DIR       change default subdirectory used for installs
1107   --with-cyrus-sasl       with Cyrus SASL support [auto]
1108   --with-fetch            with fetch(3) URL support [auto]
1109   --with-threads          with threads [auto]
1110   --with-tls              with TLS/SSL support [auto]
1111   --with-yielding-select  with implicitly yielding select [auto]
1112   --with-multiple-precision
1113                           multiple precision support for statistics
1114                           auto|bignum|gmp [auto]
1115   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1116   --with-pic              try to use only PIC/non-PIC objects [default=use
1117                           both]
1118   --with-tags[=TAGS]
1119                           include additional configurations [automatic]
1120
1121 See INSTALL file for further details.
1122
1123 Some influential environment variables:
1124   CC          C compiler command
1125   CFLAGS      C compiler flags
1126   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1127               nonstandard directory <lib dir>
1128   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129               headers in a nonstandard directory <include dir>
1130   CPP         C preprocessor
1131   CXX         C++ compiler command
1132   CXXFLAGS    C++ compiler flags
1133   CXXCPP      C++ preprocessor
1134   F77         Fortran 77 compiler command
1135   FFLAGS      Fortran 77 compiler flags
1136
1137 Use these variables to override the choices made by `configure' or to help
1138 it to find libraries and programs with nonstandard names/locations.
1139
1140 _ACEOF
1141 fi
1142
1143 if test "$ac_init_help" = "recursive"; then
1144   # If there are subdirs, report their specific --help.
1145   ac_popdir=`pwd`
1146   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147     test -d $ac_dir || continue
1148     ac_builddir=.
1149
1150 if test "$ac_dir" != .; then
1151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152   # A "../" for each directory in $ac_dir_suffix.
1153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154 else
1155   ac_dir_suffix= ac_top_builddir=
1156 fi
1157
1158 case $srcdir in
1159   .)  # No --srcdir option.  We are building in place.
1160     ac_srcdir=.
1161     if test -z "$ac_top_builddir"; then
1162        ac_top_srcdir=.
1163     else
1164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165     fi ;;
1166   [\\/]* | ?:[\\/]* )  # Absolute path.
1167     ac_srcdir=$srcdir$ac_dir_suffix;
1168     ac_top_srcdir=$srcdir ;;
1169   *) # Relative path.
1170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172 esac
1173
1174 # Do not use `cd foo && pwd` to compute absolute paths, because
1175 # the directories may not exist.
1176 case `pwd` in
1177 .) ac_abs_builddir="$ac_dir";;
1178 *)
1179   case "$ac_dir" in
1180   .) ac_abs_builddir=`pwd`;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183   esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1187 *)
1188   case ${ac_top_builddir}. in
1189   .) ac_abs_top_builddir=$ac_abs_builddir;;
1190   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192   esac;;
1193 esac
1194 case $ac_abs_builddir in
1195 .) ac_abs_srcdir=$ac_srcdir;;
1196 *)
1197   case $ac_srcdir in
1198   .) ac_abs_srcdir=$ac_abs_builddir;;
1199   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201   esac;;
1202 esac
1203 case $ac_abs_builddir in
1204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1205 *)
1206   case $ac_top_srcdir in
1207   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210   esac;;
1211 esac
1212
1213     cd $ac_dir
1214     # Check for guested configure; otherwise get Cygnus style configure.
1215     if test -f $ac_srcdir/configure.gnu; then
1216       echo
1217       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218     elif test -f $ac_srcdir/configure; then
1219       echo
1220       $SHELL $ac_srcdir/configure  --help=recursive
1221     elif test -f $ac_srcdir/configure.ac ||
1222            test -f $ac_srcdir/configure.in; then
1223       echo
1224       $ac_configure --help
1225     else
1226       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227     fi
1228     cd $ac_popdir
1229   done
1230 fi
1231
1232 test -n "$ac_init_help" && exit 0
1233 if $ac_init_version; then
1234   cat <<\_ACEOF
1235
1236 Copyright (C) 2003 Free Software Foundation, Inc.
1237 This configure script is free software; the Free Software Foundation
1238 gives unlimited permission to copy, distribute and modify it.
1239
1240 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1241 Restrictions apply, see COPYRIGHT and LICENSE files.
1242 _ACEOF
1243   exit 0
1244 fi
1245 exec 5>config.log
1246 cat >&5 <<_ACEOF
1247 This file contains any messages produced by compilers while
1248 running configure, to aid debugging if configure makes a mistake.
1249
1250 It was created by $as_me, which was
1251 generated by GNU Autoconf 2.59.  Invocation command line was
1252
1253   $ $0 $@
1254
1255 _ACEOF
1256 {
1257 cat <<_ASUNAME
1258 ## --------- ##
1259 ## Platform. ##
1260 ## --------- ##
1261
1262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1267
1268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1270
1271 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1272 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1275 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1276 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1277 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1278
1279 _ASUNAME
1280
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1283 do
1284   IFS=$as_save_IFS
1285   test -z "$as_dir" && as_dir=.
1286   echo "PATH: $as_dir"
1287 done
1288
1289 } >&5
1290
1291 cat >&5 <<_ACEOF
1292
1293
1294 ## ----------- ##
1295 ## Core tests. ##
1296 ## ----------- ##
1297
1298 _ACEOF
1299
1300
1301 # Keep a trace of the command line.
1302 # Strip out --no-create and --no-recursion so they do not pile up.
1303 # Strip out --silent because we don't want to record it for future runs.
1304 # Also quote any args containing shell meta-characters.
1305 # Make two passes to allow for proper duplicate-argument suppression.
1306 ac_configure_args=
1307 ac_configure_args0=
1308 ac_configure_args1=
1309 ac_sep=
1310 ac_must_keep_next=false
1311 for ac_pass in 1 2
1312 do
1313   for ac_arg
1314   do
1315     case $ac_arg in
1316     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318     | -silent | --silent | --silen | --sile | --sil)
1319       continue ;;
1320     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322     esac
1323     case $ac_pass in
1324     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1325     2)
1326       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327       if test $ac_must_keep_next = true; then
1328         ac_must_keep_next=false # Got value, back to normal.
1329       else
1330         case $ac_arg in
1331           *=* | --config-cache | -C | -disable-* | --disable-* \
1332           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334           | -with-* | --with-* | -without-* | --without-* | --x)
1335             case "$ac_configure_args0 " in
1336               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337             esac
1338             ;;
1339           -* ) ac_must_keep_next=true ;;
1340         esac
1341       fi
1342       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343       # Get rid of the leading space.
1344       ac_sep=" "
1345       ;;
1346     esac
1347   done
1348 done
1349 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1351
1352 # When interrupted or exit'd, cleanup temporary files, and complete
1353 # config.log.  We remove comments because anyway the quotes in there
1354 # would cause problems or look ugly.
1355 # WARNING: Be sure not to use single quotes in there, as some shells,
1356 # such as our DU 5.0 friend, will then `close' the trap.
1357 trap 'exit_status=$?
1358   # Save into config.log some information that might help in debugging.
1359   {
1360     echo
1361
1362     cat <<\_ASBOX
1363 ## ---------------- ##
1364 ## Cache variables. ##
1365 ## ---------------- ##
1366 _ASBOX
1367     echo
1368     # The following way of writing the cache mishandles newlines in values,
1369 {
1370   (set) 2>&1 |
1371     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372     *ac_space=\ *)
1373       sed -n \
1374         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376       ;;
1377     *)
1378       sed -n \
1379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380       ;;
1381     esac;
1382 }
1383     echo
1384
1385     cat <<\_ASBOX
1386 ## ----------------- ##
1387 ## Output variables. ##
1388 ## ----------------- ##
1389 _ASBOX
1390     echo
1391     for ac_var in $ac_subst_vars
1392     do
1393       eval ac_val=$`echo $ac_var`
1394       echo "$ac_var='"'"'$ac_val'"'"'"
1395     done | sort
1396     echo
1397
1398     if test -n "$ac_subst_files"; then
1399       cat <<\_ASBOX
1400 ## ------------- ##
1401 ## Output files. ##
1402 ## ------------- ##
1403 _ASBOX
1404       echo
1405       for ac_var in $ac_subst_files
1406       do
1407         eval ac_val=$`echo $ac_var`
1408         echo "$ac_var='"'"'$ac_val'"'"'"
1409       done | sort
1410       echo
1411     fi
1412
1413     if test -s confdefs.h; then
1414       cat <<\_ASBOX
1415 ## ----------- ##
1416 ## confdefs.h. ##
1417 ## ----------- ##
1418 _ASBOX
1419       echo
1420       sed "/^$/d" confdefs.h | sort
1421       echo
1422     fi
1423     test "$ac_signal" != 0 &&
1424       echo "$as_me: caught signal $ac_signal"
1425     echo "$as_me: exit $exit_status"
1426   } >&5
1427   rm -f core *.core &&
1428   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429     exit $exit_status
1430      ' 0
1431 for ac_signal in 1 2 13 15; do
1432   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433 done
1434 ac_signal=0
1435
1436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1437 rm -rf conftest* confdefs.h
1438 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439 echo >confdefs.h
1440
1441 # Predefined preprocessor variables.
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_NAME "$PACKAGE_NAME"
1445 _ACEOF
1446
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450 _ACEOF
1451
1452
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_STRING "$PACKAGE_STRING"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465 _ACEOF
1466
1467
1468 # Let the site file select an alternate cache file if it wants to.
1469 # Prefer explicitly selected file to automatically selected ones.
1470 if test -z "$CONFIG_SITE"; then
1471   if test "x$prefix" != xNONE; then
1472     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1473   else
1474     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475   fi
1476 fi
1477 for ac_site_file in $CONFIG_SITE; do
1478   if test -r "$ac_site_file"; then
1479     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480 echo "$as_me: loading site script $ac_site_file" >&6;}
1481     sed 's/^/| /' "$ac_site_file" >&5
1482     . "$ac_site_file"
1483   fi
1484 done
1485
1486
1487 # Check that the precious variables saved in the cache have kept the same
1488 # value.
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493   eval ac_new_set=\$ac_env_${ac_var}_set
1494   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495   eval ac_new_val="\$ac_env_${ac_var}_value"
1496   case $ac_old_set,$ac_new_set in
1497     set,)
1498       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500       ac_cache_corrupted=: ;;
1501     ,set)
1502       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504       ac_cache_corrupted=: ;;
1505     ,);;
1506     *)
1507       if test "x$ac_old_val" != "x$ac_new_val"; then
1508         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511 echo "$as_me:   former value:  $ac_old_val" >&2;}
1512         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513 echo "$as_me:   current value: $ac_new_val" >&2;}
1514         ac_cache_corrupted=:
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584 ac_aux_dir=
1585 for ac_dir in build $srcdir/build; do
1586   if test -f $ac_dir/install-sh; then
1587     ac_aux_dir=$ac_dir
1588     ac_install_sh="$ac_aux_dir/install-sh -c"
1589     break
1590   elif test -f $ac_dir/install.sh; then
1591     ac_aux_dir=$ac_dir
1592     ac_install_sh="$ac_aux_dir/install.sh -c"
1593     break
1594   elif test -f $ac_dir/shtool; then
1595     ac_aux_dir=$ac_dir
1596     ac_install_sh="$ac_aux_dir/shtool install -c"
1597     break
1598   fi
1599 done
1600 if test -z "$ac_aux_dir"; then
1601   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1602 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1603    { (exit 1); exit 1; }; }
1604 fi
1605 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1606 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1607 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608
1609 eval `$ac_aux_dir/version.sh`
1610 if test -z "$OL_STRING"; then
1611         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1612 echo "$as_me: error: could not determine version" >&2;}
1613    { (exit 1); exit 1; }; }
1614 fi
1615
1616 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1617         ac_cv_shtool="$ac_aux_dir/shtool"
1618 else
1619         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1620 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1621    { (exit 1); exit 1; }; }
1622 fi
1623
1624 SHTOOL="$ac_cv_shtool"
1625
1626 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1627 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1628
1629 OPENLDAP_CVS=""
1630 if test -d $ac_aux_dir/CVS; then
1631         OPENLDAP_CVS="(from CVS sources) "
1632 fi
1633
1634 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1635
1636 # Make sure we can run config.sub.
1637 $ac_config_sub sun4 >/dev/null 2>&1 ||
1638   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1639 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1640    { (exit 1); exit 1; }; }
1641
1642 echo "$as_me:$LINENO: checking build system type" >&5
1643 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1644 if test "${ac_cv_build+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   ac_cv_build_alias=$build_alias
1648 test -z "$ac_cv_build_alias" &&
1649   ac_cv_build_alias=`$ac_config_guess`
1650 test -z "$ac_cv_build_alias" &&
1651   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1652 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1653    { (exit 1); exit 1; }; }
1654 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1655   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1656 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1657    { (exit 1); exit 1; }; }
1658
1659 fi
1660 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1661 echo "${ECHO_T}$ac_cv_build" >&6
1662 build=$ac_cv_build
1663 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1664 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1665 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666
1667
1668 echo "$as_me:$LINENO: checking host system type" >&5
1669 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1670 if test "${ac_cv_host+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   ac_cv_host_alias=$host_alias
1674 test -z "$ac_cv_host_alias" &&
1675   ac_cv_host_alias=$ac_cv_build_alias
1676 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1677   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1678 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1679    { (exit 1); exit 1; }; }
1680
1681 fi
1682 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1683 echo "${ECHO_T}$ac_cv_host" >&6
1684 host=$ac_cv_host
1685 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1686 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1687 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688
1689
1690 echo "$as_me:$LINENO: checking target system type" >&5
1691 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1692 if test "${ac_cv_target+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   ac_cv_target_alias=$target_alias
1696 test "x$ac_cv_target_alias" = "x" &&
1697   ac_cv_target_alias=$ac_cv_host_alias
1698 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1699   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1701    { (exit 1); exit 1; }; }
1702
1703 fi
1704 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1705 echo "${ECHO_T}$ac_cv_target" >&6
1706 target=$ac_cv_target
1707 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1710
1711
1712 # The aliases save the names the user supplied, while $host etc.
1713 # will get canonicalized.
1714 test -n "$target_alias" &&
1715   test "$program_prefix$program_suffix$program_transform_name" = \
1716     NONENONEs,x,x, &&
1717   program_prefix=${target_alias}-
1718
1719 am__api_version="1.9"
1720 # Find a good install program.  We prefer a C program (faster),
1721 # so one script is as good as another.  But avoid the broken or
1722 # incompatible versions:
1723 # SysV /etc/install, /usr/sbin/install
1724 # SunOS /usr/etc/install
1725 # IRIX /sbin/install
1726 # AIX /bin/install
1727 # AmigaOS /C/install, which installs bootblocks on floppy discs
1728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1731 # OS/2's system install, which has a completely different semantic
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1734 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1735 if test -z "$INSTALL"; then
1736 if test "${ac_cv_path_install+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   # Account for people who put trailing slashes in PATH elements.
1745 case $as_dir/ in
1746   ./ | .// | /cC/* | \
1747   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1748   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1749   /usr/ucb/* ) ;;
1750   *)
1751     # OSF1 and SCO ODT 3.0 have their own names for install.
1752     # Don't use installbsd from OSF since it installs stuff as root
1753     # by default.
1754     for ac_prog in ginstall scoinst install; do
1755       for ac_exec_ext in '' $ac_executable_extensions; do
1756         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1757           if test $ac_prog = install &&
1758             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759             # AIX install.  It has an incompatible calling convention.
1760             :
1761           elif test $ac_prog = install &&
1762             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1763             # program-specific install script used by HP pwplus--don't use.
1764             :
1765           else
1766             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1767             break 3
1768           fi
1769         fi
1770       done
1771     done
1772     ;;
1773 esac
1774 done
1775
1776
1777 fi
1778   if test "${ac_cv_path_install+set}" = set; then
1779     INSTALL=$ac_cv_path_install
1780   else
1781     # As a last resort, use the slow shell script.  We don't cache a
1782     # path for INSTALL within a source directory, because that will
1783     # break other packages using the cache if that directory is
1784     # removed, or if the path is relative.
1785     INSTALL=$ac_install_sh
1786   fi
1787 fi
1788 echo "$as_me:$LINENO: result: $INSTALL" >&5
1789 echo "${ECHO_T}$INSTALL" >&6
1790
1791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1792 # It thinks the first close brace ends the variable substitution.
1793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1794
1795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1796
1797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1798
1799 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1800 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1801 # Just in case
1802 sleep 1
1803 echo timestamp > conftest.file
1804 # Do `set' in a subshell so we don't clobber the current shell's
1805 # arguments.  Must try -L first in case configure is actually a
1806 # symlink; some systems play weird games with the mod time of symlinks
1807 # (eg FreeBSD returns the mod time of the symlink's containing
1808 # directory).
1809 if (
1810    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1811    if test "$*" = "X"; then
1812       # -L didn't work.
1813       set X `ls -t $srcdir/configure conftest.file`
1814    fi
1815    rm -f conftest.file
1816    if test "$*" != "X $srcdir/configure conftest.file" \
1817       && test "$*" != "X conftest.file $srcdir/configure"; then
1818
1819       # If neither matched, then we have a broken ls.  This can happen
1820       # if, for instance, CONFIG_SHELL is bash and it inherits a
1821       # broken ls alias from the environment.  This has actually
1822       # happened.  Such a system could not be considered "sane".
1823       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1824 alias in your environment" >&5
1825 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1826 alias in your environment" >&2;}
1827    { (exit 1); exit 1; }; }
1828    fi
1829
1830    test "$2" = conftest.file
1831    )
1832 then
1833    # Ok.
1834    :
1835 else
1836    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1837 Check your system clock" >&5
1838 echo "$as_me: error: newly created file is older than distributed files!
1839 Check your system clock" >&2;}
1840    { (exit 1); exit 1; }; }
1841 fi
1842 echo "$as_me:$LINENO: result: yes" >&5
1843 echo "${ECHO_T}yes" >&6
1844 test "$program_prefix" != NONE &&
1845   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1846 # Use a double $ so make ignores it.
1847 test "$program_suffix" != NONE &&
1848   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1849 # Double any \ or $.  echo might interpret backslashes.
1850 # By default was `s,x,x', remove it if useless.
1851 cat <<\_ACEOF >conftest.sed
1852 s/[\\$]/&&/g;s/;s,x,x,$//
1853 _ACEOF
1854 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1855 rm conftest.sed
1856
1857 # expand $ac_aux_dir to an absolute path
1858 am_aux_dir=`cd $ac_aux_dir && pwd`
1859
1860 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1861 # Use eval to expand $SHELL
1862 if eval "$MISSING --run true"; then
1863   am_missing_run="$MISSING --run "
1864 else
1865   am_missing_run=
1866   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1867 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1868 fi
1869
1870 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1871   # We used to keeping the `.' as first argument, in order to
1872   # allow $(mkdir_p) to be used without argument.  As in
1873   #   $(mkdir_p) $(somedir)
1874   # where $(somedir) is conditionally defined.  However this is wrong
1875   # for two reasons:
1876   #  1. if the package is installed by a user who cannot write `.'
1877   #     make install will fail,
1878   #  2. the above comment should most certainly read
1879   #     $(mkdir_p) $(DESTDIR)$(somedir)
1880   #     so it does not work when $(somedir) is undefined and
1881   #     $(DESTDIR) is not.
1882   #  To support the latter case, we have to write
1883   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1884   #  so the `.' trick is pointless.
1885   mkdir_p='mkdir -p --'
1886 else
1887   # On NextStep and OpenStep, the `mkdir' command does not
1888   # recognize any option.  It will interpret all options as
1889   # directories to create, and then abort because `.' already
1890   # exists.
1891   for d in ./-p ./--version;
1892   do
1893     test -d $d && rmdir $d
1894   done
1895   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1896   if test -f "$ac_aux_dir/mkinstalldirs"; then
1897     mkdir_p='$(mkinstalldirs)'
1898   else
1899     mkdir_p='$(install_sh) -d'
1900   fi
1901 fi
1902
1903 for ac_prog in gawk mawk nawk awk
1904 do
1905   # Extract the first word of "$ac_prog", so it can be a program name with args.
1906 set dummy $ac_prog; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_AWK+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$AWK"; then
1913   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_AWK="$ac_prog"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 AWK=$ac_cv_prog_AWK
1932 if test -n "$AWK"; then
1933   echo "$as_me:$LINENO: result: $AWK" >&5
1934 echo "${ECHO_T}$AWK" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940   test -n "$AWK" && break
1941 done
1942
1943 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1944 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1945 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1946 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   cat >conftest.make <<\_ACEOF
1950 all:
1951         @echo 'ac_maketemp="$(MAKE)"'
1952 _ACEOF
1953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1954 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1955 if test -n "$ac_maketemp"; then
1956   eval ac_cv_prog_make_${ac_make}_set=yes
1957 else
1958   eval ac_cv_prog_make_${ac_make}_set=no
1959 fi
1960 rm -f conftest.make
1961 fi
1962 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1963   echo "$as_me:$LINENO: result: yes" >&5
1964 echo "${ECHO_T}yes" >&6
1965   SET_MAKE=
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969   SET_MAKE="MAKE=${MAKE-make}"
1970 fi
1971
1972 rm -rf .tst 2>/dev/null
1973 mkdir .tst 2>/dev/null
1974 if test -d .tst; then
1975   am__leading_dot=.
1976 else
1977   am__leading_dot=_
1978 fi
1979 rmdir .tst 2>/dev/null
1980
1981 # test to see if srcdir already configured
1982 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1983    test -f $srcdir/config.status; then
1984   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1985 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989 # test whether we have cygpath
1990 if test -z "$CYGPATH_W"; then
1991   if (cygpath --version) >/dev/null 2>/dev/null; then
1992     CYGPATH_W='cygpath -w'
1993   else
1994     CYGPATH_W=echo
1995   fi
1996 fi
1997
1998
1999 # Define the identity of the package.
2000  PACKAGE=$OL_PACKAGE
2001  VERSION=$OL_VERSION
2002
2003
2004 # Some tools Automake needs.
2005
2006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2007
2008
2009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2010
2011
2012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2013
2014
2015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2016
2017
2018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2019
2020 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2021
2022 # Installed binaries are usually stripped using `strip' when the user
2023 # run `make install-strip'.  However `strip' might not be the right
2024 # tool to use in cross-compilation environments, therefore Automake
2025 # will honor the `STRIP' environment variable to overrule this program.
2026 if test "$cross_compiling" != no; then
2027   if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}strip; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_STRIP+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$STRIP"; then
2036   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 STRIP=$ac_cv_prog_STRIP
2055 if test -n "$STRIP"; then
2056   echo "$as_me:$LINENO: result: $STRIP" >&5
2057 echo "${ECHO_T}$STRIP" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063 fi
2064 if test -z "$ac_cv_prog_STRIP"; then
2065   ac_ct_STRIP=$STRIP
2066   # Extract the first word of "strip", so it can be a program name with args.
2067 set dummy strip; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$ac_ct_STRIP"; then
2074   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_ac_ct_STRIP="strip"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2091 fi
2092 fi
2093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2094 if test -n "$ac_ct_STRIP"; then
2095   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2096 echo "${ECHO_T}$ac_ct_STRIP" >&6
2097 else
2098   echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2100 fi
2101
2102   STRIP=$ac_ct_STRIP
2103 else
2104   STRIP="$ac_cv_prog_STRIP"
2105 fi
2106
2107 fi
2108 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2109
2110 # We need awk for the "check" target.  The system "awk" is bad on
2111 # some platforms.
2112 # Always define AMTAR for backward compatibility.
2113
2114 AMTAR=${AMTAR-"${am_missing_run}tar"}
2115
2116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2117
2118
2119
2120
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define OPENLDAP_PACKAGE "$PACKAGE"
2124 _ACEOF
2125
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define OPENLDAP_VERSION "$VERSION"
2129 _ACEOF
2130
2131
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define LDAP_VENDOR_VERSION $OL_API_INC
2135 _ACEOF
2136
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2140 _ACEOF
2141
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2145 _ACEOF
2146
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2150 _ACEOF
2151
2152
2153 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2154
2155 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2156
2157 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2158
2159
2160
2161
2162
2163
2164
2165           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2166
2167           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2168
2169           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2170
2171
2172 echo "$as_me:$LINENO: checking configure arguments" >&5
2173 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2174
2175
2176 top_builddir=`pwd`
2177
2178 ldap_subdir="/openldap"
2179
2180
2181 # Check whether --with-subdir or --without-subdir was given.
2182 if test "${with_subdir+set}" = set; then
2183   withval="$with_subdir"
2184   case "$withval" in
2185         no) ldap_subdir=""
2186                 ;;
2187         yes)
2188                 ;;
2189         /*|\\*)
2190                 ldap_subdir="$withval"
2191                 ;;
2192         *)
2193                 ldap_subdir="/$withval"
2194                 ;;
2195 esac
2196
2197 fi;
2198
2199 # OpenLDAP --enable-debug
2200
2201         # Check whether --enable-debug or --disable-debug was given.
2202 if test "${enable_debug+set}" = set; then
2203   enableval="$enable_debug"
2204
2205         ol_arg=invalid
2206         for ol_val in auto yes no ; do
2207                 if test "$enableval" = "$ol_val" ; then
2208                         ol_arg="$ol_val"
2209                 fi
2210         done
2211         if test "$ol_arg" = "invalid" ; then
2212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2214    { (exit 1); exit 1; }; }
2215         fi
2216         ol_enable_debug="$ol_arg"
2217
2218 else
2219         ol_enable_debug=yes
2220 fi;
2221 # end --enable-debug
2222 # OpenLDAP --enable-dynamic
2223
2224         # Check whether --enable-dynamic or --disable-dynamic was given.
2225 if test "${enable_dynamic+set}" = set; then
2226   enableval="$enable_dynamic"
2227
2228         ol_arg=invalid
2229         for ol_val in auto yes no ; do
2230                 if test "$enableval" = "$ol_val" ; then
2231                         ol_arg="$ol_val"
2232                 fi
2233         done
2234         if test "$ol_arg" = "invalid" ; then
2235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2237    { (exit 1); exit 1; }; }
2238         fi
2239         ol_enable_dynamic="$ol_arg"
2240
2241 else
2242         ol_enable_dynamic=no
2243 fi;
2244 # end --enable-dynamic
2245 # OpenLDAP --enable-syslog
2246
2247         # Check whether --enable-syslog or --disable-syslog was given.
2248 if test "${enable_syslog+set}" = set; then
2249   enableval="$enable_syslog"
2250
2251         ol_arg=invalid
2252         for ol_val in auto yes no ; do
2253                 if test "$enableval" = "$ol_val" ; then
2254                         ol_arg="$ol_val"
2255                 fi
2256         done
2257         if test "$ol_arg" = "invalid" ; then
2258                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2259 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2260    { (exit 1); exit 1; }; }
2261         fi
2262         ol_enable_syslog="$ol_arg"
2263
2264 else
2265         ol_enable_syslog=auto
2266 fi;
2267 # end --enable-syslog
2268 # OpenLDAP --enable-proctitle
2269
2270         # Check whether --enable-proctitle or --disable-proctitle was given.
2271 if test "${enable_proctitle+set}" = set; then
2272   enableval="$enable_proctitle"
2273
2274         ol_arg=invalid
2275         for ol_val in auto yes no ; do
2276                 if test "$enableval" = "$ol_val" ; then
2277                         ol_arg="$ol_val"
2278                 fi
2279         done
2280         if test "$ol_arg" = "invalid" ; then
2281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2283    { (exit 1); exit 1; }; }
2284         fi
2285         ol_enable_proctitle="$ol_arg"
2286
2287 else
2288         ol_enable_proctitle=yes
2289 fi;
2290 # end --enable-proctitle
2291 ol_enable_referrals=${ol_enable_referrals-no}
2292 ol_enable_kbind=${ol_enable_kbind-no}
2293 # OpenLDAP --enable-ipv6
2294
2295         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2296 if test "${enable_ipv6+set}" = set; then
2297   enableval="$enable_ipv6"
2298
2299         ol_arg=invalid
2300         for ol_val in auto yes no ; do
2301                 if test "$enableval" = "$ol_val" ; then
2302                         ol_arg="$ol_val"
2303                 fi
2304         done
2305         if test "$ol_arg" = "invalid" ; then
2306                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2308    { (exit 1); exit 1; }; }
2309         fi
2310         ol_enable_ipv6="$ol_arg"
2311
2312 else
2313         ol_enable_ipv6=auto
2314 fi;
2315 # end --enable-ipv6
2316 # OpenLDAP --enable-local
2317
2318         # Check whether --enable-local or --disable-local was given.
2319 if test "${enable_local+set}" = set; then
2320   enableval="$enable_local"
2321
2322         ol_arg=invalid
2323         for ol_val in auto yes no ; do
2324                 if test "$enableval" = "$ol_val" ; then
2325                         ol_arg="$ol_val"
2326                 fi
2327         done
2328         if test "$ol_arg" = "invalid" ; then
2329                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2330 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2331    { (exit 1); exit 1; }; }
2332         fi
2333         ol_enable_local="$ol_arg"
2334
2335 else
2336         ol_enable_local=auto
2337 fi;
2338 # end --enable-local
2339
2340 # OpenLDAP --with-cyrus_sasl
2341
2342 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2343 if test "${with_cyrus_sasl+set}" = set; then
2344   withval="$with_cyrus_sasl"
2345
2346         ol_arg=invalid
2347         for ol_val in auto yes no  ; do
2348                 if test "$withval" = "$ol_val" ; then
2349                         ol_arg="$ol_val"
2350                 fi
2351         done
2352         if test "$ol_arg" = "invalid" ; then
2353                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2354 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2355    { (exit 1); exit 1; }; }
2356         fi
2357         ol_with_cyrus_sasl="$ol_arg"
2358
2359 else
2360         ol_with_cyrus_sasl="auto"
2361 fi; # end --with-cyrus_sasl
2362
2363 # OpenLDAP --with-fetch
2364
2365 # Check whether --with-fetch or --without-fetch was given.
2366 if test "${with_fetch+set}" = set; then
2367   withval="$with_fetch"
2368
2369         ol_arg=invalid
2370         for ol_val in auto yes no  ; do
2371                 if test "$withval" = "$ol_val" ; then
2372                         ol_arg="$ol_val"
2373                 fi
2374         done
2375         if test "$ol_arg" = "invalid" ; then
2376                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2377 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2378    { (exit 1); exit 1; }; }
2379         fi
2380         ol_with_fetch="$ol_arg"
2381
2382 else
2383         ol_with_fetch="auto"
2384 fi; # end --with-fetch
2385
2386 ol_with_kerberos=${ol_with_kerberos-auto}
2387 # OpenLDAP --with-threads
2388
2389 # Check whether --with-threads or --without-threads was given.
2390 if test "${with_threads+set}" = set; then
2391   withval="$with_threads"
2392
2393         ol_arg=invalid
2394         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2395                 if test "$withval" = "$ol_val" ; then
2396                         ol_arg="$ol_val"
2397                 fi
2398         done
2399         if test "$ol_arg" = "invalid" ; then
2400                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2401 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2402    { (exit 1); exit 1; }; }
2403         fi
2404         ol_with_threads="$ol_arg"
2405
2406 else
2407         ol_with_threads="auto"
2408 fi; # end --with-threads
2409
2410 # OpenLDAP --with-tls
2411
2412 # Check whether --with-tls or --without-tls was given.
2413 if test "${with_tls+set}" = set; then
2414   withval="$with_tls"
2415
2416         ol_arg=invalid
2417         for ol_val in auto ssleay openssl yes no  ; do
2418                 if test "$withval" = "$ol_val" ; then
2419                         ol_arg="$ol_val"
2420                 fi
2421         done
2422         if test "$ol_arg" = "invalid" ; then
2423                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2424 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2425    { (exit 1); exit 1; }; }
2426         fi
2427         ol_with_tls="$ol_arg"
2428
2429 else
2430         ol_with_tls="auto"
2431 fi; # end --with-tls
2432
2433 # OpenLDAP --with-yielding_select
2434
2435 # Check whether --with-yielding_select or --without-yielding_select was given.
2436 if test "${with_yielding_select+set}" = set; then
2437   withval="$with_yielding_select"
2438
2439         ol_arg=invalid
2440         for ol_val in auto yes no manual  ; do
2441                 if test "$withval" = "$ol_val" ; then
2442                         ol_arg="$ol_val"
2443                 fi
2444         done
2445         if test "$ol_arg" = "invalid" ; then
2446                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2447 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2448    { (exit 1); exit 1; }; }
2449         fi
2450         ol_with_yielding_select="$ol_arg"
2451
2452 else
2453         ol_with_yielding_select="auto"
2454 fi; # end --with-yielding_select
2455
2456 # OpenLDAP --with-multiple_precision
2457
2458 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2459 if test "${with_multiple_precision+set}" = set; then
2460   withval="$with_multiple_precision"
2461
2462         ol_arg=invalid
2463         for ol_val in auto bignum gmp yes no  ; do
2464                 if test "$withval" = "$ol_val" ; then
2465                         ol_arg="$ol_val"
2466                 fi
2467         done
2468         if test "$ol_arg" = "invalid" ; then
2469                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2470 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2471    { (exit 1); exit 1; }; }
2472         fi
2473         ol_with_multiple_precision="$ol_arg"
2474
2475 else
2476         ol_with_multiple_precision="auto"
2477 fi; # end --with-multiple_precision
2478
2479
2480
2481 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2482 if test "${enable_xxslapdoptions+set}" = set; then
2483   enableval="$enable_xxslapdoptions"
2484
2485 fi;
2486 # OpenLDAP --enable-slapd
2487
2488         # Check whether --enable-slapd or --disable-slapd was given.
2489 if test "${enable_slapd+set}" = set; then
2490   enableval="$enable_slapd"
2491
2492         ol_arg=invalid
2493         for ol_val in auto yes no ; do
2494                 if test "$enableval" = "$ol_val" ; then
2495                         ol_arg="$ol_val"
2496                 fi
2497         done
2498         if test "$ol_arg" = "invalid" ; then
2499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2500 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2501    { (exit 1); exit 1; }; }
2502         fi
2503         ol_enable_slapd="$ol_arg"
2504
2505 else
2506         ol_enable_slapd=yes
2507 fi;
2508 # end --enable-slapd
2509 # OpenLDAP --enable-aci
2510
2511         # Check whether --enable-aci or --disable-aci was given.
2512 if test "${enable_aci+set}" = set; then
2513   enableval="$enable_aci"
2514
2515         ol_arg=invalid
2516         for ol_val in auto yes no ; do
2517                 if test "$enableval" = "$ol_val" ; then
2518                         ol_arg="$ol_val"
2519                 fi
2520         done
2521         if test "$ol_arg" = "invalid" ; then
2522                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2523 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2524    { (exit 1); exit 1; }; }
2525         fi
2526         ol_enable_aci="$ol_arg"
2527
2528 else
2529         ol_enable_aci=no
2530 fi;
2531 # end --enable-aci
2532 # OpenLDAP --enable-cleartext
2533
2534         # Check whether --enable-cleartext or --disable-cleartext was given.
2535 if test "${enable_cleartext+set}" = set; then
2536   enableval="$enable_cleartext"
2537
2538         ol_arg=invalid
2539         for ol_val in auto yes no ; do
2540                 if test "$enableval" = "$ol_val" ; then
2541                         ol_arg="$ol_val"
2542                 fi
2543         done
2544         if test "$ol_arg" = "invalid" ; then
2545                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2546 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2547    { (exit 1); exit 1; }; }
2548         fi
2549         ol_enable_cleartext="$ol_arg"
2550
2551 else
2552         ol_enable_cleartext=yes
2553 fi;
2554 # end --enable-cleartext
2555 # OpenLDAP --enable-crypt
2556
2557         # Check whether --enable-crypt or --disable-crypt was given.
2558 if test "${enable_crypt+set}" = set; then
2559   enableval="$enable_crypt"
2560
2561         ol_arg=invalid
2562         for ol_val in auto yes no ; do
2563                 if test "$enableval" = "$ol_val" ; then
2564                         ol_arg="$ol_val"
2565                 fi
2566         done
2567         if test "$ol_arg" = "invalid" ; then
2568                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2569 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2570    { (exit 1); exit 1; }; }
2571         fi
2572         ol_enable_crypt="$ol_arg"
2573
2574 else
2575         ol_enable_crypt=no
2576 fi;
2577 # end --enable-crypt
2578 # OpenLDAP --enable-lmpasswd
2579
2580         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2581 if test "${enable_lmpasswd+set}" = set; then
2582   enableval="$enable_lmpasswd"
2583
2584         ol_arg=invalid
2585         for ol_val in auto yes no ; do
2586                 if test "$enableval" = "$ol_val" ; then
2587                         ol_arg="$ol_val"
2588                 fi
2589         done
2590         if test "$ol_arg" = "invalid" ; then
2591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2592 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2593    { (exit 1); exit 1; }; }
2594         fi
2595         ol_enable_lmpasswd="$ol_arg"
2596
2597 else
2598         ol_enable_lmpasswd=no
2599 fi;
2600 # end --enable-lmpasswd
2601 # OpenLDAP --enable-spasswd
2602
2603         # Check whether --enable-spasswd or --disable-spasswd was given.
2604 if test "${enable_spasswd+set}" = set; then
2605   enableval="$enable_spasswd"
2606
2607         ol_arg=invalid
2608         for ol_val in auto yes no ; do
2609                 if test "$enableval" = "$ol_val" ; then
2610                         ol_arg="$ol_val"
2611                 fi
2612         done
2613         if test "$ol_arg" = "invalid" ; then
2614                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2615 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2616    { (exit 1); exit 1; }; }
2617         fi
2618         ol_enable_spasswd="$ol_arg"
2619
2620 else
2621         ol_enable_spasswd=no
2622 fi;
2623 # end --enable-spasswd
2624 # OpenLDAP --enable-modules
2625
2626         # Check whether --enable-modules or --disable-modules was given.
2627 if test "${enable_modules+set}" = set; then
2628   enableval="$enable_modules"
2629
2630         ol_arg=invalid
2631         for ol_val in auto yes no ; do
2632                 if test "$enableval" = "$ol_val" ; then
2633                         ol_arg="$ol_val"
2634                 fi
2635         done
2636         if test "$ol_arg" = "invalid" ; then
2637                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2638 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2639    { (exit 1); exit 1; }; }
2640         fi
2641         ol_enable_modules="$ol_arg"
2642
2643 else
2644         ol_enable_modules=no
2645 fi;
2646 # end --enable-modules
2647 ol_enable_multimaster=${ol_enable_multimaster-no}
2648 # OpenLDAP --enable-rewrite
2649
2650         # Check whether --enable-rewrite or --disable-rewrite was given.
2651 if test "${enable_rewrite+set}" = set; then
2652   enableval="$enable_rewrite"
2653
2654         ol_arg=invalid
2655         for ol_val in auto yes no ; do
2656                 if test "$enableval" = "$ol_val" ; then
2657                         ol_arg="$ol_val"
2658                 fi
2659         done
2660         if test "$ol_arg" = "invalid" ; then
2661                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2662 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2663    { (exit 1); exit 1; }; }
2664         fi
2665         ol_enable_rewrite="$ol_arg"
2666
2667 else
2668         ol_enable_rewrite=auto
2669 fi;
2670 # end --enable-rewrite
2671 # OpenLDAP --enable-rlookups
2672
2673         # Check whether --enable-rlookups or --disable-rlookups was given.
2674 if test "${enable_rlookups+set}" = set; then
2675   enableval="$enable_rlookups"
2676
2677         ol_arg=invalid
2678         for ol_val in auto yes no ; do
2679                 if test "$enableval" = "$ol_val" ; then
2680                         ol_arg="$ol_val"
2681                 fi
2682         done
2683         if test "$ol_arg" = "invalid" ; then
2684                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2685 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2686    { (exit 1); exit 1; }; }
2687         fi
2688         ol_enable_rlookups="$ol_arg"
2689
2690 else
2691         ol_enable_rlookups=no
2692 fi;
2693 # end --enable-rlookups
2694 # OpenLDAP --enable-slapi
2695
2696         # Check whether --enable-slapi or --disable-slapi was given.
2697 if test "${enable_slapi+set}" = set; then
2698   enableval="$enable_slapi"
2699
2700         ol_arg=invalid
2701         for ol_val in auto yes no ; do
2702                 if test "$enableval" = "$ol_val" ; then
2703                         ol_arg="$ol_val"
2704                 fi
2705         done
2706         if test "$ol_arg" = "invalid" ; then
2707                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2709    { (exit 1); exit 1; }; }
2710         fi
2711         ol_enable_slapi="$ol_arg"
2712
2713 else
2714         ol_enable_slapi=no
2715 fi;
2716 # end --enable-slapi
2717 # OpenLDAP --enable-slp
2718
2719         # Check whether --enable-slp or --disable-slp was given.
2720 if test "${enable_slp+set}" = set; then
2721   enableval="$enable_slp"
2722
2723         ol_arg=invalid
2724         for ol_val in auto yes no ; do
2725                 if test "$enableval" = "$ol_val" ; then
2726                         ol_arg="$ol_val"
2727                 fi
2728         done
2729         if test "$ol_arg" = "invalid" ; then
2730                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2731 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2732    { (exit 1); exit 1; }; }
2733         fi
2734         ol_enable_slp="$ol_arg"
2735
2736 else
2737         ol_enable_slp=no
2738 fi;
2739 # end --enable-slp
2740 # OpenLDAP --enable-wrappers
2741
2742         # Check whether --enable-wrappers or --disable-wrappers was given.
2743 if test "${enable_wrappers+set}" = set; then
2744   enableval="$enable_wrappers"
2745
2746         ol_arg=invalid
2747         for ol_val in auto yes no ; do
2748                 if test "$enableval" = "$ol_val" ; then
2749                         ol_arg="$ol_val"
2750                 fi
2751         done
2752         if test "$ol_arg" = "invalid" ; then
2753                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2754 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2755    { (exit 1); exit 1; }; }
2756         fi
2757         ol_enable_wrappers="$ol_arg"
2758
2759 else
2760         ol_enable_wrappers=no
2761 fi;
2762 # end --enable-wrappers
2763
2764 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2765         passwd perl relay shell sql"
2766
2767 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2768 if test "${enable_xxslapbackends+set}" = set; then
2769   enableval="$enable_xxslapbackends"
2770
2771 fi;
2772
2773 # OpenLDAP --enable-backends
2774
2775         # Check whether --enable-backends or --disable-backends was given.
2776 if test "${enable_backends+set}" = set; then
2777   enableval="$enable_backends"
2778
2779         ol_arg=invalid
2780         for ol_val in no yes mod ; do
2781                 if test "$enableval" = "$ol_val" ; then
2782                         ol_arg="$ol_val"
2783                 fi
2784         done
2785         if test "$ol_arg" = "invalid" ; then
2786                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2787 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2788    { (exit 1); exit 1; }; }
2789         fi
2790         ol_enable_backends="$ol_arg"
2791
2792 fi;
2793 # end --enable-backends
2794 # OpenLDAP --enable-bdb
2795
2796         # Check whether --enable-bdb or --disable-bdb was given.
2797 if test "${enable_bdb+set}" = set; then
2798   enableval="$enable_bdb"
2799
2800         ol_arg=invalid
2801         for ol_val in no yes mod ; do
2802                 if test "$enableval" = "$ol_val" ; then
2803                         ol_arg="$ol_val"
2804                 fi
2805         done
2806         if test "$ol_arg" = "invalid" ; then
2807                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2808 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2809    { (exit 1); exit 1; }; }
2810         fi
2811         ol_enable_bdb="$ol_arg"
2812
2813 else
2814         ol_enable_bdb=${ol_enable_backends:-yes}
2815 fi;
2816 # end --enable-bdb
2817 # OpenLDAP --enable-dnssrv
2818
2819         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2820 if test "${enable_dnssrv+set}" = set; then
2821   enableval="$enable_dnssrv"
2822
2823         ol_arg=invalid
2824         for ol_val in no yes mod ; do
2825                 if test "$enableval" = "$ol_val" ; then
2826                         ol_arg="$ol_val"
2827                 fi
2828         done
2829         if test "$ol_arg" = "invalid" ; then
2830                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2831 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2832    { (exit 1); exit 1; }; }
2833         fi
2834         ol_enable_dnssrv="$ol_arg"
2835
2836 else
2837         ol_enable_dnssrv=${ol_enable_backends:-no}
2838 fi;
2839 # end --enable-dnssrv
2840 # OpenLDAP --enable-hdb
2841
2842         # Check whether --enable-hdb or --disable-hdb was given.
2843 if test "${enable_hdb+set}" = set; then
2844   enableval="$enable_hdb"
2845
2846         ol_arg=invalid
2847         for ol_val in no yes mod ; do
2848                 if test "$enableval" = "$ol_val" ; then
2849                         ol_arg="$ol_val"
2850                 fi
2851         done
2852         if test "$ol_arg" = "invalid" ; then
2853                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2854 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2855    { (exit 1); exit 1; }; }
2856         fi
2857         ol_enable_hdb="$ol_arg"
2858
2859 else
2860         ol_enable_hdb=${ol_enable_backends:-yes}
2861 fi;
2862 # end --enable-hdb
2863 # OpenLDAP --enable-ldap
2864
2865         # Check whether --enable-ldap or --disable-ldap was given.
2866 if test "${enable_ldap+set}" = set; then
2867   enableval="$enable_ldap"
2868
2869         ol_arg=invalid
2870         for ol_val in no yes mod ; do
2871                 if test "$enableval" = "$ol_val" ; then
2872                         ol_arg="$ol_val"
2873                 fi
2874         done
2875         if test "$ol_arg" = "invalid" ; then
2876                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2878    { (exit 1); exit 1; }; }
2879         fi
2880         ol_enable_ldap="$ol_arg"
2881
2882 else
2883         ol_enable_ldap=${ol_enable_backends:-no}
2884 fi;
2885 # end --enable-ldap
2886 # OpenLDAP --enable-ldbm
2887
2888         # Check whether --enable-ldbm or --disable-ldbm was given.
2889 if test "${enable_ldbm+set}" = set; then
2890   enableval="$enable_ldbm"
2891
2892         ol_arg=invalid
2893         for ol_val in no yes mod ; do
2894                 if test "$enableval" = "$ol_val" ; then
2895                         ol_arg="$ol_val"
2896                 fi
2897         done
2898         if test "$ol_arg" = "invalid" ; then
2899                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2901    { (exit 1); exit 1; }; }
2902         fi
2903         ol_enable_ldbm="$ol_arg"
2904
2905 else
2906         ol_enable_ldbm=${ol_enable_backends:-no}
2907 fi;
2908 # end --enable-ldbm
2909 # OpenLDAP --enable-ldbm_api
2910
2911         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2912 if test "${enable_ldbm_api+set}" = set; then
2913   enableval="$enable_ldbm_api"
2914
2915         ol_arg=invalid
2916         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2917                 if test "$enableval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2923 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_enable_ldbm_api="$ol_arg"
2927
2928 else
2929         ol_enable_ldbm_api=auto
2930 fi;
2931 # end --enable-ldbm_api
2932
2933 # OpenLDAP --enable-ldbm_type
2934
2935         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2936 if test "${enable_ldbm_type+set}" = set; then
2937   enableval="$enable_ldbm_type"
2938
2939         ol_arg=invalid
2940         for ol_val in auto btree hash ; do
2941                 if test "$enableval" = "$ol_val" ; then
2942                         ol_arg="$ol_val"
2943                 fi
2944         done
2945         if test "$ol_arg" = "invalid" ; then
2946                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2947 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2948    { (exit 1); exit 1; }; }
2949         fi
2950         ol_enable_ldbm_type="$ol_arg"
2951
2952 else
2953         ol_enable_ldbm_type=auto
2954 fi;
2955 # end --enable-ldbm_type
2956
2957 # OpenLDAP --enable-meta
2958
2959         # Check whether --enable-meta or --disable-meta was given.
2960 if test "${enable_meta+set}" = set; then
2961   enableval="$enable_meta"
2962
2963         ol_arg=invalid
2964         for ol_val in no yes mod ; do
2965                 if test "$enableval" = "$ol_val" ; then
2966                         ol_arg="$ol_val"
2967                 fi
2968         done
2969         if test "$ol_arg" = "invalid" ; then
2970                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2972    { (exit 1); exit 1; }; }
2973         fi
2974         ol_enable_meta="$ol_arg"
2975
2976 else
2977         ol_enable_meta=${ol_enable_backends:-no}
2978 fi;
2979 # end --enable-meta
2980 # OpenLDAP --enable-monitor
2981
2982         # Check whether --enable-monitor or --disable-monitor was given.
2983 if test "${enable_monitor+set}" = set; then
2984   enableval="$enable_monitor"
2985
2986         ol_arg=invalid
2987         for ol_val in no yes mod ; do
2988                 if test "$enableval" = "$ol_val" ; then
2989                         ol_arg="$ol_val"
2990                 fi
2991         done
2992         if test "$ol_arg" = "invalid" ; then
2993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2995    { (exit 1); exit 1; }; }
2996         fi
2997         ol_enable_monitor="$ol_arg"
2998
2999 else
3000         ol_enable_monitor=${ol_enable_backends:-yes}
3001 fi;
3002 # end --enable-monitor
3003 # OpenLDAP --enable-null
3004
3005         # Check whether --enable-null or --disable-null was given.
3006 if test "${enable_null+set}" = set; then
3007   enableval="$enable_null"
3008
3009         ol_arg=invalid
3010         for ol_val in no yes mod ; do
3011                 if test "$enableval" = "$ol_val" ; then
3012                         ol_arg="$ol_val"
3013                 fi
3014         done
3015         if test "$ol_arg" = "invalid" ; then
3016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3018    { (exit 1); exit 1; }; }
3019         fi
3020         ol_enable_null="$ol_arg"
3021
3022 else
3023         ol_enable_null=${ol_enable_backends:-no}
3024 fi;
3025 # end --enable-null
3026 # OpenLDAP --enable-passwd
3027
3028         # Check whether --enable-passwd or --disable-passwd was given.
3029 if test "${enable_passwd+set}" = set; then
3030   enableval="$enable_passwd"
3031
3032         ol_arg=invalid
3033         for ol_val in no yes mod ; do
3034                 if test "$enableval" = "$ol_val" ; then
3035                         ol_arg="$ol_val"
3036                 fi
3037         done
3038         if test "$ol_arg" = "invalid" ; then
3039                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3041    { (exit 1); exit 1; }; }
3042         fi
3043         ol_enable_passwd="$ol_arg"
3044
3045 else
3046         ol_enable_passwd=${ol_enable_backends:-no}
3047 fi;
3048 # end --enable-passwd
3049 # OpenLDAP --enable-perl
3050
3051         # Check whether --enable-perl or --disable-perl was given.
3052 if test "${enable_perl+set}" = set; then
3053   enableval="$enable_perl"
3054
3055         ol_arg=invalid
3056         for ol_val in no yes mod ; do
3057                 if test "$enableval" = "$ol_val" ; then
3058                         ol_arg="$ol_val"
3059                 fi
3060         done
3061         if test "$ol_arg" = "invalid" ; then
3062                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3064    { (exit 1); exit 1; }; }
3065         fi
3066         ol_enable_perl="$ol_arg"
3067
3068 else
3069         ol_enable_perl=${ol_enable_backends:-no}
3070 fi;
3071 # end --enable-perl
3072 # OpenLDAP --enable-relay
3073
3074         # Check whether --enable-relay or --disable-relay was given.
3075 if test "${enable_relay+set}" = set; then
3076   enableval="$enable_relay"
3077
3078         ol_arg=invalid
3079         for ol_val in no yes mod ; do
3080                 if test "$enableval" = "$ol_val" ; then
3081                         ol_arg="$ol_val"
3082                 fi
3083         done
3084         if test "$ol_arg" = "invalid" ; then
3085                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3087    { (exit 1); exit 1; }; }
3088         fi
3089         ol_enable_relay="$ol_arg"
3090
3091 else
3092         ol_enable_relay=${ol_enable_backends:-yes}
3093 fi;
3094 # end --enable-relay
3095 # OpenLDAP --enable-shell
3096
3097         # Check whether --enable-shell or --disable-shell was given.
3098 if test "${enable_shell+set}" = set; then
3099   enableval="$enable_shell"
3100
3101         ol_arg=invalid
3102         for ol_val in no yes mod ; do
3103                 if test "$enableval" = "$ol_val" ; then
3104                         ol_arg="$ol_val"
3105                 fi
3106         done
3107         if test "$ol_arg" = "invalid" ; then
3108                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3109 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3110    { (exit 1); exit 1; }; }
3111         fi
3112         ol_enable_shell="$ol_arg"
3113
3114 else
3115         ol_enable_shell=${ol_enable_backends:-no}
3116 fi;
3117 # end --enable-shell
3118 # OpenLDAP --enable-sql
3119
3120         # Check whether --enable-sql or --disable-sql was given.
3121 if test "${enable_sql+set}" = set; then
3122   enableval="$enable_sql"
3123
3124         ol_arg=invalid
3125         for ol_val in no yes mod ; do
3126                 if test "$enableval" = "$ol_val" ; then
3127                         ol_arg="$ol_val"
3128                 fi
3129         done
3130         if test "$ol_arg" = "invalid" ; then
3131                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3132 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3133    { (exit 1); exit 1; }; }
3134         fi
3135         ol_enable_sql="$ol_arg"
3136
3137 else
3138         ol_enable_sql=${ol_enable_backends:-no}
3139 fi;
3140 # end --enable-sql
3141
3142 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3143         refint retcode rwm syncprov translucent unique"
3144
3145 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3146 if test "${enable_xxslapoverlays+set}" = set; then
3147   enableval="$enable_xxslapoverlays"
3148
3149 fi;
3150
3151 # OpenLDAP --enable-overlays
3152
3153         # Check whether --enable-overlays or --disable-overlays was given.
3154 if test "${enable_overlays+set}" = set; then
3155   enableval="$enable_overlays"
3156
3157         ol_arg=invalid
3158         for ol_val in no yes mod ; do
3159                 if test "$enableval" = "$ol_val" ; then
3160                         ol_arg="$ol_val"
3161                 fi
3162         done
3163         if test "$ol_arg" = "invalid" ; then
3164                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3165 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3166    { (exit 1); exit 1; }; }
3167         fi
3168         ol_enable_overlays="$ol_arg"
3169
3170 fi;
3171 # end --enable-overlays
3172 # OpenLDAP --enable-accesslog
3173
3174         # Check whether --enable-accesslog or --disable-accesslog was given.
3175 if test "${enable_accesslog+set}" = set; then
3176   enableval="$enable_accesslog"
3177
3178         ol_arg=invalid
3179         for ol_val in no yes mod ; do
3180                 if test "$enableval" = "$ol_val" ; then
3181                         ol_arg="$ol_val"
3182                 fi
3183         done
3184         if test "$ol_arg" = "invalid" ; then
3185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3186 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3187    { (exit 1); exit 1; }; }
3188         fi
3189         ol_enable_accesslog="$ol_arg"
3190
3191 else
3192         ol_enable_accesslog=${ol_enable_overlays:-no}
3193 fi;
3194 # end --enable-accesslog
3195
3196 # OpenLDAP --enable-denyop
3197
3198         # Check whether --enable-denyop or --disable-denyop was given.
3199 if test "${enable_denyop+set}" = set; then
3200   enableval="$enable_denyop"
3201
3202         ol_arg=invalid
3203         for ol_val in no yes mod ; do
3204                 if test "$enableval" = "$ol_val" ; then
3205                         ol_arg="$ol_val"
3206                 fi
3207         done
3208         if test "$ol_arg" = "invalid" ; then
3209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3210 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3211    { (exit 1); exit 1; }; }
3212         fi
3213         ol_enable_denyop="$ol_arg"
3214
3215 else
3216         ol_enable_denyop=${ol_enable_overlays:-no}
3217 fi;
3218 # end --enable-denyop
3219
3220 # OpenLDAP --enable-dyngroup
3221
3222         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3223 if test "${enable_dyngroup+set}" = set; then
3224   enableval="$enable_dyngroup"
3225
3226         ol_arg=invalid
3227         for ol_val in no yes mod ; do
3228                 if test "$enableval" = "$ol_val" ; then
3229                         ol_arg="$ol_val"
3230                 fi
3231         done
3232         if test "$ol_arg" = "invalid" ; then
3233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3234 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3235    { (exit 1); exit 1; }; }
3236         fi
3237         ol_enable_dyngroup="$ol_arg"
3238
3239 else
3240         ol_enable_dyngroup=${ol_enable_overlays:-no}
3241 fi;
3242 # end --enable-dyngroup
3243
3244 # OpenLDAP --enable-dynlist
3245
3246         # Check whether --enable-dynlist or --disable-dynlist was given.
3247 if test "${enable_dynlist+set}" = set; then
3248   enableval="$enable_dynlist"
3249
3250         ol_arg=invalid
3251         for ol_val in no yes mod ; do
3252                 if test "$enableval" = "$ol_val" ; then
3253                         ol_arg="$ol_val"
3254                 fi
3255         done
3256         if test "$ol_arg" = "invalid" ; then
3257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3258 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3259    { (exit 1); exit 1; }; }
3260         fi
3261         ol_enable_dynlist="$ol_arg"
3262
3263 else
3264         ol_enable_dynlist=${ol_enable_overlays:-no}
3265 fi;
3266 # end --enable-dynlist
3267
3268 # OpenLDAP --enable-glue
3269
3270         # Check whether --enable-glue or --disable-glue was given.
3271 if test "${enable_glue+set}" = set; then
3272   enableval="$enable_glue"
3273
3274         ol_arg=invalid
3275         for ol_val in no yes mod ; do
3276                 if test "$enableval" = "$ol_val" ; then
3277                         ol_arg="$ol_val"
3278                 fi
3279         done
3280         if test "$ol_arg" = "invalid" ; then
3281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3282 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3283    { (exit 1); exit 1; }; }
3284         fi
3285         ol_enable_glue="$ol_arg"
3286
3287 else
3288         ol_enable_glue=${ol_enable_overlays:-yes}
3289 fi;
3290 # end --enable-glue
3291
3292 # OpenLDAP --enable-lastmod
3293
3294         # Check whether --enable-lastmod or --disable-lastmod was given.
3295 if test "${enable_lastmod+set}" = set; then
3296   enableval="$enable_lastmod"
3297
3298         ol_arg=invalid
3299         for ol_val in no yes mod ; do
3300                 if test "$enableval" = "$ol_val" ; then
3301                         ol_arg="$ol_val"
3302                 fi
3303         done
3304         if test "$ol_arg" = "invalid" ; then
3305                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3306 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3307    { (exit 1); exit 1; }; }
3308         fi
3309         ol_enable_lastmod="$ol_arg"
3310
3311 else
3312         ol_enable_lastmod=${ol_enable_overlays:-no}
3313 fi;
3314 # end --enable-lastmod
3315
3316 # OpenLDAP --enable-ppolicy
3317
3318         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3319 if test "${enable_ppolicy+set}" = set; then
3320   enableval="$enable_ppolicy"
3321
3322         ol_arg=invalid
3323         for ol_val in no yes mod ; do
3324                 if test "$enableval" = "$ol_val" ; then
3325                         ol_arg="$ol_val"
3326                 fi
3327         done
3328         if test "$ol_arg" = "invalid" ; then
3329                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3330 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3331    { (exit 1); exit 1; }; }
3332         fi
3333         ol_enable_ppolicy="$ol_arg"
3334
3335 else
3336         ol_enable_ppolicy=${ol_enable_overlays:-no}
3337 fi;
3338 # end --enable-ppolicy
3339
3340 # OpenLDAP --enable-proxycache
3341
3342         # Check whether --enable-proxycache or --disable-proxycache was given.
3343 if test "${enable_proxycache+set}" = set; then
3344   enableval="$enable_proxycache"
3345
3346         ol_arg=invalid
3347         for ol_val in no yes mod ; do
3348                 if test "$enableval" = "$ol_val" ; then
3349                         ol_arg="$ol_val"
3350                 fi
3351         done
3352         if test "$ol_arg" = "invalid" ; then
3353                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3354 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3355    { (exit 1); exit 1; }; }
3356         fi
3357         ol_enable_proxycache="$ol_arg"
3358
3359 else
3360         ol_enable_proxycache=${ol_enable_overlays:-no}
3361 fi;
3362 # end --enable-proxycache
3363
3364 # OpenLDAP --enable-refint
3365
3366         # Check whether --enable-refint or --disable-refint was given.
3367 if test "${enable_refint+set}" = set; then
3368   enableval="$enable_refint"
3369
3370         ol_arg=invalid
3371         for ol_val in no yes mod ; do
3372                 if test "$enableval" = "$ol_val" ; then
3373                         ol_arg="$ol_val"
3374                 fi
3375         done
3376         if test "$ol_arg" = "invalid" ; then
3377                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3379    { (exit 1); exit 1; }; }
3380         fi
3381         ol_enable_refint="$ol_arg"
3382
3383 else
3384         ol_enable_refint=${ol_enable_overlays:-no}
3385 fi;
3386 # end --enable-refint
3387
3388 # OpenLDAP --enable-retcode
3389
3390         # Check whether --enable-retcode or --disable-retcode was given.
3391 if test "${enable_retcode+set}" = set; then
3392   enableval="$enable_retcode"
3393
3394         ol_arg=invalid
3395         for ol_val in no yes mod ; do
3396                 if test "$enableval" = "$ol_val" ; then
3397                         ol_arg="$ol_val"
3398                 fi
3399         done
3400         if test "$ol_arg" = "invalid" ; then
3401                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3402 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3403    { (exit 1); exit 1; }; }
3404         fi
3405         ol_enable_retcode="$ol_arg"
3406
3407 else
3408         ol_enable_retcode=${ol_enable_overlays:-no}
3409 fi;
3410 # end --enable-retcode
3411
3412 # OpenLDAP --enable-rwm
3413
3414         # Check whether --enable-rwm or --disable-rwm was given.
3415 if test "${enable_rwm+set}" = set; then
3416   enableval="$enable_rwm"
3417
3418         ol_arg=invalid
3419         for ol_val in no yes mod ; do
3420                 if test "$enableval" = "$ol_val" ; then
3421                         ol_arg="$ol_val"
3422                 fi
3423         done
3424         if test "$ol_arg" = "invalid" ; then
3425                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3426 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3427    { (exit 1); exit 1; }; }
3428         fi
3429         ol_enable_rwm="$ol_arg"
3430
3431 else
3432         ol_enable_rwm=${ol_enable_overlays:-no}
3433 fi;
3434 # end --enable-rwm
3435
3436 # OpenLDAP --enable-syncprov
3437
3438         # Check whether --enable-syncprov or --disable-syncprov was given.
3439 if test "${enable_syncprov+set}" = set; then
3440   enableval="$enable_syncprov"
3441
3442         ol_arg=invalid
3443         for ol_val in no yes mod ; do
3444                 if test "$enableval" = "$ol_val" ; then
3445                         ol_arg="$ol_val"
3446                 fi
3447         done
3448         if test "$ol_arg" = "invalid" ; then
3449                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3450 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3451    { (exit 1); exit 1; }; }
3452         fi
3453         ol_enable_syncprov="$ol_arg"
3454
3455 else
3456         ol_enable_syncprov=${ol_enable_overlays:-yes}
3457 fi;
3458 # end --enable-syncprov
3459
3460 # OpenLDAP --enable-translucent
3461
3462         # Check whether --enable-translucent or --disable-translucent was given.
3463 if test "${enable_translucent+set}" = set; then
3464   enableval="$enable_translucent"
3465
3466         ol_arg=invalid
3467         for ol_val in no yes mod ; do
3468                 if test "$enableval" = "$ol_val" ; then
3469                         ol_arg="$ol_val"
3470                 fi
3471         done
3472         if test "$ol_arg" = "invalid" ; then
3473                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3474 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3475    { (exit 1); exit 1; }; }
3476         fi
3477         ol_enable_translucent="$ol_arg"
3478
3479 else
3480         ol_enable_translucent=${ol_enable_overlays:-no}
3481 fi;
3482 # end --enable-translucent
3483
3484 # OpenLDAP --enable-unique
3485
3486         # Check whether --enable-unique or --disable-unique was given.
3487 if test "${enable_unique+set}" = set; then
3488   enableval="$enable_unique"
3489
3490         ol_arg=invalid
3491         for ol_val in no yes mod ; do
3492                 if test "$enableval" = "$ol_val" ; then
3493                         ol_arg="$ol_val"
3494                 fi
3495         done
3496         if test "$ol_arg" = "invalid" ; then
3497                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3498 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3499    { (exit 1); exit 1; }; }
3500         fi
3501         ol_enable_unique="$ol_arg"
3502
3503 else
3504         ol_enable_unique=${ol_enable_overlays:-no}
3505 fi;
3506 # end --enable-unique
3507
3508
3509 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3510 if test "${enable_xxslurpdoptions+set}" = set; then
3511   enableval="$enable_xxslurpdoptions"
3512
3513 fi;
3514 # OpenLDAP --enable-slurpd
3515
3516         # Check whether --enable-slurpd or --disable-slurpd was given.
3517 if test "${enable_slurpd+set}" = set; then
3518   enableval="$enable_slurpd"
3519
3520         ol_arg=invalid
3521         for ol_val in auto yes no ; do
3522                 if test "$enableval" = "$ol_val" ; then
3523                         ol_arg="$ol_val"
3524                 fi
3525         done
3526         if test "$ol_arg" = "invalid" ; then
3527                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3528 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3529    { (exit 1); exit 1; }; }
3530         fi
3531         ol_enable_slurpd="$ol_arg"
3532
3533 else
3534         ol_enable_slurpd=auto
3535 fi;
3536 # end --enable-slurpd
3537
3538 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3539 if test "${enable_xxliboptions+set}" = set; then
3540   enableval="$enable_xxliboptions"
3541
3542 fi;
3543 # Check whether --enable-static or --disable-static was given.
3544 if test "${enable_static+set}" = set; then
3545   enableval="$enable_static"
3546   p=${PACKAGE-default}
3547     case $enableval in
3548     yes) enable_static=yes ;;
3549     no) enable_static=no ;;
3550     *)
3551      enable_static=no
3552       # Look at the argument we got.  We use all the common list separators.
3553       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3554       for pkg in $enableval; do
3555         IFS="$lt_save_ifs"
3556         if test "X$pkg" = "X$p"; then
3557           enable_static=yes
3558         fi
3559       done
3560       IFS="$lt_save_ifs"
3561       ;;
3562     esac
3563 else
3564   enable_static=yes
3565 fi;
3566
3567 # Check whether --enable-shared or --disable-shared was given.
3568 if test "${enable_shared+set}" = set; then
3569   enableval="$enable_shared"
3570   p=${PACKAGE-default}
3571     case $enableval in
3572     yes) enable_shared=yes ;;
3573     no) enable_shared=no ;;
3574     *)
3575       enable_shared=no
3576       # Look at the argument we got.  We use all the common list separators.
3577       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3578       for pkg in $enableval; do
3579         IFS="$lt_save_ifs"
3580         if test "X$pkg" = "X$p"; then
3581           enable_shared=yes
3582         fi
3583       done
3584       IFS="$lt_save_ifs"
3585       ;;
3586     esac
3587 else
3588   enable_shared=yes
3589 fi;
3590
3591
3592
3593 # validate options
3594 if test $ol_enable_slapd = no ; then
3595                 if test $ol_enable_slapi = yes ; then
3596                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3597 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3598         fi
3599         case "$ol_enable_backends" in yes | mod)
3600                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3601 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3602         esac
3603         for i in $Backends; do
3604                 eval "ol_tmp=\$ol_enable_$i"
3605                 if test $ol_tmp != no ; then
3606                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3607 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3608                         eval "ol_enable_$i=no"
3609                 fi
3610         done
3611         if test $ol_enable_modules = yes ; then
3612                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3614         fi
3615         if test $ol_enable_multimaster = yes ; then
3616                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3618         fi
3619         if test $ol_enable_wrappers = yes ; then
3620                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3622         fi
3623         if test $ol_enable_rlookups = yes ; then
3624                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3625 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3626         fi
3627         if test $ol_enable_aci = yes ; then
3628                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3629 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3630         fi
3631         if test $ol_enable_ldbm_api != auto ; then
3632                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3633 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3634         fi
3635         if test $ol_enable_ldbm_type != auto ; then
3636                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3637 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3638         fi
3639         if test $ol_enable_slurpd = yes ; then
3640                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3641 echo "$as_me: error: slurpd requires slapd" >&2;}
3642    { (exit 1); exit 1; }; }
3643         fi
3644         if test $ol_enable_rewrite = yes ; then
3645                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3647         fi
3648                 case "$ol_enable_overlays" in yes | mod)
3649                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3651         esac
3652         for i in $Overlays; do
3653                 eval "ol_tmp=\$ol_enable_$i"
3654                 if test $ol_tmp != no ; then
3655                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3657                         eval "ol_enable_$i=no"
3658                 fi
3659         done
3660
3661         # force settings to no
3662         ol_enable_slapi=no
3663
3664         ol_enable_backends=
3665         ol_enable_overlays=
3666         ol_enable_modules=no
3667         ol_enable_multimaster=no
3668         ol_enable_rlookups=no
3669         ol_enable_aci=no
3670         ol_enable_wrappers=no
3671
3672         ol_enable_ldbm_api=no
3673         ol_enable_ldbm_type=no
3674
3675         ol_enable_slurpd=no
3676
3677         ol_enable_rewrite=no
3678
3679 elif test $ol_enable_ldbm = no ; then
3680
3681         if test $ol_enable_ldbm_api != auto ; then
3682                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3683 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3684         fi
3685
3686         if test $ol_enable_ldbm_type != auto ; then
3687                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3688 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3689         fi
3690
3691         if test $ol_enable_modules != yes -a \
3692                 $ol_enable_bdb = no -a \
3693                 $ol_enable_dnssrv = no -a \
3694                 $ol_enable_hdb = no -a \
3695                 $ol_enable_ldap = no -a \
3696                 $ol_enable_meta = no -a \
3697                 $ol_enable_monitor = no -a \
3698                 $ol_enable_null = no -a \
3699                 $ol_enable_passwd = no -a \
3700                 $ol_enable_perl = no -a \
3701                 $ol_enable_relay = no -a \
3702                 $ol_enable_shell = no -a \
3703                 $ol_enable_sql = no ; then
3704
3705                 if test $ol_enable_slapd = yes ; then
3706                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3707 echo "$as_me: error: slapd requires a backend" >&2;}
3708    { (exit 1); exit 1; }; }
3709                 else
3710                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3711 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3712                         ol_enable_slapd=no
3713                 fi
3714         fi
3715
3716         ol_enable_ldbm_api=no
3717         ol_enable_ldbm_type=no
3718
3719         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3720                 ol_enable_ldbm_api=berkeley
3721         fi
3722
3723 else
3724                 if test $ol_enable_ldbm_api = gdbm -a \
3725                 $ol_enable_ldbm_type = btree ; then
3726                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3727 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3728    { (exit 1); exit 1; }; }
3729         fi
3730         if test $ol_enable_ldbm_api = mdbm -a \
3731                 $ol_enable_ldbm_type = btree ; then
3732                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3733 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3734    { (exit 1); exit 1; }; }
3735         fi
3736         if test $ol_enable_ldbm_api = ndbm -a \
3737                 $ol_enable_ldbm_type = btree ; then
3738                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3739 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3740    { (exit 1); exit 1; }; }
3741         fi
3742
3743         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3744                 if test $ol_enable_ldbm_api = auto ; then
3745                         ol_enable_ldbm_api=berkeley
3746                 elif test $ol_enable_ldbm_api != berkeley ; then
3747                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3748 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3749    { (exit 1); exit 1; }; }
3750                 fi
3751         fi
3752 fi
3753
3754 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3755         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3756 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3757    { (exit 1); exit 1; }; }
3758 fi
3759
3760 if test $ol_enable_slurpd = yes ; then
3761                 if test $ol_with_threads = no ; then
3762                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3763 echo "$as_me: error: slurpd requires threads" >&2;}
3764    { (exit 1); exit 1; }; }
3765         fi
3766 fi
3767
3768 if test $ol_enable_lmpasswd = yes ; then
3769         if test $ol_with_tls = no ; then
3770                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3771 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3772    { (exit 1); exit 1; }; }
3773         fi
3774 fi
3775
3776 if test $ol_enable_kbind = yes ; then
3777         if test $ol_with_kerberos = no ; then
3778                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3779 echo "$as_me: error: options require --with-kerberos" >&2;}
3780    { (exit 1); exit 1; }; }
3781         elif test $ol_with_kerberos = auto ; then
3782                 ol_with_kerberos=yes
3783         fi
3784
3785 elif test $ol_enable_kbind = no ; then
3786         if test $ol_with_kerberos = auto ; then
3787                 ol_with_kerberos=no
3788         elif test $ol_with_kerberos != no ; then
3789                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3790 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3791                 ol_with_kerberos=no
3792         fi
3793 fi
3794
3795 if test $ol_enable_spasswd = yes ; then
3796         if test $ol_with_cyrus_sasl = no ; then
3797                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3798 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3799    { (exit 1); exit 1; }; }
3800         fi
3801         ol_with_cyrus_sasl=yes
3802 fi
3803
3804 echo "$as_me:$LINENO: result: done" >&5
3805 echo "${ECHO_T}done" >&6
3806
3807 LDAP_LIBS=
3808 LDBM_LIBS=
3809 LTHREAD_LIBS=
3810 LUTIL_LIBS=
3811
3812 SLAPD_LIBS=
3813 SLURPD_LIBS=
3814
3815 BUILD_SLAPD=no
3816 BUILD_SLURPD=no
3817
3818 BUILD_THREAD=no
3819
3820 BUILD_SLAPI=no
3821 SLAPD_SLAPI_DEPEND=
3822
3823 BUILD_BDB=no
3824 BUILD_DNSSRV=no
3825 BUILD_HDB=no
3826 BUILD_LDAP=no
3827 BUILD_LDBM=no
3828 BUILD_META=no
3829 BUILD_MONITOR=no
3830 BUILD_NULL=no
3831 BUILD_PASSWD=no
3832 BUILD_PERL=no
3833 BUILD_RELAY=no
3834 BUILD_SHELL=no
3835 BUILD_SQL=no
3836
3837 BUILD_ACCESSLOG=no
3838 BUILD_DENYOP=no
3839 BUILD_DYNGROUP=no
3840 BUILD_DYNLIST=no
3841 BUILD_GLUE=no
3842 BUILD_LASTMOD=no
3843 BUILD_PPOLICY=no
3844 BUILD_PROXYCACHE=no
3845 BUILD_REFINT=no
3846 BUILD_RETCODE=no
3847 BUILD_RWM=no
3848 BUILD_SYNCPROV=no
3849 BUILD_TRANSLUCENT=no
3850 BUILD_UNIQUE=no
3851
3852 SLAPD_STATIC_OVERLAYS=
3853 SLAPD_DYNAMIC_OVERLAYS=
3854
3855 SLAPD_MODULES_LDFLAGS=
3856 SLAPD_MODULES_CPPFLAGS=
3857
3858 SLAPD_STATIC_BACKENDS=back-ldif
3859 SLAPD_DYNAMIC_BACKENDS=
3860
3861 SLAPD_PERL_LDFLAGS=
3862 MOD_PERL_LDFLAGS=
3863 PERL_CPPFLAGS=
3864
3865 SLAPD_SQL_LDFLAGS=
3866 SLAPD_SQL_LIBS=
3867 SLAPD_SQL_INCLUDES=
3868
3869 KRB4_LIBS=
3870 KRB5_LIBS=
3871 SASL_LIBS=
3872 TLS_LIBS=
3873 MODULES_LIBS=
3874 SLAPI_LIBS=
3875 LIBSLAPI=
3876 LIBSLAPITOOLS=
3877 AUTH_LIBS=
3878
3879 SLAPD_SLP_LIBS=
3880 SLAPD_GMP_LIBS=
3881
3882
3883
3884 cat >>confdefs.h <<\_ACEOF
3885 #define HAVE_MKVERSION 1
3886 _ACEOF
3887
3888
3889
3890
3891 ol_aix_threads=no
3892 case "$target" in
3893 *-*-aix*)       if test -z "$CC" ; then
3894                 case "$ol_with_threads" in
3895                 auto | yes |  posix) ol_aix_threads=yes ;;
3896                 esac
3897         fi
3898 ;;
3899 esac
3900
3901 if test $ol_aix_threads = yes ; then
3902         if test -z "${CC}" ; then
3903                 for ac_prog in cc_r xlc_r cc
3904 do
3905   # Extract the first word of "$ac_prog", so it can be a program name with args.
3906 set dummy $ac_prog; ac_word=$2
3907 echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3909 if test "${ac_cv_prog_CC+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   if test -n "$CC"; then
3913   ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922     ac_cv_prog_CC="$ac_prog"
3923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927 done
3928
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933   echo "$as_me:$LINENO: result: $CC" >&5
3934 echo "${ECHO_T}$CC" >&6
3935 else
3936   echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938 fi
3939
3940   test -n "$CC" && break
3941 done
3942
3943
3944                 if test "$CC" = cc ; then
3945                                                 if test $ol_with_threads != auto ; then
3946                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3947 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3948    { (exit 1); exit 1; }; }
3949                         else
3950                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3951 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3952                         fi
3953                         ol_with_threads=no
3954                 fi
3955         fi
3956
3957         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3958                 ol_with_threads=posix
3959                 ol_cv_pthread_create=yes
3960         fi
3961 fi
3962
3963 if test -z "${CC}"; then
3964         for ac_prog in cc gcc
3965 do
3966   # Extract the first word of "$ac_prog", so it can be a program name with args.
3967 set dummy $ac_prog; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_CC+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   if test -n "$CC"; then
3974   ac_cv_prog_CC="$CC" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983     ac_cv_prog_CC="$ac_prog"
3984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985     break 2
3986   fi
3987 done
3988 done
3989
3990 fi
3991 fi
3992 CC=$ac_cv_prog_CC
3993 if test -n "$CC"; then
3994   echo "$as_me:$LINENO: result: $CC" >&5
3995 echo "${ECHO_T}$CC" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001   test -n "$CC" && break
4002 done
4003 test -n "$CC" || CC="missing"
4004
4005
4006         if test "${CC}" = "missing" ; then
4007                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4008 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4009    { (exit 1); exit 1; }; }
4010         fi
4011 fi
4012
4013 if test -z "${AR}"; then
4014         for ac_prog in ar gar
4015 do
4016   # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_prog_AR+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   if test -n "$AR"; then
4024   ac_cv_prog_AR="$AR" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_exec_ext in '' $ac_executable_extensions; do
4032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033     ac_cv_prog_AR="$ac_prog"
4034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038 done
4039
4040 fi
4041 fi
4042 AR=$ac_cv_prog_AR
4043 if test -n "$AR"; then
4044   echo "$as_me:$LINENO: result: $AR" >&5
4045 echo "${ECHO_T}$AR" >&6
4046 else
4047   echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050
4051   test -n "$AR" && break
4052 done
4053 test -n "$AR" || AR="missing"
4054
4055
4056         if test "${AR}" = "missing" ; then
4057                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4058 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4059    { (exit 1); exit 1; }; }
4060         fi
4061 fi
4062
4063
4064
4065
4066
4067 # Check whether --enable-fast-install or --disable-fast-install was given.
4068 if test "${enable_fast_install+set}" = set; then
4069   enableval="$enable_fast_install"
4070   p=${PACKAGE-default}
4071     case $enableval in
4072     yes) enable_fast_install=yes ;;
4073     no) enable_fast_install=no ;;
4074     *)
4075       enable_fast_install=no
4076       # Look at the argument we got.  We use all the common list separators.
4077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4078       for pkg in $enableval; do
4079         IFS="$lt_save_ifs"
4080         if test "X$pkg" = "X$p"; then
4081           enable_fast_install=yes
4082         fi
4083       done
4084       IFS="$lt_save_ifs"
4085       ;;
4086     esac
4087 else
4088   enable_fast_install=yes
4089 fi;
4090
4091 DEPDIR="${am__leading_dot}deps"
4092
4093           ac_config_commands="$ac_config_commands depfiles"
4094
4095
4096 am_make=${MAKE-make}
4097 cat > confinc << 'END'
4098 am__doit:
4099         @echo done
4100 .PHONY: am__doit
4101 END
4102 # If we don't find an include directive, just comment out the code.
4103 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4104 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4105 am__include="#"
4106 am__quote=
4107 _am_result=none
4108 # First try GNU make style include.
4109 echo "include confinc" > confmf
4110 # We grep out `Entering directory' and `Leaving directory'
4111 # messages which can occur if `w' ends up in MAKEFLAGS.
4112 # In particular we don't look at `^make:' because GNU make might
4113 # be invoked under some other name (usually "gmake"), in which
4114 # case it prints its new name instead of `make'.
4115 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4116    am__include=include
4117    am__quote=
4118    _am_result=GNU
4119 fi
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122    echo '.include "confinc"' > confmf
4123    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4124       am__include=.include
4125       am__quote="\""
4126       _am_result=BSD
4127    fi
4128 fi
4129
4130
4131 echo "$as_me:$LINENO: result: $_am_result" >&5
4132 echo "${ECHO_T}$_am_result" >&6
4133 rm -f confinc confmf
4134
4135 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4136 if test "${enable_dependency_tracking+set}" = set; then
4137   enableval="$enable_dependency_tracking"
4138
4139 fi;
4140 if test "x$enable_dependency_tracking" != xno; then
4141   am_depcomp="$ac_aux_dir/depcomp"
4142   AMDEPBACKSLASH='\'
4143 fi
4144
4145
4146 if test "x$enable_dependency_tracking" != xno; then
4147   AMDEP_TRUE=
4148   AMDEP_FALSE='#'
4149 else
4150   AMDEP_TRUE='#'
4151   AMDEP_FALSE=
4152 fi
4153
4154
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 if test -n "$ac_tool_prefix"; then
4162   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_CC+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$CC"; then
4170   ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186 fi
4187 fi
4188 CC=$ac_cv_prog_CC
4189 if test -n "$CC"; then
4190   echo "$as_me:$LINENO: result: $CC" >&5
4191 echo "${ECHO_T}$CC" >&6
4192 else
4193   echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4195 fi
4196
4197 fi
4198 if test -z "$ac_cv_prog_CC"; then
4199   ac_ct_CC=$CC
4200   # Extract the first word of "gcc", so it can be a program name with args.
4201 set dummy gcc; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   if test -n "$ac_ct_CC"; then
4208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_ac_ct_CC="gcc"
4218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222 done
4223
4224 fi
4225 fi
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4229 echo "${ECHO_T}$ac_ct_CC" >&6
4230 else
4231   echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233 fi
4234
4235   CC=$ac_ct_CC
4236 else
4237   CC="$ac_cv_prog_CC"
4238 fi
4239
4240 if test -z "$CC"; then
4241   if test -n "$ac_tool_prefix"; then
4242   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}cc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_CC+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -n "$CC"; then
4250   ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_prog_CC="${ac_tool_prefix}cc"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265
4266 fi
4267 fi
4268 CC=$ac_cv_prog_CC
4269 if test -n "$CC"; then
4270   echo "$as_me:$LINENO: result: $CC" >&5
4271 echo "${ECHO_T}$CC" >&6
4272 else
4273   echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4275 fi
4276
4277 fi
4278 if test -z "$ac_cv_prog_CC"; then
4279   ac_ct_CC=$CC
4280   # Extract the first word of "cc", so it can be a program name with args.
4281 set dummy cc; ac_word=$2
4282 echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   if test -n "$ac_ct_CC"; then
4288   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295   for ac_exec_ext in '' $ac_executable_extensions; do
4296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297     ac_cv_prog_ac_ct_CC="cc"
4298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299     break 2
4300   fi
4301 done
4302 done
4303
4304 fi
4305 fi
4306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4307 if test -n "$ac_ct_CC"; then
4308   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4309 echo "${ECHO_T}$ac_ct_CC" >&6
4310 else
4311   echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313 fi
4314
4315   CC=$ac_ct_CC
4316 else
4317   CC="$ac_cv_prog_CC"
4318 fi
4319
4320 fi
4321 if test -z "$CC"; then
4322   # Extract the first word of "cc", so it can be a program name with args.
4323 set dummy cc; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_prog_CC+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   if test -n "$CC"; then
4330   ac_cv_prog_CC="$CC" # Let the user override the test.
4331 else
4332   ac_prog_rejected=no
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_exec_ext in '' $ac_executable_extensions; do
4339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4341        ac_prog_rejected=yes
4342        continue
4343      fi
4344     ac_cv_prog_CC="cc"
4345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349 done
4350
4351 if test $ac_prog_rejected = yes; then
4352   # We found a bogon in the path, so make sure we never use it.
4353   set dummy $ac_cv_prog_CC
4354   shift
4355   if test $# != 0; then
4356     # We chose a different compiler from the bogus one.
4357     # However, it has the same basename, so the bogon will be chosen
4358     # first if we set CC to just the basename; use the full file name.
4359     shift
4360     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4361   fi
4362 fi
4363 fi
4364 fi
4365 CC=$ac_cv_prog_CC
4366 if test -n "$CC"; then
4367   echo "$as_me:$LINENO: result: $CC" >&5
4368 echo "${ECHO_T}$CC" >&6
4369 else
4370   echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6
4372 fi
4373
4374 fi
4375 if test -z "$CC"; then
4376   if test -n "$ac_tool_prefix"; then
4377   for ac_prog in cl
4378   do
4379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_CC+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$CC"; then
4387   ac_cv_prog_CC="$CC" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402
4403 fi
4404 fi
4405 CC=$ac_cv_prog_CC
4406 if test -n "$CC"; then
4407   echo "$as_me:$LINENO: result: $CC" >&5
4408 echo "${ECHO_T}$CC" >&6
4409 else
4410   echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4412 fi
4413
4414     test -n "$CC" && break
4415   done
4416 fi
4417 if test -z "$CC"; then
4418   ac_ct_CC=$CC
4419   for ac_prog in cl
4420 do
4421   # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   if test -n "$ac_ct_CC"; then
4429   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_prog_ac_ct_CC="$ac_prog"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445 fi
4446 fi
4447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4448 if test -n "$ac_ct_CC"; then
4449   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4450 echo "${ECHO_T}$ac_ct_CC" >&6
4451 else
4452   echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456   test -n "$ac_ct_CC" && break
4457 done
4458
4459   CC=$ac_ct_CC
4460 fi
4461
4462 fi
4463
4464
4465 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: no acceptable C compiler found in \$PATH
4468 See \`config.log' for more details." >&2;}
4469    { (exit 1); exit 1; }; }
4470
4471 # Provide some information about the compiler.
4472 echo "$as_me:$LINENO:" \
4473      "checking for C compiler version" >&5
4474 ac_compiler=`set X $ac_compile; echo $2`
4475 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4476   (eval $ac_compiler --version </dev/null >&5) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }
4480 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4481   (eval $ac_compiler -v </dev/null >&5) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }
4485 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4486   (eval $ac_compiler -V </dev/null >&5) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }
4490
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 ac_clean_files_save=$ac_clean_files
4507 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4508 # Try to create an executable without -o first, disregard a.out.
4509 # It will help us diagnose broken compilers, and finding out an intuition
4510 # of exeext.
4511 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4512 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4513 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4515   (eval $ac_link_default) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }; then
4519   # Find the output, starting from the most likely.  This scheme is
4520 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4521 # resort.
4522
4523 # Be careful to initialize this variable, since it used to be cached.
4524 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4525 ac_cv_exeext=
4526 # b.out is created by i960 compilers.
4527 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4528 do
4529   test -f "$ac_file" || continue
4530   case $ac_file in
4531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4532         ;;
4533     conftest.$ac_ext )
4534         # This is the source file.
4535         ;;
4536     [ab].out )
4537         # We found the default executable, but exeext='' is most
4538         # certainly right.
4539         break;;
4540     *.* )
4541         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542         # FIXME: I believe we export ac_cv_exeext for Libtool,
4543         # but it would be cool to find out if it's true.  Does anybody
4544         # maintain Libtool? --akim.
4545         export ac_cv_exeext
4546         break;;
4547     * )
4548         break;;
4549   esac
4550 done
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4556 See \`config.log' for more details." >&5
4557 echo "$as_me: error: C compiler cannot create executables
4558 See \`config.log' for more details." >&2;}
4559    { (exit 77); exit 77; }; }
4560 fi
4561
4562 ac_exeext=$ac_cv_exeext
4563 echo "$as_me:$LINENO: result: $ac_file" >&5
4564 echo "${ECHO_T}$ac_file" >&6
4565
4566 # Check the compiler produces executables we can run.  If not, either
4567 # the compiler is broken, or we cross compile.
4568 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4569 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4570 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4571 # If not cross compiling, check that we can run a simple program.
4572 if test "$cross_compiling" != yes; then
4573   if { ac_try='./$ac_file'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579     cross_compiling=no
4580   else
4581     if test "$cross_compiling" = maybe; then
4582         cross_compiling=yes
4583     else
4584         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4585 If you meant to cross compile, use \`--host'.
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot run C compiled programs.
4588 If you meant to cross compile, use \`--host'.
4589 See \`config.log' for more details." >&2;}
4590    { (exit 1); exit 1; }; }
4591     fi
4592   fi
4593 fi
4594 echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6
4596
4597 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4598 ac_clean_files=$ac_clean_files_save
4599 # Check the compiler produces executables we can run.  If not, either
4600 # the compiler is broken, or we cross compile.
4601 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4602 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4603 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4604 echo "${ECHO_T}$cross_compiling" >&6
4605
4606 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4607 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4609   (eval $ac_link) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; then
4613   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4614 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4615 # work properly (i.e., refer to `conftest.exe'), while it won't with
4616 # `rm'.
4617 for ac_file in conftest.exe conftest conftest.*; do
4618   test -f "$ac_file" || continue
4619   case $ac_file in
4620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4621     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4622           export ac_cv_exeext
4623           break;;
4624     * ) break;;
4625   esac
4626 done
4627 else
4628   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4631 See \`config.log' for more details." >&2;}
4632    { (exit 1); exit 1; }; }
4633 fi
4634
4635 rm -f conftest$ac_cv_exeext
4636 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4637 echo "${ECHO_T}$ac_cv_exeext" >&6
4638
4639 rm -f conftest.$ac_ext
4640 EXEEXT=$ac_cv_exeext
4641 ac_exeext=$EXEEXT
4642 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4643 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4644 if test "${ac_cv_objext+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653
4654 int
4655 main ()
4656 {
4657
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.o conftest.obj
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664   (eval $ac_compile) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; then
4668   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4669   case $ac_file in
4670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4671     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4672        break;;
4673   esac
4674 done
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4680 See \`config.log' for more details." >&5
4681 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4682 See \`config.log' for more details." >&2;}
4683    { (exit 1); exit 1; }; }
4684 fi
4685
4686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4687 fi
4688 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4689 echo "${ECHO_T}$ac_cv_objext" >&6
4690 OBJEXT=$ac_cv_objext
4691 ac_objext=$OBJEXT
4692 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4693 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703
4704 int
4705 main ()
4706 {
4707 #ifndef __GNUC__
4708        choke me
4709 #endif
4710
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717   (eval $ac_compile) 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_c_werror_flag"
4725                          || test ! -s conftest.err'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; } &&
4731          { ac_try='test -s conftest.$ac_objext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_compiler_gnu=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 ac_compiler_gnu=no
4743 fi
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4746
4747 fi
4748 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4750 GCC=`test $ac_compiler_gnu = yes && echo yes`
4751 ac_test_CFLAGS=${CFLAGS+set}
4752 ac_save_CFLAGS=$CFLAGS
4753 CFLAGS="-g"
4754 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4756 if test "${ac_cv_prog_cc_g+set}" = set; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765
4766 int
4767 main ()
4768 {
4769
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776   (eval $ac_compile) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } &&
4783          { ac_try='test -z "$ac_c_werror_flag"
4784                          || test ! -s conftest.err'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; } &&
4790          { ac_try='test -s conftest.$ac_objext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_cv_prog_cc_g=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ac_cv_prog_cc_g=no
4802 fi
4803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4807 if test "$ac_test_CFLAGS" = set; then
4808   CFLAGS=$ac_save_CFLAGS
4809 elif test $ac_cv_prog_cc_g = yes; then
4810   if test "$GCC" = yes; then
4811     CFLAGS="-g -O2"
4812   else
4813     CFLAGS="-g"
4814   fi
4815 else
4816   if test "$GCC" = yes; then
4817     CFLAGS="-O2"
4818   else
4819     CFLAGS=
4820   fi
4821 fi
4822 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4823 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4824 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   ac_cv_prog_cc_stdc=no
4828 ac_save_CC=$CC
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835 #include <stdarg.h>
4836 #include <stdio.h>
4837 #include <sys/types.h>
4838 #include <sys/stat.h>
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4843      char **p;
4844      int i;
4845 {
4846   return p[i];
4847 }
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4849 {
4850   char *s;
4851   va_list v;
4852   va_start (v,p);
4853   s = g (p, va_arg (v,int));
4854   va_end (v);
4855   return s;
4856 }
4857
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4859    function prototypes and stuff, but not '\xHH' hex character constants.
4860    These don't provoke an error unfortunately, instead are silently treated
4861    as 'x'.  The following induces an error, until -std1 is added to get
4862    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4863    array size at least.  It's necessary to write '\x00'==0 to get something
4864    that's true only with -std1.  */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
4867 int test (int i, double x);
4868 struct s1 {int (*f) (int a);};
4869 struct s2 {int (*f) (double a);};
4870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4871 int argc;
4872 char **argv;
4873 int
4874 main ()
4875 {
4876 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 # Don't try gcc -ansi; that turns off useful extensions and
4882 # breaks some systems' header files.
4883 # AIX                   -qlanglvl=ansi
4884 # Ultrix and OSF/1      -std1
4885 # HP-UX 10.20 and later -Ae
4886 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4887 # SVR4                  -Xc -D__EXTENSIONS__
4888 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 do
4890   CC="$ac_save_CC $ac_arg"
4891   rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893   (eval $ac_compile) 2>conftest.er1
4894   ac_status=$?
4895   grep -v '^ *+' conftest.er1 >conftest.err
4896   rm -f conftest.er1
4897   cat conftest.err >&5
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } &&
4900          { ac_try='test -z "$ac_c_werror_flag"
4901                          || test ! -s conftest.err'
4902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903   (eval $ac_try) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; } &&
4907          { ac_try='test -s conftest.$ac_objext'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; }; then
4913   ac_cv_prog_cc_stdc=$ac_arg
4914 break
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 fi
4920 rm -f conftest.err conftest.$ac_objext
4921 done
4922 rm -f conftest.$ac_ext conftest.$ac_objext
4923 CC=$ac_save_CC
4924
4925 fi
4926
4927 case "x$ac_cv_prog_cc_stdc" in
4928   x|xno)
4929     echo "$as_me:$LINENO: result: none needed" >&5
4930 echo "${ECHO_T}none needed" >&6 ;;
4931   *)
4932     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4933 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4934     CC="$CC $ac_cv_prog_cc_stdc" ;;
4935 esac
4936
4937 # Some people use a C++ compiler to compile C.  Since we use `exit',
4938 # in C++ we need to declare it.  In case someone uses the same compiler
4939 # for both compiling C and C++ we need to have the C++ compiler decide
4940 # the declaration of exit, since it's the most demanding environment.
4941 cat >conftest.$ac_ext <<_ACEOF
4942 #ifndef __cplusplus
4943   choke me
4944 #endif
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948   (eval $ac_compile) 2>conftest.er1
4949   ac_status=$?
4950   grep -v '^ *+' conftest.er1 >conftest.err
4951   rm -f conftest.er1
4952   cat conftest.err >&5
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } &&
4955          { ac_try='test -z "$ac_c_werror_flag"
4956                          || test ! -s conftest.err'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; } &&
4962          { ac_try='test -s conftest.$ac_objext'
4963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964   (eval $ac_try) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; }; then
4968   for ac_declaration in \
4969    '' \
4970    'extern "C" void std::exit (int) throw (); using std::exit;' \
4971    'extern "C" void std::exit (int); using std::exit;' \
4972    'extern "C" void exit (int) throw ();' \
4973    'extern "C" void exit (int);' \
4974    'void exit (int);'
4975 do
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 $ac_declaration
4983 #include <stdlib.h>
4984 int
4985 main ()
4986 {
4987 exit (42);
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994   (eval $ac_compile) 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } &&
5001          { ac_try='test -z "$ac_c_werror_flag"
5002                          || test ! -s conftest.err'
5003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004   (eval $ac_try) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }; } &&
5008          { ac_try='test -s conftest.$ac_objext'
5009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010   (eval $ac_try) 2>&5
5011   ac_status=$?
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); }; }; then
5014   :
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 continue
5020 fi
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022   cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028 $ac_declaration
5029 int
5030 main ()
5031 {
5032 exit (42);
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -z "$ac_c_werror_flag"
5047                          || test ! -s conftest.err'
5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049   (eval $ac_try) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; } &&
5053          { ac_try='test -s conftest.$ac_objext'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; }; then
5059   break
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 done
5067 rm -f conftest*
5068 if test -n "$ac_declaration"; then
5069   echo '#ifdef __cplusplus' >>confdefs.h
5070   echo $ac_declaration      >>confdefs.h
5071   echo '#endif'             >>confdefs.h
5072 fi
5073
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086 depcc="$CC"   am_compiler_list=
5087
5088 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5094   # We make a subdir and do the tests there.  Otherwise we can end up
5095   # making bogus files that we don't know about and never remove.  For
5096   # instance it was reported that on HP-UX the gcc test will end up
5097   # making a dummy file named `D' -- because `-MD' means `put the output
5098   # in D'.
5099   mkdir conftest.dir
5100   # Copy depcomp to subdir because otherwise we won't find it if we're
5101   # using a relative directory.
5102   cp "$am_depcomp" conftest.dir
5103   cd conftest.dir
5104   # We will build objects and dependencies in a subdirectory because
5105   # it helps to detect inapplicable dependency modes.  For instance
5106   # both Tru64's cc and ICC support -MD to output dependencies as a
5107   # side effect of compilation, but ICC will put the dependencies in
5108   # the current directory while Tru64 will put them in the object
5109   # directory.
5110   mkdir sub
5111
5112   am_cv_CC_dependencies_compiler_type=none
5113   if test "$am_compiler_list" = ""; then
5114      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5115   fi
5116   for depmode in $am_compiler_list; do
5117     # Setup a source with many dependencies, because some compilers
5118     # like to wrap large dependency lists on column 80 (with \), and
5119     # we should not choose a depcomp mode which is confused by this.
5120     #
5121     # We need to recreate these files for each test, as the compiler may
5122     # overwrite some of them when testing with obscure command lines.
5123     # This happens at least with the AIX C compiler.
5124     : > sub/conftest.c
5125     for i in 1 2 3 4 5 6; do
5126       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5127       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5128       # Solaris 8's {/usr,}/bin/sh.
5129       touch sub/conftst$i.h
5130     done
5131     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5132
5133     case $depmode in
5134     nosideeffect)
5135       # after this tag, mechanisms are not by side-effect, so they'll
5136       # only be used when explicitly requested
5137       if test "x$enable_dependency_tracking" = xyes; then
5138         continue
5139       else
5140         break
5141       fi
5142       ;;
5143     none) break ;;
5144     esac
5145     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5146     # mode.  It turns out that the SunPro C++ compiler does not properly
5147     # handle `-M -o', and we need to detect this.
5148     if depmode=$depmode \
5149        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5150        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5151        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5152          >/dev/null 2>conftest.err &&
5153        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5154        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5155        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5156       # icc doesn't choke on unknown options, it will just issue warnings
5157       # or remarks (even with -Werror).  So we grep stderr for any message
5158       # that says an option was ignored or not supported.
5159       # When given -MP, icc 7.0 and 7.1 complain thusly:
5160       #   icc: Command line warning: ignoring option '-M'; no argument required
5161       # The diagnosis changed in icc 8.0:
5162       #   icc: Command line remark: option '-MP' not supported
5163       if (grep 'ignoring option' conftest.err ||
5164           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5165         am_cv_CC_dependencies_compiler_type=$depmode
5166         break
5167       fi
5168     fi
5169   done
5170
5171   cd ..
5172   rm -rf conftest.dir
5173 else
5174   am_cv_CC_dependencies_compiler_type=none
5175 fi
5176
5177 fi
5178 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5179 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5180 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5181
5182
5183
5184 if
5185   test "x$enable_dependency_tracking" != xno \
5186   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5187   am__fastdepCC_TRUE=
5188   am__fastdepCC_FALSE='#'
5189 else
5190   am__fastdepCC_TRUE='#'
5191   am__fastdepCC_FALSE=
5192 fi
5193
5194
5195 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5196 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5197 if test "${lt_cv_path_SED+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   # Loop through the user's path and test for sed and gsed.
5201 # Then use that list of sed's as ones to test for truncation.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for lt_ac_prog in sed gsed; do
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5210         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5211       fi
5212     done
5213   done
5214 done
5215 lt_ac_max=0
5216 lt_ac_count=0
5217 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5218 # along with /bin/sed that truncates output.
5219 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5220   test ! -f $lt_ac_sed && continue
5221   cat /dev/null > conftest.in
5222   lt_ac_count=0
5223   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5224   # Check for GNU sed and select it if it is found.
5225   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5226     lt_cv_path_SED=$lt_ac_sed
5227     break
5228   fi
5229   while true; do
5230     cat conftest.in conftest.in >conftest.tmp
5231     mv conftest.tmp conftest.in
5232     cp conftest.in conftest.nl
5233     echo >>conftest.nl
5234     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5235     cmp -s conftest.out conftest.nl || break
5236     # 10000 chars as input seems more than enough
5237     test $lt_ac_count -gt 10 && break
5238     lt_ac_count=`expr $lt_ac_count + 1`
5239     if test $lt_ac_count -gt $lt_ac_max; then
5240       lt_ac_max=$lt_ac_count
5241       lt_cv_path_SED=$lt_ac_sed
5242     fi
5243   done
5244 done
5245
5246 fi
5247
5248 SED=$lt_cv_path_SED
5249 echo "$as_me:$LINENO: result: $SED" >&5
5250 echo "${ECHO_T}$SED" >&6
5251
5252 echo "$as_me:$LINENO: checking for egrep" >&5
5253 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5254 if test "${ac_cv_prog_egrep+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5258     then ac_cv_prog_egrep='grep -E'
5259     else ac_cv_prog_egrep='egrep'
5260     fi
5261 fi
5262 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5263 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5264  EGREP=$ac_cv_prog_egrep
5265
5266
5267
5268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5269 if test "${with_gnu_ld+set}" = set; then
5270   withval="$with_gnu_ld"
5271   test "$withval" = no || with_gnu_ld=yes
5272 else
5273   with_gnu_ld=no
5274 fi;
5275 ac_prog=ld
5276 if test "$GCC" = yes; then
5277   # Check if gcc -print-prog-name=ld gives a path.
5278   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5280   case $host in
5281   *-*-mingw*)
5282     # gcc leaves a trailing carriage return which upsets mingw
5283     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5284   *)
5285     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5286   esac
5287   case $ac_prog in
5288     # Accept absolute paths.
5289     [\\/]* | ?:[\\/]*)
5290       re_direlt='/[^/][^/]*/\.\./'
5291       # Canonicalize the pathname of ld
5292       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5293       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5294         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5295       done
5296       test -z "$LD" && LD="$ac_prog"
5297       ;;
5298   "")
5299     # If it fails, then pretend we aren't using GCC.
5300     ac_prog=ld
5301     ;;
5302   *)
5303     # If it is relative, then search for the first ld in PATH.
5304     with_gnu_ld=unknown
5305     ;;
5306   esac
5307 elif test "$with_gnu_ld" = yes; then
5308   echo "$as_me:$LINENO: checking for GNU ld" >&5
5309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5310 else
5311   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5313 fi
5314 if test "${lt_cv_path_LD+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   if test -z "$LD"; then
5318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5319   for ac_dir in $PATH; do
5320     IFS="$lt_save_ifs"
5321     test -z "$ac_dir" && ac_dir=.
5322     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5323       lt_cv_path_LD="$ac_dir/$ac_prog"
5324       # Check to see if the program is GNU ld.  I'd rather use --version,
5325       # but apparently some GNU ld's only accept -v.
5326       # Break only if it was the GNU/non-GNU ld that we prefer.
5327       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5328       *GNU* | *'with BFD'*)
5329         test "$with_gnu_ld" != no && break
5330         ;;
5331       *)
5332         test "$with_gnu_ld" != yes && break
5333         ;;
5334       esac
5335     fi
5336   done
5337   IFS="$lt_save_ifs"
5338 else
5339   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5340 fi
5341 fi
5342
5343 LD="$lt_cv_path_LD"
5344 if test -n "$LD"; then
5345   echo "$as_me:$LINENO: result: $LD" >&5
5346 echo "${ECHO_T}$LD" >&6
5347 else
5348   echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5350 fi
5351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5353    { (exit 1); exit 1; }; }
5354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5360 case `$LD -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362   lt_cv_prog_gnu_ld=yes
5363   ;;
5364 *)
5365   lt_cv_prog_gnu_ld=no
5366   ;;
5367 esac
5368 fi
5369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5371 with_gnu_ld=$lt_cv_prog_gnu_ld
5372
5373
5374 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5375 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5376 if test "${lt_cv_ld_reload_flag+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   lt_cv_ld_reload_flag='-r'
5380 fi
5381 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5382 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5383 reload_flag=$lt_cv_ld_reload_flag
5384 case $reload_flag in
5385 "" | " "*) ;;
5386 *) reload_flag=" $reload_flag" ;;
5387 esac
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 case $host_os in
5390   darwin*)
5391     if test "$GCC" = yes; then
5392       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5393     else
5394       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5395     fi
5396     ;;
5397 esac
5398
5399 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5400 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5401 if test "${lt_cv_path_NM+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   if test -n "$NM"; then
5405   # Let the user override the test.
5406   lt_cv_path_NM="$NM"
5407 else
5408   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5409   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5410     IFS="$lt_save_ifs"
5411     test -z "$ac_dir" && ac_dir=.
5412     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5413     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5414       # Check to see if the nm accepts a BSD-compat flag.
5415       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5416       #   nm: unknown option "B" ignored
5417       # Tru64's nm complains that /dev/null is an invalid object file
5418       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5419       */dev/null* | *'Invalid file or object type'*)
5420         lt_cv_path_NM="$tmp_nm -B"
5421         break
5422         ;;
5423       *)
5424         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5425         */dev/null*)
5426           lt_cv_path_NM="$tmp_nm -p"
5427           break
5428           ;;
5429         *)
5430           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5431           continue # so that we can try to find one that supports BSD flags
5432           ;;
5433         esac
5434       esac
5435     fi
5436   done
5437   IFS="$lt_save_ifs"
5438   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5439 fi
5440 fi
5441 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5442 echo "${ECHO_T}$lt_cv_path_NM" >&6
5443 NM="$lt_cv_path_NM"
5444
5445 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5446 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5447 LN_S=$as_ln_s
5448 if test "$LN_S" = "ln -s"; then
5449   echo "$as_me:$LINENO: result: yes" >&5
5450 echo "${ECHO_T}yes" >&6
5451 else
5452   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5453 echo "${ECHO_T}no, using $LN_S" >&6
5454 fi
5455
5456 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5458 if test "${lt_cv_deplibs_check_method+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   lt_cv_file_magic_cmd='$MAGIC_CMD'
5462 lt_cv_file_magic_test_file=
5463 lt_cv_deplibs_check_method='unknown'
5464 # Need to set the preceding variable on all platforms that support
5465 # interlibrary dependencies.
5466 # 'none' -- dependencies not supported.
5467 # `unknown' -- same as none, but documents that we really don't know.
5468 # 'pass_all' -- all dependencies passed with no checks.
5469 # 'test_compile' -- check by making test program.
5470 # 'file_magic [[regex]]' -- check by looking for files in library path
5471 # which responds to the $file_magic_cmd with a given extended regex.
5472 # If you have `file' or equivalent on your system and you're not sure
5473 # whether `pass_all' will *always* work, you probably want this one.
5474
5475 case $host_os in
5476 aix4* | aix5*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 beos*)
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 bsdi[45]*)
5485   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5486   lt_cv_file_magic_cmd='/usr/bin/file -L'
5487   lt_cv_file_magic_test_file=/shlib/libc.so
5488   ;;
5489
5490 cygwin*)
5491   # func_win32_libid is a shell function defined in ltmain.sh
5492   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493   lt_cv_file_magic_cmd='func_win32_libid'
5494   ;;
5495
5496 mingw* | pw32*)
5497   # Base MSYS/MinGW do not provide the 'file' command needed by
5498   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5499   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5500   lt_cv_file_magic_cmd='$OBJDUMP -f'
5501   ;;
5502
5503 darwin* | rhapsody*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 freebsd* | kfreebsd*-gnu | dragonfly*)
5508   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5509     case $host_cpu in
5510     i*86 )
5511       # Not sure whether the presence of OpenBSD here was a mistake.
5512       # Let's accept both of them until this is cleared up.
5513       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5514       lt_cv_file_magic_cmd=/usr/bin/file
5515       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5516       ;;
5517     esac
5518   else
5519     lt_cv_deplibs_check_method=pass_all
5520   fi
5521   ;;
5522
5523 gnu*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 hpux10.20* | hpux11*)
5528   lt_cv_file_magic_cmd=/usr/bin/file
5529   case "$host_cpu" in
5530   ia64*)
5531     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5532     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5533     ;;
5534   hppa*64*)
5535     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]'
5536     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5537     ;;
5538   *)
5539     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5540     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5541     ;;
5542   esac
5543   ;;
5544
5545 irix5* | irix6* | nonstopux*)
5546   case $LD in
5547   *-32|*"-32 ") libmagic=32-bit;;
5548   *-n32|*"-n32 ") libmagic=N32;;
5549   *-64|*"-64 ") libmagic=64-bit;;
5550   *) libmagic=never-match;;
5551   esac
5552   lt_cv_deplibs_check_method=pass_all
5553   ;;
5554
5555 # This must be Linux ELF.
5556 linux*)
5557   lt_cv_deplibs_check_method=pass_all
5558   ;;
5559
5560 netbsd*)
5561   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5562     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5563   else
5564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5565   fi
5566   ;;
5567
5568 newos6*)
5569   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5570   lt_cv_file_magic_cmd=/usr/bin/file
5571   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5572   ;;
5573
5574 nto-qnx*)
5575   lt_cv_deplibs_check_method=unknown
5576   ;;
5577
5578 openbsd*)
5579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5581   else
5582     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5583   fi
5584   ;;
5585
5586 osf3* | osf4* | osf5*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 sco3.2v5*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 solaris*)
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599   case $host_vendor in
5600   motorola)
5601     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]'
5602     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5603     ;;
5604   ncr)
5605     lt_cv_deplibs_check_method=pass_all
5606     ;;
5607   sequent)
5608     lt_cv_file_magic_cmd='/bin/file'
5609     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5610     ;;
5611   sni)
5612     lt_cv_file_magic_cmd='/bin/file'
5613     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5614     lt_cv_file_magic_test_file=/lib/libc.so
5615     ;;
5616   siemens)
5617     lt_cv_deplibs_check_method=pass_all
5618     ;;
5619   esac
5620   ;;
5621
5622 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5623   lt_cv_deplibs_check_method=pass_all
5624   ;;
5625 esac
5626
5627 fi
5628 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5629 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5630 file_magic_cmd=$lt_cv_file_magic_cmd
5631 deplibs_check_method=$lt_cv_deplibs_check_method
5632 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5633
5634
5635
5636
5637 # If no C compiler was specified, use CC.
5638 LTCC=${LTCC-"$CC"}
5639
5640 # Allow CC to be a program name with arguments.
5641 compiler=$CC
5642
5643
5644 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5645 if test "${enable_libtool_lock+set}" = set; then
5646   enableval="$enable_libtool_lock"
5647
5648 fi;
5649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5650
5651 # Some flags need to be propagated to the compiler or linker for good
5652 # libtool support.
5653 case $host in
5654 ia64-*-hpux*)
5655   # Find out which ABI we are using.
5656   echo 'int i;' > conftest.$ac_ext
5657   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658   (eval $ac_compile) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); }; then
5662     case `/usr/bin/file conftest.$ac_objext` in
5663     *ELF-32*)
5664       HPUX_IA64_MODE="32"
5665       ;;
5666     *ELF-64*)
5667       HPUX_IA64_MODE="64"
5668       ;;
5669     esac
5670   fi
5671   rm -rf conftest*
5672   ;;
5673 *-*-irix6*)
5674   # Find out which ABI we are using.
5675   echo '#line 5675 "configure"' > conftest.$ac_ext
5676   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677   (eval $ac_compile) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; then
5681    if test "$lt_cv_prog_gnu_ld" = yes; then
5682     case `/usr/bin/file conftest.$ac_objext` in
5683     *32-bit*)
5684       LD="${LD-ld} -melf32bsmip"
5685       ;;
5686     *N32*)
5687       LD="${LD-ld} -melf32bmipn32"
5688       ;;
5689     *64-bit*)
5690       LD="${LD-ld} -melf64bmip"
5691       ;;
5692     esac
5693    else
5694     case `/usr/bin/file conftest.$ac_objext` in
5695     *32-bit*)
5696       LD="${LD-ld} -32"
5697       ;;
5698     *N32*)
5699       LD="${LD-ld} -n32"
5700       ;;
5701     *64-bit*)
5702       LD="${LD-ld} -64"
5703       ;;
5704     esac
5705    fi
5706   fi
5707   rm -rf conftest*
5708   ;;
5709
5710 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5711   # Find out which ABI we are using.
5712   echo 'int i;' > conftest.$ac_ext
5713   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714   (eval $ac_compile) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; then
5718     case "`/usr/bin/file conftest.o`" in
5719     *32-bit*)
5720       case $host in
5721         x86_64-*linux*)
5722           LD="${LD-ld} -m elf_i386"
5723           ;;
5724         ppc64-*linux*|powerpc64-*linux*)
5725           LD="${LD-ld} -m elf32ppclinux"
5726           ;;
5727         s390x-*linux*)
5728           LD="${LD-ld} -m elf_s390"
5729           ;;
5730         sparc64-*linux*)
5731           LD="${LD-ld} -m elf32_sparc"
5732           ;;
5733       esac
5734       ;;
5735     *64-bit*)
5736       case $host in
5737         x86_64-*linux*)
5738           LD="${LD-ld} -m elf_x86_64"
5739           ;;
5740         ppc*-*linux*|powerpc*-*linux*)
5741           LD="${LD-ld} -m elf64ppc"
5742           ;;
5743         s390*-*linux*)
5744           LD="${LD-ld} -m elf64_s390"
5745           ;;
5746         sparc*-*linux*)
5747           LD="${LD-ld} -m elf64_sparc"
5748           ;;
5749       esac
5750       ;;
5751     esac
5752   fi
5753   rm -rf conftest*
5754   ;;
5755
5756 *-*-sco3.2v5*)
5757   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5758   SAVE_CFLAGS="$CFLAGS"
5759   CFLAGS="$CFLAGS -belf"
5760   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5761 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5762 if test "${lt_cv_cc_needs_belf+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   ac_ext=c
5766 ac_cpp='$CPP $CPPFLAGS'
5767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770
5771      cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h.  */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h.  */
5777
5778 int
5779 main ()
5780 {
5781
5782   ;
5783   return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788   (eval $ac_link) 2>conftest.er1
5789   ac_status=$?
5790   grep -v '^ *+' conftest.er1 >conftest.err
5791   rm -f conftest.er1
5792   cat conftest.err >&5
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -z "$ac_c_werror_flag"
5796                          || test ! -s conftest.err'
5797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798   (eval $ac_try) 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; } &&
5802          { ac_try='test -s conftest$ac_exeext'
5803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804   (eval $ac_try) 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; }; then
5808   lt_cv_cc_needs_belf=yes
5809 else
5810   echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813 lt_cv_cc_needs_belf=no
5814 fi
5815 rm -f conftest.err conftest.$ac_objext \
5816       conftest$ac_exeext conftest.$ac_ext
5817      ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823 fi
5824 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5825 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5826   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5827     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5828     CFLAGS="$SAVE_CFLAGS"
5829   fi
5830   ;;
5831 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5832   if test -n "$ac_tool_prefix"; then
5833   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   if test -n "$DLLTOOL"; then
5841   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856
5857 fi
5858 fi
5859 DLLTOOL=$ac_cv_prog_DLLTOOL
5860 if test -n "$DLLTOOL"; then
5861   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5862 echo "${ECHO_T}$DLLTOOL" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868 fi
5869 if test -z "$ac_cv_prog_DLLTOOL"; then
5870   ac_ct_DLLTOOL=$DLLTOOL
5871   # Extract the first word of "dlltool", so it can be a program name with args.
5872 set dummy dlltool; ac_word=$2
5873 echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$ac_ct_DLLTOOL"; then
5879   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894
5895   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5896 fi
5897 fi
5898 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5899 if test -n "$ac_ct_DLLTOOL"; then
5900   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5901 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907   DLLTOOL=$ac_ct_DLLTOOL
5908 else
5909   DLLTOOL="$ac_cv_prog_DLLTOOL"
5910 fi
5911
5912   if test -n "$ac_tool_prefix"; then
5913   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}as; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_AS+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   if test -n "$AS"; then
5921   ac_cv_prog_AS="$AS" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928   for ac_exec_ext in '' $ac_executable_extensions; do
5929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_AS="${ac_tool_prefix}as"
5931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935 done
5936
5937 fi
5938 fi
5939 AS=$ac_cv_prog_AS
5940 if test -n "$AS"; then
5941   echo "$as_me:$LINENO: result: $AS" >&5
5942 echo "${ECHO_T}$AS" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948 fi
5949 if test -z "$ac_cv_prog_AS"; then
5950   ac_ct_AS=$AS
5951   # Extract the first word of "as", so it can be a program name with args.
5952 set dummy as; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   if test -n "$ac_ct_AS"; then
5959   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966   for ac_exec_ext in '' $ac_executable_extensions; do
5967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_prog_ac_ct_AS="as"
5969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973 done
5974
5975   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5976 fi
5977 fi
5978 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5979 if test -n "$ac_ct_AS"; then
5980   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5981 echo "${ECHO_T}$ac_ct_AS" >&6
5982 else
5983   echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 fi
5986
5987   AS=$ac_ct_AS
5988 else
5989   AS="$ac_cv_prog_AS"
5990 fi
5991
5992   if test -n "$ac_tool_prefix"; then
5993   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if test -n "$OBJDUMP"; then
6001   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016
6017 fi
6018 fi
6019 OBJDUMP=$ac_cv_prog_OBJDUMP
6020 if test -n "$OBJDUMP"; then
6021   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6022 echo "${ECHO_T}$OBJDUMP" >&6
6023 else
6024   echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6026 fi
6027
6028 fi
6029 if test -z "$ac_cv_prog_OBJDUMP"; then
6030   ac_ct_OBJDUMP=$OBJDUMP
6031   # Extract the first word of "objdump", so it can be a program name with args.
6032 set dummy objdump; ac_word=$2
6033 echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6035 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   if test -n "$ac_ct_OBJDUMP"; then
6039   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046   for ac_exec_ext in '' $ac_executable_extensions; do
6047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053 done
6054
6055   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6056 fi
6057 fi
6058 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6059 if test -n "$ac_ct_OBJDUMP"; then
6060   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6061 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6062 else
6063   echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6065 fi
6066
6067   OBJDUMP=$ac_ct_OBJDUMP
6068 else
6069   OBJDUMP="$ac_cv_prog_OBJDUMP"
6070 fi
6071
6072   ;;
6073
6074 esac
6075
6076 need_locks="$enable_libtool_lock"
6077
6078
6079 ac_ext=c
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6085 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6086 # On Suns, sometimes $CPP names a directory.
6087 if test -n "$CPP" && test -d "$CPP"; then
6088   CPP=
6089 fi
6090 if test -z "$CPP"; then
6091   if test "${ac_cv_prog_CPP+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094       # Double quotes because CPP needs to be expanded
6095     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6096     do
6097       ac_preproc_ok=false
6098 for ac_c_preproc_warn_flag in '' yes
6099 do
6100   # Use a header file that comes with gcc, so configuring glibc
6101   # with a fresh cross-compiler works.
6102   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103   # <limits.h> exists even on freestanding compilers.
6104   # On the NeXT, cc -E runs the code through the compiler's parser,
6105   # not just through cpp. "Syntax error" is here to catch this case.
6106   cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112 #ifdef __STDC__
6113 # include <limits.h>
6114 #else
6115 # include <assert.h>
6116 #endif
6117                      Syntax error
6118 _ACEOF
6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121   ac_status=$?
6122   grep -v '^ *+' conftest.er1 >conftest.err
6123   rm -f conftest.er1
6124   cat conftest.err >&5
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } >/dev/null; then
6127   if test -s conftest.err; then
6128     ac_cpp_err=$ac_c_preproc_warn_flag
6129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6130   else
6131     ac_cpp_err=
6132   fi
6133 else
6134   ac_cpp_err=yes
6135 fi
6136 if test -z "$ac_cpp_err"; then
6137   :
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142   # Broken: fails on valid input.
6143 continue
6144 fi
6145 rm -f conftest.err conftest.$ac_ext
6146
6147   # OK, works on sane cases.  Now check whether non-existent headers
6148   # can be detected and how.
6149   cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h.  */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h.  */
6155 #include <ac_nonexistent.h>
6156 _ACEOF
6157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } >/dev/null; then
6165   if test -s conftest.err; then
6166     ac_cpp_err=$ac_c_preproc_warn_flag
6167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6168   else
6169     ac_cpp_err=
6170   fi
6171 else
6172   ac_cpp_err=yes
6173 fi
6174 if test -z "$ac_cpp_err"; then
6175   # Broken: success on invalid input.
6176 continue
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181   # Passes both tests.
6182 ac_preproc_ok=:
6183 break
6184 fi
6185 rm -f conftest.err conftest.$ac_ext
6186
6187 done
6188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6189 rm -f conftest.err conftest.$ac_ext
6190 if $ac_preproc_ok; then
6191   break
6192 fi
6193
6194     done
6195     ac_cv_prog_CPP=$CPP
6196
6197 fi
6198   CPP=$ac_cv_prog_CPP
6199 else
6200   ac_cv_prog_CPP=$CPP
6201 fi
6202 echo "$as_me:$LINENO: result: $CPP" >&5
6203 echo "${ECHO_T}$CPP" >&6
6204 ac_preproc_ok=false
6205 for ac_c_preproc_warn_flag in '' yes
6206 do
6207   # Use a header file that comes with gcc, so configuring glibc
6208   # with a fresh cross-compiler works.
6209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6210   # <limits.h> exists even on freestanding compilers.
6211   # On the NeXT, cc -E runs the code through the compiler's parser,
6212   # not just through cpp. "Syntax error" is here to catch this case.
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #ifdef __STDC__
6220 # include <limits.h>
6221 #else
6222 # include <assert.h>
6223 #endif
6224                      Syntax error
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   :
6245 else
6246   echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249   # Broken: fails on valid input.
6250 continue
6251 fi
6252 rm -f conftest.err conftest.$ac_ext
6253
6254   # OK, works on sane cases.  Now check whether non-existent headers
6255   # can be detected and how.
6256   cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 #include <ac_nonexistent.h>
6263 _ACEOF
6264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } >/dev/null; then
6272   if test -s conftest.err; then
6273     ac_cpp_err=$ac_c_preproc_warn_flag
6274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6275   else
6276     ac_cpp_err=
6277   fi
6278 else
6279   ac_cpp_err=yes
6280 fi
6281 if test -z "$ac_cpp_err"; then
6282   # Broken: success on invalid input.
6283 continue
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288   # Passes both tests.
6289 ac_preproc_ok=:
6290 break
6291 fi
6292 rm -f conftest.err conftest.$ac_ext
6293
6294 done
6295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6296 rm -f conftest.err conftest.$ac_ext
6297 if $ac_preproc_ok; then
6298   :
6299 else
6300   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6301 See \`config.log' for more details." >&5
6302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6303 See \`config.log' for more details." >&2;}
6304    { (exit 1); exit 1; }; }
6305 fi
6306
6307 ac_ext=c
6308 ac_cpp='$CPP $CPPFLAGS'
6309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6312
6313
6314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6316 if test "${ac_cv_header_stdc+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 #include <stdlib.h>
6326 #include <stdarg.h>
6327 #include <string.h>
6328 #include <float.h>
6329
6330 int
6331 main ()
6332 {
6333
6334   ;
6335   return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340   (eval $ac_compile) 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } &&
6347          { ac_try='test -z "$ac_c_werror_flag"
6348                          || test ! -s conftest.err'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; } &&
6354          { ac_try='test -s conftest.$ac_objext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_cv_header_stdc=yes
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_cv_header_stdc=no
6366 fi
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368
6369 if test $ac_cv_header_stdc = yes; then
6370   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6371   cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 #include <string.h>
6378
6379 _ACEOF
6380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6381   $EGREP "memchr" >/dev/null 2>&1; then
6382   :
6383 else
6384   ac_cv_header_stdc=no
6385 fi
6386 rm -f conftest*
6387
6388 fi
6389
6390 if test $ac_cv_header_stdc = yes; then
6391   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 #include <stdlib.h>
6399
6400 _ACEOF
6401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6402   $EGREP "free" >/dev/null 2>&1; then
6403   :
6404 else
6405   ac_cv_header_stdc=no
6406 fi
6407 rm -f conftest*
6408
6409 fi
6410
6411 if test $ac_cv_header_stdc = yes; then
6412   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6413   if test "$cross_compiling" = yes; then
6414   :
6415 else
6416   cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h.  */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h.  */
6422 #include <ctype.h>
6423 #if ((' ' & 0x0FF) == 0x020)
6424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6426 #else
6427 # define ISLOWER(c) \
6428                    (('a' <= (c) && (c) <= 'i') \
6429                      || ('j' <= (c) && (c) <= 'r') \
6430                      || ('s' <= (c) && (c) <= 'z'))
6431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6432 #endif
6433
6434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6435 int
6436 main ()
6437 {
6438   int i;
6439   for (i = 0; i < 256; i++)
6440     if (XOR (islower (i), ISLOWER (i))
6441         || toupper (i) != TOUPPER (i))
6442       exit(2);
6443   exit (0);
6444 }
6445 _ACEOF
6446 rm -f conftest$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448   (eval $ac_link) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; }; then
6457   :
6458 else
6459   echo "$as_me: program exited with status $ac_status" >&5
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6462
6463 ( exit $ac_status )
6464 ac_cv_header_stdc=no
6465 fi
6466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6467 fi
6468 fi
6469 fi
6470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6472 if test $ac_cv_header_stdc = yes; then
6473
6474 cat >>confdefs.h <<\_ACEOF
6475 #define STDC_HEADERS 1
6476 _ACEOF
6477
6478 fi
6479
6480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6491                   inttypes.h stdint.h unistd.h
6492 do
6493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499   cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505 $ac_includes_default
6506
6507 #include <$ac_header>
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511   (eval $ac_compile) 2>conftest.er1
6512   ac_status=$?
6513   grep -v '^ *+' conftest.er1 >conftest.err
6514   rm -f conftest.er1
6515   cat conftest.err >&5
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } &&
6518          { ac_try='test -z "$ac_c_werror_flag"
6519                          || test ! -s conftest.err'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; } &&
6525          { ac_try='test -s conftest.$ac_objext'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; }; then
6531   eval "$as_ac_Header=yes"
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 eval "$as_ac_Header=no"
6537 fi
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543   cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6545 _ACEOF
6546
6547 fi
6548
6549 done
6550
6551
6552
6553 for ac_header in dlfcn.h
6554 do
6555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557   echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 fi
6562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564 else
6565   # Is the header compilable?
6566 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579   (eval $ac_compile) 2>conftest.er1
6580   ac_status=$?
6581   grep -v '^ *+' conftest.er1 >conftest.err
6582   rm -f conftest.er1
6583   cat conftest.err >&5
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } &&
6586          { ac_try='test -z "$ac_c_werror_flag"
6587                          || test ! -s conftest.err'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; } &&
6593          { ac_try='test -s conftest.$ac_objext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   ac_header_compiler=yes
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 ac_header_compiler=no
6605 fi
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608 echo "${ECHO_T}$ac_header_compiler" >&6
6609
6610 # Is the header present?
6611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h.  */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h.  */
6619 #include <$ac_header>
6620 _ACEOF
6621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6623   ac_status=$?
6624   grep -v '^ *+' conftest.er1 >conftest.err
6625   rm -f conftest.er1
6626   cat conftest.err >&5
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } >/dev/null; then
6629   if test -s conftest.err; then
6630     ac_cpp_err=$ac_c_preproc_warn_flag
6631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6632   else
6633     ac_cpp_err=
6634   fi
6635 else
6636   ac_cpp_err=yes
6637 fi
6638 if test -z "$ac_cpp_err"; then
6639   ac_header_preproc=yes
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644   ac_header_preproc=no
6645 fi
6646 rm -f conftest.err conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 echo "${ECHO_T}$ac_header_preproc" >&6
6649
6650 # So?  What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6652   yes:no: )
6653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6657     ac_header_preproc=yes
6658     ;;
6659   no:yes:* )
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6672     (
6673       cat <<\_ASBOX
6674 ## ------------------------------------------ ##
6675 ## Report this to the AC_PACKAGE_NAME lists.  ##
6676 ## ------------------------------------------ ##
6677 _ASBOX
6678     ) |
6679       sed "s/^/$as_me: WARNING:     /" >&2
6680     ;;
6681 esac
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   eval "$as_ac_Header=\$ac_header_preproc"
6688 fi
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691
6692 fi
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694   cat >>confdefs.h <<_ACEOF
6695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6696 _ACEOF
6697
6698 fi
6699
6700 done
6701
6702 ac_ext=cc
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707 if test -n "$ac_tool_prefix"; then
6708   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6709   do
6710     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6712 echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6714 if test "${ac_cv_prog_CXX+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   if test -n "$CXX"; then
6718   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733
6734 fi
6735 fi
6736 CXX=$ac_cv_prog_CXX
6737 if test -n "$CXX"; then
6738   echo "$as_me:$LINENO: result: $CXX" >&5
6739 echo "${ECHO_T}$CXX" >&6
6740 else
6741   echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6
6743 fi
6744
6745     test -n "$CXX" && break
6746   done
6747 fi
6748 if test -z "$CXX"; then
6749   ac_ct_CXX=$CXX
6750   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6751 do
6752   # Extract the first word of "$ac_prog", so it can be a program name with args.
6753 set dummy $ac_prog; ac_word=$2
6754 echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6756 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   if test -n "$ac_ct_CXX"; then
6760   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767   for ac_exec_ext in '' $ac_executable_extensions; do
6768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_CXX="$ac_prog"
6770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774 done
6775
6776 fi
6777 fi
6778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6779 if test -n "$ac_ct_CXX"; then
6780   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6781 echo "${ECHO_T}$ac_ct_CXX" >&6
6782 else
6783   echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6
6785 fi
6786
6787   test -n "$ac_ct_CXX" && break
6788 done
6789 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6790
6791   CXX=$ac_ct_CXX
6792 fi
6793
6794
6795 # Provide some information about the compiler.
6796 echo "$as_me:$LINENO:" \
6797      "checking for C++ compiler version" >&5
6798 ac_compiler=`set X $ac_compile; echo $2`
6799 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6800   (eval $ac_compiler --version </dev/null >&5) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }
6804 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6805   (eval $ac_compiler -v </dev/null >&5) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }
6809 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6810   (eval $ac_compiler -V </dev/null >&5) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); }
6814
6815 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6816 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6817 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826
6827 int
6828 main ()
6829 {
6830 #ifndef __GNUC__
6831        choke me
6832 #endif
6833
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840   (eval $ac_compile) 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } &&
6847          { ac_try='test -z "$ac_cxx_werror_flag"
6848                          || test ! -s conftest.err'
6849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850   (eval $ac_try) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }; } &&
6854          { ac_try='test -s conftest.$ac_objext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_compiler_gnu=yes
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_compiler_gnu=no
6866 fi
6867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6868 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6869
6870 fi
6871 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6872 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6873 GXX=`test $ac_compiler_gnu = yes && echo yes`
6874 ac_test_CXXFLAGS=${CXXFLAGS+set}
6875 ac_save_CXXFLAGS=$CXXFLAGS
6876 CXXFLAGS="-g"
6877 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6878 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6879 if test "${ac_cv_prog_cxx_g+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888
6889 int
6890 main ()
6891 {
6892
6893   ;
6894   return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899   (eval $ac_compile) 2>conftest.er1
6900   ac_status=$?
6901   grep -v '^ *+' conftest.er1 >conftest.err
6902   rm -f conftest.er1
6903   cat conftest.err >&5
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -z "$ac_cxx_werror_flag"
6907                          || test ! -s conftest.err'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; } &&
6913          { ac_try='test -s conftest.$ac_objext'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; }; then
6919   ac_cv_prog_cxx_g=yes
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 ac_cv_prog_cxx_g=no
6925 fi
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6929 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6930 if test "$ac_test_CXXFLAGS" = set; then
6931   CXXFLAGS=$ac_save_CXXFLAGS
6932 elif test $ac_cv_prog_cxx_g = yes; then
6933   if test "$GXX" = yes; then
6934     CXXFLAGS="-g -O2"
6935   else
6936     CXXFLAGS="-g"
6937   fi
6938 else
6939   if test "$GXX" = yes; then
6940     CXXFLAGS="-O2"
6941   else
6942     CXXFLAGS=
6943   fi
6944 fi
6945 for ac_declaration in \
6946    '' \
6947    'extern "C" void std::exit (int) throw (); using std::exit;' \
6948    'extern "C" void std::exit (int); using std::exit;' \
6949    'extern "C" void exit (int) throw ();' \
6950    'extern "C" void exit (int);' \
6951    'void exit (int);'
6952 do
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 $ac_declaration
6960 #include <stdlib.h>
6961 int
6962 main ()
6963 {
6964 exit (42);
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971   (eval $ac_compile) 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -z "$ac_cxx_werror_flag"
6979                          || test ! -s conftest.err'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; } &&
6985          { ac_try='test -s conftest.$ac_objext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   :
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 continue
6997 fi
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999   cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 $ac_declaration
7006 int
7007 main ()
7008 {
7009 exit (42);
7010   ;
7011   return 0;
7012 }
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016   (eval $ac_compile) 2>conftest.er1
7017   ac_status=$?
7018   grep -v '^ *+' conftest.er1 >conftest.err
7019   rm -f conftest.er1
7020   cat conftest.err >&5
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } &&
7023          { ac_try='test -z "$ac_cxx_werror_flag"
7024                          || test ! -s conftest.err'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; } &&
7030          { ac_try='test -s conftest.$ac_objext'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; }; then
7036   break
7037 else
7038   echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 fi
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 done
7044 rm -f conftest*
7045 if test -n "$ac_declaration"; then
7046   echo '#ifdef __cplusplus' >>confdefs.h
7047   echo $ac_declaration      >>confdefs.h
7048   echo '#endif'             >>confdefs.h
7049 fi
7050
7051 ac_ext=cc
7052 ac_cpp='$CXXCPP $CPPFLAGS'
7053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7056
7057 depcc="$CXX"  am_compiler_list=
7058
7059 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7060 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7061 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7065   # We make a subdir and do the tests there.  Otherwise we can end up
7066   # making bogus files that we don't know about and never remove.  For
7067   # instance it was reported that on HP-UX the gcc test will end up
7068   # making a dummy file named `D' -- because `-MD' means `put the output
7069   # in D'.
7070   mkdir conftest.dir
7071   # Copy depcomp to subdir because otherwise we won't find it if we're
7072   # using a relative directory.
7073   cp "$am_depcomp" conftest.dir
7074   cd conftest.dir
7075   # We will build objects and dependencies in a subdirectory because
7076   # it helps to detect inapplicable dependency modes.  For instance
7077   # both Tru64's cc and ICC support -MD to output dependencies as a
7078   # side effect of compilation, but ICC will put the dependencies in
7079   # the current directory while Tru64 will put them in the object
7080   # directory.
7081   mkdir sub
7082
7083   am_cv_CXX_dependencies_compiler_type=none
7084   if test "$am_compiler_list" = ""; then
7085      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7086   fi
7087   for depmode in $am_compiler_list; do
7088     # Setup a source with many dependencies, because some compilers
7089     # like to wrap large dependency lists on column 80 (with \), and
7090     # we should not choose a depcomp mode which is confused by this.
7091     #
7092     # We need to recreate these files for each test, as the compiler may
7093     # overwrite some of them when testing with obscure command lines.
7094     # This happens at least with the AIX C compiler.
7095     : > sub/conftest.c
7096     for i in 1 2 3 4 5 6; do
7097       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7098       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7099       # Solaris 8's {/usr,}/bin/sh.
7100       touch sub/conftst$i.h
7101     done
7102     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7103
7104     case $depmode in
7105     nosideeffect)
7106       # after this tag, mechanisms are not by side-effect, so they'll
7107       # only be used when explicitly requested
7108       if test "x$enable_dependency_tracking" = xyes; then
7109         continue
7110       else
7111         break
7112       fi
7113       ;;
7114     none) break ;;
7115     esac
7116     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7117     # mode.  It turns out that the SunPro C++ compiler does not properly
7118     # handle `-M -o', and we need to detect this.
7119     if depmode=$depmode \
7120        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7121        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7122        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7123          >/dev/null 2>conftest.err &&
7124        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7125        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7127       # icc doesn't choke on unknown options, it will just issue warnings
7128       # or remarks (even with -Werror).  So we grep stderr for any message
7129       # that says an option was ignored or not supported.
7130       # When given -MP, icc 7.0 and 7.1 complain thusly:
7131       #   icc: Command line warning: ignoring option '-M'; no argument required
7132       # The diagnosis changed in icc 8.0:
7133       #   icc: Command line remark: option '-MP' not supported
7134       if (grep 'ignoring option' conftest.err ||
7135           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7136         am_cv_CXX_dependencies_compiler_type=$depmode
7137         break
7138       fi
7139     fi
7140   done
7141
7142   cd ..
7143   rm -rf conftest.dir
7144 else
7145   am_cv_CXX_dependencies_compiler_type=none
7146 fi
7147
7148 fi
7149 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7150 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7151 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7152
7153
7154
7155 if
7156   test "x$enable_dependency_tracking" != xno \
7157   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7158   am__fastdepCXX_TRUE=
7159   am__fastdepCXX_FALSE='#'
7160 else
7161   am__fastdepCXX_TRUE='#'
7162   am__fastdepCXX_FALSE=
7163 fi
7164
7165
7166
7167
7168 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7169     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7170     (test "X$CXX" != "Xg++"))) ; then
7171   ac_ext=cc
7172 ac_cpp='$CXXCPP $CPPFLAGS'
7173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7176 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7177 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7178 if test -z "$CXXCPP"; then
7179   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182       # Double quotes because CXXCPP needs to be expanded
7183     for CXXCPP in "$CXX -E" "/lib/cpp"
7184     do
7185       ac_preproc_ok=false
7186 for ac_cxx_preproc_warn_flag in '' yes
7187 do
7188   # Use a header file that comes with gcc, so configuring glibc
7189   # with a fresh cross-compiler works.
7190   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7191   # <limits.h> exists even on freestanding compilers.
7192   # On the NeXT, cc -E runs the code through the compiler's parser,
7193   # not just through cpp. "Syntax error" is here to catch this case.
7194   cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h.  */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h.  */
7200 #ifdef __STDC__
7201 # include <limits.h>
7202 #else
7203 # include <assert.h>
7204 #endif
7205                      Syntax error
7206 _ACEOF
7207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7209   ac_status=$?
7210   grep -v '^ *+' conftest.er1 >conftest.err
7211   rm -f conftest.er1
7212   cat conftest.err >&5
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); } >/dev/null; then
7215   if test -s conftest.err; then
7216     ac_cpp_err=$ac_cxx_preproc_warn_flag
7217     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7218   else
7219     ac_cpp_err=
7220   fi
7221 else
7222   ac_cpp_err=yes
7223 fi
7224 if test -z "$ac_cpp_err"; then
7225   :
7226 else
7227   echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7229
7230   # Broken: fails on valid input.
7231 continue
7232 fi
7233 rm -f conftest.err conftest.$ac_ext
7234
7235   # OK, works on sane cases.  Now check whether non-existent headers
7236   # can be detected and how.
7237   cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243 #include <ac_nonexistent.h>
7244 _ACEOF
7245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7247   ac_status=$?
7248   grep -v '^ *+' conftest.er1 >conftest.err
7249   rm -f conftest.er1
7250   cat conftest.err >&5
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } >/dev/null; then
7253   if test -s conftest.err; then
7254     ac_cpp_err=$ac_cxx_preproc_warn_flag
7255     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7256   else
7257     ac_cpp_err=
7258   fi
7259 else
7260   ac_cpp_err=yes
7261 fi
7262 if test -z "$ac_cpp_err"; then
7263   # Broken: success on invalid input.
7264 continue
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269   # Passes both tests.
7270 ac_preproc_ok=:
7271 break
7272 fi
7273 rm -f conftest.err conftest.$ac_ext
7274
7275 done
7276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7277 rm -f conftest.err conftest.$ac_ext
7278 if $ac_preproc_ok; then
7279   break
7280 fi
7281
7282     done
7283     ac_cv_prog_CXXCPP=$CXXCPP
7284
7285 fi
7286   CXXCPP=$ac_cv_prog_CXXCPP
7287 else
7288   ac_cv_prog_CXXCPP=$CXXCPP
7289 fi
7290 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7291 echo "${ECHO_T}$CXXCPP" >&6
7292 ac_preproc_ok=false
7293 for ac_cxx_preproc_warn_flag in '' yes
7294 do
7295   # Use a header file that comes with gcc, so configuring glibc
7296   # with a fresh cross-compiler works.
7297   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298   # <limits.h> exists even on freestanding compilers.
7299   # On the NeXT, cc -E runs the code through the compiler's parser,
7300   # not just through cpp. "Syntax error" is here to catch this case.
7301   cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307 #ifdef __STDC__
7308 # include <limits.h>
7309 #else
7310 # include <assert.h>
7311 #endif
7312                      Syntax error
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   :
7333 else
7334   echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337   # Broken: fails on valid input.
7338 continue
7339 fi
7340 rm -f conftest.err conftest.$ac_ext
7341
7342   # OK, works on sane cases.  Now check whether non-existent headers
7343   # can be detected and how.
7344   cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h.  */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h.  */
7350 #include <ac_nonexistent.h>
7351 _ACEOF
7352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7354   ac_status=$?
7355   grep -v '^ *+' conftest.er1 >conftest.err
7356   rm -f conftest.er1
7357   cat conftest.err >&5
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); } >/dev/null; then
7360   if test -s conftest.err; then
7361     ac_cpp_err=$ac_cxx_preproc_warn_flag
7362     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7363   else
7364     ac_cpp_err=
7365   fi
7366 else
7367   ac_cpp_err=yes
7368 fi
7369 if test -z "$ac_cpp_err"; then
7370   # Broken: success on invalid input.
7371 continue
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376   # Passes both tests.
7377 ac_preproc_ok=:
7378 break
7379 fi
7380 rm -f conftest.err conftest.$ac_ext
7381
7382 done
7383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7384 rm -f conftest.err conftest.$ac_ext
7385 if $ac_preproc_ok; then
7386   :
7387 else
7388   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7389 See \`config.log' for more details." >&5
7390 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7391 See \`config.log' for more details." >&2;}
7392    { (exit 1); exit 1; }; }
7393 fi
7394
7395 ac_ext=cc
7396 ac_cpp='$CXXCPP $CPPFLAGS'
7397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7400
7401 fi
7402
7403
7404 ac_ext=f
7405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7408 if test -n "$ac_tool_prefix"; then
7409   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7410   do
7411     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7413 echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415 if test "${ac_cv_prog_F77+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   if test -n "$F77"; then
7419   ac_cv_prog_F77="$F77" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434
7435 fi
7436 fi
7437 F77=$ac_cv_prog_F77
7438 if test -n "$F77"; then
7439   echo "$as_me:$LINENO: result: $F77" >&5
7440 echo "${ECHO_T}$F77" >&6
7441 else
7442   echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7444 fi
7445
7446     test -n "$F77" && break
7447   done
7448 fi
7449 if test -z "$F77"; then
7450   ac_ct_F77=$F77
7451   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7452 do
7453   # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7457 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   if test -n "$ac_ct_F77"; then
7461   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_prog_ac_ct_F77="$ac_prog"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476
7477 fi
7478 fi
7479 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7480 if test -n "$ac_ct_F77"; then
7481   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7482 echo "${ECHO_T}$ac_ct_F77" >&6
7483 else
7484   echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6
7486 fi
7487
7488   test -n "$ac_ct_F77" && break
7489 done
7490
7491   F77=$ac_ct_F77
7492 fi
7493
7494
7495 # Provide some information about the compiler.
7496 echo "$as_me:7496:" \
7497      "checking for Fortran 77 compiler version" >&5
7498 ac_compiler=`set X $ac_compile; echo $2`
7499 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7500   (eval $ac_compiler --version </dev/null >&5) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }
7504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7505   (eval $ac_compiler -v </dev/null >&5) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }
7509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7510   (eval $ac_compiler -V </dev/null >&5) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }
7514 rm -f a.out
7515
7516 # If we don't use `.F' as extension, the preprocessor is not run on the
7517 # input file.  (Note that this only needs to work for GNU compilers.)
7518 ac_save_ext=$ac_ext
7519 ac_ext=F
7520 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7521 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7522 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   cat >conftest.$ac_ext <<_ACEOF
7526       program main
7527 #ifndef __GNUC__
7528        choke me
7529 #endif
7530
7531       end
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535   (eval $ac_compile) 2>conftest.er1
7536   ac_status=$?
7537   grep -v '^ *+' conftest.er1 >conftest.err
7538   rm -f conftest.er1
7539   cat conftest.err >&5
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } &&
7542          { ac_try='test -z "$ac_f77_werror_flag"
7543                          || test ! -s conftest.err'
7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545   (eval $ac_try) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); }; } &&
7549          { ac_try='test -s conftest.$ac_objext'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; }; then
7555   ac_compiler_gnu=yes
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_compiler_gnu=no
7561 fi
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7564
7565 fi
7566 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7567 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7568 ac_ext=$ac_save_ext
7569 ac_test_FFLAGS=${FFLAGS+set}
7570 ac_save_FFLAGS=$FFLAGS
7571 FFLAGS=
7572 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7573 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7574 if test "${ac_cv_prog_f77_g+set}" = set; then
7575   echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577   FFLAGS=-g
7578 cat >conftest.$ac_ext <<_ACEOF
7579       program main
7580
7581       end
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585   (eval $ac_compile) 2>conftest.er1
7586   ac_status=$?
7587   grep -v '^ *+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } &&
7592          { ac_try='test -z "$ac_f77_werror_flag"
7593                          || test ! -s conftest.err'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; } &&
7599          { ac_try='test -s conftest.$ac_objext'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; }; then
7605   ac_cv_prog_f77_g=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_cv_prog_f77_g=no
7611 fi
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613
7614 fi
7615 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7616 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7617 if test "$ac_test_FFLAGS" = set; then
7618   FFLAGS=$ac_save_FFLAGS
7619 elif test $ac_cv_prog_f77_g = yes; then
7620   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7621     FFLAGS="-g -O2"
7622   else
7623     FFLAGS="-g"
7624   fi
7625 else
7626   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7627     FFLAGS="-O2"
7628   else
7629     FFLAGS=
7630   fi
7631 fi
7632
7633 G77=`test $ac_compiler_gnu = yes && echo yes`
7634 ac_ext=c
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7639
7640
7641
7642 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7643
7644 # find the maximum length of command line arguments
7645 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7646 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7647 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650     i=0
7651   teststring="ABCD"
7652
7653   case $build_os in
7654   msdosdjgpp*)
7655     # On DJGPP, this test can blow up pretty badly due to problems in libc
7656     # (any single argument exceeding 2000 bytes causes a buffer overrun
7657     # during glob expansion).  Even if it were fixed, the result of this
7658     # check would be larger than it should be.
7659     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7660     ;;
7661
7662   gnu*)
7663     # Under GNU Hurd, this test is not required because there is
7664     # no limit to the length of command line arguments.
7665     # Libtool will interpret -1 as no limit whatsoever
7666     lt_cv_sys_max_cmd_len=-1;
7667     ;;
7668
7669   cygwin* | mingw*)
7670     # On Win9x/ME, this test blows up -- it succeeds, but takes
7671     # about 5 minutes as the teststring grows exponentially.
7672     # Worse, since 9x/ME are not pre-emptively multitasking,
7673     # you end up with a "frozen" computer, even though with patience
7674     # the test eventually succeeds (with a max line length of 256k).
7675     # Instead, let's just punt: use the minimum linelength reported by
7676     # all of the supported platforms: 8192 (on NT/2K/XP).
7677     lt_cv_sys_max_cmd_len=8192;
7678     ;;
7679
7680   amigaos*)
7681     # On AmigaOS with pdksh, this test takes hours, literally.
7682     # So we just punt and use a minimum line length of 8192.
7683     lt_cv_sys_max_cmd_len=8192;
7684     ;;
7685
7686   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7687     # This has been around since 386BSD, at least.  Likely further.
7688     if test -x /sbin/sysctl; then
7689       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7690     elif test -x /usr/sbin/sysctl; then
7691       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7692     else
7693       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7694     fi
7695     # And add a safety zone
7696     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7697     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7698     ;;
7699   osf*)
7700     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7701     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7702     # nice to cause kernel panics so lets avoid the loop below.
7703     # First set a reasonable default.
7704     lt_cv_sys_max_cmd_len=16384
7705     #
7706     if test -x /sbin/sysconfig; then
7707       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7708         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7709       esac
7710     fi
7711     ;;
7712   *)
7713     # If test is not a shell built-in, we'll probably end up computing a
7714     # maximum length that is only half of the actual maximum length, but
7715     # we can't tell.
7716     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7717     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7718                = "XX$teststring") >/dev/null 2>&1 &&
7719             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7720             lt_cv_sys_max_cmd_len=$new_result &&
7721             test $i != 17 # 1/2 MB should be enough
7722     do
7723       i=`expr $i + 1`
7724       teststring=$teststring$teststring
7725     done
7726     teststring=
7727     # Add a significant safety factor because C++ compilers can tack on massive
7728     # amounts of additional arguments before passing them to the linker.
7729     # It appears as though 1/2 is a usable value.
7730     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7731     ;;
7732   esac
7733
7734 fi
7735
7736 if test -n $lt_cv_sys_max_cmd_len ; then
7737   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7738 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7739 else
7740   echo "$as_me:$LINENO: result: none" >&5
7741 echo "${ECHO_T}none" >&6
7742 fi
7743
7744
7745
7746
7747 # Check for command to grab the raw symbol name followed by C symbol from nm.
7748 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7749 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7750 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753
7754 # These are sane defaults that work on at least a few old systems.
7755 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7756
7757 # Character class describing NM global symbol codes.
7758 symcode='[BCDEGRST]'
7759
7760 # Regexp to match symbols that can be accessed directly from C.
7761 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7762
7763 # Transform an extracted symbol line into a proper C declaration
7764 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7765
7766 # Transform an extracted symbol line into symbol name and symbol address
7767 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'"
7768
7769 # Define system-specific variables.
7770 case $host_os in
7771 aix*)
7772   symcode='[BCDT]'
7773   ;;
7774 cygwin* | mingw* | pw32*)
7775   symcode='[ABCDGISTW]'
7776   ;;
7777 hpux*) # Its linker distinguishes data from code symbols
7778   if test "$host_cpu" = ia64; then
7779     symcode='[ABCDEGRST]'
7780   fi
7781   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7782   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'"
7783   ;;
7784 linux*)
7785   if test "$host_cpu" = ia64; then
7786     symcode='[ABCDGIRSTW]'
7787     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7788     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'"
7789   fi
7790   ;;
7791 irix* | nonstopux*)
7792   symcode='[BCDEGRST]'
7793   ;;
7794 osf*)
7795   symcode='[BCDEGQRST]'
7796   ;;
7797 solaris* | sysv5*)
7798   symcode='[BDRT]'
7799   ;;
7800 sysv4)
7801   symcode='[DFNSTU]'
7802   ;;
7803 esac
7804
7805 # Handle CRLF in mingw tool chain
7806 opt_cr=
7807 case $build_os in
7808 mingw*)
7809   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7810   ;;
7811 esac
7812
7813 # If we're using GNU nm, then use its standard symbol codes.
7814 case `$NM -V 2>&1` in
7815 *GNU* | *'with BFD'*)
7816   symcode='[ABCDGIRSTW]' ;;
7817 esac
7818
7819 # Try without a prefix undercore, then with it.
7820 for ac_symprfx in "" "_"; do
7821
7822   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7823   symxfrm="\\1 $ac_symprfx\\2 \\2"
7824
7825   # Write the raw and C identifiers.
7826   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7827
7828   # Check to see that the pipe works correctly.
7829   pipe_works=no
7830
7831   rm -f conftest*
7832   cat > conftest.$ac_ext <<EOF
7833 #ifdef __cplusplus
7834 extern "C" {
7835 #endif
7836 char nm_test_var;
7837 void nm_test_func(){}
7838 #ifdef __cplusplus
7839 }
7840 #endif
7841 int main(){nm_test_var='a';nm_test_func();return(0);}
7842 EOF
7843
7844   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845   (eval $ac_compile) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; then
7849     # Now try to grab the symbols.
7850     nlist=conftest.nm
7851     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7852   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } && test -s "$nlist"; then
7856       # Try sorting and uniquifying the output.
7857       if sort "$nlist" | uniq > "$nlist"T; then
7858         mv -f "$nlist"T "$nlist"
7859       else
7860         rm -f "$nlist"T
7861       fi
7862
7863       # Make sure that we snagged all the symbols we need.
7864       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7865         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7866           cat <<EOF > conftest.$ac_ext
7867 #ifdef __cplusplus
7868 extern "C" {
7869 #endif
7870
7871 EOF
7872           # Now generate the symbol file.
7873           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7874
7875           cat <<EOF >> conftest.$ac_ext
7876 #if defined (__STDC__) && __STDC__
7877 # define lt_ptr_t void *
7878 #else
7879 # define lt_ptr_t char *
7880 # define const
7881 #endif
7882
7883 /* The mapping between symbol names and symbols. */
7884 const struct {
7885   const char *name;
7886   lt_ptr_t address;
7887 }
7888 lt_preloaded_symbols[] =
7889 {
7890 EOF
7891           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7892           cat <<\EOF >> conftest.$ac_ext
7893   {0, (lt_ptr_t) 0}
7894 };
7895
7896 #ifdef __cplusplus
7897 }
7898 #endif
7899 EOF
7900           # Now try linking the two files.
7901           mv conftest.$ac_objext conftstm.$ac_objext
7902           lt_save_LIBS="$LIBS"
7903           lt_save_CFLAGS="$CFLAGS"
7904           LIBS="conftstm.$ac_objext"
7905           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7906           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907   (eval $ac_link) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7911             pipe_works=yes
7912           fi
7913           LIBS="$lt_save_LIBS"
7914           CFLAGS="$lt_save_CFLAGS"
7915         else
7916           echo "cannot find nm_test_func in $nlist" >&5
7917         fi
7918       else
7919         echo "cannot find nm_test_var in $nlist" >&5
7920       fi
7921     else
7922       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7923     fi
7924   else
7925     echo "$progname: failed program was:" >&5
7926     cat conftest.$ac_ext >&5
7927   fi
7928   rm -f conftest* conftst*
7929
7930   # Do not use the global_symbol_pipe unless it works.
7931   if test "$pipe_works" = yes; then
7932     break
7933   else
7934     lt_cv_sys_global_symbol_pipe=
7935   fi
7936 done
7937
7938 fi
7939
7940 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7941   lt_cv_sys_global_symbol_to_cdecl=
7942 fi
7943 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7944   echo "$as_me:$LINENO: result: failed" >&5
7945 echo "${ECHO_T}failed" >&6
7946 else
7947   echo "$as_me:$LINENO: result: ok" >&5
7948 echo "${ECHO_T}ok" >&6
7949 fi
7950
7951 echo "$as_me:$LINENO: checking for objdir" >&5
7952 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7953 if test "${lt_cv_objdir+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   rm -f .libs 2>/dev/null
7957 mkdir .libs 2>/dev/null
7958 if test -d .libs; then
7959   lt_cv_objdir=.libs
7960 else
7961   # MS-DOS does not allow filenames that begin with a dot.
7962   lt_cv_objdir=_libs
7963 fi
7964 rmdir .libs 2>/dev/null
7965 fi
7966 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7967 echo "${ECHO_T}$lt_cv_objdir" >&6
7968 objdir=$lt_cv_objdir
7969
7970
7971
7972
7973
7974 case $host_os in
7975 aix3*)
7976   # AIX sometimes has problems with the GCC collect2 program.  For some
7977   # reason, if we set the COLLECT_NAMES environment variable, the problems
7978   # vanish in a puff of smoke.
7979   if test "X${COLLECT_NAMES+set}" != Xset; then
7980     COLLECT_NAMES=
7981     export COLLECT_NAMES
7982   fi
7983   ;;
7984 esac
7985
7986 # Sed substitution that helps us do robust quoting.  It backslashifies
7987 # metacharacters that are still active within double-quoted strings.
7988 Xsed='sed -e 1s/^X//'
7989 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7990
7991 # Same as above, but do not quote variable references.
7992 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7993
7994 # Sed substitution to delay expansion of an escaped shell variable in a
7995 # double_quote_subst'ed string.
7996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7997
7998 # Sed substitution to avoid accidental globbing in evaled expressions
7999 no_glob_subst='s/\*/\\\*/g'
8000
8001 # Constants:
8002 rm="rm -f"
8003
8004 # Global variables:
8005 default_ofile=libtool
8006 can_build_shared=yes
8007
8008 # All known linkers require a `.a' archive for static linking (except M$VC,
8009 # which needs '.lib').
8010 libext=a
8011 ltmain="$ac_aux_dir/ltmain.sh"
8012 ofile="$default_ofile"
8013 with_gnu_ld="$lt_cv_prog_gnu_ld"
8014
8015 if test -n "$ac_tool_prefix"; then
8016   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}ar; ac_word=$2
8018 echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8020 if test "${ac_cv_prog_AR+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   if test -n "$AR"; then
8024   ac_cv_prog_AR="$AR" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031   for ac_exec_ext in '' $ac_executable_extensions; do
8032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033     ac_cv_prog_AR="${ac_tool_prefix}ar"
8034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038 done
8039
8040 fi
8041 fi
8042 AR=$ac_cv_prog_AR
8043 if test -n "$AR"; then
8044   echo "$as_me:$LINENO: result: $AR" >&5
8045 echo "${ECHO_T}$AR" >&6
8046 else
8047   echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049 fi
8050
8051 fi
8052 if test -z "$ac_cv_prog_AR"; then
8053   ac_ct_AR=$AR
8054   # Extract the first word of "ar", so it can be a program name with args.
8055 set dummy ar; ac_word=$2
8056 echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   if test -n "$ac_ct_AR"; then
8062   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   test -z "$as_dir" && as_dir=.
8069   for ac_exec_ext in '' $ac_executable_extensions; do
8070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071     ac_cv_prog_ac_ct_AR="ar"
8072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073     break 2
8074   fi
8075 done
8076 done
8077
8078   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8079 fi
8080 fi
8081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8082 if test -n "$ac_ct_AR"; then
8083   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8084 echo "${ECHO_T}$ac_ct_AR" >&6
8085 else
8086   echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088 fi
8089
8090   AR=$ac_ct_AR
8091 else
8092   AR="$ac_cv_prog_AR"
8093 fi
8094
8095 if test -n "$ac_tool_prefix"; then
8096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8098 echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100 if test "${ac_cv_prog_RANLIB+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   if test -n "$RANLIB"; then
8104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111   for ac_exec_ext in '' $ac_executable_extensions; do
8112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118 done
8119
8120 fi
8121 fi
8122 RANLIB=$ac_cv_prog_RANLIB
8123 if test -n "$RANLIB"; then
8124   echo "$as_me:$LINENO: result: $RANLIB" >&5
8125 echo "${ECHO_T}$RANLIB" >&6
8126 else
8127   echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8129 fi
8130
8131 fi
8132 if test -z "$ac_cv_prog_RANLIB"; then
8133   ac_ct_RANLIB=$RANLIB
8134   # Extract the first word of "ranlib", so it can be a program name with args.
8135 set dummy ranlib; ac_word=$2
8136 echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   if test -n "$ac_ct_RANLIB"; then
8142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149   for ac_exec_ext in '' $ac_executable_extensions; do
8150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151     ac_cv_prog_ac_ct_RANLIB="ranlib"
8152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153     break 2
8154   fi
8155 done
8156 done
8157
8158   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8159 fi
8160 fi
8161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8162 if test -n "$ac_ct_RANLIB"; then
8163   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8164 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8165 else
8166   echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169
8170   RANLIB=$ac_ct_RANLIB
8171 else
8172   RANLIB="$ac_cv_prog_RANLIB"
8173 fi
8174
8175 if test -n "$ac_tool_prefix"; then
8176   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}strip; ac_word=$2
8178 echo "$as_me:$LINENO: checking for $ac_word" >&5
8179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8180 if test "${ac_cv_prog_STRIP+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   if test -n "$STRIP"; then
8184   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191   for ac_exec_ext in '' $ac_executable_extensions; do
8192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198 done
8199
8200 fi
8201 fi
8202 STRIP=$ac_cv_prog_STRIP
8203 if test -n "$STRIP"; then
8204   echo "$as_me:$LINENO: result: $STRIP" >&5
8205 echo "${ECHO_T}$STRIP" >&6
8206 else
8207   echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8209 fi
8210
8211 fi
8212 if test -z "$ac_cv_prog_STRIP"; then
8213   ac_ct_STRIP=$STRIP
8214   # Extract the first word of "strip", so it can be a program name with args.
8215 set dummy strip; ac_word=$2
8216 echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   if test -n "$ac_ct_STRIP"; then
8222   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227   IFS=$as_save_IFS
8228   test -z "$as_dir" && as_dir=.
8229   for ac_exec_ext in '' $ac_executable_extensions; do
8230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231     ac_cv_prog_ac_ct_STRIP="strip"
8232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233     break 2
8234   fi
8235 done
8236 done
8237
8238   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8239 fi
8240 fi
8241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8242 if test -n "$ac_ct_STRIP"; then
8243   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8244 echo "${ECHO_T}$ac_ct_STRIP" >&6
8245 else
8246   echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8248 fi
8249
8250   STRIP=$ac_ct_STRIP
8251 else
8252   STRIP="$ac_cv_prog_STRIP"
8253 fi
8254
8255
8256 old_CC="$CC"
8257 old_CFLAGS="$CFLAGS"
8258
8259 # Set sane defaults for various variables
8260 test -z "$AR" && AR=ar
8261 test -z "$AR_FLAGS" && AR_FLAGS=cru
8262 test -z "$AS" && AS=as
8263 test -z "$CC" && CC=cc
8264 test -z "$LTCC" && LTCC=$CC
8265 test -z "$DLLTOOL" && DLLTOOL=dlltool
8266 test -z "$LD" && LD=ld
8267 test -z "$LN_S" && LN_S="ln -s"
8268 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8269 test -z "$NM" && NM=nm
8270 test -z "$SED" && SED=sed
8271 test -z "$OBJDUMP" && OBJDUMP=objdump
8272 test -z "$RANLIB" && RANLIB=:
8273 test -z "$STRIP" && STRIP=:
8274 test -z "$ac_objext" && ac_objext=o
8275
8276 # Determine commands to create old-style static archives.
8277 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8278 old_postinstall_cmds='chmod 644 $oldlib'
8279 old_postuninstall_cmds=
8280
8281 if test -n "$RANLIB"; then
8282   case $host_os in
8283   openbsd*)
8284     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8285     ;;
8286   *)
8287     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8288     ;;
8289   esac
8290   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8291 fi
8292
8293 for cc_temp in $compiler""; do
8294   case $cc_temp in
8295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8297     \-*) ;;
8298     *) break;;
8299   esac
8300 done
8301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8302
8303
8304 # Only perform the check for file, if the check method requires it
8305 case $deplibs_check_method in
8306 file_magic*)
8307   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8308     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8309 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   case $MAGIC_CMD in
8314 [\\/*] |  ?:[\\/]*)
8315   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8316   ;;
8317 *)
8318   lt_save_MAGIC_CMD="$MAGIC_CMD"
8319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8320   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8321   for ac_dir in $ac_dummy; do
8322     IFS="$lt_save_ifs"
8323     test -z "$ac_dir" && ac_dir=.
8324     if test -f $ac_dir/${ac_tool_prefix}file; then
8325       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8326       if test -n "$file_magic_test_file"; then
8327         case $deplibs_check_method in
8328         "file_magic "*)
8329           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8330           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8332             $EGREP "$file_magic_regex" > /dev/null; then
8333             :
8334           else
8335             cat <<EOF 1>&2
8336
8337 *** Warning: the command libtool uses to detect shared libraries,
8338 *** $file_magic_cmd, produces output that libtool cannot recognize.
8339 *** The result is that libtool may fail to recognize shared libraries
8340 *** as such.  This will affect the creation of libtool libraries that
8341 *** depend on shared libraries, but programs linked with such libtool
8342 *** libraries will work regardless of this problem.  Nevertheless, you
8343 *** may want to report the problem to your system manager and/or to
8344 *** bug-libtool@gnu.org
8345
8346 EOF
8347           fi ;;
8348         esac
8349       fi
8350       break
8351     fi
8352   done
8353   IFS="$lt_save_ifs"
8354   MAGIC_CMD="$lt_save_MAGIC_CMD"
8355   ;;
8356 esac
8357 fi
8358
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if test -n "$MAGIC_CMD"; then
8361   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8362 echo "${ECHO_T}$MAGIC_CMD" >&6
8363 else
8364   echo "$as_me:$LINENO: result: no" >&5
8365 echo "${ECHO_T}no" >&6
8366 fi
8367
8368 if test -z "$lt_cv_path_MAGIC_CMD"; then
8369   if test -n "$ac_tool_prefix"; then
8370     echo "$as_me:$LINENO: checking for file" >&5
8371 echo $ECHO_N "checking for file... $ECHO_C" >&6
8372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   case $MAGIC_CMD in
8376 [\\/*] |  ?:[\\/]*)
8377   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8378   ;;
8379 *)
8380   lt_save_MAGIC_CMD="$MAGIC_CMD"
8381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8382   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8383   for ac_dir in $ac_dummy; do
8384     IFS="$lt_save_ifs"
8385     test -z "$ac_dir" && ac_dir=.
8386     if test -f $ac_dir/file; then
8387       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8388       if test -n "$file_magic_test_file"; then
8389         case $deplibs_check_method in
8390         "file_magic "*)
8391           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8392           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8393           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8394             $EGREP "$file_magic_regex" > /dev/null; then
8395             :
8396           else
8397             cat <<EOF 1>&2
8398
8399 *** Warning: the command libtool uses to detect shared libraries,
8400 *** $file_magic_cmd, produces output that libtool cannot recognize.
8401 *** The result is that libtool may fail to recognize shared libraries
8402 *** as such.  This will affect the creation of libtool libraries that
8403 *** depend on shared libraries, but programs linked with such libtool
8404 *** libraries will work regardless of this problem.  Nevertheless, you
8405 *** may want to report the problem to your system manager and/or to
8406 *** bug-libtool@gnu.org
8407
8408 EOF
8409           fi ;;
8410         esac
8411       fi
8412       break
8413     fi
8414   done
8415   IFS="$lt_save_ifs"
8416   MAGIC_CMD="$lt_save_MAGIC_CMD"
8417   ;;
8418 esac
8419 fi
8420
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if test -n "$MAGIC_CMD"; then
8423   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8424 echo "${ECHO_T}$MAGIC_CMD" >&6
8425 else
8426   echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6
8428 fi
8429
8430   else
8431     MAGIC_CMD=:
8432   fi
8433 fi
8434
8435   fi
8436   ;;
8437 esac
8438
8439 enable_dlopen=yes
8440 enable_win32_dll=yes
8441
8442 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8443 if test "${enable_libtool_lock+set}" = set; then
8444   enableval="$enable_libtool_lock"
8445
8446 fi;
8447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8448
8449
8450 # Check whether --with-pic or --without-pic was given.
8451 if test "${with_pic+set}" = set; then
8452   withval="$with_pic"
8453   pic_mode="$withval"
8454 else
8455   pic_mode=default
8456 fi;
8457 test -z "$pic_mode" && pic_mode=default
8458
8459 # Use C for the default configuration in the libtool script
8460 tagname=
8461 lt_save_CC="$CC"
8462 ac_ext=c
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467
8468
8469 # Source file extension for C test sources.
8470 ac_ext=c
8471
8472 # Object file extension for compiled C test sources.
8473 objext=o
8474 objext=$objext
8475
8476 # Code to be used in simple compile tests
8477 lt_simple_compile_test_code="int some_variable = 0;\n"
8478
8479 # Code to be used in simple link tests
8480 lt_simple_link_test_code='int main(){return(0);}\n'
8481
8482
8483 # If no C compiler was specified, use CC.
8484 LTCC=${LTCC-"$CC"}
8485
8486 # Allow CC to be a program name with arguments.
8487 compiler=$CC
8488
8489
8490 # save warnings/boilerplate of simple test code
8491 ac_outfile=conftest.$ac_objext
8492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8494 _lt_compiler_boilerplate=`cat conftest.err`
8495 $rm conftest*
8496
8497 ac_outfile=conftest.$ac_objext
8498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8500 _lt_linker_boilerplate=`cat conftest.err`
8501 $rm conftest*
8502
8503
8504 #
8505 # Check for any special shared library compilation flags.
8506 #
8507 lt_prog_cc_shlib=
8508 if test "$GCC" = no; then
8509   case $host_os in
8510   sco3.2v5*)
8511     lt_prog_cc_shlib='-belf'
8512     ;;
8513   esac
8514 fi
8515 if test -n "$lt_prog_cc_shlib"; then
8516   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8517 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8518   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8519   else
8520     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8521 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8522     lt_cv_prog_cc_can_build_shared=no
8523   fi
8524 fi
8525
8526
8527 #
8528 # Check to make sure the static flag actually works.
8529 #
8530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8531 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8532 if test "${lt_prog_compiler_static_works+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   lt_prog_compiler_static_works=no
8536    save_LDFLAGS="$LDFLAGS"
8537    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8538    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8539    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8540      # The compiler can only warn and ignore the option if not recognized
8541      # So say no if there are warnings
8542      if test -s conftest.err; then
8543        # Append any errors to the config.log.
8544        cat conftest.err 1>&5
8545        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8546        $SED '/^$/d' conftest.err >conftest.er2
8547        if diff conftest.exp conftest.er2 >/dev/null; then
8548          lt_prog_compiler_static_works=yes
8549        fi
8550      else
8551        lt_prog_compiler_static_works=yes
8552      fi
8553    fi
8554    $rm conftest*
8555    LDFLAGS="$save_LDFLAGS"
8556
8557 fi
8558 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8559 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8560
8561 if test x"$lt_prog_compiler_static_works" = xyes; then
8562     :
8563 else
8564     lt_prog_compiler_static=
8565 fi
8566
8567
8568
8569
8570 lt_prog_compiler_no_builtin_flag=
8571
8572 if test "$GCC" = yes; then
8573   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8574
8575
8576 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8578 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   lt_cv_prog_compiler_rtti_exceptions=no
8582   ac_outfile=conftest.$ac_objext
8583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8584    lt_compiler_flag="-fno-rtti -fno-exceptions"
8585    # Insert the option either (1) after the last *FLAGS variable, or
8586    # (2) before a word containing "conftest.", or (3) at the end.
8587    # Note that $ac_compile itself does not contain backslashes and begins
8588    # with a dollar sign (not a hyphen), so the echo should work correctly.
8589    # The option is referenced via a variable to avoid confusing sed.
8590    lt_compile=`echo "$ac_compile" | $SED \
8591    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593    -e 's:$: $lt_compiler_flag:'`
8594    (eval echo "\"\$as_me:8594: $lt_compile\"" >&5)
8595    (eval "$lt_compile" 2>conftest.err)
8596    ac_status=$?
8597    cat conftest.err >&5
8598    echo "$as_me:8598: \$? = $ac_status" >&5
8599    if (exit $ac_status) && test -s "$ac_outfile"; then
8600      # The compiler can only warn and ignore the option if not recognized
8601      # So say no if there are warnings other than the usual output.
8602      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8603      $SED '/^$/d' conftest.err >conftest.er2
8604      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8605        lt_cv_prog_compiler_rtti_exceptions=yes
8606      fi
8607    fi
8608    $rm conftest*
8609
8610 fi
8611 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8613
8614 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8615     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8616 else
8617     :
8618 fi
8619
8620 fi
8621
8622 lt_prog_compiler_wl=
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_static=
8625
8626 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8627 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8628
8629   if test "$GCC" = yes; then
8630     lt_prog_compiler_wl='-Wl,'
8631     lt_prog_compiler_static='-static'
8632
8633     case $host_os in
8634       aix*)
8635       # All AIX code is PIC.
8636       if test "$host_cpu" = ia64; then
8637         # AIX 5 now supports IA64 processor
8638         lt_prog_compiler_static='-Bstatic'
8639       fi
8640       ;;
8641
8642     amigaos*)
8643       # FIXME: we need at least 68020 code to build shared libraries, but
8644       # adding the `-m68020' flag to GCC prevents building anything better,
8645       # like `-m68040'.
8646       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8647       ;;
8648
8649     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650       # PIC is the default for these OSes.
8651       ;;
8652
8653     mingw* | pw32* | os2*)
8654       # This hack is so that the source file can tell whether it is being
8655       # built for inclusion in a dll (and should export symbols for example).
8656       lt_prog_compiler_pic='-DDLL_EXPORT'
8657       ;;
8658
8659     darwin* | rhapsody*)
8660       # PIC is the default on this platform
8661       # Common symbols not allowed in MH_DYLIB files
8662       lt_prog_compiler_pic='-fno-common'
8663       ;;
8664
8665     msdosdjgpp*)
8666       # Just because we use GCC doesn't mean we suddenly get shared libraries
8667       # on systems that don't support them.
8668       lt_prog_compiler_can_build_shared=no
8669       enable_shared=no
8670       ;;
8671
8672     sysv4*MP*)
8673       if test -d /usr/nec; then
8674         lt_prog_compiler_pic=-Kconform_pic
8675       fi
8676       ;;
8677
8678     hpux*)
8679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8680       # not for PA HP-UX.
8681       case "$host_cpu" in
8682       hppa*64*|ia64*)
8683         # +Z the default
8684         ;;
8685       *)
8686         lt_prog_compiler_pic='-fPIC'
8687         ;;
8688       esac
8689       ;;
8690
8691     *)
8692       lt_prog_compiler_pic='-fPIC'
8693       ;;
8694     esac
8695   else
8696     # PORTME Check for flag to pass linker flags through the system compiler.
8697     case $host_os in
8698     aix*)
8699       lt_prog_compiler_wl='-Wl,'
8700       if test "$host_cpu" = ia64; then
8701         # AIX 5 now supports IA64 processor
8702         lt_prog_compiler_static='-Bstatic'
8703       else
8704         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8705       fi
8706       ;;
8707       darwin*)
8708         # PIC is the default on this platform
8709         # Common symbols not allowed in MH_DYLIB files
8710        case $cc_basename in
8711          xlc*)
8712          lt_prog_compiler_pic='-qnocommon'
8713          lt_prog_compiler_wl='-Wl,'
8714          ;;
8715        esac
8716        ;;
8717
8718     mingw* | pw32* | os2*)
8719       # This hack is so that the source file can tell whether it is being
8720       # built for inclusion in a dll (and should export symbols for example).
8721       lt_prog_compiler_pic='-DDLL_EXPORT'
8722       ;;
8723
8724     hpux9* | hpux10* | hpux11*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727       # not for PA HP-UX.
8728       case "$host_cpu" in
8729       hppa*64*|ia64*)
8730         # +Z the default
8731         ;;
8732       *)
8733         lt_prog_compiler_pic='+Z'
8734         ;;
8735       esac
8736       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737       lt_prog_compiler_static='${wl}-a ${wl}archive'
8738       ;;
8739
8740     irix5* | irix6* | nonstopux*)
8741       lt_prog_compiler_wl='-Wl,'
8742       # PIC (with -KPIC) is the default.
8743       lt_prog_compiler_static='-non_shared'
8744       ;;
8745
8746     newsos6)
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     linux*)
8752       case $cc_basename in
8753       icc* | ecc*)
8754         lt_prog_compiler_wl='-Wl,'
8755         lt_prog_compiler_pic='-KPIC'
8756         lt_prog_compiler_static='-static'
8757         ;;
8758       pgcc* | pgf77* | pgf90*)
8759         # Portland Group compilers (*not* the Pentium gcc compiler,
8760         # which looks to be a dead project)
8761         lt_prog_compiler_wl='-Wl,'
8762         lt_prog_compiler_pic='-fpic'
8763         lt_prog_compiler_static='-static'
8764         ;;
8765       ccc*)
8766         lt_prog_compiler_wl='-Wl,'
8767         # All Alpha code is PIC.
8768         lt_prog_compiler_static='-non_shared'
8769         ;;
8770       esac
8771       ;;
8772
8773     osf3* | osf4* | osf5*)
8774       lt_prog_compiler_wl='-Wl,'
8775       # All OSF/1 code is PIC.
8776       lt_prog_compiler_static='-non_shared'
8777       ;;
8778
8779     sco3.2v5*)
8780       lt_prog_compiler_pic='-Kpic'
8781       lt_prog_compiler_static='-dn'
8782       ;;
8783
8784     solaris*)
8785       lt_prog_compiler_pic='-KPIC'
8786       lt_prog_compiler_static='-Bstatic'
8787       case $cc_basename in
8788       f77* | f90* | f95*)
8789         lt_prog_compiler_wl='-Qoption ld ';;
8790       *)
8791         lt_prog_compiler_wl='-Wl,';;
8792       esac
8793       ;;
8794
8795     sunos4*)
8796       lt_prog_compiler_wl='-Qoption ld '
8797       lt_prog_compiler_pic='-PIC'
8798       lt_prog_compiler_static='-Bstatic'
8799       ;;
8800
8801     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8802       lt_prog_compiler_wl='-Wl,'
8803       lt_prog_compiler_pic='-KPIC'
8804       lt_prog_compiler_static='-Bstatic'
8805       ;;
8806
8807     sysv4*MP*)
8808       if test -d /usr/nec ;then
8809         lt_prog_compiler_pic='-Kconform_pic'
8810         lt_prog_compiler_static='-Bstatic'
8811       fi
8812       ;;
8813
8814     unicos*)
8815       lt_prog_compiler_wl='-Wl,'
8816       lt_prog_compiler_can_build_shared=no
8817       ;;
8818
8819     uts4*)
8820       lt_prog_compiler_pic='-pic'
8821       lt_prog_compiler_static='-Bstatic'
8822       ;;
8823
8824     *)
8825       lt_prog_compiler_can_build_shared=no
8826       ;;
8827     esac
8828   fi
8829
8830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8831 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8832
8833 #
8834 # Check to make sure the PIC flag actually works.
8835 #
8836 if test -n "$lt_prog_compiler_pic"; then
8837
8838 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8840 if test "${lt_prog_compiler_pic_works+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   lt_prog_compiler_pic_works=no
8844   ac_outfile=conftest.$ac_objext
8845    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8846    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847    # Insert the option either (1) after the last *FLAGS variable, or
8848    # (2) before a word containing "conftest.", or (3) at the end.
8849    # Note that $ac_compile itself does not contain backslashes and begins
8850    # with a dollar sign (not a hyphen), so the echo should work correctly.
8851    # The option is referenced via a variable to avoid confusing sed.
8852    lt_compile=`echo "$ac_compile" | $SED \
8853    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855    -e 's:$: $lt_compiler_flag:'`
8856    (eval echo "\"\$as_me:8856: $lt_compile\"" >&5)
8857    (eval "$lt_compile" 2>conftest.err)
8858    ac_status=$?
8859    cat conftest.err >&5
8860    echo "$as_me:8860: \$? = $ac_status" >&5
8861    if (exit $ac_status) && test -s "$ac_outfile"; then
8862      # The compiler can only warn and ignore the option if not recognized
8863      # So say no if there are warnings other than the usual output.
8864      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8865      $SED '/^$/d' conftest.err >conftest.er2
8866      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8867        lt_prog_compiler_pic_works=yes
8868      fi
8869    fi
8870    $rm conftest*
8871
8872 fi
8873 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8874 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8875
8876 if test x"$lt_prog_compiler_pic_works" = xyes; then
8877     case $lt_prog_compiler_pic in
8878      "" | " "*) ;;
8879      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8880      esac
8881 else
8882     lt_prog_compiler_pic=
8883      lt_prog_compiler_can_build_shared=no
8884 fi
8885
8886 fi
8887 case "$host_os" in
8888   # For platforms which do not support PIC, -DPIC is meaningless:
8889   *djgpp*)
8890     lt_prog_compiler_pic=
8891     ;;
8892   *)
8893     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8894     ;;
8895 esac
8896
8897 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   lt_cv_prog_compiler_c_o=no
8903    $rm -r conftest 2>/dev/null
8904    mkdir conftest
8905    cd conftest
8906    mkdir out
8907    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
8909    lt_compiler_flag="-o out/conftest2.$ac_objext"
8910    # Insert the option either (1) after the last *FLAGS variable, or
8911    # (2) before a word containing "conftest.", or (3) at the end.
8912    # Note that $ac_compile itself does not contain backslashes and begins
8913    # with a dollar sign (not a hyphen), so the echo should work correctly.
8914    lt_compile=`echo "$ac_compile" | $SED \
8915    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917    -e 's:$: $lt_compiler_flag:'`
8918    (eval echo "\"\$as_me:8918: $lt_compile\"" >&5)
8919    (eval "$lt_compile" 2>out/conftest.err)
8920    ac_status=$?
8921    cat out/conftest.err >&5
8922    echo "$as_me:8922: \$? = $ac_status" >&5
8923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8924    then
8925      # The compiler can only warn and ignore the option if not recognized
8926      # So say no if there are warnings
8927      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8928      $SED '/^$/d' out/conftest.err >out/conftest.er2
8929      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930        lt_cv_prog_compiler_c_o=yes
8931      fi
8932    fi
8933    chmod u+w .
8934    $rm conftest*
8935    # SGI C++ compiler will create directory out/ii_files/ for
8936    # template instantiation
8937    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8938    $rm out/* && rmdir out
8939    cd ..
8940    rmdir conftest
8941    $rm conftest*
8942
8943 fi
8944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8946
8947
8948 hard_links="nottested"
8949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950   # do not overwrite the value of need_locks provided by the user
8951   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8953   hard_links=yes
8954   $rm conftest*
8955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956   touch conftest.a
8957   ln conftest.a conftest.b 2>&5 || hard_links=no
8958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959   echo "$as_me:$LINENO: result: $hard_links" >&5
8960 echo "${ECHO_T}$hard_links" >&6
8961   if test "$hard_links" = no; then
8962     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8964     need_locks=warn
8965   fi
8966 else
8967   need_locks=no
8968 fi
8969
8970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8972
8973   runpath_var=
8974   allow_undefined_flag=
8975   enable_shared_with_static_runtimes=no
8976   archive_cmds=
8977   archive_expsym_cmds=
8978   old_archive_From_new_cmds=
8979   old_archive_from_expsyms_cmds=
8980   export_dynamic_flag_spec=
8981   whole_archive_flag_spec=
8982   thread_safe_flag_spec=
8983   hardcode_libdir_flag_spec=
8984   hardcode_libdir_flag_spec_ld=
8985   hardcode_libdir_separator=
8986   hardcode_direct=no
8987   hardcode_minus_L=no
8988   hardcode_shlibpath_var=unsupported
8989   link_all_deplibs=unknown
8990   hardcode_automatic=no
8991   module_cmds=
8992   module_expsym_cmds=
8993   always_export_symbols=no
8994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8995   # include_expsyms should be a list of space-separated symbols to be *always*
8996   # included in the symbol list
8997   include_expsyms=
8998   # exclude_expsyms can be an extended regexp of symbols to exclude
8999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001   # as well as any symbol that contains `d'.
9002   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004   # platforms (ab)use it in PIC code, but their linkers get confused if
9005   # the symbol is explicitly referenced.  Since portable code cannot
9006   # rely on this symbol name, it's probably fine to never include it in
9007   # preloaded symbol tables.
9008   extract_expsyms_cmds=
9009   # Just being paranoid about ensuring that cc_basename is set.
9010   for cc_temp in $compiler""; do
9011   case $cc_temp in
9012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9014     \-*) ;;
9015     *) break;;
9016   esac
9017 done
9018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9019
9020   case $host_os in
9021   cygwin* | mingw* | pw32*)
9022     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023     # When not using gcc, we currently assume that we are using
9024     # Microsoft Visual C++.
9025     if test "$GCC" != yes; then
9026       with_gnu_ld=no
9027     fi
9028     ;;
9029   openbsd*)
9030     with_gnu_ld=no
9031     ;;
9032   esac
9033
9034   ld_shlibs=yes
9035   if test "$with_gnu_ld" = yes; then
9036     # If archive_cmds runs LD, not CC, wlarc should be empty
9037     wlarc='${wl}'
9038
9039     # Set some defaults for GNU ld with shared library support. These
9040     # are reset later if shared libraries are not supported. Putting them
9041     # here allows them to be overridden if necessary.
9042     runpath_var=LD_RUN_PATH
9043     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9044     export_dynamic_flag_spec='${wl}--export-dynamic'
9045     # ancient GNU ld didn't support --whole-archive et. al.
9046     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9047         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9048       else
9049         whole_archive_flag_spec=
9050     fi
9051     supports_anon_versioning=no
9052     case `$LD -v 2>/dev/null` in
9053       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9054       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9055       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9056       *\ 2.11.*) ;; # other 2.11 versions
9057       *) supports_anon_versioning=yes ;;
9058     esac
9059
9060     # See if GNU ld supports shared libraries.
9061     case $host_os in
9062     aix3* | aix4* | aix5*)
9063       # On AIX/PPC, the GNU linker is very broken
9064       if test "$host_cpu" != ia64; then
9065         ld_shlibs=no
9066         cat <<EOF 1>&2
9067
9068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9069 *** to be unable to reliably create shared libraries on AIX.
9070 *** Therefore, libtool is disabling shared libraries support.  If you
9071 *** really care for shared libraries, you may want to modify your PATH
9072 *** so that a non-GNU linker is found, and then restart.
9073
9074 EOF
9075       fi
9076       ;;
9077
9078     amigaos*)
9079       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)'
9080       hardcode_libdir_flag_spec='-L$libdir'
9081       hardcode_minus_L=yes
9082
9083       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9084       # that the semantics of dynamic libraries on AmigaOS, at least up
9085       # to version 4, is to share data among multiple programs linked
9086       # with the same dynamic library.  Since this doesn't match the
9087       # behavior of shared libraries on other platforms, we can't use
9088       # them.
9089       ld_shlibs=no
9090       ;;
9091
9092     beos*)
9093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9094         allow_undefined_flag=unsupported
9095         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9096         # support --undefined.  This deserves some investigation.  FIXME
9097         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098       else
9099         ld_shlibs=no
9100       fi
9101       ;;
9102
9103     cygwin* | mingw* | pw32*)
9104       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9105       # as there is no search path for DLLs.
9106       hardcode_libdir_flag_spec='-L$libdir'
9107       allow_undefined_flag=unsupported
9108       always_export_symbols=no
9109       enable_shared_with_static_runtimes=yes
9110       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9111
9112       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9114         # If the export-symbols file already is a .def file (1st line
9115         # is EXPORTS), use it as is; otherwise, prepend...
9116         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9117           cp $export_symbols $output_objdir/$soname.def;
9118         else
9119           echo EXPORTS > $output_objdir/$soname.def;
9120           cat $export_symbols >> $output_objdir/$soname.def;
9121         fi~
9122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9123       else
9124         ld_shlibs=no
9125       fi
9126       ;;
9127
9128     linux*)
9129       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9130         tmp_addflag=
9131         case $cc_basename,$host_cpu in
9132         pgcc*)                          # Portland Group C compiler
9133           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'
9134           tmp_addflag=' $pic_flag'
9135           ;;
9136         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9137           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'
9138           tmp_addflag=' $pic_flag -Mnomain' ;;
9139         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9140           tmp_addflag=' -i_dynamic' ;;
9141         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9142           tmp_addflag=' -i_dynamic -nofor_main' ;;
9143         ifc* | ifort*)                  # Intel Fortran compiler
9144           tmp_addflag=' -nofor_main' ;;
9145         esac
9146         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147
9148         if test $supports_anon_versioning = yes; then
9149           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9150   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9151   $echo "local: *; };" >> $output_objdir/$libname.ver~
9152           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9153         fi
9154       else
9155         ld_shlibs=no
9156       fi
9157       ;;
9158
9159     netbsd*)
9160       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9161         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9162         wlarc=
9163       else
9164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9166       fi
9167       ;;
9168
9169     solaris* | sysv5*)
9170       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9171         ld_shlibs=no
9172         cat <<EOF 1>&2
9173
9174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9175 *** create shared libraries on Solaris systems.  Therefore, libtool
9176 *** is disabling shared libraries support.  We urge you to upgrade GNU
9177 *** binutils to release 2.9.1 or newer.  Another option is to modify
9178 *** your PATH or compiler configuration so that the native linker is
9179 *** used, and then restart.
9180
9181 EOF
9182       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9185       else
9186         ld_shlibs=no
9187       fi
9188       ;;
9189
9190     sunos4*)
9191       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192       wlarc=
9193       hardcode_direct=yes
9194       hardcode_shlibpath_var=no
9195       ;;
9196
9197     *)
9198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9199         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9201       else
9202         ld_shlibs=no
9203       fi
9204       ;;
9205     esac
9206
9207     if test "$ld_shlibs" = no; then
9208       runpath_var=
9209       hardcode_libdir_flag_spec=
9210       export_dynamic_flag_spec=
9211       whole_archive_flag_spec=
9212     fi
9213   else
9214     # PORTME fill in a description of your system's linker (not GNU ld)
9215     case $host_os in
9216     aix3*)
9217       allow_undefined_flag=unsupported
9218       always_export_symbols=yes
9219       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'
9220       # Note: this linker hardcodes the directories in LIBPATH if there
9221       # are no directories specified by -L.
9222       hardcode_minus_L=yes
9223       if test "$GCC" = yes && test -z "$link_static_flag"; then
9224         # Neither direct hardcoding nor static linking is supported with a
9225         # broken collect2.
9226         hardcode_direct=unsupported
9227       fi
9228       ;;
9229
9230     aix4* | aix5*)
9231       if test "$host_cpu" = ia64; then
9232         # On IA64, the linker does run time linking by default, so we don't
9233         # have to do anything special.
9234         aix_use_runtimelinking=no
9235         exp_sym_flag='-Bexport'
9236         no_entry_flag=""
9237       else
9238         # If we're using GNU nm, then we don't want the "-C" option.
9239         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9240         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9241           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'
9242         else
9243           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'
9244         fi
9245         aix_use_runtimelinking=no
9246
9247         # Test if we are trying to use run time linking or normal
9248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249         # need to do runtime linking.
9250         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9251           for ld_flag in $LDFLAGS; do
9252           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253             aix_use_runtimelinking=yes
9254             break
9255           fi
9256           done
9257         esac
9258
9259         exp_sym_flag='-bexport'
9260         no_entry_flag='-bnoentry'
9261       fi
9262
9263       # When large executables or shared objects are built, AIX ld can
9264       # have problems creating the table of contents.  If linking a library
9265       # or program results in "error TOC overflow" add -mminimal-toc to
9266       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9267       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9268
9269       archive_cmds=''
9270       hardcode_direct=yes
9271       hardcode_libdir_separator=':'
9272       link_all_deplibs=yes
9273
9274       if test "$GCC" = yes; then
9275         case $host_os in aix4.[012]|aix4.[012].*)
9276         # We only want to do this on AIX 4.2 and lower, the check
9277         # below for broken collect2 doesn't work under 4.3+
9278           collect2name=`${CC} -print-prog-name=collect2`
9279           if test -f "$collect2name" && \
9280            strings "$collect2name" | grep resolve_lib_name >/dev/null
9281           then
9282           # We have reworked collect2
9283           hardcode_direct=yes
9284           else
9285           # We have old collect2
9286           hardcode_direct=unsupported
9287           # It fails to find uninstalled libraries when the uninstalled
9288           # path is not listed in the libpath.  Setting hardcode_minus_L
9289           # to unsupported forces relinking
9290           hardcode_minus_L=yes
9291           hardcode_libdir_flag_spec='-L$libdir'
9292           hardcode_libdir_separator=
9293           fi
9294         esac
9295         shared_flag='-shared'
9296         if test "$aix_use_runtimelinking" = yes; then
9297           shared_flag="$shared_flag "'${wl}-G'
9298         fi
9299       else
9300         # not using gcc
9301         if test "$host_cpu" = ia64; then
9302         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9303         # chokes on -Wl,-G. The following line is correct:
9304           shared_flag='-G'
9305         else
9306         if test "$aix_use_runtimelinking" = yes; then
9307             shared_flag='${wl}-G'
9308           else
9309             shared_flag='${wl}-bM:SRE'
9310         fi
9311         fi
9312       fi
9313
9314       # It seems that -bexpall does not export symbols beginning with
9315       # underscore (_), so it is better to generate a list of symbols to export.
9316       always_export_symbols=yes
9317       if test "$aix_use_runtimelinking" = yes; then
9318         # Warning - without using the other runtime loading flags (-brtl),
9319         # -berok will link without error, but may produce a broken library.
9320         allow_undefined_flag='-berok'
9321        # Determine the default libpath from the value encoded in an empty executable.
9322        cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 int
9330 main ()
9331 {
9332
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339   (eval $ac_link) 2>conftest.er1
9340   ac_status=$?
9341   grep -v '^ *+' conftest.er1 >conftest.err
9342   rm -f conftest.er1
9343   cat conftest.err >&5
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } &&
9346          { ac_try='test -z "$ac_c_werror_flag"
9347                          || test ! -s conftest.err'
9348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; } &&
9353          { ac_try='test -s conftest$ac_exeext'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; }; then
9359
9360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9361 }'`
9362 # Check for a 64-bit object if we didn't find anything.
9363 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; }
9364 }'`; fi
9365 else
9366   echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 fi
9370 rm -f conftest.err conftest.$ac_objext \
9371       conftest$ac_exeext conftest.$ac_ext
9372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9373
9374        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9375         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"
9376        else
9377         if test "$host_cpu" = ia64; then
9378           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9379           allow_undefined_flag="-z nodefs"
9380           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"
9381         else
9382          # Determine the default libpath from the value encoded in an empty executable.
9383          cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h.  */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h.  */
9389
9390 int
9391 main ()
9392 {
9393
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400   (eval $ac_link) 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -z "$ac_c_werror_flag"
9408                          || test ! -s conftest.err'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; } &&
9414          { ac_try='test -s conftest$ac_exeext'
9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416   (eval $ac_try) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; }; then
9420
9421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9422 }'`
9423 # Check for a 64-bit object if we didn't find anything.
9424 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; }
9425 }'`; fi
9426 else
9427   echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9429
9430 fi
9431 rm -f conftest.err conftest.$ac_objext \
9432       conftest$ac_exeext conftest.$ac_ext
9433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9434
9435          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9436           # Warning - without using the other run time loading flags,
9437           # -berok will link without error, but may produce a broken library.
9438           no_undefined_flag=' ${wl}-bernotok'
9439           allow_undefined_flag=' ${wl}-berok'
9440           # -bexpall does not export symbols beginning with underscore (_)
9441           always_export_symbols=yes
9442           # Exported symbols can be pulled into shared objects from archives
9443           whole_archive_flag_spec=' '
9444           archive_cmds_need_lc=yes
9445           # This is similar to how AIX traditionally builds it's shared libraries.
9446           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'
9447         fi
9448       fi
9449       ;;
9450
9451     amigaos*)
9452       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)'
9453       hardcode_libdir_flag_spec='-L$libdir'
9454       hardcode_minus_L=yes
9455       # see comment about different semantics on the GNU ld section
9456       ld_shlibs=no
9457       ;;
9458
9459     bsdi[45]*)
9460       export_dynamic_flag_spec=-rdynamic
9461       ;;
9462
9463     cygwin* | mingw* | pw32*)
9464       # When not using gcc, we currently assume that we are using
9465       # Microsoft Visual C++.
9466       # hardcode_libdir_flag_spec is actually meaningless, as there is
9467       # no search path for DLLs.
9468       hardcode_libdir_flag_spec=' '
9469       allow_undefined_flag=unsupported
9470       # Tell ltmain to make .lib files, not .a files.
9471       libext=lib
9472       # Tell ltmain to make .dll files, not .so files.
9473       shrext_cmds=".dll"
9474       # FIXME: Setting linknames here is a bad hack.
9475       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9476       # The linker will automatically build a .lib file if we build a DLL.
9477       old_archive_From_new_cmds='true'
9478       # FIXME: Should let the user specify the lib program.
9479       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9480       fix_srcfile_path='`cygpath -w "$srcfile"`'
9481       enable_shared_with_static_runtimes=yes
9482       ;;
9483
9484     darwin* | rhapsody*)
9485       case "$host_os" in
9486         rhapsody* | darwin1.[012])
9487          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9488          ;;
9489        *) # Darwin 1.3 on
9490          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9491            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9492          else
9493            case ${MACOSX_DEPLOYMENT_TARGET} in
9494              10.[012])
9495                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9496                ;;
9497              10.*)
9498                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9499                ;;
9500            esac
9501          fi
9502          ;;
9503       esac
9504       archive_cmds_need_lc=no
9505       hardcode_direct=no
9506       hardcode_automatic=yes
9507       hardcode_shlibpath_var=unsupported
9508       whole_archive_flag_spec=''
9509       link_all_deplibs=yes
9510     if test "$GCC" = yes ; then
9511         output_verbose_link_cmd='echo'
9512         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9513       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9514       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9515       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}'
9516       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}'
9517     else
9518       case $cc_basename in
9519         xlc*)
9520          output_verbose_link_cmd='echo'
9521          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9522          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9523           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9524          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}'
9525           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}'
9526           ;;
9527        *)
9528          ld_shlibs=no
9529           ;;
9530       esac
9531     fi
9532       ;;
9533
9534     dgux*)
9535       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536       hardcode_libdir_flag_spec='-L$libdir'
9537       hardcode_shlibpath_var=no
9538       ;;
9539
9540     freebsd1*)
9541       ld_shlibs=no
9542       ;;
9543
9544     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9545     # support.  Future versions do this automatically, but an explicit c++rt0.o
9546     # does not break anything, and helps significantly (at the cost of a little
9547     # extra space).
9548     freebsd2.2*)
9549       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9550       hardcode_libdir_flag_spec='-R$libdir'
9551       hardcode_direct=yes
9552       hardcode_shlibpath_var=no
9553       ;;
9554
9555     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9556     freebsd2*)
9557       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9558       hardcode_direct=yes
9559       hardcode_minus_L=yes
9560       hardcode_shlibpath_var=no
9561       ;;
9562
9563     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9564     freebsd* | kfreebsd*-gnu | dragonfly*)
9565       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9566       hardcode_libdir_flag_spec='-R$libdir'
9567       hardcode_direct=yes
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     hpux9*)
9572       if test "$GCC" = yes; then
9573         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'
9574       else
9575         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'
9576       fi
9577       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578       hardcode_libdir_separator=:
9579       hardcode_direct=yes
9580
9581       # hardcode_minus_L: Not really in the search PATH,
9582       # but as the default location of the library.
9583       hardcode_minus_L=yes
9584       export_dynamic_flag_spec='${wl}-E'
9585       ;;
9586
9587     hpux10* | hpux11*)
9588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9589         case "$host_cpu" in
9590         hppa*64*|ia64*)
9591           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592           ;;
9593         *)
9594           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9595           ;;
9596         esac
9597       else
9598         case "$host_cpu" in
9599         hppa*64*|ia64*)
9600           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9601           ;;
9602         *)
9603           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9604           ;;
9605         esac
9606       fi
9607       if test "$with_gnu_ld" = no; then
9608         case "$host_cpu" in
9609         hppa*64*)
9610           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611           hardcode_libdir_flag_spec_ld='+b $libdir'
9612           hardcode_libdir_separator=:
9613           hardcode_direct=no
9614           hardcode_shlibpath_var=no
9615           ;;
9616         ia64*)
9617           hardcode_libdir_flag_spec='-L$libdir'
9618           hardcode_direct=no
9619           hardcode_shlibpath_var=no
9620
9621           # hardcode_minus_L: Not really in the search PATH,
9622           # but as the default location of the library.
9623           hardcode_minus_L=yes
9624           ;;
9625         *)
9626           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9627           hardcode_libdir_separator=:
9628           hardcode_direct=yes
9629           export_dynamic_flag_spec='${wl}-E'
9630
9631           # hardcode_minus_L: Not really in the search PATH,
9632           # but as the default location of the library.
9633           hardcode_minus_L=yes
9634           ;;
9635         esac
9636       fi
9637       ;;
9638
9639     irix5* | irix6* | nonstopux*)
9640       if test "$GCC" = yes; then
9641         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'
9642       else
9643         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'
9644         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9645       fi
9646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647       hardcode_libdir_separator=:
9648       link_all_deplibs=yes
9649       ;;
9650
9651     netbsd*)
9652       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9653         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9654       else
9655         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9656       fi
9657       hardcode_libdir_flag_spec='-R$libdir'
9658       hardcode_direct=yes
9659       hardcode_shlibpath_var=no
9660       ;;
9661
9662     newsos6)
9663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664       hardcode_direct=yes
9665       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9666       hardcode_libdir_separator=:
9667       hardcode_shlibpath_var=no
9668       ;;
9669
9670     openbsd*)
9671       hardcode_direct=yes
9672       hardcode_shlibpath_var=no
9673       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9674         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9676         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677         export_dynamic_flag_spec='${wl}-E'
9678       else
9679        case $host_os in
9680          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9681            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682            hardcode_libdir_flag_spec='-R$libdir'
9683            ;;
9684          *)
9685            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9686            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9687            ;;
9688        esac
9689       fi
9690       ;;
9691
9692     os2*)
9693       hardcode_libdir_flag_spec='-L$libdir'
9694       hardcode_minus_L=yes
9695       allow_undefined_flag=unsupported
9696       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'
9697       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9698       ;;
9699
9700     osf3*)
9701       if test "$GCC" = yes; then
9702         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9703         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'
9704       else
9705         allow_undefined_flag=' -expect_unresolved \*'
9706         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'
9707       fi
9708       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709       hardcode_libdir_separator=:
9710       ;;
9711
9712     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9713       if test "$GCC" = yes; then
9714         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9715         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'
9716         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717       else
9718         allow_undefined_flag=' -expect_unresolved \*'
9719         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'
9720         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9721         $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'
9722
9723         # Both c and cxx compiler support -rpath directly
9724         hardcode_libdir_flag_spec='-rpath $libdir'
9725       fi
9726       hardcode_libdir_separator=:
9727       ;;
9728
9729     sco3.2v5*)
9730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731       hardcode_shlibpath_var=no
9732       export_dynamic_flag_spec='${wl}-Bexport'
9733       runpath_var=LD_RUN_PATH
9734       hardcode_runpath_var=yes
9735       ;;
9736
9737     solaris*)
9738       no_undefined_flag=' -z text'
9739       if test "$GCC" = yes; then
9740         wlarc='${wl}'
9741         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9742         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9743           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9744       else
9745         wlarc=''
9746         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9748         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9749       fi
9750       hardcode_libdir_flag_spec='-R$libdir'
9751       hardcode_shlibpath_var=no
9752       case $host_os in
9753       solaris2.[0-5] | solaris2.[0-5].*) ;;
9754       *)
9755         # The compiler driver will combine linker options so we
9756         # cannot just pass the convience library names through
9757         # without $wl, iff we do not link with $LD.
9758         # Luckily, gcc supports the same syntax we need for Sun Studio.
9759         # Supported since Solaris 2.6 (maybe 2.5.1?)
9760         case $wlarc in
9761         '')
9762           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9763         *)
9764           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' ;;
9765         esac ;;
9766       esac
9767       link_all_deplibs=yes
9768       ;;
9769
9770     sunos4*)
9771       if test "x$host_vendor" = xsequent; then
9772         # Use $CC to link under sequent, because it throws in some extra .o
9773         # files that make .init and .fini sections work.
9774         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9775       else
9776         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9777       fi
9778       hardcode_libdir_flag_spec='-L$libdir'
9779       hardcode_direct=yes
9780       hardcode_minus_L=yes
9781       hardcode_shlibpath_var=no
9782       ;;
9783
9784     sysv4)
9785       case $host_vendor in
9786         sni)
9787           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788           hardcode_direct=yes # is this really true???
9789         ;;
9790         siemens)
9791           ## LD is ld it makes a PLAMLIB
9792           ## CC just makes a GrossModule.
9793           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9794           reload_cmds='$CC -r -o $output$reload_objs'
9795           hardcode_direct=no
9796         ;;
9797         motorola)
9798           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9800         ;;
9801       esac
9802       runpath_var='LD_RUN_PATH'
9803       hardcode_shlibpath_var=no
9804       ;;
9805
9806     sysv4.3*)
9807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808       hardcode_shlibpath_var=no
9809       export_dynamic_flag_spec='-Bexport'
9810       ;;
9811
9812     sysv4*MP*)
9813       if test -d /usr/nec; then
9814         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815         hardcode_shlibpath_var=no
9816         runpath_var=LD_RUN_PATH
9817         hardcode_runpath_var=yes
9818         ld_shlibs=yes
9819       fi
9820       ;;
9821
9822     sysv4.2uw2*)
9823       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9824       hardcode_direct=yes
9825       hardcode_minus_L=no
9826       hardcode_shlibpath_var=no
9827       hardcode_runpath_var=yes
9828       runpath_var=LD_RUN_PATH
9829       ;;
9830
9831    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9832       no_undefined_flag='${wl}-z ${wl}text'
9833       if test "$GCC" = yes; then
9834         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9835       else
9836         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837       fi
9838       runpath_var='LD_RUN_PATH'
9839       hardcode_shlibpath_var=no
9840       ;;
9841
9842     sysv5*)
9843       no_undefined_flag=' -z text'
9844       # $CC -shared without GNU ld will not create a library from C++
9845       # object files and a static libstdc++, better avoid it by now
9846       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9848                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9849       hardcode_libdir_flag_spec=
9850       hardcode_shlibpath_var=no
9851       runpath_var='LD_RUN_PATH'
9852       ;;
9853
9854     uts4*)
9855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856       hardcode_libdir_flag_spec='-L$libdir'
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     *)
9861       ld_shlibs=no
9862       ;;
9863     esac
9864   fi
9865
9866 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9867 echo "${ECHO_T}$ld_shlibs" >&6
9868 test "$ld_shlibs" = no && can_build_shared=no
9869
9870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9871 if test "$GCC" = yes; then
9872   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9873 fi
9874
9875 #
9876 # Do we need to explicitly link libc?
9877 #
9878 case "x$archive_cmds_need_lc" in
9879 x|xyes)
9880   # Assume -lc should be added
9881   archive_cmds_need_lc=yes
9882
9883   if test "$enable_shared" = yes && test "$GCC" = yes; then
9884     case $archive_cmds in
9885     *'~'*)
9886       # FIXME: we may have to deal with multi-command sequences.
9887       ;;
9888     '$CC '*)
9889       # Test whether the compiler implicitly links with -lc since on some
9890       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9891       # to ld, don't add -lc before -lgcc.
9892       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9894       $rm conftest*
9895       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9896
9897       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9898   (eval $ac_compile) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } 2>conftest.err; then
9902         soname=conftest
9903         lib=conftest
9904         libobjs=conftest.$ac_objext
9905         deplibs=
9906         wl=$lt_prog_compiler_wl
9907         compiler_flags=-v
9908         linker_flags=-v
9909         verstring=
9910         output_objdir=.
9911         libname=conftest
9912         lt_save_allow_undefined_flag=$allow_undefined_flag
9913         allow_undefined_flag=
9914         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9915   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }
9919         then
9920           archive_cmds_need_lc=no
9921         else
9922           archive_cmds_need_lc=yes
9923         fi
9924         allow_undefined_flag=$lt_save_allow_undefined_flag
9925       else
9926         cat conftest.err 1>&5
9927       fi
9928       $rm conftest*
9929       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9930 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9931       ;;
9932     esac
9933   fi
9934   ;;
9935 esac
9936
9937 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9939 library_names_spec=
9940 libname_spec='lib$name'
9941 soname_spec=
9942 shrext_cmds=".so"
9943 postinstall_cmds=
9944 postuninstall_cmds=
9945 finish_cmds=
9946 finish_eval=
9947 shlibpath_var=
9948 shlibpath_overrides_runpath=unknown
9949 version_type=none
9950 dynamic_linker="$host_os ld.so"
9951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9952 if test "$GCC" = yes; then
9953   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9954   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9955     # if the path contains ";" then we assume it to be the separator
9956     # otherwise default to the standard path separator (i.e. ":") - it is
9957     # assumed that no part of a normal pathname contains ";" but that should
9958     # okay in the real world where ";" in dirpaths is itself problematic.
9959     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9960   else
9961     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9962   fi
9963 else
9964   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9965 fi
9966 need_lib_prefix=unknown
9967 hardcode_into_libs=no
9968
9969 # when you set need_version to no, make sure it does not cause -set_version
9970 # flags to be left without arguments
9971 need_version=unknown
9972
9973 case $host_os in
9974 aix3*)
9975   version_type=linux
9976   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9977   shlibpath_var=LIBPATH
9978
9979   # AIX 3 has no versioning support, so we append a major version to the name.
9980   soname_spec='${libname}${release}${shared_ext}$major'
9981   ;;
9982
9983 aix4* | aix5*)
9984   version_type=linux
9985   need_lib_prefix=no
9986   need_version=no
9987   hardcode_into_libs=yes
9988   if test "$host_cpu" = ia64; then
9989     # AIX 5 supports IA64
9990     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9991     shlibpath_var=LD_LIBRARY_PATH
9992   else
9993     # With GCC up to 2.95.x, collect2 would create an import file
9994     # for dependence libraries.  The import file would start with
9995     # the line `#! .'.  This would cause the generated library to
9996     # depend on `.', always an invalid library.  This was fixed in
9997     # development snapshots of GCC prior to 3.0.
9998     case $host_os in
9999       aix4 | aix4.[01] | aix4.[01].*)
10000       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10001            echo ' yes '
10002            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10003         :
10004       else
10005         can_build_shared=no
10006       fi
10007       ;;
10008     esac
10009     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10010     # soname into executable. Probably we can add versioning support to
10011     # collect2, so additional links can be useful in future.
10012     if test "$aix_use_runtimelinking" = yes; then
10013       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10014       # instead of lib<name>.a to let people know that these are not
10015       # typical AIX shared libraries.
10016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017     else
10018       # We preserve .a as extension for shared libraries through AIX4.2
10019       # and later when we are not doing run time linking.
10020       library_names_spec='${libname}${release}.a $libname.a'
10021       soname_spec='${libname}${release}${shared_ext}$major'
10022     fi
10023     shlibpath_var=LIBPATH
10024   fi
10025   ;;
10026
10027 amigaos*)
10028   library_names_spec='$libname.ixlibrary $libname.a'
10029   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10030   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'
10031   ;;
10032
10033 beos*)
10034   library_names_spec='${libname}${shared_ext}'
10035   dynamic_linker="$host_os ld.so"
10036   shlibpath_var=LIBRARY_PATH
10037   ;;
10038
10039 bsdi[45]*)
10040   version_type=linux
10041   need_version=no
10042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043   soname_spec='${libname}${release}${shared_ext}$major'
10044   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10045   shlibpath_var=LD_LIBRARY_PATH
10046   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10047   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10048   # the default ld.so.conf also contains /usr/contrib/lib and
10049   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10050   # libtool to hard-code these into programs
10051   ;;
10052
10053 cygwin* | mingw* | pw32*)
10054   version_type=windows
10055   shrext_cmds=".dll"
10056   need_version=no
10057   need_lib_prefix=no
10058
10059   case $GCC,$host_os in
10060   yes,cygwin* | yes,mingw* | yes,pw32*)
10061     library_names_spec='$libname.dll.a'
10062     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10063     postinstall_cmds='base_file=`basename \${file}`~
10064       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10065       dldir=$destdir/`dirname \$dlpath`~
10066       test -d \$dldir || mkdir -p \$dldir~
10067       $install_prog $dir/$dlname \$dldir/$dlname'
10068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10069       dlpath=$dir/\$dldll~
10070        $rm \$dlpath'
10071     shlibpath_overrides_runpath=yes
10072
10073     case $host_os in
10074     cygwin*)
10075       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10076       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10077       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10078       ;;
10079     mingw*)
10080       # MinGW DLLs use traditional 'lib' prefix
10081       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10082       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10083       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10084         # It is most probably a Windows format PATH printed by
10085         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10086         # path with ; separators, and with drive letters. We can handle the
10087         # drive letters (cygwin fileutils understands them), so leave them,
10088         # especially as we might pass files found there to a mingw objdump,
10089         # which wouldn't understand a cygwinified path. Ahh.
10090         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10091       else
10092         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10093       fi
10094       ;;
10095     pw32*)
10096       # pw32 DLLs use 'pw' prefix rather than 'lib'
10097       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10098       ;;
10099     esac
10100     ;;
10101
10102   *)
10103     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10104     ;;
10105   esac
10106   dynamic_linker='Win32 ld.exe'
10107   # FIXME: first we should search . and the directory the executable is in
10108   shlibpath_var=PATH
10109   ;;
10110
10111 darwin* | rhapsody*)
10112   dynamic_linker="$host_os dyld"
10113   version_type=darwin
10114   need_lib_prefix=no
10115   need_version=no
10116   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10117   soname_spec='${libname}${release}${major}$shared_ext'
10118   shlibpath_overrides_runpath=yes
10119   shlibpath_var=DYLD_LIBRARY_PATH
10120   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10121   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10122   if test "$GCC" = yes; then
10123     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"`
10124   else
10125     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10126   fi
10127   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10128   ;;
10129
10130 dgux*)
10131   version_type=linux
10132   need_lib_prefix=no
10133   need_version=no
10134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10135   soname_spec='${libname}${release}${shared_ext}$major'
10136   shlibpath_var=LD_LIBRARY_PATH
10137   ;;
10138
10139 freebsd1*)
10140   dynamic_linker=no
10141   ;;
10142
10143 kfreebsd*-gnu)
10144   version_type=linux
10145   need_lib_prefix=no
10146   need_version=no
10147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10148   soname_spec='${libname}${release}${shared_ext}$major'
10149   shlibpath_var=LD_LIBRARY_PATH
10150   shlibpath_overrides_runpath=no
10151   hardcode_into_libs=yes
10152   dynamic_linker='GNU ld.so'
10153   ;;
10154
10155 freebsd* | dragonfly*)
10156   # DragonFly does not have aout.  When/if they implement a new
10157   # versioning mechanism, adjust this.
10158   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10159   version_type=freebsd-$objformat
10160   case $version_type in
10161     freebsd-elf*)
10162       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10163       need_version=no
10164       need_lib_prefix=no
10165       ;;
10166     freebsd-*)
10167       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10168       need_version=yes
10169       ;;
10170   esac
10171   shlibpath_var=LD_LIBRARY_PATH
10172   case $host_os in
10173   freebsd2*)
10174     shlibpath_overrides_runpath=yes
10175     ;;
10176   freebsd3.[01]* | freebsdelf3.[01]*)
10177     shlibpath_overrides_runpath=yes
10178     hardcode_into_libs=yes
10179     ;;
10180   *) # from 3.2 on
10181     shlibpath_overrides_runpath=no
10182     hardcode_into_libs=yes
10183     ;;
10184   esac
10185   ;;
10186
10187 gnu*)
10188   version_type=linux
10189   need_lib_prefix=no
10190   need_version=no
10191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10192   soname_spec='${libname}${release}${shared_ext}$major'
10193   shlibpath_var=LD_LIBRARY_PATH
10194   hardcode_into_libs=yes
10195   ;;
10196
10197 hpux9* | hpux10* | hpux11*)
10198   # Give a soname corresponding to the major version so that dld.sl refuses to
10199   # link against other versions.
10200   version_type=sunos
10201   need_lib_prefix=no
10202   need_version=no
10203   case "$host_cpu" in
10204   ia64*)
10205     shrext_cmds='.so'
10206     hardcode_into_libs=yes
10207     dynamic_linker="$host_os dld.so"
10208     shlibpath_var=LD_LIBRARY_PATH
10209     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211     soname_spec='${libname}${release}${shared_ext}$major'
10212     if test "X$HPUX_IA64_MODE" = X32; then
10213       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10214     else
10215       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10216     fi
10217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10218     ;;
10219    hppa*64*)
10220      shrext_cmds='.sl'
10221      hardcode_into_libs=yes
10222      dynamic_linker="$host_os dld.sl"
10223      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10224      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226      soname_spec='${libname}${release}${shared_ext}$major'
10227      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10228      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10229      ;;
10230    *)
10231     shrext_cmds='.sl'
10232     dynamic_linker="$host_os dld.sl"
10233     shlibpath_var=SHLIB_PATH
10234     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236     soname_spec='${libname}${release}${shared_ext}$major'
10237     ;;
10238   esac
10239   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10240   postinstall_cmds='chmod 555 $lib'
10241   ;;
10242
10243 irix5* | irix6* | nonstopux*)
10244   case $host_os in
10245     nonstopux*) version_type=nonstopux ;;
10246     *)
10247         if test "$lt_cv_prog_gnu_ld" = yes; then
10248                 version_type=linux
10249         else
10250                 version_type=irix
10251         fi ;;
10252   esac
10253   need_lib_prefix=no
10254   need_version=no
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10257   case $host_os in
10258   irix5* | nonstopux*)
10259     libsuff= shlibsuff=
10260     ;;
10261   *)
10262     case $LD in # libtool.m4 will add one of these switches to LD
10263     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10264       libsuff= shlibsuff= libmagic=32-bit;;
10265     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10266       libsuff=32 shlibsuff=N32 libmagic=N32;;
10267     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10268       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10269     *) libsuff= shlibsuff= libmagic=never-match;;
10270     esac
10271     ;;
10272   esac
10273   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10274   shlibpath_overrides_runpath=no
10275   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10276   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10277   hardcode_into_libs=yes
10278   ;;
10279
10280 # No shared lib support for Linux oldld, aout, or coff.
10281 linux*oldld* | linux*aout* | linux*coff*)
10282   dynamic_linker=no
10283   ;;
10284
10285 # This must be Linux ELF.
10286 linux*)
10287   version_type=linux
10288   need_lib_prefix=no
10289   need_version=no
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   soname_spec='${libname}${release}${shared_ext}$major'
10292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   shlibpath_overrides_runpath=no
10295   # This implies no fast_install, which is unacceptable.
10296   # Some rework will be needed to allow for fast_install
10297   # before this can be enabled.
10298   hardcode_into_libs=yes
10299
10300   # Append ld.so.conf contents to the search path
10301   if test -f /etc/ld.so.conf; then
10302     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' ' '`
10303     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10304   fi
10305
10306   # We used to test for /lib/ld.so.1 and disable shared libraries on
10307   # powerpc, because MkLinux only supported shared libraries with the
10308   # GNU dynamic linker.  Since this was broken with cross compilers,
10309   # most powerpc-linux boxes support dynamic linking these days and
10310   # people can always --disable-shared, the test was removed, and we
10311   # assume the GNU/Linux dynamic linker is in use.
10312   dynamic_linker='GNU/Linux ld.so'
10313   ;;
10314
10315 knetbsd*-gnu)
10316   version_type=linux
10317   need_lib_prefix=no
10318   need_version=no
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320   soname_spec='${libname}${release}${shared_ext}$major'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   shlibpath_overrides_runpath=no
10323   hardcode_into_libs=yes
10324   dynamic_linker='GNU ld.so'
10325   ;;
10326
10327 netbsd*)
10328   version_type=sunos
10329   need_lib_prefix=no
10330   need_version=no
10331   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10333     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10334     dynamic_linker='NetBSD (a.out) ld.so'
10335   else
10336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10337     soname_spec='${libname}${release}${shared_ext}$major'
10338     dynamic_linker='NetBSD ld.elf_so'
10339   fi
10340   shlibpath_var=LD_LIBRARY_PATH
10341   shlibpath_overrides_runpath=yes
10342   hardcode_into_libs=yes
10343   ;;
10344
10345 newsos6)
10346   version_type=linux
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   shlibpath_overrides_runpath=yes
10350   ;;
10351
10352 nto-qnx*)
10353   version_type=linux
10354   need_lib_prefix=no
10355   need_version=no
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   shlibpath_var=LD_LIBRARY_PATH
10359   shlibpath_overrides_runpath=yes
10360   ;;
10361
10362 openbsd*)
10363   version_type=sunos
10364   need_lib_prefix=no
10365   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10366   case $host_os in
10367     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10368     *)                         need_version=no  ;;
10369   esac
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10374     case $host_os in
10375       openbsd2.[89] | openbsd2.[89].*)
10376         shlibpath_overrides_runpath=no
10377         ;;
10378       *)
10379         shlibpath_overrides_runpath=yes
10380         ;;
10381       esac
10382   else
10383     shlibpath_overrides_runpath=yes
10384   fi
10385   ;;
10386
10387 os2*)
10388   libname_spec='$name'
10389   shrext_cmds=".dll"
10390   need_lib_prefix=no
10391   library_names_spec='$libname${shared_ext} $libname.a'
10392   dynamic_linker='OS/2 ld.exe'
10393   shlibpath_var=LIBPATH
10394   ;;
10395
10396 osf3* | osf4* | osf5*)
10397   version_type=osf
10398   need_lib_prefix=no
10399   need_version=no
10400   soname_spec='${libname}${release}${shared_ext}$major'
10401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402   shlibpath_var=LD_LIBRARY_PATH
10403   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10404   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10405   ;;
10406
10407 sco3.2v5*)
10408   version_type=osf
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411   shlibpath_var=LD_LIBRARY_PATH
10412   ;;
10413
10414 solaris*)
10415   version_type=linux
10416   need_lib_prefix=no
10417   need_version=no
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419   soname_spec='${libname}${release}${shared_ext}$major'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   shlibpath_overrides_runpath=yes
10422   hardcode_into_libs=yes
10423   # ldd complains unless libraries are executable
10424   postinstall_cmds='chmod +x $lib'
10425   ;;
10426
10427 sunos4*)
10428   version_type=sunos
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10431   shlibpath_var=LD_LIBRARY_PATH
10432   shlibpath_overrides_runpath=yes
10433   if test "$with_gnu_ld" = yes; then
10434     need_lib_prefix=no
10435   fi
10436   need_version=yes
10437   ;;
10438
10439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440   version_type=linux
10441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442   soname_spec='${libname}${release}${shared_ext}$major'
10443   shlibpath_var=LD_LIBRARY_PATH
10444   case $host_vendor in
10445     sni)
10446       shlibpath_overrides_runpath=no
10447       need_lib_prefix=no
10448       export_dynamic_flag_spec='${wl}-Blargedynsym'
10449       runpath_var=LD_RUN_PATH
10450       ;;
10451     siemens)
10452       need_lib_prefix=no
10453       ;;
10454     motorola)
10455       need_lib_prefix=no
10456       need_version=no
10457       shlibpath_overrides_runpath=no
10458       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10459       ;;
10460   esac
10461   ;;
10462
10463 sysv4*MP*)
10464   if test -d /usr/nec ;then
10465     version_type=linux
10466     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10467     soname_spec='$libname${shared_ext}.$major'
10468     shlibpath_var=LD_LIBRARY_PATH
10469   fi
10470   ;;
10471
10472 uts4*)
10473   version_type=linux
10474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475   soname_spec='${libname}${release}${shared_ext}$major'
10476   shlibpath_var=LD_LIBRARY_PATH
10477   ;;
10478
10479 *)
10480   dynamic_linker=no
10481   ;;
10482 esac
10483 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10484 echo "${ECHO_T}$dynamic_linker" >&6
10485 test "$dynamic_linker" = no && can_build_shared=no
10486
10487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10489 hardcode_action=
10490 if test -n "$hardcode_libdir_flag_spec" || \
10491    test -n "$runpath_var" || \
10492    test "X$hardcode_automatic" = "Xyes" ; then
10493
10494   # We can hardcode non-existant directories.
10495   if test "$hardcode_direct" != no &&
10496      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10497      # have to relink, otherwise we might link with an installed library
10498      # when we should be linking with a yet-to-be-installed one
10499      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10500      test "$hardcode_minus_L" != no; then
10501     # Linking always hardcodes the temporary library directory.
10502     hardcode_action=relink
10503   else
10504     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10505     hardcode_action=immediate
10506   fi
10507 else
10508   # We cannot hardcode anything, or else we can only hardcode existing
10509   # directories.
10510   hardcode_action=unsupported
10511 fi
10512 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10513 echo "${ECHO_T}$hardcode_action" >&6
10514
10515 if test "$hardcode_action" = relink; then
10516   # Fast installation is not supported
10517   enable_fast_install=no
10518 elif test "$shlibpath_overrides_runpath" = yes ||
10519      test "$enable_shared" = no; then
10520   # Fast installation is not necessary
10521   enable_fast_install=needless
10522 fi
10523
10524 striplib=
10525 old_striplib=
10526 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10529   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10530   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10531   echo "$as_me:$LINENO: result: yes" >&5
10532 echo "${ECHO_T}yes" >&6
10533 else
10534 # FIXME - insert some real tests, host_os isn't really good enough
10535   case $host_os in
10536    darwin*)
10537        if test -n "$STRIP" ; then
10538          striplib="$STRIP -x"
10539          echo "$as_me:$LINENO: result: yes" >&5
10540 echo "${ECHO_T}yes" >&6
10541        else
10542   echo "$as_me:$LINENO: result: no" >&5
10543 echo "${ECHO_T}no" >&6
10544 fi
10545        ;;
10546    *)
10547   echo "$as_me:$LINENO: result: no" >&5
10548 echo "${ECHO_T}no" >&6
10549     ;;
10550   esac
10551 fi
10552
10553 if test "x$enable_dlopen" != xyes; then
10554   enable_dlopen=unknown
10555   enable_dlopen_self=unknown
10556   enable_dlopen_self_static=unknown
10557 else
10558   lt_cv_dlopen=no
10559   lt_cv_dlopen_libs=
10560
10561   case $host_os in
10562   beos*)
10563     lt_cv_dlopen="load_add_on"
10564     lt_cv_dlopen_libs=
10565     lt_cv_dlopen_self=yes
10566     ;;
10567
10568   mingw* | pw32*)
10569     lt_cv_dlopen="LoadLibrary"
10570     lt_cv_dlopen_libs=
10571    ;;
10572
10573   cygwin*)
10574     lt_cv_dlopen="dlopen"
10575     lt_cv_dlopen_libs=
10576    ;;
10577
10578   darwin*)
10579   # if libdl is installed we need to link against it
10580     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585   ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-ldl  $LIBS"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h.  */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h.  */
10593
10594 /* Override any gcc2 internal prototype to avoid an error.  */
10595 #ifdef __cplusplus
10596 extern "C"
10597 #endif
10598 /* We use char because int might match the return type of a gcc2
10599    builtin and then its argument prototype would still apply.  */
10600 char dlopen ();
10601 int
10602 main ()
10603 {
10604 dlopen ();
10605   ;
10606   return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611   (eval $ac_link) 2>conftest.er1
10612   ac_status=$?
10613   grep -v '^ *+' conftest.er1 >conftest.err
10614   rm -f conftest.er1
10615   cat conftest.err >&5
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } &&
10618          { ac_try='test -z "$ac_c_werror_flag"
10619                          || test ! -s conftest.err'
10620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621   (eval $ac_try) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest$ac_exeext'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   ac_cv_lib_dl_dlopen=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 ac_cv_lib_dl_dlopen=no
10637 fi
10638 rm -f conftest.err conftest.$ac_objext \
10639       conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10641 fi
10642 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10643 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10644 if test $ac_cv_lib_dl_dlopen = yes; then
10645   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10646 else
10647
10648     lt_cv_dlopen="dyld"
10649     lt_cv_dlopen_libs=
10650     lt_cv_dlopen_self=yes
10651
10652 fi
10653
10654    ;;
10655
10656   *)
10657     echo "$as_me:$LINENO: checking for shl_load" >&5
10658 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10659 if test "${ac_cv_func_shl_load+set}" = set; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h.  */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h.  */
10668 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10670 #define shl_load innocuous_shl_load
10671
10672 /* System header to define __stub macros and hopefully few prototypes,
10673     which can conflict with char shl_load (); below.
10674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10675     <limits.h> exists even on freestanding compilers.  */
10676
10677 #ifdef __STDC__
10678 # include <limits.h>
10679 #else
10680 # include <assert.h>
10681 #endif
10682
10683 #undef shl_load
10684
10685 /* Override any gcc2 internal prototype to avoid an error.  */
10686 #ifdef __cplusplus
10687 extern "C"
10688 {
10689 #endif
10690 /* We use char because int might match the return type of a gcc2
10691    builtin and then its argument prototype would still apply.  */
10692 char shl_load ();
10693 /* The GNU C library defines this for functions which it implements
10694     to always fail with ENOSYS.  Some functions are actually named
10695     something starting with __ and the normal name is an alias.  */
10696 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10697 choke me
10698 #else
10699 char (*f) () = shl_load;
10700 #endif
10701 #ifdef __cplusplus
10702 }
10703 #endif
10704
10705 int
10706 main ()
10707 {
10708 return f != shl_load;
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10715   (eval $ac_link) 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } &&
10722          { ac_try='test -z "$ac_c_werror_flag"
10723                          || test ! -s conftest.err'
10724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725   (eval $ac_try) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }; } &&
10729          { ac_try='test -s conftest$ac_exeext'
10730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731   (eval $ac_try) 2>&5
10732   ac_status=$?
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); }; }; then
10735   ac_cv_func_shl_load=yes
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740 ac_cv_func_shl_load=no
10741 fi
10742 rm -f conftest.err conftest.$ac_objext \
10743       conftest$ac_exeext conftest.$ac_ext
10744 fi
10745 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10747 if test $ac_cv_func_shl_load = yes; then
10748   lt_cv_dlopen="shl_load"
10749 else
10750   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10751 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10752 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-ldld  $LIBS"
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763
10764 /* Override any gcc2 internal prototype to avoid an error.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769    builtin and then its argument prototype would still apply.  */
10770 char shl_load ();
10771 int
10772 main ()
10773 {
10774 shl_load ();
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781   (eval $ac_link) 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag"
10789                          || test ! -s conftest.err'
10790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791   (eval $ac_try) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; } &&
10795          { ac_try='test -s conftest$ac_exeext'
10796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797   (eval $ac_try) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); }; }; then
10801   ac_cv_lib_dld_shl_load=yes
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_cv_lib_dld_shl_load=no
10807 fi
10808 rm -f conftest.err conftest.$ac_objext \
10809       conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10813 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10814 if test $ac_cv_lib_dld_shl_load = yes; then
10815   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10816 else
10817   echo "$as_me:$LINENO: checking for dlopen" >&5
10818 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10819 if test "${ac_cv_func_dlopen+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10830 #define dlopen innocuous_dlopen
10831
10832 /* System header to define __stub macros and hopefully few prototypes,
10833     which can conflict with char dlopen (); below.
10834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835     <limits.h> exists even on freestanding compilers.  */
10836
10837 #ifdef __STDC__
10838 # include <limits.h>
10839 #else
10840 # include <assert.h>
10841 #endif
10842
10843 #undef dlopen
10844
10845 /* Override any gcc2 internal prototype to avoid an error.  */
10846 #ifdef __cplusplus
10847 extern "C"
10848 {
10849 #endif
10850 /* We use char because int might match the return type of a gcc2
10851    builtin and then its argument prototype would still apply.  */
10852 char dlopen ();
10853 /* The GNU C library defines this for functions which it implements
10854     to always fail with ENOSYS.  Some functions are actually named
10855     something starting with __ and the normal name is an alias.  */
10856 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10857 choke me
10858 #else
10859 char (*f) () = dlopen;
10860 #endif
10861 #ifdef __cplusplus
10862 }
10863 #endif
10864
10865 int
10866 main ()
10867 {
10868 return f != dlopen;
10869   ;
10870   return 0;
10871 }
10872 _ACEOF
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875   (eval $ac_link) 2>conftest.er1
10876   ac_status=$?
10877   grep -v '^ *+' conftest.er1 >conftest.err
10878   rm -f conftest.er1
10879   cat conftest.err >&5
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } &&
10882          { ac_try='test -z "$ac_c_werror_flag"
10883                          || test ! -s conftest.err'
10884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885   (eval $ac_try) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; } &&
10889          { ac_try='test -s conftest$ac_exeext'
10890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891   (eval $ac_try) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; }; then
10895   ac_cv_func_dlopen=yes
10896 else
10897   echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_cv_func_dlopen=no
10901 fi
10902 rm -f conftest.err conftest.$ac_objext \
10903       conftest$ac_exeext conftest.$ac_ext
10904 fi
10905 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10906 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10907 if test $ac_cv_func_dlopen = yes; then
10908   lt_cv_dlopen="dlopen"
10909 else
10910   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915   ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-ldl  $LIBS"
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923
10924 /* Override any gcc2 internal prototype to avoid an error.  */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 /* We use char because int might match the return type of a gcc2
10929    builtin and then its argument prototype would still apply.  */
10930 char dlopen ();
10931 int
10932 main ()
10933 {
10934 dlopen ();
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941   (eval $ac_link) 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag"
10949                          || test ! -s conftest.err'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; } &&
10955          { ac_try='test -s conftest$ac_exeext'
10956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957   (eval $ac_try) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_cv_lib_dl_dlopen=yes
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_cv_lib_dl_dlopen=no
10967 fi
10968 rm -f conftest.err conftest.$ac_objext \
10969       conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10971 fi
10972 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10973 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10974 if test $ac_cv_lib_dl_dlopen = yes; then
10975   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10976 else
10977   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10978 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982   ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lsvld  $LIBS"
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990
10991 /* Override any gcc2 internal prototype to avoid an error.  */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 /* We use char because int might match the return type of a gcc2
10996    builtin and then its argument prototype would still apply.  */
10997 char dlopen ();
10998 int
10999 main ()
11000 {
11001 dlopen ();
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11008   (eval $ac_link) 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag"
11016                          || test ! -s conftest.err'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; } &&
11022          { ac_try='test -s conftest$ac_exeext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_cv_lib_svld_dlopen=yes
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_cv_lib_svld_dlopen=no
11034 fi
11035 rm -f conftest.err conftest.$ac_objext \
11036       conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11038 fi
11039 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11040 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11041 if test $ac_cv_lib_svld_dlopen = yes; then
11042   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11043 else
11044   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11045 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11046 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-ldld  $LIBS"
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057
11058 /* Override any gcc2 internal prototype to avoid an error.  */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 /* We use char because int might match the return type of a gcc2
11063    builtin and then its argument prototype would still apply.  */
11064 char dld_link ();
11065 int
11066 main ()
11067 {
11068 dld_link ();
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075   (eval $ac_link) 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag"
11083                          || test ! -s conftest.err'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; } &&
11089          { ac_try='test -s conftest$ac_exeext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_lib_dld_dld_link=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ac_cv_lib_dld_dld_link=no
11101 fi
11102 rm -f conftest.err conftest.$ac_objext \
11103       conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11105 fi
11106 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11107 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11108 if test $ac_cv_lib_dld_dld_link = yes; then
11109   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11110 fi
11111
11112
11113 fi
11114
11115
11116 fi
11117
11118
11119 fi
11120
11121
11122 fi
11123
11124
11125 fi
11126
11127     ;;
11128   esac
11129
11130   if test "x$lt_cv_dlopen" != xno; then
11131     enable_dlopen=yes
11132   else
11133     enable_dlopen=no
11134   fi
11135
11136   case $lt_cv_dlopen in
11137   dlopen)
11138     save_CPPFLAGS="$CPPFLAGS"
11139     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11140
11141     save_LDFLAGS="$LDFLAGS"
11142     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11143
11144     save_LIBS="$LIBS"
11145     LIBS="$lt_cv_dlopen_libs $LIBS"
11146
11147     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11148 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11149 if test "${lt_cv_dlopen_self+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152           if test "$cross_compiling" = yes; then :
11153   lt_cv_dlopen_self=cross
11154 else
11155   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11156   lt_status=$lt_dlunknown
11157   cat > conftest.$ac_ext <<EOF
11158 #line 11158 "configure"
11159 #include "confdefs.h"
11160
11161 #if HAVE_DLFCN_H
11162 #include <dlfcn.h>
11163 #endif
11164
11165 #include <stdio.h>
11166
11167 #ifdef RTLD_GLOBAL
11168 #  define LT_DLGLOBAL           RTLD_GLOBAL
11169 #else
11170 #  ifdef DL_GLOBAL
11171 #    define LT_DLGLOBAL         DL_GLOBAL
11172 #  else
11173 #    define LT_DLGLOBAL         0
11174 #  endif
11175 #endif
11176
11177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11178    find out it does not work in some platform. */
11179 #ifndef LT_DLLAZY_OR_NOW
11180 #  ifdef RTLD_LAZY
11181 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11182 #  else
11183 #    ifdef DL_LAZY
11184 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11185 #    else
11186 #      ifdef RTLD_NOW
11187 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11188 #      else
11189 #        ifdef DL_NOW
11190 #          define LT_DLLAZY_OR_NOW      DL_NOW
11191 #        else
11192 #          define LT_DLLAZY_OR_NOW      0
11193 #        endif
11194 #      endif
11195 #    endif
11196 #  endif
11197 #endif
11198
11199 #ifdef __cplusplus
11200 extern "C" void exit (int);
11201 #endif
11202
11203 void fnord() { int i=42;}
11204 int main ()
11205 {
11206   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11207   int status = $lt_dlunknown;
11208
11209   if (self)
11210     {
11211       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11212       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11213       /* dlclose (self); */
11214     }
11215
11216     exit (status);
11217 }
11218 EOF
11219   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220   (eval $ac_link) 2>&5
11221   ac_status=$?
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11224     (./conftest; exit; ) 2>/dev/null
11225     lt_status=$?
11226     case x$lt_status in
11227       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11228       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11229       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11230     esac
11231   else :
11232     # compilation failed
11233     lt_cv_dlopen_self=no
11234   fi
11235 fi
11236 rm -fr conftest*
11237
11238
11239 fi
11240 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11241 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11242
11243     if test "x$lt_cv_dlopen_self" = xyes; then
11244       LDFLAGS="$LDFLAGS $link_static_flag"
11245       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11246 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11247 if test "${lt_cv_dlopen_self_static+set}" = set; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250           if test "$cross_compiling" = yes; then :
11251   lt_cv_dlopen_self_static=cross
11252 else
11253   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11254   lt_status=$lt_dlunknown
11255   cat > conftest.$ac_ext <<EOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11258
11259 #if HAVE_DLFCN_H
11260 #include <dlfcn.h>
11261 #endif
11262
11263 #include <stdio.h>
11264
11265 #ifdef RTLD_GLOBAL
11266 #  define LT_DLGLOBAL           RTLD_GLOBAL
11267 #else
11268 #  ifdef DL_GLOBAL
11269 #    define LT_DLGLOBAL         DL_GLOBAL
11270 #  else
11271 #    define LT_DLGLOBAL         0
11272 #  endif
11273 #endif
11274
11275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11276    find out it does not work in some platform. */
11277 #ifndef LT_DLLAZY_OR_NOW
11278 #  ifdef RTLD_LAZY
11279 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11280 #  else
11281 #    ifdef DL_LAZY
11282 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11283 #    else
11284 #      ifdef RTLD_NOW
11285 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11286 #      else
11287 #        ifdef DL_NOW
11288 #          define LT_DLLAZY_OR_NOW      DL_NOW
11289 #        else
11290 #          define LT_DLLAZY_OR_NOW      0
11291 #        endif
11292 #      endif
11293 #    endif
11294 #  endif
11295 #endif
11296
11297 #ifdef __cplusplus
11298 extern "C" void exit (int);
11299 #endif
11300
11301 void fnord() { int i=42;}
11302 int main ()
11303 {
11304   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305   int status = $lt_dlunknown;
11306
11307   if (self)
11308     {
11309       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11310       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11311       /* dlclose (self); */
11312     }
11313
11314     exit (status);
11315 }
11316 EOF
11317   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318   (eval $ac_link) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11322     (./conftest; exit; ) 2>/dev/null
11323     lt_status=$?
11324     case x$lt_status in
11325       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11326       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11327       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11328     esac
11329   else :
11330     # compilation failed
11331     lt_cv_dlopen_self_static=no
11332   fi
11333 fi
11334 rm -fr conftest*
11335
11336
11337 fi
11338 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11339 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11340     fi
11341
11342     CPPFLAGS="$save_CPPFLAGS"
11343     LDFLAGS="$save_LDFLAGS"
11344     LIBS="$save_LIBS"
11345     ;;
11346   esac
11347
11348   case $lt_cv_dlopen_self in
11349   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11350   *) enable_dlopen_self=unknown ;;
11351   esac
11352
11353   case $lt_cv_dlopen_self_static in
11354   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11355   *) enable_dlopen_self_static=unknown ;;
11356   esac
11357 fi
11358
11359
11360 # Report which librarie types wil actually be built
11361 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11362 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11363 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11364 echo "${ECHO_T}$can_build_shared" >&6
11365
11366 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11367 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11368 test "$can_build_shared" = "no" && enable_shared=no
11369
11370 # On AIX, shared libraries and static libraries use the same namespace, and
11371 # are all built from PIC.
11372 case "$host_os" in
11373 aix3*)
11374   test "$enable_shared" = yes && enable_static=no
11375   if test -n "$RANLIB"; then
11376     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11377     postinstall_cmds='$RANLIB $lib'
11378   fi
11379   ;;
11380
11381 aix4* | aix5*)
11382   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11383     test "$enable_shared" = yes && enable_static=no
11384   fi
11385     ;;
11386 esac
11387 echo "$as_me:$LINENO: result: $enable_shared" >&5
11388 echo "${ECHO_T}$enable_shared" >&6
11389
11390 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11391 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11392 # Make sure either enable_shared or enable_static is yes.
11393 test "$enable_shared" = yes || enable_static=yes
11394 echo "$as_me:$LINENO: result: $enable_static" >&5
11395 echo "${ECHO_T}$enable_static" >&6
11396
11397 # The else clause should only fire when bootstrapping the
11398 # libtool distribution, otherwise you forgot to ship ltmain.sh
11399 # with your package, and you will get complaints that there are
11400 # no rules to generate ltmain.sh.
11401 if test -f "$ltmain"; then
11402   # See if we are running on zsh, and set the options which allow our commands through
11403   # without removal of \ escapes.
11404   if test -n "${ZSH_VERSION+set}" ; then
11405     setopt NO_GLOB_SUBST
11406   fi
11407   # Now quote all the things that may contain metacharacters while being
11408   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11409   # variables and quote the copies for generation of the libtool script.
11410   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11411     SED SHELL STRIP \
11412     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11413     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11414     deplibs_check_method reload_flag reload_cmds need_locks \
11415     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11416     lt_cv_sys_global_symbol_to_c_name_address \
11417     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11418     old_postinstall_cmds old_postuninstall_cmds \
11419     compiler \
11420     CC \
11421     LD \
11422     lt_prog_compiler_wl \
11423     lt_prog_compiler_pic \
11424     lt_prog_compiler_static \
11425     lt_prog_compiler_no_builtin_flag \
11426     export_dynamic_flag_spec \
11427     thread_safe_flag_spec \
11428     whole_archive_flag_spec \
11429     enable_shared_with_static_runtimes \
11430     old_archive_cmds \
11431     old_archive_from_new_cmds \
11432     predep_objects \
11433     postdep_objects \
11434     predeps \
11435     postdeps \
11436     compiler_lib_search_path \
11437     archive_cmds \
11438     archive_expsym_cmds \
11439     postinstall_cmds \
11440     postuninstall_cmds \
11441     old_archive_from_expsyms_cmds \
11442     allow_undefined_flag \
11443     no_undefined_flag \
11444     export_symbols_cmds \
11445     hardcode_libdir_flag_spec \
11446     hardcode_libdir_flag_spec_ld \
11447     hardcode_libdir_separator \
11448     hardcode_automatic \
11449     module_cmds \
11450     module_expsym_cmds \
11451     lt_cv_prog_compiler_c_o \
11452     exclude_expsyms \
11453     include_expsyms; do
11454
11455     case $var in
11456     old_archive_cmds | \
11457     old_archive_from_new_cmds | \
11458     archive_cmds | \
11459     archive_expsym_cmds | \
11460     module_cmds | \
11461     module_expsym_cmds | \
11462     old_archive_from_expsyms_cmds | \
11463     export_symbols_cmds | \
11464     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11465     postinstall_cmds | postuninstall_cmds | \
11466     old_postinstall_cmds | old_postuninstall_cmds | \
11467     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11468       # Double-quote double-evaled strings.
11469       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11470       ;;
11471     *)
11472       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11473       ;;
11474     esac
11475   done
11476
11477   case $lt_echo in
11478   *'\$0 --fallback-echo"')
11479     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11480     ;;
11481   esac
11482
11483 cfgfile="${ofile}T"
11484   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11485   $rm -f "$cfgfile"
11486   { echo "$as_me:$LINENO: creating $ofile" >&5
11487 echo "$as_me: creating $ofile" >&6;}
11488
11489   cat <<__EOF__ >> "$cfgfile"
11490 #! $SHELL
11491
11492 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11493 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11495 #
11496 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11497 # Free Software Foundation, Inc.
11498 #
11499 # This file is part of GNU Libtool:
11500 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11501 #
11502 # This program is free software; you can redistribute it and/or modify
11503 # it under the terms of the GNU General Public License as published by
11504 # the Free Software Foundation; either version 2 of the License, or
11505 # (at your option) any later version.
11506 #
11507 # This program is distributed in the hope that it will be useful, but
11508 # WITHOUT ANY WARRANTY; without even the implied warranty of
11509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11510 # General Public License for more details.
11511 #
11512 # You should have received a copy of the GNU General Public License
11513 # along with this program; if not, write to the Free Software
11514 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11515 #
11516 # As a special exception to the GNU General Public License, if you
11517 # distribute this file as part of a program that contains a
11518 # configuration script generated by Autoconf, you may include it under
11519 # the same distribution terms that you use for the rest of that program.
11520
11521 # A sed program that does not truncate output.
11522 SED=$lt_SED
11523
11524 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11525 Xsed="$SED -e 1s/^X//"
11526
11527 # The HP-UX ksh and POSIX shell print the target directory to stdout
11528 # if CDPATH is set.
11529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11530
11531 # The names of the tagged configurations supported by this script.
11532 available_tags=
11533
11534 # ### BEGIN LIBTOOL CONFIG
11535
11536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11537
11538 # Shell to use when invoking shell scripts.
11539 SHELL=$lt_SHELL
11540
11541 # Whether or not to build shared libraries.
11542 build_libtool_libs=$enable_shared
11543
11544 # Whether or not to build static libraries.
11545 build_old_libs=$enable_static
11546
11547 # Whether or not to add -lc for building shared libraries.
11548 build_libtool_need_lc=$archive_cmds_need_lc
11549
11550 # Whether or not to disallow shared libs when runtime libs are static
11551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11552
11553 # Whether or not to optimize for fast installation.
11554 fast_install=$enable_fast_install
11555
11556 # The host system.
11557 host_alias=$host_alias
11558 host=$host
11559 host_os=$host_os
11560
11561 # The build system.
11562 build_alias=$build_alias
11563 build=$build
11564 build_os=$build_os
11565
11566 # An echo program that does not interpret backslashes.
11567 echo=$lt_echo
11568
11569 # The archiver.
11570 AR=$lt_AR
11571 AR_FLAGS=$lt_AR_FLAGS
11572
11573 # A C compiler.
11574 LTCC=$lt_LTCC
11575
11576 # A language-specific compiler.
11577 CC=$lt_compiler
11578
11579 # Is the compiler the GNU C compiler?
11580 with_gcc=$GCC
11581
11582 # An ERE matcher.
11583 EGREP=$lt_EGREP
11584
11585 # The linker used to build libraries.
11586 LD=$lt_LD
11587
11588 # Whether we need hard or soft links.
11589 LN_S=$lt_LN_S
11590
11591 # A BSD-compatible nm program.
11592 NM=$lt_NM
11593
11594 # A symbol stripping program
11595 STRIP=$lt_STRIP
11596
11597 # Used to examine libraries when file_magic_cmd begins "file"
11598 MAGIC_CMD=$MAGIC_CMD
11599
11600 # Used on cygwin: DLL creation program.
11601 DLLTOOL="$DLLTOOL"
11602
11603 # Used on cygwin: object dumper.
11604 OBJDUMP="$OBJDUMP"
11605
11606 # Used on cygwin: assembler.
11607 AS="$AS"
11608
11609 # The name of the directory that contains temporary libtool files.
11610 objdir=$objdir
11611
11612 # How to create reloadable object files.
11613 reload_flag=$lt_reload_flag
11614 reload_cmds=$lt_reload_cmds
11615
11616 # How to pass a linker flag through the compiler.
11617 wl=$lt_lt_prog_compiler_wl
11618
11619 # Object file suffix (normally "o").
11620 objext="$ac_objext"
11621
11622 # Old archive suffix (normally "a").
11623 libext="$libext"
11624
11625 # Shared library suffix (normally ".so").
11626 shrext_cmds='$shrext_cmds'
11627
11628 # Executable file suffix (normally "").
11629 exeext="$exeext"
11630
11631 # Additional compiler flags for building library objects.
11632 pic_flag=$lt_lt_prog_compiler_pic
11633 pic_mode=$pic_mode
11634
11635 # What is the maximum length of a command?
11636 max_cmd_len=$lt_cv_sys_max_cmd_len
11637
11638 # Does compiler simultaneously support -c and -o options?
11639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11640
11641 # Must we lock files when doing compilation?
11642 need_locks=$lt_need_locks
11643
11644 # Do we need the lib prefix for modules?
11645 need_lib_prefix=$need_lib_prefix
11646
11647 # Do we need a version for libraries?
11648 need_version=$need_version
11649
11650 # Whether dlopen is supported.
11651 dlopen_support=$enable_dlopen
11652
11653 # Whether dlopen of programs is supported.
11654 dlopen_self=$enable_dlopen_self
11655
11656 # Whether dlopen of statically linked programs is supported.
11657 dlopen_self_static=$enable_dlopen_self_static
11658
11659 # Compiler flag to prevent dynamic linking.
11660 link_static_flag=$lt_lt_prog_compiler_static
11661
11662 # Compiler flag to turn off builtin functions.
11663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11664
11665 # Compiler flag to allow reflexive dlopens.
11666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11667
11668 # Compiler flag to generate shared objects directly from archives.
11669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11670
11671 # Compiler flag to generate thread-safe objects.
11672 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11673
11674 # Library versioning type.
11675 version_type=$version_type
11676
11677 # Format of library name prefix.
11678 libname_spec=$lt_libname_spec
11679
11680 # List of archive names.  First name is the real one, the rest are links.
11681 # The last name is the one that the linker finds with -lNAME.
11682 library_names_spec=$lt_library_names_spec
11683
11684 # The coded name of the library, if different from the real name.
11685 soname_spec=$lt_soname_spec
11686
11687 # Commands used to build and install an old-style archive.
11688 RANLIB=$lt_RANLIB
11689 old_archive_cmds=$lt_old_archive_cmds
11690 old_postinstall_cmds=$lt_old_postinstall_cmds
11691 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11692
11693 # Create an old-style archive from a shared archive.
11694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11695
11696 # Create a temporary old-style archive to link instead of a shared archive.
11697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11698
11699 # Commands used to build and install a shared archive.
11700 archive_cmds=$lt_archive_cmds
11701 archive_expsym_cmds=$lt_archive_expsym_cmds
11702 postinstall_cmds=$lt_postinstall_cmds
11703 postuninstall_cmds=$lt_postuninstall_cmds
11704
11705 # Commands used to build a loadable module (assumed same as above if empty)
11706 module_cmds=$lt_module_cmds
11707 module_expsym_cmds=$lt_module_expsym_cmds
11708
11709 # Commands to strip libraries.
11710 old_striplib=$lt_old_striplib
11711 striplib=$lt_striplib
11712
11713 # Dependencies to place before the objects being linked to create a
11714 # shared library.
11715 predep_objects=$lt_predep_objects
11716
11717 # Dependencies to place after the objects being linked to create a
11718 # shared library.
11719 postdep_objects=$lt_postdep_objects
11720
11721 # Dependencies to place before the objects being linked to create a
11722 # shared library.
11723 predeps=$lt_predeps
11724
11725 # Dependencies to place after the objects being linked to create a
11726 # shared library.
11727 postdeps=$lt_postdeps
11728
11729 # The library search path used internally by the compiler when linking
11730 # a shared library.
11731 compiler_lib_search_path=$lt_compiler_lib_search_path
11732
11733 # Method to check whether dependent libraries are shared objects.
11734 deplibs_check_method=$lt_deplibs_check_method
11735
11736 # Command to use when deplibs_check_method == file_magic.
11737 file_magic_cmd=$lt_file_magic_cmd
11738
11739 # Flag that allows shared libraries with undefined symbols to be built.
11740 allow_undefined_flag=$lt_allow_undefined_flag
11741
11742 # Flag that forces no undefined symbols.
11743 no_undefined_flag=$lt_no_undefined_flag
11744
11745 # Commands used to finish a libtool library installation in a directory.
11746 finish_cmds=$lt_finish_cmds
11747
11748 # Same as above, but a single script fragment to be evaled but not shown.
11749 finish_eval=$lt_finish_eval
11750
11751 # Take the output of nm and produce a listing of raw symbols and C names.
11752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11753
11754 # Transform the output of nm in a proper C declaration
11755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11756
11757 # Transform the output of nm in a C name address pair
11758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11759
11760 # This is the shared library runtime path variable.
11761 runpath_var=$runpath_var
11762
11763 # This is the shared library path variable.
11764 shlibpath_var=$shlibpath_var
11765
11766 # Is shlibpath searched before the hard-coded library search path?
11767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11768
11769 # How to hardcode a shared library path into an executable.
11770 hardcode_action=$hardcode_action
11771
11772 # Whether we should hardcode library paths into libraries.
11773 hardcode_into_libs=$hardcode_into_libs
11774
11775 # Flag to hardcode \$libdir into a binary during linking.
11776 # This must work even if \$libdir does not exist.
11777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11778
11779 # If ld is used when linking, flag to hardcode \$libdir into
11780 # a binary during linking. This must work even if \$libdir does
11781 # not exist.
11782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11783
11784 # Whether we need a single -rpath flag with a separated argument.
11785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11786
11787 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11788 # resulting binary.
11789 hardcode_direct=$hardcode_direct
11790
11791 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11792 # resulting binary.
11793 hardcode_minus_L=$hardcode_minus_L
11794
11795 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11796 # the resulting binary.
11797 hardcode_shlibpath_var=$hardcode_shlibpath_var
11798
11799 # Set to yes if building a shared library automatically hardcodes DIR into the library
11800 # and all subsequent libraries and executables linked against it.
11801 hardcode_automatic=$hardcode_automatic
11802
11803 # Variables whose values should be saved in libtool wrapper scripts and
11804 # restored at relink time.
11805 variables_saved_for_relink="$variables_saved_for_relink"
11806
11807 # Whether libtool must link a program against all its dependency libraries.
11808 link_all_deplibs=$link_all_deplibs
11809
11810 # Compile-time system search path for libraries
11811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11812
11813 # Run-time system search path for libraries
11814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11815
11816 # Fix the shell variable \$srcfile for the compiler.
11817 fix_srcfile_path="$fix_srcfile_path"
11818
11819 # Set to yes if exported symbols are required.
11820 always_export_symbols=$always_export_symbols
11821
11822 # The commands to list exported symbols.
11823 export_symbols_cmds=$lt_export_symbols_cmds
11824
11825 # The commands to extract the exported symbol list from a shared archive.
11826 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11827
11828 # Symbols that should not be listed in the preloaded symbols.
11829 exclude_expsyms=$lt_exclude_expsyms
11830
11831 # Symbols that must always be exported.
11832 include_expsyms=$lt_include_expsyms
11833
11834 # ### END LIBTOOL CONFIG
11835
11836 __EOF__
11837
11838
11839   case $host_os in
11840   aix3*)
11841     cat <<\EOF >> "$cfgfile"
11842
11843 # AIX sometimes has problems with the GCC collect2 program.  For some
11844 # reason, if we set the COLLECT_NAMES environment variable, the problems
11845 # vanish in a puff of smoke.
11846 if test "X${COLLECT_NAMES+set}" != Xset; then
11847   COLLECT_NAMES=
11848   export COLLECT_NAMES
11849 fi
11850 EOF
11851     ;;
11852   esac
11853
11854   # We use sed instead of cat because bash on DJGPP gets confused if
11855   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11856   # text mode, it properly converts lines to CR/LF.  This bash problem
11857   # is reportedly fixed, but why not run on old versions too?
11858   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11859
11860   mv -f "$cfgfile" "$ofile" || \
11861     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11862   chmod +x "$ofile"
11863
11864 else
11865   # If there is no Makefile yet, we rely on a make rule to execute
11866   # `config.status --recheck' to rerun these tests and create the
11867   # libtool script then.
11868   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11869   if test -f "$ltmain_in"; then
11870     test -f Makefile && make "$ltmain"
11871   fi
11872 fi
11873
11874
11875 ac_ext=c
11876 ac_cpp='$CPP $CPPFLAGS'
11877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11880
11881 CC="$lt_save_CC"
11882
11883
11884 # Check whether --with-tags or --without-tags was given.
11885 if test "${with_tags+set}" = set; then
11886   withval="$with_tags"
11887   tagnames="$withval"
11888 fi;
11889
11890 if test -f "$ltmain" && test -n "$tagnames"; then
11891   if test ! -f "${ofile}"; then
11892     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11893 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11894   fi
11895
11896   if test -z "$LTCC"; then
11897     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11898     if test -z "$LTCC"; then
11899       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11900 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11901     else
11902       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11903 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11904     fi
11905   fi
11906
11907   # Extract list of available tagged configurations in $ofile.
11908   # Note that this assumes the entire list is on one line.
11909   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11910
11911   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11912   for tagname in $tagnames; do
11913     IFS="$lt_save_ifs"
11914     # Check whether tagname contains only valid characters
11915     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11916     "") ;;
11917     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11918 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11919    { (exit 1); exit 1; }; }
11920         ;;
11921     esac
11922
11923     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11924     then
11925       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11926 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11927    { (exit 1); exit 1; }; }
11928     fi
11929
11930     # Update the list of available tags.
11931     if test -n "$tagname"; then
11932       echo appending configuration tag \"$tagname\" to $ofile
11933
11934       case $tagname in
11935       CXX)
11936         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11937             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11938             (test "X$CXX" != "Xg++"))) ; then
11939           ac_ext=cc
11940 ac_cpp='$CXXCPP $CPPFLAGS'
11941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11944
11945
11946
11947
11948 archive_cmds_need_lc_CXX=no
11949 allow_undefined_flag_CXX=
11950 always_export_symbols_CXX=no
11951 archive_expsym_cmds_CXX=
11952 export_dynamic_flag_spec_CXX=
11953 hardcode_direct_CXX=no
11954 hardcode_libdir_flag_spec_CXX=
11955 hardcode_libdir_flag_spec_ld_CXX=
11956 hardcode_libdir_separator_CXX=
11957 hardcode_minus_L_CXX=no
11958 hardcode_automatic_CXX=no
11959 module_cmds_CXX=
11960 module_expsym_cmds_CXX=
11961 link_all_deplibs_CXX=unknown
11962 old_archive_cmds_CXX=$old_archive_cmds
11963 no_undefined_flag_CXX=
11964 whole_archive_flag_spec_CXX=
11965 enable_shared_with_static_runtimes_CXX=no
11966
11967 # Dependencies to place before and after the object being linked:
11968 predep_objects_CXX=
11969 postdep_objects_CXX=
11970 predeps_CXX=
11971 postdeps_CXX=
11972 compiler_lib_search_path_CXX=
11973
11974 # Source file extension for C++ test sources.
11975 ac_ext=cc
11976
11977 # Object file extension for compiled C++ test sources.
11978 objext=o
11979 objext_CXX=$objext
11980
11981 # Code to be used in simple compile tests
11982 lt_simple_compile_test_code="int some_variable = 0;\n"
11983
11984 # Code to be used in simple link tests
11985 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11986
11987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11988
11989 # If no C compiler was specified, use CC.
11990 LTCC=${LTCC-"$CC"}
11991
11992 # Allow CC to be a program name with arguments.
11993 compiler=$CC
11994
11995
11996 # save warnings/boilerplate of simple test code
11997 ac_outfile=conftest.$ac_objext
11998 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12000 _lt_compiler_boilerplate=`cat conftest.err`
12001 $rm conftest*
12002
12003 ac_outfile=conftest.$ac_objext
12004 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12006 _lt_linker_boilerplate=`cat conftest.err`
12007 $rm conftest*
12008
12009
12010 # Allow CC to be a program name with arguments.
12011 lt_save_CC=$CC
12012 lt_save_LD=$LD
12013 lt_save_GCC=$GCC
12014 GCC=$GXX
12015 lt_save_with_gnu_ld=$with_gnu_ld
12016 lt_save_path_LD=$lt_cv_path_LD
12017 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12018   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12019 else
12020   unset lt_cv_prog_gnu_ld
12021 fi
12022 if test -n "${lt_cv_path_LDCXX+set}"; then
12023   lt_cv_path_LD=$lt_cv_path_LDCXX
12024 else
12025   unset lt_cv_path_LD
12026 fi
12027 test -z "${LDCXX+set}" || LD=$LDCXX
12028 CC=${CXX-"c++"}
12029 compiler=$CC
12030 compiler_CXX=$CC
12031 for cc_temp in $compiler""; do
12032   case $cc_temp in
12033     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12034     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12035     \-*) ;;
12036     *) break;;
12037   esac
12038 done
12039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12040
12041
12042 # We don't want -fno-exception wen compiling C++ code, so set the
12043 # no_builtin_flag separately
12044 if test "$GXX" = yes; then
12045   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12046 else
12047   lt_prog_compiler_no_builtin_flag_CXX=
12048 fi
12049
12050 if test "$GXX" = yes; then
12051   # Set up default GNU C++ configuration
12052
12053
12054 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12055 if test "${with_gnu_ld+set}" = set; then
12056   withval="$with_gnu_ld"
12057   test "$withval" = no || with_gnu_ld=yes
12058 else
12059   with_gnu_ld=no
12060 fi;
12061 ac_prog=ld
12062 if test "$GCC" = yes; then
12063   # Check if gcc -print-prog-name=ld gives a path.
12064   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12065 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12066   case $host in
12067   *-*-mingw*)
12068     # gcc leaves a trailing carriage return which upsets mingw
12069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12070   *)
12071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12072   esac
12073   case $ac_prog in
12074     # Accept absolute paths.
12075     [\\/]* | ?:[\\/]*)
12076       re_direlt='/[^/][^/]*/\.\./'
12077       # Canonicalize the pathname of ld
12078       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12079       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12080         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12081       done
12082       test -z "$LD" && LD="$ac_prog"
12083       ;;
12084   "")
12085     # If it fails, then pretend we aren't using GCC.
12086     ac_prog=ld
12087     ;;
12088   *)
12089     # If it is relative, then search for the first ld in PATH.
12090     with_gnu_ld=unknown
12091     ;;
12092   esac
12093 elif test "$with_gnu_ld" = yes; then
12094   echo "$as_me:$LINENO: checking for GNU ld" >&5
12095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12096 else
12097   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12099 fi
12100 if test "${lt_cv_path_LD+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   if test -z "$LD"; then
12104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12105   for ac_dir in $PATH; do
12106     IFS="$lt_save_ifs"
12107     test -z "$ac_dir" && ac_dir=.
12108     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12109       lt_cv_path_LD="$ac_dir/$ac_prog"
12110       # Check to see if the program is GNU ld.  I'd rather use --version,
12111       # but apparently some GNU ld's only accept -v.
12112       # Break only if it was the GNU/non-GNU ld that we prefer.
12113       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12114       *GNU* | *'with BFD'*)
12115         test "$with_gnu_ld" != no && break
12116         ;;
12117       *)
12118         test "$with_gnu_ld" != yes && break
12119         ;;
12120       esac
12121     fi
12122   done
12123   IFS="$lt_save_ifs"
12124 else
12125   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12126 fi
12127 fi
12128
12129 LD="$lt_cv_path_LD"
12130 if test -n "$LD"; then
12131   echo "$as_me:$LINENO: result: $LD" >&5
12132 echo "${ECHO_T}$LD" >&6
12133 else
12134   echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 fi
12137 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12138 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12139    { (exit 1); exit 1; }; }
12140 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12141 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12142 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12143   echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12146 case `$LD -v 2>&1 </dev/null` in
12147 *GNU* | *'with BFD'*)
12148   lt_cv_prog_gnu_ld=yes
12149   ;;
12150 *)
12151   lt_cv_prog_gnu_ld=no
12152   ;;
12153 esac
12154 fi
12155 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12156 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12157 with_gnu_ld=$lt_cv_prog_gnu_ld
12158
12159
12160
12161   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12162   # archiving commands below assume that GNU ld is being used.
12163   if test "$with_gnu_ld" = yes; then
12164     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12165     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'
12166
12167     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12168     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12169
12170     # If archive_cmds runs LD, not CC, wlarc should be empty
12171     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12172     #     investigate it a little bit more. (MM)
12173     wlarc='${wl}'
12174
12175     # ancient GNU ld didn't support --whole-archive et. al.
12176     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12177         grep 'no-whole-archive' > /dev/null; then
12178       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12179     else
12180       whole_archive_flag_spec_CXX=
12181     fi
12182   else
12183     with_gnu_ld=no
12184     wlarc=
12185
12186     # A generic and very simple default shared library creation
12187     # command for GNU C++ for the case where it uses the native
12188     # linker, instead of GNU ld.  If possible, this setting should
12189     # overridden to take advantage of the native linker features on
12190     # the platform it is being used on.
12191     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12192   fi
12193
12194   # Commands to make compiler produce verbose output that lists
12195   # what "hidden" libraries, object files and flags are used when
12196   # linking a shared library.
12197   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12198
12199 else
12200   GXX=no
12201   with_gnu_ld=no
12202   wlarc=
12203 fi
12204
12205 # PORTME: fill in a description of your system's C++ link characteristics
12206 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12208 ld_shlibs_CXX=yes
12209 case $host_os in
12210   aix3*)
12211     # FIXME: insert proper C++ library support
12212     ld_shlibs_CXX=no
12213     ;;
12214   aix4* | aix5*)
12215     if test "$host_cpu" = ia64; then
12216       # On IA64, the linker does run time linking by default, so we don't
12217       # have to do anything special.
12218       aix_use_runtimelinking=no
12219       exp_sym_flag='-Bexport'
12220       no_entry_flag=""
12221     else
12222       aix_use_runtimelinking=no
12223
12224       # Test if we are trying to use run time linking or normal
12225       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12226       # need to do runtime linking.
12227       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12228         for ld_flag in $LDFLAGS; do
12229           case $ld_flag in
12230           *-brtl*)
12231             aix_use_runtimelinking=yes
12232             break
12233             ;;
12234           esac
12235         done
12236       esac
12237
12238       exp_sym_flag='-bexport'
12239       no_entry_flag='-bnoentry'
12240     fi
12241
12242     # When large executables or shared objects are built, AIX ld can
12243     # have problems creating the table of contents.  If linking a library
12244     # or program results in "error TOC overflow" add -mminimal-toc to
12245     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12246     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12247
12248     archive_cmds_CXX=''
12249     hardcode_direct_CXX=yes
12250     hardcode_libdir_separator_CXX=':'
12251     link_all_deplibs_CXX=yes
12252
12253     if test "$GXX" = yes; then
12254       case $host_os in aix4.[012]|aix4.[012].*)
12255       # We only want to do this on AIX 4.2 and lower, the check
12256       # below for broken collect2 doesn't work under 4.3+
12257         collect2name=`${CC} -print-prog-name=collect2`
12258         if test -f "$collect2name" && \
12259            strings "$collect2name" | grep resolve_lib_name >/dev/null
12260         then
12261           # We have reworked collect2
12262           hardcode_direct_CXX=yes
12263         else
12264           # We have old collect2
12265           hardcode_direct_CXX=unsupported
12266           # It fails to find uninstalled libraries when the uninstalled
12267           # path is not listed in the libpath.  Setting hardcode_minus_L
12268           # to unsupported forces relinking
12269           hardcode_minus_L_CXX=yes
12270           hardcode_libdir_flag_spec_CXX='-L$libdir'
12271           hardcode_libdir_separator_CXX=
12272         fi
12273       esac
12274       shared_flag='-shared'
12275       if test "$aix_use_runtimelinking" = yes; then
12276         shared_flag="$shared_flag "'${wl}-G'
12277       fi
12278     else
12279       # not using gcc
12280       if test "$host_cpu" = ia64; then
12281         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12282         # chokes on -Wl,-G. The following line is correct:
12283         shared_flag='-G'
12284       else
12285         if test "$aix_use_runtimelinking" = yes; then
12286           shared_flag='${wl}-G'
12287         else
12288           shared_flag='${wl}-bM:SRE'
12289         fi
12290       fi
12291     fi
12292
12293     # It seems that -bexpall does not export symbols beginning with
12294     # underscore (_), so it is better to generate a list of symbols to export.
12295     always_export_symbols_CXX=yes
12296     if test "$aix_use_runtimelinking" = yes; then
12297       # Warning - without using the other runtime loading flags (-brtl),
12298       # -berok will link without error, but may produce a broken library.
12299       allow_undefined_flag_CXX='-berok'
12300       # Determine the default libpath from the value encoded in an empty executable.
12301       cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307
12308 int
12309 main ()
12310 {
12311
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318   (eval $ac_link) 2>conftest.er1
12319   ac_status=$?
12320   grep -v '^ *+' conftest.er1 >conftest.err
12321   rm -f conftest.er1
12322   cat conftest.err >&5
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } &&
12325          { ac_try='test -z "$ac_cxx_werror_flag"
12326                          || test ! -s conftest.err'
12327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328   (eval $ac_try) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; } &&
12332          { ac_try='test -s conftest$ac_exeext'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338
12339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12340 }'`
12341 # Check for a 64-bit object if we didn't find anything.
12342 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; }
12343 }'`; fi
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 fi
12349 rm -f conftest.err conftest.$ac_objext \
12350       conftest$ac_exeext conftest.$ac_ext
12351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12352
12353       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12354
12355       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"
12356      else
12357       if test "$host_cpu" = ia64; then
12358         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12359         allow_undefined_flag_CXX="-z nodefs"
12360         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"
12361       else
12362         # Determine the default libpath from the value encoded in an empty executable.
12363         cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369
12370 int
12371 main ()
12372 {
12373
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380   (eval $ac_link) 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_cxx_werror_flag"
12388                          || test ! -s conftest.err'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; } &&
12394          { ac_try='test -s conftest$ac_exeext'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; }; then
12400
12401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12402 }'`
12403 # Check for a 64-bit object if we didn't find anything.
12404 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; }
12405 }'`; fi
12406 else
12407   echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410 fi
12411 rm -f conftest.err conftest.$ac_objext \
12412       conftest$ac_exeext conftest.$ac_ext
12413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12414
12415         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12416         # Warning - without using the other run time loading flags,
12417         # -berok will link without error, but may produce a broken library.
12418         no_undefined_flag_CXX=' ${wl}-bernotok'
12419         allow_undefined_flag_CXX=' ${wl}-berok'
12420         # -bexpall does not export symbols beginning with underscore (_)
12421         always_export_symbols_CXX=yes
12422         # Exported symbols can be pulled into shared objects from archives
12423         whole_archive_flag_spec_CXX=' '
12424         archive_cmds_need_lc_CXX=yes
12425         # This is similar to how AIX traditionally builds it's shared libraries.
12426         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'
12427       fi
12428     fi
12429     ;;
12430   chorus*)
12431     case $cc_basename in
12432       *)
12433         # FIXME: insert proper C++ library support
12434         ld_shlibs_CXX=no
12435         ;;
12436     esac
12437     ;;
12438
12439
12440   cygwin* | mingw* | pw32*)
12441     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12442     # as there is no search path for DLLs.
12443     hardcode_libdir_flag_spec_CXX='-L$libdir'
12444     allow_undefined_flag_CXX=unsupported
12445     always_export_symbols_CXX=no
12446     enable_shared_with_static_runtimes_CXX=yes
12447
12448     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12449       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'
12450       # If the export-symbols file already is a .def file (1st line
12451       # is EXPORTS), use it as is; otherwise, prepend...
12452       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12453         cp $export_symbols $output_objdir/$soname.def;
12454       else
12455         echo EXPORTS > $output_objdir/$soname.def;
12456         cat $export_symbols >> $output_objdir/$soname.def;
12457       fi~
12458       $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'
12459     else
12460       ld_shlibs_CXX=no
12461     fi
12462   ;;
12463       darwin* | rhapsody*)
12464         case "$host_os" in
12465         rhapsody* | darwin1.[012])
12466          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12467          ;;
12468        *) # Darwin 1.3 on
12469          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12470            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12471          else
12472            case ${MACOSX_DEPLOYMENT_TARGET} in
12473              10.[012])
12474                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12475                ;;
12476              10.*)
12477                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12478                ;;
12479            esac
12480          fi
12481          ;;
12482         esac
12483       archive_cmds_need_lc_CXX=no
12484       hardcode_direct_CXX=no
12485       hardcode_automatic_CXX=yes
12486       hardcode_shlibpath_var_CXX=unsupported
12487       whole_archive_flag_spec_CXX=''
12488       link_all_deplibs_CXX=yes
12489
12490     if test "$GXX" = yes ; then
12491       lt_int_apple_cc_single_mod=no
12492       output_verbose_link_cmd='echo'
12493       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12494        lt_int_apple_cc_single_mod=yes
12495       fi
12496       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12497        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12498       else
12499           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'
12500         fi
12501         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12502         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12503           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12504             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}'
12505           else
12506             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}'
12507           fi
12508             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}'
12509       else
12510       case $cc_basename in
12511         xlc*)
12512          output_verbose_link_cmd='echo'
12513           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'
12514           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12515           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12516           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}'
12517           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}'
12518           ;;
12519        *)
12520          ld_shlibs_CXX=no
12521           ;;
12522       esac
12523       fi
12524         ;;
12525
12526   dgux*)
12527     case $cc_basename in
12528       ec++*)
12529         # FIXME: insert proper C++ library support
12530         ld_shlibs_CXX=no
12531         ;;
12532       ghcx*)
12533         # Green Hills C++ Compiler
12534         # FIXME: insert proper C++ library support
12535         ld_shlibs_CXX=no
12536         ;;
12537       *)
12538         # FIXME: insert proper C++ library support
12539         ld_shlibs_CXX=no
12540         ;;
12541     esac
12542     ;;
12543   freebsd[12]*)
12544     # C++ shared libraries reported to be fairly broken before switch to ELF
12545     ld_shlibs_CXX=no
12546     ;;
12547   freebsd-elf*)
12548     archive_cmds_need_lc_CXX=no
12549     ;;
12550   freebsd* | kfreebsd*-gnu | dragonfly*)
12551     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12552     # conventions
12553     ld_shlibs_CXX=yes
12554     ;;
12555   gnu*)
12556     ;;
12557   hpux9*)
12558     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12559     hardcode_libdir_separator_CXX=:
12560     export_dynamic_flag_spec_CXX='${wl}-E'
12561     hardcode_direct_CXX=yes
12562     hardcode_minus_L_CXX=yes # Not in the search PATH,
12563                                 # but as the default
12564                                 # location of the library.
12565
12566     case $cc_basename in
12567     CC*)
12568       # FIXME: insert proper C++ library support
12569       ld_shlibs_CXX=no
12570       ;;
12571     aCC*)
12572       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'
12573       # Commands to make compiler produce verbose output that lists
12574       # what "hidden" libraries, object files and flags are used when
12575       # linking a shared library.
12576       #
12577       # There doesn't appear to be a way to prevent this compiler from
12578       # explicitly linking system object files so we need to strip them
12579       # from the output so that they don't get included in the library
12580       # dependencies.
12581       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'
12582       ;;
12583     *)
12584       if test "$GXX" = yes; then
12585         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'
12586       else
12587         # FIXME: insert proper C++ library support
12588         ld_shlibs_CXX=no
12589       fi
12590       ;;
12591     esac
12592     ;;
12593   hpux10*|hpux11*)
12594     if test $with_gnu_ld = no; then
12595       case "$host_cpu" in
12596       hppa*64*)
12597         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12598         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12599         hardcode_libdir_separator_CXX=:
12600         ;;
12601       ia64*)
12602         hardcode_libdir_flag_spec_CXX='-L$libdir'
12603         ;;
12604       *)
12605         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12606         hardcode_libdir_separator_CXX=:
12607         export_dynamic_flag_spec_CXX='${wl}-E'
12608         ;;
12609       esac
12610     fi
12611     case "$host_cpu" in
12612     hppa*64*)
12613       hardcode_direct_CXX=no
12614       hardcode_shlibpath_var_CXX=no
12615       ;;
12616     ia64*)
12617       hardcode_direct_CXX=no
12618       hardcode_shlibpath_var_CXX=no
12619       hardcode_minus_L_CXX=yes # Not in the search PATH,
12620                                               # but as the default
12621                                               # location of the library.
12622       ;;
12623     *)
12624       hardcode_direct_CXX=yes
12625       hardcode_minus_L_CXX=yes # Not in the search PATH,
12626                                               # but as the default
12627                                               # location of the library.
12628       ;;
12629     esac
12630
12631     case $cc_basename in
12632       CC*)
12633         # FIXME: insert proper C++ library support
12634         ld_shlibs_CXX=no
12635         ;;
12636       aCC*)
12637         case "$host_cpu" in
12638         hppa*64*|ia64*)
12639           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12640           ;;
12641         *)
12642           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12643           ;;
12644         esac
12645         # Commands to make compiler produce verbose output that lists
12646         # what "hidden" libraries, object files and flags are used when
12647         # linking a shared library.
12648         #
12649         # There doesn't appear to be a way to prevent this compiler from
12650         # explicitly linking system object files so we need to strip them
12651         # from the output so that they don't get included in the library
12652         # dependencies.
12653         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'
12654         ;;
12655       *)
12656         if test "$GXX" = yes; then
12657           if test $with_gnu_ld = no; then
12658             case "$host_cpu" in
12659             ia64*|hppa*64*)
12660               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12661               ;;
12662             *)
12663               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'
12664               ;;
12665             esac
12666           fi
12667         else
12668           # FIXME: insert proper C++ library support
12669           ld_shlibs_CXX=no
12670         fi
12671         ;;
12672     esac
12673     ;;
12674   irix5* | irix6*)
12675     case $cc_basename in
12676       CC*)
12677         # SGI C++
12678         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'
12679
12680         # Archives containing C++ object files must be created using
12681         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12682         # necessary to make sure instantiated templates are included
12683         # in the archive.
12684         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12685         ;;
12686       *)
12687         if test "$GXX" = yes; then
12688           if test "$with_gnu_ld" = no; then
12689             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'
12690           else
12691             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'
12692           fi
12693         fi
12694         link_all_deplibs_CXX=yes
12695         ;;
12696     esac
12697     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12698     hardcode_libdir_separator_CXX=:
12699     ;;
12700   linux*)
12701     case $cc_basename in
12702       KCC*)
12703         # Kuck and Associates, Inc. (KAI) C++ Compiler
12704
12705         # KCC will only create a shared library if the output file
12706         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12707         # to its proper name (with version) after linking.
12708         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'
12709         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'
12710         # Commands to make compiler produce verbose output that lists
12711         # what "hidden" libraries, object files and flags are used when
12712         # linking a shared library.
12713         #
12714         # There doesn't appear to be a way to prevent this compiler from
12715         # explicitly linking system object files so we need to strip them
12716         # from the output so that they don't get included in the library
12717         # dependencies.
12718         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'
12719
12720         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12721         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12722
12723         # Archives containing C++ object files must be created using
12724         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12725         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12726         ;;
12727       icpc*)
12728         # Intel C++
12729         with_gnu_ld=yes
12730         # version 8.0 and above of icpc choke on multiply defined symbols
12731         # if we add $predep_objects and $postdep_objects, however 7.1 and
12732         # earlier do not add the objects themselves.
12733         case `$CC -V 2>&1` in
12734         *"Version 7."*)
12735           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12736           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'
12737           ;;
12738         *)  # Version 8.0 or newer
12739           tmp_idyn=
12740           case $host_cpu in
12741             ia64*) tmp_idyn=' -i_dynamic';;
12742           esac
12743           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744           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'
12745           ;;
12746         esac
12747         archive_cmds_need_lc_CXX=no
12748         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12749         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12750         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12751         ;;
12752       pgCC*)
12753         # Portland Group C++ compiler
12754         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12755         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'
12756
12757         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12758         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12759         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'
12760         ;;
12761       cxx*)
12762         # Compaq C++
12763         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764         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'
12765
12766         runpath_var=LD_RUN_PATH
12767         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12768         hardcode_libdir_separator_CXX=:
12769
12770         # Commands to make compiler produce verbose output that lists
12771         # what "hidden" libraries, object files and flags are used when
12772         # linking a shared library.
12773         #
12774         # There doesn't appear to be a way to prevent this compiler from
12775         # explicitly linking system object files so we need to strip them
12776         # from the output so that they don't get included in the library
12777         # dependencies.
12778         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'
12779         ;;
12780     esac
12781     ;;
12782   lynxos*)
12783     # FIXME: insert proper C++ library support
12784     ld_shlibs_CXX=no
12785     ;;
12786   m88k*)
12787     # FIXME: insert proper C++ library support
12788     ld_shlibs_CXX=no
12789     ;;
12790   mvs*)
12791     case $cc_basename in
12792       cxx*)
12793         # FIXME: insert proper C++ library support
12794         ld_shlibs_CXX=no
12795         ;;
12796       *)
12797         # FIXME: insert proper C++ library support
12798         ld_shlibs_CXX=no
12799         ;;
12800     esac
12801     ;;
12802   netbsd*)
12803     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12804       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12805       wlarc=
12806       hardcode_libdir_flag_spec_CXX='-R$libdir'
12807       hardcode_direct_CXX=yes
12808       hardcode_shlibpath_var_CXX=no
12809     fi
12810     # Workaround some broken pre-1.5 toolchains
12811     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12812     ;;
12813   openbsd2*)
12814     # C++ shared libraries are fairly broken
12815     ld_shlibs_CXX=no
12816     ;;
12817   openbsd*)
12818     hardcode_direct_CXX=yes
12819     hardcode_shlibpath_var_CXX=no
12820     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12821     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12822     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12823       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12824       export_dynamic_flag_spec_CXX='${wl}-E'
12825       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12826     fi
12827     output_verbose_link_cmd='echo'
12828     ;;
12829   osf3*)
12830     case $cc_basename in
12831       KCC*)
12832         # Kuck and Associates, Inc. (KAI) C++ Compiler
12833
12834         # KCC will only create a shared library if the output file
12835         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12836         # to its proper name (with version) after linking.
12837         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'
12838
12839         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12840         hardcode_libdir_separator_CXX=:
12841
12842         # Archives containing C++ object files must be created using
12843         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12844         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12845
12846         ;;
12847       RCC*)
12848         # Rational C++ 2.4.1
12849         # FIXME: insert proper C++ library support
12850         ld_shlibs_CXX=no
12851         ;;
12852       cxx*)
12853         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12854         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'
12855
12856         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12857         hardcode_libdir_separator_CXX=:
12858
12859         # Commands to make compiler produce verbose output that lists
12860         # what "hidden" libraries, object files and flags are used when
12861         # linking a shared library.
12862         #
12863         # There doesn't appear to be a way to prevent this compiler from
12864         # explicitly linking system object files so we need to strip them
12865         # from the output so that they don't get included in the library
12866         # dependencies.
12867         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'
12868         ;;
12869       *)
12870         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12871           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12872           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'
12873
12874           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12875           hardcode_libdir_separator_CXX=:
12876
12877           # Commands to make compiler produce verbose output that lists
12878           # what "hidden" libraries, object files and flags are used when
12879           # linking a shared library.
12880           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12881
12882         else
12883           # FIXME: insert proper C++ library support
12884           ld_shlibs_CXX=no
12885         fi
12886         ;;
12887     esac
12888     ;;
12889   osf4* | osf5*)
12890     case $cc_basename in
12891       KCC*)
12892         # Kuck and Associates, Inc. (KAI) C++ Compiler
12893
12894         # KCC will only create a shared library if the output file
12895         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12896         # to its proper name (with version) after linking.
12897         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'
12898
12899         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900         hardcode_libdir_separator_CXX=:
12901
12902         # Archives containing C++ object files must be created using
12903         # the KAI C++ compiler.
12904         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12905         ;;
12906       RCC*)
12907         # Rational C++ 2.4.1
12908         # FIXME: insert proper C++ library support
12909         ld_shlibs_CXX=no
12910         ;;
12911       cxx*)
12912         allow_undefined_flag_CXX=' -expect_unresolved \*'
12913         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'
12914         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12915           echo "-hidden">> $lib.exp~
12916           $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~
12917           $rm $lib.exp'
12918
12919         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12920         hardcode_libdir_separator_CXX=:
12921
12922         # Commands to make compiler produce verbose output that lists
12923         # what "hidden" libraries, object files and flags are used when
12924         # linking a shared library.
12925         #
12926         # There doesn't appear to be a way to prevent this compiler from
12927         # explicitly linking system object files so we need to strip them
12928         # from the output so that they don't get included in the library
12929         # dependencies.
12930         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'
12931         ;;
12932       *)
12933         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12934           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12935          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'
12936
12937           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938           hardcode_libdir_separator_CXX=:
12939
12940           # Commands to make compiler produce verbose output that lists
12941           # what "hidden" libraries, object files and flags are used when
12942           # linking a shared library.
12943           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12944
12945         else
12946           # FIXME: insert proper C++ library support
12947           ld_shlibs_CXX=no
12948         fi
12949         ;;
12950     esac
12951     ;;
12952   psos*)
12953     # FIXME: insert proper C++ library support
12954     ld_shlibs_CXX=no
12955     ;;
12956   sco*)
12957     archive_cmds_need_lc_CXX=no
12958     case $cc_basename in
12959       CC*)
12960         # FIXME: insert proper C++ library support
12961         ld_shlibs_CXX=no
12962         ;;
12963       *)
12964         # FIXME: insert proper C++ library support
12965         ld_shlibs_CXX=no
12966         ;;
12967     esac
12968     ;;
12969   sunos4*)
12970     case $cc_basename in
12971       CC*)
12972         # Sun C++ 4.x
12973         # FIXME: insert proper C++ library support
12974         ld_shlibs_CXX=no
12975         ;;
12976       lcc*)
12977         # Lucid
12978         # FIXME: insert proper C++ library support
12979         ld_shlibs_CXX=no
12980         ;;
12981       *)
12982         # FIXME: insert proper C++ library support
12983         ld_shlibs_CXX=no
12984         ;;
12985     esac
12986     ;;
12987   solaris*)
12988     case $cc_basename in
12989       CC*)
12990         # Sun C++ 4.2, 5.x and Centerline C++
12991         no_undefined_flag_CXX=' -zdefs'
12992         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12993         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12994         $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'
12995
12996         hardcode_libdir_flag_spec_CXX='-R$libdir'
12997         hardcode_shlibpath_var_CXX=no
12998         case $host_os in
12999           solaris2.[0-5] | solaris2.[0-5].*) ;;
13000           *)
13001             # The C++ compiler is used as linker so we must use $wl
13002             # flag to pass the commands to the underlying system
13003             # linker. We must also pass each convience library through
13004             # to the system linker between allextract/defaultextract.
13005             # The C++ compiler will combine linker options so we
13006             # cannot just pass the convience library names through
13007             # without $wl.
13008             # Supported since Solaris 2.6 (maybe 2.5.1?)
13009             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'
13010             ;;
13011         esac
13012         link_all_deplibs_CXX=yes
13013
13014         # Commands to make compiler produce verbose output that lists
13015         # what "hidden" libraries, object files and flags are used when
13016         # linking a shared library.
13017         #
13018         # There doesn't appear to be a way to prevent this compiler from
13019         # explicitly linking system object files so we need to strip them
13020         # from the output so that they don't get included in the library
13021         # dependencies.
13022         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'
13023
13024         # Archives containing C++ object files must be created using
13025         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13026         # necessary to make sure instantiated templates are included
13027         # in the archive.
13028         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13029         ;;
13030       gcx*)
13031         # Green Hills C++ Compiler
13032         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13033
13034         # The C++ compiler must be used to create the archive.
13035         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13036         ;;
13037       *)
13038         # GNU C++ compiler with Solaris linker
13039         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13040           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13041           if $CC --version | grep -v '^2\.7' > /dev/null; then
13042             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13043             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13044                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13045
13046             # Commands to make compiler produce verbose output that lists
13047             # what "hidden" libraries, object files and flags are used when
13048             # linking a shared library.
13049             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13050           else
13051             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13052             # platform.
13053             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13054             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13055                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13056
13057             # Commands to make compiler produce verbose output that lists
13058             # what "hidden" libraries, object files and flags are used when
13059             # linking a shared library.
13060             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13061           fi
13062
13063           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13064         fi
13065         ;;
13066     esac
13067     ;;
13068   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13069     archive_cmds_need_lc_CXX=no
13070     ;;
13071   tandem*)
13072     case $cc_basename in
13073       NCC*)
13074         # NonStop-UX NCC 3.20
13075         # FIXME: insert proper C++ library support
13076         ld_shlibs_CXX=no
13077         ;;
13078       *)
13079         # FIXME: insert proper C++ library support
13080         ld_shlibs_CXX=no
13081         ;;
13082     esac
13083     ;;
13084   vxworks*)
13085     # FIXME: insert proper C++ library support
13086     ld_shlibs_CXX=no
13087     ;;
13088   *)
13089     # FIXME: insert proper C++ library support
13090     ld_shlibs_CXX=no
13091     ;;
13092 esac
13093 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13094 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13095 test "$ld_shlibs_CXX" = no && can_build_shared=no
13096
13097 GCC_CXX="$GXX"
13098 LD_CXX="$LD"
13099
13100
13101 cat > conftest.$ac_ext <<EOF
13102 class Foo
13103 {
13104 public:
13105   Foo (void) { a = 0; }
13106 private:
13107   int a;
13108 };
13109 EOF
13110
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112   (eval $ac_compile) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; then
13116   # Parse the compiler output and extract the necessary
13117   # objects, libraries and library flags.
13118
13119   # Sentinel used to keep track of whether or not we are before
13120   # the conftest object file.
13121   pre_test_object_deps_done=no
13122
13123   # The `*' in the case matches for architectures that use `case' in
13124   # $output_verbose_cmd can trigger glob expansion during the loop
13125   # eval without this substitution.
13126   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13127
13128   for p in `eval $output_verbose_link_cmd`; do
13129     case $p in
13130
13131     -L* | -R* | -l*)
13132        # Some compilers place space between "-{L,R}" and the path.
13133        # Remove the space.
13134        if test $p = "-L" \
13135           || test $p = "-R"; then
13136          prev=$p
13137          continue
13138        else
13139          prev=
13140        fi
13141
13142        if test "$pre_test_object_deps_done" = no; then
13143          case $p in
13144          -L* | -R*)
13145            # Internal compiler library paths should come after those
13146            # provided the user.  The postdeps already come after the
13147            # user supplied libs so there is no need to process them.
13148            if test -z "$compiler_lib_search_path_CXX"; then
13149              compiler_lib_search_path_CXX="${prev}${p}"
13150            else
13151              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13152            fi
13153            ;;
13154          # The "-l" case would never come before the object being
13155          # linked, so don't bother handling this case.
13156          esac
13157        else
13158          if test -z "$postdeps_CXX"; then
13159            postdeps_CXX="${prev}${p}"
13160          else
13161            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13162          fi
13163        fi
13164        ;;
13165
13166     *.$objext)
13167        # This assumes that the test object file only shows up
13168        # once in the compiler output.
13169        if test "$p" = "conftest.$objext"; then
13170          pre_test_object_deps_done=yes
13171          continue
13172        fi
13173
13174        if test "$pre_test_object_deps_done" = no; then
13175          if test -z "$predep_objects_CXX"; then
13176            predep_objects_CXX="$p"
13177          else
13178            predep_objects_CXX="$predep_objects_CXX $p"
13179          fi
13180        else
13181          if test -z "$postdep_objects_CXX"; then
13182            postdep_objects_CXX="$p"
13183          else
13184            postdep_objects_CXX="$postdep_objects_CXX $p"
13185          fi
13186        fi
13187        ;;
13188
13189     *) ;; # Ignore the rest.
13190
13191     esac
13192   done
13193
13194   # Clean up.
13195   rm -f a.out a.exe
13196 else
13197   echo "libtool.m4: error: problem compiling CXX test program"
13198 fi
13199
13200 $rm -f confest.$objext
13201
13202 case " $postdeps_CXX " in
13203 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13204 esac
13205
13206 lt_prog_compiler_wl_CXX=
13207 lt_prog_compiler_pic_CXX=
13208 lt_prog_compiler_static_CXX=
13209
13210 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13212
13213   # C++ specific cases for pic, static, wl, etc.
13214   if test "$GXX" = yes; then
13215     lt_prog_compiler_wl_CXX='-Wl,'
13216     lt_prog_compiler_static_CXX='-static'
13217
13218     case $host_os in
13219     aix*)
13220       # All AIX code is PIC.
13221       if test "$host_cpu" = ia64; then
13222         # AIX 5 now supports IA64 processor
13223         lt_prog_compiler_static_CXX='-Bstatic'
13224       fi
13225       ;;
13226     amigaos*)
13227       # FIXME: we need at least 68020 code to build shared libraries, but
13228       # adding the `-m68020' flag to GCC prevents building anything better,
13229       # like `-m68040'.
13230       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13231       ;;
13232     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233       # PIC is the default for these OSes.
13234       ;;
13235     mingw* | os2* | pw32*)
13236       # This hack is so that the source file can tell whether it is being
13237       # built for inclusion in a dll (and should export symbols for example).
13238       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13239       ;;
13240     darwin* | rhapsody*)
13241       # PIC is the default on this platform
13242       # Common symbols not allowed in MH_DYLIB files
13243       lt_prog_compiler_pic_CXX='-fno-common'
13244       ;;
13245     *djgpp*)
13246       # DJGPP does not support shared libraries at all
13247       lt_prog_compiler_pic_CXX=
13248       ;;
13249     sysv4*MP*)
13250       if test -d /usr/nec; then
13251         lt_prog_compiler_pic_CXX=-Kconform_pic
13252       fi
13253       ;;
13254     hpux*)
13255       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13256       # not for PA HP-UX.
13257       case "$host_cpu" in
13258       hppa*64*|ia64*)
13259         ;;
13260       *)
13261         lt_prog_compiler_pic_CXX='-fPIC'
13262         ;;
13263       esac
13264       ;;
13265     *)
13266       lt_prog_compiler_pic_CXX='-fPIC'
13267       ;;
13268     esac
13269   else
13270     case $host_os in
13271       aix4* | aix5*)
13272         # All AIX code is PIC.
13273         if test "$host_cpu" = ia64; then
13274           # AIX 5 now supports IA64 processor
13275           lt_prog_compiler_static_CXX='-Bstatic'
13276         else
13277           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13278         fi
13279         ;;
13280       chorus*)
13281         case $cc_basename in
13282         cxch68*)
13283           # Green Hills C++ Compiler
13284           # _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"
13285           ;;
13286         esac
13287         ;;
13288        darwin*)
13289          # PIC is the default on this platform
13290          # Common symbols not allowed in MH_DYLIB files
13291          case $cc_basename in
13292            xlc*)
13293            lt_prog_compiler_pic_CXX='-qnocommon'
13294            lt_prog_compiler_wl_CXX='-Wl,'
13295            ;;
13296          esac
13297        ;;
13298       dgux*)
13299         case $cc_basename in
13300           ec++*)
13301             lt_prog_compiler_pic_CXX='-KPIC'
13302             ;;
13303           ghcx*)
13304             # Green Hills C++ Compiler
13305             lt_prog_compiler_pic_CXX='-pic'
13306             ;;
13307           *)
13308             ;;
13309         esac
13310         ;;
13311       freebsd* | kfreebsd*-gnu | dragonfly*)
13312         # FreeBSD uses GNU C++
13313         ;;
13314       hpux9* | hpux10* | hpux11*)
13315         case $cc_basename in
13316           CC*)
13317             lt_prog_compiler_wl_CXX='-Wl,'
13318             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13319             if test "$host_cpu" != ia64; then
13320               lt_prog_compiler_pic_CXX='+Z'
13321             fi
13322             ;;
13323           aCC*)
13324             lt_prog_compiler_wl_CXX='-Wl,'
13325             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13326             case "$host_cpu" in
13327             hppa*64*|ia64*)
13328               # +Z the default
13329               ;;
13330             *)
13331               lt_prog_compiler_pic_CXX='+Z'
13332               ;;
13333             esac
13334             ;;
13335           *)
13336             ;;
13337         esac
13338         ;;
13339       irix5* | irix6* | nonstopux*)
13340         case $cc_basename in
13341           CC*)
13342             lt_prog_compiler_wl_CXX='-Wl,'
13343             lt_prog_compiler_static_CXX='-non_shared'
13344             # CC pic flag -KPIC is the default.
13345             ;;
13346           *)
13347             ;;
13348         esac
13349         ;;
13350       linux*)
13351         case $cc_basename in
13352           KCC*)
13353             # KAI C++ Compiler
13354             lt_prog_compiler_wl_CXX='--backend -Wl,'
13355             lt_prog_compiler_pic_CXX='-fPIC'
13356             ;;
13357           icpc* | ecpc*)
13358             # Intel C++
13359             lt_prog_compiler_wl_CXX='-Wl,'
13360             lt_prog_compiler_pic_CXX='-KPIC'
13361             lt_prog_compiler_static_CXX='-static'
13362             ;;
13363           pgCC*)
13364             # Portland Group C++ compiler.
13365             lt_prog_compiler_wl_CXX='-Wl,'
13366             lt_prog_compiler_pic_CXX='-fpic'
13367             lt_prog_compiler_static_CXX='-static'
13368             ;;
13369           cxx*)
13370             # Compaq C++
13371             # Make sure the PIC flag is empty.  It appears that all Alpha
13372             # Linux and Compaq Tru64 Unix objects are PIC.
13373             lt_prog_compiler_pic_CXX=
13374             lt_prog_compiler_static_CXX='-non_shared'
13375             ;;
13376           *)
13377             ;;
13378         esac
13379         ;;
13380       lynxos*)
13381         ;;
13382       m88k*)
13383         ;;
13384       mvs*)
13385         case $cc_basename in
13386           cxx*)
13387             lt_prog_compiler_pic_CXX='-W c,exportall'
13388             ;;
13389           *)
13390             ;;
13391         esac
13392         ;;
13393       netbsd*)
13394         ;;
13395       osf3* | osf4* | osf5*)
13396         case $cc_basename in
13397           KCC*)
13398             lt_prog_compiler_wl_CXX='--backend -Wl,'
13399             ;;
13400           RCC*)
13401             # Rational C++ 2.4.1
13402             lt_prog_compiler_pic_CXX='-pic'
13403             ;;
13404           cxx*)
13405             # Digital/Compaq C++
13406             lt_prog_compiler_wl_CXX='-Wl,'
13407             # Make sure the PIC flag is empty.  It appears that all Alpha
13408             # Linux and Compaq Tru64 Unix objects are PIC.
13409             lt_prog_compiler_pic_CXX=
13410             lt_prog_compiler_static_CXX='-non_shared'
13411             ;;
13412           *)
13413             ;;
13414         esac
13415         ;;
13416       psos*)
13417         ;;
13418       sco*)
13419         case $cc_basename in
13420           CC*)
13421             lt_prog_compiler_pic_CXX='-fPIC'
13422             ;;
13423           *)
13424             ;;
13425         esac
13426         ;;
13427       solaris*)
13428         case $cc_basename in
13429           CC*)
13430             # Sun C++ 4.2, 5.x and Centerline C++
13431             lt_prog_compiler_pic_CXX='-KPIC'
13432             lt_prog_compiler_static_CXX='-Bstatic'
13433             lt_prog_compiler_wl_CXX='-Qoption ld '
13434             ;;
13435           gcx*)
13436             # Green Hills C++ Compiler
13437             lt_prog_compiler_pic_CXX='-PIC'
13438             ;;
13439           *)
13440             ;;
13441         esac
13442         ;;
13443       sunos4*)
13444         case $cc_basename in
13445           CC*)
13446             # Sun C++ 4.x
13447             lt_prog_compiler_pic_CXX='-pic'
13448             lt_prog_compiler_static_CXX='-Bstatic'
13449             ;;
13450           lcc*)
13451             # Lucid
13452             lt_prog_compiler_pic_CXX='-pic'
13453             ;;
13454           *)
13455             ;;
13456         esac
13457         ;;
13458       tandem*)
13459         case $cc_basename in
13460           NCC*)
13461             # NonStop-UX NCC 3.20
13462             lt_prog_compiler_pic_CXX='-KPIC'
13463             ;;
13464           *)
13465             ;;
13466         esac
13467         ;;
13468       unixware*)
13469         ;;
13470       vxworks*)
13471         ;;
13472       *)
13473         lt_prog_compiler_can_build_shared_CXX=no
13474         ;;
13475     esac
13476   fi
13477
13478 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13479 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13480
13481 #
13482 # Check to make sure the PIC flag actually works.
13483 #
13484 if test -n "$lt_prog_compiler_pic_CXX"; then
13485
13486 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13487 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13488 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   lt_prog_compiler_pic_works_CXX=no
13492   ac_outfile=conftest.$ac_objext
13493    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13494    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13495    # Insert the option either (1) after the last *FLAGS variable, or
13496    # (2) before a word containing "conftest.", or (3) at the end.
13497    # Note that $ac_compile itself does not contain backslashes and begins
13498    # with a dollar sign (not a hyphen), so the echo should work correctly.
13499    # The option is referenced via a variable to avoid confusing sed.
13500    lt_compile=`echo "$ac_compile" | $SED \
13501    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13503    -e 's:$: $lt_compiler_flag:'`
13504    (eval echo "\"\$as_me:13504: $lt_compile\"" >&5)
13505    (eval "$lt_compile" 2>conftest.err)
13506    ac_status=$?
13507    cat conftest.err >&5
13508    echo "$as_me:13508: \$? = $ac_status" >&5
13509    if (exit $ac_status) && test -s "$ac_outfile"; then
13510      # The compiler can only warn and ignore the option if not recognized
13511      # So say no if there are warnings other than the usual output.
13512      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13513      $SED '/^$/d' conftest.err >conftest.er2
13514      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13515        lt_prog_compiler_pic_works_CXX=yes
13516      fi
13517    fi
13518    $rm conftest*
13519
13520 fi
13521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13522 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13523
13524 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13525     case $lt_prog_compiler_pic_CXX in
13526      "" | " "*) ;;
13527      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13528      esac
13529 else
13530     lt_prog_compiler_pic_CXX=
13531      lt_prog_compiler_can_build_shared_CXX=no
13532 fi
13533
13534 fi
13535 case "$host_os" in
13536   # For platforms which do not support PIC, -DPIC is meaningless:
13537   *djgpp*)
13538     lt_prog_compiler_pic_CXX=
13539     ;;
13540   *)
13541     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13542     ;;
13543 esac
13544
13545 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13547 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13548   echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550   lt_cv_prog_compiler_c_o_CXX=no
13551    $rm -r conftest 2>/dev/null
13552    mkdir conftest
13553    cd conftest
13554    mkdir out
13555    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13556
13557    lt_compiler_flag="-o out/conftest2.$ac_objext"
13558    # Insert the option either (1) after the last *FLAGS variable, or
13559    # (2) before a word containing "conftest.", or (3) at the end.
13560    # Note that $ac_compile itself does not contain backslashes and begins
13561    # with a dollar sign (not a hyphen), so the echo should work correctly.
13562    lt_compile=`echo "$ac_compile" | $SED \
13563    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13565    -e 's:$: $lt_compiler_flag:'`
13566    (eval echo "\"\$as_me:13566: $lt_compile\"" >&5)
13567    (eval "$lt_compile" 2>out/conftest.err)
13568    ac_status=$?
13569    cat out/conftest.err >&5
13570    echo "$as_me:13570: \$? = $ac_status" >&5
13571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13572    then
13573      # The compiler can only warn and ignore the option if not recognized
13574      # So say no if there are warnings
13575      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13576      $SED '/^$/d' out/conftest.err >out/conftest.er2
13577      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13578        lt_cv_prog_compiler_c_o_CXX=yes
13579      fi
13580    fi
13581    chmod u+w .
13582    $rm conftest*
13583    # SGI C++ compiler will create directory out/ii_files/ for
13584    # template instantiation
13585    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13586    $rm out/* && rmdir out
13587    cd ..
13588    rmdir conftest
13589    $rm conftest*
13590
13591 fi
13592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13594
13595
13596 hard_links="nottested"
13597 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13598   # do not overwrite the value of need_locks provided by the user
13599   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13601   hard_links=yes
13602   $rm conftest*
13603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13604   touch conftest.a
13605   ln conftest.a conftest.b 2>&5 || hard_links=no
13606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13607   echo "$as_me:$LINENO: result: $hard_links" >&5
13608 echo "${ECHO_T}$hard_links" >&6
13609   if test "$hard_links" = no; then
13610     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13612     need_locks=warn
13613   fi
13614 else
13615   need_locks=no
13616 fi
13617
13618 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13620
13621   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13622   case $host_os in
13623   aix4* | aix5*)
13624     # If we're using GNU nm, then we don't want the "-C" option.
13625     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13626     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13627       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'
13628     else
13629       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'
13630     fi
13631     ;;
13632   pw32*)
13633     export_symbols_cmds_CXX="$ltdll_cmds"
13634   ;;
13635   cygwin* | mingw*)
13636     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'
13637   ;;
13638   *)
13639     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13640   ;;
13641   esac
13642
13643 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13644 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13645 test "$ld_shlibs_CXX" = no && can_build_shared=no
13646
13647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13648 if test "$GCC" = yes; then
13649   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13650 fi
13651
13652 #
13653 # Do we need to explicitly link libc?
13654 #
13655 case "x$archive_cmds_need_lc_CXX" in
13656 x|xyes)
13657   # Assume -lc should be added
13658   archive_cmds_need_lc_CXX=yes
13659
13660   if test "$enable_shared" = yes && test "$GCC" = yes; then
13661     case $archive_cmds_CXX in
13662     *'~'*)
13663       # FIXME: we may have to deal with multi-command sequences.
13664       ;;
13665     '$CC '*)
13666       # Test whether the compiler implicitly links with -lc since on some
13667       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13668       # to ld, don't add -lc before -lgcc.
13669       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13670 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13671       $rm conftest*
13672       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13673
13674       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675   (eval $ac_compile) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } 2>conftest.err; then
13679         soname=conftest
13680         lib=conftest
13681         libobjs=conftest.$ac_objext
13682         deplibs=
13683         wl=$lt_prog_compiler_wl_CXX
13684         compiler_flags=-v
13685         linker_flags=-v
13686         verstring=
13687         output_objdir=.
13688         libname=conftest
13689         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13690         allow_undefined_flag_CXX=
13691         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13692   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }
13696         then
13697           archive_cmds_need_lc_CXX=no
13698         else
13699           archive_cmds_need_lc_CXX=yes
13700         fi
13701         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13702       else
13703         cat conftest.err 1>&5
13704       fi
13705       $rm conftest*
13706       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13707 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13708       ;;
13709     esac
13710   fi
13711   ;;
13712 esac
13713
13714 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13716 library_names_spec=
13717 libname_spec='lib$name'
13718 soname_spec=
13719 shrext_cmds=".so"
13720 postinstall_cmds=
13721 postuninstall_cmds=
13722 finish_cmds=
13723 finish_eval=
13724 shlibpath_var=
13725 shlibpath_overrides_runpath=unknown
13726 version_type=none
13727 dynamic_linker="$host_os ld.so"
13728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13729 if test "$GCC" = yes; then
13730   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13731   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13732     # if the path contains ";" then we assume it to be the separator
13733     # otherwise default to the standard path separator (i.e. ":") - it is
13734     # assumed that no part of a normal pathname contains ";" but that should
13735     # okay in the real world where ";" in dirpaths is itself problematic.
13736     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13737   else
13738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13739   fi
13740 else
13741   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13742 fi
13743 need_lib_prefix=unknown
13744 hardcode_into_libs=no
13745
13746 # when you set need_version to no, make sure it does not cause -set_version
13747 # flags to be left without arguments
13748 need_version=unknown
13749
13750 case $host_os in
13751 aix3*)
13752   version_type=linux
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13754   shlibpath_var=LIBPATH
13755
13756   # AIX 3 has no versioning support, so we append a major version to the name.
13757   soname_spec='${libname}${release}${shared_ext}$major'
13758   ;;
13759
13760 aix4* | aix5*)
13761   version_type=linux
13762   need_lib_prefix=no
13763   need_version=no
13764   hardcode_into_libs=yes
13765   if test "$host_cpu" = ia64; then
13766     # AIX 5 supports IA64
13767     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13768     shlibpath_var=LD_LIBRARY_PATH
13769   else
13770     # With GCC up to 2.95.x, collect2 would create an import file
13771     # for dependence libraries.  The import file would start with
13772     # the line `#! .'.  This would cause the generated library to
13773     # depend on `.', always an invalid library.  This was fixed in
13774     # development snapshots of GCC prior to 3.0.
13775     case $host_os in
13776       aix4 | aix4.[01] | aix4.[01].*)
13777       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13778            echo ' yes '
13779            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13780         :
13781       else
13782         can_build_shared=no
13783       fi
13784       ;;
13785     esac
13786     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13787     # soname into executable. Probably we can add versioning support to
13788     # collect2, so additional links can be useful in future.
13789     if test "$aix_use_runtimelinking" = yes; then
13790       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13791       # instead of lib<name>.a to let people know that these are not
13792       # typical AIX shared libraries.
13793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794     else
13795       # We preserve .a as extension for shared libraries through AIX4.2
13796       # and later when we are not doing run time linking.
13797       library_names_spec='${libname}${release}.a $libname.a'
13798       soname_spec='${libname}${release}${shared_ext}$major'
13799     fi
13800     shlibpath_var=LIBPATH
13801   fi
13802   ;;
13803
13804 amigaos*)
13805   library_names_spec='$libname.ixlibrary $libname.a'
13806   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13807   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'
13808   ;;
13809
13810 beos*)
13811   library_names_spec='${libname}${shared_ext}'
13812   dynamic_linker="$host_os ld.so"
13813   shlibpath_var=LIBRARY_PATH
13814   ;;
13815
13816 bsdi[45]*)
13817   version_type=linux
13818   need_version=no
13819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820   soname_spec='${libname}${release}${shared_ext}$major'
13821   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13822   shlibpath_var=LD_LIBRARY_PATH
13823   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13824   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13825   # the default ld.so.conf also contains /usr/contrib/lib and
13826   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13827   # libtool to hard-code these into programs
13828   ;;
13829
13830 cygwin* | mingw* | pw32*)
13831   version_type=windows
13832   shrext_cmds=".dll"
13833   need_version=no
13834   need_lib_prefix=no
13835
13836   case $GCC,$host_os in
13837   yes,cygwin* | yes,mingw* | yes,pw32*)
13838     library_names_spec='$libname.dll.a'
13839     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13840     postinstall_cmds='base_file=`basename \${file}`~
13841       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13842       dldir=$destdir/`dirname \$dlpath`~
13843       test -d \$dldir || mkdir -p \$dldir~
13844       $install_prog $dir/$dlname \$dldir/$dlname'
13845     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13846       dlpath=$dir/\$dldll~
13847        $rm \$dlpath'
13848     shlibpath_overrides_runpath=yes
13849
13850     case $host_os in
13851     cygwin*)
13852       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13853       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13854       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13855       ;;
13856     mingw*)
13857       # MinGW DLLs use traditional 'lib' prefix
13858       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13859       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13860       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13861         # It is most probably a Windows format PATH printed by
13862         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13863         # path with ; separators, and with drive letters. We can handle the
13864         # drive letters (cygwin fileutils understands them), so leave them,
13865         # especially as we might pass files found there to a mingw objdump,
13866         # which wouldn't understand a cygwinified path. Ahh.
13867         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13868       else
13869         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13870       fi
13871       ;;
13872     pw32*)
13873       # pw32 DLLs use 'pw' prefix rather than 'lib'
13874       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13875       ;;
13876     esac
13877     ;;
13878
13879   *)
13880     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13881     ;;
13882   esac
13883   dynamic_linker='Win32 ld.exe'
13884   # FIXME: first we should search . and the directory the executable is in
13885   shlibpath_var=PATH
13886   ;;
13887
13888 darwin* | rhapsody*)
13889   dynamic_linker="$host_os dyld"
13890   version_type=darwin
13891   need_lib_prefix=no
13892   need_version=no
13893   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13894   soname_spec='${libname}${release}${major}$shared_ext'
13895   shlibpath_overrides_runpath=yes
13896   shlibpath_var=DYLD_LIBRARY_PATH
13897   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13898   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13899   if test "$GCC" = yes; then
13900     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"`
13901   else
13902     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13903   fi
13904   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13905   ;;
13906
13907 dgux*)
13908   version_type=linux
13909   need_lib_prefix=no
13910   need_version=no
13911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   shlibpath_var=LD_LIBRARY_PATH
13914   ;;
13915
13916 freebsd1*)
13917   dynamic_linker=no
13918   ;;
13919
13920 kfreebsd*-gnu)
13921   version_type=linux
13922   need_lib_prefix=no
13923   need_version=no
13924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13925   soname_spec='${libname}${release}${shared_ext}$major'
13926   shlibpath_var=LD_LIBRARY_PATH
13927   shlibpath_overrides_runpath=no
13928   hardcode_into_libs=yes
13929   dynamic_linker='GNU ld.so'
13930   ;;
13931
13932 freebsd* | dragonfly*)
13933   # DragonFly does not have aout.  When/if they implement a new
13934   # versioning mechanism, adjust this.
13935   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13936   version_type=freebsd-$objformat
13937   case $version_type in
13938     freebsd-elf*)
13939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13940       need_version=no
13941       need_lib_prefix=no
13942       ;;
13943     freebsd-*)
13944       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13945       need_version=yes
13946       ;;
13947   esac
13948   shlibpath_var=LD_LIBRARY_PATH
13949   case $host_os in
13950   freebsd2*)
13951     shlibpath_overrides_runpath=yes
13952     ;;
13953   freebsd3.[01]* | freebsdelf3.[01]*)
13954     shlibpath_overrides_runpath=yes
13955     hardcode_into_libs=yes
13956     ;;
13957   *) # from 3.2 on
13958     shlibpath_overrides_runpath=no
13959     hardcode_into_libs=yes
13960     ;;
13961   esac
13962   ;;
13963
13964 gnu*)
13965   version_type=linux
13966   need_lib_prefix=no
13967   need_version=no
13968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13969   soname_spec='${libname}${release}${shared_ext}$major'
13970   shlibpath_var=LD_LIBRARY_PATH
13971   hardcode_into_libs=yes
13972   ;;
13973
13974 hpux9* | hpux10* | hpux11*)
13975   # Give a soname corresponding to the major version so that dld.sl refuses to
13976   # link against other versions.
13977   version_type=sunos
13978   need_lib_prefix=no
13979   need_version=no
13980   case "$host_cpu" in
13981   ia64*)
13982     shrext_cmds='.so'
13983     hardcode_into_libs=yes
13984     dynamic_linker="$host_os dld.so"
13985     shlibpath_var=LD_LIBRARY_PATH
13986     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988     soname_spec='${libname}${release}${shared_ext}$major'
13989     if test "X$HPUX_IA64_MODE" = X32; then
13990       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13991     else
13992       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13993     fi
13994     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13995     ;;
13996    hppa*64*)
13997      shrext_cmds='.sl'
13998      hardcode_into_libs=yes
13999      dynamic_linker="$host_os dld.sl"
14000      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14001      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003      soname_spec='${libname}${release}${shared_ext}$major'
14004      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14005      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14006      ;;
14007    *)
14008     shrext_cmds='.sl'
14009     dynamic_linker="$host_os dld.sl"
14010     shlibpath_var=SHLIB_PATH
14011     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013     soname_spec='${libname}${release}${shared_ext}$major'
14014     ;;
14015   esac
14016   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14017   postinstall_cmds='chmod 555 $lib'
14018   ;;
14019
14020 irix5* | irix6* | nonstopux*)
14021   case $host_os in
14022     nonstopux*) version_type=nonstopux ;;
14023     *)
14024         if test "$lt_cv_prog_gnu_ld" = yes; then
14025                 version_type=linux
14026         else
14027                 version_type=irix
14028         fi ;;
14029   esac
14030   need_lib_prefix=no
14031   need_version=no
14032   soname_spec='${libname}${release}${shared_ext}$major'
14033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14034   case $host_os in
14035   irix5* | nonstopux*)
14036     libsuff= shlibsuff=
14037     ;;
14038   *)
14039     case $LD in # libtool.m4 will add one of these switches to LD
14040     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14041       libsuff= shlibsuff= libmagic=32-bit;;
14042     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14043       libsuff=32 shlibsuff=N32 libmagic=N32;;
14044     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14045       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14046     *) libsuff= shlibsuff= libmagic=never-match;;
14047     esac
14048     ;;
14049   esac
14050   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14051   shlibpath_overrides_runpath=no
14052   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14053   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14054   hardcode_into_libs=yes
14055   ;;
14056
14057 # No shared lib support for Linux oldld, aout, or coff.
14058 linux*oldld* | linux*aout* | linux*coff*)
14059   dynamic_linker=no
14060   ;;
14061
14062 # This must be Linux ELF.
14063 linux*)
14064   version_type=linux
14065   need_lib_prefix=no
14066   need_version=no
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068   soname_spec='${libname}${release}${shared_ext}$major'
14069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14070   shlibpath_var=LD_LIBRARY_PATH
14071   shlibpath_overrides_runpath=no
14072   # This implies no fast_install, which is unacceptable.
14073   # Some rework will be needed to allow for fast_install
14074   # before this can be enabled.
14075   hardcode_into_libs=yes
14076
14077   # Append ld.so.conf contents to the search path
14078   if test -f /etc/ld.so.conf; then
14079     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' ' '`
14080     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14081   fi
14082
14083   # We used to test for /lib/ld.so.1 and disable shared libraries on
14084   # powerpc, because MkLinux only supported shared libraries with the
14085   # GNU dynamic linker.  Since this was broken with cross compilers,
14086   # most powerpc-linux boxes support dynamic linking these days and
14087   # people can always --disable-shared, the test was removed, and we
14088   # assume the GNU/Linux dynamic linker is in use.
14089   dynamic_linker='GNU/Linux ld.so'
14090   ;;
14091
14092 knetbsd*-gnu)
14093   version_type=linux
14094   need_lib_prefix=no
14095   need_version=no
14096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14097   soname_spec='${libname}${release}${shared_ext}$major'
14098   shlibpath_var=LD_LIBRARY_PATH
14099   shlibpath_overrides_runpath=no
14100   hardcode_into_libs=yes
14101   dynamic_linker='GNU ld.so'
14102   ;;
14103
14104 netbsd*)
14105   version_type=sunos
14106   need_lib_prefix=no
14107   need_version=no
14108   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14110     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14111     dynamic_linker='NetBSD (a.out) ld.so'
14112   else
14113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14114     soname_spec='${libname}${release}${shared_ext}$major'
14115     dynamic_linker='NetBSD ld.elf_so'
14116   fi
14117   shlibpath_var=LD_LIBRARY_PATH
14118   shlibpath_overrides_runpath=yes
14119   hardcode_into_libs=yes
14120   ;;
14121
14122 newsos6)
14123   version_type=linux
14124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125   shlibpath_var=LD_LIBRARY_PATH
14126   shlibpath_overrides_runpath=yes
14127   ;;
14128
14129 nto-qnx*)
14130   version_type=linux
14131   need_lib_prefix=no
14132   need_version=no
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134   soname_spec='${libname}${release}${shared_ext}$major'
14135   shlibpath_var=LD_LIBRARY_PATH
14136   shlibpath_overrides_runpath=yes
14137   ;;
14138
14139 openbsd*)
14140   version_type=sunos
14141   need_lib_prefix=no
14142   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14143   case $host_os in
14144     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14145     *)                         need_version=no  ;;
14146   esac
14147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14149   shlibpath_var=LD_LIBRARY_PATH
14150   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14151     case $host_os in
14152       openbsd2.[89] | openbsd2.[89].*)
14153         shlibpath_overrides_runpath=no
14154         ;;
14155       *)
14156         shlibpath_overrides_runpath=yes
14157         ;;
14158       esac
14159   else
14160     shlibpath_overrides_runpath=yes
14161   fi
14162   ;;
14163
14164 os2*)
14165   libname_spec='$name'
14166   shrext_cmds=".dll"
14167   need_lib_prefix=no
14168   library_names_spec='$libname${shared_ext} $libname.a'
14169   dynamic_linker='OS/2 ld.exe'
14170   shlibpath_var=LIBPATH
14171   ;;
14172
14173 osf3* | osf4* | osf5*)
14174   version_type=osf
14175   need_lib_prefix=no
14176   need_version=no
14177   soname_spec='${libname}${release}${shared_ext}$major'
14178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179   shlibpath_var=LD_LIBRARY_PATH
14180   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14181   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14182   ;;
14183
14184 sco3.2v5*)
14185   version_type=osf
14186   soname_spec='${libname}${release}${shared_ext}$major'
14187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188   shlibpath_var=LD_LIBRARY_PATH
14189   ;;
14190
14191 solaris*)
14192   version_type=linux
14193   need_lib_prefix=no
14194   need_version=no
14195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196   soname_spec='${libname}${release}${shared_ext}$major'
14197   shlibpath_var=LD_LIBRARY_PATH
14198   shlibpath_overrides_runpath=yes
14199   hardcode_into_libs=yes
14200   # ldd complains unless libraries are executable
14201   postinstall_cmds='chmod +x $lib'
14202   ;;
14203
14204 sunos4*)
14205   version_type=sunos
14206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14207   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14208   shlibpath_var=LD_LIBRARY_PATH
14209   shlibpath_overrides_runpath=yes
14210   if test "$with_gnu_ld" = yes; then
14211     need_lib_prefix=no
14212   fi
14213   need_version=yes
14214   ;;
14215
14216 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14217   version_type=linux
14218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219   soname_spec='${libname}${release}${shared_ext}$major'
14220   shlibpath_var=LD_LIBRARY_PATH
14221   case $host_vendor in
14222     sni)
14223       shlibpath_overrides_runpath=no
14224       need_lib_prefix=no
14225       export_dynamic_flag_spec='${wl}-Blargedynsym'
14226       runpath_var=LD_RUN_PATH
14227       ;;
14228     siemens)
14229       need_lib_prefix=no
14230       ;;
14231     motorola)
14232       need_lib_prefix=no
14233       need_version=no
14234       shlibpath_overrides_runpath=no
14235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14236       ;;
14237   esac
14238   ;;
14239
14240 sysv4*MP*)
14241   if test -d /usr/nec ;then
14242     version_type=linux
14243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14244     soname_spec='$libname${shared_ext}.$major'
14245     shlibpath_var=LD_LIBRARY_PATH
14246   fi
14247   ;;
14248
14249 uts4*)
14250   version_type=linux
14251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252   soname_spec='${libname}${release}${shared_ext}$major'
14253   shlibpath_var=LD_LIBRARY_PATH
14254   ;;
14255
14256 *)
14257   dynamic_linker=no
14258   ;;
14259 esac
14260 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14261 echo "${ECHO_T}$dynamic_linker" >&6
14262 test "$dynamic_linker" = no && can_build_shared=no
14263
14264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14266 hardcode_action_CXX=
14267 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14268    test -n "$runpath_var_CXX" || \
14269    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14270
14271   # We can hardcode non-existant directories.
14272   if test "$hardcode_direct_CXX" != no &&
14273      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14274      # have to relink, otherwise we might link with an installed library
14275      # when we should be linking with a yet-to-be-installed one
14276      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14277      test "$hardcode_minus_L_CXX" != no; then
14278     # Linking always hardcodes the temporary library directory.
14279     hardcode_action_CXX=relink
14280   else
14281     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14282     hardcode_action_CXX=immediate
14283   fi
14284 else
14285   # We cannot hardcode anything, or else we can only hardcode existing
14286   # directories.
14287   hardcode_action_CXX=unsupported
14288 fi
14289 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14290 echo "${ECHO_T}$hardcode_action_CXX" >&6
14291
14292 if test "$hardcode_action_CXX" = relink; then
14293   # Fast installation is not supported
14294   enable_fast_install=no
14295 elif test "$shlibpath_overrides_runpath" = yes ||
14296      test "$enable_shared" = no; then
14297   # Fast installation is not necessary
14298   enable_fast_install=needless
14299 fi
14300
14301 striplib=
14302 old_striplib=
14303 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14305 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14306   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14307   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14308   echo "$as_me:$LINENO: result: yes" >&5
14309 echo "${ECHO_T}yes" >&6
14310 else
14311 # FIXME - insert some real tests, host_os isn't really good enough
14312   case $host_os in
14313    darwin*)
14314        if test -n "$STRIP" ; then
14315          striplib="$STRIP -x"
14316          echo "$as_me:$LINENO: result: yes" >&5
14317 echo "${ECHO_T}yes" >&6
14318        else
14319   echo "$as_me:$LINENO: result: no" >&5
14320 echo "${ECHO_T}no" >&6
14321 fi
14322        ;;
14323    *)
14324   echo "$as_me:$LINENO: result: no" >&5
14325 echo "${ECHO_T}no" >&6
14326     ;;
14327   esac
14328 fi
14329
14330 if test "x$enable_dlopen" != xyes; then
14331   enable_dlopen=unknown
14332   enable_dlopen_self=unknown
14333   enable_dlopen_self_static=unknown
14334 else
14335   lt_cv_dlopen=no
14336   lt_cv_dlopen_libs=
14337
14338   case $host_os in
14339   beos*)
14340     lt_cv_dlopen="load_add_on"
14341     lt_cv_dlopen_libs=
14342     lt_cv_dlopen_self=yes
14343     ;;
14344
14345   mingw* | pw32*)
14346     lt_cv_dlopen="LoadLibrary"
14347     lt_cv_dlopen_libs=
14348    ;;
14349
14350   cygwin*)
14351     lt_cv_dlopen="dlopen"
14352     lt_cv_dlopen_libs=
14353    ;;
14354
14355   darwin*)
14356   # if libdl is installed we need to link against it
14357     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   ac_check_lib_save_LIBS=$LIBS
14363 LIBS="-ldl  $LIBS"
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370
14371 /* Override any gcc2 internal prototype to avoid an error.  */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 /* We use char because int might match the return type of a gcc2
14376    builtin and then its argument prototype would still apply.  */
14377 char dlopen ();
14378 int
14379 main ()
14380 {
14381 dlopen ();
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388   (eval $ac_link) 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -z "$ac_cxx_werror_flag"
14396                          || test ! -s conftest.err'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; } &&
14402          { ac_try='test -s conftest$ac_exeext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_cv_lib_dl_dlopen=yes
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_cv_lib_dl_dlopen=no
14414 fi
14415 rm -f conftest.err conftest.$ac_objext \
14416       conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14418 fi
14419 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14420 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14421 if test $ac_cv_lib_dl_dlopen = yes; then
14422   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14423 else
14424
14425     lt_cv_dlopen="dyld"
14426     lt_cv_dlopen_libs=
14427     lt_cv_dlopen_self=yes
14428
14429 fi
14430
14431    ;;
14432
14433   *)
14434     echo "$as_me:$LINENO: checking for shl_load" >&5
14435 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14436 if test "${ac_cv_func_shl_load+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14447 #define shl_load innocuous_shl_load
14448
14449 /* System header to define __stub macros and hopefully few prototypes,
14450     which can conflict with char shl_load (); below.
14451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14452     <limits.h> exists even on freestanding compilers.  */
14453
14454 #ifdef __STDC__
14455 # include <limits.h>
14456 #else
14457 # include <assert.h>
14458 #endif
14459
14460 #undef shl_load
14461
14462 /* Override any gcc2 internal prototype to avoid an error.  */
14463 #ifdef __cplusplus
14464 extern "C"
14465 {
14466 #endif
14467 /* We use char because int might match the return type of a gcc2
14468    builtin and then its argument prototype would still apply.  */
14469 char shl_load ();
14470 /* The GNU C library defines this for functions which it implements
14471     to always fail with ENOSYS.  Some functions are actually named
14472     something starting with __ and the normal name is an alias.  */
14473 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14474 choke me
14475 #else
14476 char (*f) () = shl_load;
14477 #endif
14478 #ifdef __cplusplus
14479 }
14480 #endif
14481
14482 int
14483 main ()
14484 {
14485 return f != shl_load;
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492   (eval $ac_link) 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } &&
14499          { ac_try='test -z "$ac_cxx_werror_flag"
14500                          || test ! -s conftest.err'
14501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502   (eval $ac_try) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; } &&
14506          { ac_try='test -s conftest$ac_exeext'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_cv_func_shl_load=yes
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ac_cv_func_shl_load=no
14518 fi
14519 rm -f conftest.err conftest.$ac_objext \
14520       conftest$ac_exeext conftest.$ac_ext
14521 fi
14522 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14523 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14524 if test $ac_cv_func_shl_load = yes; then
14525   lt_cv_dlopen="shl_load"
14526 else
14527   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14528 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14529 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-ldld  $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h.  */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h.  */
14540
14541 /* Override any gcc2 internal prototype to avoid an error.  */
14542 #ifdef __cplusplus
14543 extern "C"
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546    builtin and then its argument prototype would still apply.  */
14547 char shl_load ();
14548 int
14549 main ()
14550 {
14551 shl_load ();
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558   (eval $ac_link) 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_cxx_werror_flag"
14566                          || test ! -s conftest.err'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest$ac_exeext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ac_cv_lib_dld_shl_load=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 ac_cv_lib_dld_shl_load=no
14584 fi
14585 rm -f conftest.err conftest.$ac_objext \
14586       conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14588 fi
14589 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14590 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14591 if test $ac_cv_lib_dld_shl_load = yes; then
14592   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14593 else
14594   echo "$as_me:$LINENO: checking for dlopen" >&5
14595 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14596 if test "${ac_cv_func_dlopen+set}" = set; then
14597   echo $ECHO_N "(cached) $ECHO_C" >&6
14598 else
14599   cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14607 #define dlopen innocuous_dlopen
14608
14609 /* System header to define __stub macros and hopefully few prototypes,
14610     which can conflict with char dlopen (); below.
14611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14612     <limits.h> exists even on freestanding compilers.  */
14613
14614 #ifdef __STDC__
14615 # include <limits.h>
14616 #else
14617 # include <assert.h>
14618 #endif
14619
14620 #undef dlopen
14621
14622 /* Override any gcc2 internal prototype to avoid an error.  */
14623 #ifdef __cplusplus
14624 extern "C"
14625 {
14626 #endif
14627 /* We use char because int might match the return type of a gcc2
14628    builtin and then its argument prototype would still apply.  */
14629 char dlopen ();
14630 /* The GNU C library defines this for functions which it implements
14631     to always fail with ENOSYS.  Some functions are actually named
14632     something starting with __ and the normal name is an alias.  */
14633 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14634 choke me
14635 #else
14636 char (*f) () = dlopen;
14637 #endif
14638 #ifdef __cplusplus
14639 }
14640 #endif
14641
14642 int
14643 main ()
14644 {
14645 return f != dlopen;
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652   (eval $ac_link) 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -z "$ac_cxx_werror_flag"
14660                          || test ! -s conftest.err'
14661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662   (eval $ac_try) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; } &&
14666          { ac_try='test -s conftest$ac_exeext'
14667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668   (eval $ac_try) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; }; then
14672   ac_cv_func_dlopen=yes
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677 ac_cv_func_dlopen=no
14678 fi
14679 rm -f conftest.err conftest.$ac_objext \
14680       conftest$ac_exeext conftest.$ac_ext
14681 fi
14682 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14683 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14684 if test $ac_cv_func_dlopen = yes; then
14685   lt_cv_dlopen="dlopen"
14686 else
14687   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   ac_check_lib_save_LIBS=$LIBS
14693 LIBS="-ldl  $LIBS"
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h.  */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h.  */
14700
14701 /* Override any gcc2 internal prototype to avoid an error.  */
14702 #ifdef __cplusplus
14703 extern "C"
14704 #endif
14705 /* We use char because int might match the return type of a gcc2
14706    builtin and then its argument prototype would still apply.  */
14707 char dlopen ();
14708 int
14709 main ()
14710 {
14711 dlopen ();
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718   (eval $ac_link) 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } &&
14725          { ac_try='test -z "$ac_cxx_werror_flag"
14726                          || test ! -s conftest.err'
14727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728   (eval $ac_try) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; } &&
14732          { ac_try='test -s conftest$ac_exeext'
14733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734   (eval $ac_try) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; }; then
14738   ac_cv_lib_dl_dlopen=yes
14739 else
14740   echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ac_cv_lib_dl_dlopen=no
14744 fi
14745 rm -f conftest.err conftest.$ac_objext \
14746       conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14748 fi
14749 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14751 if test $ac_cv_lib_dl_dlopen = yes; then
14752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14753 else
14754   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14755 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lsvld  $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767
14768 /* Override any gcc2 internal prototype to avoid an error.  */
14769 #ifdef __cplusplus
14770 extern "C"
14771 #endif
14772 /* We use char because int might match the return type of a gcc2
14773    builtin and then its argument prototype would still apply.  */
14774 char dlopen ();
14775 int
14776 main ()
14777 {
14778 dlopen ();
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext conftest$ac_exeext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14785   (eval $ac_link) 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } &&
14792          { ac_try='test -z "$ac_cxx_werror_flag"
14793                          || test ! -s conftest.err'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; } &&
14799          { ac_try='test -s conftest$ac_exeext'
14800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801   (eval $ac_try) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; }; then
14805   ac_cv_lib_svld_dlopen=yes
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 ac_cv_lib_svld_dlopen=no
14811 fi
14812 rm -f conftest.err conftest.$ac_objext \
14813       conftest$ac_exeext conftest.$ac_ext
14814 LIBS=$ac_check_lib_save_LIBS
14815 fi
14816 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14817 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14818 if test $ac_cv_lib_svld_dlopen = yes; then
14819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14820 else
14821   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14822 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   ac_check_lib_save_LIBS=$LIBS
14827 LIBS="-ldld  $LIBS"
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834
14835 /* Override any gcc2 internal prototype to avoid an error.  */
14836 #ifdef __cplusplus
14837 extern "C"
14838 #endif
14839 /* We use char because int might match the return type of a gcc2
14840    builtin and then its argument prototype would still apply.  */
14841 char dld_link ();
14842 int
14843 main ()
14844 {
14845 dld_link ();
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852   (eval $ac_link) 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -z "$ac_cxx_werror_flag"
14860                          || test ! -s conftest.err'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest$ac_exeext'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }; then
14872   ac_cv_lib_dld_dld_link=yes
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 ac_cv_lib_dld_dld_link=no
14878 fi
14879 rm -f conftest.err conftest.$ac_objext \
14880       conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14882 fi
14883 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14884 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14885 if test $ac_cv_lib_dld_dld_link = yes; then
14886   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14887 fi
14888
14889
14890 fi
14891
14892
14893 fi
14894
14895
14896 fi
14897
14898
14899 fi
14900
14901
14902 fi
14903
14904     ;;
14905   esac
14906
14907   if test "x$lt_cv_dlopen" != xno; then
14908     enable_dlopen=yes
14909   else
14910     enable_dlopen=no
14911   fi
14912
14913   case $lt_cv_dlopen in
14914   dlopen)
14915     save_CPPFLAGS="$CPPFLAGS"
14916     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14917
14918     save_LDFLAGS="$LDFLAGS"
14919     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14920
14921     save_LIBS="$LIBS"
14922     LIBS="$lt_cv_dlopen_libs $LIBS"
14923
14924     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14925 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14926 if test "${lt_cv_dlopen_self+set}" = set; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929           if test "$cross_compiling" = yes; then :
14930   lt_cv_dlopen_self=cross
14931 else
14932   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14933   lt_status=$lt_dlunknown
14934   cat > conftest.$ac_ext <<EOF
14935 #line 14935 "configure"
14936 #include "confdefs.h"
14937
14938 #if HAVE_DLFCN_H
14939 #include <dlfcn.h>
14940 #endif
14941
14942 #include <stdio.h>
14943
14944 #ifdef RTLD_GLOBAL
14945 #  define LT_DLGLOBAL           RTLD_GLOBAL
14946 #else
14947 #  ifdef DL_GLOBAL
14948 #    define LT_DLGLOBAL         DL_GLOBAL
14949 #  else
14950 #    define LT_DLGLOBAL         0
14951 #  endif
14952 #endif
14953
14954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14955    find out it does not work in some platform. */
14956 #ifndef LT_DLLAZY_OR_NOW
14957 #  ifdef RTLD_LAZY
14958 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14959 #  else
14960 #    ifdef DL_LAZY
14961 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14962 #    else
14963 #      ifdef RTLD_NOW
14964 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14965 #      else
14966 #        ifdef DL_NOW
14967 #          define LT_DLLAZY_OR_NOW      DL_NOW
14968 #        else
14969 #          define LT_DLLAZY_OR_NOW      0
14970 #        endif
14971 #      endif
14972 #    endif
14973 #  endif
14974 #endif
14975
14976 #ifdef __cplusplus
14977 extern "C" void exit (int);
14978 #endif
14979
14980 void fnord() { int i=42;}
14981 int main ()
14982 {
14983   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14984   int status = $lt_dlunknown;
14985
14986   if (self)
14987     {
14988       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14989       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14990       /* dlclose (self); */
14991     }
14992
14993     exit (status);
14994 }
14995 EOF
14996   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997   (eval $ac_link) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15001     (./conftest; exit; ) 2>/dev/null
15002     lt_status=$?
15003     case x$lt_status in
15004       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15005       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15006       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15007     esac
15008   else :
15009     # compilation failed
15010     lt_cv_dlopen_self=no
15011   fi
15012 fi
15013 rm -fr conftest*
15014
15015
15016 fi
15017 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15018 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15019
15020     if test "x$lt_cv_dlopen_self" = xyes; then
15021       LDFLAGS="$LDFLAGS $link_static_flag"
15022       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15023 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15024 if test "${lt_cv_dlopen_self_static+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027           if test "$cross_compiling" = yes; then :
15028   lt_cv_dlopen_self_static=cross
15029 else
15030   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15031   lt_status=$lt_dlunknown
15032   cat > conftest.$ac_ext <<EOF
15033 #line 15033 "configure"
15034 #include "confdefs.h"
15035
15036 #if HAVE_DLFCN_H
15037 #include <dlfcn.h>
15038 #endif
15039
15040 #include <stdio.h>
15041
15042 #ifdef RTLD_GLOBAL
15043 #  define LT_DLGLOBAL           RTLD_GLOBAL
15044 #else
15045 #  ifdef DL_GLOBAL
15046 #    define LT_DLGLOBAL         DL_GLOBAL
15047 #  else
15048 #    define LT_DLGLOBAL         0
15049 #  endif
15050 #endif
15051
15052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15053    find out it does not work in some platform. */
15054 #ifndef LT_DLLAZY_OR_NOW
15055 #  ifdef RTLD_LAZY
15056 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15057 #  else
15058 #    ifdef DL_LAZY
15059 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15060 #    else
15061 #      ifdef RTLD_NOW
15062 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15063 #      else
15064 #        ifdef DL_NOW
15065 #          define LT_DLLAZY_OR_NOW      DL_NOW
15066 #        else
15067 #          define LT_DLLAZY_OR_NOW      0
15068 #        endif
15069 #      endif
15070 #    endif
15071 #  endif
15072 #endif
15073
15074 #ifdef __cplusplus
15075 extern "C" void exit (int);
15076 #endif
15077
15078 void fnord() { int i=42;}
15079 int main ()
15080 {
15081   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15082   int status = $lt_dlunknown;
15083
15084   if (self)
15085     {
15086       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15087       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15088       /* dlclose (self); */
15089     }
15090
15091     exit (status);
15092 }
15093 EOF
15094   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095   (eval $ac_link) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15099     (./conftest; exit; ) 2>/dev/null
15100     lt_status=$?
15101     case x$lt_status in
15102       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15103       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15104       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15105     esac
15106   else :
15107     # compilation failed
15108     lt_cv_dlopen_self_static=no
15109   fi
15110 fi
15111 rm -fr conftest*
15112
15113
15114 fi
15115 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15116 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15117     fi
15118
15119     CPPFLAGS="$save_CPPFLAGS"
15120     LDFLAGS="$save_LDFLAGS"
15121     LIBS="$save_LIBS"
15122     ;;
15123   esac
15124
15125   case $lt_cv_dlopen_self in
15126   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15127   *) enable_dlopen_self=unknown ;;
15128   esac
15129
15130   case $lt_cv_dlopen_self_static in
15131   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15132   *) enable_dlopen_self_static=unknown ;;
15133   esac
15134 fi
15135
15136
15137 # The else clause should only fire when bootstrapping the
15138 # libtool distribution, otherwise you forgot to ship ltmain.sh
15139 # with your package, and you will get complaints that there are
15140 # no rules to generate ltmain.sh.
15141 if test -f "$ltmain"; then
15142   # See if we are running on zsh, and set the options which allow our commands through
15143   # without removal of \ escapes.
15144   if test -n "${ZSH_VERSION+set}" ; then
15145     setopt NO_GLOB_SUBST
15146   fi
15147   # Now quote all the things that may contain metacharacters while being
15148   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15149   # variables and quote the copies for generation of the libtool script.
15150   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15151     SED SHELL STRIP \
15152     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15153     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15154     deplibs_check_method reload_flag reload_cmds need_locks \
15155     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15156     lt_cv_sys_global_symbol_to_c_name_address \
15157     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15158     old_postinstall_cmds old_postuninstall_cmds \
15159     compiler_CXX \
15160     CC_CXX \
15161     LD_CXX \
15162     lt_prog_compiler_wl_CXX \
15163     lt_prog_compiler_pic_CXX \
15164     lt_prog_compiler_static_CXX \
15165     lt_prog_compiler_no_builtin_flag_CXX \
15166     export_dynamic_flag_spec_CXX \
15167     thread_safe_flag_spec_CXX \
15168     whole_archive_flag_spec_CXX \
15169     enable_shared_with_static_runtimes_CXX \
15170     old_archive_cmds_CXX \
15171     old_archive_from_new_cmds_CXX \
15172     predep_objects_CXX \
15173     postdep_objects_CXX \
15174     predeps_CXX \
15175     postdeps_CXX \
15176     compiler_lib_search_path_CXX \
15177     archive_cmds_CXX \
15178     archive_expsym_cmds_CXX \
15179     postinstall_cmds_CXX \
15180     postuninstall_cmds_CXX \
15181     old_archive_from_expsyms_cmds_CXX \
15182     allow_undefined_flag_CXX \
15183     no_undefined_flag_CXX \
15184     export_symbols_cmds_CXX \
15185     hardcode_libdir_flag_spec_CXX \
15186     hardcode_libdir_flag_spec_ld_CXX \
15187     hardcode_libdir_separator_CXX \
15188     hardcode_automatic_CXX \
15189     module_cmds_CXX \
15190     module_expsym_cmds_CXX \
15191     lt_cv_prog_compiler_c_o_CXX \
15192     exclude_expsyms_CXX \
15193     include_expsyms_CXX; do
15194
15195     case $var in
15196     old_archive_cmds_CXX | \
15197     old_archive_from_new_cmds_CXX | \
15198     archive_cmds_CXX | \
15199     archive_expsym_cmds_CXX | \
15200     module_cmds_CXX | \
15201     module_expsym_cmds_CXX | \
15202     old_archive_from_expsyms_cmds_CXX | \
15203     export_symbols_cmds_CXX | \
15204     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15205     postinstall_cmds | postuninstall_cmds | \
15206     old_postinstall_cmds | old_postuninstall_cmds | \
15207     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15208       # Double-quote double-evaled strings.
15209       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15210       ;;
15211     *)
15212       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15213       ;;
15214     esac
15215   done
15216
15217   case $lt_echo in
15218   *'\$0 --fallback-echo"')
15219     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15220     ;;
15221   esac
15222
15223 cfgfile="$ofile"
15224
15225   cat <<__EOF__ >> "$cfgfile"
15226 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15227
15228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15229
15230 # Shell to use when invoking shell scripts.
15231 SHELL=$lt_SHELL
15232
15233 # Whether or not to build shared libraries.
15234 build_libtool_libs=$enable_shared
15235
15236 # Whether or not to build static libraries.
15237 build_old_libs=$enable_static
15238
15239 # Whether or not to add -lc for building shared libraries.
15240 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15241
15242 # Whether or not to disallow shared libs when runtime libs are static
15243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15244
15245 # Whether or not to optimize for fast installation.
15246 fast_install=$enable_fast_install
15247
15248 # The host system.
15249 host_alias=$host_alias
15250 host=$host
15251 host_os=$host_os
15252
15253 # The build system.
15254 build_alias=$build_alias
15255 build=$build
15256 build_os=$build_os
15257
15258 # An echo program that does not interpret backslashes.
15259 echo=$lt_echo
15260
15261 # The archiver.
15262 AR=$lt_AR
15263 AR_FLAGS=$lt_AR_FLAGS
15264
15265 # A C compiler.
15266 LTCC=$lt_LTCC
15267
15268 # A language-specific compiler.
15269 CC=$lt_compiler_CXX
15270
15271 # Is the compiler the GNU C compiler?
15272 with_gcc=$GCC_CXX
15273
15274 # An ERE matcher.
15275 EGREP=$lt_EGREP
15276
15277 # The linker used to build libraries.
15278 LD=$lt_LD_CXX
15279
15280 # Whether we need hard or soft links.
15281 LN_S=$lt_LN_S
15282
15283 # A BSD-compatible nm program.
15284 NM=$lt_NM
15285
15286 # A symbol stripping program
15287 STRIP=$lt_STRIP
15288
15289 # Used to examine libraries when file_magic_cmd begins "file"
15290 MAGIC_CMD=$MAGIC_CMD
15291
15292 # Used on cygwin: DLL creation program.
15293 DLLTOOL="$DLLTOOL"
15294
15295 # Used on cygwin: object dumper.
15296 OBJDUMP="$OBJDUMP"
15297
15298 # Used on cygwin: assembler.
15299 AS="$AS"
15300
15301 # The name of the directory that contains temporary libtool files.
15302 objdir=$objdir
15303
15304 # How to create reloadable object files.
15305 reload_flag=$lt_reload_flag
15306 reload_cmds=$lt_reload_cmds
15307
15308 # How to pass a linker flag through the compiler.
15309 wl=$lt_lt_prog_compiler_wl_CXX
15310
15311 # Object file suffix (normally "o").
15312 objext="$ac_objext"
15313
15314 # Old archive suffix (normally "a").
15315 libext="$libext"
15316
15317 # Shared library suffix (normally ".so").
15318 shrext_cmds='$shrext_cmds'
15319
15320 # Executable file suffix (normally "").
15321 exeext="$exeext"
15322
15323 # Additional compiler flags for building library objects.
15324 pic_flag=$lt_lt_prog_compiler_pic_CXX
15325 pic_mode=$pic_mode
15326
15327 # What is the maximum length of a command?
15328 max_cmd_len=$lt_cv_sys_max_cmd_len
15329
15330 # Does compiler simultaneously support -c and -o options?
15331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15332
15333 # Must we lock files when doing compilation?
15334 need_locks=$lt_need_locks
15335
15336 # Do we need the lib prefix for modules?
15337 need_lib_prefix=$need_lib_prefix
15338
15339 # Do we need a version for libraries?
15340 need_version=$need_version
15341
15342 # Whether dlopen is supported.
15343 dlopen_support=$enable_dlopen
15344
15345 # Whether dlopen of programs is supported.
15346 dlopen_self=$enable_dlopen_self
15347
15348 # Whether dlopen of statically linked programs is supported.
15349 dlopen_self_static=$enable_dlopen_self_static
15350
15351 # Compiler flag to prevent dynamic linking.
15352 link_static_flag=$lt_lt_prog_compiler_static_CXX
15353
15354 # Compiler flag to turn off builtin functions.
15355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15356
15357 # Compiler flag to allow reflexive dlopens.
15358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15359
15360 # Compiler flag to generate shared objects directly from archives.
15361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15362
15363 # Compiler flag to generate thread-safe objects.
15364 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15365
15366 # Library versioning type.
15367 version_type=$version_type
15368
15369 # Format of library name prefix.
15370 libname_spec=$lt_libname_spec
15371
15372 # List of archive names.  First name is the real one, the rest are links.
15373 # The last name is the one that the linker finds with -lNAME.
15374 library_names_spec=$lt_library_names_spec
15375
15376 # The coded name of the library, if different from the real name.
15377 soname_spec=$lt_soname_spec
15378
15379 # Commands used to build and install an old-style archive.
15380 RANLIB=$lt_RANLIB
15381 old_archive_cmds=$lt_old_archive_cmds_CXX
15382 old_postinstall_cmds=$lt_old_postinstall_cmds
15383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15384
15385 # Create an old-style archive from a shared archive.
15386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15387
15388 # Create a temporary old-style archive to link instead of a shared archive.
15389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15390
15391 # Commands used to build and install a shared archive.
15392 archive_cmds=$lt_archive_cmds_CXX
15393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15394 postinstall_cmds=$lt_postinstall_cmds
15395 postuninstall_cmds=$lt_postuninstall_cmds
15396
15397 # Commands used to build a loadable module (assumed same as above if empty)
15398 module_cmds=$lt_module_cmds_CXX
15399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15400
15401 # Commands to strip libraries.
15402 old_striplib=$lt_old_striplib
15403 striplib=$lt_striplib
15404
15405 # Dependencies to place before the objects being linked to create a
15406 # shared library.
15407 predep_objects=$lt_predep_objects_CXX
15408
15409 # Dependencies to place after the objects being linked to create a
15410 # shared library.
15411 postdep_objects=$lt_postdep_objects_CXX
15412
15413 # Dependencies to place before the objects being linked to create a
15414 # shared library.
15415 predeps=$lt_predeps_CXX
15416
15417 # Dependencies to place after the objects being linked to create a
15418 # shared library.
15419 postdeps=$lt_postdeps_CXX
15420
15421 # The library search path used internally by the compiler when linking
15422 # a shared library.
15423 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15424
15425 # Method to check whether dependent libraries are shared objects.
15426 deplibs_check_method=$lt_deplibs_check_method
15427
15428 # Command to use when deplibs_check_method == file_magic.
15429 file_magic_cmd=$lt_file_magic_cmd
15430
15431 # Flag that allows shared libraries with undefined symbols to be built.
15432 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15433
15434 # Flag that forces no undefined symbols.
15435 no_undefined_flag=$lt_no_undefined_flag_CXX
15436
15437 # Commands used to finish a libtool library installation in a directory.
15438 finish_cmds=$lt_finish_cmds
15439
15440 # Same as above, but a single script fragment to be evaled but not shown.
15441 finish_eval=$lt_finish_eval
15442
15443 # Take the output of nm and produce a listing of raw symbols and C names.
15444 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15445
15446 # Transform the output of nm in a proper C declaration
15447 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15448
15449 # Transform the output of nm in a C name address pair
15450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15451
15452 # This is the shared library runtime path variable.
15453 runpath_var=$runpath_var
15454
15455 # This is the shared library path variable.
15456 shlibpath_var=$shlibpath_var
15457
15458 # Is shlibpath searched before the hard-coded library search path?
15459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15460
15461 # How to hardcode a shared library path into an executable.
15462 hardcode_action=$hardcode_action_CXX
15463
15464 # Whether we should hardcode library paths into libraries.
15465 hardcode_into_libs=$hardcode_into_libs
15466
15467 # Flag to hardcode \$libdir into a binary during linking.
15468 # This must work even if \$libdir does not exist.
15469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15470
15471 # If ld is used when linking, flag to hardcode \$libdir into
15472 # a binary during linking. This must work even if \$libdir does
15473 # not exist.
15474 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15475
15476 # Whether we need a single -rpath flag with a separated argument.
15477 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15478
15479 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15480 # resulting binary.
15481 hardcode_direct=$hardcode_direct_CXX
15482
15483 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15484 # resulting binary.
15485 hardcode_minus_L=$hardcode_minus_L_CXX
15486
15487 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15488 # the resulting binary.
15489 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15490
15491 # Set to yes if building a shared library automatically hardcodes DIR into the library
15492 # and all subsequent libraries and executables linked against it.
15493 hardcode_automatic=$hardcode_automatic_CXX
15494
15495 # Variables whose values should be saved in libtool wrapper scripts and
15496 # restored at relink time.
15497 variables_saved_for_relink="$variables_saved_for_relink"
15498
15499 # Whether libtool must link a program against all its dependency libraries.
15500 link_all_deplibs=$link_all_deplibs_CXX
15501
15502 # Compile-time system search path for libraries
15503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15504
15505 # Run-time system search path for libraries
15506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15507
15508 # Fix the shell variable \$srcfile for the compiler.
15509 fix_srcfile_path="$fix_srcfile_path_CXX"
15510
15511 # Set to yes if exported symbols are required.
15512 always_export_symbols=$always_export_symbols_CXX
15513
15514 # The commands to list exported symbols.
15515 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15516
15517 # The commands to extract the exported symbol list from a shared archive.
15518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15519
15520 # Symbols that should not be listed in the preloaded symbols.
15521 exclude_expsyms=$lt_exclude_expsyms_CXX
15522
15523 # Symbols that must always be exported.
15524 include_expsyms=$lt_include_expsyms_CXX
15525
15526 # ### END LIBTOOL TAG CONFIG: $tagname
15527
15528 __EOF__
15529
15530
15531 else
15532   # If there is no Makefile yet, we rely on a make rule to execute
15533   # `config.status --recheck' to rerun these tests and create the
15534   # libtool script then.
15535   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15536   if test -f "$ltmain_in"; then
15537     test -f Makefile && make "$ltmain"
15538   fi
15539 fi
15540
15541
15542 ac_ext=c
15543 ac_cpp='$CPP $CPPFLAGS'
15544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15547
15548 CC=$lt_save_CC
15549 LDCXX=$LD
15550 LD=$lt_save_LD
15551 GCC=$lt_save_GCC
15552 with_gnu_ldcxx=$with_gnu_ld
15553 with_gnu_ld=$lt_save_with_gnu_ld
15554 lt_cv_path_LDCXX=$lt_cv_path_LD
15555 lt_cv_path_LD=$lt_save_path_LD
15556 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15557 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15558
15559         else
15560           tagname=""
15561         fi
15562         ;;
15563
15564       F77)
15565         if test -n "$F77" && test "X$F77" != "Xno"; then
15566
15567 ac_ext=f
15568 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15569 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15570 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15571
15572
15573 archive_cmds_need_lc_F77=no
15574 allow_undefined_flag_F77=
15575 always_export_symbols_F77=no
15576 archive_expsym_cmds_F77=
15577 export_dynamic_flag_spec_F77=
15578 hardcode_direct_F77=no
15579 hardcode_libdir_flag_spec_F77=
15580 hardcode_libdir_flag_spec_ld_F77=
15581 hardcode_libdir_separator_F77=
15582 hardcode_minus_L_F77=no
15583 hardcode_automatic_F77=no
15584 module_cmds_F77=
15585 module_expsym_cmds_F77=
15586 link_all_deplibs_F77=unknown
15587 old_archive_cmds_F77=$old_archive_cmds
15588 no_undefined_flag_F77=
15589 whole_archive_flag_spec_F77=
15590 enable_shared_with_static_runtimes_F77=no
15591
15592 # Source file extension for f77 test sources.
15593 ac_ext=f
15594
15595 # Object file extension for compiled f77 test sources.
15596 objext=o
15597 objext_F77=$objext
15598
15599 # Code to be used in simple compile tests
15600 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15601
15602 # Code to be used in simple link tests
15603 lt_simple_link_test_code="      program t\n      end\n"
15604
15605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15606
15607 # If no C compiler was specified, use CC.
15608 LTCC=${LTCC-"$CC"}
15609
15610 # Allow CC to be a program name with arguments.
15611 compiler=$CC
15612
15613
15614 # save warnings/boilerplate of simple test code
15615 ac_outfile=conftest.$ac_objext
15616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15618 _lt_compiler_boilerplate=`cat conftest.err`
15619 $rm conftest*
15620
15621 ac_outfile=conftest.$ac_objext
15622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15624 _lt_linker_boilerplate=`cat conftest.err`
15625 $rm conftest*
15626
15627
15628 # Allow CC to be a program name with arguments.
15629 lt_save_CC="$CC"
15630 CC=${F77-"f77"}
15631 compiler=$CC
15632 compiler_F77=$CC
15633 for cc_temp in $compiler""; do
15634   case $cc_temp in
15635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15637     \-*) ;;
15638     *) break;;
15639   esac
15640 done
15641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15642
15643
15644 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15645 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15646 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15647 echo "${ECHO_T}$can_build_shared" >&6
15648
15649 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15650 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15651 test "$can_build_shared" = "no" && enable_shared=no
15652
15653 # On AIX, shared libraries and static libraries use the same namespace, and
15654 # are all built from PIC.
15655 case "$host_os" in
15656 aix3*)
15657   test "$enable_shared" = yes && enable_static=no
15658   if test -n "$RANLIB"; then
15659     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15660     postinstall_cmds='$RANLIB $lib'
15661   fi
15662   ;;
15663 aix4* | aix5*)
15664   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15665     test "$enable_shared" = yes && enable_static=no
15666   fi
15667   ;;
15668 esac
15669 echo "$as_me:$LINENO: result: $enable_shared" >&5
15670 echo "${ECHO_T}$enable_shared" >&6
15671
15672 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15673 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15674 # Make sure either enable_shared or enable_static is yes.
15675 test "$enable_shared" = yes || enable_static=yes
15676 echo "$as_me:$LINENO: result: $enable_static" >&5
15677 echo "${ECHO_T}$enable_static" >&6
15678
15679 test "$ld_shlibs_F77" = no && can_build_shared=no
15680
15681 GCC_F77="$G77"
15682 LD_F77="$LD"
15683
15684 lt_prog_compiler_wl_F77=
15685 lt_prog_compiler_pic_F77=
15686 lt_prog_compiler_static_F77=
15687
15688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15690
15691   if test "$GCC" = yes; then
15692     lt_prog_compiler_wl_F77='-Wl,'
15693     lt_prog_compiler_static_F77='-static'
15694
15695     case $host_os in
15696       aix*)
15697       # All AIX code is PIC.
15698       if test "$host_cpu" = ia64; then
15699         # AIX 5 now supports IA64 processor
15700         lt_prog_compiler_static_F77='-Bstatic'
15701       fi
15702       ;;
15703
15704     amigaos*)
15705       # FIXME: we need at least 68020 code to build shared libraries, but
15706       # adding the `-m68020' flag to GCC prevents building anything better,
15707       # like `-m68040'.
15708       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15709       ;;
15710
15711     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15712       # PIC is the default for these OSes.
15713       ;;
15714
15715     mingw* | pw32* | os2*)
15716       # This hack is so that the source file can tell whether it is being
15717       # built for inclusion in a dll (and should export symbols for example).
15718       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15719       ;;
15720
15721     darwin* | rhapsody*)
15722       # PIC is the default on this platform
15723       # Common symbols not allowed in MH_DYLIB files
15724       lt_prog_compiler_pic_F77='-fno-common'
15725       ;;
15726
15727     msdosdjgpp*)
15728       # Just because we use GCC doesn't mean we suddenly get shared libraries
15729       # on systems that don't support them.
15730       lt_prog_compiler_can_build_shared_F77=no
15731       enable_shared=no
15732       ;;
15733
15734     sysv4*MP*)
15735       if test -d /usr/nec; then
15736         lt_prog_compiler_pic_F77=-Kconform_pic
15737       fi
15738       ;;
15739
15740     hpux*)
15741       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15742       # not for PA HP-UX.
15743       case "$host_cpu" in
15744       hppa*64*|ia64*)
15745         # +Z the default
15746         ;;
15747       *)
15748         lt_prog_compiler_pic_F77='-fPIC'
15749         ;;
15750       esac
15751       ;;
15752
15753     *)
15754       lt_prog_compiler_pic_F77='-fPIC'
15755       ;;
15756     esac
15757   else
15758     # PORTME Check for flag to pass linker flags through the system compiler.
15759     case $host_os in
15760     aix*)
15761       lt_prog_compiler_wl_F77='-Wl,'
15762       if test "$host_cpu" = ia64; then
15763         # AIX 5 now supports IA64 processor
15764         lt_prog_compiler_static_F77='-Bstatic'
15765       else
15766         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15767       fi
15768       ;;
15769       darwin*)
15770         # PIC is the default on this platform
15771         # Common symbols not allowed in MH_DYLIB files
15772        case $cc_basename in
15773          xlc*)
15774          lt_prog_compiler_pic_F77='-qnocommon'
15775          lt_prog_compiler_wl_F77='-Wl,'
15776          ;;
15777        esac
15778        ;;
15779
15780     mingw* | pw32* | os2*)
15781       # This hack is so that the source file can tell whether it is being
15782       # built for inclusion in a dll (and should export symbols for example).
15783       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15784       ;;
15785
15786     hpux9* | hpux10* | hpux11*)
15787       lt_prog_compiler_wl_F77='-Wl,'
15788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15789       # not for PA HP-UX.
15790       case "$host_cpu" in
15791       hppa*64*|ia64*)
15792         # +Z the default
15793         ;;
15794       *)
15795         lt_prog_compiler_pic_F77='+Z'
15796         ;;
15797       esac
15798       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15799       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15800       ;;
15801
15802     irix5* | irix6* | nonstopux*)
15803       lt_prog_compiler_wl_F77='-Wl,'
15804       # PIC (with -KPIC) is the default.
15805       lt_prog_compiler_static_F77='-non_shared'
15806       ;;
15807
15808     newsos6)
15809       lt_prog_compiler_pic_F77='-KPIC'
15810       lt_prog_compiler_static_F77='-Bstatic'
15811       ;;
15812
15813     linux*)
15814       case $cc_basename in
15815       icc* | ecc*)
15816         lt_prog_compiler_wl_F77='-Wl,'
15817         lt_prog_compiler_pic_F77='-KPIC'
15818         lt_prog_compiler_static_F77='-static'
15819         ;;
15820       pgcc* | pgf77* | pgf90*)
15821         # Portland Group compilers (*not* the Pentium gcc compiler,
15822         # which looks to be a dead project)
15823         lt_prog_compiler_wl_F77='-Wl,'
15824         lt_prog_compiler_pic_F77='-fpic'
15825         lt_prog_compiler_static_F77='-static'
15826         ;;
15827       ccc*)
15828         lt_prog_compiler_wl_F77='-Wl,'
15829         # All Alpha code is PIC.
15830         lt_prog_compiler_static_F77='-non_shared'
15831         ;;
15832       esac
15833       ;;
15834
15835     osf3* | osf4* | osf5*)
15836       lt_prog_compiler_wl_F77='-Wl,'
15837       # All OSF/1 code is PIC.
15838       lt_prog_compiler_static_F77='-non_shared'
15839       ;;
15840
15841     sco3.2v5*)
15842       lt_prog_compiler_pic_F77='-Kpic'
15843       lt_prog_compiler_static_F77='-dn'
15844       ;;
15845
15846     solaris*)
15847       lt_prog_compiler_pic_F77='-KPIC'
15848       lt_prog_compiler_static_F77='-Bstatic'
15849       case $cc_basename in
15850       f77* | f90* | f95*)
15851         lt_prog_compiler_wl_F77='-Qoption ld ';;
15852       *)
15853         lt_prog_compiler_wl_F77='-Wl,';;
15854       esac
15855       ;;
15856
15857     sunos4*)
15858       lt_prog_compiler_wl_F77='-Qoption ld '
15859       lt_prog_compiler_pic_F77='-PIC'
15860       lt_prog_compiler_static_F77='-Bstatic'
15861       ;;
15862
15863     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15864       lt_prog_compiler_wl_F77='-Wl,'
15865       lt_prog_compiler_pic_F77='-KPIC'
15866       lt_prog_compiler_static_F77='-Bstatic'
15867       ;;
15868
15869     sysv4*MP*)
15870       if test -d /usr/nec ;then
15871         lt_prog_compiler_pic_F77='-Kconform_pic'
15872         lt_prog_compiler_static_F77='-Bstatic'
15873       fi
15874       ;;
15875
15876     unicos*)
15877       lt_prog_compiler_wl_F77='-Wl,'
15878       lt_prog_compiler_can_build_shared_F77=no
15879       ;;
15880
15881     uts4*)
15882       lt_prog_compiler_pic_F77='-pic'
15883       lt_prog_compiler_static_F77='-Bstatic'
15884       ;;
15885
15886     *)
15887       lt_prog_compiler_can_build_shared_F77=no
15888       ;;
15889     esac
15890   fi
15891
15892 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15893 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15894
15895 #
15896 # Check to make sure the PIC flag actually works.
15897 #
15898 if test -n "$lt_prog_compiler_pic_F77"; then
15899
15900 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15901 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15902 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   lt_prog_compiler_pic_works_F77=no
15906   ac_outfile=conftest.$ac_objext
15907    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15908    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15909    # Insert the option either (1) after the last *FLAGS variable, or
15910    # (2) before a word containing "conftest.", or (3) at the end.
15911    # Note that $ac_compile itself does not contain backslashes and begins
15912    # with a dollar sign (not a hyphen), so the echo should work correctly.
15913    # The option is referenced via a variable to avoid confusing sed.
15914    lt_compile=`echo "$ac_compile" | $SED \
15915    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15917    -e 's:$: $lt_compiler_flag:'`
15918    (eval echo "\"\$as_me:15918: $lt_compile\"" >&5)
15919    (eval "$lt_compile" 2>conftest.err)
15920    ac_status=$?
15921    cat conftest.err >&5
15922    echo "$as_me:15922: \$? = $ac_status" >&5
15923    if (exit $ac_status) && test -s "$ac_outfile"; then
15924      # The compiler can only warn and ignore the option if not recognized
15925      # So say no if there are warnings other than the usual output.
15926      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15927      $SED '/^$/d' conftest.err >conftest.er2
15928      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15929        lt_prog_compiler_pic_works_F77=yes
15930      fi
15931    fi
15932    $rm conftest*
15933
15934 fi
15935 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15936 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15937
15938 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15939     case $lt_prog_compiler_pic_F77 in
15940      "" | " "*) ;;
15941      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15942      esac
15943 else
15944     lt_prog_compiler_pic_F77=
15945      lt_prog_compiler_can_build_shared_F77=no
15946 fi
15947
15948 fi
15949 case "$host_os" in
15950   # For platforms which do not support PIC, -DPIC is meaningless:
15951   *djgpp*)
15952     lt_prog_compiler_pic_F77=
15953     ;;
15954   *)
15955     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15956     ;;
15957 esac
15958
15959 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15960 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15961 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964   lt_cv_prog_compiler_c_o_F77=no
15965    $rm -r conftest 2>/dev/null
15966    mkdir conftest
15967    cd conftest
15968    mkdir out
15969    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15970
15971    lt_compiler_flag="-o out/conftest2.$ac_objext"
15972    # Insert the option either (1) after the last *FLAGS variable, or
15973    # (2) before a word containing "conftest.", or (3) at the end.
15974    # Note that $ac_compile itself does not contain backslashes and begins
15975    # with a dollar sign (not a hyphen), so the echo should work correctly.
15976    lt_compile=`echo "$ac_compile" | $SED \
15977    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15979    -e 's:$: $lt_compiler_flag:'`
15980    (eval echo "\"\$as_me:15980: $lt_compile\"" >&5)
15981    (eval "$lt_compile" 2>out/conftest.err)
15982    ac_status=$?
15983    cat out/conftest.err >&5
15984    echo "$as_me:15984: \$? = $ac_status" >&5
15985    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15986    then
15987      # The compiler can only warn and ignore the option if not recognized
15988      # So say no if there are warnings
15989      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15990      $SED '/^$/d' out/conftest.err >out/conftest.er2
15991      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15992        lt_cv_prog_compiler_c_o_F77=yes
15993      fi
15994    fi
15995    chmod u+w .
15996    $rm conftest*
15997    # SGI C++ compiler will create directory out/ii_files/ for
15998    # template instantiation
15999    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16000    $rm out/* && rmdir out
16001    cd ..
16002    rmdir conftest
16003    $rm conftest*
16004
16005 fi
16006 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16007 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16008
16009
16010 hard_links="nottested"
16011 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16012   # do not overwrite the value of need_locks provided by the user
16013   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16014 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16015   hard_links=yes
16016   $rm conftest*
16017   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16018   touch conftest.a
16019   ln conftest.a conftest.b 2>&5 || hard_links=no
16020   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021   echo "$as_me:$LINENO: result: $hard_links" >&5
16022 echo "${ECHO_T}$hard_links" >&6
16023   if test "$hard_links" = no; then
16024     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16025 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16026     need_locks=warn
16027   fi
16028 else
16029   need_locks=no
16030 fi
16031
16032 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16033 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16034
16035   runpath_var=
16036   allow_undefined_flag_F77=
16037   enable_shared_with_static_runtimes_F77=no
16038   archive_cmds_F77=
16039   archive_expsym_cmds_F77=
16040   old_archive_From_new_cmds_F77=
16041   old_archive_from_expsyms_cmds_F77=
16042   export_dynamic_flag_spec_F77=
16043   whole_archive_flag_spec_F77=
16044   thread_safe_flag_spec_F77=
16045   hardcode_libdir_flag_spec_F77=
16046   hardcode_libdir_flag_spec_ld_F77=
16047   hardcode_libdir_separator_F77=
16048   hardcode_direct_F77=no
16049   hardcode_minus_L_F77=no
16050   hardcode_shlibpath_var_F77=unsupported
16051   link_all_deplibs_F77=unknown
16052   hardcode_automatic_F77=no
16053   module_cmds_F77=
16054   module_expsym_cmds_F77=
16055   always_export_symbols_F77=no
16056   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16057   # include_expsyms should be a list of space-separated symbols to be *always*
16058   # included in the symbol list
16059   include_expsyms_F77=
16060   # exclude_expsyms can be an extended regexp of symbols to exclude
16061   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16062   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16063   # as well as any symbol that contains `d'.
16064   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16065   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16066   # platforms (ab)use it in PIC code, but their linkers get confused if
16067   # the symbol is explicitly referenced.  Since portable code cannot
16068   # rely on this symbol name, it's probably fine to never include it in
16069   # preloaded symbol tables.
16070   extract_expsyms_cmds=
16071   # Just being paranoid about ensuring that cc_basename is set.
16072   for cc_temp in $compiler""; do
16073   case $cc_temp in
16074     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16075     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16076     \-*) ;;
16077     *) break;;
16078   esac
16079 done
16080 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16081
16082   case $host_os in
16083   cygwin* | mingw* | pw32*)
16084     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16085     # When not using gcc, we currently assume that we are using
16086     # Microsoft Visual C++.
16087     if test "$GCC" != yes; then
16088       with_gnu_ld=no
16089     fi
16090     ;;
16091   openbsd*)
16092     with_gnu_ld=no
16093     ;;
16094   esac
16095
16096   ld_shlibs_F77=yes
16097   if test "$with_gnu_ld" = yes; then
16098     # If archive_cmds runs LD, not CC, wlarc should be empty
16099     wlarc='${wl}'
16100
16101     # Set some defaults for GNU ld with shared library support. These
16102     # are reset later if shared libraries are not supported. Putting them
16103     # here allows them to be overridden if necessary.
16104     runpath_var=LD_RUN_PATH
16105     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16106     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16107     # ancient GNU ld didn't support --whole-archive et. al.
16108     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16109         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16110       else
16111         whole_archive_flag_spec_F77=
16112     fi
16113     supports_anon_versioning=no
16114     case `$LD -v 2>/dev/null` in
16115       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16116       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16117       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16118       *\ 2.11.*) ;; # other 2.11 versions
16119       *) supports_anon_versioning=yes ;;
16120     esac
16121
16122     # See if GNU ld supports shared libraries.
16123     case $host_os in
16124     aix3* | aix4* | aix5*)
16125       # On AIX/PPC, the GNU linker is very broken
16126       if test "$host_cpu" != ia64; then
16127         ld_shlibs_F77=no
16128         cat <<EOF 1>&2
16129
16130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16131 *** to be unable to reliably create shared libraries on AIX.
16132 *** Therefore, libtool is disabling shared libraries support.  If you
16133 *** really care for shared libraries, you may want to modify your PATH
16134 *** so that a non-GNU linker is found, and then restart.
16135
16136 EOF
16137       fi
16138       ;;
16139
16140     amigaos*)
16141       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)'
16142       hardcode_libdir_flag_spec_F77='-L$libdir'
16143       hardcode_minus_L_F77=yes
16144
16145       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16146       # that the semantics of dynamic libraries on AmigaOS, at least up
16147       # to version 4, is to share data among multiple programs linked
16148       # with the same dynamic library.  Since this doesn't match the
16149       # behavior of shared libraries on other platforms, we can't use
16150       # them.
16151       ld_shlibs_F77=no
16152       ;;
16153
16154     beos*)
16155       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16156         allow_undefined_flag_F77=unsupported
16157         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16158         # support --undefined.  This deserves some investigation.  FIXME
16159         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16160       else
16161         ld_shlibs_F77=no
16162       fi
16163       ;;
16164
16165     cygwin* | mingw* | pw32*)
16166       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16167       # as there is no search path for DLLs.
16168       hardcode_libdir_flag_spec_F77='-L$libdir'
16169       allow_undefined_flag_F77=unsupported
16170       always_export_symbols_F77=no
16171       enable_shared_with_static_runtimes_F77=yes
16172       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16173
16174       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16175         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16176         # If the export-symbols file already is a .def file (1st line
16177         # is EXPORTS), use it as is; otherwise, prepend...
16178         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16179           cp $export_symbols $output_objdir/$soname.def;
16180         else
16181           echo EXPORTS > $output_objdir/$soname.def;
16182           cat $export_symbols >> $output_objdir/$soname.def;
16183         fi~
16184         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16185       else
16186         ld_shlibs_F77=no
16187       fi
16188       ;;
16189
16190     linux*)
16191       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16192         tmp_addflag=
16193         case $cc_basename,$host_cpu in
16194         pgcc*)                          # Portland Group C compiler
16195           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'
16196           tmp_addflag=' $pic_flag'
16197           ;;
16198         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16199           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'
16200           tmp_addflag=' $pic_flag -Mnomain' ;;
16201         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16202           tmp_addflag=' -i_dynamic' ;;
16203         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16204           tmp_addflag=' -i_dynamic -nofor_main' ;;
16205         ifc* | ifort*)                  # Intel Fortran compiler
16206           tmp_addflag=' -nofor_main' ;;
16207         esac
16208         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209
16210         if test $supports_anon_versioning = yes; then
16211           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16212   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16213   $echo "local: *; };" >> $output_objdir/$libname.ver~
16214           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16215         fi
16216       else
16217         ld_shlibs_F77=no
16218       fi
16219       ;;
16220
16221     netbsd*)
16222       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16223         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16224         wlarc=
16225       else
16226         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16228       fi
16229       ;;
16230
16231     solaris* | sysv5*)
16232       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16233         ld_shlibs_F77=no
16234         cat <<EOF 1>&2
16235
16236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16237 *** create shared libraries on Solaris systems.  Therefore, libtool
16238 *** is disabling shared libraries support.  We urge you to upgrade GNU
16239 *** binutils to release 2.9.1 or newer.  Another option is to modify
16240 *** your PATH or compiler configuration so that the native linker is
16241 *** used, and then restart.
16242
16243 EOF
16244       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16245         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16246         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16247       else
16248         ld_shlibs_F77=no
16249       fi
16250       ;;
16251
16252     sunos4*)
16253       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254       wlarc=
16255       hardcode_direct_F77=yes
16256       hardcode_shlibpath_var_F77=no
16257       ;;
16258
16259     *)
16260       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16261         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16262         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16263       else
16264         ld_shlibs_F77=no
16265       fi
16266       ;;
16267     esac
16268
16269     if test "$ld_shlibs_F77" = no; then
16270       runpath_var=
16271       hardcode_libdir_flag_spec_F77=
16272       export_dynamic_flag_spec_F77=
16273       whole_archive_flag_spec_F77=
16274     fi
16275   else
16276     # PORTME fill in a description of your system's linker (not GNU ld)
16277     case $host_os in
16278     aix3*)
16279       allow_undefined_flag_F77=unsupported
16280       always_export_symbols_F77=yes
16281       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'
16282       # Note: this linker hardcodes the directories in LIBPATH if there
16283       # are no directories specified by -L.
16284       hardcode_minus_L_F77=yes
16285       if test "$GCC" = yes && test -z "$link_static_flag"; then
16286         # Neither direct hardcoding nor static linking is supported with a
16287         # broken collect2.
16288         hardcode_direct_F77=unsupported
16289       fi
16290       ;;
16291
16292     aix4* | aix5*)
16293       if test "$host_cpu" = ia64; then
16294         # On IA64, the linker does run time linking by default, so we don't
16295         # have to do anything special.
16296         aix_use_runtimelinking=no
16297         exp_sym_flag='-Bexport'
16298         no_entry_flag=""
16299       else
16300         # If we're using GNU nm, then we don't want the "-C" option.
16301         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16302         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16303           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'
16304         else
16305           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'
16306         fi
16307         aix_use_runtimelinking=no
16308
16309         # Test if we are trying to use run time linking or normal
16310         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16311         # need to do runtime linking.
16312         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16313           for ld_flag in $LDFLAGS; do
16314           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16315             aix_use_runtimelinking=yes
16316             break
16317           fi
16318           done
16319         esac
16320
16321         exp_sym_flag='-bexport'
16322         no_entry_flag='-bnoentry'
16323       fi
16324
16325       # When large executables or shared objects are built, AIX ld can
16326       # have problems creating the table of contents.  If linking a library
16327       # or program results in "error TOC overflow" add -mminimal-toc to
16328       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16329       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16330
16331       archive_cmds_F77=''
16332       hardcode_direct_F77=yes
16333       hardcode_libdir_separator_F77=':'
16334       link_all_deplibs_F77=yes
16335
16336       if test "$GCC" = yes; then
16337         case $host_os in aix4.[012]|aix4.[012].*)
16338         # We only want to do this on AIX 4.2 and lower, the check
16339         # below for broken collect2 doesn't work under 4.3+
16340           collect2name=`${CC} -print-prog-name=collect2`
16341           if test -f "$collect2name" && \
16342            strings "$collect2name" | grep resolve_lib_name >/dev/null
16343           then
16344           # We have reworked collect2
16345           hardcode_direct_F77=yes
16346           else
16347           # We have old collect2
16348           hardcode_direct_F77=unsupported
16349           # It fails to find uninstalled libraries when the uninstalled
16350           # path is not listed in the libpath.  Setting hardcode_minus_L
16351           # to unsupported forces relinking
16352           hardcode_minus_L_F77=yes
16353           hardcode_libdir_flag_spec_F77='-L$libdir'
16354           hardcode_libdir_separator_F77=
16355           fi
16356         esac
16357         shared_flag='-shared'
16358         if test "$aix_use_runtimelinking" = yes; then
16359           shared_flag="$shared_flag "'${wl}-G'
16360         fi
16361       else
16362         # not using gcc
16363         if test "$host_cpu" = ia64; then
16364         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16365         # chokes on -Wl,-G. The following line is correct:
16366           shared_flag='-G'
16367         else
16368         if test "$aix_use_runtimelinking" = yes; then
16369             shared_flag='${wl}-G'
16370           else
16371             shared_flag='${wl}-bM:SRE'
16372         fi
16373         fi
16374       fi
16375
16376       # It seems that -bexpall does not export symbols beginning with
16377       # underscore (_), so it is better to generate a list of symbols to export.
16378       always_export_symbols_F77=yes
16379       if test "$aix_use_runtimelinking" = yes; then
16380         # Warning - without using the other runtime loading flags (-brtl),
16381         # -berok will link without error, but may produce a broken library.
16382         allow_undefined_flag_F77='-berok'
16383        # Determine the default libpath from the value encoded in an empty executable.
16384        cat >conftest.$ac_ext <<_ACEOF
16385       program main
16386
16387       end
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391   (eval $ac_link) 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } &&
16398          { ac_try='test -z "$ac_f77_werror_flag"
16399                          || test ! -s conftest.err'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; } &&
16405          { ac_try='test -s conftest$ac_exeext'
16406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407   (eval $ac_try) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; }; then
16411
16412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16413 }'`
16414 # Check for a 64-bit object if we didn't find anything.
16415 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; }
16416 }'`; fi
16417 else
16418   echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421 fi
16422 rm -f conftest.err conftest.$ac_objext \
16423       conftest$ac_exeext conftest.$ac_ext
16424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16425
16426        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16427         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"
16428        else
16429         if test "$host_cpu" = ia64; then
16430           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16431           allow_undefined_flag_F77="-z nodefs"
16432           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"
16433         else
16434          # Determine the default libpath from the value encoded in an empty executable.
16435          cat >conftest.$ac_ext <<_ACEOF
16436       program main
16437
16438       end
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442   (eval $ac_link) 2>conftest.er1
16443   ac_status=$?
16444   grep -v '^ *+' conftest.er1 >conftest.err
16445   rm -f conftest.er1
16446   cat conftest.err >&5
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } &&
16449          { ac_try='test -z "$ac_f77_werror_flag"
16450                          || test ! -s conftest.err'
16451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452   (eval $ac_try) 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; } &&
16456          { ac_try='test -s conftest$ac_exeext'
16457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458   (eval $ac_try) 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); }; }; then
16462
16463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16464 }'`
16465 # Check for a 64-bit object if we didn't find anything.
16466 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; }
16467 }'`; fi
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 fi
16473 rm -f conftest.err conftest.$ac_objext \
16474       conftest$ac_exeext conftest.$ac_ext
16475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16476
16477          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16478           # Warning - without using the other run time loading flags,
16479           # -berok will link without error, but may produce a broken library.
16480           no_undefined_flag_F77=' ${wl}-bernotok'
16481           allow_undefined_flag_F77=' ${wl}-berok'
16482           # -bexpall does not export symbols beginning with underscore (_)
16483           always_export_symbols_F77=yes
16484           # Exported symbols can be pulled into shared objects from archives
16485           whole_archive_flag_spec_F77=' '
16486           archive_cmds_need_lc_F77=yes
16487           # This is similar to how AIX traditionally builds it's shared libraries.
16488           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'
16489         fi
16490       fi
16491       ;;
16492
16493     amigaos*)
16494       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)'
16495       hardcode_libdir_flag_spec_F77='-L$libdir'
16496       hardcode_minus_L_F77=yes
16497       # see comment about different semantics on the GNU ld section
16498       ld_shlibs_F77=no
16499       ;;
16500
16501     bsdi[45]*)
16502       export_dynamic_flag_spec_F77=-rdynamic
16503       ;;
16504
16505     cygwin* | mingw* | pw32*)
16506       # When not using gcc, we currently assume that we are using
16507       # Microsoft Visual C++.
16508       # hardcode_libdir_flag_spec is actually meaningless, as there is
16509       # no search path for DLLs.
16510       hardcode_libdir_flag_spec_F77=' '
16511       allow_undefined_flag_F77=unsupported
16512       # Tell ltmain to make .lib files, not .a files.
16513       libext=lib
16514       # Tell ltmain to make .dll files, not .so files.
16515       shrext_cmds=".dll"
16516       # FIXME: Setting linknames here is a bad hack.
16517       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16518       # The linker will automatically build a .lib file if we build a DLL.
16519       old_archive_From_new_cmds_F77='true'
16520       # FIXME: Should let the user specify the lib program.
16521       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16522       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16523       enable_shared_with_static_runtimes_F77=yes
16524       ;;
16525
16526     darwin* | rhapsody*)
16527       case "$host_os" in
16528         rhapsody* | darwin1.[012])
16529          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16530          ;;
16531        *) # Darwin 1.3 on
16532          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16533            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16534          else
16535            case ${MACOSX_DEPLOYMENT_TARGET} in
16536              10.[012])
16537                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16538                ;;
16539              10.*)
16540                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16541                ;;
16542            esac
16543          fi
16544          ;;
16545       esac
16546       archive_cmds_need_lc_F77=no
16547       hardcode_direct_F77=no
16548       hardcode_automatic_F77=yes
16549       hardcode_shlibpath_var_F77=unsupported
16550       whole_archive_flag_spec_F77=''
16551       link_all_deplibs_F77=yes
16552     if test "$GCC" = yes ; then
16553         output_verbose_link_cmd='echo'
16554         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16555       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16556       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16557       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}'
16558       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}'
16559     else
16560       case $cc_basename in
16561         xlc*)
16562          output_verbose_link_cmd='echo'
16563          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16564          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16565           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16566          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}'
16567           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}'
16568           ;;
16569        *)
16570          ld_shlibs_F77=no
16571           ;;
16572       esac
16573     fi
16574       ;;
16575
16576     dgux*)
16577       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578       hardcode_libdir_flag_spec_F77='-L$libdir'
16579       hardcode_shlibpath_var_F77=no
16580       ;;
16581
16582     freebsd1*)
16583       ld_shlibs_F77=no
16584       ;;
16585
16586     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16587     # support.  Future versions do this automatically, but an explicit c++rt0.o
16588     # does not break anything, and helps significantly (at the cost of a little
16589     # extra space).
16590     freebsd2.2*)
16591       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16592       hardcode_libdir_flag_spec_F77='-R$libdir'
16593       hardcode_direct_F77=yes
16594       hardcode_shlibpath_var_F77=no
16595       ;;
16596
16597     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16598     freebsd2*)
16599       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16600       hardcode_direct_F77=yes
16601       hardcode_minus_L_F77=yes
16602       hardcode_shlibpath_var_F77=no
16603       ;;
16604
16605     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16606     freebsd* | kfreebsd*-gnu | dragonfly*)
16607       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16608       hardcode_libdir_flag_spec_F77='-R$libdir'
16609       hardcode_direct_F77=yes
16610       hardcode_shlibpath_var_F77=no
16611       ;;
16612
16613     hpux9*)
16614       if test "$GCC" = yes; then
16615         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'
16616       else
16617         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'
16618       fi
16619       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16620       hardcode_libdir_separator_F77=:
16621       hardcode_direct_F77=yes
16622
16623       # hardcode_minus_L: Not really in the search PATH,
16624       # but as the default location of the library.
16625       hardcode_minus_L_F77=yes
16626       export_dynamic_flag_spec_F77='${wl}-E'
16627       ;;
16628
16629     hpux10* | hpux11*)
16630       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16631         case "$host_cpu" in
16632         hppa*64*|ia64*)
16633           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16634           ;;
16635         *)
16636           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637           ;;
16638         esac
16639       else
16640         case "$host_cpu" in
16641         hppa*64*|ia64*)
16642           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16643           ;;
16644         *)
16645           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16646           ;;
16647         esac
16648       fi
16649       if test "$with_gnu_ld" = no; then
16650         case "$host_cpu" in
16651         hppa*64*)
16652           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16653           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16654           hardcode_libdir_separator_F77=:
16655           hardcode_direct_F77=no
16656           hardcode_shlibpath_var_F77=no
16657           ;;
16658         ia64*)
16659           hardcode_libdir_flag_spec_F77='-L$libdir'
16660           hardcode_direct_F77=no
16661           hardcode_shlibpath_var_F77=no
16662
16663           # hardcode_minus_L: Not really in the search PATH,
16664           # but as the default location of the library.
16665           hardcode_minus_L_F77=yes
16666           ;;
16667         *)
16668           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16669           hardcode_libdir_separator_F77=:
16670           hardcode_direct_F77=yes
16671           export_dynamic_flag_spec_F77='${wl}-E'
16672
16673           # hardcode_minus_L: Not really in the search PATH,
16674           # but as the default location of the library.
16675           hardcode_minus_L_F77=yes
16676           ;;
16677         esac
16678       fi
16679       ;;
16680
16681     irix5* | irix6* | nonstopux*)
16682       if test "$GCC" = yes; then
16683         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'
16684       else
16685         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'
16686         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16687       fi
16688       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16689       hardcode_libdir_separator_F77=:
16690       link_all_deplibs_F77=yes
16691       ;;
16692
16693     netbsd*)
16694       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16695         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16696       else
16697         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16698       fi
16699       hardcode_libdir_flag_spec_F77='-R$libdir'
16700       hardcode_direct_F77=yes
16701       hardcode_shlibpath_var_F77=no
16702       ;;
16703
16704     newsos6)
16705       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706       hardcode_direct_F77=yes
16707       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16708       hardcode_libdir_separator_F77=:
16709       hardcode_shlibpath_var_F77=no
16710       ;;
16711
16712     openbsd*)
16713       hardcode_direct_F77=yes
16714       hardcode_shlibpath_var_F77=no
16715       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16716         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16717         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16718         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16719         export_dynamic_flag_spec_F77='${wl}-E'
16720       else
16721        case $host_os in
16722          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16723            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16724            hardcode_libdir_flag_spec_F77='-R$libdir'
16725            ;;
16726          *)
16727            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16728            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16729            ;;
16730        esac
16731       fi
16732       ;;
16733
16734     os2*)
16735       hardcode_libdir_flag_spec_F77='-L$libdir'
16736       hardcode_minus_L_F77=yes
16737       allow_undefined_flag_F77=unsupported
16738       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'
16739       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16740       ;;
16741
16742     osf3*)
16743       if test "$GCC" = yes; then
16744         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16745         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'
16746       else
16747         allow_undefined_flag_F77=' -expect_unresolved \*'
16748         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'
16749       fi
16750       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16751       hardcode_libdir_separator_F77=:
16752       ;;
16753
16754     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16755       if test "$GCC" = yes; then
16756         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16757         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'
16758         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16759       else
16760         allow_undefined_flag_F77=' -expect_unresolved \*'
16761         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'
16762         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~
16763         $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'
16764
16765         # Both c and cxx compiler support -rpath directly
16766         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16767       fi
16768       hardcode_libdir_separator_F77=:
16769       ;;
16770
16771     sco3.2v5*)
16772       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16773       hardcode_shlibpath_var_F77=no
16774       export_dynamic_flag_spec_F77='${wl}-Bexport'
16775       runpath_var=LD_RUN_PATH
16776       hardcode_runpath_var=yes
16777       ;;
16778
16779     solaris*)
16780       no_undefined_flag_F77=' -z text'
16781       if test "$GCC" = yes; then
16782         wlarc='${wl}'
16783         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16784         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16785           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16786       else
16787         wlarc=''
16788         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16790         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16791       fi
16792       hardcode_libdir_flag_spec_F77='-R$libdir'
16793       hardcode_shlibpath_var_F77=no
16794       case $host_os in
16795       solaris2.[0-5] | solaris2.[0-5].*) ;;
16796       *)
16797         # The compiler driver will combine linker options so we
16798         # cannot just pass the convience library names through
16799         # without $wl, iff we do not link with $LD.
16800         # Luckily, gcc supports the same syntax we need for Sun Studio.
16801         # Supported since Solaris 2.6 (maybe 2.5.1?)
16802         case $wlarc in
16803         '')
16804           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16805         *)
16806           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' ;;
16807         esac ;;
16808       esac
16809       link_all_deplibs_F77=yes
16810       ;;
16811
16812     sunos4*)
16813       if test "x$host_vendor" = xsequent; then
16814         # Use $CC to link under sequent, because it throws in some extra .o
16815         # files that make .init and .fini sections work.
16816         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16817       else
16818         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16819       fi
16820       hardcode_libdir_flag_spec_F77='-L$libdir'
16821       hardcode_direct_F77=yes
16822       hardcode_minus_L_F77=yes
16823       hardcode_shlibpath_var_F77=no
16824       ;;
16825
16826     sysv4)
16827       case $host_vendor in
16828         sni)
16829           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16830           hardcode_direct_F77=yes # is this really true???
16831         ;;
16832         siemens)
16833           ## LD is ld it makes a PLAMLIB
16834           ## CC just makes a GrossModule.
16835           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16836           reload_cmds_F77='$CC -r -o $output$reload_objs'
16837           hardcode_direct_F77=no
16838         ;;
16839         motorola)
16840           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16842         ;;
16843       esac
16844       runpath_var='LD_RUN_PATH'
16845       hardcode_shlibpath_var_F77=no
16846       ;;
16847
16848     sysv4.3*)
16849       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850       hardcode_shlibpath_var_F77=no
16851       export_dynamic_flag_spec_F77='-Bexport'
16852       ;;
16853
16854     sysv4*MP*)
16855       if test -d /usr/nec; then
16856         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857         hardcode_shlibpath_var_F77=no
16858         runpath_var=LD_RUN_PATH
16859         hardcode_runpath_var=yes
16860         ld_shlibs_F77=yes
16861       fi
16862       ;;
16863
16864     sysv4.2uw2*)
16865       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16866       hardcode_direct_F77=yes
16867       hardcode_minus_L_F77=no
16868       hardcode_shlibpath_var_F77=no
16869       hardcode_runpath_var=yes
16870       runpath_var=LD_RUN_PATH
16871       ;;
16872
16873    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16874       no_undefined_flag_F77='${wl}-z ${wl}text'
16875       if test "$GCC" = yes; then
16876         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16877       else
16878         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16879       fi
16880       runpath_var='LD_RUN_PATH'
16881       hardcode_shlibpath_var_F77=no
16882       ;;
16883
16884     sysv5*)
16885       no_undefined_flag_F77=' -z text'
16886       # $CC -shared without GNU ld will not create a library from C++
16887       # object files and a static libstdc++, better avoid it by now
16888       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16890                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16891       hardcode_libdir_flag_spec_F77=
16892       hardcode_shlibpath_var_F77=no
16893       runpath_var='LD_RUN_PATH'
16894       ;;
16895
16896     uts4*)
16897       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898       hardcode_libdir_flag_spec_F77='-L$libdir'
16899       hardcode_shlibpath_var_F77=no
16900       ;;
16901
16902     *)
16903       ld_shlibs_F77=no
16904       ;;
16905     esac
16906   fi
16907
16908 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16909 echo "${ECHO_T}$ld_shlibs_F77" >&6
16910 test "$ld_shlibs_F77" = no && can_build_shared=no
16911
16912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16913 if test "$GCC" = yes; then
16914   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16915 fi
16916
16917 #
16918 # Do we need to explicitly link libc?
16919 #
16920 case "x$archive_cmds_need_lc_F77" in
16921 x|xyes)
16922   # Assume -lc should be added
16923   archive_cmds_need_lc_F77=yes
16924
16925   if test "$enable_shared" = yes && test "$GCC" = yes; then
16926     case $archive_cmds_F77 in
16927     *'~'*)
16928       # FIXME: we may have to deal with multi-command sequences.
16929       ;;
16930     '$CC '*)
16931       # Test whether the compiler implicitly links with -lc since on some
16932       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16933       # to ld, don't add -lc before -lgcc.
16934       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16935 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16936       $rm conftest*
16937       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16938
16939       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16940   (eval $ac_compile) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } 2>conftest.err; then
16944         soname=conftest
16945         lib=conftest
16946         libobjs=conftest.$ac_objext
16947         deplibs=
16948         wl=$lt_prog_compiler_wl_F77
16949         compiler_flags=-v
16950         linker_flags=-v
16951         verstring=
16952         output_objdir=.
16953         libname=conftest
16954         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16955         allow_undefined_flag_F77=
16956         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16957   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }
16961         then
16962           archive_cmds_need_lc_F77=no
16963         else
16964           archive_cmds_need_lc_F77=yes
16965         fi
16966         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16967       else
16968         cat conftest.err 1>&5
16969       fi
16970       $rm conftest*
16971       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16972 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16973       ;;
16974     esac
16975   fi
16976   ;;
16977 esac
16978
16979 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16980 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16981 library_names_spec=
16982 libname_spec='lib$name'
16983 soname_spec=
16984 shrext_cmds=".so"
16985 postinstall_cmds=
16986 postuninstall_cmds=
16987 finish_cmds=
16988 finish_eval=
16989 shlibpath_var=
16990 shlibpath_overrides_runpath=unknown
16991 version_type=none
16992 dynamic_linker="$host_os ld.so"
16993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16994 if test "$GCC" = yes; then
16995   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16996   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16997     # if the path contains ";" then we assume it to be the separator
16998     # otherwise default to the standard path separator (i.e. ":") - it is
16999     # assumed that no part of a normal pathname contains ";" but that should
17000     # okay in the real world where ";" in dirpaths is itself problematic.
17001     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17002   else
17003     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17004   fi
17005 else
17006   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17007 fi
17008 need_lib_prefix=unknown
17009 hardcode_into_libs=no
17010
17011 # when you set need_version to no, make sure it does not cause -set_version
17012 # flags to be left without arguments
17013 need_version=unknown
17014
17015 case $host_os in
17016 aix3*)
17017   version_type=linux
17018   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17019   shlibpath_var=LIBPATH
17020
17021   # AIX 3 has no versioning support, so we append a major version to the name.
17022   soname_spec='${libname}${release}${shared_ext}$major'
17023   ;;
17024
17025 aix4* | aix5*)
17026   version_type=linux
17027   need_lib_prefix=no
17028   need_version=no
17029   hardcode_into_libs=yes
17030   if test "$host_cpu" = ia64; then
17031     # AIX 5 supports IA64
17032     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17033     shlibpath_var=LD_LIBRARY_PATH
17034   else
17035     # With GCC up to 2.95.x, collect2 would create an import file
17036     # for dependence libraries.  The import file would start with
17037     # the line `#! .'.  This would cause the generated library to
17038     # depend on `.', always an invalid library.  This was fixed in
17039     # development snapshots of GCC prior to 3.0.
17040     case $host_os in
17041       aix4 | aix4.[01] | aix4.[01].*)
17042       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17043            echo ' yes '
17044            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17045         :
17046       else
17047         can_build_shared=no
17048       fi
17049       ;;
17050     esac
17051     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17052     # soname into executable. Probably we can add versioning support to
17053     # collect2, so additional links can be useful in future.
17054     if test "$aix_use_runtimelinking" = yes; then
17055       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17056       # instead of lib<name>.a to let people know that these are not
17057       # typical AIX shared libraries.
17058       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059     else
17060       # We preserve .a as extension for shared libraries through AIX4.2
17061       # and later when we are not doing run time linking.
17062       library_names_spec='${libname}${release}.a $libname.a'
17063       soname_spec='${libname}${release}${shared_ext}$major'
17064     fi
17065     shlibpath_var=LIBPATH
17066   fi
17067   ;;
17068
17069 amigaos*)
17070   library_names_spec='$libname.ixlibrary $libname.a'
17071   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17072   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'
17073   ;;
17074
17075 beos*)
17076   library_names_spec='${libname}${shared_ext}'
17077   dynamic_linker="$host_os ld.so"
17078   shlibpath_var=LIBRARY_PATH
17079   ;;
17080
17081 bsdi[45]*)
17082   version_type=linux
17083   need_version=no
17084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17085   soname_spec='${libname}${release}${shared_ext}$major'
17086   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17087   shlibpath_var=LD_LIBRARY_PATH
17088   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17089   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17090   # the default ld.so.conf also contains /usr/contrib/lib and
17091   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17092   # libtool to hard-code these into programs
17093   ;;
17094
17095 cygwin* | mingw* | pw32*)
17096   version_type=windows
17097   shrext_cmds=".dll"
17098   need_version=no
17099   need_lib_prefix=no
17100
17101   case $GCC,$host_os in
17102   yes,cygwin* | yes,mingw* | yes,pw32*)
17103     library_names_spec='$libname.dll.a'
17104     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17105     postinstall_cmds='base_file=`basename \${file}`~
17106       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17107       dldir=$destdir/`dirname \$dlpath`~
17108       test -d \$dldir || mkdir -p \$dldir~
17109       $install_prog $dir/$dlname \$dldir/$dlname'
17110     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17111       dlpath=$dir/\$dldll~
17112        $rm \$dlpath'
17113     shlibpath_overrides_runpath=yes
17114
17115     case $host_os in
17116     cygwin*)
17117       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17118       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17119       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17120       ;;
17121     mingw*)
17122       # MinGW DLLs use traditional 'lib' prefix
17123       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17124       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17125       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17126         # It is most probably a Windows format PATH printed by
17127         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17128         # path with ; separators, and with drive letters. We can handle the
17129         # drive letters (cygwin fileutils understands them), so leave them,
17130         # especially as we might pass files found there to a mingw objdump,
17131         # which wouldn't understand a cygwinified path. Ahh.
17132         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17133       else
17134         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17135       fi
17136       ;;
17137     pw32*)
17138       # pw32 DLLs use 'pw' prefix rather than 'lib'
17139       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17140       ;;
17141     esac
17142     ;;
17143
17144   *)
17145     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17146     ;;
17147   esac
17148   dynamic_linker='Win32 ld.exe'
17149   # FIXME: first we should search . and the directory the executable is in
17150   shlibpath_var=PATH
17151   ;;
17152
17153 darwin* | rhapsody*)
17154   dynamic_linker="$host_os dyld"
17155   version_type=darwin
17156   need_lib_prefix=no
17157   need_version=no
17158   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17159   soname_spec='${libname}${release}${major}$shared_ext'
17160   shlibpath_overrides_runpath=yes
17161   shlibpath_var=DYLD_LIBRARY_PATH
17162   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17163   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17164   if test "$GCC" = yes; then
17165     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"`
17166   else
17167     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17168   fi
17169   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17170   ;;
17171
17172 dgux*)
17173   version_type=linux
17174   need_lib_prefix=no
17175   need_version=no
17176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   shlibpath_var=LD_LIBRARY_PATH
17179   ;;
17180
17181 freebsd1*)
17182   dynamic_linker=no
17183   ;;
17184
17185 kfreebsd*-gnu)
17186   version_type=linux
17187   need_lib_prefix=no
17188   need_version=no
17189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17190   soname_spec='${libname}${release}${shared_ext}$major'
17191   shlibpath_var=LD_LIBRARY_PATH
17192   shlibpath_overrides_runpath=no
17193   hardcode_into_libs=yes
17194   dynamic_linker='GNU ld.so'
17195   ;;
17196
17197 freebsd* | dragonfly*)
17198   # DragonFly does not have aout.  When/if they implement a new
17199   # versioning mechanism, adjust this.
17200   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17201   version_type=freebsd-$objformat
17202   case $version_type in
17203     freebsd-elf*)
17204       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17205       need_version=no
17206       need_lib_prefix=no
17207       ;;
17208     freebsd-*)
17209       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17210       need_version=yes
17211       ;;
17212   esac
17213   shlibpath_var=LD_LIBRARY_PATH
17214   case $host_os in
17215   freebsd2*)
17216     shlibpath_overrides_runpath=yes
17217     ;;
17218   freebsd3.[01]* | freebsdelf3.[01]*)
17219     shlibpath_overrides_runpath=yes
17220     hardcode_into_libs=yes
17221     ;;
17222   *) # from 3.2 on
17223     shlibpath_overrides_runpath=no
17224     hardcode_into_libs=yes
17225     ;;
17226   esac
17227   ;;
17228
17229 gnu*)
17230   version_type=linux
17231   need_lib_prefix=no
17232   need_version=no
17233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17234   soname_spec='${libname}${release}${shared_ext}$major'
17235   shlibpath_var=LD_LIBRARY_PATH
17236   hardcode_into_libs=yes
17237   ;;
17238
17239 hpux9* | hpux10* | hpux11*)
17240   # Give a soname corresponding to the major version so that dld.sl refuses to
17241   # link against other versions.
17242   version_type=sunos
17243   need_lib_prefix=no
17244   need_version=no
17245   case "$host_cpu" in
17246   ia64*)
17247     shrext_cmds='.so'
17248     hardcode_into_libs=yes
17249     dynamic_linker="$host_os dld.so"
17250     shlibpath_var=LD_LIBRARY_PATH
17251     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253     soname_spec='${libname}${release}${shared_ext}$major'
17254     if test "X$HPUX_IA64_MODE" = X32; then
17255       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17256     else
17257       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17258     fi
17259     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17260     ;;
17261    hppa*64*)
17262      shrext_cmds='.sl'
17263      hardcode_into_libs=yes
17264      dynamic_linker="$host_os dld.sl"
17265      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17266      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268      soname_spec='${libname}${release}${shared_ext}$major'
17269      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17270      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17271      ;;
17272    *)
17273     shrext_cmds='.sl'
17274     dynamic_linker="$host_os dld.sl"
17275     shlibpath_var=SHLIB_PATH
17276     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278     soname_spec='${libname}${release}${shared_ext}$major'
17279     ;;
17280   esac
17281   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17282   postinstall_cmds='chmod 555 $lib'
17283   ;;
17284
17285 irix5* | irix6* | nonstopux*)
17286   case $host_os in
17287     nonstopux*) version_type=nonstopux ;;
17288     *)
17289         if test "$lt_cv_prog_gnu_ld" = yes; then
17290                 version_type=linux
17291         else
17292                 version_type=irix
17293         fi ;;
17294   esac
17295   need_lib_prefix=no
17296   need_version=no
17297   soname_spec='${libname}${release}${shared_ext}$major'
17298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17299   case $host_os in
17300   irix5* | nonstopux*)
17301     libsuff= shlibsuff=
17302     ;;
17303   *)
17304     case $LD in # libtool.m4 will add one of these switches to LD
17305     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17306       libsuff= shlibsuff= libmagic=32-bit;;
17307     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17308       libsuff=32 shlibsuff=N32 libmagic=N32;;
17309     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17310       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17311     *) libsuff= shlibsuff= libmagic=never-match;;
17312     esac
17313     ;;
17314   esac
17315   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17316   shlibpath_overrides_runpath=no
17317   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17318   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17319   hardcode_into_libs=yes
17320   ;;
17321
17322 # No shared lib support for Linux oldld, aout, or coff.
17323 linux*oldld* | linux*aout* | linux*coff*)
17324   dynamic_linker=no
17325   ;;
17326
17327 # This must be Linux ELF.
17328 linux*)
17329   version_type=linux
17330   need_lib_prefix=no
17331   need_version=no
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333   soname_spec='${libname}${release}${shared_ext}$major'
17334   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   shlibpath_overrides_runpath=no
17337   # This implies no fast_install, which is unacceptable.
17338   # Some rework will be needed to allow for fast_install
17339   # before this can be enabled.
17340   hardcode_into_libs=yes
17341
17342   # Append ld.so.conf contents to the search path
17343   if test -f /etc/ld.so.conf; then
17344     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' ' '`
17345     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17346   fi
17347
17348   # We used to test for /lib/ld.so.1 and disable shared libraries on
17349   # powerpc, because MkLinux only supported shared libraries with the
17350   # GNU dynamic linker.  Since this was broken with cross compilers,
17351   # most powerpc-linux boxes support dynamic linking these days and
17352   # people can always --disable-shared, the test was removed, and we
17353   # assume the GNU/Linux dynamic linker is in use.
17354   dynamic_linker='GNU/Linux ld.so'
17355   ;;
17356
17357 knetbsd*-gnu)
17358   version_type=linux
17359   need_lib_prefix=no
17360   need_version=no
17361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17362   soname_spec='${libname}${release}${shared_ext}$major'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   shlibpath_overrides_runpath=no
17365   hardcode_into_libs=yes
17366   dynamic_linker='GNU ld.so'
17367   ;;
17368
17369 netbsd*)
17370   version_type=sunos
17371   need_lib_prefix=no
17372   need_version=no
17373   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17375     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17376     dynamic_linker='NetBSD (a.out) ld.so'
17377   else
17378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17379     soname_spec='${libname}${release}${shared_ext}$major'
17380     dynamic_linker='NetBSD ld.elf_so'
17381   fi
17382   shlibpath_var=LD_LIBRARY_PATH
17383   shlibpath_overrides_runpath=yes
17384   hardcode_into_libs=yes
17385   ;;
17386
17387 newsos6)
17388   version_type=linux
17389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390   shlibpath_var=LD_LIBRARY_PATH
17391   shlibpath_overrides_runpath=yes
17392   ;;
17393
17394 nto-qnx*)
17395   version_type=linux
17396   need_lib_prefix=no
17397   need_version=no
17398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399   soname_spec='${libname}${release}${shared_ext}$major'
17400   shlibpath_var=LD_LIBRARY_PATH
17401   shlibpath_overrides_runpath=yes
17402   ;;
17403
17404 openbsd*)
17405   version_type=sunos
17406   need_lib_prefix=no
17407   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17408   case $host_os in
17409     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17410     *)                         need_version=no  ;;
17411   esac
17412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17413   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17414   shlibpath_var=LD_LIBRARY_PATH
17415   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17416     case $host_os in
17417       openbsd2.[89] | openbsd2.[89].*)
17418         shlibpath_overrides_runpath=no
17419         ;;
17420       *)
17421         shlibpath_overrides_runpath=yes
17422         ;;
17423       esac
17424   else
17425     shlibpath_overrides_runpath=yes
17426   fi
17427   ;;
17428
17429 os2*)
17430   libname_spec='$name'
17431   shrext_cmds=".dll"
17432   need_lib_prefix=no
17433   library_names_spec='$libname${shared_ext} $libname.a'
17434   dynamic_linker='OS/2 ld.exe'
17435   shlibpath_var=LIBPATH
17436   ;;
17437
17438 osf3* | osf4* | osf5*)
17439   version_type=osf
17440   need_lib_prefix=no
17441   need_version=no
17442   soname_spec='${libname}${release}${shared_ext}$major'
17443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444   shlibpath_var=LD_LIBRARY_PATH
17445   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17446   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17447   ;;
17448
17449 sco3.2v5*)
17450   version_type=osf
17451   soname_spec='${libname}${release}${shared_ext}$major'
17452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453   shlibpath_var=LD_LIBRARY_PATH
17454   ;;
17455
17456 solaris*)
17457   version_type=linux
17458   need_lib_prefix=no
17459   need_version=no
17460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461   soname_spec='${libname}${release}${shared_ext}$major'
17462   shlibpath_var=LD_LIBRARY_PATH
17463   shlibpath_overrides_runpath=yes
17464   hardcode_into_libs=yes
17465   # ldd complains unless libraries are executable
17466   postinstall_cmds='chmod +x $lib'
17467   ;;
17468
17469 sunos4*)
17470   version_type=sunos
17471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17472   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17473   shlibpath_var=LD_LIBRARY_PATH
17474   shlibpath_overrides_runpath=yes
17475   if test "$with_gnu_ld" = yes; then
17476     need_lib_prefix=no
17477   fi
17478   need_version=yes
17479   ;;
17480
17481 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17482   version_type=linux
17483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484   soname_spec='${libname}${release}${shared_ext}$major'
17485   shlibpath_var=LD_LIBRARY_PATH
17486   case $host_vendor in
17487     sni)
17488       shlibpath_overrides_runpath=no
17489       need_lib_prefix=no
17490       export_dynamic_flag_spec='${wl}-Blargedynsym'
17491       runpath_var=LD_RUN_PATH
17492       ;;
17493     siemens)
17494       need_lib_prefix=no
17495       ;;
17496     motorola)
17497       need_lib_prefix=no
17498       need_version=no
17499       shlibpath_overrides_runpath=no
17500       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17501       ;;
17502   esac
17503   ;;
17504
17505 sysv4*MP*)
17506   if test -d /usr/nec ;then
17507     version_type=linux
17508     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17509     soname_spec='$libname${shared_ext}.$major'
17510     shlibpath_var=LD_LIBRARY_PATH
17511   fi
17512   ;;
17513
17514 uts4*)
17515   version_type=linux
17516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517   soname_spec='${libname}${release}${shared_ext}$major'
17518   shlibpath_var=LD_LIBRARY_PATH
17519   ;;
17520
17521 *)
17522   dynamic_linker=no
17523   ;;
17524 esac
17525 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17526 echo "${ECHO_T}$dynamic_linker" >&6
17527 test "$dynamic_linker" = no && can_build_shared=no
17528
17529 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17530 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17531 hardcode_action_F77=
17532 if test -n "$hardcode_libdir_flag_spec_F77" || \
17533    test -n "$runpath_var_F77" || \
17534    test "X$hardcode_automatic_F77" = "Xyes" ; then
17535
17536   # We can hardcode non-existant directories.
17537   if test "$hardcode_direct_F77" != no &&
17538      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17539      # have to relink, otherwise we might link with an installed library
17540      # when we should be linking with a yet-to-be-installed one
17541      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17542      test "$hardcode_minus_L_F77" != no; then
17543     # Linking always hardcodes the temporary library directory.
17544     hardcode_action_F77=relink
17545   else
17546     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17547     hardcode_action_F77=immediate
17548   fi
17549 else
17550   # We cannot hardcode anything, or else we can only hardcode existing
17551   # directories.
17552   hardcode_action_F77=unsupported
17553 fi
17554 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17555 echo "${ECHO_T}$hardcode_action_F77" >&6
17556
17557 if test "$hardcode_action_F77" = relink; then
17558   # Fast installation is not supported
17559   enable_fast_install=no
17560 elif test "$shlibpath_overrides_runpath" = yes ||
17561      test "$enable_shared" = no; then
17562   # Fast installation is not necessary
17563   enable_fast_install=needless
17564 fi
17565
17566 striplib=
17567 old_striplib=
17568 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17569 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17570 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17571   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17572   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17573   echo "$as_me:$LINENO: result: yes" >&5
17574 echo "${ECHO_T}yes" >&6
17575 else
17576 # FIXME - insert some real tests, host_os isn't really good enough
17577   case $host_os in
17578    darwin*)
17579        if test -n "$STRIP" ; then
17580          striplib="$STRIP -x"
17581          echo "$as_me:$LINENO: result: yes" >&5
17582 echo "${ECHO_T}yes" >&6
17583        else
17584   echo "$as_me:$LINENO: result: no" >&5
17585 echo "${ECHO_T}no" >&6
17586 fi
17587        ;;
17588    *)
17589   echo "$as_me:$LINENO: result: no" >&5
17590 echo "${ECHO_T}no" >&6
17591     ;;
17592   esac
17593 fi
17594
17595
17596
17597 # The else clause should only fire when bootstrapping the
17598 # libtool distribution, otherwise you forgot to ship ltmain.sh
17599 # with your package, and you will get complaints that there are
17600 # no rules to generate ltmain.sh.
17601 if test -f "$ltmain"; then
17602   # See if we are running on zsh, and set the options which allow our commands through
17603   # without removal of \ escapes.
17604   if test -n "${ZSH_VERSION+set}" ; then
17605     setopt NO_GLOB_SUBST
17606   fi
17607   # Now quote all the things that may contain metacharacters while being
17608   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17609   # variables and quote the copies for generation of the libtool script.
17610   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17611     SED SHELL STRIP \
17612     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17613     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17614     deplibs_check_method reload_flag reload_cmds need_locks \
17615     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17616     lt_cv_sys_global_symbol_to_c_name_address \
17617     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17618     old_postinstall_cmds old_postuninstall_cmds \
17619     compiler_F77 \
17620     CC_F77 \
17621     LD_F77 \
17622     lt_prog_compiler_wl_F77 \
17623     lt_prog_compiler_pic_F77 \
17624     lt_prog_compiler_static_F77 \
17625     lt_prog_compiler_no_builtin_flag_F77 \
17626     export_dynamic_flag_spec_F77 \
17627     thread_safe_flag_spec_F77 \
17628     whole_archive_flag_spec_F77 \
17629     enable_shared_with_static_runtimes_F77 \
17630     old_archive_cmds_F77 \
17631     old_archive_from_new_cmds_F77 \
17632     predep_objects_F77 \
17633     postdep_objects_F77 \
17634     predeps_F77 \
17635     postdeps_F77 \
17636     compiler_lib_search_path_F77 \
17637     archive_cmds_F77 \
17638     archive_expsym_cmds_F77 \
17639     postinstall_cmds_F77 \
17640     postuninstall_cmds_F77 \
17641     old_archive_from_expsyms_cmds_F77 \
17642     allow_undefined_flag_F77 \
17643     no_undefined_flag_F77 \
17644     export_symbols_cmds_F77 \
17645     hardcode_libdir_flag_spec_F77 \
17646     hardcode_libdir_flag_spec_ld_F77 \
17647     hardcode_libdir_separator_F77 \
17648     hardcode_automatic_F77 \
17649     module_cmds_F77 \
17650     module_expsym_cmds_F77 \
17651     lt_cv_prog_compiler_c_o_F77 \
17652     exclude_expsyms_F77 \
17653     include_expsyms_F77; do
17654
17655     case $var in
17656     old_archive_cmds_F77 | \
17657     old_archive_from_new_cmds_F77 | \
17658     archive_cmds_F77 | \
17659     archive_expsym_cmds_F77 | \
17660     module_cmds_F77 | \
17661     module_expsym_cmds_F77 | \
17662     old_archive_from_expsyms_cmds_F77 | \
17663     export_symbols_cmds_F77 | \
17664     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17665     postinstall_cmds | postuninstall_cmds | \
17666     old_postinstall_cmds | old_postuninstall_cmds | \
17667     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17668       # Double-quote double-evaled strings.
17669       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17670       ;;
17671     *)
17672       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17673       ;;
17674     esac
17675   done
17676
17677   case $lt_echo in
17678   *'\$0 --fallback-echo"')
17679     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17680     ;;
17681   esac
17682
17683 cfgfile="$ofile"
17684
17685   cat <<__EOF__ >> "$cfgfile"
17686 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17687
17688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17689
17690 # Shell to use when invoking shell scripts.
17691 SHELL=$lt_SHELL
17692
17693 # Whether or not to build shared libraries.
17694 build_libtool_libs=$enable_shared
17695
17696 # Whether or not to build static libraries.
17697 build_old_libs=$enable_static
17698
17699 # Whether or not to add -lc for building shared libraries.
17700 build_libtool_need_lc=$archive_cmds_need_lc_F77
17701
17702 # Whether or not to disallow shared libs when runtime libs are static
17703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17704
17705 # Whether or not to optimize for fast installation.
17706 fast_install=$enable_fast_install
17707
17708 # The host system.
17709 host_alias=$host_alias
17710 host=$host
17711 host_os=$host_os
17712
17713 # The build system.
17714 build_alias=$build_alias
17715 build=$build
17716 build_os=$build_os
17717
17718 # An echo program that does not interpret backslashes.
17719 echo=$lt_echo
17720
17721 # The archiver.
17722 AR=$lt_AR
17723 AR_FLAGS=$lt_AR_FLAGS
17724
17725 # A C compiler.
17726 LTCC=$lt_LTCC
17727
17728 # A language-specific compiler.
17729 CC=$lt_compiler_F77
17730
17731 # Is the compiler the GNU C compiler?
17732 with_gcc=$GCC_F77
17733
17734 # An ERE matcher.
17735 EGREP=$lt_EGREP
17736
17737 # The linker used to build libraries.
17738 LD=$lt_LD_F77
17739
17740 # Whether we need hard or soft links.
17741 LN_S=$lt_LN_S
17742
17743 # A BSD-compatible nm program.
17744 NM=$lt_NM
17745
17746 # A symbol stripping program
17747 STRIP=$lt_STRIP
17748
17749 # Used to examine libraries when file_magic_cmd begins "file"
17750 MAGIC_CMD=$MAGIC_CMD
17751
17752 # Used on cygwin: DLL creation program.
17753 DLLTOOL="$DLLTOOL"
17754
17755 # Used on cygwin: object dumper.
17756 OBJDUMP="$OBJDUMP"
17757
17758 # Used on cygwin: assembler.
17759 AS="$AS"
17760
17761 # The name of the directory that contains temporary libtool files.
17762 objdir=$objdir
17763
17764 # How to create reloadable object files.
17765 reload_flag=$lt_reload_flag
17766 reload_cmds=$lt_reload_cmds
17767
17768 # How to pass a linker flag through the compiler.
17769 wl=$lt_lt_prog_compiler_wl_F77
17770
17771 # Object file suffix (normally "o").
17772 objext="$ac_objext"
17773
17774 # Old archive suffix (normally "a").
17775 libext="$libext"
17776
17777 # Shared library suffix (normally ".so").
17778 shrext_cmds='$shrext_cmds'
17779
17780 # Executable file suffix (normally "").
17781 exeext="$exeext"
17782
17783 # Additional compiler flags for building library objects.
17784 pic_flag=$lt_lt_prog_compiler_pic_F77
17785 pic_mode=$pic_mode
17786
17787 # What is the maximum length of a command?
17788 max_cmd_len=$lt_cv_sys_max_cmd_len
17789
17790 # Does compiler simultaneously support -c and -o options?
17791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17792
17793 # Must we lock files when doing compilation?
17794 need_locks=$lt_need_locks
17795
17796 # Do we need the lib prefix for modules?
17797 need_lib_prefix=$need_lib_prefix
17798
17799 # Do we need a version for libraries?
17800 need_version=$need_version
17801
17802 # Whether dlopen is supported.
17803 dlopen_support=$enable_dlopen
17804
17805 # Whether dlopen of programs is supported.
17806 dlopen_self=$enable_dlopen_self
17807
17808 # Whether dlopen of statically linked programs is supported.
17809 dlopen_self_static=$enable_dlopen_self_static
17810
17811 # Compiler flag to prevent dynamic linking.
17812 link_static_flag=$lt_lt_prog_compiler_static_F77
17813
17814 # Compiler flag to turn off builtin functions.
17815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17816
17817 # Compiler flag to allow reflexive dlopens.
17818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17819
17820 # Compiler flag to generate shared objects directly from archives.
17821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17822
17823 # Compiler flag to generate thread-safe objects.
17824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17825
17826 # Library versioning type.
17827 version_type=$version_type
17828
17829 # Format of library name prefix.
17830 libname_spec=$lt_libname_spec
17831
17832 # List of archive names.  First name is the real one, the rest are links.
17833 # The last name is the one that the linker finds with -lNAME.
17834 library_names_spec=$lt_library_names_spec
17835
17836 # The coded name of the library, if different from the real name.
17837 soname_spec=$lt_soname_spec
17838
17839 # Commands used to build and install an old-style archive.
17840 RANLIB=$lt_RANLIB
17841 old_archive_cmds=$lt_old_archive_cmds_F77
17842 old_postinstall_cmds=$lt_old_postinstall_cmds
17843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17844
17845 # Create an old-style archive from a shared archive.
17846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17847
17848 # Create a temporary old-style archive to link instead of a shared archive.
17849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17850
17851 # Commands used to build and install a shared archive.
17852 archive_cmds=$lt_archive_cmds_F77
17853 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17854 postinstall_cmds=$lt_postinstall_cmds
17855 postuninstall_cmds=$lt_postuninstall_cmds
17856
17857 # Commands used to build a loadable module (assumed same as above if empty)
17858 module_cmds=$lt_module_cmds_F77
17859 module_expsym_cmds=$lt_module_expsym_cmds_F77
17860
17861 # Commands to strip libraries.
17862 old_striplib=$lt_old_striplib
17863 striplib=$lt_striplib
17864
17865 # Dependencies to place before the objects being linked to create a
17866 # shared library.
17867 predep_objects=$lt_predep_objects_F77
17868
17869 # Dependencies to place after the objects being linked to create a
17870 # shared library.
17871 postdep_objects=$lt_postdep_objects_F77
17872
17873 # Dependencies to place before the objects being linked to create a
17874 # shared library.
17875 predeps=$lt_predeps_F77
17876
17877 # Dependencies to place after the objects being linked to create a
17878 # shared library.
17879 postdeps=$lt_postdeps_F77
17880
17881 # The library search path used internally by the compiler when linking
17882 # a shared library.
17883 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17884
17885 # Method to check whether dependent libraries are shared objects.
17886 deplibs_check_method=$lt_deplibs_check_method
17887
17888 # Command to use when deplibs_check_method == file_magic.
17889 file_magic_cmd=$lt_file_magic_cmd
17890
17891 # Flag that allows shared libraries with undefined symbols to be built.
17892 allow_undefined_flag=$lt_allow_undefined_flag_F77
17893
17894 # Flag that forces no undefined symbols.
17895 no_undefined_flag=$lt_no_undefined_flag_F77
17896
17897 # Commands used to finish a libtool library installation in a directory.
17898 finish_cmds=$lt_finish_cmds
17899
17900 # Same as above, but a single script fragment to be evaled but not shown.
17901 finish_eval=$lt_finish_eval
17902
17903 # Take the output of nm and produce a listing of raw symbols and C names.
17904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17905
17906 # Transform the output of nm in a proper C declaration
17907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17908
17909 # Transform the output of nm in a C name address pair
17910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17911
17912 # This is the shared library runtime path variable.
17913 runpath_var=$runpath_var
17914
17915 # This is the shared library path variable.
17916 shlibpath_var=$shlibpath_var
17917
17918 # Is shlibpath searched before the hard-coded library search path?
17919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17920
17921 # How to hardcode a shared library path into an executable.
17922 hardcode_action=$hardcode_action_F77
17923
17924 # Whether we should hardcode library paths into libraries.
17925 hardcode_into_libs=$hardcode_into_libs
17926
17927 # Flag to hardcode \$libdir into a binary during linking.
17928 # This must work even if \$libdir does not exist.
17929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17930
17931 # If ld is used when linking, flag to hardcode \$libdir into
17932 # a binary during linking. This must work even if \$libdir does
17933 # not exist.
17934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17935
17936 # Whether we need a single -rpath flag with a separated argument.
17937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17938
17939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17940 # resulting binary.
17941 hardcode_direct=$hardcode_direct_F77
17942
17943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17944 # resulting binary.
17945 hardcode_minus_L=$hardcode_minus_L_F77
17946
17947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17948 # the resulting binary.
17949 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17950
17951 # Set to yes if building a shared library automatically hardcodes DIR into the library
17952 # and all subsequent libraries and executables linked against it.
17953 hardcode_automatic=$hardcode_automatic_F77
17954
17955 # Variables whose values should be saved in libtool wrapper scripts and
17956 # restored at relink time.
17957 variables_saved_for_relink="$variables_saved_for_relink"
17958
17959 # Whether libtool must link a program against all its dependency libraries.
17960 link_all_deplibs=$link_all_deplibs_F77
17961
17962 # Compile-time system search path for libraries
17963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17964
17965 # Run-time system search path for libraries
17966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17967
17968 # Fix the shell variable \$srcfile for the compiler.
17969 fix_srcfile_path="$fix_srcfile_path_F77"
17970
17971 # Set to yes if exported symbols are required.
17972 always_export_symbols=$always_export_symbols_F77
17973
17974 # The commands to list exported symbols.
17975 export_symbols_cmds=$lt_export_symbols_cmds_F77
17976
17977 # The commands to extract the exported symbol list from a shared archive.
17978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17979
17980 # Symbols that should not be listed in the preloaded symbols.
17981 exclude_expsyms=$lt_exclude_expsyms_F77
17982
17983 # Symbols that must always be exported.
17984 include_expsyms=$lt_include_expsyms_F77
17985
17986 # ### END LIBTOOL TAG CONFIG: $tagname
17987
17988 __EOF__
17989
17990
17991 else
17992   # If there is no Makefile yet, we rely on a make rule to execute
17993   # `config.status --recheck' to rerun these tests and create the
17994   # libtool script then.
17995   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17996   if test -f "$ltmain_in"; then
17997     test -f Makefile && make "$ltmain"
17998   fi
17999 fi
18000
18001
18002 ac_ext=c
18003 ac_cpp='$CPP $CPPFLAGS'
18004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18007
18008 CC="$lt_save_CC"
18009
18010         else
18011           tagname=""
18012         fi
18013         ;;
18014
18015       GCJ)
18016         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18017
18018
18019
18020 # Source file extension for Java test sources.
18021 ac_ext=java
18022
18023 # Object file extension for compiled Java test sources.
18024 objext=o
18025 objext_GCJ=$objext
18026
18027 # Code to be used in simple compile tests
18028 lt_simple_compile_test_code="class foo {}\n"
18029
18030 # Code to be used in simple link tests
18031 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18032
18033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18034
18035 # If no C compiler was specified, use CC.
18036 LTCC=${LTCC-"$CC"}
18037
18038 # Allow CC to be a program name with arguments.
18039 compiler=$CC
18040
18041
18042 # save warnings/boilerplate of simple test code
18043 ac_outfile=conftest.$ac_objext
18044 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18046 _lt_compiler_boilerplate=`cat conftest.err`
18047 $rm conftest*
18048
18049 ac_outfile=conftest.$ac_objext
18050 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18052 _lt_linker_boilerplate=`cat conftest.err`
18053 $rm conftest*
18054
18055
18056 # Allow CC to be a program name with arguments.
18057 lt_save_CC="$CC"
18058 CC=${GCJ-"gcj"}
18059 compiler=$CC
18060 compiler_GCJ=$CC
18061 for cc_temp in $compiler""; do
18062   case $cc_temp in
18063     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18064     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18065     \-*) ;;
18066     *) break;;
18067   esac
18068 done
18069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18070
18071
18072 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18073 archive_cmds_need_lc_GCJ=no
18074
18075 old_archive_cmds_GCJ=$old_archive_cmds
18076
18077
18078 lt_prog_compiler_no_builtin_flag_GCJ=
18079
18080 if test "$GCC" = yes; then
18081   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18082
18083
18084 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18085 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18086 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089   lt_cv_prog_compiler_rtti_exceptions=no
18090   ac_outfile=conftest.$ac_objext
18091    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18092    lt_compiler_flag="-fno-rtti -fno-exceptions"
18093    # Insert the option either (1) after the last *FLAGS variable, or
18094    # (2) before a word containing "conftest.", or (3) at the end.
18095    # Note that $ac_compile itself does not contain backslashes and begins
18096    # with a dollar sign (not a hyphen), so the echo should work correctly.
18097    # The option is referenced via a variable to avoid confusing sed.
18098    lt_compile=`echo "$ac_compile" | $SED \
18099    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18101    -e 's:$: $lt_compiler_flag:'`
18102    (eval echo "\"\$as_me:18102: $lt_compile\"" >&5)
18103    (eval "$lt_compile" 2>conftest.err)
18104    ac_status=$?
18105    cat conftest.err >&5
18106    echo "$as_me:18106: \$? = $ac_status" >&5
18107    if (exit $ac_status) && test -s "$ac_outfile"; then
18108      # The compiler can only warn and ignore the option if not recognized
18109      # So say no if there are warnings other than the usual output.
18110      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18111      $SED '/^$/d' conftest.err >conftest.er2
18112      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18113        lt_cv_prog_compiler_rtti_exceptions=yes
18114      fi
18115    fi
18116    $rm conftest*
18117
18118 fi
18119 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18120 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18121
18122 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18123     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18124 else
18125     :
18126 fi
18127
18128 fi
18129
18130 lt_prog_compiler_wl_GCJ=
18131 lt_prog_compiler_pic_GCJ=
18132 lt_prog_compiler_static_GCJ=
18133
18134 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18135 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18136
18137   if test "$GCC" = yes; then
18138     lt_prog_compiler_wl_GCJ='-Wl,'
18139     lt_prog_compiler_static_GCJ='-static'
18140
18141     case $host_os in
18142       aix*)
18143       # All AIX code is PIC.
18144       if test "$host_cpu" = ia64; then
18145         # AIX 5 now supports IA64 processor
18146         lt_prog_compiler_static_GCJ='-Bstatic'
18147       fi
18148       ;;
18149
18150     amigaos*)
18151       # FIXME: we need at least 68020 code to build shared libraries, but
18152       # adding the `-m68020' flag to GCC prevents building anything better,
18153       # like `-m68040'.
18154       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18155       ;;
18156
18157     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18158       # PIC is the default for these OSes.
18159       ;;
18160
18161     mingw* | pw32* | os2*)
18162       # This hack is so that the source file can tell whether it is being
18163       # built for inclusion in a dll (and should export symbols for example).
18164       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18165       ;;
18166
18167     darwin* | rhapsody*)
18168       # PIC is the default on this platform
18169       # Common symbols not allowed in MH_DYLIB files
18170       lt_prog_compiler_pic_GCJ='-fno-common'
18171       ;;
18172
18173     msdosdjgpp*)
18174       # Just because we use GCC doesn't mean we suddenly get shared libraries
18175       # on systems that don't support them.
18176       lt_prog_compiler_can_build_shared_GCJ=no
18177       enable_shared=no
18178       ;;
18179
18180     sysv4*MP*)
18181       if test -d /usr/nec; then
18182         lt_prog_compiler_pic_GCJ=-Kconform_pic
18183       fi
18184       ;;
18185
18186     hpux*)
18187       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18188       # not for PA HP-UX.
18189       case "$host_cpu" in
18190       hppa*64*|ia64*)
18191         # +Z the default
18192         ;;
18193       *)
18194         lt_prog_compiler_pic_GCJ='-fPIC'
18195         ;;
18196       esac
18197       ;;
18198
18199     *)
18200       lt_prog_compiler_pic_GCJ='-fPIC'
18201       ;;
18202     esac
18203   else
18204     # PORTME Check for flag to pass linker flags through the system compiler.
18205     case $host_os in
18206     aix*)
18207       lt_prog_compiler_wl_GCJ='-Wl,'
18208       if test "$host_cpu" = ia64; then
18209         # AIX 5 now supports IA64 processor
18210         lt_prog_compiler_static_GCJ='-Bstatic'
18211       else
18212         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18213       fi
18214       ;;
18215       darwin*)
18216         # PIC is the default on this platform
18217         # Common symbols not allowed in MH_DYLIB files
18218        case $cc_basename in
18219          xlc*)
18220          lt_prog_compiler_pic_GCJ='-qnocommon'
18221          lt_prog_compiler_wl_GCJ='-Wl,'
18222          ;;
18223        esac
18224        ;;
18225
18226     mingw* | pw32* | os2*)
18227       # This hack is so that the source file can tell whether it is being
18228       # built for inclusion in a dll (and should export symbols for example).
18229       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18230       ;;
18231
18232     hpux9* | hpux10* | hpux11*)
18233       lt_prog_compiler_wl_GCJ='-Wl,'
18234       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18235       # not for PA HP-UX.
18236       case "$host_cpu" in
18237       hppa*64*|ia64*)
18238         # +Z the default
18239         ;;
18240       *)
18241         lt_prog_compiler_pic_GCJ='+Z'
18242         ;;
18243       esac
18244       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18245       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18246       ;;
18247
18248     irix5* | irix6* | nonstopux*)
18249       lt_prog_compiler_wl_GCJ='-Wl,'
18250       # PIC (with -KPIC) is the default.
18251       lt_prog_compiler_static_GCJ='-non_shared'
18252       ;;
18253
18254     newsos6)
18255       lt_prog_compiler_pic_GCJ='-KPIC'
18256       lt_prog_compiler_static_GCJ='-Bstatic'
18257       ;;
18258
18259     linux*)
18260       case $cc_basename in
18261       icc* | ecc*)
18262         lt_prog_compiler_wl_GCJ='-Wl,'
18263         lt_prog_compiler_pic_GCJ='-KPIC'
18264         lt_prog_compiler_static_GCJ='-static'
18265         ;;
18266       pgcc* | pgf77* | pgf90*)
18267         # Portland Group compilers (*not* the Pentium gcc compiler,
18268         # which looks to be a dead project)
18269         lt_prog_compiler_wl_GCJ='-Wl,'
18270         lt_prog_compiler_pic_GCJ='-fpic'
18271         lt_prog_compiler_static_GCJ='-static'
18272         ;;
18273       ccc*)
18274         lt_prog_compiler_wl_GCJ='-Wl,'
18275         # All Alpha code is PIC.
18276         lt_prog_compiler_static_GCJ='-non_shared'
18277         ;;
18278       esac
18279       ;;
18280
18281     osf3* | osf4* | osf5*)
18282       lt_prog_compiler_wl_GCJ='-Wl,'
18283       # All OSF/1 code is PIC.
18284       lt_prog_compiler_static_GCJ='-non_shared'
18285       ;;
18286
18287     sco3.2v5*)
18288       lt_prog_compiler_pic_GCJ='-Kpic'
18289       lt_prog_compiler_static_GCJ='-dn'
18290       ;;
18291
18292     solaris*)
18293       lt_prog_compiler_pic_GCJ='-KPIC'
18294       lt_prog_compiler_static_GCJ='-Bstatic'
18295       case $cc_basename in
18296       f77* | f90* | f95*)
18297         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18298       *)
18299         lt_prog_compiler_wl_GCJ='-Wl,';;
18300       esac
18301       ;;
18302
18303     sunos4*)
18304       lt_prog_compiler_wl_GCJ='-Qoption ld '
18305       lt_prog_compiler_pic_GCJ='-PIC'
18306       lt_prog_compiler_static_GCJ='-Bstatic'
18307       ;;
18308
18309     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18310       lt_prog_compiler_wl_GCJ='-Wl,'
18311       lt_prog_compiler_pic_GCJ='-KPIC'
18312       lt_prog_compiler_static_GCJ='-Bstatic'
18313       ;;
18314
18315     sysv4*MP*)
18316       if test -d /usr/nec ;then
18317         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18318         lt_prog_compiler_static_GCJ='-Bstatic'
18319       fi
18320       ;;
18321
18322     unicos*)
18323       lt_prog_compiler_wl_GCJ='-Wl,'
18324       lt_prog_compiler_can_build_shared_GCJ=no
18325       ;;
18326
18327     uts4*)
18328       lt_prog_compiler_pic_GCJ='-pic'
18329       lt_prog_compiler_static_GCJ='-Bstatic'
18330       ;;
18331
18332     *)
18333       lt_prog_compiler_can_build_shared_GCJ=no
18334       ;;
18335     esac
18336   fi
18337
18338 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18339 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18340
18341 #
18342 # Check to make sure the PIC flag actually works.
18343 #
18344 if test -n "$lt_prog_compiler_pic_GCJ"; then
18345
18346 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18348 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18349   echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351   lt_prog_compiler_pic_works_GCJ=no
18352   ac_outfile=conftest.$ac_objext
18353    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18354    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18355    # Insert the option either (1) after the last *FLAGS variable, or
18356    # (2) before a word containing "conftest.", or (3) at the end.
18357    # Note that $ac_compile itself does not contain backslashes and begins
18358    # with a dollar sign (not a hyphen), so the echo should work correctly.
18359    # The option is referenced via a variable to avoid confusing sed.
18360    lt_compile=`echo "$ac_compile" | $SED \
18361    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18363    -e 's:$: $lt_compiler_flag:'`
18364    (eval echo "\"\$as_me:18364: $lt_compile\"" >&5)
18365    (eval "$lt_compile" 2>conftest.err)
18366    ac_status=$?
18367    cat conftest.err >&5
18368    echo "$as_me:18368: \$? = $ac_status" >&5
18369    if (exit $ac_status) && test -s "$ac_outfile"; then
18370      # The compiler can only warn and ignore the option if not recognized
18371      # So say no if there are warnings other than the usual output.
18372      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18373      $SED '/^$/d' conftest.err >conftest.er2
18374      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18375        lt_prog_compiler_pic_works_GCJ=yes
18376      fi
18377    fi
18378    $rm conftest*
18379
18380 fi
18381 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18382 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18383
18384 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18385     case $lt_prog_compiler_pic_GCJ in
18386      "" | " "*) ;;
18387      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18388      esac
18389 else
18390     lt_prog_compiler_pic_GCJ=
18391      lt_prog_compiler_can_build_shared_GCJ=no
18392 fi
18393
18394 fi
18395 case "$host_os" in
18396   # For platforms which do not support PIC, -DPIC is meaningless:
18397   *djgpp*)
18398     lt_prog_compiler_pic_GCJ=
18399     ;;
18400   *)
18401     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18402     ;;
18403 esac
18404
18405 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18406 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18407 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18408   echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410   lt_cv_prog_compiler_c_o_GCJ=no
18411    $rm -r conftest 2>/dev/null
18412    mkdir conftest
18413    cd conftest
18414    mkdir out
18415    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18416
18417    lt_compiler_flag="-o out/conftest2.$ac_objext"
18418    # Insert the option either (1) after the last *FLAGS variable, or
18419    # (2) before a word containing "conftest.", or (3) at the end.
18420    # Note that $ac_compile itself does not contain backslashes and begins
18421    # with a dollar sign (not a hyphen), so the echo should work correctly.
18422    lt_compile=`echo "$ac_compile" | $SED \
18423    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18425    -e 's:$: $lt_compiler_flag:'`
18426    (eval echo "\"\$as_me:18426: $lt_compile\"" >&5)
18427    (eval "$lt_compile" 2>out/conftest.err)
18428    ac_status=$?
18429    cat out/conftest.err >&5
18430    echo "$as_me:18430: \$? = $ac_status" >&5
18431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18432    then
18433      # The compiler can only warn and ignore the option if not recognized
18434      # So say no if there are warnings
18435      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18436      $SED '/^$/d' out/conftest.err >out/conftest.er2
18437      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18438        lt_cv_prog_compiler_c_o_GCJ=yes
18439      fi
18440    fi
18441    chmod u+w .
18442    $rm conftest*
18443    # SGI C++ compiler will create directory out/ii_files/ for
18444    # template instantiation
18445    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18446    $rm out/* && rmdir out
18447    cd ..
18448    rmdir conftest
18449    $rm conftest*
18450
18451 fi
18452 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18453 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18454
18455
18456 hard_links="nottested"
18457 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18458   # do not overwrite the value of need_locks provided by the user
18459   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18460 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18461   hard_links=yes
18462   $rm conftest*
18463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18464   touch conftest.a
18465   ln conftest.a conftest.b 2>&5 || hard_links=no
18466   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18467   echo "$as_me:$LINENO: result: $hard_links" >&5
18468 echo "${ECHO_T}$hard_links" >&6
18469   if test "$hard_links" = no; then
18470     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18471 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18472     need_locks=warn
18473   fi
18474 else
18475   need_locks=no
18476 fi
18477
18478 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18479 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18480
18481   runpath_var=
18482   allow_undefined_flag_GCJ=
18483   enable_shared_with_static_runtimes_GCJ=no
18484   archive_cmds_GCJ=
18485   archive_expsym_cmds_GCJ=
18486   old_archive_From_new_cmds_GCJ=
18487   old_archive_from_expsyms_cmds_GCJ=
18488   export_dynamic_flag_spec_GCJ=
18489   whole_archive_flag_spec_GCJ=
18490   thread_safe_flag_spec_GCJ=
18491   hardcode_libdir_flag_spec_GCJ=
18492   hardcode_libdir_flag_spec_ld_GCJ=
18493   hardcode_libdir_separator_GCJ=
18494   hardcode_direct_GCJ=no
18495   hardcode_minus_L_GCJ=no
18496   hardcode_shlibpath_var_GCJ=unsupported
18497   link_all_deplibs_GCJ=unknown
18498   hardcode_automatic_GCJ=no
18499   module_cmds_GCJ=
18500   module_expsym_cmds_GCJ=
18501   always_export_symbols_GCJ=no
18502   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18503   # include_expsyms should be a list of space-separated symbols to be *always*
18504   # included in the symbol list
18505   include_expsyms_GCJ=
18506   # exclude_expsyms can be an extended regexp of symbols to exclude
18507   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18508   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18509   # as well as any symbol that contains `d'.
18510   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18511   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18512   # platforms (ab)use it in PIC code, but their linkers get confused if
18513   # the symbol is explicitly referenced.  Since portable code cannot
18514   # rely on this symbol name, it's probably fine to never include it in
18515   # preloaded symbol tables.
18516   extract_expsyms_cmds=
18517   # Just being paranoid about ensuring that cc_basename is set.
18518   for cc_temp in $compiler""; do
18519   case $cc_temp in
18520     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18521     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18522     \-*) ;;
18523     *) break;;
18524   esac
18525 done
18526 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18527
18528   case $host_os in
18529   cygwin* | mingw* | pw32*)
18530     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18531     # When not using gcc, we currently assume that we are using
18532     # Microsoft Visual C++.
18533     if test "$GCC" != yes; then
18534       with_gnu_ld=no
18535     fi
18536     ;;
18537   openbsd*)
18538     with_gnu_ld=no
18539     ;;
18540   esac
18541
18542   ld_shlibs_GCJ=yes
18543   if test "$with_gnu_ld" = yes; then
18544     # If archive_cmds runs LD, not CC, wlarc should be empty
18545     wlarc='${wl}'
18546
18547     # Set some defaults for GNU ld with shared library support. These
18548     # are reset later if shared libraries are not supported. Putting them
18549     # here allows them to be overridden if necessary.
18550     runpath_var=LD_RUN_PATH
18551     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18552     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18553     # ancient GNU ld didn't support --whole-archive et. al.
18554     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18555         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18556       else
18557         whole_archive_flag_spec_GCJ=
18558     fi
18559     supports_anon_versioning=no
18560     case `$LD -v 2>/dev/null` in
18561       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18562       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18563       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18564       *\ 2.11.*) ;; # other 2.11 versions
18565       *) supports_anon_versioning=yes ;;
18566     esac
18567
18568     # See if GNU ld supports shared libraries.
18569     case $host_os in
18570     aix3* | aix4* | aix5*)
18571       # On AIX/PPC, the GNU linker is very broken
18572       if test "$host_cpu" != ia64; then
18573         ld_shlibs_GCJ=no
18574         cat <<EOF 1>&2
18575
18576 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18577 *** to be unable to reliably create shared libraries on AIX.
18578 *** Therefore, libtool is disabling shared libraries support.  If you
18579 *** really care for shared libraries, you may want to modify your PATH
18580 *** so that a non-GNU linker is found, and then restart.
18581
18582 EOF
18583       fi
18584       ;;
18585
18586     amigaos*)
18587       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)'
18588       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18589       hardcode_minus_L_GCJ=yes
18590
18591       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18592       # that the semantics of dynamic libraries on AmigaOS, at least up
18593       # to version 4, is to share data among multiple programs linked
18594       # with the same dynamic library.  Since this doesn't match the
18595       # behavior of shared libraries on other platforms, we can't use
18596       # them.
18597       ld_shlibs_GCJ=no
18598       ;;
18599
18600     beos*)
18601       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18602         allow_undefined_flag_GCJ=unsupported
18603         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18604         # support --undefined.  This deserves some investigation.  FIXME
18605         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606       else
18607         ld_shlibs_GCJ=no
18608       fi
18609       ;;
18610
18611     cygwin* | mingw* | pw32*)
18612       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18613       # as there is no search path for DLLs.
18614       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18615       allow_undefined_flag_GCJ=unsupported
18616       always_export_symbols_GCJ=no
18617       enable_shared_with_static_runtimes_GCJ=yes
18618       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18619
18620       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18621         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18622         # If the export-symbols file already is a .def file (1st line
18623         # is EXPORTS), use it as is; otherwise, prepend...
18624         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18625           cp $export_symbols $output_objdir/$soname.def;
18626         else
18627           echo EXPORTS > $output_objdir/$soname.def;
18628           cat $export_symbols >> $output_objdir/$soname.def;
18629         fi~
18630         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18631       else
18632         ld_shlibs_GCJ=no
18633       fi
18634       ;;
18635
18636     linux*)
18637       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18638         tmp_addflag=
18639         case $cc_basename,$host_cpu in
18640         pgcc*)                          # Portland Group C compiler
18641           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'
18642           tmp_addflag=' $pic_flag'
18643           ;;
18644         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18645           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'
18646           tmp_addflag=' $pic_flag -Mnomain' ;;
18647         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18648           tmp_addflag=' -i_dynamic' ;;
18649         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18650           tmp_addflag=' -i_dynamic -nofor_main' ;;
18651         ifc* | ifort*)                  # Intel Fortran compiler
18652           tmp_addflag=' -nofor_main' ;;
18653         esac
18654         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655
18656         if test $supports_anon_versioning = yes; then
18657           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18658   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18659   $echo "local: *; };" >> $output_objdir/$libname.ver~
18660           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18661         fi
18662       else
18663         ld_shlibs_GCJ=no
18664       fi
18665       ;;
18666
18667     netbsd*)
18668       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18669         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18670         wlarc=
18671       else
18672         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18673         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18674       fi
18675       ;;
18676
18677     solaris* | sysv5*)
18678       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18679         ld_shlibs_GCJ=no
18680         cat <<EOF 1>&2
18681
18682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18683 *** create shared libraries on Solaris systems.  Therefore, libtool
18684 *** is disabling shared libraries support.  We urge you to upgrade GNU
18685 *** binutils to release 2.9.1 or newer.  Another option is to modify
18686 *** your PATH or compiler configuration so that the native linker is
18687 *** used, and then restart.
18688
18689 EOF
18690       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18691         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18693       else
18694         ld_shlibs_GCJ=no
18695       fi
18696       ;;
18697
18698     sunos4*)
18699       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18700       wlarc=
18701       hardcode_direct_GCJ=yes
18702       hardcode_shlibpath_var_GCJ=no
18703       ;;
18704
18705     *)
18706       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18707         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18708         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18709       else
18710         ld_shlibs_GCJ=no
18711       fi
18712       ;;
18713     esac
18714
18715     if test "$ld_shlibs_GCJ" = no; then
18716       runpath_var=
18717       hardcode_libdir_flag_spec_GCJ=
18718       export_dynamic_flag_spec_GCJ=
18719       whole_archive_flag_spec_GCJ=
18720     fi
18721   else
18722     # PORTME fill in a description of your system's linker (not GNU ld)
18723     case $host_os in
18724     aix3*)
18725       allow_undefined_flag_GCJ=unsupported
18726       always_export_symbols_GCJ=yes
18727       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'
18728       # Note: this linker hardcodes the directories in LIBPATH if there
18729       # are no directories specified by -L.
18730       hardcode_minus_L_GCJ=yes
18731       if test "$GCC" = yes && test -z "$link_static_flag"; then
18732         # Neither direct hardcoding nor static linking is supported with a
18733         # broken collect2.
18734         hardcode_direct_GCJ=unsupported
18735       fi
18736       ;;
18737
18738     aix4* | aix5*)
18739       if test "$host_cpu" = ia64; then
18740         # On IA64, the linker does run time linking by default, so we don't
18741         # have to do anything special.
18742         aix_use_runtimelinking=no
18743         exp_sym_flag='-Bexport'
18744         no_entry_flag=""
18745       else
18746         # If we're using GNU nm, then we don't want the "-C" option.
18747         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18748         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18749           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'
18750         else
18751           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'
18752         fi
18753         aix_use_runtimelinking=no
18754
18755         # Test if we are trying to use run time linking or normal
18756         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18757         # need to do runtime linking.
18758         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18759           for ld_flag in $LDFLAGS; do
18760           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18761             aix_use_runtimelinking=yes
18762             break
18763           fi
18764           done
18765         esac
18766
18767         exp_sym_flag='-bexport'
18768         no_entry_flag='-bnoentry'
18769       fi
18770
18771       # When large executables or shared objects are built, AIX ld can
18772       # have problems creating the table of contents.  If linking a library
18773       # or program results in "error TOC overflow" add -mminimal-toc to
18774       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18775       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18776
18777       archive_cmds_GCJ=''
18778       hardcode_direct_GCJ=yes
18779       hardcode_libdir_separator_GCJ=':'
18780       link_all_deplibs_GCJ=yes
18781
18782       if test "$GCC" = yes; then
18783         case $host_os in aix4.[012]|aix4.[012].*)
18784         # We only want to do this on AIX 4.2 and lower, the check
18785         # below for broken collect2 doesn't work under 4.3+
18786           collect2name=`${CC} -print-prog-name=collect2`
18787           if test -f "$collect2name" && \
18788            strings "$collect2name" | grep resolve_lib_name >/dev/null
18789           then
18790           # We have reworked collect2
18791           hardcode_direct_GCJ=yes
18792           else
18793           # We have old collect2
18794           hardcode_direct_GCJ=unsupported
18795           # It fails to find uninstalled libraries when the uninstalled
18796           # path is not listed in the libpath.  Setting hardcode_minus_L
18797           # to unsupported forces relinking
18798           hardcode_minus_L_GCJ=yes
18799           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18800           hardcode_libdir_separator_GCJ=
18801           fi
18802         esac
18803         shared_flag='-shared'
18804         if test "$aix_use_runtimelinking" = yes; then
18805           shared_flag="$shared_flag "'${wl}-G'
18806         fi
18807       else
18808         # not using gcc
18809         if test "$host_cpu" = ia64; then
18810         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18811         # chokes on -Wl,-G. The following line is correct:
18812           shared_flag='-G'
18813         else
18814         if test "$aix_use_runtimelinking" = yes; then
18815             shared_flag='${wl}-G'
18816           else
18817             shared_flag='${wl}-bM:SRE'
18818         fi
18819         fi
18820       fi
18821
18822       # It seems that -bexpall does not export symbols beginning with
18823       # underscore (_), so it is better to generate a list of symbols to export.
18824       always_export_symbols_GCJ=yes
18825       if test "$aix_use_runtimelinking" = yes; then
18826         # Warning - without using the other runtime loading flags (-brtl),
18827         # -berok will link without error, but may produce a broken library.
18828         allow_undefined_flag_GCJ='-berok'
18829        # Determine the default libpath from the value encoded in an empty executable.
18830        cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837 int
18838 main ()
18839 {
18840
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18847   (eval $ac_link) 2>conftest.er1
18848   ac_status=$?
18849   grep -v '^ *+' conftest.er1 >conftest.err
18850   rm -f conftest.er1
18851   cat conftest.err >&5
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); } &&
18854          { ac_try='test -z "$ac_c_werror_flag"
18855                          || test ! -s conftest.err'
18856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857   (eval $ac_try) 2>&5
18858   ac_status=$?
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); }; } &&
18861          { ac_try='test -s conftest$ac_exeext'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; }; then
18867
18868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18869 }'`
18870 # Check for a 64-bit object if we didn't find anything.
18871 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; }
18872 }'`; fi
18873 else
18874   echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877 fi
18878 rm -f conftest.err conftest.$ac_objext \
18879       conftest$ac_exeext conftest.$ac_ext
18880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18881
18882        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18883         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"
18884        else
18885         if test "$host_cpu" = ia64; then
18886           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18887           allow_undefined_flag_GCJ="-z nodefs"
18888           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"
18889         else
18890          # Determine the default libpath from the value encoded in an empty executable.
18891          cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897
18898 int
18899 main ()
18900 {
18901
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext conftest$ac_exeext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908   (eval $ac_link) 2>conftest.er1
18909   ac_status=$?
18910   grep -v '^ *+' conftest.er1 >conftest.err
18911   rm -f conftest.er1
18912   cat conftest.err >&5
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); } &&
18915          { ac_try='test -z "$ac_c_werror_flag"
18916                          || test ! -s conftest.err'
18917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918   (eval $ac_try) 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; } &&
18922          { ac_try='test -s conftest$ac_exeext'
18923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924   (eval $ac_try) 2>&5
18925   ac_status=$?
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); }; }; then
18928
18929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18930 }'`
18931 # Check for a 64-bit object if we didn't find anything.
18932 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; }
18933 }'`; fi
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 fi
18939 rm -f conftest.err conftest.$ac_objext \
18940       conftest$ac_exeext conftest.$ac_ext
18941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18942
18943          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18944           # Warning - without using the other run time loading flags,
18945           # -berok will link without error, but may produce a broken library.
18946           no_undefined_flag_GCJ=' ${wl}-bernotok'
18947           allow_undefined_flag_GCJ=' ${wl}-berok'
18948           # -bexpall does not export symbols beginning with underscore (_)
18949           always_export_symbols_GCJ=yes
18950           # Exported symbols can be pulled into shared objects from archives
18951           whole_archive_flag_spec_GCJ=' '
18952           archive_cmds_need_lc_GCJ=yes
18953           # This is similar to how AIX traditionally builds it's shared libraries.
18954           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'
18955         fi
18956       fi
18957       ;;
18958
18959     amigaos*)
18960       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)'
18961       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18962       hardcode_minus_L_GCJ=yes
18963       # see comment about different semantics on the GNU ld section
18964       ld_shlibs_GCJ=no
18965       ;;
18966
18967     bsdi[45]*)
18968       export_dynamic_flag_spec_GCJ=-rdynamic
18969       ;;
18970
18971     cygwin* | mingw* | pw32*)
18972       # When not using gcc, we currently assume that we are using
18973       # Microsoft Visual C++.
18974       # hardcode_libdir_flag_spec is actually meaningless, as there is
18975       # no search path for DLLs.
18976       hardcode_libdir_flag_spec_GCJ=' '
18977       allow_undefined_flag_GCJ=unsupported
18978       # Tell ltmain to make .lib files, not .a files.
18979       libext=lib
18980       # Tell ltmain to make .dll files, not .so files.
18981       shrext_cmds=".dll"
18982       # FIXME: Setting linknames here is a bad hack.
18983       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18984       # The linker will automatically build a .lib file if we build a DLL.
18985       old_archive_From_new_cmds_GCJ='true'
18986       # FIXME: Should let the user specify the lib program.
18987       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18988       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18989       enable_shared_with_static_runtimes_GCJ=yes
18990       ;;
18991
18992     darwin* | rhapsody*)
18993       case "$host_os" in
18994         rhapsody* | darwin1.[012])
18995          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18996          ;;
18997        *) # Darwin 1.3 on
18998          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18999            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19000          else
19001            case ${MACOSX_DEPLOYMENT_TARGET} in
19002              10.[012])
19003                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19004                ;;
19005              10.*)
19006                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19007                ;;
19008            esac
19009          fi
19010          ;;
19011       esac
19012       archive_cmds_need_lc_GCJ=no
19013       hardcode_direct_GCJ=no
19014       hardcode_automatic_GCJ=yes
19015       hardcode_shlibpath_var_GCJ=unsupported
19016       whole_archive_flag_spec_GCJ=''
19017       link_all_deplibs_GCJ=yes
19018     if test "$GCC" = yes ; then
19019         output_verbose_link_cmd='echo'
19020         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19021       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19022       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19023       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}'
19024       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}'
19025     else
19026       case $cc_basename in
19027         xlc*)
19028          output_verbose_link_cmd='echo'
19029          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19030          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19031           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19032          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}'
19033           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}'
19034           ;;
19035        *)
19036          ld_shlibs_GCJ=no
19037           ;;
19038       esac
19039     fi
19040       ;;
19041
19042     dgux*)
19043       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19044       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19045       hardcode_shlibpath_var_GCJ=no
19046       ;;
19047
19048     freebsd1*)
19049       ld_shlibs_GCJ=no
19050       ;;
19051
19052     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19053     # support.  Future versions do this automatically, but an explicit c++rt0.o
19054     # does not break anything, and helps significantly (at the cost of a little
19055     # extra space).
19056     freebsd2.2*)
19057       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19058       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19059       hardcode_direct_GCJ=yes
19060       hardcode_shlibpath_var_GCJ=no
19061       ;;
19062
19063     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19064     freebsd2*)
19065       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19066       hardcode_direct_GCJ=yes
19067       hardcode_minus_L_GCJ=yes
19068       hardcode_shlibpath_var_GCJ=no
19069       ;;
19070
19071     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19072     freebsd* | kfreebsd*-gnu | dragonfly*)
19073       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19074       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19075       hardcode_direct_GCJ=yes
19076       hardcode_shlibpath_var_GCJ=no
19077       ;;
19078
19079     hpux9*)
19080       if test "$GCC" = yes; then
19081         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'
19082       else
19083         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'
19084       fi
19085       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19086       hardcode_libdir_separator_GCJ=:
19087       hardcode_direct_GCJ=yes
19088
19089       # hardcode_minus_L: Not really in the search PATH,
19090       # but as the default location of the library.
19091       hardcode_minus_L_GCJ=yes
19092       export_dynamic_flag_spec_GCJ='${wl}-E'
19093       ;;
19094
19095     hpux10* | hpux11*)
19096       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19097         case "$host_cpu" in
19098         hppa*64*|ia64*)
19099           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19100           ;;
19101         *)
19102           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19103           ;;
19104         esac
19105       else
19106         case "$host_cpu" in
19107         hppa*64*|ia64*)
19108           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19109           ;;
19110         *)
19111           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19112           ;;
19113         esac
19114       fi
19115       if test "$with_gnu_ld" = no; then
19116         case "$host_cpu" in
19117         hppa*64*)
19118           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19119           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19120           hardcode_libdir_separator_GCJ=:
19121           hardcode_direct_GCJ=no
19122           hardcode_shlibpath_var_GCJ=no
19123           ;;
19124         ia64*)
19125           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19126           hardcode_direct_GCJ=no
19127           hardcode_shlibpath_var_GCJ=no
19128
19129           # hardcode_minus_L: Not really in the search PATH,
19130           # but as the default location of the library.
19131           hardcode_minus_L_GCJ=yes
19132           ;;
19133         *)
19134           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19135           hardcode_libdir_separator_GCJ=:
19136           hardcode_direct_GCJ=yes
19137           export_dynamic_flag_spec_GCJ='${wl}-E'
19138
19139           # hardcode_minus_L: Not really in the search PATH,
19140           # but as the default location of the library.
19141           hardcode_minus_L_GCJ=yes
19142           ;;
19143         esac
19144       fi
19145       ;;
19146
19147     irix5* | irix6* | nonstopux*)
19148       if test "$GCC" = yes; then
19149         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'
19150       else
19151         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'
19152         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19153       fi
19154       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19155       hardcode_libdir_separator_GCJ=:
19156       link_all_deplibs_GCJ=yes
19157       ;;
19158
19159     netbsd*)
19160       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19161         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19162       else
19163         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19164       fi
19165       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19166       hardcode_direct_GCJ=yes
19167       hardcode_shlibpath_var_GCJ=no
19168       ;;
19169
19170     newsos6)
19171       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19172       hardcode_direct_GCJ=yes
19173       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19174       hardcode_libdir_separator_GCJ=:
19175       hardcode_shlibpath_var_GCJ=no
19176       ;;
19177
19178     openbsd*)
19179       hardcode_direct_GCJ=yes
19180       hardcode_shlibpath_var_GCJ=no
19181       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19182         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19183         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19184         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19185         export_dynamic_flag_spec_GCJ='${wl}-E'
19186       else
19187        case $host_os in
19188          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19189            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19190            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19191            ;;
19192          *)
19193            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19194            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19195            ;;
19196        esac
19197       fi
19198       ;;
19199
19200     os2*)
19201       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19202       hardcode_minus_L_GCJ=yes
19203       allow_undefined_flag_GCJ=unsupported
19204       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'
19205       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19206       ;;
19207
19208     osf3*)
19209       if test "$GCC" = yes; then
19210         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19211         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'
19212       else
19213         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19214         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'
19215       fi
19216       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19217       hardcode_libdir_separator_GCJ=:
19218       ;;
19219
19220     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19221       if test "$GCC" = yes; then
19222         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19223         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'
19224         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19225       else
19226         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19227         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'
19228         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~
19229         $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'
19230
19231         # Both c and cxx compiler support -rpath directly
19232         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19233       fi
19234       hardcode_libdir_separator_GCJ=:
19235       ;;
19236
19237     sco3.2v5*)
19238       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19239       hardcode_shlibpath_var_GCJ=no
19240       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19241       runpath_var=LD_RUN_PATH
19242       hardcode_runpath_var=yes
19243       ;;
19244
19245     solaris*)
19246       no_undefined_flag_GCJ=' -z text'
19247       if test "$GCC" = yes; then
19248         wlarc='${wl}'
19249         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19250         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19251           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19252       else
19253         wlarc=''
19254         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19255         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19257       fi
19258       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19259       hardcode_shlibpath_var_GCJ=no
19260       case $host_os in
19261       solaris2.[0-5] | solaris2.[0-5].*) ;;
19262       *)
19263         # The compiler driver will combine linker options so we
19264         # cannot just pass the convience library names through
19265         # without $wl, iff we do not link with $LD.
19266         # Luckily, gcc supports the same syntax we need for Sun Studio.
19267         # Supported since Solaris 2.6 (maybe 2.5.1?)
19268         case $wlarc in
19269         '')
19270           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19271         *)
19272           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' ;;
19273         esac ;;
19274       esac
19275       link_all_deplibs_GCJ=yes
19276       ;;
19277
19278     sunos4*)
19279       if test "x$host_vendor" = xsequent; then
19280         # Use $CC to link under sequent, because it throws in some extra .o
19281         # files that make .init and .fini sections work.
19282         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19283       else
19284         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19285       fi
19286       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19287       hardcode_direct_GCJ=yes
19288       hardcode_minus_L_GCJ=yes
19289       hardcode_shlibpath_var_GCJ=no
19290       ;;
19291
19292     sysv4)
19293       case $host_vendor in
19294         sni)
19295           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19296           hardcode_direct_GCJ=yes # is this really true???
19297         ;;
19298         siemens)
19299           ## LD is ld it makes a PLAMLIB
19300           ## CC just makes a GrossModule.
19301           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19302           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19303           hardcode_direct_GCJ=no
19304         ;;
19305         motorola)
19306           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19307           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19308         ;;
19309       esac
19310       runpath_var='LD_RUN_PATH'
19311       hardcode_shlibpath_var_GCJ=no
19312       ;;
19313
19314     sysv4.3*)
19315       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19316       hardcode_shlibpath_var_GCJ=no
19317       export_dynamic_flag_spec_GCJ='-Bexport'
19318       ;;
19319
19320     sysv4*MP*)
19321       if test -d /usr/nec; then
19322         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19323         hardcode_shlibpath_var_GCJ=no
19324         runpath_var=LD_RUN_PATH
19325         hardcode_runpath_var=yes
19326         ld_shlibs_GCJ=yes
19327       fi
19328       ;;
19329
19330     sysv4.2uw2*)
19331       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19332       hardcode_direct_GCJ=yes
19333       hardcode_minus_L_GCJ=no
19334       hardcode_shlibpath_var_GCJ=no
19335       hardcode_runpath_var=yes
19336       runpath_var=LD_RUN_PATH
19337       ;;
19338
19339    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19340       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19341       if test "$GCC" = yes; then
19342         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19343       else
19344         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19345       fi
19346       runpath_var='LD_RUN_PATH'
19347       hardcode_shlibpath_var_GCJ=no
19348       ;;
19349
19350     sysv5*)
19351       no_undefined_flag_GCJ=' -z text'
19352       # $CC -shared without GNU ld will not create a library from C++
19353       # object files and a static libstdc++, better avoid it by now
19354       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19355       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19356                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19357       hardcode_libdir_flag_spec_GCJ=
19358       hardcode_shlibpath_var_GCJ=no
19359       runpath_var='LD_RUN_PATH'
19360       ;;
19361
19362     uts4*)
19363       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19364       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19365       hardcode_shlibpath_var_GCJ=no
19366       ;;
19367
19368     *)
19369       ld_shlibs_GCJ=no
19370       ;;
19371     esac
19372   fi
19373
19374 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19375 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19376 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19377
19378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19379 if test "$GCC" = yes; then
19380   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19381 fi
19382
19383 #
19384 # Do we need to explicitly link libc?
19385 #
19386 case "x$archive_cmds_need_lc_GCJ" in
19387 x|xyes)
19388   # Assume -lc should be added
19389   archive_cmds_need_lc_GCJ=yes
19390
19391   if test "$enable_shared" = yes && test "$GCC" = yes; then
19392     case $archive_cmds_GCJ in
19393     *'~'*)
19394       # FIXME: we may have to deal with multi-command sequences.
19395       ;;
19396     '$CC '*)
19397       # Test whether the compiler implicitly links with -lc since on some
19398       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19399       # to ld, don't add -lc before -lgcc.
19400       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19401 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19402       $rm conftest*
19403       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19404
19405       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406   (eval $ac_compile) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } 2>conftest.err; then
19410         soname=conftest
19411         lib=conftest
19412         libobjs=conftest.$ac_objext
19413         deplibs=
19414         wl=$lt_prog_compiler_wl_GCJ
19415         compiler_flags=-v
19416         linker_flags=-v
19417         verstring=
19418         output_objdir=.
19419         libname=conftest
19420         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19421         allow_undefined_flag_GCJ=
19422         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19423   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }
19427         then
19428           archive_cmds_need_lc_GCJ=no
19429         else
19430           archive_cmds_need_lc_GCJ=yes
19431         fi
19432         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19433       else
19434         cat conftest.err 1>&5
19435       fi
19436       $rm conftest*
19437       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19438 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19439       ;;
19440     esac
19441   fi
19442   ;;
19443 esac
19444
19445 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19446 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19447 library_names_spec=
19448 libname_spec='lib$name'
19449 soname_spec=
19450 shrext_cmds=".so"
19451 postinstall_cmds=
19452 postuninstall_cmds=
19453 finish_cmds=
19454 finish_eval=
19455 shlibpath_var=
19456 shlibpath_overrides_runpath=unknown
19457 version_type=none
19458 dynamic_linker="$host_os ld.so"
19459 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19460 if test "$GCC" = yes; then
19461   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19462   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19463     # if the path contains ";" then we assume it to be the separator
19464     # otherwise default to the standard path separator (i.e. ":") - it is
19465     # assumed that no part of a normal pathname contains ";" but that should
19466     # okay in the real world where ";" in dirpaths is itself problematic.
19467     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19468   else
19469     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19470   fi
19471 else
19472   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19473 fi
19474 need_lib_prefix=unknown
19475 hardcode_into_libs=no
19476
19477 # when you set need_version to no, make sure it does not cause -set_version
19478 # flags to be left without arguments
19479 need_version=unknown
19480
19481 case $host_os in
19482 aix3*)
19483   version_type=linux
19484   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19485   shlibpath_var=LIBPATH
19486
19487   # AIX 3 has no versioning support, so we append a major version to the name.
19488   soname_spec='${libname}${release}${shared_ext}$major'
19489   ;;
19490
19491 aix4* | aix5*)
19492   version_type=linux
19493   need_lib_prefix=no
19494   need_version=no
19495   hardcode_into_libs=yes
19496   if test "$host_cpu" = ia64; then
19497     # AIX 5 supports IA64
19498     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19499     shlibpath_var=LD_LIBRARY_PATH
19500   else
19501     # With GCC up to 2.95.x, collect2 would create an import file
19502     # for dependence libraries.  The import file would start with
19503     # the line `#! .'.  This would cause the generated library to
19504     # depend on `.', always an invalid library.  This was fixed in
19505     # development snapshots of GCC prior to 3.0.
19506     case $host_os in
19507       aix4 | aix4.[01] | aix4.[01].*)
19508       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19509            echo ' yes '
19510            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19511         :
19512       else
19513         can_build_shared=no
19514       fi
19515       ;;
19516     esac
19517     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19518     # soname into executable. Probably we can add versioning support to
19519     # collect2, so additional links can be useful in future.
19520     if test "$aix_use_runtimelinking" = yes; then
19521       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19522       # instead of lib<name>.a to let people know that these are not
19523       # typical AIX shared libraries.
19524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525     else
19526       # We preserve .a as extension for shared libraries through AIX4.2
19527       # and later when we are not doing run time linking.
19528       library_names_spec='${libname}${release}.a $libname.a'
19529       soname_spec='${libname}${release}${shared_ext}$major'
19530     fi
19531     shlibpath_var=LIBPATH
19532   fi
19533   ;;
19534
19535 amigaos*)
19536   library_names_spec='$libname.ixlibrary $libname.a'
19537   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19538   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'
19539   ;;
19540
19541 beos*)
19542   library_names_spec='${libname}${shared_ext}'
19543   dynamic_linker="$host_os ld.so"
19544   shlibpath_var=LIBRARY_PATH
19545   ;;
19546
19547 bsdi[45]*)
19548   version_type=linux
19549   need_version=no
19550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551   soname_spec='${libname}${release}${shared_ext}$major'
19552   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19553   shlibpath_var=LD_LIBRARY_PATH
19554   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19555   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19556   # the default ld.so.conf also contains /usr/contrib/lib and
19557   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19558   # libtool to hard-code these into programs
19559   ;;
19560
19561 cygwin* | mingw* | pw32*)
19562   version_type=windows
19563   shrext_cmds=".dll"
19564   need_version=no
19565   need_lib_prefix=no
19566
19567   case $GCC,$host_os in
19568   yes,cygwin* | yes,mingw* | yes,pw32*)
19569     library_names_spec='$libname.dll.a'
19570     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19571     postinstall_cmds='base_file=`basename \${file}`~
19572       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19573       dldir=$destdir/`dirname \$dlpath`~
19574       test -d \$dldir || mkdir -p \$dldir~
19575       $install_prog $dir/$dlname \$dldir/$dlname'
19576     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19577       dlpath=$dir/\$dldll~
19578        $rm \$dlpath'
19579     shlibpath_overrides_runpath=yes
19580
19581     case $host_os in
19582     cygwin*)
19583       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19584       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19585       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19586       ;;
19587     mingw*)
19588       # MinGW DLLs use traditional 'lib' prefix
19589       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19590       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19591       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19592         # It is most probably a Windows format PATH printed by
19593         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19594         # path with ; separators, and with drive letters. We can handle the
19595         # drive letters (cygwin fileutils understands them), so leave them,
19596         # especially as we might pass files found there to a mingw objdump,
19597         # which wouldn't understand a cygwinified path. Ahh.
19598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19599       else
19600         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19601       fi
19602       ;;
19603     pw32*)
19604       # pw32 DLLs use 'pw' prefix rather than 'lib'
19605       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19606       ;;
19607     esac
19608     ;;
19609
19610   *)
19611     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19612     ;;
19613   esac
19614   dynamic_linker='Win32 ld.exe'
19615   # FIXME: first we should search . and the directory the executable is in
19616   shlibpath_var=PATH
19617   ;;
19618
19619 darwin* | rhapsody*)
19620   dynamic_linker="$host_os dyld"
19621   version_type=darwin
19622   need_lib_prefix=no
19623   need_version=no
19624   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19625   soname_spec='${libname}${release}${major}$shared_ext'
19626   shlibpath_overrides_runpath=yes
19627   shlibpath_var=DYLD_LIBRARY_PATH
19628   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19629   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19630   if test "$GCC" = yes; then
19631     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"`
19632   else
19633     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19634   fi
19635   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19636   ;;
19637
19638 dgux*)
19639   version_type=linux
19640   need_lib_prefix=no
19641   need_version=no
19642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19643   soname_spec='${libname}${release}${shared_ext}$major'
19644   shlibpath_var=LD_LIBRARY_PATH
19645   ;;
19646
19647 freebsd1*)
19648   dynamic_linker=no
19649   ;;
19650
19651 kfreebsd*-gnu)
19652   version_type=linux
19653   need_lib_prefix=no
19654   need_version=no
19655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19656   soname_spec='${libname}${release}${shared_ext}$major'
19657   shlibpath_var=LD_LIBRARY_PATH
19658   shlibpath_overrides_runpath=no
19659   hardcode_into_libs=yes
19660   dynamic_linker='GNU ld.so'
19661   ;;
19662
19663 freebsd* | dragonfly*)
19664   # DragonFly does not have aout.  When/if they implement a new
19665   # versioning mechanism, adjust this.
19666   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19667   version_type=freebsd-$objformat
19668   case $version_type in
19669     freebsd-elf*)
19670       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19671       need_version=no
19672       need_lib_prefix=no
19673       ;;
19674     freebsd-*)
19675       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19676       need_version=yes
19677       ;;
19678   esac
19679   shlibpath_var=LD_LIBRARY_PATH
19680   case $host_os in
19681   freebsd2*)
19682     shlibpath_overrides_runpath=yes
19683     ;;
19684   freebsd3.[01]* | freebsdelf3.[01]*)
19685     shlibpath_overrides_runpath=yes
19686     hardcode_into_libs=yes
19687     ;;
19688   *) # from 3.2 on
19689     shlibpath_overrides_runpath=no
19690     hardcode_into_libs=yes
19691     ;;
19692   esac
19693   ;;
19694
19695 gnu*)
19696   version_type=linux
19697   need_lib_prefix=no
19698   need_version=no
19699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19700   soname_spec='${libname}${release}${shared_ext}$major'
19701   shlibpath_var=LD_LIBRARY_PATH
19702   hardcode_into_libs=yes
19703   ;;
19704
19705 hpux9* | hpux10* | hpux11*)
19706   # Give a soname corresponding to the major version so that dld.sl refuses to
19707   # link against other versions.
19708   version_type=sunos
19709   need_lib_prefix=no
19710   need_version=no
19711   case "$host_cpu" in
19712   ia64*)
19713     shrext_cmds='.so'
19714     hardcode_into_libs=yes
19715     dynamic_linker="$host_os dld.so"
19716     shlibpath_var=LD_LIBRARY_PATH
19717     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719     soname_spec='${libname}${release}${shared_ext}$major'
19720     if test "X$HPUX_IA64_MODE" = X32; then
19721       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19722     else
19723       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19724     fi
19725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19726     ;;
19727    hppa*64*)
19728      shrext_cmds='.sl'
19729      hardcode_into_libs=yes
19730      dynamic_linker="$host_os dld.sl"
19731      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19732      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19733      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734      soname_spec='${libname}${release}${shared_ext}$major'
19735      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19736      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19737      ;;
19738    *)
19739     shrext_cmds='.sl'
19740     dynamic_linker="$host_os dld.sl"
19741     shlibpath_var=SHLIB_PATH
19742     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19744     soname_spec='${libname}${release}${shared_ext}$major'
19745     ;;
19746   esac
19747   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19748   postinstall_cmds='chmod 555 $lib'
19749   ;;
19750
19751 irix5* | irix6* | nonstopux*)
19752   case $host_os in
19753     nonstopux*) version_type=nonstopux ;;
19754     *)
19755         if test "$lt_cv_prog_gnu_ld" = yes; then
19756                 version_type=linux
19757         else
19758                 version_type=irix
19759         fi ;;
19760   esac
19761   need_lib_prefix=no
19762   need_version=no
19763   soname_spec='${libname}${release}${shared_ext}$major'
19764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19765   case $host_os in
19766   irix5* | nonstopux*)
19767     libsuff= shlibsuff=
19768     ;;
19769   *)
19770     case $LD in # libtool.m4 will add one of these switches to LD
19771     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19772       libsuff= shlibsuff= libmagic=32-bit;;
19773     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19774       libsuff=32 shlibsuff=N32 libmagic=N32;;
19775     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19776       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19777     *) libsuff= shlibsuff= libmagic=never-match;;
19778     esac
19779     ;;
19780   esac
19781   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19782   shlibpath_overrides_runpath=no
19783   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19784   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19785   hardcode_into_libs=yes
19786   ;;
19787
19788 # No shared lib support for Linux oldld, aout, or coff.
19789 linux*oldld* | linux*aout* | linux*coff*)
19790   dynamic_linker=no
19791   ;;
19792
19793 # This must be Linux ELF.
19794 linux*)
19795   version_type=linux
19796   need_lib_prefix=no
19797   need_version=no
19798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19799   soname_spec='${libname}${release}${shared_ext}$major'
19800   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19801   shlibpath_var=LD_LIBRARY_PATH
19802   shlibpath_overrides_runpath=no
19803   # This implies no fast_install, which is unacceptable.
19804   # Some rework will be needed to allow for fast_install
19805   # before this can be enabled.
19806   hardcode_into_libs=yes
19807
19808   # Append ld.so.conf contents to the search path
19809   if test -f /etc/ld.so.conf; then
19810     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' ' '`
19811     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19812   fi
19813
19814   # We used to test for /lib/ld.so.1 and disable shared libraries on
19815   # powerpc, because MkLinux only supported shared libraries with the
19816   # GNU dynamic linker.  Since this was broken with cross compilers,
19817   # most powerpc-linux boxes support dynamic linking these days and
19818   # people can always --disable-shared, the test was removed, and we
19819   # assume the GNU/Linux dynamic linker is in use.
19820   dynamic_linker='GNU/Linux ld.so'
19821   ;;
19822
19823 knetbsd*-gnu)
19824   version_type=linux
19825   need_lib_prefix=no
19826   need_version=no
19827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19828   soname_spec='${libname}${release}${shared_ext}$major'
19829   shlibpath_var=LD_LIBRARY_PATH
19830   shlibpath_overrides_runpath=no
19831   hardcode_into_libs=yes
19832   dynamic_linker='GNU ld.so'
19833   ;;
19834
19835 netbsd*)
19836   version_type=sunos
19837   need_lib_prefix=no
19838   need_version=no
19839   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19841     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19842     dynamic_linker='NetBSD (a.out) ld.so'
19843   else
19844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19845     soname_spec='${libname}${release}${shared_ext}$major'
19846     dynamic_linker='NetBSD ld.elf_so'
19847   fi
19848   shlibpath_var=LD_LIBRARY_PATH
19849   shlibpath_overrides_runpath=yes
19850   hardcode_into_libs=yes
19851   ;;
19852
19853 newsos6)
19854   version_type=linux
19855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19856   shlibpath_var=LD_LIBRARY_PATH
19857   shlibpath_overrides_runpath=yes
19858   ;;
19859
19860 nto-qnx*)
19861   version_type=linux
19862   need_lib_prefix=no
19863   need_version=no
19864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19865   soname_spec='${libname}${release}${shared_ext}$major'
19866   shlibpath_var=LD_LIBRARY_PATH
19867   shlibpath_overrides_runpath=yes
19868   ;;
19869
19870 openbsd*)
19871   version_type=sunos
19872   need_lib_prefix=no
19873   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19874   case $host_os in
19875     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19876     *)                         need_version=no  ;;
19877   esac
19878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19879   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19880   shlibpath_var=LD_LIBRARY_PATH
19881   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19882     case $host_os in
19883       openbsd2.[89] | openbsd2.[89].*)
19884         shlibpath_overrides_runpath=no
19885         ;;
19886       *)
19887         shlibpath_overrides_runpath=yes
19888         ;;
19889       esac
19890   else
19891     shlibpath_overrides_runpath=yes
19892   fi
19893   ;;
19894
19895 os2*)
19896   libname_spec='$name'
19897   shrext_cmds=".dll"
19898   need_lib_prefix=no
19899   library_names_spec='$libname${shared_ext} $libname.a'
19900   dynamic_linker='OS/2 ld.exe'
19901   shlibpath_var=LIBPATH
19902   ;;
19903
19904 osf3* | osf4* | osf5*)
19905   version_type=osf
19906   need_lib_prefix=no
19907   need_version=no
19908   soname_spec='${libname}${release}${shared_ext}$major'
19909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19910   shlibpath_var=LD_LIBRARY_PATH
19911   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19912   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19913   ;;
19914
19915 sco3.2v5*)
19916   version_type=osf
19917   soname_spec='${libname}${release}${shared_ext}$major'
19918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19919   shlibpath_var=LD_LIBRARY_PATH
19920   ;;
19921
19922 solaris*)
19923   version_type=linux
19924   need_lib_prefix=no
19925   need_version=no
19926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927   soname_spec='${libname}${release}${shared_ext}$major'
19928   shlibpath_var=LD_LIBRARY_PATH
19929   shlibpath_overrides_runpath=yes
19930   hardcode_into_libs=yes
19931   # ldd complains unless libraries are executable
19932   postinstall_cmds='chmod +x $lib'
19933   ;;
19934
19935 sunos4*)
19936   version_type=sunos
19937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19938   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19939   shlibpath_var=LD_LIBRARY_PATH
19940   shlibpath_overrides_runpath=yes
19941   if test "$with_gnu_ld" = yes; then
19942     need_lib_prefix=no
19943   fi
19944   need_version=yes
19945   ;;
19946
19947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19948   version_type=linux
19949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950   soname_spec='${libname}${release}${shared_ext}$major'
19951   shlibpath_var=LD_LIBRARY_PATH
19952   case $host_vendor in
19953     sni)
19954       shlibpath_overrides_runpath=no
19955       need_lib_prefix=no
19956       export_dynamic_flag_spec='${wl}-Blargedynsym'
19957       runpath_var=LD_RUN_PATH
19958       ;;
19959     siemens)
19960       need_lib_prefix=no
19961       ;;
19962     motorola)
19963       need_lib_prefix=no
19964       need_version=no
19965       shlibpath_overrides_runpath=no
19966       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19967       ;;
19968   esac
19969   ;;
19970
19971 sysv4*MP*)
19972   if test -d /usr/nec ;then
19973     version_type=linux
19974     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19975     soname_spec='$libname${shared_ext}.$major'
19976     shlibpath_var=LD_LIBRARY_PATH
19977   fi
19978   ;;
19979
19980 uts4*)
19981   version_type=linux
19982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19983   soname_spec='${libname}${release}${shared_ext}$major'
19984   shlibpath_var=LD_LIBRARY_PATH
19985   ;;
19986
19987 *)
19988   dynamic_linker=no
19989   ;;
19990 esac
19991 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19992 echo "${ECHO_T}$dynamic_linker" >&6
19993 test "$dynamic_linker" = no && can_build_shared=no
19994
19995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19997 hardcode_action_GCJ=
19998 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19999    test -n "$runpath_var_GCJ" || \
20000    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20001
20002   # We can hardcode non-existant directories.
20003   if test "$hardcode_direct_GCJ" != no &&
20004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20005      # have to relink, otherwise we might link with an installed library
20006      # when we should be linking with a yet-to-be-installed one
20007      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20008      test "$hardcode_minus_L_GCJ" != no; then
20009     # Linking always hardcodes the temporary library directory.
20010     hardcode_action_GCJ=relink
20011   else
20012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20013     hardcode_action_GCJ=immediate
20014   fi
20015 else
20016   # We cannot hardcode anything, or else we can only hardcode existing
20017   # directories.
20018   hardcode_action_GCJ=unsupported
20019 fi
20020 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20021 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20022
20023 if test "$hardcode_action_GCJ" = relink; then
20024   # Fast installation is not supported
20025   enable_fast_install=no
20026 elif test "$shlibpath_overrides_runpath" = yes ||
20027      test "$enable_shared" = no; then
20028   # Fast installation is not necessary
20029   enable_fast_install=needless
20030 fi
20031
20032 striplib=
20033 old_striplib=
20034 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20035 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20036 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20037   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20038   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20039   echo "$as_me:$LINENO: result: yes" >&5
20040 echo "${ECHO_T}yes" >&6
20041 else
20042 # FIXME - insert some real tests, host_os isn't really good enough
20043   case $host_os in
20044    darwin*)
20045        if test -n "$STRIP" ; then
20046          striplib="$STRIP -x"
20047          echo "$as_me:$LINENO: result: yes" >&5
20048 echo "${ECHO_T}yes" >&6
20049        else
20050   echo "$as_me:$LINENO: result: no" >&5
20051 echo "${ECHO_T}no" >&6
20052 fi
20053        ;;
20054    *)
20055   echo "$as_me:$LINENO: result: no" >&5
20056 echo "${ECHO_T}no" >&6
20057     ;;
20058   esac
20059 fi
20060
20061 if test "x$enable_dlopen" != xyes; then
20062   enable_dlopen=unknown
20063   enable_dlopen_self=unknown
20064   enable_dlopen_self_static=unknown
20065 else
20066   lt_cv_dlopen=no
20067   lt_cv_dlopen_libs=
20068
20069   case $host_os in
20070   beos*)
20071     lt_cv_dlopen="load_add_on"
20072     lt_cv_dlopen_libs=
20073     lt_cv_dlopen_self=yes
20074     ;;
20075
20076   mingw* | pw32*)
20077     lt_cv_dlopen="LoadLibrary"
20078     lt_cv_dlopen_libs=
20079    ;;
20080
20081   cygwin*)
20082     lt_cv_dlopen="dlopen"
20083     lt_cv_dlopen_libs=
20084    ;;
20085
20086   darwin*)
20087   # if libdl is installed we need to link against it
20088     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   ac_check_lib_save_LIBS=$LIBS
20094 LIBS="-ldl  $LIBS"
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101
20102 /* Override any gcc2 internal prototype to avoid an error.  */
20103 #ifdef __cplusplus
20104 extern "C"
20105 #endif
20106 /* We use char because int might match the return type of a gcc2
20107    builtin and then its argument prototype would still apply.  */
20108 char dlopen ();
20109 int
20110 main ()
20111 {
20112 dlopen ();
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20119   (eval $ac_link) 2>conftest.er1
20120   ac_status=$?
20121   grep -v '^ *+' conftest.er1 >conftest.err
20122   rm -f conftest.er1
20123   cat conftest.err >&5
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); } &&
20126          { ac_try='test -z "$ac_c_werror_flag"
20127                          || test ! -s conftest.err'
20128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129   (eval $ac_try) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); }; } &&
20133          { ac_try='test -s conftest$ac_exeext'
20134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135   (eval $ac_try) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; }; then
20139   ac_cv_lib_dl_dlopen=yes
20140 else
20141   echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144 ac_cv_lib_dl_dlopen=no
20145 fi
20146 rm -f conftest.err conftest.$ac_objext \
20147       conftest$ac_exeext conftest.$ac_ext
20148 LIBS=$ac_check_lib_save_LIBS
20149 fi
20150 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20152 if test $ac_cv_lib_dl_dlopen = yes; then
20153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20154 else
20155
20156     lt_cv_dlopen="dyld"
20157     lt_cv_dlopen_libs=
20158     lt_cv_dlopen_self=yes
20159
20160 fi
20161
20162    ;;
20163
20164   *)
20165     echo "$as_me:$LINENO: checking for shl_load" >&5
20166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20167 if test "${ac_cv_func_shl_load+set}" = set; then
20168   echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170   cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20178 #define shl_load innocuous_shl_load
20179
20180 /* System header to define __stub macros and hopefully few prototypes,
20181     which can conflict with char shl_load (); below.
20182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20183     <limits.h> exists even on freestanding compilers.  */
20184
20185 #ifdef __STDC__
20186 # include <limits.h>
20187 #else
20188 # include <assert.h>
20189 #endif
20190
20191 #undef shl_load
20192
20193 /* Override any gcc2 internal prototype to avoid an error.  */
20194 #ifdef __cplusplus
20195 extern "C"
20196 {
20197 #endif
20198 /* We use char because int might match the return type of a gcc2
20199    builtin and then its argument prototype would still apply.  */
20200 char shl_load ();
20201 /* The GNU C library defines this for functions which it implements
20202     to always fail with ENOSYS.  Some functions are actually named
20203     something starting with __ and the normal name is an alias.  */
20204 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20205 choke me
20206 #else
20207 char (*f) () = shl_load;
20208 #endif
20209 #ifdef __cplusplus
20210 }
20211 #endif
20212
20213 int
20214 main ()
20215 {
20216 return f != shl_load;
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20223   (eval $ac_link) 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } &&
20230          { ac_try='test -z "$ac_c_werror_flag"
20231                          || test ! -s conftest.err'
20232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233   (eval $ac_try) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; } &&
20237          { ac_try='test -s conftest$ac_exeext'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_func_shl_load=yes
20244 else
20245   echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_cv_func_shl_load=no
20249 fi
20250 rm -f conftest.err conftest.$ac_objext \
20251       conftest$ac_exeext conftest.$ac_ext
20252 fi
20253 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20254 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20255 if test $ac_cv_func_shl_load = yes; then
20256   lt_cv_dlopen="shl_load"
20257 else
20258   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20259 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20260 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263   ac_check_lib_save_LIBS=$LIBS
20264 LIBS="-ldld  $LIBS"
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h.  */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h.  */
20271
20272 /* Override any gcc2 internal prototype to avoid an error.  */
20273 #ifdef __cplusplus
20274 extern "C"
20275 #endif
20276 /* We use char because int might match the return type of a gcc2
20277    builtin and then its argument prototype would still apply.  */
20278 char shl_load ();
20279 int
20280 main ()
20281 {
20282 shl_load ();
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289   (eval $ac_link) 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } &&
20296          { ac_try='test -z "$ac_c_werror_flag"
20297                          || test ! -s conftest.err'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; } &&
20303          { ac_try='test -s conftest$ac_exeext'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; }; then
20309   ac_cv_lib_dld_shl_load=yes
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_cv_lib_dld_shl_load=no
20315 fi
20316 rm -f conftest.err conftest.$ac_objext \
20317       conftest$ac_exeext conftest.$ac_ext
20318 LIBS=$ac_check_lib_save_LIBS
20319 fi
20320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20321 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20322 if test $ac_cv_lib_dld_shl_load = yes; then
20323   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20324 else
20325   echo "$as_me:$LINENO: checking for dlopen" >&5
20326 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20327 if test "${ac_cv_func_dlopen+set}" = set; then
20328   echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20338 #define dlopen innocuous_dlopen
20339
20340 /* System header to define __stub macros and hopefully few prototypes,
20341     which can conflict with char dlopen (); below.
20342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20343     <limits.h> exists even on freestanding compilers.  */
20344
20345 #ifdef __STDC__
20346 # include <limits.h>
20347 #else
20348 # include <assert.h>
20349 #endif
20350
20351 #undef dlopen
20352
20353 /* Override any gcc2 internal prototype to avoid an error.  */
20354 #ifdef __cplusplus
20355 extern "C"
20356 {
20357 #endif
20358 /* We use char because int might match the return type of a gcc2
20359    builtin and then its argument prototype would still apply.  */
20360 char dlopen ();
20361 /* The GNU C library defines this for functions which it implements
20362     to always fail with ENOSYS.  Some functions are actually named
20363     something starting with __ and the normal name is an alias.  */
20364 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20365 choke me
20366 #else
20367 char (*f) () = dlopen;
20368 #endif
20369 #ifdef __cplusplus
20370 }
20371 #endif
20372
20373 int
20374 main ()
20375 {
20376 return f != dlopen;
20377   ;
20378   return 0;
20379 }
20380 _ACEOF
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383   (eval $ac_link) 2>conftest.er1
20384   ac_status=$?
20385   grep -v '^ *+' conftest.er1 >conftest.err
20386   rm -f conftest.er1
20387   cat conftest.err >&5
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } &&
20390          { ac_try='test -z "$ac_c_werror_flag"
20391                          || test ! -s conftest.err'
20392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393   (eval $ac_try) 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; } &&
20397          { ac_try='test -s conftest$ac_exeext'
20398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399   (eval $ac_try) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; }; then
20403   ac_cv_func_dlopen=yes
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408 ac_cv_func_dlopen=no
20409 fi
20410 rm -f conftest.err conftest.$ac_objext \
20411       conftest$ac_exeext conftest.$ac_ext
20412 fi
20413 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20414 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20415 if test $ac_cv_func_dlopen = yes; then
20416   lt_cv_dlopen="dlopen"
20417 else
20418   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20421   echo $ECHO_N "(cached) $ECHO_C" >&6
20422 else
20423   ac_check_lib_save_LIBS=$LIBS
20424 LIBS="-ldl  $LIBS"
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20431
20432 /* Override any gcc2 internal prototype to avoid an error.  */
20433 #ifdef __cplusplus
20434 extern "C"
20435 #endif
20436 /* We use char because int might match the return type of a gcc2
20437    builtin and then its argument prototype would still apply.  */
20438 char dlopen ();
20439 int
20440 main ()
20441 {
20442 dlopen ();
20443   ;
20444   return 0;
20445 }
20446 _ACEOF
20447 rm -f conftest.$ac_objext conftest$ac_exeext
20448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20449   (eval $ac_link) 2>conftest.er1
20450   ac_status=$?
20451   grep -v '^ *+' conftest.er1 >conftest.err
20452   rm -f conftest.er1
20453   cat conftest.err >&5
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); } &&
20456          { ac_try='test -z "$ac_c_werror_flag"
20457                          || test ! -s conftest.err'
20458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459   (eval $ac_try) 2>&5
20460   ac_status=$?
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); }; } &&
20463          { ac_try='test -s conftest$ac_exeext'
20464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465   (eval $ac_try) 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; }; then
20469   ac_cv_lib_dl_dlopen=yes
20470 else
20471   echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_cv_lib_dl_dlopen=no
20475 fi
20476 rm -f conftest.err conftest.$ac_objext \
20477       conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20479 fi
20480 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20481 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20482 if test $ac_cv_lib_dl_dlopen = yes; then
20483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20484 else
20485   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20486 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20487 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20488   echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490   ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lsvld  $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498
20499 /* Override any gcc2 internal prototype to avoid an error.  */
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 /* We use char because int might match the return type of a gcc2
20504    builtin and then its argument prototype would still apply.  */
20505 char dlopen ();
20506 int
20507 main ()
20508 {
20509 dlopen ();
20510   ;
20511   return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516   (eval $ac_link) 2>conftest.er1
20517   ac_status=$?
20518   grep -v '^ *+' conftest.er1 >conftest.err
20519   rm -f conftest.er1
20520   cat conftest.err >&5
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } &&
20523          { ac_try='test -z "$ac_c_werror_flag"
20524                          || test ! -s conftest.err'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; } &&
20530          { ac_try='test -s conftest$ac_exeext'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; }; then
20536   ac_cv_lib_svld_dlopen=yes
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541 ac_cv_lib_svld_dlopen=no
20542 fi
20543 rm -f conftest.err conftest.$ac_objext \
20544       conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20546 fi
20547 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20548 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20549 if test $ac_cv_lib_svld_dlopen = yes; then
20550   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20551 else
20552   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20553 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20554 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   ac_check_lib_save_LIBS=$LIBS
20558 LIBS="-ldld  $LIBS"
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565
20566 /* Override any gcc2 internal prototype to avoid an error.  */
20567 #ifdef __cplusplus
20568 extern "C"
20569 #endif
20570 /* We use char because int might match the return type of a gcc2
20571    builtin and then its argument prototype would still apply.  */
20572 char dld_link ();
20573 int
20574 main ()
20575 {
20576 dld_link ();
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583   (eval $ac_link) 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } &&
20590          { ac_try='test -z "$ac_c_werror_flag"
20591                          || test ! -s conftest.err'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; } &&
20597          { ac_try='test -s conftest$ac_exeext'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; }; then
20603   ac_cv_lib_dld_dld_link=yes
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_lib_dld_dld_link=no
20609 fi
20610 rm -f conftest.err conftest.$ac_objext \
20611       conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20613 fi
20614 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20615 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20616 if test $ac_cv_lib_dld_dld_link = yes; then
20617   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20618 fi
20619
20620
20621 fi
20622
20623
20624 fi
20625
20626
20627 fi
20628
20629
20630 fi
20631
20632
20633 fi
20634
20635     ;;
20636   esac
20637
20638   if test "x$lt_cv_dlopen" != xno; then
20639     enable_dlopen=yes
20640   else
20641     enable_dlopen=no
20642   fi
20643
20644   case $lt_cv_dlopen in
20645   dlopen)
20646     save_CPPFLAGS="$CPPFLAGS"
20647     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20648
20649     save_LDFLAGS="$LDFLAGS"
20650     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20651
20652     save_LIBS="$LIBS"
20653     LIBS="$lt_cv_dlopen_libs $LIBS"
20654
20655     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20656 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20657 if test "${lt_cv_dlopen_self+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660           if test "$cross_compiling" = yes; then :
20661   lt_cv_dlopen_self=cross
20662 else
20663   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20664   lt_status=$lt_dlunknown
20665   cat > conftest.$ac_ext <<EOF
20666 #line 20666 "configure"
20667 #include "confdefs.h"
20668
20669 #if HAVE_DLFCN_H
20670 #include <dlfcn.h>
20671 #endif
20672
20673 #include <stdio.h>
20674
20675 #ifdef RTLD_GLOBAL
20676 #  define LT_DLGLOBAL           RTLD_GLOBAL
20677 #else
20678 #  ifdef DL_GLOBAL
20679 #    define LT_DLGLOBAL         DL_GLOBAL
20680 #  else
20681 #    define LT_DLGLOBAL         0
20682 #  endif
20683 #endif
20684
20685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20686    find out it does not work in some platform. */
20687 #ifndef LT_DLLAZY_OR_NOW
20688 #  ifdef RTLD_LAZY
20689 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20690 #  else
20691 #    ifdef DL_LAZY
20692 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20693 #    else
20694 #      ifdef RTLD_NOW
20695 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20696 #      else
20697 #        ifdef DL_NOW
20698 #          define LT_DLLAZY_OR_NOW      DL_NOW
20699 #        else
20700 #          define LT_DLLAZY_OR_NOW      0
20701 #        endif
20702 #      endif
20703 #    endif
20704 #  endif
20705 #endif
20706
20707 #ifdef __cplusplus
20708 extern "C" void exit (int);
20709 #endif
20710
20711 void fnord() { int i=42;}
20712 int main ()
20713 {
20714   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20715   int status = $lt_dlunknown;
20716
20717   if (self)
20718     {
20719       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20720       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20721       /* dlclose (self); */
20722     }
20723
20724     exit (status);
20725 }
20726 EOF
20727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728   (eval $ac_link) 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20732     (./conftest; exit; ) 2>/dev/null
20733     lt_status=$?
20734     case x$lt_status in
20735       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20736       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20737       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20738     esac
20739   else :
20740     # compilation failed
20741     lt_cv_dlopen_self=no
20742   fi
20743 fi
20744 rm -fr conftest*
20745
20746
20747 fi
20748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20749 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20750
20751     if test "x$lt_cv_dlopen_self" = xyes; then
20752       LDFLAGS="$LDFLAGS $link_static_flag"
20753       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20754 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20755 if test "${lt_cv_dlopen_self_static+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758           if test "$cross_compiling" = yes; then :
20759   lt_cv_dlopen_self_static=cross
20760 else
20761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20762   lt_status=$lt_dlunknown
20763   cat > conftest.$ac_ext <<EOF
20764 #line 20764 "configure"
20765 #include "confdefs.h"
20766
20767 #if HAVE_DLFCN_H
20768 #include <dlfcn.h>
20769 #endif
20770
20771 #include <stdio.h>
20772
20773 #ifdef RTLD_GLOBAL
20774 #  define LT_DLGLOBAL           RTLD_GLOBAL
20775 #else
20776 #  ifdef DL_GLOBAL
20777 #    define LT_DLGLOBAL         DL_GLOBAL
20778 #  else
20779 #    define LT_DLGLOBAL         0
20780 #  endif
20781 #endif
20782
20783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20784    find out it does not work in some platform. */
20785 #ifndef LT_DLLAZY_OR_NOW
20786 #  ifdef RTLD_LAZY
20787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20788 #  else
20789 #    ifdef DL_LAZY
20790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20791 #    else
20792 #      ifdef RTLD_NOW
20793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20794 #      else
20795 #        ifdef DL_NOW
20796 #          define LT_DLLAZY_OR_NOW      DL_NOW
20797 #        else
20798 #          define LT_DLLAZY_OR_NOW      0
20799 #        endif
20800 #      endif
20801 #    endif
20802 #  endif
20803 #endif
20804
20805 #ifdef __cplusplus
20806 extern "C" void exit (int);
20807 #endif
20808
20809 void fnord() { int i=42;}
20810 int main ()
20811 {
20812   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20813   int status = $lt_dlunknown;
20814
20815   if (self)
20816     {
20817       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20818       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20819       /* dlclose (self); */
20820     }
20821
20822     exit (status);
20823 }
20824 EOF
20825   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20826   (eval $ac_link) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20830     (./conftest; exit; ) 2>/dev/null
20831     lt_status=$?
20832     case x$lt_status in
20833       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20834       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20835       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20836     esac
20837   else :
20838     # compilation failed
20839     lt_cv_dlopen_self_static=no
20840   fi
20841 fi
20842 rm -fr conftest*
20843
20844
20845 fi
20846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20847 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20848     fi
20849
20850     CPPFLAGS="$save_CPPFLAGS"
20851     LDFLAGS="$save_LDFLAGS"
20852     LIBS="$save_LIBS"
20853     ;;
20854   esac
20855
20856   case $lt_cv_dlopen_self in
20857   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20858   *) enable_dlopen_self=unknown ;;
20859   esac
20860
20861   case $lt_cv_dlopen_self_static in
20862   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20863   *) enable_dlopen_self_static=unknown ;;
20864   esac
20865 fi
20866
20867
20868 # The else clause should only fire when bootstrapping the
20869 # libtool distribution, otherwise you forgot to ship ltmain.sh
20870 # with your package, and you will get complaints that there are
20871 # no rules to generate ltmain.sh.
20872 if test -f "$ltmain"; then
20873   # See if we are running on zsh, and set the options which allow our commands through
20874   # without removal of \ escapes.
20875   if test -n "${ZSH_VERSION+set}" ; then
20876     setopt NO_GLOB_SUBST
20877   fi
20878   # Now quote all the things that may contain metacharacters while being
20879   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20880   # variables and quote the copies for generation of the libtool script.
20881   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20882     SED SHELL STRIP \
20883     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20884     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20885     deplibs_check_method reload_flag reload_cmds need_locks \
20886     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20887     lt_cv_sys_global_symbol_to_c_name_address \
20888     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20889     old_postinstall_cmds old_postuninstall_cmds \
20890     compiler_GCJ \
20891     CC_GCJ \
20892     LD_GCJ \
20893     lt_prog_compiler_wl_GCJ \
20894     lt_prog_compiler_pic_GCJ \
20895     lt_prog_compiler_static_GCJ \
20896     lt_prog_compiler_no_builtin_flag_GCJ \
20897     export_dynamic_flag_spec_GCJ \
20898     thread_safe_flag_spec_GCJ \
20899     whole_archive_flag_spec_GCJ \
20900     enable_shared_with_static_runtimes_GCJ \
20901     old_archive_cmds_GCJ \
20902     old_archive_from_new_cmds_GCJ \
20903     predep_objects_GCJ \
20904     postdep_objects_GCJ \
20905     predeps_GCJ \
20906     postdeps_GCJ \
20907     compiler_lib_search_path_GCJ \
20908     archive_cmds_GCJ \
20909     archive_expsym_cmds_GCJ \
20910     postinstall_cmds_GCJ \
20911     postuninstall_cmds_GCJ \
20912     old_archive_from_expsyms_cmds_GCJ \
20913     allow_undefined_flag_GCJ \
20914     no_undefined_flag_GCJ \
20915     export_symbols_cmds_GCJ \
20916     hardcode_libdir_flag_spec_GCJ \
20917     hardcode_libdir_flag_spec_ld_GCJ \
20918     hardcode_libdir_separator_GCJ \
20919     hardcode_automatic_GCJ \
20920     module_cmds_GCJ \
20921     module_expsym_cmds_GCJ \
20922     lt_cv_prog_compiler_c_o_GCJ \
20923     exclude_expsyms_GCJ \
20924     include_expsyms_GCJ; do
20925
20926     case $var in
20927     old_archive_cmds_GCJ | \
20928     old_archive_from_new_cmds_GCJ | \
20929     archive_cmds_GCJ | \
20930     archive_expsym_cmds_GCJ | \
20931     module_cmds_GCJ | \
20932     module_expsym_cmds_GCJ | \
20933     old_archive_from_expsyms_cmds_GCJ | \
20934     export_symbols_cmds_GCJ | \
20935     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20936     postinstall_cmds | postuninstall_cmds | \
20937     old_postinstall_cmds | old_postuninstall_cmds | \
20938     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20939       # Double-quote double-evaled strings.
20940       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20941       ;;
20942     *)
20943       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20944       ;;
20945     esac
20946   done
20947
20948   case $lt_echo in
20949   *'\$0 --fallback-echo"')
20950     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20951     ;;
20952   esac
20953
20954 cfgfile="$ofile"
20955
20956   cat <<__EOF__ >> "$cfgfile"
20957 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20958
20959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20960
20961 # Shell to use when invoking shell scripts.
20962 SHELL=$lt_SHELL
20963
20964 # Whether or not to build shared libraries.
20965 build_libtool_libs=$enable_shared
20966
20967 # Whether or not to build static libraries.
20968 build_old_libs=$enable_static
20969
20970 # Whether or not to add -lc for building shared libraries.
20971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20972
20973 # Whether or not to disallow shared libs when runtime libs are static
20974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20975
20976 # Whether or not to optimize for fast installation.
20977 fast_install=$enable_fast_install
20978
20979 # The host system.
20980 host_alias=$host_alias
20981 host=$host
20982 host_os=$host_os
20983
20984 # The build system.
20985 build_alias=$build_alias
20986 build=$build
20987 build_os=$build_os
20988
20989 # An echo program that does not interpret backslashes.
20990 echo=$lt_echo
20991
20992 # The archiver.
20993 AR=$lt_AR
20994 AR_FLAGS=$lt_AR_FLAGS
20995
20996 # A C compiler.
20997 LTCC=$lt_LTCC
20998
20999 # A language-specific compiler.
21000 CC=$lt_compiler_GCJ
21001
21002 # Is the compiler the GNU C compiler?
21003 with_gcc=$GCC_GCJ
21004
21005 # An ERE matcher.
21006 EGREP=$lt_EGREP
21007
21008 # The linker used to build libraries.
21009 LD=$lt_LD_GCJ
21010
21011 # Whether we need hard or soft links.
21012 LN_S=$lt_LN_S
21013
21014 # A BSD-compatible nm program.
21015 NM=$lt_NM
21016
21017 # A symbol stripping program
21018 STRIP=$lt_STRIP
21019
21020 # Used to examine libraries when file_magic_cmd begins "file"
21021 MAGIC_CMD=$MAGIC_CMD
21022
21023 # Used on cygwin: DLL creation program.
21024 DLLTOOL="$DLLTOOL"
21025
21026 # Used on cygwin: object dumper.
21027 OBJDUMP="$OBJDUMP"
21028
21029 # Used on cygwin: assembler.
21030 AS="$AS"
21031
21032 # The name of the directory that contains temporary libtool files.
21033 objdir=$objdir
21034
21035 # How to create reloadable object files.
21036 reload_flag=$lt_reload_flag
21037 reload_cmds=$lt_reload_cmds
21038
21039 # How to pass a linker flag through the compiler.
21040 wl=$lt_lt_prog_compiler_wl_GCJ
21041
21042 # Object file suffix (normally "o").
21043 objext="$ac_objext"
21044
21045 # Old archive suffix (normally "a").
21046 libext="$libext"
21047
21048 # Shared library suffix (normally ".so").
21049 shrext_cmds='$shrext_cmds'
21050
21051 # Executable file suffix (normally "").
21052 exeext="$exeext"
21053
21054 # Additional compiler flags for building library objects.
21055 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21056 pic_mode=$pic_mode
21057
21058 # What is the maximum length of a command?
21059 max_cmd_len=$lt_cv_sys_max_cmd_len
21060
21061 # Does compiler simultaneously support -c and -o options?
21062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21063
21064 # Must we lock files when doing compilation?
21065 need_locks=$lt_need_locks
21066
21067 # Do we need the lib prefix for modules?
21068 need_lib_prefix=$need_lib_prefix
21069
21070 # Do we need a version for libraries?
21071 need_version=$need_version
21072
21073 # Whether dlopen is supported.
21074 dlopen_support=$enable_dlopen
21075
21076 # Whether dlopen of programs is supported.
21077 dlopen_self=$enable_dlopen_self
21078
21079 # Whether dlopen of statically linked programs is supported.
21080 dlopen_self_static=$enable_dlopen_self_static
21081
21082 # Compiler flag to prevent dynamic linking.
21083 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21084
21085 # Compiler flag to turn off builtin functions.
21086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21087
21088 # Compiler flag to allow reflexive dlopens.
21089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21090
21091 # Compiler flag to generate shared objects directly from archives.
21092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21093
21094 # Compiler flag to generate thread-safe objects.
21095 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21096
21097 # Library versioning type.
21098 version_type=$version_type
21099
21100 # Format of library name prefix.
21101 libname_spec=$lt_libname_spec
21102
21103 # List of archive names.  First name is the real one, the rest are links.
21104 # The last name is the one that the linker finds with -lNAME.
21105 library_names_spec=$lt_library_names_spec
21106
21107 # The coded name of the library, if different from the real name.
21108 soname_spec=$lt_soname_spec
21109
21110 # Commands used to build and install an old-style archive.
21111 RANLIB=$lt_RANLIB
21112 old_archive_cmds=$lt_old_archive_cmds_GCJ
21113 old_postinstall_cmds=$lt_old_postinstall_cmds
21114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21115
21116 # Create an old-style archive from a shared archive.
21117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21118
21119 # Create a temporary old-style archive to link instead of a shared archive.
21120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21121
21122 # Commands used to build and install a shared archive.
21123 archive_cmds=$lt_archive_cmds_GCJ
21124 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21125 postinstall_cmds=$lt_postinstall_cmds
21126 postuninstall_cmds=$lt_postuninstall_cmds
21127
21128 # Commands used to build a loadable module (assumed same as above if empty)
21129 module_cmds=$lt_module_cmds_GCJ
21130 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21131
21132 # Commands to strip libraries.
21133 old_striplib=$lt_old_striplib
21134 striplib=$lt_striplib
21135
21136 # Dependencies to place before the objects being linked to create a
21137 # shared library.
21138 predep_objects=$lt_predep_objects_GCJ
21139
21140 # Dependencies to place after the objects being linked to create a
21141 # shared library.
21142 postdep_objects=$lt_postdep_objects_GCJ
21143
21144 # Dependencies to place before the objects being linked to create a
21145 # shared library.
21146 predeps=$lt_predeps_GCJ
21147
21148 # Dependencies to place after the objects being linked to create a
21149 # shared library.
21150 postdeps=$lt_postdeps_GCJ
21151
21152 # The library search path used internally by the compiler when linking
21153 # a shared library.
21154 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21155
21156 # Method to check whether dependent libraries are shared objects.
21157 deplibs_check_method=$lt_deplibs_check_method
21158
21159 # Command to use when deplibs_check_method == file_magic.
21160 file_magic_cmd=$lt_file_magic_cmd
21161
21162 # Flag that allows shared libraries with undefined symbols to be built.
21163 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21164
21165 # Flag that forces no undefined symbols.
21166 no_undefined_flag=$lt_no_undefined_flag_GCJ
21167
21168 # Commands used to finish a libtool library installation in a directory.
21169 finish_cmds=$lt_finish_cmds
21170
21171 # Same as above, but a single script fragment to be evaled but not shown.
21172 finish_eval=$lt_finish_eval
21173
21174 # Take the output of nm and produce a listing of raw symbols and C names.
21175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21176
21177 # Transform the output of nm in a proper C declaration
21178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21179
21180 # Transform the output of nm in a C name address pair
21181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21182
21183 # This is the shared library runtime path variable.
21184 runpath_var=$runpath_var
21185
21186 # This is the shared library path variable.
21187 shlibpath_var=$shlibpath_var
21188
21189 # Is shlibpath searched before the hard-coded library search path?
21190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21191
21192 # How to hardcode a shared library path into an executable.
21193 hardcode_action=$hardcode_action_GCJ
21194
21195 # Whether we should hardcode library paths into libraries.
21196 hardcode_into_libs=$hardcode_into_libs
21197
21198 # Flag to hardcode \$libdir into a binary during linking.
21199 # This must work even if \$libdir does not exist.
21200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21201
21202 # If ld is used when linking, flag to hardcode \$libdir into
21203 # a binary during linking. This must work even if \$libdir does
21204 # not exist.
21205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21206
21207 # Whether we need a single -rpath flag with a separated argument.
21208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21209
21210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21211 # resulting binary.
21212 hardcode_direct=$hardcode_direct_GCJ
21213
21214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21215 # resulting binary.
21216 hardcode_minus_L=$hardcode_minus_L_GCJ
21217
21218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21219 # the resulting binary.
21220 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21221
21222 # Set to yes if building a shared library automatically hardcodes DIR into the library
21223 # and all subsequent libraries and executables linked against it.
21224 hardcode_automatic=$hardcode_automatic_GCJ
21225
21226 # Variables whose values should be saved in libtool wrapper scripts and
21227 # restored at relink time.
21228 variables_saved_for_relink="$variables_saved_for_relink"
21229
21230 # Whether libtool must link a program against all its dependency libraries.
21231 link_all_deplibs=$link_all_deplibs_GCJ
21232
21233 # Compile-time system search path for libraries
21234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21235
21236 # Run-time system search path for libraries
21237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21238
21239 # Fix the shell variable \$srcfile for the compiler.
21240 fix_srcfile_path="$fix_srcfile_path_GCJ"
21241
21242 # Set to yes if exported symbols are required.
21243 always_export_symbols=$always_export_symbols_GCJ
21244
21245 # The commands to list exported symbols.
21246 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21247
21248 # The commands to extract the exported symbol list from a shared archive.
21249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21250
21251 # Symbols that should not be listed in the preloaded symbols.
21252 exclude_expsyms=$lt_exclude_expsyms_GCJ
21253
21254 # Symbols that must always be exported.
21255 include_expsyms=$lt_include_expsyms_GCJ
21256
21257 # ### END LIBTOOL TAG CONFIG: $tagname
21258
21259 __EOF__
21260
21261
21262 else
21263   # If there is no Makefile yet, we rely on a make rule to execute
21264   # `config.status --recheck' to rerun these tests and create the
21265   # libtool script then.
21266   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21267   if test -f "$ltmain_in"; then
21268     test -f Makefile && make "$ltmain"
21269   fi
21270 fi
21271
21272
21273 ac_ext=c
21274 ac_cpp='$CPP $CPPFLAGS'
21275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21278
21279 CC="$lt_save_CC"
21280
21281         else
21282           tagname=""
21283         fi
21284         ;;
21285
21286       RC)
21287
21288
21289
21290 # Source file extension for RC test sources.
21291 ac_ext=rc
21292
21293 # Object file extension for compiled RC test sources.
21294 objext=o
21295 objext_RC=$objext
21296
21297 # Code to be used in simple compile tests
21298 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21299
21300 # Code to be used in simple link tests
21301 lt_simple_link_test_code="$lt_simple_compile_test_code"
21302
21303 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21304
21305 # If no C compiler was specified, use CC.
21306 LTCC=${LTCC-"$CC"}
21307
21308 # Allow CC to be a program name with arguments.
21309 compiler=$CC
21310
21311
21312 # save warnings/boilerplate of simple test code
21313 ac_outfile=conftest.$ac_objext
21314 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21316 _lt_compiler_boilerplate=`cat conftest.err`
21317 $rm conftest*
21318
21319 ac_outfile=conftest.$ac_objext
21320 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21322 _lt_linker_boilerplate=`cat conftest.err`
21323 $rm conftest*
21324
21325
21326 # Allow CC to be a program name with arguments.
21327 lt_save_CC="$CC"
21328 CC=${RC-"windres"}
21329 compiler=$CC
21330 compiler_RC=$CC
21331 for cc_temp in $compiler""; do
21332   case $cc_temp in
21333     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21334     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21335     \-*) ;;
21336     *) break;;
21337   esac
21338 done
21339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21340
21341 lt_cv_prog_compiler_c_o_RC=yes
21342
21343 # The else clause should only fire when bootstrapping the
21344 # libtool distribution, otherwise you forgot to ship ltmain.sh
21345 # with your package, and you will get complaints that there are
21346 # no rules to generate ltmain.sh.
21347 if test -f "$ltmain"; then
21348   # See if we are running on zsh, and set the options which allow our commands through
21349   # without removal of \ escapes.
21350   if test -n "${ZSH_VERSION+set}" ; then
21351     setopt NO_GLOB_SUBST
21352   fi
21353   # Now quote all the things that may contain metacharacters while being
21354   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21355   # variables and quote the copies for generation of the libtool script.
21356   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21357     SED SHELL STRIP \
21358     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21359     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21360     deplibs_check_method reload_flag reload_cmds need_locks \
21361     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21362     lt_cv_sys_global_symbol_to_c_name_address \
21363     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21364     old_postinstall_cmds old_postuninstall_cmds \
21365     compiler_RC \
21366     CC_RC \
21367     LD_RC \
21368     lt_prog_compiler_wl_RC \
21369     lt_prog_compiler_pic_RC \
21370     lt_prog_compiler_static_RC \
21371     lt_prog_compiler_no_builtin_flag_RC \
21372     export_dynamic_flag_spec_RC \
21373     thread_safe_flag_spec_RC \
21374     whole_archive_flag_spec_RC \
21375     enable_shared_with_static_runtimes_RC \
21376     old_archive_cmds_RC \
21377     old_archive_from_new_cmds_RC \
21378     predep_objects_RC \
21379     postdep_objects_RC \
21380     predeps_RC \
21381     postdeps_RC \
21382     compiler_lib_search_path_RC \
21383     archive_cmds_RC \
21384     archive_expsym_cmds_RC \
21385     postinstall_cmds_RC \
21386     postuninstall_cmds_RC \
21387     old_archive_from_expsyms_cmds_RC \
21388     allow_undefined_flag_RC \
21389     no_undefined_flag_RC \
21390     export_symbols_cmds_RC \
21391     hardcode_libdir_flag_spec_RC \
21392     hardcode_libdir_flag_spec_ld_RC \
21393     hardcode_libdir_separator_RC \
21394     hardcode_automatic_RC \
21395     module_cmds_RC \
21396     module_expsym_cmds_RC \
21397     lt_cv_prog_compiler_c_o_RC \
21398     exclude_expsyms_RC \
21399     include_expsyms_RC; do
21400
21401     case $var in
21402     old_archive_cmds_RC | \
21403     old_archive_from_new_cmds_RC | \
21404     archive_cmds_RC | \
21405     archive_expsym_cmds_RC | \
21406     module_cmds_RC | \
21407     module_expsym_cmds_RC | \
21408     old_archive_from_expsyms_cmds_RC | \
21409     export_symbols_cmds_RC | \
21410     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21411     postinstall_cmds | postuninstall_cmds | \
21412     old_postinstall_cmds | old_postuninstall_cmds | \
21413     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21414       # Double-quote double-evaled strings.
21415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21416       ;;
21417     *)
21418       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21419       ;;
21420     esac
21421   done
21422
21423   case $lt_echo in
21424   *'\$0 --fallback-echo"')
21425     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21426     ;;
21427   esac
21428
21429 cfgfile="$ofile"
21430
21431   cat <<__EOF__ >> "$cfgfile"
21432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21433
21434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21435
21436 # Shell to use when invoking shell scripts.
21437 SHELL=$lt_SHELL
21438
21439 # Whether or not to build shared libraries.
21440 build_libtool_libs=$enable_shared
21441
21442 # Whether or not to build static libraries.
21443 build_old_libs=$enable_static
21444
21445 # Whether or not to add -lc for building shared libraries.
21446 build_libtool_need_lc=$archive_cmds_need_lc_RC
21447
21448 # Whether or not to disallow shared libs when runtime libs are static
21449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21450
21451 # Whether or not to optimize for fast installation.
21452 fast_install=$enable_fast_install
21453
21454 # The host system.
21455 host_alias=$host_alias
21456 host=$host
21457 host_os=$host_os
21458
21459 # The build system.
21460 build_alias=$build_alias
21461 build=$build
21462 build_os=$build_os
21463
21464 # An echo program that does not interpret backslashes.
21465 echo=$lt_echo
21466
21467 # The archiver.
21468 AR=$lt_AR
21469 AR_FLAGS=$lt_AR_FLAGS
21470
21471 # A C compiler.
21472 LTCC=$lt_LTCC
21473
21474 # A language-specific compiler.
21475 CC=$lt_compiler_RC
21476
21477 # Is the compiler the GNU C compiler?
21478 with_gcc=$GCC_RC
21479
21480 # An ERE matcher.
21481 EGREP=$lt_EGREP
21482
21483 # The linker used to build libraries.
21484 LD=$lt_LD_RC
21485
21486 # Whether we need hard or soft links.
21487 LN_S=$lt_LN_S
21488
21489 # A BSD-compatible nm program.
21490 NM=$lt_NM
21491
21492 # A symbol stripping program
21493 STRIP=$lt_STRIP
21494
21495 # Used to examine libraries when file_magic_cmd begins "file"
21496 MAGIC_CMD=$MAGIC_CMD
21497
21498 # Used on cygwin: DLL creation program.
21499 DLLTOOL="$DLLTOOL"
21500
21501 # Used on cygwin: object dumper.
21502 OBJDUMP="$OBJDUMP"
21503
21504 # Used on cygwin: assembler.
21505 AS="$AS"
21506
21507 # The name of the directory that contains temporary libtool files.
21508 objdir=$objdir
21509
21510 # How to create reloadable object files.
21511 reload_flag=$lt_reload_flag
21512 reload_cmds=$lt_reload_cmds
21513
21514 # How to pass a linker flag through the compiler.
21515 wl=$lt_lt_prog_compiler_wl_RC
21516
21517 # Object file suffix (normally "o").
21518 objext="$ac_objext"
21519
21520 # Old archive suffix (normally "a").
21521 libext="$libext"
21522
21523 # Shared library suffix (normally ".so").
21524 shrext_cmds='$shrext_cmds'
21525
21526 # Executable file suffix (normally "").
21527 exeext="$exeext"
21528
21529 # Additional compiler flags for building library objects.
21530 pic_flag=$lt_lt_prog_compiler_pic_RC
21531 pic_mode=$pic_mode
21532
21533 # What is the maximum length of a command?
21534 max_cmd_len=$lt_cv_sys_max_cmd_len
21535
21536 # Does compiler simultaneously support -c and -o options?
21537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21538
21539 # Must we lock files when doing compilation?
21540 need_locks=$lt_need_locks
21541
21542 # Do we need the lib prefix for modules?
21543 need_lib_prefix=$need_lib_prefix
21544
21545 # Do we need a version for libraries?
21546 need_version=$need_version
21547
21548 # Whether dlopen is supported.
21549 dlopen_support=$enable_dlopen
21550
21551 # Whether dlopen of programs is supported.
21552 dlopen_self=$enable_dlopen_self
21553
21554 # Whether dlopen of statically linked programs is supported.
21555 dlopen_self_static=$enable_dlopen_self_static
21556
21557 # Compiler flag to prevent dynamic linking.
21558 link_static_flag=$lt_lt_prog_compiler_static_RC
21559
21560 # Compiler flag to turn off builtin functions.
21561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21562
21563 # Compiler flag to allow reflexive dlopens.
21564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21565
21566 # Compiler flag to generate shared objects directly from archives.
21567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21568
21569 # Compiler flag to generate thread-safe objects.
21570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21571
21572 # Library versioning type.
21573 version_type=$version_type
21574
21575 # Format of library name prefix.
21576 libname_spec=$lt_libname_spec
21577
21578 # List of archive names.  First name is the real one, the rest are links.
21579 # The last name is the one that the linker finds with -lNAME.
21580 library_names_spec=$lt_library_names_spec
21581
21582 # The coded name of the library, if different from the real name.
21583 soname_spec=$lt_soname_spec
21584
21585 # Commands used to build and install an old-style archive.
21586 RANLIB=$lt_RANLIB
21587 old_archive_cmds=$lt_old_archive_cmds_RC
21588 old_postinstall_cmds=$lt_old_postinstall_cmds
21589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21590
21591 # Create an old-style archive from a shared archive.
21592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21593
21594 # Create a temporary old-style archive to link instead of a shared archive.
21595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21596
21597 # Commands used to build and install a shared archive.
21598 archive_cmds=$lt_archive_cmds_RC
21599 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21600 postinstall_cmds=$lt_postinstall_cmds
21601 postuninstall_cmds=$lt_postuninstall_cmds
21602
21603 # Commands used to build a loadable module (assumed same as above if empty)
21604 module_cmds=$lt_module_cmds_RC
21605 module_expsym_cmds=$lt_module_expsym_cmds_RC
21606
21607 # Commands to strip libraries.
21608 old_striplib=$lt_old_striplib
21609 striplib=$lt_striplib
21610
21611 # Dependencies to place before the objects being linked to create a
21612 # shared library.
21613 predep_objects=$lt_predep_objects_RC
21614
21615 # Dependencies to place after the objects being linked to create a
21616 # shared library.
21617 postdep_objects=$lt_postdep_objects_RC
21618
21619 # Dependencies to place before the objects being linked to create a
21620 # shared library.
21621 predeps=$lt_predeps_RC
21622
21623 # Dependencies to place after the objects being linked to create a
21624 # shared library.
21625 postdeps=$lt_postdeps_RC
21626
21627 # The library search path used internally by the compiler when linking
21628 # a shared library.
21629 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21630
21631 # Method to check whether dependent libraries are shared objects.
21632 deplibs_check_method=$lt_deplibs_check_method
21633
21634 # Command to use when deplibs_check_method == file_magic.
21635 file_magic_cmd=$lt_file_magic_cmd
21636
21637 # Flag that allows shared libraries with undefined symbols to be built.
21638 allow_undefined_flag=$lt_allow_undefined_flag_RC
21639
21640 # Flag that forces no undefined symbols.
21641 no_undefined_flag=$lt_no_undefined_flag_RC
21642
21643 # Commands used to finish a libtool library installation in a directory.
21644 finish_cmds=$lt_finish_cmds
21645
21646 # Same as above, but a single script fragment to be evaled but not shown.
21647 finish_eval=$lt_finish_eval
21648
21649 # Take the output of nm and produce a listing of raw symbols and C names.
21650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21651
21652 # Transform the output of nm in a proper C declaration
21653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21654
21655 # Transform the output of nm in a C name address pair
21656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21657
21658 # This is the shared library runtime path variable.
21659 runpath_var=$runpath_var
21660
21661 # This is the shared library path variable.
21662 shlibpath_var=$shlibpath_var
21663
21664 # Is shlibpath searched before the hard-coded library search path?
21665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21666
21667 # How to hardcode a shared library path into an executable.
21668 hardcode_action=$hardcode_action_RC
21669
21670 # Whether we should hardcode library paths into libraries.
21671 hardcode_into_libs=$hardcode_into_libs
21672
21673 # Flag to hardcode \$libdir into a binary during linking.
21674 # This must work even if \$libdir does not exist.
21675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21676
21677 # If ld is used when linking, flag to hardcode \$libdir into
21678 # a binary during linking. This must work even if \$libdir does
21679 # not exist.
21680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21681
21682 # Whether we need a single -rpath flag with a separated argument.
21683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21684
21685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21686 # resulting binary.
21687 hardcode_direct=$hardcode_direct_RC
21688
21689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21690 # resulting binary.
21691 hardcode_minus_L=$hardcode_minus_L_RC
21692
21693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21694 # the resulting binary.
21695 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21696
21697 # Set to yes if building a shared library automatically hardcodes DIR into the library
21698 # and all subsequent libraries and executables linked against it.
21699 hardcode_automatic=$hardcode_automatic_RC
21700
21701 # Variables whose values should be saved in libtool wrapper scripts and
21702 # restored at relink time.
21703 variables_saved_for_relink="$variables_saved_for_relink"
21704
21705 # Whether libtool must link a program against all its dependency libraries.
21706 link_all_deplibs=$link_all_deplibs_RC
21707
21708 # Compile-time system search path for libraries
21709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21710
21711 # Run-time system search path for libraries
21712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21713
21714 # Fix the shell variable \$srcfile for the compiler.
21715 fix_srcfile_path="$fix_srcfile_path_RC"
21716
21717 # Set to yes if exported symbols are required.
21718 always_export_symbols=$always_export_symbols_RC
21719
21720 # The commands to list exported symbols.
21721 export_symbols_cmds=$lt_export_symbols_cmds_RC
21722
21723 # The commands to extract the exported symbol list from a shared archive.
21724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21725
21726 # Symbols that should not be listed in the preloaded symbols.
21727 exclude_expsyms=$lt_exclude_expsyms_RC
21728
21729 # Symbols that must always be exported.
21730 include_expsyms=$lt_include_expsyms_RC
21731
21732 # ### END LIBTOOL TAG CONFIG: $tagname
21733
21734 __EOF__
21735
21736
21737 else
21738   # If there is no Makefile yet, we rely on a make rule to execute
21739   # `config.status --recheck' to rerun these tests and create the
21740   # libtool script then.
21741   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21742   if test -f "$ltmain_in"; then
21743     test -f Makefile && make "$ltmain"
21744   fi
21745 fi
21746
21747
21748 ac_ext=c
21749 ac_cpp='$CPP $CPPFLAGS'
21750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21753
21754 CC="$lt_save_CC"
21755
21756         ;;
21757
21758       *)
21759         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21760 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21761    { (exit 1); exit 1; }; }
21762         ;;
21763       esac
21764
21765       # Append the new tag name to the list of available tags.
21766       if test -n "$tagname" ; then
21767       available_tags="$available_tags $tagname"
21768     fi
21769     fi
21770   done
21771   IFS="$lt_save_ifs"
21772
21773   # Now substitute the updated list of available tags.
21774   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21775     mv "${ofile}T" "$ofile"
21776     chmod +x "$ofile"
21777   else
21778     rm -f "${ofile}T"
21779     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21781    { (exit 1); exit 1; }; }
21782   fi
21783 fi
21784
21785
21786
21787 # This can be used to rebuild libtool when needed
21788 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21789
21790 # Always use our own libtool.
21791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21792
21793 # Prevent multiple expansion
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815 ol_link_perl=no
21816 if test $ol_enable_perl != no ; then
21817         # Extract the first word of "perl", so it can be a program name with args.
21818 set dummy perl; ac_word=$2
21819 echo "$as_me:$LINENO: checking for $ac_word" >&5
21820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21821 if test "${ac_cv_path_PERLBIN+set}" = set; then
21822   echo $ECHO_N "(cached) $ECHO_C" >&6
21823 else
21824   case $PERLBIN in
21825   [\\/]* | ?:[\\/]*)
21826   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21827   ;;
21828   *)
21829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21830 for as_dir in $PATH
21831 do
21832   IFS=$as_save_IFS
21833   test -z "$as_dir" && as_dir=.
21834   for ac_exec_ext in '' $ac_executable_extensions; do
21835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21836     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21838     break 2
21839   fi
21840 done
21841 done
21842
21843   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21844   ;;
21845 esac
21846 fi
21847 PERLBIN=$ac_cv_path_PERLBIN
21848
21849 if test -n "$PERLBIN"; then
21850   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21851 echo "${ECHO_T}$PERLBIN" >&6
21852 else
21853   echo "$as_me:$LINENO: result: no" >&5
21854 echo "${ECHO_T}no" >&6
21855 fi
21856
21857
21858         if test "no$PERLBIN" = "no" ; then
21859                 if test $ol_enable_perl = yes ; then
21860                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21861 echo "$as_me: error: could not locate perl" >&2;}
21862    { (exit 1); exit 1; }; }
21863                 fi
21864
21865         else
21866                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21867                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21868
21869                 if test x"$ol_enable_perl" = "xyes" ; then
21870                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21871                 else
21872                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21873                 fi
21874                                 ol_link_perl=yes
21875         fi
21876 fi
21877
21878 ac_ext=c
21879 ac_cpp='$CPP $CPPFLAGS'
21880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21883 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21884 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21885 # On Suns, sometimes $CPP names a directory.
21886 if test -n "$CPP" && test -d "$CPP"; then
21887   CPP=
21888 fi
21889 if test -z "$CPP"; then
21890   if test "${ac_cv_prog_CPP+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893       # Double quotes because CPP needs to be expanded
21894     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21895     do
21896       ac_preproc_ok=false
21897 for ac_c_preproc_warn_flag in '' yes
21898 do
21899   # Use a header file that comes with gcc, so configuring glibc
21900   # with a fresh cross-compiler works.
21901   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21902   # <limits.h> exists even on freestanding compilers.
21903   # On the NeXT, cc -E runs the code through the compiler's parser,
21904   # not just through cpp. "Syntax error" is here to catch this case.
21905   cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 #ifdef __STDC__
21912 # include <limits.h>
21913 #else
21914 # include <assert.h>
21915 #endif
21916                      Syntax error
21917 _ACEOF
21918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } >/dev/null; then
21926   if test -s conftest.err; then
21927     ac_cpp_err=$ac_c_preproc_warn_flag
21928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21929   else
21930     ac_cpp_err=
21931   fi
21932 else
21933   ac_cpp_err=yes
21934 fi
21935 if test -z "$ac_cpp_err"; then
21936   :
21937 else
21938   echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941   # Broken: fails on valid input.
21942 continue
21943 fi
21944 rm -f conftest.err conftest.$ac_ext
21945
21946   # OK, works on sane cases.  Now check whether non-existent headers
21947   # can be detected and how.
21948   cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 #include <ac_nonexistent.h>
21955 _ACEOF
21956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21958   ac_status=$?
21959   grep -v '^ *+' conftest.er1 >conftest.err
21960   rm -f conftest.er1
21961   cat conftest.err >&5
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); } >/dev/null; then
21964   if test -s conftest.err; then
21965     ac_cpp_err=$ac_c_preproc_warn_flag
21966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21967   else
21968     ac_cpp_err=
21969   fi
21970 else
21971   ac_cpp_err=yes
21972 fi
21973 if test -z "$ac_cpp_err"; then
21974   # Broken: success on invalid input.
21975 continue
21976 else
21977   echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980   # Passes both tests.
21981 ac_preproc_ok=:
21982 break
21983 fi
21984 rm -f conftest.err conftest.$ac_ext
21985
21986 done
21987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21988 rm -f conftest.err conftest.$ac_ext
21989 if $ac_preproc_ok; then
21990   break
21991 fi
21992
21993     done
21994     ac_cv_prog_CPP=$CPP
21995
21996 fi
21997   CPP=$ac_cv_prog_CPP
21998 else
21999   ac_cv_prog_CPP=$CPP
22000 fi
22001 echo "$as_me:$LINENO: result: $CPP" >&5
22002 echo "${ECHO_T}$CPP" >&6
22003 ac_preproc_ok=false
22004 for ac_c_preproc_warn_flag in '' yes
22005 do
22006   # Use a header file that comes with gcc, so configuring glibc
22007   # with a fresh cross-compiler works.
22008   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22009   # <limits.h> exists even on freestanding compilers.
22010   # On the NeXT, cc -E runs the code through the compiler's parser,
22011   # not just through cpp. "Syntax error" is here to catch this case.
22012   cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h.  */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h.  */
22018 #ifdef __STDC__
22019 # include <limits.h>
22020 #else
22021 # include <assert.h>
22022 #endif
22023                      Syntax error
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   :
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048   # Broken: fails on valid input.
22049 continue
22050 fi
22051 rm -f conftest.err conftest.$ac_ext
22052
22053   # OK, works on sane cases.  Now check whether non-existent headers
22054   # can be detected and how.
22055   cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h.  */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h.  */
22061 #include <ac_nonexistent.h>
22062 _ACEOF
22063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22065   ac_status=$?
22066   grep -v '^ *+' conftest.er1 >conftest.err
22067   rm -f conftest.er1
22068   cat conftest.err >&5
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } >/dev/null; then
22071   if test -s conftest.err; then
22072     ac_cpp_err=$ac_c_preproc_warn_flag
22073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22074   else
22075     ac_cpp_err=
22076   fi
22077 else
22078   ac_cpp_err=yes
22079 fi
22080 if test -z "$ac_cpp_err"; then
22081   # Broken: success on invalid input.
22082 continue
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087   # Passes both tests.
22088 ac_preproc_ok=:
22089 break
22090 fi
22091 rm -f conftest.err conftest.$ac_ext
22092
22093 done
22094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22095 rm -f conftest.err conftest.$ac_ext
22096 if $ac_preproc_ok; then
22097   :
22098 else
22099   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22100 See \`config.log' for more details." >&5
22101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22102 See \`config.log' for more details." >&2;}
22103    { (exit 1); exit 1; }; }
22104 fi
22105
22106 ac_ext=c
22107 ac_cpp='$CPP $CPPFLAGS'
22108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22111
22112
22113
22114
22115
22116 cat >>confdefs.h <<_ACEOF
22117 #define EXEEXT "${EXEEXT}"
22118 _ACEOF
22119
22120
22121 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22122 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22123 if test "${ac_cv_lib_be_be_app+set}" = set; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126   ac_check_lib_save_LIBS=$LIBS
22127 LIBS="-lbe -lroot -lnet $LIBS"
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134
22135 /* Override any gcc2 internal prototype to avoid an error.  */
22136 #ifdef __cplusplus
22137 extern "C"
22138 #endif
22139 /* We use char because int might match the return type of a gcc2
22140    builtin and then its argument prototype would still apply.  */
22141 char be_app ();
22142 int
22143 main ()
22144 {
22145 be_app ();
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152   (eval $ac_link) 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } &&
22159          { ac_try='test -z "$ac_c_werror_flag"
22160                          || test ! -s conftest.err'
22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162   (eval $ac_try) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; } &&
22166          { ac_try='test -s conftest$ac_exeext'
22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168   (eval $ac_try) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); }; }; then
22172   ac_cv_lib_be_be_app=yes
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_cv_lib_be_be_app=no
22178 fi
22179 rm -f conftest.err conftest.$ac_objext \
22180       conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22182 fi
22183 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22184 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22185 if test $ac_cv_lib_be_be_app = yes; then
22186   LIBS="$LIBS -lbe -lroot -lnet"
22187 else
22188   :
22189 fi
22190
22191
22192 ac_ext=c
22193 ac_cpp='$CPP $CPPFLAGS'
22194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197 if test -n "$ac_tool_prefix"; then
22198   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22200 echo "$as_me:$LINENO: checking for $ac_word" >&5
22201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22202 if test "${ac_cv_prog_CC+set}" = set; then
22203   echo $ECHO_N "(cached) $ECHO_C" >&6
22204 else
22205   if test -n "$CC"; then
22206   ac_cv_prog_CC="$CC" # Let the user override the test.
22207 else
22208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22209 for as_dir in $PATH
22210 do
22211   IFS=$as_save_IFS
22212   test -z "$as_dir" && as_dir=.
22213   for ac_exec_ext in '' $ac_executable_extensions; do
22214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22215     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22217     break 2
22218   fi
22219 done
22220 done
22221
22222 fi
22223 fi
22224 CC=$ac_cv_prog_CC
22225 if test -n "$CC"; then
22226   echo "$as_me:$LINENO: result: $CC" >&5
22227 echo "${ECHO_T}$CC" >&6
22228 else
22229   echo "$as_me:$LINENO: result: no" >&5
22230 echo "${ECHO_T}no" >&6
22231 fi
22232
22233 fi
22234 if test -z "$ac_cv_prog_CC"; then
22235   ac_ct_CC=$CC
22236   # Extract the first word of "gcc", so it can be a program name with args.
22237 set dummy gcc; ac_word=$2
22238 echo "$as_me:$LINENO: checking for $ac_word" >&5
22239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   if test -n "$ac_ct_CC"; then
22244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22245 else
22246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22247 for as_dir in $PATH
22248 do
22249   IFS=$as_save_IFS
22250   test -z "$as_dir" && as_dir=.
22251   for ac_exec_ext in '' $ac_executable_extensions; do
22252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22253     ac_cv_prog_ac_ct_CC="gcc"
22254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22255     break 2
22256   fi
22257 done
22258 done
22259
22260 fi
22261 fi
22262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22263 if test -n "$ac_ct_CC"; then
22264   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22265 echo "${ECHO_T}$ac_ct_CC" >&6
22266 else
22267   echo "$as_me:$LINENO: result: no" >&5
22268 echo "${ECHO_T}no" >&6
22269 fi
22270
22271   CC=$ac_ct_CC
22272 else
22273   CC="$ac_cv_prog_CC"
22274 fi
22275
22276 if test -z "$CC"; then
22277   if test -n "$ac_tool_prefix"; then
22278   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22279 set dummy ${ac_tool_prefix}cc; ac_word=$2
22280 echo "$as_me:$LINENO: checking for $ac_word" >&5
22281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22282 if test "${ac_cv_prog_CC+set}" = set; then
22283   echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285   if test -n "$CC"; then
22286   ac_cv_prog_CC="$CC" # Let the user override the test.
22287 else
22288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22290 do
22291   IFS=$as_save_IFS
22292   test -z "$as_dir" && as_dir=.
22293   for ac_exec_ext in '' $ac_executable_extensions; do
22294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22295     ac_cv_prog_CC="${ac_tool_prefix}cc"
22296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22297     break 2
22298   fi
22299 done
22300 done
22301
22302 fi
22303 fi
22304 CC=$ac_cv_prog_CC
22305 if test -n "$CC"; then
22306   echo "$as_me:$LINENO: result: $CC" >&5
22307 echo "${ECHO_T}$CC" >&6
22308 else
22309   echo "$as_me:$LINENO: result: no" >&5
22310 echo "${ECHO_T}no" >&6
22311 fi
22312
22313 fi
22314 if test -z "$ac_cv_prog_CC"; then
22315   ac_ct_CC=$CC
22316   # Extract the first word of "cc", so it can be a program name with args.
22317 set dummy cc; ac_word=$2
22318 echo "$as_me:$LINENO: checking for $ac_word" >&5
22319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22321   echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323   if test -n "$ac_ct_CC"; then
22324   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22325 else
22326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327 for as_dir in $PATH
22328 do
22329   IFS=$as_save_IFS
22330   test -z "$as_dir" && as_dir=.
22331   for ac_exec_ext in '' $ac_executable_extensions; do
22332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22333     ac_cv_prog_ac_ct_CC="cc"
22334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22335     break 2
22336   fi
22337 done
22338 done
22339
22340 fi
22341 fi
22342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22343 if test -n "$ac_ct_CC"; then
22344   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22345 echo "${ECHO_T}$ac_ct_CC" >&6
22346 else
22347   echo "$as_me:$LINENO: result: no" >&5
22348 echo "${ECHO_T}no" >&6
22349 fi
22350
22351   CC=$ac_ct_CC
22352 else
22353   CC="$ac_cv_prog_CC"
22354 fi
22355
22356 fi
22357 if test -z "$CC"; then
22358   # Extract the first word of "cc", so it can be a program name with args.
22359 set dummy cc; ac_word=$2
22360 echo "$as_me:$LINENO: checking for $ac_word" >&5
22361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22362 if test "${ac_cv_prog_CC+set}" = set; then
22363   echo $ECHO_N "(cached) $ECHO_C" >&6
22364 else
22365   if test -n "$CC"; then
22366   ac_cv_prog_CC="$CC" # Let the user override the test.
22367 else
22368   ac_prog_rejected=no
22369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22370 for as_dir in $PATH
22371 do
22372   IFS=$as_save_IFS
22373   test -z "$as_dir" && as_dir=.
22374   for ac_exec_ext in '' $ac_executable_extensions; do
22375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22376     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22377        ac_prog_rejected=yes
22378        continue
22379      fi
22380     ac_cv_prog_CC="cc"
22381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22382     break 2
22383   fi
22384 done
22385 done
22386
22387 if test $ac_prog_rejected = yes; then
22388   # We found a bogon in the path, so make sure we never use it.
22389   set dummy $ac_cv_prog_CC
22390   shift
22391   if test $# != 0; then
22392     # We chose a different compiler from the bogus one.
22393     # However, it has the same basename, so the bogon will be chosen
22394     # first if we set CC to just the basename; use the full file name.
22395     shift
22396     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22397   fi
22398 fi
22399 fi
22400 fi
22401 CC=$ac_cv_prog_CC
22402 if test -n "$CC"; then
22403   echo "$as_me:$LINENO: result: $CC" >&5
22404 echo "${ECHO_T}$CC" >&6
22405 else
22406   echo "$as_me:$LINENO: result: no" >&5
22407 echo "${ECHO_T}no" >&6
22408 fi
22409
22410 fi
22411 if test -z "$CC"; then
22412   if test -n "$ac_tool_prefix"; then
22413   for ac_prog in cl
22414   do
22415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22417 echo "$as_me:$LINENO: checking for $ac_word" >&5
22418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22419 if test "${ac_cv_prog_CC+set}" = set; then
22420   echo $ECHO_N "(cached) $ECHO_C" >&6
22421 else
22422   if test -n "$CC"; then
22423   ac_cv_prog_CC="$CC" # Let the user override the test.
22424 else
22425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22426 for as_dir in $PATH
22427 do
22428   IFS=$as_save_IFS
22429   test -z "$as_dir" && as_dir=.
22430   for ac_exec_ext in '' $ac_executable_extensions; do
22431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22432     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22434     break 2
22435   fi
22436 done
22437 done
22438
22439 fi
22440 fi
22441 CC=$ac_cv_prog_CC
22442 if test -n "$CC"; then
22443   echo "$as_me:$LINENO: result: $CC" >&5
22444 echo "${ECHO_T}$CC" >&6
22445 else
22446   echo "$as_me:$LINENO: result: no" >&5
22447 echo "${ECHO_T}no" >&6
22448 fi
22449
22450     test -n "$CC" && break
22451   done
22452 fi
22453 if test -z "$CC"; then
22454   ac_ct_CC=$CC
22455   for ac_prog in cl
22456 do
22457   # Extract the first word of "$ac_prog", so it can be a program name with args.
22458 set dummy $ac_prog; ac_word=$2
22459 echo "$as_me:$LINENO: checking for $ac_word" >&5
22460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22462   echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464   if test -n "$ac_ct_CC"; then
22465   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22466 else
22467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22468 for as_dir in $PATH
22469 do
22470   IFS=$as_save_IFS
22471   test -z "$as_dir" && as_dir=.
22472   for ac_exec_ext in '' $ac_executable_extensions; do
22473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22474     ac_cv_prog_ac_ct_CC="$ac_prog"
22475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22476     break 2
22477   fi
22478 done
22479 done
22480
22481 fi
22482 fi
22483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22484 if test -n "$ac_ct_CC"; then
22485   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22486 echo "${ECHO_T}$ac_ct_CC" >&6
22487 else
22488   echo "$as_me:$LINENO: result: no" >&5
22489 echo "${ECHO_T}no" >&6
22490 fi
22491
22492   test -n "$ac_ct_CC" && break
22493 done
22494
22495   CC=$ac_ct_CC
22496 fi
22497
22498 fi
22499
22500
22501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22502 See \`config.log' for more details." >&5
22503 echo "$as_me: error: no acceptable C compiler found in \$PATH
22504 See \`config.log' for more details." >&2;}
22505    { (exit 1); exit 1; }; }
22506
22507 # Provide some information about the compiler.
22508 echo "$as_me:$LINENO:" \
22509      "checking for C compiler version" >&5
22510 ac_compiler=`set X $ac_compile; echo $2`
22511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22512   (eval $ac_compiler --version </dev/null >&5) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }
22516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22517   (eval $ac_compiler -v </dev/null >&5) 2>&5
22518   ac_status=$?
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); }
22521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22522   (eval $ac_compiler -V </dev/null >&5) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }
22526
22527 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22528 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22530   echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532   cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538
22539 int
22540 main ()
22541 {
22542 #ifndef __GNUC__
22543        choke me
22544 #endif
22545
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22552   (eval $ac_compile) 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } &&
22559          { ac_try='test -z "$ac_c_werror_flag"
22560                          || test ! -s conftest.err'
22561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562   (eval $ac_try) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }; } &&
22566          { ac_try='test -s conftest.$ac_objext'
22567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568   (eval $ac_try) 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); }; }; then
22572   ac_compiler_gnu=yes
22573 else
22574   echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22576
22577 ac_compiler_gnu=no
22578 fi
22579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22581
22582 fi
22583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22585 GCC=`test $ac_compiler_gnu = yes && echo yes`
22586 ac_test_CFLAGS=${CFLAGS+set}
22587 ac_save_CFLAGS=$CFLAGS
22588 CFLAGS="-g"
22589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22591 if test "${ac_cv_prog_cc_g+set}" = set; then
22592   echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594   cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600
22601 int
22602 main ()
22603 {
22604
22605   ;
22606   return 0;
22607 }
22608 _ACEOF
22609 rm -f conftest.$ac_objext
22610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22611   (eval $ac_compile) 2>conftest.er1
22612   ac_status=$?
22613   grep -v '^ *+' conftest.er1 >conftest.err
22614   rm -f conftest.er1
22615   cat conftest.err >&5
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } &&
22618          { ac_try='test -z "$ac_c_werror_flag"
22619                          || test ! -s conftest.err'
22620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621   (eval $ac_try) 2>&5
22622   ac_status=$?
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); }; } &&
22625          { ac_try='test -s conftest.$ac_objext'
22626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627   (eval $ac_try) 2>&5
22628   ac_status=$?
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); }; }; then
22631   ac_cv_prog_cc_g=yes
22632 else
22633   echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 ac_cv_prog_cc_g=no
22637 fi
22638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22639 fi
22640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22642 if test "$ac_test_CFLAGS" = set; then
22643   CFLAGS=$ac_save_CFLAGS
22644 elif test $ac_cv_prog_cc_g = yes; then
22645   if test "$GCC" = yes; then
22646     CFLAGS="-g -O2"
22647   else
22648     CFLAGS="-g"
22649   fi
22650 else
22651   if test "$GCC" = yes; then
22652     CFLAGS="-O2"
22653   else
22654     CFLAGS=
22655   fi
22656 fi
22657 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22658 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22659 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22660   echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662   ac_cv_prog_cc_stdc=no
22663 ac_save_CC=$CC
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670 #include <stdarg.h>
22671 #include <stdio.h>
22672 #include <sys/types.h>
22673 #include <sys/stat.h>
22674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22675 struct buf { int x; };
22676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22677 static char *e (p, i)
22678      char **p;
22679      int i;
22680 {
22681   return p[i];
22682 }
22683 static char *f (char * (*g) (char **, int), char **p, ...)
22684 {
22685   char *s;
22686   va_list v;
22687   va_start (v,p);
22688   s = g (p, va_arg (v,int));
22689   va_end (v);
22690   return s;
22691 }
22692
22693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22694    function prototypes and stuff, but not '\xHH' hex character constants.
22695    These don't provoke an error unfortunately, instead are silently treated
22696    as 'x'.  The following induces an error, until -std1 is added to get
22697    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22698    array size at least.  It's necessary to write '\x00'==0 to get something
22699    that's true only with -std1.  */
22700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22701
22702 int test (int i, double x);
22703 struct s1 {int (*f) (int a);};
22704 struct s2 {int (*f) (double a);};
22705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22706 int argc;
22707 char **argv;
22708 int
22709 main ()
22710 {
22711 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 # Don't try gcc -ansi; that turns off useful extensions and
22717 # breaks some systems' header files.
22718 # AIX                   -qlanglvl=ansi
22719 # Ultrix and OSF/1      -std1
22720 # HP-UX 10.20 and later -Ae
22721 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22722 # SVR4                  -Xc -D__EXTENSIONS__
22723 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22724 do
22725   CC="$ac_save_CC $ac_arg"
22726   rm -f conftest.$ac_objext
22727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22728   (eval $ac_compile) 2>conftest.er1
22729   ac_status=$?
22730   grep -v '^ *+' conftest.er1 >conftest.err
22731   rm -f conftest.er1
22732   cat conftest.err >&5
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); } &&
22735          { ac_try='test -z "$ac_c_werror_flag"
22736                          || test ! -s conftest.err'
22737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738   (eval $ac_try) 2>&5
22739   ac_status=$?
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); }; } &&
22742          { ac_try='test -s conftest.$ac_objext'
22743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; }; then
22748   ac_cv_prog_cc_stdc=$ac_arg
22749 break
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754 fi
22755 rm -f conftest.err conftest.$ac_objext
22756 done
22757 rm -f conftest.$ac_ext conftest.$ac_objext
22758 CC=$ac_save_CC
22759
22760 fi
22761
22762 case "x$ac_cv_prog_cc_stdc" in
22763   x|xno)
22764     echo "$as_me:$LINENO: result: none needed" >&5
22765 echo "${ECHO_T}none needed" >&6 ;;
22766   *)
22767     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22768 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22769     CC="$CC $ac_cv_prog_cc_stdc" ;;
22770 esac
22771
22772 # Some people use a C++ compiler to compile C.  Since we use `exit',
22773 # in C++ we need to declare it.  In case someone uses the same compiler
22774 # for both compiling C and C++ we need to have the C++ compiler decide
22775 # the declaration of exit, since it's the most demanding environment.
22776 cat >conftest.$ac_ext <<_ACEOF
22777 #ifndef __cplusplus
22778   choke me
22779 #endif
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22783   (eval $ac_compile) 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } &&
22790          { ac_try='test -z "$ac_c_werror_flag"
22791                          || test ! -s conftest.err'
22792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793   (eval $ac_try) 2>&5
22794   ac_status=$?
22795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796   (exit $ac_status); }; } &&
22797          { ac_try='test -s conftest.$ac_objext'
22798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799   (eval $ac_try) 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; }; then
22803   for ac_declaration in \
22804    '' \
22805    'extern "C" void std::exit (int) throw (); using std::exit;' \
22806    'extern "C" void std::exit (int); using std::exit;' \
22807    'extern "C" void exit (int) throw ();' \
22808    'extern "C" void exit (int);' \
22809    'void exit (int);'
22810 do
22811   cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h.  */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h.  */
22817 $ac_declaration
22818 #include <stdlib.h>
22819 int
22820 main ()
22821 {
22822 exit (42);
22823   ;
22824   return 0;
22825 }
22826 _ACEOF
22827 rm -f conftest.$ac_objext
22828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22829   (eval $ac_compile) 2>conftest.er1
22830   ac_status=$?
22831   grep -v '^ *+' conftest.er1 >conftest.err
22832   rm -f conftest.er1
22833   cat conftest.err >&5
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); } &&
22836          { ac_try='test -z "$ac_c_werror_flag"
22837                          || test ! -s conftest.err'
22838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); }; } &&
22843          { ac_try='test -s conftest.$ac_objext'
22844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845   (eval $ac_try) 2>&5
22846   ac_status=$?
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); }; }; then
22849   :
22850 else
22851   echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22853
22854 continue
22855 fi
22856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22857   cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 $ac_declaration
22864 int
22865 main ()
22866 {
22867 exit (42);
22868   ;
22869   return 0;
22870 }
22871 _ACEOF
22872 rm -f conftest.$ac_objext
22873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22874   (eval $ac_compile) 2>conftest.er1
22875   ac_status=$?
22876   grep -v '^ *+' conftest.er1 >conftest.err
22877   rm -f conftest.er1
22878   cat conftest.err >&5
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); } &&
22881          { ac_try='test -z "$ac_c_werror_flag"
22882                          || test ! -s conftest.err'
22883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884   (eval $ac_try) 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); }; } &&
22888          { ac_try='test -s conftest.$ac_objext'
22889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890   (eval $ac_try) 2>&5
22891   ac_status=$?
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); }; }; then
22894   break
22895 else
22896   echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22898
22899 fi
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901 done
22902 rm -f conftest*
22903 if test -n "$ac_declaration"; then
22904   echo '#ifdef __cplusplus' >>confdefs.h
22905   echo $ac_declaration      >>confdefs.h
22906   echo '#endif'             >>confdefs.h
22907 fi
22908
22909 else
22910   echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 fi
22914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22915 ac_ext=c
22916 ac_cpp='$CPP $CPPFLAGS'
22917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22920
22921 depcc="$CC"   am_compiler_list=
22922
22923 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22924 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22925 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22926   echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22929   # We make a subdir and do the tests there.  Otherwise we can end up
22930   # making bogus files that we don't know about and never remove.  For
22931   # instance it was reported that on HP-UX the gcc test will end up
22932   # making a dummy file named `D' -- because `-MD' means `put the output
22933   # in D'.
22934   mkdir conftest.dir
22935   # Copy depcomp to subdir because otherwise we won't find it if we're
22936   # using a relative directory.
22937   cp "$am_depcomp" conftest.dir
22938   cd conftest.dir
22939   # We will build objects and dependencies in a subdirectory because
22940   # it helps to detect inapplicable dependency modes.  For instance
22941   # both Tru64's cc and ICC support -MD to output dependencies as a
22942   # side effect of compilation, but ICC will put the dependencies in
22943   # the current directory while Tru64 will put them in the object
22944   # directory.
22945   mkdir sub
22946
22947   am_cv_CC_dependencies_compiler_type=none
22948   if test "$am_compiler_list" = ""; then
22949      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22950   fi
22951   for depmode in $am_compiler_list; do
22952     # Setup a source with many dependencies, because some compilers
22953     # like to wrap large dependency lists on column 80 (with \), and
22954     # we should not choose a depcomp mode which is confused by this.
22955     #
22956     # We need to recreate these files for each test, as the compiler may
22957     # overwrite some of them when testing with obscure command lines.
22958     # This happens at least with the AIX C compiler.
22959     : > sub/conftest.c
22960     for i in 1 2 3 4 5 6; do
22961       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22962       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22963       # Solaris 8's {/usr,}/bin/sh.
22964       touch sub/conftst$i.h
22965     done
22966     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22967
22968     case $depmode in
22969     nosideeffect)
22970       # after this tag, mechanisms are not by side-effect, so they'll
22971       # only be used when explicitly requested
22972       if test "x$enable_dependency_tracking" = xyes; then
22973         continue
22974       else
22975         break
22976       fi
22977       ;;
22978     none) break ;;
22979     esac
22980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22981     # mode.  It turns out that the SunPro C++ compiler does not properly
22982     # handle `-M -o', and we need to detect this.
22983     if depmode=$depmode \
22984        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22985        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22986        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22987          >/dev/null 2>conftest.err &&
22988        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22989        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22990        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22991       # icc doesn't choke on unknown options, it will just issue warnings
22992       # or remarks (even with -Werror).  So we grep stderr for any message
22993       # that says an option was ignored or not supported.
22994       # When given -MP, icc 7.0 and 7.1 complain thusly:
22995       #   icc: Command line warning: ignoring option '-M'; no argument required
22996       # The diagnosis changed in icc 8.0:
22997       #   icc: Command line remark: option '-MP' not supported
22998       if (grep 'ignoring option' conftest.err ||
22999           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23000         am_cv_CC_dependencies_compiler_type=$depmode
23001         break
23002       fi
23003     fi
23004   done
23005
23006   cd ..
23007   rm -rf conftest.dir
23008 else
23009   am_cv_CC_dependencies_compiler_type=none
23010 fi
23011
23012 fi
23013 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23014 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23015 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23016
23017
23018
23019 if
23020   test "x$enable_dependency_tracking" != xno \
23021   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23022   am__fastdepCC_TRUE=
23023   am__fastdepCC_FALSE='#'
23024 else
23025   am__fastdepCC_TRUE='#'
23026   am__fastdepCC_FALSE=
23027 fi
23028
23029
23030 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23031         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23032 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23033    { (exit 1); exit 1; }; }
23034 fi
23035
23036 # test for make depend flag
23037 OL_MKDEP=
23038 OL_MKDEP_FLAGS=
23039 if test -z "${MKDEP}"; then
23040         OL_MKDEP="${CC-cc}"
23041         if test -z "${MKDEP_FLAGS}"; then
23042                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23043 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23044 if test "${ol_cv_mkdep+set}" = set; then
23045   echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047
23048                         ol_cv_mkdep=no
23049                         for flag in "-M" "-xM"; do
23050                                 cat > conftest.c <<EOF
23051  noCode;
23052 EOF
23053                                 if { ac_try='$OL_MKDEP $flag conftest.c'
23054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055   (eval $ac_try) 2>&5
23056   ac_status=$?
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); }; } \
23059                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23060                                 then
23061                                         if test ! -f conftest."${ac_object}" ; then
23062                                                 ol_cv_mkdep=$flag
23063                                                 OL_MKDEP_FLAGS="$flag"
23064                                                 break
23065                                         fi
23066                                 fi
23067                         done
23068                         rm -f conftest*
23069
23070 fi
23071 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23072 echo "${ECHO_T}$ol_cv_mkdep" >&6
23073         else
23074                 cc_cv_mkdep=yes
23075                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23076         fi
23077 else
23078         cc_cv_mkdep=yes
23079         OL_MKDEP="${MKDEP}"
23080         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23081 fi
23082
23083
23084
23085 if test "${ol_cv_mkdep}" = no ; then
23086         # this will soon become an error
23087         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23088 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23089 fi
23090
23091 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23092 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23093 if test "${ac_cv_lib_s_afopen+set}" = set; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   ac_check_lib_save_LIBS=$LIBS
23097 LIBS="-ls  $LIBS"
23098 cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h.  */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h.  */
23104
23105 /* Override any gcc2 internal prototype to avoid an error.  */
23106 #ifdef __cplusplus
23107 extern "C"
23108 #endif
23109 /* We use char because int might match the return type of a gcc2
23110    builtin and then its argument prototype would still apply.  */
23111 char afopen ();
23112 int
23113 main ()
23114 {
23115 afopen ();
23116   ;
23117   return 0;
23118 }
23119 _ACEOF
23120 rm -f conftest.$ac_objext conftest$ac_exeext
23121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23122   (eval $ac_link) 2>conftest.er1
23123   ac_status=$?
23124   grep -v '^ *+' conftest.er1 >conftest.err
23125   rm -f conftest.er1
23126   cat conftest.err >&5
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); } &&
23129          { ac_try='test -z "$ac_c_werror_flag"
23130                          || test ! -s conftest.err'
23131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132   (eval $ac_try) 2>&5
23133   ac_status=$?
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); }; } &&
23136          { ac_try='test -s conftest$ac_exeext'
23137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; }; then
23142   ac_cv_lib_s_afopen=yes
23143 else
23144   echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23146
23147 ac_cv_lib_s_afopen=no
23148 fi
23149 rm -f conftest.err conftest.$ac_objext \
23150       conftest$ac_exeext conftest.$ac_ext
23151 LIBS=$ac_check_lib_save_LIBS
23152 fi
23153 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23154 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23155 if test $ac_cv_lib_s_afopen = yes; then
23156
23157         AUTH_LIBS=-ls
23158
23159 cat >>confdefs.h <<\_ACEOF
23160 #define HAVE_AIX_SECURITY 1
23161 _ACEOF
23162
23163
23164 fi
23165
23166
23167 case "$target" in
23168 *-ibm-openedition)
23169         ac_cv_func_getopt=no
23170
23171 cat >>confdefs.h <<\_ACEOF
23172 #define BOTH_STRINGS_H 1
23173 _ACEOF
23174
23175         ;;
23176 esac
23177
23178 ol_link_modules=no
23179 WITH_MODULES_ENABLED=no
23180 if test $ol_enable_modules != no ; then
23181
23182 for ac_header in ltdl.h
23183 do
23184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23186   echo "$as_me:$LINENO: checking for $ac_header" >&5
23187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23189   echo $ECHO_N "(cached) $ECHO_C" >&6
23190 fi
23191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23193 else
23194   # Is the header compilable?
23195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23197 cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h.  */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h.  */
23203 $ac_includes_default
23204 #include <$ac_header>
23205 _ACEOF
23206 rm -f conftest.$ac_objext
23207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23208   (eval $ac_compile) 2>conftest.er1
23209   ac_status=$?
23210   grep -v '^ *+' conftest.er1 >conftest.err
23211   rm -f conftest.er1
23212   cat conftest.err >&5
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); } &&
23215          { ac_try='test -z "$ac_c_werror_flag"
23216                          || test ! -s conftest.err'
23217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218   (eval $ac_try) 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); }; } &&
23222          { ac_try='test -s conftest.$ac_objext'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; }; then
23228   ac_header_compiler=yes
23229 else
23230   echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ac_header_compiler=no
23234 fi
23235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 echo "${ECHO_T}$ac_header_compiler" >&6
23238
23239 # Is the header present?
23240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 #include <$ac_header>
23249 _ACEOF
23250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23252   ac_status=$?
23253   grep -v '^ *+' conftest.er1 >conftest.err
23254   rm -f conftest.er1
23255   cat conftest.err >&5
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } >/dev/null; then
23258   if test -s conftest.err; then
23259     ac_cpp_err=$ac_c_preproc_warn_flag
23260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23261   else
23262     ac_cpp_err=
23263   fi
23264 else
23265   ac_cpp_err=yes
23266 fi
23267 if test -z "$ac_cpp_err"; then
23268   ac_header_preproc=yes
23269 else
23270   echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273   ac_header_preproc=no
23274 fi
23275 rm -f conftest.err conftest.$ac_ext
23276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23277 echo "${ECHO_T}$ac_header_preproc" >&6
23278
23279 # So?  What about this header?
23280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23281   yes:no: )
23282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23286     ac_header_preproc=yes
23287     ;;
23288   no:yes:* )
23289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23301     (
23302       cat <<\_ASBOX
23303 ## ------------------------------------------ ##
23304 ## Report this to the AC_PACKAGE_NAME lists.  ##
23305 ## ------------------------------------------ ##
23306 _ASBOX
23307     ) |
23308       sed "s/^/$as_me: WARNING:     /" >&2
23309     ;;
23310 esac
23311 echo "$as_me:$LINENO: checking for $ac_header" >&5
23312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23314   echo $ECHO_N "(cached) $ECHO_C" >&6
23315 else
23316   eval "$as_ac_Header=\$ac_header_preproc"
23317 fi
23318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23320
23321 fi
23322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23323   cat >>confdefs.h <<_ACEOF
23324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23325 _ACEOF
23326
23327 fi
23328
23329 done
23330
23331
23332         if test $ac_cv_header_ltdl_h = no ; then
23333                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23334 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23335    { (exit 1); exit 1; }; }
23336         fi
23337
23338         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23339 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23340 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23341   echo $ECHO_N "(cached) $ECHO_C" >&6
23342 else
23343   ac_check_lib_save_LIBS=$LIBS
23344 LIBS="-lltdl  $LIBS"
23345 cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351
23352 /* Override any gcc2 internal prototype to avoid an error.  */
23353 #ifdef __cplusplus
23354 extern "C"
23355 #endif
23356 /* We use char because int might match the return type of a gcc2
23357    builtin and then its argument prototype would still apply.  */
23358 char lt_dlinit ();
23359 int
23360 main ()
23361 {
23362 lt_dlinit ();
23363   ;
23364   return 0;
23365 }
23366 _ACEOF
23367 rm -f conftest.$ac_objext conftest$ac_exeext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23369   (eval $ac_link) 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } &&
23376          { ac_try='test -z "$ac_c_werror_flag"
23377                          || test ! -s conftest.err'
23378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379   (eval $ac_try) 2>&5
23380   ac_status=$?
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); }; } &&
23383          { ac_try='test -s conftest$ac_exeext'
23384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385   (eval $ac_try) 2>&5
23386   ac_status=$?
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); }; }; then
23389   ac_cv_lib_ltdl_lt_dlinit=yes
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394 ac_cv_lib_ltdl_lt_dlinit=no
23395 fi
23396 rm -f conftest.err conftest.$ac_objext \
23397       conftest$ac_exeext conftest.$ac_ext
23398 LIBS=$ac_check_lib_save_LIBS
23399 fi
23400 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23401 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23402 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23403
23404                 MODULES_LIBS=-lltdl
23405
23406 cat >>confdefs.h <<\_ACEOF
23407 #define HAVE_LIBLTDL 1
23408 _ACEOF
23409
23410
23411 fi
23412
23413
23414         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23415                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23416 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23417    { (exit 1); exit 1; }; }
23418         fi
23419         ol_link_modules=yes
23420         WITH_MODULES_ENABLED=yes
23421
23422 else
23423         for i in $Backends; do
23424                 eval "ol_tmp=\$ol_enable_$i"
23425                 if test $ol_tmp = mod ; then
23426                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23427 echo "$as_me: WARNING: building static $i backend" >&2;}
23428                         eval "ol_enable_$i=yes"
23429                 fi
23430         done
23431         for i in $Overlays; do
23432                 eval "ol_tmp=\$ol_enable_$i"
23433                 if test $ol_tmp = mod ; then
23434                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23435 echo "$as_me: WARNING: building static $i overlay" >&2;}
23436                         eval "ol_enable_$i=yes"
23437                 fi
23438         done
23439 fi
23440
23441 # test for EBCDIC
23442 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23443 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23444 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23445   echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447
23448         cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454
23455 #if !('M' == 0xd4)
23456 #include <__ASCII__/generate_error.h>
23457 #endif
23458
23459 _ACEOF
23460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } >/dev/null; then
23468   if test -s conftest.err; then
23469     ac_cpp_err=$ac_c_preproc_warn_flag
23470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23471   else
23472     ac_cpp_err=
23473   fi
23474 else
23475   ac_cpp_err=yes
23476 fi
23477 if test -z "$ac_cpp_err"; then
23478   ol_cv_cpp_ebcdic=yes
23479 else
23480   echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23482
23483   ol_cv_cpp_ebcdic=no
23484 fi
23485 rm -f conftest.err conftest.$ac_ext
23486 fi
23487 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23488 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23489 if test $ol_cv_cpp_ebcdic = yes ; then
23490
23491 cat >>confdefs.h <<\_ACEOF
23492 #define HAVE_EBCDIC 1
23493 _ACEOF
23494
23495 fi
23496
23497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23499 if test "${ol_cv_header_stdc+set}" = set; then
23500   echo $ECHO_N "(cached) $ECHO_C" >&6
23501 else
23502   cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h.  */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h.  */
23508 #include <stdlib.h>
23509 #include <stdarg.h>
23510 #include <string.h>
23511 #include <float.h>
23512 _ACEOF
23513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23515   ac_status=$?
23516   grep -v '^ *+' conftest.er1 >conftest.err
23517   rm -f conftest.er1
23518   cat conftest.err >&5
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } >/dev/null; then
23521   if test -s conftest.err; then
23522     ac_cpp_err=$ac_c_preproc_warn_flag
23523     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23524   else
23525     ac_cpp_err=
23526   fi
23527 else
23528   ac_cpp_err=yes
23529 fi
23530 if test -z "$ac_cpp_err"; then
23531   ol_cv_header_stdc=yes
23532 else
23533   echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23535
23536   ol_cv_header_stdc=no
23537 fi
23538 rm -f conftest.err conftest.$ac_ext
23539
23540 if test $ol_cv_header_stdc = yes; then
23541   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548 #include <string.h>
23549
23550 _ACEOF
23551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23552   $EGREP "memchr" >/dev/null 2>&1; then
23553   :
23554 else
23555   ol_cv_header_stdc=no
23556 fi
23557 rm -f conftest*
23558
23559 fi
23560
23561 if test $ol_cv_header_stdc = yes; then
23562   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23563 cat >conftest.$ac_ext <<_ACEOF
23564 /* confdefs.h.  */
23565 _ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h.  */
23569 #include <stdlib.h>
23570
23571 _ACEOF
23572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23573   $EGREP "free" >/dev/null 2>&1; then
23574   :
23575 else
23576   ol_cv_header_stdc=no
23577 fi
23578 rm -f conftest*
23579
23580 fi
23581
23582 if test $ol_cv_header_stdc = yes; then
23583   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23584 if test "$cross_compiling" = yes; then
23585   :
23586 else
23587   cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 #include <ctype.h>
23594 #ifndef HAVE_EBCDIC
23595 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23596 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23597 #else
23598 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23599                 || ('j' <= (c) && (c) <= 'r') \
23600                 || ('s' <= (c) && (c) <= 'z'))
23601 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23602 #endif
23603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23604 int main () { int i; for (i = 0; i < 256; i++)
23605 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23606 exit (0); }
23607
23608 _ACEOF
23609 rm -f conftest$ac_exeext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611   (eval $ac_link) 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616   (eval $ac_try) 2>&5
23617   ac_status=$?
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); }; }; then
23620   :
23621 else
23622   echo "$as_me: program exited with status $ac_status" >&5
23623 echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23625
23626 ( exit $ac_status )
23627 ol_cv_header_stdc=no
23628 fi
23629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23630 fi
23631 fi
23632 fi
23633 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23634 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23635 if test $ol_cv_header_stdc = yes; then
23636   cat >>confdefs.h <<\_ACEOF
23637 #define STDC_HEADERS 1
23638 _ACEOF
23639
23640 fi
23641 ac_cv_header_stdc=disable
23642
23643
23644 if test $ol_cv_header_stdc != yes; then
23645         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23646 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23647 fi
23648
23649
23650
23651
23652
23653
23654 ac_header_dirent=no
23655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23656   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23657 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23660   echo $ECHO_N "(cached) $ECHO_C" >&6
23661 else
23662   cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668 #include <sys/types.h>
23669 #include <$ac_hdr>
23670
23671 int
23672 main ()
23673 {
23674 if ((DIR *) 0)
23675 return 0;
23676   ;
23677   return 0;
23678 }
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23682   (eval $ac_compile) 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } &&
23689          { ac_try='test -z "$ac_c_werror_flag"
23690                          || test ! -s conftest.err'
23691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692   (eval $ac_try) 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); }; } &&
23696          { ac_try='test -s conftest.$ac_objext'
23697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698   (eval $ac_try) 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; }; then
23702   eval "$as_ac_Header=yes"
23703 else
23704   echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 eval "$as_ac_Header=no"
23708 fi
23709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23710 fi
23711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23714   cat >>confdefs.h <<_ACEOF
23715 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23716 _ACEOF
23717
23718 ac_header_dirent=$ac_hdr; break
23719 fi
23720
23721 done
23722 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23723 if test $ac_header_dirent = dirent.h; then
23724   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23725 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23726 if test "${ac_cv_search_opendir+set}" = set; then
23727   echo $ECHO_N "(cached) $ECHO_C" >&6
23728 else
23729   ac_func_search_save_LIBS=$LIBS
23730 ac_cv_search_opendir=no
23731 cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h.  */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h.  */
23737
23738 /* Override any gcc2 internal prototype to avoid an error.  */
23739 #ifdef __cplusplus
23740 extern "C"
23741 #endif
23742 /* We use char because int might match the return type of a gcc2
23743    builtin and then its argument prototype would still apply.  */
23744 char opendir ();
23745 int
23746 main ()
23747 {
23748 opendir ();
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23755   (eval $ac_link) 2>conftest.er1
23756   ac_status=$?
23757   grep -v '^ *+' conftest.er1 >conftest.err
23758   rm -f conftest.er1
23759   cat conftest.err >&5
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); } &&
23762          { ac_try='test -z "$ac_c_werror_flag"
23763                          || test ! -s conftest.err'
23764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765   (eval $ac_try) 2>&5
23766   ac_status=$?
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); }; } &&
23769          { ac_try='test -s conftest$ac_exeext'
23770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771   (eval $ac_try) 2>&5
23772   ac_status=$?
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); }; }; then
23775   ac_cv_search_opendir="none required"
23776 else
23777   echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 fi
23781 rm -f conftest.err conftest.$ac_objext \
23782       conftest$ac_exeext conftest.$ac_ext
23783 if test "$ac_cv_search_opendir" = no; then
23784   for ac_lib in dir; do
23785     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23786     cat >conftest.$ac_ext <<_ACEOF
23787 /* confdefs.h.  */
23788 _ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h.  */
23792
23793 /* Override any gcc2 internal prototype to avoid an error.  */
23794 #ifdef __cplusplus
23795 extern "C"
23796 #endif
23797 /* We use char because int might match the return type of a gcc2
23798    builtin and then its argument prototype would still apply.  */
23799 char opendir ();
23800 int
23801 main ()
23802 {
23803 opendir ();
23804   ;
23805   return 0;
23806 }
23807 _ACEOF
23808 rm -f conftest.$ac_objext conftest$ac_exeext
23809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23810   (eval $ac_link) 2>conftest.er1
23811   ac_status=$?
23812   grep -v '^ *+' conftest.er1 >conftest.err
23813   rm -f conftest.er1
23814   cat conftest.err >&5
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); } &&
23817          { ac_try='test -z "$ac_c_werror_flag"
23818                          || test ! -s conftest.err'
23819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820   (eval $ac_try) 2>&5
23821   ac_status=$?
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); }; } &&
23824          { ac_try='test -s conftest$ac_exeext'
23825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826   (eval $ac_try) 2>&5
23827   ac_status=$?
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); }; }; then
23830   ac_cv_search_opendir="-l$ac_lib"
23831 break
23832 else
23833   echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836 fi
23837 rm -f conftest.err conftest.$ac_objext \
23838       conftest$ac_exeext conftest.$ac_ext
23839   done
23840 fi
23841 LIBS=$ac_func_search_save_LIBS
23842 fi
23843 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23844 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23845 if test "$ac_cv_search_opendir" != no; then
23846   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23847
23848 fi
23849
23850 else
23851   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23853 if test "${ac_cv_search_opendir+set}" = set; then
23854   echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856   ac_func_search_save_LIBS=$LIBS
23857 ac_cv_search_opendir=no
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h.  */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h.  */
23864
23865 /* Override any gcc2 internal prototype to avoid an error.  */
23866 #ifdef __cplusplus
23867 extern "C"
23868 #endif
23869 /* We use char because int might match the return type of a gcc2
23870    builtin and then its argument prototype would still apply.  */
23871 char opendir ();
23872 int
23873 main ()
23874 {
23875 opendir ();
23876   ;
23877   return 0;
23878 }
23879 _ACEOF
23880 rm -f conftest.$ac_objext conftest$ac_exeext
23881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23882   (eval $ac_link) 2>conftest.er1
23883   ac_status=$?
23884   grep -v '^ *+' conftest.er1 >conftest.err
23885   rm -f conftest.er1
23886   cat conftest.err >&5
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); } &&
23889          { ac_try='test -z "$ac_c_werror_flag"
23890                          || test ! -s conftest.err'
23891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892   (eval $ac_try) 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; } &&
23896          { ac_try='test -s conftest$ac_exeext'
23897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898   (eval $ac_try) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); }; }; then
23902   ac_cv_search_opendir="none required"
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 fi
23908 rm -f conftest.err conftest.$ac_objext \
23909       conftest$ac_exeext conftest.$ac_ext
23910 if test "$ac_cv_search_opendir" = no; then
23911   for ac_lib in x; do
23912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23913     cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919
23920 /* Override any gcc2 internal prototype to avoid an error.  */
23921 #ifdef __cplusplus
23922 extern "C"
23923 #endif
23924 /* We use char because int might match the return type of a gcc2
23925    builtin and then its argument prototype would still apply.  */
23926 char opendir ();
23927 int
23928 main ()
23929 {
23930 opendir ();
23931   ;
23932   return 0;
23933 }
23934 _ACEOF
23935 rm -f conftest.$ac_objext conftest$ac_exeext
23936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23937   (eval $ac_link) 2>conftest.er1
23938   ac_status=$?
23939   grep -v '^ *+' conftest.er1 >conftest.err
23940   rm -f conftest.er1
23941   cat conftest.err >&5
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); } &&
23944          { ac_try='test -z "$ac_c_werror_flag"
23945                          || test ! -s conftest.err'
23946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947   (eval $ac_try) 2>&5
23948   ac_status=$?
23949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950   (exit $ac_status); }; } &&
23951          { ac_try='test -s conftest$ac_exeext'
23952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953   (eval $ac_try) 2>&5
23954   ac_status=$?
23955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956   (exit $ac_status); }; }; then
23957   ac_cv_search_opendir="-l$ac_lib"
23958 break
23959 else
23960   echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963 fi
23964 rm -f conftest.err conftest.$ac_objext \
23965       conftest$ac_exeext conftest.$ac_ext
23966   done
23967 fi
23968 LIBS=$ac_func_search_save_LIBS
23969 fi
23970 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23971 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23972 if test "$ac_cv_search_opendir" != no; then
23973   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23974
23975 fi
23976
23977 fi
23978
23979 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23980 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23981 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23982   echo $ECHO_N "(cached) $ECHO_C" >&6
23983 else
23984   cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h.  */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h.  */
23990 #include <sys/types.h>
23991 #include <sys/wait.h>
23992 #ifndef WEXITSTATUS
23993 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23994 #endif
23995 #ifndef WIFEXITED
23996 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23997 #endif
23998
23999 int
24000 main ()
24001 {
24002   int s;
24003   wait (&s);
24004   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011   (eval $ac_compile) 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_objext'
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_header_sys_wait_h=yes
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 ac_cv_header_sys_wait_h=no
24037 fi
24038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24039 fi
24040 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24041 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24042 if test $ac_cv_header_sys_wait_h = yes; then
24043
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_SYS_WAIT_H 1
24046 _ACEOF
24047
24048 fi
24049
24050 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24051 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24052 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24053   echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055   cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061 #include <sys/types.h>
24062 #include <termios.h>
24063 #ifdef TIOCGWINSZ
24064   yes
24065 #endif
24066
24067 _ACEOF
24068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24069   $EGREP "yes" >/dev/null 2>&1; then
24070   ac_cv_sys_tiocgwinsz_in_termios_h=yes
24071 else
24072   ac_cv_sys_tiocgwinsz_in_termios_h=no
24073 fi
24074 rm -f conftest*
24075
24076 fi
24077 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24078 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24079
24080 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24081   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24082 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24083 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24084   echo $ECHO_N "(cached) $ECHO_C" >&6
24085 else
24086   cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092 #include <sys/types.h>
24093 #include <sys/ioctl.h>
24094 #ifdef TIOCGWINSZ
24095   yes
24096 #endif
24097
24098 _ACEOF
24099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24100   $EGREP "yes" >/dev/null 2>&1; then
24101   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24102 else
24103   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24104 fi
24105 rm -f conftest*
24106
24107 fi
24108 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24109 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24110
24111   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24112
24113 cat >>confdefs.h <<\_ACEOF
24114 #define GWINSZ_IN_SYS_IOCTL 1
24115 _ACEOF
24116
24117   fi
24118 fi
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168 for ac_header in \
24169         arpa/inet.h             \
24170         arpa/nameser.h          \
24171         assert.h                \
24172         bits/types.h            \
24173         conio.h                 \
24174         crypt.h                 \
24175         direct.h                \
24176         errno.h                 \
24177         fcntl.h                 \
24178         filio.h                 \
24179         getopt.h                \
24180         grp.h                   \
24181         io.h                    \
24182         libutil.h               \
24183         limits.h                \
24184         locale.h                \
24185         netinet/tcp.h           \
24186         malloc.h                \
24187         memory.h                \
24188         psap.h                  \
24189         pwd.h                   \
24190         process.h               \
24191         sgtty.h                 \
24192         shadow.h                \
24193         stddef.h                \
24194         string.h                \
24195         strings.h               \
24196         sysexits.h              \
24197         sys/file.h              \
24198         sys/filio.h             \
24199         sys/errno.h             \
24200         sys/ioctl.h             \
24201         sys/param.h             \
24202         sys/resource.h          \
24203         sys/select.h            \
24204         sys/socket.h            \
24205         sys/stat.h              \
24206         sys/syslog.h            \
24207         sys/time.h              \
24208         sys/types.h             \
24209         sys/uio.h               \
24210         syslog.h                \
24211         termios.h               \
24212         unistd.h                \
24213         utime.h                 \
24214         winsock.h               \
24215         winsock2.h              \
24216
24217 do
24218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24220   echo "$as_me:$LINENO: checking for $ac_header" >&5
24221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24223   echo $ECHO_N "(cached) $ECHO_C" >&6
24224 fi
24225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24227 else
24228   # Is the header compilable?
24229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24231 cat >conftest.$ac_ext <<_ACEOF
24232 /* confdefs.h.  */
24233 _ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h.  */
24237 $ac_includes_default
24238 #include <$ac_header>
24239 _ACEOF
24240 rm -f conftest.$ac_objext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24242   (eval $ac_compile) 2>conftest.er1
24243   ac_status=$?
24244   grep -v '^ *+' conftest.er1 >conftest.err
24245   rm -f conftest.er1
24246   cat conftest.err >&5
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); } &&
24249          { ac_try='test -z "$ac_c_werror_flag"
24250                          || test ! -s conftest.err'
24251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252   (eval $ac_try) 2>&5
24253   ac_status=$?
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); }; } &&
24256          { ac_try='test -s conftest.$ac_objext'
24257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258   (eval $ac_try) 2>&5
24259   ac_status=$?
24260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); }; }; then
24262   ac_header_compiler=yes
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267 ac_header_compiler=no
24268 fi
24269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24271 echo "${ECHO_T}$ac_header_compiler" >&6
24272
24273 # Is the header present?
24274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 #include <$ac_header>
24283 _ACEOF
24284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24286   ac_status=$?
24287   grep -v '^ *+' conftest.er1 >conftest.err
24288   rm -f conftest.er1
24289   cat conftest.err >&5
24290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291   (exit $ac_status); } >/dev/null; then
24292   if test -s conftest.err; then
24293     ac_cpp_err=$ac_c_preproc_warn_flag
24294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24295   else
24296     ac_cpp_err=
24297   fi
24298 else
24299   ac_cpp_err=yes
24300 fi
24301 if test -z "$ac_cpp_err"; then
24302   ac_header_preproc=yes
24303 else
24304   echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24306
24307   ac_header_preproc=no
24308 fi
24309 rm -f conftest.err conftest.$ac_ext
24310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24311 echo "${ECHO_T}$ac_header_preproc" >&6
24312
24313 # So?  What about this header?
24314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24315   yes:no: )
24316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24320     ac_header_preproc=yes
24321     ;;
24322   no:yes:* )
24323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24335     (
24336       cat <<\_ASBOX
24337 ## ------------------------------------------ ##
24338 ## Report this to the AC_PACKAGE_NAME lists.  ##
24339 ## ------------------------------------------ ##
24340 _ASBOX
24341     ) |
24342       sed "s/^/$as_me: WARNING:     /" >&2
24343     ;;
24344 esac
24345 echo "$as_me:$LINENO: checking for $ac_header" >&5
24346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24348   echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24350   eval "$as_ac_Header=\$ac_header_preproc"
24351 fi
24352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24354
24355 fi
24356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24357   cat >>confdefs.h <<_ACEOF
24358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24359 _ACEOF
24360
24361 fi
24362
24363 done
24364
24365
24366
24367 for ac_header in resolv.h
24368 do
24369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24370 echo "$as_me:$LINENO: checking for $ac_header" >&5
24371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24373   echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375   cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h.  */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h.  */
24381 $ac_includes_default
24382 #include <netinet/in.h>
24383
24384
24385 #include <$ac_header>
24386 _ACEOF
24387 rm -f conftest.$ac_objext
24388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24389   (eval $ac_compile) 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } &&
24396          { ac_try='test -z "$ac_c_werror_flag"
24397                          || test ! -s conftest.err'
24398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399   (eval $ac_try) 2>&5
24400   ac_status=$?
24401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); }; } &&
24403          { ac_try='test -s conftest.$ac_objext'
24404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405   (eval $ac_try) 2>&5
24406   ac_status=$?
24407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408   (exit $ac_status); }; }; then
24409   eval "$as_ac_Header=yes"
24410 else
24411   echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24413
24414 eval "$as_ac_Header=no"
24415 fi
24416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24417 fi
24418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24421   cat >>confdefs.h <<_ACEOF
24422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24423 _ACEOF
24424
24425 fi
24426
24427 done
24428
24429
24430
24431 for ac_header in sys/ucred.h
24432 do
24433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24434 echo "$as_me:$LINENO: checking for $ac_header" >&5
24435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24437   echo $ECHO_N "(cached) $ECHO_C" >&6
24438 else
24439   cat >conftest.$ac_ext <<_ACEOF
24440 /* confdefs.h.  */
24441 _ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h.  */
24445 $ac_includes_default
24446 #ifdef HAVE_SYS_PARAM_H
24447 #include <sys/param.h>
24448 #endif
24449
24450
24451 #include <$ac_header>
24452 _ACEOF
24453 rm -f conftest.$ac_objext
24454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24455   (eval $ac_compile) 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } &&
24462          { ac_try='test -z "$ac_c_werror_flag"
24463                          || test ! -s conftest.err'
24464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465   (eval $ac_try) 2>&5
24466   ac_status=$?
24467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468   (exit $ac_status); }; } &&
24469          { ac_try='test -s conftest.$ac_objext'
24470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471   (eval $ac_try) 2>&5
24472   ac_status=$?
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); }; }; then
24475   eval "$as_ac_Header=yes"
24476 else
24477   echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24479
24480 eval "$as_ac_Header=no"
24481 fi
24482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24483 fi
24484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24487   cat >>confdefs.h <<_ACEOF
24488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24489 _ACEOF
24490
24491 fi
24492
24493 done
24494
24495
24496
24497
24498
24499 for ac_func in sigaction sigset
24500 do
24501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24502 echo "$as_me:$LINENO: checking for $ac_func" >&5
24503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24504 if eval "test \"\${$as_ac_var+set}\" = set"; then
24505   echo $ECHO_N "(cached) $ECHO_C" >&6
24506 else
24507   cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h.  */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h.  */
24513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24515 #define $ac_func innocuous_$ac_func
24516
24517 /* System header to define __stub macros and hopefully few prototypes,
24518     which can conflict with char $ac_func (); below.
24519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24520     <limits.h> exists even on freestanding compilers.  */
24521
24522 #ifdef __STDC__
24523 # include <limits.h>
24524 #else
24525 # include <assert.h>
24526 #endif
24527
24528 #undef $ac_func
24529
24530 /* Override any gcc2 internal prototype to avoid an error.  */
24531 #ifdef __cplusplus
24532 extern "C"
24533 {
24534 #endif
24535 /* We use char because int might match the return type of a gcc2
24536    builtin and then its argument prototype would still apply.  */
24537 char $ac_func ();
24538 /* The GNU C library defines this for functions which it implements
24539     to always fail with ENOSYS.  Some functions are actually named
24540     something starting with __ and the normal name is an alias.  */
24541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24542 choke me
24543 #else
24544 char (*f) () = $ac_func;
24545 #endif
24546 #ifdef __cplusplus
24547 }
24548 #endif
24549
24550 int
24551 main ()
24552 {
24553 return f != $ac_func;
24554   ;
24555   return 0;
24556 }
24557 _ACEOF
24558 rm -f conftest.$ac_objext conftest$ac_exeext
24559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24560   (eval $ac_link) 2>conftest.er1
24561   ac_status=$?
24562   grep -v '^ *+' conftest.er1 >conftest.err
24563   rm -f conftest.er1
24564   cat conftest.err >&5
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); } &&
24567          { ac_try='test -z "$ac_c_werror_flag"
24568                          || test ! -s conftest.err'
24569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570   (eval $ac_try) 2>&5
24571   ac_status=$?
24572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573   (exit $ac_status); }; } &&
24574          { ac_try='test -s conftest$ac_exeext'
24575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576   (eval $ac_try) 2>&5
24577   ac_status=$?
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); }; }; then
24580   eval "$as_ac_var=yes"
24581 else
24582   echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24584
24585 eval "$as_ac_var=no"
24586 fi
24587 rm -f conftest.err conftest.$ac_objext \
24588       conftest$ac_exeext conftest.$ac_ext
24589 fi
24590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24592 if test `eval echo '${'$as_ac_var'}'` = yes; then
24593   cat >>confdefs.h <<_ACEOF
24594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24595 _ACEOF
24596
24597 fi
24598 done
24599
24600
24601 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24602
24603 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24604 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24605 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608   ac_check_lib_save_LIBS=$LIBS
24609 LIBS="-lV3  $LIBS"
24610 cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616
24617 /* Override any gcc2 internal prototype to avoid an error.  */
24618 #ifdef __cplusplus
24619 extern "C"
24620 #endif
24621 /* We use char because int might match the return type of a gcc2
24622    builtin and then its argument prototype would still apply.  */
24623 char sigset ();
24624 int
24625 main ()
24626 {
24627 sigset ();
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   ac_cv_lib_V3_sigset=yes
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659 ac_cv_lib_V3_sigset=no
24660 fi
24661 rm -f conftest.err conftest.$ac_objext \
24662       conftest$ac_exeext conftest.$ac_ext
24663 LIBS=$ac_check_lib_save_LIBS
24664 fi
24665 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24666 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24667 if test $ac_cv_lib_V3_sigset = yes; then
24668   cat >>confdefs.h <<_ACEOF
24669 #define HAVE_LIBV3 1
24670 _ACEOF
24671
24672   LIBS="-lV3 $LIBS"
24673
24674 fi
24675
24676 fi
24677
24678 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24679 echo "$as_me:$LINENO: checking for winsock" >&5
24680 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24681 if test "${ol_cv_winsock+set}" = set; then
24682   echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684   save_LIBS="$LIBS"
24685 for curlib in ws2_32 wsock32; do
24686         LIBS="$LIBS -l$curlib"
24687         cat >conftest.$ac_ext <<_ACEOF
24688 /* confdefs.h.  */
24689 _ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h.  */
24693 #include <winsock.h>
24694
24695 int
24696 main ()
24697 {
24698
24699                         socket(0,0,0);
24700                         select(0,NULL,NULL,NULL,NULL);
24701                         closesocket(0);
24702                         gethostname(NULL,0);
24703
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24710   (eval $ac_link) 2>conftest.er1
24711   ac_status=$?
24712   grep -v '^ *+' conftest.er1 >conftest.err
24713   rm -f conftest.er1
24714   cat conftest.err >&5
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); } &&
24717          { ac_try='test -z "$ac_c_werror_flag"
24718                          || test ! -s conftest.err'
24719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720   (eval $ac_try) 2>&5
24721   ac_status=$?
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); }; } &&
24724          { ac_try='test -s conftest$ac_exeext'
24725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726   (eval $ac_try) 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; }; then
24730   ol_cv_winsock=yes
24731 else
24732   echo "$as_me: failed program was:" >&5
24733 sed 's/^/| /' conftest.$ac_ext >&5
24734
24735 ol_cv_winsock=no
24736 fi
24737 rm -f conftest.err conftest.$ac_objext \
24738       conftest$ac_exeext conftest.$ac_ext
24739
24740         if test $ol_cv_winsock = yes; then
24741
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_WINSOCK 1
24744 _ACEOF
24745
24746                 ac_cv_func_socket=yes
24747                 ac_cv_func_select=yes
24748                 ac_cv_func_closesocket=yes
24749                 ac_cv_func_gethostname=yes
24750                 if test $curlib = ws2_32; then
24751                         ol_cv_winsock=winsock2
24752
24753 cat >>confdefs.h <<\_ACEOF
24754 #define HAVE_WINSOCK2 1
24755 _ACEOF
24756
24757                 fi
24758                 break
24759         fi
24760         LIBS="$save_LIBS"
24761 done
24762 fi
24763 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24764 echo "${ECHO_T}$ol_cv_winsock" >&6
24765 fi
24766
24767
24768 echo "$as_me:$LINENO: checking for socket" >&5
24769 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24770 if test "${ac_cv_func_socket+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24781 #define socket innocuous_socket
24782
24783 /* System header to define __stub macros and hopefully few prototypes,
24784     which can conflict with char socket (); below.
24785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24786     <limits.h> exists even on freestanding compilers.  */
24787
24788 #ifdef __STDC__
24789 # include <limits.h>
24790 #else
24791 # include <assert.h>
24792 #endif
24793
24794 #undef socket
24795
24796 /* Override any gcc2 internal prototype to avoid an error.  */
24797 #ifdef __cplusplus
24798 extern "C"
24799 {
24800 #endif
24801 /* We use char because int might match the return type of a gcc2
24802    builtin and then its argument prototype would still apply.  */
24803 char socket ();
24804 /* The GNU C library defines this for functions which it implements
24805     to always fail with ENOSYS.  Some functions are actually named
24806     something starting with __ and the normal name is an alias.  */
24807 #if defined (__stub_socket) || defined (__stub___socket)
24808 choke me
24809 #else
24810 char (*f) () = socket;
24811 #endif
24812 #ifdef __cplusplus
24813 }
24814 #endif
24815
24816 int
24817 main ()
24818 {
24819 return f != socket;
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 rm -f conftest.$ac_objext conftest$ac_exeext
24825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24826   (eval $ac_link) 2>conftest.er1
24827   ac_status=$?
24828   grep -v '^ *+' conftest.er1 >conftest.err
24829   rm -f conftest.er1
24830   cat conftest.err >&5
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } &&
24833          { ac_try='test -z "$ac_c_werror_flag"
24834                          || test ! -s conftest.err'
24835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836   (eval $ac_try) 2>&5
24837   ac_status=$?
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); }; } &&
24840          { ac_try='test -s conftest$ac_exeext'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; }; then
24846   ac_cv_func_socket=yes
24847 else
24848   echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851 ac_cv_func_socket=no
24852 fi
24853 rm -f conftest.err conftest.$ac_objext \
24854       conftest$ac_exeext conftest.$ac_ext
24855 fi
24856 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24857 echo "${ECHO_T}$ac_cv_func_socket" >&6
24858 if test $ac_cv_func_socket = yes; then
24859   :
24860 else
24861
24862
24863 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24864 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24865 if test "${ac_cv_lib_socket_main+set}" = set; then
24866   echo $ECHO_N "(cached) $ECHO_C" >&6
24867 else
24868   ac_check_lib_save_LIBS=$LIBS
24869 LIBS="-lsocket  $LIBS"
24870 cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h.  */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h.  */
24876
24877
24878 int
24879 main ()
24880 {
24881 main ();
24882   ;
24883   return 0;
24884 }
24885 _ACEOF
24886 rm -f conftest.$ac_objext conftest$ac_exeext
24887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24888   (eval $ac_link) 2>conftest.er1
24889   ac_status=$?
24890   grep -v '^ *+' conftest.er1 >conftest.err
24891   rm -f conftest.er1
24892   cat conftest.err >&5
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); } &&
24895          { ac_try='test -z "$ac_c_werror_flag"
24896                          || test ! -s conftest.err'
24897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898   (eval $ac_try) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; } &&
24902          { ac_try='test -s conftest$ac_exeext'
24903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904   (eval $ac_try) 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); }; }; then
24908   ac_cv_lib_socket_main=yes
24909 else
24910   echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24912
24913 ac_cv_lib_socket_main=no
24914 fi
24915 rm -f conftest.err conftest.$ac_objext \
24916       conftest$ac_exeext conftest.$ac_ext
24917 LIBS=$ac_check_lib_save_LIBS
24918 fi
24919 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24920 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24921 if test $ac_cv_lib_socket_main = yes; then
24922   cat >>confdefs.h <<_ACEOF
24923 #define HAVE_LIBSOCKET 1
24924 _ACEOF
24925
24926   LIBS="-lsocket $LIBS"
24927
24928 fi
24929
24930
24931 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24932 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24933 if test "${ac_cv_lib_net_main+set}" = set; then
24934   echo $ECHO_N "(cached) $ECHO_C" >&6
24935 else
24936   ac_check_lib_save_LIBS=$LIBS
24937 LIBS="-lnet  $LIBS"
24938 cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h.  */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h.  */
24944
24945
24946 int
24947 main ()
24948 {
24949 main ();
24950   ;
24951   return 0;
24952 }
24953 _ACEOF
24954 rm -f conftest.$ac_objext conftest$ac_exeext
24955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24956   (eval $ac_link) 2>conftest.er1
24957   ac_status=$?
24958   grep -v '^ *+' conftest.er1 >conftest.err
24959   rm -f conftest.er1
24960   cat conftest.err >&5
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); } &&
24963          { ac_try='test -z "$ac_c_werror_flag"
24964                          || test ! -s conftest.err'
24965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966   (eval $ac_try) 2>&5
24967   ac_status=$?
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); }; } &&
24970          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24976   ac_cv_lib_net_main=yes
24977 else
24978   echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24980
24981 ac_cv_lib_net_main=no
24982 fi
24983 rm -f conftest.err conftest.$ac_objext \
24984       conftest$ac_exeext conftest.$ac_ext
24985 LIBS=$ac_check_lib_save_LIBS
24986 fi
24987 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24988 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24989 if test $ac_cv_lib_net_main = yes; then
24990   cat >>confdefs.h <<_ACEOF
24991 #define HAVE_LIBNET 1
24992 _ACEOF
24993
24994   LIBS="-lnet $LIBS"
24995
24996 fi
24997
24998
24999 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25000 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25001 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25002   echo $ECHO_N "(cached) $ECHO_C" >&6
25003 else
25004   ac_check_lib_save_LIBS=$LIBS
25005 LIBS="-lnsl_s  $LIBS"
25006 cat >conftest.$ac_ext <<_ACEOF
25007 /* confdefs.h.  */
25008 _ACEOF
25009 cat confdefs.h >>conftest.$ac_ext
25010 cat >>conftest.$ac_ext <<_ACEOF
25011 /* end confdefs.h.  */
25012
25013
25014 int
25015 main ()
25016 {
25017 main ();
25018   ;
25019   return 0;
25020 }
25021 _ACEOF
25022 rm -f conftest.$ac_objext conftest$ac_exeext
25023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25024   (eval $ac_link) 2>conftest.er1
25025   ac_status=$?
25026   grep -v '^ *+' conftest.er1 >conftest.err
25027   rm -f conftest.er1
25028   cat conftest.err >&5
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); } &&
25031          { ac_try='test -z "$ac_c_werror_flag"
25032                          || test ! -s conftest.err'
25033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034   (eval $ac_try) 2>&5
25035   ac_status=$?
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); }; } &&
25038          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25044   ac_cv_lib_nsl_s_main=yes
25045 else
25046   echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25048
25049 ac_cv_lib_nsl_s_main=no
25050 fi
25051 rm -f conftest.err conftest.$ac_objext \
25052       conftest$ac_exeext conftest.$ac_ext
25053 LIBS=$ac_check_lib_save_LIBS
25054 fi
25055 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25056 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25057 if test $ac_cv_lib_nsl_s_main = yes; then
25058   cat >>confdefs.h <<_ACEOF
25059 #define HAVE_LIBNSL_S 1
25060 _ACEOF
25061
25062   LIBS="-lnsl_s $LIBS"
25063
25064 fi
25065
25066
25067 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25068 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25069 if test "${ac_cv_lib_nsl_main+set}" = set; then
25070   echo $ECHO_N "(cached) $ECHO_C" >&6
25071 else
25072   ac_check_lib_save_LIBS=$LIBS
25073 LIBS="-lnsl  $LIBS"
25074 cat >conftest.$ac_ext <<_ACEOF
25075 /* confdefs.h.  */
25076 _ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h.  */
25080
25081
25082 int
25083 main ()
25084 {
25085 main ();
25086   ;
25087   return 0;
25088 }
25089 _ACEOF
25090 rm -f conftest.$ac_objext conftest$ac_exeext
25091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25092   (eval $ac_link) 2>conftest.er1
25093   ac_status=$?
25094   grep -v '^ *+' conftest.er1 >conftest.err
25095   rm -f conftest.er1
25096   cat conftest.err >&5
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); } &&
25099          { ac_try='test -z "$ac_c_werror_flag"
25100                          || test ! -s conftest.err'
25101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102   (eval $ac_try) 2>&5
25103   ac_status=$?
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); }; } &&
25106          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25112   ac_cv_lib_nsl_main=yes
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117 ac_cv_lib_nsl_main=no
25118 fi
25119 rm -f conftest.err conftest.$ac_objext \
25120       conftest$ac_exeext conftest.$ac_ext
25121 LIBS=$ac_check_lib_save_LIBS
25122 fi
25123 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25124 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25125 if test $ac_cv_lib_nsl_main = yes; then
25126   cat >>confdefs.h <<_ACEOF
25127 #define HAVE_LIBNSL 1
25128 _ACEOF
25129
25130   LIBS="-lnsl $LIBS"
25131
25132 fi
25133
25134
25135 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25136 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25137 if test "${ac_cv_lib_inet_socket+set}" = set; then
25138   echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140   ac_check_lib_save_LIBS=$LIBS
25141 LIBS="-linet  $LIBS"
25142 cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148
25149 /* Override any gcc2 internal prototype to avoid an error.  */
25150 #ifdef __cplusplus
25151 extern "C"
25152 #endif
25153 /* We use char because int might match the return type of a gcc2
25154    builtin and then its argument prototype would still apply.  */
25155 char socket ();
25156 int
25157 main ()
25158 {
25159 socket ();
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_inet_socket=yes
25187 else
25188   echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25190
25191 ac_cv_lib_inet_socket=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_inet_socket" >&5
25198 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25199 if test $ac_cv_lib_inet_socket = yes; then
25200   cat >>confdefs.h <<_ACEOF
25201 #define HAVE_LIBINET 1
25202 _ACEOF
25203
25204   LIBS="-linet $LIBS"
25205
25206 fi
25207
25208
25209 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25210 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25211 if test "${ac_cv_lib_gen_main+set}" = set; then
25212   echo $ECHO_N "(cached) $ECHO_C" >&6
25213 else
25214   ac_check_lib_save_LIBS=$LIBS
25215 LIBS="-lgen  $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
25224 int
25225 main ()
25226 {
25227 main ();
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest.$ac_objext conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234   (eval $ac_link) 2>conftest.er1
25235   ac_status=$?
25236   grep -v '^ *+' conftest.er1 >conftest.err
25237   rm -f conftest.er1
25238   cat conftest.err >&5
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); } &&
25241          { ac_try='test -z "$ac_c_werror_flag"
25242                          || test ! -s conftest.err'
25243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244   (eval $ac_try) 2>&5
25245   ac_status=$?
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); }; } &&
25248          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25254   ac_cv_lib_gen_main=yes
25255 else
25256   echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259 ac_cv_lib_gen_main=no
25260 fi
25261 rm -f conftest.err conftest.$ac_objext \
25262       conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_check_lib_save_LIBS
25264 fi
25265 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25266 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25267 if test $ac_cv_lib_gen_main = yes; then
25268   cat >>confdefs.h <<_ACEOF
25269 #define HAVE_LIBGEN 1
25270 _ACEOF
25271
25272   LIBS="-lgen $LIBS"
25273
25274 fi
25275
25276
25277 fi
25278
25279
25280 echo "$as_me:$LINENO: checking for select" >&5
25281 echo $ECHO_N "checking for select... $ECHO_C" >&6
25282 if test "${ac_cv_func_select+set}" = set; then
25283   echo $ECHO_N "(cached) $ECHO_C" >&6
25284 else
25285   cat >conftest.$ac_ext <<_ACEOF
25286 /* confdefs.h.  */
25287 _ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h.  */
25291 /* Define select to an innocuous variant, in case <limits.h> declares select.
25292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25293 #define select innocuous_select
25294
25295 /* System header to define __stub macros and hopefully few prototypes,
25296     which can conflict with char select (); below.
25297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25298     <limits.h> exists even on freestanding compilers.  */
25299
25300 #ifdef __STDC__
25301 # include <limits.h>
25302 #else
25303 # include <assert.h>
25304 #endif
25305
25306 #undef select
25307
25308 /* Override any gcc2 internal prototype to avoid an error.  */
25309 #ifdef __cplusplus
25310 extern "C"
25311 {
25312 #endif
25313 /* We use char because int might match the return type of a gcc2
25314    builtin and then its argument prototype would still apply.  */
25315 char select ();
25316 /* The GNU C library defines this for functions which it implements
25317     to always fail with ENOSYS.  Some functions are actually named
25318     something starting with __ and the normal name is an alias.  */
25319 #if defined (__stub_select) || defined (__stub___select)
25320 choke me
25321 #else
25322 char (*f) () = select;
25323 #endif
25324 #ifdef __cplusplus
25325 }
25326 #endif
25327
25328 int
25329 main ()
25330 {
25331 return f != select;
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext conftest$ac_exeext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25338   (eval $ac_link) 2>conftest.er1
25339   ac_status=$?
25340   grep -v '^ *+' conftest.er1 >conftest.err
25341   rm -f conftest.er1
25342   cat conftest.err >&5
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } &&
25345          { ac_try='test -z "$ac_c_werror_flag"
25346                          || test ! -s conftest.err'
25347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348   (eval $ac_try) 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; } &&
25352          { ac_try='test -s conftest$ac_exeext'
25353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354   (eval $ac_try) 2>&5
25355   ac_status=$?
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); }; }; then
25358   ac_cv_func_select=yes
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363 ac_cv_func_select=no
25364 fi
25365 rm -f conftest.err conftest.$ac_objext \
25366       conftest$ac_exeext conftest.$ac_ext
25367 fi
25368 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25369 echo "${ECHO_T}$ac_cv_func_select" >&6
25370 if test $ac_cv_func_select = yes; then
25371   :
25372 else
25373   { { echo "$as_me:$LINENO: error: select() required." >&5
25374 echo "$as_me: error: select() required." >&2;}
25375    { (exit 1); exit 1; }; }
25376 fi
25377
25378
25379 if test "${ac_cv_header_winsock_h}" != yes; then
25380
25381
25382 for ac_header in sys/select.h sys/socket.h
25383 do
25384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25386   echo "$as_me:$LINENO: checking for $ac_header" >&5
25387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25389   echo $ECHO_N "(cached) $ECHO_C" >&6
25390 fi
25391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25393 else
25394   # Is the header compilable?
25395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25397 cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 $ac_includes_default
25404 #include <$ac_header>
25405 _ACEOF
25406 rm -f conftest.$ac_objext
25407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25408   (eval $ac_compile) 2>conftest.er1
25409   ac_status=$?
25410   grep -v '^ *+' conftest.er1 >conftest.err
25411   rm -f conftest.er1
25412   cat conftest.err >&5
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); } &&
25415          { ac_try='test -z "$ac_c_werror_flag"
25416                          || test ! -s conftest.err'
25417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418   (eval $ac_try) 2>&5
25419   ac_status=$?
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); }; } &&
25422          { ac_try='test -s conftest.$ac_objext'
25423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424   (eval $ac_try) 2>&5
25425   ac_status=$?
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); }; }; then
25428   ac_header_compiler=yes
25429 else
25430   echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25432
25433 ac_header_compiler=no
25434 fi
25435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25437 echo "${ECHO_T}$ac_header_compiler" >&6
25438
25439 # Is the header present?
25440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25442 cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h.  */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h.  */
25448 #include <$ac_header>
25449 _ACEOF
25450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25452   ac_status=$?
25453   grep -v '^ *+' conftest.er1 >conftest.err
25454   rm -f conftest.er1
25455   cat conftest.err >&5
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); } >/dev/null; then
25458   if test -s conftest.err; then
25459     ac_cpp_err=$ac_c_preproc_warn_flag
25460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25461   else
25462     ac_cpp_err=
25463   fi
25464 else
25465   ac_cpp_err=yes
25466 fi
25467 if test -z "$ac_cpp_err"; then
25468   ac_header_preproc=yes
25469 else
25470   echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25472
25473   ac_header_preproc=no
25474 fi
25475 rm -f conftest.err conftest.$ac_ext
25476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25477 echo "${ECHO_T}$ac_header_preproc" >&6
25478
25479 # So?  What about this header?
25480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25481   yes:no: )
25482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25486     ac_header_preproc=yes
25487     ;;
25488   no:yes:* )
25489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25501     (
25502       cat <<\_ASBOX
25503 ## ------------------------------------------ ##
25504 ## Report this to the AC_PACKAGE_NAME lists.  ##
25505 ## ------------------------------------------ ##
25506 _ASBOX
25507     ) |
25508       sed "s/^/$as_me: WARNING:     /" >&2
25509     ;;
25510 esac
25511 echo "$as_me:$LINENO: checking for $ac_header" >&5
25512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25514   echo $ECHO_N "(cached) $ECHO_C" >&6
25515 else
25516   eval "$as_ac_Header=\$ac_header_preproc"
25517 fi
25518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25520
25521 fi
25522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25523   cat >>confdefs.h <<_ACEOF
25524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25525 _ACEOF
25526
25527 fi
25528
25529 done
25530
25531 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25532 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25533 if test "${ac_cv_func_select_args+set}" = set; then
25534   echo $ECHO_N "(cached) $ECHO_C" >&6
25535 else
25536   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25537  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25538   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25539    cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h.  */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h.  */
25545 $ac_includes_default
25546 #if HAVE_SYS_SELECT_H
25547 # include <sys/select.h>
25548 #endif
25549 #if HAVE_SYS_SOCKET_H
25550 # include <sys/socket.h>
25551 #endif
25552
25553 int
25554 main ()
25555 {
25556 extern int select ($ac_arg1,
25557                                             $ac_arg234, $ac_arg234, $ac_arg234,
25558                                             $ac_arg5);
25559   ;
25560   return 0;
25561 }
25562 _ACEOF
25563 rm -f conftest.$ac_objext
25564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25565   (eval $ac_compile) 2>conftest.er1
25566   ac_status=$?
25567   grep -v '^ *+' conftest.er1 >conftest.err
25568   rm -f conftest.er1
25569   cat conftest.err >&5
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); } &&
25572          { ac_try='test -z "$ac_c_werror_flag"
25573                          || test ! -s conftest.err'
25574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); }; } &&
25579          { ac_try='test -s conftest.$ac_objext'
25580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581   (eval $ac_try) 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; }; then
25585   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25586 else
25587   echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590 fi
25591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25592   done
25593  done
25594 done
25595 # Provide a safe default value.
25596 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25597
25598 fi
25599 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25600 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25601 ac_save_IFS=$IFS; IFS=','
25602 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25603 IFS=$ac_save_IFS
25604 shift
25605
25606 cat >>confdefs.h <<_ACEOF
25607 #define SELECT_TYPE_ARG1 $1
25608 _ACEOF
25609
25610
25611 cat >>confdefs.h <<_ACEOF
25612 #define SELECT_TYPE_ARG234 ($2)
25613 _ACEOF
25614
25615
25616 cat >>confdefs.h <<_ACEOF
25617 #define SELECT_TYPE_ARG5 ($3)
25618 _ACEOF
25619
25620 rm -f conftest*
25621
25622 fi
25623
25624
25625
25626 for ac_func in poll
25627 do
25628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25629 echo "$as_me:$LINENO: checking for $ac_func" >&5
25630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25631 if eval "test \"\${$as_ac_var+set}\" = set"; then
25632   echo $ECHO_N "(cached) $ECHO_C" >&6
25633 else
25634   cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25642 #define $ac_func innocuous_$ac_func
25643
25644 /* System header to define __stub macros and hopefully few prototypes,
25645     which can conflict with char $ac_func (); below.
25646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25647     <limits.h> exists even on freestanding compilers.  */
25648
25649 #ifdef __STDC__
25650 # include <limits.h>
25651 #else
25652 # include <assert.h>
25653 #endif
25654
25655 #undef $ac_func
25656
25657 /* Override any gcc2 internal prototype to avoid an error.  */
25658 #ifdef __cplusplus
25659 extern "C"
25660 {
25661 #endif
25662 /* We use char because int might match the return type of a gcc2
25663    builtin and then its argument prototype would still apply.  */
25664 char $ac_func ();
25665 /* The GNU C library defines this for functions which it implements
25666     to always fail with ENOSYS.  Some functions are actually named
25667     something starting with __ and the normal name is an alias.  */
25668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25669 choke me
25670 #else
25671 char (*f) () = $ac_func;
25672 #endif
25673 #ifdef __cplusplus
25674 }
25675 #endif
25676
25677 int
25678 main ()
25679 {
25680 return f != $ac_func;
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 rm -f conftest.$ac_objext conftest$ac_exeext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25687   (eval $ac_link) 2>conftest.er1
25688   ac_status=$?
25689   grep -v '^ *+' conftest.er1 >conftest.err
25690   rm -f conftest.er1
25691   cat conftest.err >&5
25692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); } &&
25694          { ac_try='test -z "$ac_c_werror_flag"
25695                          || test ! -s conftest.err'
25696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697   (eval $ac_try) 2>&5
25698   ac_status=$?
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); }; } &&
25701          { ac_try='test -s conftest$ac_exeext'
25702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703   (eval $ac_try) 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   eval "$as_ac_var=yes"
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712 eval "$as_ac_var=no"
25713 fi
25714 rm -f conftest.err conftest.$ac_objext \
25715       conftest$ac_exeext conftest.$ac_ext
25716 fi
25717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25719 if test `eval echo '${'$as_ac_var'}'` = yes; then
25720   cat >>confdefs.h <<_ACEOF
25721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25722 _ACEOF
25723
25724 fi
25725 done
25726
25727
25728 for ac_header in poll.h
25729 do
25730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25732   echo "$as_me:$LINENO: checking for $ac_header" >&5
25733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25735   echo $ECHO_N "(cached) $ECHO_C" >&6
25736 fi
25737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25739 else
25740   # Is the header compilable?
25741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749 $ac_includes_default
25750 #include <$ac_header>
25751 _ACEOF
25752 rm -f conftest.$ac_objext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754   (eval $ac_compile) 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } &&
25761          { ac_try='test -z "$ac_c_werror_flag"
25762                          || test ! -s conftest.err'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; } &&
25768          { ac_try='test -s conftest.$ac_objext'
25769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770   (eval $ac_try) 2>&5
25771   ac_status=$?
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); }; }; then
25774   ac_header_compiler=yes
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779 ac_header_compiler=no
25780 fi
25781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25783 echo "${ECHO_T}$ac_header_compiler" >&6
25784
25785 # Is the header present?
25786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25788 cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h.  */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h.  */
25794 #include <$ac_header>
25795 _ACEOF
25796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25798   ac_status=$?
25799   grep -v '^ *+' conftest.er1 >conftest.err
25800   rm -f conftest.er1
25801   cat conftest.err >&5
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); } >/dev/null; then
25804   if test -s conftest.err; then
25805     ac_cpp_err=$ac_c_preproc_warn_flag
25806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25807   else
25808     ac_cpp_err=
25809   fi
25810 else
25811   ac_cpp_err=yes
25812 fi
25813 if test -z "$ac_cpp_err"; then
25814   ac_header_preproc=yes
25815 else
25816   echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25818
25819   ac_header_preproc=no
25820 fi
25821 rm -f conftest.err conftest.$ac_ext
25822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25823 echo "${ECHO_T}$ac_header_preproc" >&6
25824
25825 # So?  What about this header?
25826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25827   yes:no: )
25828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25832     ac_header_preproc=yes
25833     ;;
25834   no:yes:* )
25835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25847     (
25848       cat <<\_ASBOX
25849 ## ------------------------------------------ ##
25850 ## Report this to the AC_PACKAGE_NAME lists.  ##
25851 ## ------------------------------------------ ##
25852 _ASBOX
25853     ) |
25854       sed "s/^/$as_me: WARNING:     /" >&2
25855     ;;
25856 esac
25857 echo "$as_me:$LINENO: checking for $ac_header" >&5
25858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25860   echo $ECHO_N "(cached) $ECHO_C" >&6
25861 else
25862   eval "$as_ac_Header=\$ac_header_preproc"
25863 fi
25864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25866
25867 fi
25868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25869   cat >>confdefs.h <<_ACEOF
25870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25871 _ACEOF
25872
25873 fi
25874
25875 done
25876
25877
25878
25879 for ac_header in sys/epoll.h
25880 do
25881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25883   echo "$as_me:$LINENO: checking for $ac_header" >&5
25884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25886   echo $ECHO_N "(cached) $ECHO_C" >&6
25887 fi
25888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25890 else
25891   # Is the header compilable?
25892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25894 cat >conftest.$ac_ext <<_ACEOF
25895 /* confdefs.h.  */
25896 _ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h.  */
25900 $ac_includes_default
25901 #include <$ac_header>
25902 _ACEOF
25903 rm -f conftest.$ac_objext
25904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25905   (eval $ac_compile) 2>conftest.er1
25906   ac_status=$?
25907   grep -v '^ *+' conftest.er1 >conftest.err
25908   rm -f conftest.er1
25909   cat conftest.err >&5
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); } &&
25912          { ac_try='test -z "$ac_c_werror_flag"
25913                          || test ! -s conftest.err'
25914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915   (eval $ac_try) 2>&5
25916   ac_status=$?
25917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918   (exit $ac_status); }; } &&
25919          { ac_try='test -s conftest.$ac_objext'
25920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921   (eval $ac_try) 2>&5
25922   ac_status=$?
25923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924   (exit $ac_status); }; }; then
25925   ac_header_compiler=yes
25926 else
25927   echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.$ac_ext >&5
25929
25930 ac_header_compiler=no
25931 fi
25932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25934 echo "${ECHO_T}$ac_header_compiler" >&6
25935
25936 # Is the header present?
25937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25939 cat >conftest.$ac_ext <<_ACEOF
25940 /* confdefs.h.  */
25941 _ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h.  */
25945 #include <$ac_header>
25946 _ACEOF
25947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25949   ac_status=$?
25950   grep -v '^ *+' conftest.er1 >conftest.err
25951   rm -f conftest.er1
25952   cat conftest.err >&5
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); } >/dev/null; then
25955   if test -s conftest.err; then
25956     ac_cpp_err=$ac_c_preproc_warn_flag
25957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25958   else
25959     ac_cpp_err=
25960   fi
25961 else
25962   ac_cpp_err=yes
25963 fi
25964 if test -z "$ac_cpp_err"; then
25965   ac_header_preproc=yes
25966 else
25967   echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25969
25970   ac_header_preproc=no
25971 fi
25972 rm -f conftest.err conftest.$ac_ext
25973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25974 echo "${ECHO_T}$ac_header_preproc" >&6
25975
25976 # So?  What about this header?
25977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25978   yes:no: )
25979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25983     ac_header_preproc=yes
25984     ;;
25985   no:yes:* )
25986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25998     (
25999       cat <<\_ASBOX
26000 ## ------------------------------------------ ##
26001 ## Report this to the AC_PACKAGE_NAME lists.  ##
26002 ## ------------------------------------------ ##
26003 _ASBOX
26004     ) |
26005       sed "s/^/$as_me: WARNING:     /" >&2
26006     ;;
26007 esac
26008 echo "$as_me:$LINENO: checking for $ac_header" >&5
26009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   eval "$as_ac_Header=\$ac_header_preproc"
26014 fi
26015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26017
26018 fi
26019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26020   cat >>confdefs.h <<_ACEOF
26021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26022 _ACEOF
26023
26024 fi
26025
26026 done
26027
26028 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26029 echo "$as_me:$LINENO: checking for epoll system call" >&5
26030 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26031 if test "$cross_compiling" = yes; then
26032   echo "$as_me:$LINENO: result: no" >&5
26033 echo "${ECHO_T}no" >&6
26034 else
26035   cat >conftest.$ac_ext <<_ACEOF
26036 /* confdefs.h.  */
26037 _ACEOF
26038 cat confdefs.h >>conftest.$ac_ext
26039 cat >>conftest.$ac_ext <<_ACEOF
26040 /* end confdefs.h.  */
26041 int main(int argc, char *argv)
26042 {
26043         int epfd = epoll_create(256);
26044         exit (epfd == -1 ? 1 : 0);
26045 }
26046 _ACEOF
26047 rm -f conftest$ac_exeext
26048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26049   (eval $ac_link) 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054   (eval $ac_try) 2>&5
26055   ac_status=$?
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); }; }; then
26058   echo "$as_me:$LINENO: result: yes" >&5
26059 echo "${ECHO_T}yes" >&6
26060
26061 cat >>confdefs.h <<\_ACEOF
26062 #define HAVE_EPOLL 1
26063 _ACEOF
26064
26065 else
26066   echo "$as_me: program exited with status $ac_status" >&5
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070 ( exit $ac_status )
26071 echo "$as_me:$LINENO: result: no" >&5
26072 echo "${ECHO_T}no" >&6
26073 fi
26074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26075 fi
26076 fi
26077
26078 # strerror checks
26079 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26080 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26081 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26082   echo $ECHO_N "(cached) $ECHO_C" >&6
26083 else
26084
26085         cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h.  */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h.  */
26091
26092 #include <stdio.h>
26093 #include <sys/types.h>
26094 #include <errno.h>
26095 #ifdef WINNT
26096 #include <stdlib.h>
26097 #endif
26098 int
26099 main ()
26100 {
26101 char *c = (char *) *sys_errlist
26102   ;
26103   return 0;
26104 }
26105 _ACEOF
26106 rm -f conftest.$ac_objext
26107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26108   (eval $ac_compile) 2>conftest.er1
26109   ac_status=$?
26110   grep -v '^ *+' conftest.er1 >conftest.err
26111   rm -f conftest.er1
26112   cat conftest.err >&5
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); } &&
26115          { ac_try='test -z "$ac_c_werror_flag"
26116                          || test ! -s conftest.err'
26117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118   (eval $ac_try) 2>&5
26119   ac_status=$?
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); }; } &&
26122          { ac_try='test -s conftest.$ac_objext'
26123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124   (eval $ac_try) 2>&5
26125   ac_status=$?
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); }; }; then
26128   ol_cv_dcl_sys_errlist=yes
26129         ol_cv_have_sys_errlist=yes
26130 else
26131   echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26133
26134 ol_cv_dcl_sys_errlist=no
26135 fi
26136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26137 fi
26138 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26139 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26140 #
26141 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26142 if test $ol_cv_dcl_sys_errlist = no ; then
26143
26144 cat >>confdefs.h <<\_ACEOF
26145 #define DECL_SYS_ERRLIST 1
26146 _ACEOF
26147
26148
26149         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26150 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26151 if test "${ol_cv_have_sys_errlist+set}" = set; then
26152   echo $ECHO_N "(cached) $ECHO_C" >&6
26153 else
26154
26155                 cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 #include <errno.h>
26162 int
26163 main ()
26164 {
26165 char *c = (char *) *sys_errlist
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 rm -f conftest.$ac_objext conftest$ac_exeext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26172   (eval $ac_link) 2>conftest.er1
26173   ac_status=$?
26174   grep -v '^ *+' conftest.er1 >conftest.err
26175   rm -f conftest.er1
26176   cat conftest.err >&5
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); } &&
26179          { ac_try='test -z "$ac_c_werror_flag"
26180                          || test ! -s conftest.err'
26181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182   (eval $ac_try) 2>&5
26183   ac_status=$?
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); }; } &&
26186          { ac_try='test -s conftest$ac_exeext'
26187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188   (eval $ac_try) 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); }; }; then
26192   ol_cv_have_sys_errlist=yes
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197 ol_cv_have_sys_errlist=no
26198 fi
26199 rm -f conftest.err conftest.$ac_objext \
26200       conftest$ac_exeext conftest.$ac_ext
26201 fi
26202 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26203 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26204 fi
26205 if test $ol_cv_have_sys_errlist = yes ; then
26206
26207 cat >>confdefs.h <<\_ACEOF
26208 #define HAVE_SYS_ERRLIST 1
26209 _ACEOF
26210
26211 fi
26212
26213
26214 for ac_func in strerror strerror_r
26215 do
26216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26217 echo "$as_me:$LINENO: checking for $ac_func" >&5
26218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26219 if eval "test \"\${$as_ac_var+set}\" = set"; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222   cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h.  */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h.  */
26228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26230 #define $ac_func innocuous_$ac_func
26231
26232 /* System header to define __stub macros and hopefully few prototypes,
26233     which can conflict with char $ac_func (); below.
26234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26235     <limits.h> exists even on freestanding compilers.  */
26236
26237 #ifdef __STDC__
26238 # include <limits.h>
26239 #else
26240 # include <assert.h>
26241 #endif
26242
26243 #undef $ac_func
26244
26245 /* Override any gcc2 internal prototype to avoid an error.  */
26246 #ifdef __cplusplus
26247 extern "C"
26248 {
26249 #endif
26250 /* We use char because int might match the return type of a gcc2
26251    builtin and then its argument prototype would still apply.  */
26252 char $ac_func ();
26253 /* The GNU C library defines this for functions which it implements
26254     to always fail with ENOSYS.  Some functions are actually named
26255     something starting with __ and the normal name is an alias.  */
26256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26257 choke me
26258 #else
26259 char (*f) () = $ac_func;
26260 #endif
26261 #ifdef __cplusplus
26262 }
26263 #endif
26264
26265 int
26266 main ()
26267 {
26268 return f != $ac_func;
26269   ;
26270   return 0;
26271 }
26272 _ACEOF
26273 rm -f conftest.$ac_objext conftest$ac_exeext
26274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26275   (eval $ac_link) 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } &&
26282          { ac_try='test -z "$ac_c_werror_flag"
26283                          || test ! -s conftest.err'
26284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285   (eval $ac_try) 2>&5
26286   ac_status=$?
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); }; } &&
26289          { ac_try='test -s conftest$ac_exeext'
26290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291   (eval $ac_try) 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; }; then
26295   eval "$as_ac_var=yes"
26296 else
26297   echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26299
26300 eval "$as_ac_var=no"
26301 fi
26302 rm -f conftest.err conftest.$ac_objext \
26303       conftest$ac_exeext conftest.$ac_ext
26304 fi
26305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26307 if test `eval echo '${'$as_ac_var'}'` = yes; then
26308   cat >>confdefs.h <<_ACEOF
26309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26310 _ACEOF
26311
26312 fi
26313 done
26314
26315 ol_cv_func_strerror_r=no
26316 if test "${ac_cv_func_strerror_r}" = yes ; then
26317         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26318 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26319 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26320   echo $ECHO_N "(cached) $ECHO_C" >&6
26321 else
26322
26323         cat >conftest.$ac_ext <<_ACEOF
26324 /* confdefs.h.  */
26325 _ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h.  */
26329 #include <string.h>
26330 _ACEOF
26331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26332   $EGREP "strerror_r" >/dev/null 2>&1; then
26333   ol_decl_strerror_r=yes
26334 else
26335   ol_decl_strerror_r=no
26336 fi
26337 rm -f conftest*
26338
26339         if test $ol_decl_strerror_r = yes ; then
26340                 cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346 #include <string.h>
26347 int
26348 main ()
26349 {
26350    /* from autoconf 2.59 */
26351                                 char buf[100];
26352                                 char x = *strerror_r (0, buf, sizeof buf);
26353                                 char *p = strerror_r (0, buf, sizeof buf);
26354
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 rm -f conftest.$ac_objext
26360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26361   (eval $ac_compile) 2>conftest.er1
26362   ac_status=$?
26363   grep -v '^ *+' conftest.er1 >conftest.err
26364   rm -f conftest.er1
26365   cat conftest.err >&5
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); } &&
26368          { ac_try='test -z "$ac_c_werror_flag"
26369                          || test ! -s conftest.err'
26370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371   (eval $ac_try) 2>&5
26372   ac_status=$?
26373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); }; } &&
26375          { ac_try='test -s conftest.$ac_objext'
26376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377   (eval $ac_try) 2>&5
26378   ac_status=$?
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); }; }; then
26381   ol_cv_nonposix_strerror_r=yes
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386 ol_cv_nonposix_strerror_r=no
26387 fi
26388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26389         else
26390                 if test "$cross_compiling" = yes; then
26391   ol_cv_nonposix_strerror=no
26392 else
26393   cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399
26400                         main() {
26401                                 char buf[100];
26402                                 buf[0] = 0;
26403                                 strerror_r( 1, buf, sizeof buf );
26404                                 exit( buf[0] == 0 );
26405                         }
26406
26407 _ACEOF
26408 rm -f conftest$ac_exeext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410   (eval $ac_link) 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415   (eval $ac_try) 2>&5
26416   ac_status=$?
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); }; }; then
26419   ol_cv_nonposix_strerror_r=yes
26420 else
26421   echo "$as_me: program exited with status $ac_status" >&5
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 ( exit $ac_status )
26426 ol_cv_nonposix_strerror=no
26427 fi
26428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26429 fi
26430         fi
26431
26432 fi
26433 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26434 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26435 if test $ol_cv_nonposix_strerror_r = yes ; then
26436
26437 cat >>confdefs.h <<\_ACEOF
26438 #define HAVE_NONPOSIX_STRERROR_R 1
26439 _ACEOF
26440
26441 fi
26442
26443 elif test "${ac_cv_func_strerror}" = no ; then
26444         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26445 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26446 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 else
26449
26450         cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456
26457 #include <stdio.h>
26458 #include <sys/types.h>
26459 #include <errno.h>
26460 #ifdef WINNT
26461 #include <stdlib.h>
26462 #endif
26463 int
26464 main ()
26465 {
26466 char *c = (char *) *sys_errlist
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473   (eval $ac_compile) 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } &&
26480          { ac_try='test -z "$ac_c_werror_flag"
26481                          || test ! -s conftest.err'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; } &&
26487          { ac_try='test -s conftest.$ac_objext'
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_dcl_sys_errlist=yes
26494         ol_cv_have_sys_errlist=yes
26495 else
26496   echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499 ol_cv_dcl_sys_errlist=no
26500 fi
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502 fi
26503 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26504 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26505 #
26506 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26507 if test $ol_cv_dcl_sys_errlist = no ; then
26508
26509 cat >>confdefs.h <<\_ACEOF
26510 #define DECL_SYS_ERRLIST 1
26511 _ACEOF
26512
26513
26514         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26515 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26516 if test "${ol_cv_have_sys_errlist+set}" = set; then
26517   echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519
26520                 cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526 #include <errno.h>
26527 int
26528 main ()
26529 {
26530 char *c = (char *) *sys_errlist
26531   ;
26532   return 0;
26533 }
26534 _ACEOF
26535 rm -f conftest.$ac_objext conftest$ac_exeext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26537   (eval $ac_link) 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } &&
26544          { ac_try='test -z "$ac_c_werror_flag"
26545                          || test ! -s conftest.err'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; } &&
26551          { ac_try='test -s conftest$ac_exeext'
26552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553   (eval $ac_try) 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); }; }; then
26557   ol_cv_have_sys_errlist=yes
26558 else
26559   echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562 ol_cv_have_sys_errlist=no
26563 fi
26564 rm -f conftest.err conftest.$ac_objext \
26565       conftest$ac_exeext conftest.$ac_ext
26566 fi
26567 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26568 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26569 fi
26570 if test $ol_cv_have_sys_errlist = yes ; then
26571
26572 cat >>confdefs.h <<\_ACEOF
26573 #define HAVE_SYS_ERRLIST 1
26574 _ACEOF
26575
26576 fi
26577
26578 fi
26579
26580
26581
26582 for ac_header in regex.h
26583 do
26584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26586   echo "$as_me:$LINENO: checking for $ac_header" >&5
26587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 fi
26591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26593 else
26594   # Is the header compilable?
26595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26597 cat >conftest.$ac_ext <<_ACEOF
26598 /* confdefs.h.  */
26599 _ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h.  */
26603 $ac_includes_default
26604 #include <$ac_header>
26605 _ACEOF
26606 rm -f conftest.$ac_objext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26608   (eval $ac_compile) 2>conftest.er1
26609   ac_status=$?
26610   grep -v '^ *+' conftest.er1 >conftest.err
26611   rm -f conftest.er1
26612   cat conftest.err >&5
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } &&
26615          { ac_try='test -z "$ac_c_werror_flag"
26616                          || test ! -s conftest.err'
26617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618   (eval $ac_try) 2>&5
26619   ac_status=$?
26620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); }; } &&
26622          { ac_try='test -s conftest.$ac_objext'
26623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624   (eval $ac_try) 2>&5
26625   ac_status=$?
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); }; }; then
26628   ac_header_compiler=yes
26629 else
26630   echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26632
26633 ac_header_compiler=no
26634 fi
26635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26637 echo "${ECHO_T}$ac_header_compiler" >&6
26638
26639 # Is the header present?
26640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26642 cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648 #include <$ac_header>
26649 _ACEOF
26650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26652   ac_status=$?
26653   grep -v '^ *+' conftest.er1 >conftest.err
26654   rm -f conftest.er1
26655   cat conftest.err >&5
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); } >/dev/null; then
26658   if test -s conftest.err; then
26659     ac_cpp_err=$ac_c_preproc_warn_flag
26660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26661   else
26662     ac_cpp_err=
26663   fi
26664 else
26665   ac_cpp_err=yes
26666 fi
26667 if test -z "$ac_cpp_err"; then
26668   ac_header_preproc=yes
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673   ac_header_preproc=no
26674 fi
26675 rm -f conftest.err conftest.$ac_ext
26676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26677 echo "${ECHO_T}$ac_header_preproc" >&6
26678
26679 # So?  What about this header?
26680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26681   yes:no: )
26682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26686     ac_header_preproc=yes
26687     ;;
26688   no:yes:* )
26689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26701     (
26702       cat <<\_ASBOX
26703 ## ------------------------------------------ ##
26704 ## Report this to the AC_PACKAGE_NAME lists.  ##
26705 ## ------------------------------------------ ##
26706 _ASBOX
26707     ) |
26708       sed "s/^/$as_me: WARNING:     /" >&2
26709     ;;
26710 esac
26711 echo "$as_me:$LINENO: checking for $ac_header" >&5
26712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26714   echo $ECHO_N "(cached) $ECHO_C" >&6
26715 else
26716   eval "$as_ac_Header=\$ac_header_preproc"
26717 fi
26718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26720
26721 fi
26722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26723   cat >>confdefs.h <<_ACEOF
26724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26725 _ACEOF
26726
26727 fi
26728
26729 done
26730
26731 if test "$ac_cv_header_regex_h" != yes ; then
26732         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26733 echo "$as_me: error: POSIX regex.h required." >&2;}
26734    { (exit 1); exit 1; }; }
26735 fi
26736 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26737 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26738 if test "${ac_cv_search_regfree+set}" = set; then
26739   echo $ECHO_N "(cached) $ECHO_C" >&6
26740 else
26741   ac_func_search_save_LIBS=$LIBS
26742 ac_cv_search_regfree=no
26743 cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749
26750 /* Override any gcc2 internal prototype to avoid an error.  */
26751 #ifdef __cplusplus
26752 extern "C"
26753 #endif
26754 /* We use char because int might match the return type of a gcc2
26755    builtin and then its argument prototype would still apply.  */
26756 char regfree ();
26757 int
26758 main ()
26759 {
26760 regfree ();
26761   ;
26762   return 0;
26763 }
26764 _ACEOF
26765 rm -f conftest.$ac_objext conftest$ac_exeext
26766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26767   (eval $ac_link) 2>conftest.er1
26768   ac_status=$?
26769   grep -v '^ *+' conftest.er1 >conftest.err
26770   rm -f conftest.er1
26771   cat conftest.err >&5
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); } &&
26774          { ac_try='test -z "$ac_c_werror_flag"
26775                          || test ! -s conftest.err'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; } &&
26781          { ac_try='test -s conftest$ac_exeext'
26782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783   (eval $ac_try) 2>&5
26784   ac_status=$?
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); }; }; then
26787   ac_cv_search_regfree="none required"
26788 else
26789   echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 fi
26793 rm -f conftest.err conftest.$ac_objext \
26794       conftest$ac_exeext conftest.$ac_ext
26795 if test "$ac_cv_search_regfree" = no; then
26796   for ac_lib in regex gnuregex; do
26797     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26798     cat >conftest.$ac_ext <<_ACEOF
26799 /* confdefs.h.  */
26800 _ACEOF
26801 cat confdefs.h >>conftest.$ac_ext
26802 cat >>conftest.$ac_ext <<_ACEOF
26803 /* end confdefs.h.  */
26804
26805 /* Override any gcc2 internal prototype to avoid an error.  */
26806 #ifdef __cplusplus
26807 extern "C"
26808 #endif
26809 /* We use char because int might match the return type of a gcc2
26810    builtin and then its argument prototype would still apply.  */
26811 char regfree ();
26812 int
26813 main ()
26814 {
26815 regfree ();
26816   ;
26817   return 0;
26818 }
26819 _ACEOF
26820 rm -f conftest.$ac_objext conftest$ac_exeext
26821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26822   (eval $ac_link) 2>conftest.er1
26823   ac_status=$?
26824   grep -v '^ *+' conftest.er1 >conftest.err
26825   rm -f conftest.er1
26826   cat conftest.err >&5
26827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); } &&
26829          { ac_try='test -z "$ac_c_werror_flag"
26830                          || test ! -s conftest.err'
26831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832   (eval $ac_try) 2>&5
26833   ac_status=$?
26834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835   (exit $ac_status); }; } &&
26836          { ac_try='test -s conftest$ac_exeext'
26837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838   (eval $ac_try) 2>&5
26839   ac_status=$?
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); }; }; then
26842   ac_cv_search_regfree="-l$ac_lib"
26843 break
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848 fi
26849 rm -f conftest.err conftest.$ac_objext \
26850       conftest$ac_exeext conftest.$ac_ext
26851   done
26852 fi
26853 LIBS=$ac_func_search_save_LIBS
26854 fi
26855 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26856 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26857 if test "$ac_cv_search_regfree" != no; then
26858   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26859   :
26860 else
26861   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26862 echo "$as_me: error: POSIX regex required." >&2;}
26863    { (exit 1); exit 1; }; }
26864 fi
26865
26866
26867
26868 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26869 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26870 if test "${ol_cv_c_posix_regex+set}" = set; then
26871   echo $ECHO_N "(cached) $ECHO_C" >&6
26872 else
26873
26874         if test "$cross_compiling" = yes; then
26875   ol_cv_c_posix_regex=cross
26876 else
26877   cat >conftest.$ac_ext <<_ACEOF
26878 /* confdefs.h.  */
26879 _ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h.  */
26883
26884 #include <sys/types.h>
26885 #include <regex.h>
26886 static char *pattern, *string;
26887 main()
26888 {
26889         int rc;
26890         regex_t re;
26891
26892         pattern = "^A";
26893
26894         if(regcomp(&re, pattern, 0)) {
26895                 return -1;
26896         }
26897
26898         string = "ALL MATCH";
26899
26900         rc = regexec(&re, string, 0, (void*)0, 0);
26901
26902         regfree(&re);
26903
26904         return rc;
26905 }
26906 _ACEOF
26907 rm -f conftest$ac_exeext
26908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26909   (eval $ac_link) 2>&5
26910   ac_status=$?
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; }; then
26918   ol_cv_c_posix_regex=yes
26919 else
26920   echo "$as_me: program exited with status $ac_status" >&5
26921 echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26923
26924 ( exit $ac_status )
26925 ol_cv_c_posix_regex=no
26926 fi
26927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26928 fi
26929 fi
26930 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26931 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26932
26933 if test "$ol_cv_c_posix_regex" = no ; then
26934         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26935 echo "$as_me: error: broken POSIX regex!" >&2;}
26936    { (exit 1); exit 1; }; }
26937 fi
26938
26939
26940 have_uuid=no
26941
26942 for ac_header in sys/uuid.h
26943 do
26944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26946   echo "$as_me:$LINENO: checking for $ac_header" >&5
26947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26949   echo $ECHO_N "(cached) $ECHO_C" >&6
26950 fi
26951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26953 else
26954   # Is the header compilable?
26955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26957 cat >conftest.$ac_ext <<_ACEOF
26958 /* confdefs.h.  */
26959 _ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h.  */
26963 $ac_includes_default
26964 #include <$ac_header>
26965 _ACEOF
26966 rm -f conftest.$ac_objext
26967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26968   (eval $ac_compile) 2>conftest.er1
26969   ac_status=$?
26970   grep -v '^ *+' conftest.er1 >conftest.err
26971   rm -f conftest.er1
26972   cat conftest.err >&5
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); } &&
26975          { ac_try='test -z "$ac_c_werror_flag"
26976                          || test ! -s conftest.err'
26977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26978   (eval $ac_try) 2>&5
26979   ac_status=$?
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); }; } &&
26982          { ac_try='test -s conftest.$ac_objext'
26983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984   (eval $ac_try) 2>&5
26985   ac_status=$?
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); }; }; then
26988   ac_header_compiler=yes
26989 else
26990   echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26992
26993 ac_header_compiler=no
26994 fi
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26997 echo "${ECHO_T}$ac_header_compiler" >&6
26998
26999 # Is the header present?
27000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27002 cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 #include <$ac_header>
27009 _ACEOF
27010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27012   ac_status=$?
27013   grep -v '^ *+' conftest.er1 >conftest.err
27014   rm -f conftest.er1
27015   cat conftest.err >&5
27016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017   (exit $ac_status); } >/dev/null; then
27018   if test -s conftest.err; then
27019     ac_cpp_err=$ac_c_preproc_warn_flag
27020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27021   else
27022     ac_cpp_err=
27023   fi
27024 else
27025   ac_cpp_err=yes
27026 fi
27027 if test -z "$ac_cpp_err"; then
27028   ac_header_preproc=yes
27029 else
27030   echo "$as_me: failed program was:" >&5
27031 sed 's/^/| /' conftest.$ac_ext >&5
27032
27033   ac_header_preproc=no
27034 fi
27035 rm -f conftest.err conftest.$ac_ext
27036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27037 echo "${ECHO_T}$ac_header_preproc" >&6
27038
27039 # So?  What about this header?
27040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27041   yes:no: )
27042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27046     ac_header_preproc=yes
27047     ;;
27048   no:yes:* )
27049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27061     (
27062       cat <<\_ASBOX
27063 ## ------------------------------------------ ##
27064 ## Report this to the AC_PACKAGE_NAME lists.  ##
27065 ## ------------------------------------------ ##
27066 _ASBOX
27067     ) |
27068       sed "s/^/$as_me: WARNING:     /" >&2
27069     ;;
27070 esac
27071 echo "$as_me:$LINENO: checking for $ac_header" >&5
27072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   eval "$as_ac_Header=\$ac_header_preproc"
27077 fi
27078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27080
27081 fi
27082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27083   cat >>confdefs.h <<_ACEOF
27084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27085 _ACEOF
27086
27087 fi
27088
27089 done
27090
27091 if test $ac_cv_header_sys_uuid_h = yes ; then
27092         save_LIBS="$LIBS"
27093         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27094 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27095 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27096   echo $ECHO_N "(cached) $ECHO_C" >&6
27097 else
27098   ac_func_search_save_LIBS=$LIBS
27099 ac_cv_search_uuid_to_str=no
27100 cat >conftest.$ac_ext <<_ACEOF
27101 /* confdefs.h.  */
27102 _ACEOF
27103 cat confdefs.h >>conftest.$ac_ext
27104 cat >>conftest.$ac_ext <<_ACEOF
27105 /* end confdefs.h.  */
27106
27107 /* Override any gcc2 internal prototype to avoid an error.  */
27108 #ifdef __cplusplus
27109 extern "C"
27110 #endif
27111 /* We use char because int might match the return type of a gcc2
27112    builtin and then its argument prototype would still apply.  */
27113 char uuid_to_str ();
27114 int
27115 main ()
27116 {
27117 uuid_to_str ();
27118   ;
27119   return 0;
27120 }
27121 _ACEOF
27122 rm -f conftest.$ac_objext conftest$ac_exeext
27123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27124   (eval $ac_link) 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } &&
27131          { ac_try='test -z "$ac_c_werror_flag"
27132                          || test ! -s conftest.err'
27133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134   (eval $ac_try) 2>&5
27135   ac_status=$?
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); }; } &&
27138          { ac_try='test -s conftest$ac_exeext'
27139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140   (eval $ac_try) 2>&5
27141   ac_status=$?
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; }; then
27144   ac_cv_search_uuid_to_str="none required"
27145 else
27146   echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27148
27149 fi
27150 rm -f conftest.err conftest.$ac_objext \
27151       conftest$ac_exeext conftest.$ac_ext
27152 if test "$ac_cv_search_uuid_to_str" = no; then
27153   for ac_lib in uuid; do
27154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27155     cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161
27162 /* Override any gcc2 internal prototype to avoid an error.  */
27163 #ifdef __cplusplus
27164 extern "C"
27165 #endif
27166 /* We use char because int might match the return type of a gcc2
27167    builtin and then its argument prototype would still apply.  */
27168 char uuid_to_str ();
27169 int
27170 main ()
27171 {
27172 uuid_to_str ();
27173   ;
27174   return 0;
27175 }
27176 _ACEOF
27177 rm -f conftest.$ac_objext conftest$ac_exeext
27178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27179   (eval $ac_link) 2>conftest.er1
27180   ac_status=$?
27181   grep -v '^ *+' conftest.er1 >conftest.err
27182   rm -f conftest.er1
27183   cat conftest.err >&5
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } &&
27186          { ac_try='test -z "$ac_c_werror_flag"
27187                          || test ! -s conftest.err'
27188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189   (eval $ac_try) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; } &&
27193          { ac_try='test -s conftest$ac_exeext'
27194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195   (eval $ac_try) 2>&5
27196   ac_status=$?
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); }; }; then
27199   ac_cv_search_uuid_to_str="-l$ac_lib"
27200 break
27201 else
27202   echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 fi
27206 rm -f conftest.err conftest.$ac_objext \
27207       conftest$ac_exeext conftest.$ac_ext
27208   done
27209 fi
27210 LIBS=$ac_func_search_save_LIBS
27211 fi
27212 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27213 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27214 if test "$ac_cv_search_uuid_to_str" != no; then
27215   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27216   have_uuid=yes
27217 else
27218   :
27219 fi
27220
27221         LIBS="$save_LIBS"
27222
27223         if test have_uuid = yes ; then
27224
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE_UUID_TO_STR 1
27227 _ACEOF
27228
27229
27230                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27231                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27232         fi
27233 fi
27234
27235 if test $have_uuid = no ; then
27236         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27237 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27238         save_LIBS="$LIBS"
27239         LIBS="$LIBS -lrpcrt4"
27240         cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246
27247                 int __stdcall UuidCreate(void *);
27248                 int __stdcall UuidToStringA(void *,void **);
27249
27250 int
27251 main ()
27252 {
27253
27254                 UuidCreate(0);
27255                 UuidToStringA(0,0);
27256
27257   ;
27258   return 0;
27259 }
27260 _ACEOF
27261 rm -f conftest.$ac_objext conftest$ac_exeext
27262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27263   (eval $ac_link) 2>conftest.er1
27264   ac_status=$?
27265   grep -v '^ *+' conftest.er1 >conftest.err
27266   rm -f conftest.er1
27267   cat conftest.err >&5
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); } &&
27270          { ac_try='test -z "$ac_c_werror_flag"
27271                          || test ! -s conftest.err'
27272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273   (eval $ac_try) 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; } &&
27277          { ac_try='test -s conftest$ac_exeext'
27278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27279   (eval $ac_try) 2>&5
27280   ac_status=$?
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); }; }; then
27283   need_rpcrt=yes
27284 else
27285   echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27287
27288 need_rpcrt=no
27289 fi
27290 rm -f conftest.err conftest.$ac_objext \
27291       conftest$ac_exeext conftest.$ac_ext
27292         if test $need_rpcrt = yes; then
27293                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27294         fi
27295         LIBS="$save_LIBS"
27296         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27297 echo "${ECHO_T}$need_rpcrt" >&6
27298 fi
27299
27300 ol_cv_lib_resolver=no
27301 if test $ol_cv_lib_resolver = no ; then
27302         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27303 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27304 if test "${ol_cv_resolver_none+set}" = set; then
27305   echo $ECHO_N "(cached) $ECHO_C" >&6
27306 else
27307
27308         ol_RESOLVER_LIB=
27309         ol_LIBS=$LIBS
27310         LIBS="$ol_RESOLVER_LIB $LIBS"
27311
27312         cat >conftest.$ac_ext <<_ACEOF
27313 /* confdefs.h.  */
27314 _ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h.  */
27318
27319 #ifdef HAVE_SYS_TYPES_H
27320 #       include <sys/types.h>
27321 #endif
27322 #include <netinet/in.h>
27323 #ifdef HAVE_ARPA_NAMESER_H
27324 #       include <arpa/nameser.h>
27325 #endif
27326 #ifdef HAVE_RESOLV_H
27327 #       include <resolv.h>
27328 #endif
27329
27330 int
27331 main ()
27332 {
27333 {
27334         int len, status;
27335         char *request = NULL;
27336         unsigned char reply[64*1024];
27337         unsigned char host[64*1024];
27338         unsigned char *p;
27339
27340 #ifdef NS_HFIXEDSZ
27341         /* Bind 8/9 interface */
27342         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27343 #else
27344         /* Bind 4 interface */
27345 # ifndef T_SRV
27346 #  define T_SRV 33
27347 # endif
27348         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27349 #endif
27350         p = reply;
27351 #ifdef NS_HFIXEDSZ
27352         /* Bind 8/9 interface */
27353         p += NS_HFIXEDSZ;
27354 #elif defined(HFIXEDSZ)
27355         /* Bind 4 interface w/ HFIXEDSZ */
27356         p += HFIXEDSZ;
27357 #else
27358         /* Bind 4 interface w/o HFIXEDSZ */
27359         p += sizeof(HEADER);
27360 #endif
27361         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27362 }
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27369   (eval $ac_link) 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } &&
27376          { ac_try='test -z "$ac_c_werror_flag"
27377                          || test ! -s conftest.err'
27378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379   (eval $ac_try) 2>&5
27380   ac_status=$?
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); }; } &&
27383          { ac_try='test -s conftest$ac_exeext'
27384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385   (eval $ac_try) 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; }; then
27389   ol_cv_resolver_none=yes
27390 else
27391   echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 ol_cv_resolver_none=no
27395 fi
27396 rm -f conftest.err conftest.$ac_objext \
27397       conftest$ac_exeext conftest.$ac_ext
27398
27399         LIBS="$ol_LIBS"
27400
27401 fi
27402 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27403 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27404
27405         if test $ol_cv_resolver_none = yes ; then
27406                 ol_cv_lib_resolver=yes
27407         fi
27408 fi
27409
27410 if test $ol_cv_lib_resolver = no ; then
27411         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27412 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27413 if test "${ol_cv_resolver_resolv+set}" = set; then
27414   echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416
27417         ol_RESOLVER_LIB=-lresolv
27418         ol_LIBS=$LIBS
27419         LIBS="$ol_RESOLVER_LIB $LIBS"
27420
27421         cat >conftest.$ac_ext <<_ACEOF
27422 /* confdefs.h.  */
27423 _ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h.  */
27427
27428 #ifdef HAVE_SYS_TYPES_H
27429 #       include <sys/types.h>
27430 #endif
27431 #include <netinet/in.h>
27432 #ifdef HAVE_ARPA_NAMESER_H
27433 #       include <arpa/nameser.h>
27434 #endif
27435 #ifdef HAVE_RESOLV_H
27436 #       include <resolv.h>
27437 #endif
27438
27439 int
27440 main ()
27441 {
27442 {
27443         int len, status;
27444         char *request = NULL;
27445         unsigned char reply[64*1024];
27446         unsigned char host[64*1024];
27447         unsigned char *p;
27448
27449 #ifdef NS_HFIXEDSZ
27450         /* Bind 8/9 interface */
27451         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27452 #else
27453         /* Bind 4 interface */
27454 # ifndef T_SRV
27455 #  define T_SRV 33
27456 # endif
27457         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27458 #endif
27459         p = reply;
27460 #ifdef NS_HFIXEDSZ
27461         /* Bind 8/9 interface */
27462         p += NS_HFIXEDSZ;
27463 #elif defined(HFIXEDSZ)
27464         /* Bind 4 interface w/ HFIXEDSZ */
27465         p += HFIXEDSZ;
27466 #else
27467         /* Bind 4 interface w/o HFIXEDSZ */
27468         p += sizeof(HEADER);
27469 #endif
27470         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27471 }
27472   ;
27473   return 0;
27474 }
27475 _ACEOF
27476 rm -f conftest.$ac_objext conftest$ac_exeext
27477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27478   (eval $ac_link) 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } &&
27485          { ac_try='test -z "$ac_c_werror_flag"
27486                          || test ! -s conftest.err'
27487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488   (eval $ac_try) 2>&5
27489   ac_status=$?
27490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491   (exit $ac_status); }; } &&
27492          { ac_try='test -s conftest$ac_exeext'
27493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494   (eval $ac_try) 2>&5
27495   ac_status=$?
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); }; }; then
27498   ol_cv_resolver_resolv=yes
27499 else
27500   echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27502
27503 ol_cv_resolver_resolv=no
27504 fi
27505 rm -f conftest.err conftest.$ac_objext \
27506       conftest$ac_exeext conftest.$ac_ext
27507
27508         LIBS="$ol_LIBS"
27509
27510 fi
27511 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27512 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27513
27514         if test $ol_cv_resolver_resolv = yes ; then
27515                 ol_cv_lib_resolver=-lresolv
27516         fi
27517 fi
27518
27519 if test $ol_cv_lib_resolver = no ; then
27520         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27521 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27522 if test "${ol_cv_resolver_bind+set}" = set; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525
27526         ol_RESOLVER_LIB=-lbind
27527         ol_LIBS=$LIBS
27528         LIBS="$ol_RESOLVER_LIB $LIBS"
27529
27530         cat >conftest.$ac_ext <<_ACEOF
27531 /* confdefs.h.  */
27532 _ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h.  */
27536
27537 #ifdef HAVE_SYS_TYPES_H
27538 #       include <sys/types.h>
27539 #endif
27540 #include <netinet/in.h>
27541 #ifdef HAVE_ARPA_NAMESER_H
27542 #       include <arpa/nameser.h>
27543 #endif
27544 #ifdef HAVE_RESOLV_H
27545 #       include <resolv.h>
27546 #endif
27547
27548 int
27549 main ()
27550 {
27551 {
27552         int len, status;
27553         char *request = NULL;
27554         unsigned char reply[64*1024];
27555         unsigned char host[64*1024];
27556         unsigned char *p;
27557
27558 #ifdef NS_HFIXEDSZ
27559         /* Bind 8/9 interface */
27560         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27561 #else
27562         /* Bind 4 interface */
27563 # ifndef T_SRV
27564 #  define T_SRV 33
27565 # endif
27566         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27567 #endif
27568         p = reply;
27569 #ifdef NS_HFIXEDSZ
27570         /* Bind 8/9 interface */
27571         p += NS_HFIXEDSZ;
27572 #elif defined(HFIXEDSZ)
27573         /* Bind 4 interface w/ HFIXEDSZ */
27574         p += HFIXEDSZ;
27575 #else
27576         /* Bind 4 interface w/o HFIXEDSZ */
27577         p += sizeof(HEADER);
27578 #endif
27579         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27580 }
27581   ;
27582   return 0;
27583 }
27584 _ACEOF
27585 rm -f conftest.$ac_objext conftest$ac_exeext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27587   (eval $ac_link) 2>conftest.er1
27588   ac_status=$?
27589   grep -v '^ *+' conftest.er1 >conftest.err
27590   rm -f conftest.er1
27591   cat conftest.err >&5
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); } &&
27594          { ac_try='test -z "$ac_c_werror_flag"
27595                          || test ! -s conftest.err'
27596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597   (eval $ac_try) 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); }; } &&
27601          { ac_try='test -s conftest$ac_exeext'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; }; then
27607   ol_cv_resolver_bind=yes
27608 else
27609   echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27611
27612 ol_cv_resolver_bind=no
27613 fi
27614 rm -f conftest.err conftest.$ac_objext \
27615       conftest$ac_exeext conftest.$ac_ext
27616
27617         LIBS="$ol_LIBS"
27618
27619 fi
27620 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27621 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27622
27623         if test $ol_cv_resolver_bind = yes ; then
27624                 ol_cv_lib_resolver=-lbind
27625         fi
27626 fi
27627
27628
27629
27630 ol_link_dnssrv=no
27631 if test "$ol_cv_lib_resolver" != no ; then
27632
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_RES_QUERY 1
27635 _ACEOF
27636
27637
27638         if test "$ol_enable_dnssrv" != no ; then
27639                 ol_link_dnssrv=yes
27640         fi
27641
27642         if test "$ol_cv_lib_resolver" != yes ; then
27643                 LIBS="$ol_cv_lib_resolver $LIBS"
27644         fi
27645 fi
27646
27647 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27648         if test "$ol_link_dnssrv" = no ; then
27649                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27650 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27651    { (exit 1); exit 1; }; }
27652         fi
27653 else
27654         ol_enable_dnssrv=no
27655 fi
27656
27657
27658 for ac_func in hstrerror
27659 do
27660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27661 echo "$as_me:$LINENO: checking for $ac_func" >&5
27662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27663 if eval "test \"\${$as_ac_var+set}\" = set"; then
27664   echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666   cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27674 #define $ac_func innocuous_$ac_func
27675
27676 /* System header to define __stub macros and hopefully few prototypes,
27677     which can conflict with char $ac_func (); below.
27678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27679     <limits.h> exists even on freestanding compilers.  */
27680
27681 #ifdef __STDC__
27682 # include <limits.h>
27683 #else
27684 # include <assert.h>
27685 #endif
27686
27687 #undef $ac_func
27688
27689 /* Override any gcc2 internal prototype to avoid an error.  */
27690 #ifdef __cplusplus
27691 extern "C"
27692 {
27693 #endif
27694 /* We use char because int might match the return type of a gcc2
27695    builtin and then its argument prototype would still apply.  */
27696 char $ac_func ();
27697 /* The GNU C library defines this for functions which it implements
27698     to always fail with ENOSYS.  Some functions are actually named
27699     something starting with __ and the normal name is an alias.  */
27700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27701 choke me
27702 #else
27703 char (*f) () = $ac_func;
27704 #endif
27705 #ifdef __cplusplus
27706 }
27707 #endif
27708
27709 int
27710 main ()
27711 {
27712 return f != $ac_func;
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27719   (eval $ac_link) 2>conftest.er1
27720   ac_status=$?
27721   grep -v '^ *+' conftest.er1 >conftest.err
27722   rm -f conftest.er1
27723   cat conftest.err >&5
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); } &&
27726          { ac_try='test -z "$ac_c_werror_flag"
27727                          || test ! -s conftest.err'
27728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729   (eval $ac_try) 2>&5
27730   ac_status=$?
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); }; } &&
27733          { ac_try='test -s conftest$ac_exeext'
27734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735   (eval $ac_try) 2>&5
27736   ac_status=$?
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); }; }; then
27739   eval "$as_ac_var=yes"
27740 else
27741   echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744 eval "$as_ac_var=no"
27745 fi
27746 rm -f conftest.err conftest.$ac_objext \
27747       conftest$ac_exeext conftest.$ac_ext
27748 fi
27749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27751 if test `eval echo '${'$as_ac_var'}'` = yes; then
27752   cat >>confdefs.h <<_ACEOF
27753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27754 _ACEOF
27755
27756 fi
27757 done
27758
27759
27760
27761
27762
27763
27764 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27765 do
27766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27767 echo "$as_me:$LINENO: checking for $ac_func" >&5
27768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27769 if eval "test \"\${$as_ac_var+set}\" = set"; then
27770   echo $ECHO_N "(cached) $ECHO_C" >&6
27771 else
27772   cat >conftest.$ac_ext <<_ACEOF
27773 /* confdefs.h.  */
27774 _ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h.  */
27778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27780 #define $ac_func innocuous_$ac_func
27781
27782 /* System header to define __stub macros and hopefully few prototypes,
27783     which can conflict with char $ac_func (); below.
27784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27785     <limits.h> exists even on freestanding compilers.  */
27786
27787 #ifdef __STDC__
27788 # include <limits.h>
27789 #else
27790 # include <assert.h>
27791 #endif
27792
27793 #undef $ac_func
27794
27795 /* Override any gcc2 internal prototype to avoid an error.  */
27796 #ifdef __cplusplus
27797 extern "C"
27798 {
27799 #endif
27800 /* We use char because int might match the return type of a gcc2
27801    builtin and then its argument prototype would still apply.  */
27802 char $ac_func ();
27803 /* The GNU C library defines this for functions which it implements
27804     to always fail with ENOSYS.  Some functions are actually named
27805     something starting with __ and the normal name is an alias.  */
27806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27807 choke me
27808 #else
27809 char (*f) () = $ac_func;
27810 #endif
27811 #ifdef __cplusplus
27812 }
27813 #endif
27814
27815 int
27816 main ()
27817 {
27818 return f != $ac_func;
27819   ;
27820   return 0;
27821 }
27822 _ACEOF
27823 rm -f conftest.$ac_objext conftest$ac_exeext
27824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27825   (eval $ac_link) 2>conftest.er1
27826   ac_status=$?
27827   grep -v '^ *+' conftest.er1 >conftest.err
27828   rm -f conftest.er1
27829   cat conftest.err >&5
27830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831   (exit $ac_status); } &&
27832          { ac_try='test -z "$ac_c_werror_flag"
27833                          || test ! -s conftest.err'
27834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835   (eval $ac_try) 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; } &&
27839          { ac_try='test -s conftest$ac_exeext'
27840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841   (eval $ac_try) 2>&5
27842   ac_status=$?
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); }; }; then
27845   eval "$as_ac_var=yes"
27846 else
27847   echo "$as_me: failed program was:" >&5
27848 sed 's/^/| /' conftest.$ac_ext >&5
27849
27850 eval "$as_ac_var=no"
27851 fi
27852 rm -f conftest.err conftest.$ac_objext \
27853       conftest$ac_exeext conftest.$ac_ext
27854 fi
27855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27857 if test `eval echo '${'$as_ac_var'}'` = yes; then
27858   cat >>confdefs.h <<_ACEOF
27859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27860 _ACEOF
27861
27862 fi
27863 done
27864
27865
27866 ol_link_ipv6=no
27867 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27868         if test $ol_enable_ipv6 = yes ; then
27869                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27870 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27871    { (exit 1); exit 1; }; }
27872         fi
27873 elif test $ol_enable_ipv6 != no ; then
27874         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27875 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27876 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27877   echo $ECHO_N "(cached) $ECHO_C" >&6
27878 else
27879
27880                 cat >conftest.$ac_ext <<_ACEOF
27881 /* confdefs.h.  */
27882 _ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h.  */
27886
27887 #                       include <netinet/in.h>
27888 #                       ifdef INET6_ADDRSTRLEN
27889                                 __has_inet6_addrstrlen__;
27890 #                       endif
27891
27892 _ACEOF
27893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27894   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27895   ol_cv_inet6_addrstrlen=yes
27896 else
27897   ol_cv_inet6_addrstrlen=no
27898 fi
27899 rm -f conftest*
27900
27901 fi
27902 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27903 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27904
27905
27906         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27907 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27908 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27909   echo $ECHO_N "(cached) $ECHO_C" >&6
27910 else
27911
27912                 cat >conftest.$ac_ext <<_ACEOF
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918
27919 #include <sys/types.h>
27920 #include <sys/socket.h>
27921
27922 int
27923 main ()
27924 {
27925
27926                         struct sockaddr_storage ss;
27927
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 rm -f conftest.$ac_objext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27934   (eval $ac_compile) 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } &&
27941          { ac_try='test -z "$ac_c_werror_flag"
27942                          || test ! -s conftest.err'
27943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944   (eval $ac_try) 2>&5
27945   ac_status=$?
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); }; } &&
27948          { ac_try='test -s conftest.$ac_objext'
27949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950   (eval $ac_try) 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; }; then
27954   ol_cv_struct_sockaddr_storage=yes
27955 else
27956   echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27958
27959 ol_cv_struct_sockaddr_storage=no
27960 fi
27961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27962 fi
27963 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27964 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27965
27966         if test $ol_cv_inet6_addrstrlen = yes \
27967                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27968                 ol_link_ipv6=yes
27969         elif test $ol_enable_ipv6 = yes \
27970                         -a $ol_cv_inet6_addrstrlen = no ; then
27971                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27972 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27973    { (exit 1); exit 1; }; }
27974         elif test $ol_enable_ipv6 = yes \
27975                         -a $ol_cv_struct_sockaddr_storage = no ; then
27976                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27977 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27978    { (exit 1); exit 1; }; }
27979         fi
27980 fi
27981
27982 if test $ol_enable_local != no ; then
27983
27984 for ac_header in sys/un.h
27985 do
27986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27988   echo "$as_me:$LINENO: checking for $ac_header" >&5
27989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 fi
27993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27995 else
27996   # Is the header compilable?
27997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27999 cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005 $ac_includes_default
28006 #include <$ac_header>
28007 _ACEOF
28008 rm -f conftest.$ac_objext
28009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28010   (eval $ac_compile) 2>conftest.er1
28011   ac_status=$?
28012   grep -v '^ *+' conftest.er1 >conftest.err
28013   rm -f conftest.er1
28014   cat conftest.err >&5
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); } &&
28017          { ac_try='test -z "$ac_c_werror_flag"
28018                          || test ! -s conftest.err'
28019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020   (eval $ac_try) 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); }; } &&
28024          { ac_try='test -s conftest.$ac_objext'
28025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026   (eval $ac_try) 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; }; then
28030   ac_header_compiler=yes
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035 ac_header_compiler=no
28036 fi
28037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28039 echo "${ECHO_T}$ac_header_compiler" >&6
28040
28041 # Is the header present?
28042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28044 cat >conftest.$ac_ext <<_ACEOF
28045 /* confdefs.h.  */
28046 _ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h.  */
28050 #include <$ac_header>
28051 _ACEOF
28052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28054   ac_status=$?
28055   grep -v '^ *+' conftest.er1 >conftest.err
28056   rm -f conftest.er1
28057   cat conftest.err >&5
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); } >/dev/null; then
28060   if test -s conftest.err; then
28061     ac_cpp_err=$ac_c_preproc_warn_flag
28062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28063   else
28064     ac_cpp_err=
28065   fi
28066 else
28067   ac_cpp_err=yes
28068 fi
28069 if test -z "$ac_cpp_err"; then
28070   ac_header_preproc=yes
28071 else
28072   echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075   ac_header_preproc=no
28076 fi
28077 rm -f conftest.err conftest.$ac_ext
28078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28079 echo "${ECHO_T}$ac_header_preproc" >&6
28080
28081 # So?  What about this header?
28082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28083   yes:no: )
28084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28088     ac_header_preproc=yes
28089     ;;
28090   no:yes:* )
28091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28103     (
28104       cat <<\_ASBOX
28105 ## ------------------------------------------ ##
28106 ## Report this to the AC_PACKAGE_NAME lists.  ##
28107 ## ------------------------------------------ ##
28108 _ASBOX
28109     ) |
28110       sed "s/^/$as_me: WARNING:     /" >&2
28111     ;;
28112 esac
28113 echo "$as_me:$LINENO: checking for $ac_header" >&5
28114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28116   echo $ECHO_N "(cached) $ECHO_C" >&6
28117 else
28118   eval "$as_ac_Header=\$ac_header_preproc"
28119 fi
28120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28122
28123 fi
28124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28125   cat >>confdefs.h <<_ACEOF
28126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28127 _ACEOF
28128
28129 fi
28130
28131 done
28132
28133
28134         if test $ol_enable_local = auto ; then
28135                 ol_enable_local=$ac_cv_header_sys_un_h
28136         elif test $ac_cv_header_sys_un_h = no ; then
28137                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28138 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28139    { (exit 1); exit 1; }; }
28140         fi
28141 fi
28142
28143 ol_link_kbind=no
28144 ol_link_krb5=no
28145 ol_link_krb4=no
28146
28147 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28148         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28149         -o $ol_with_kerberos = k425 ; then
28150
28151
28152 for ac_header in krb5.h
28153 do
28154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28156   echo "$as_me:$LINENO: checking for $ac_header" >&5
28157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28159   echo $ECHO_N "(cached) $ECHO_C" >&6
28160 fi
28161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28163 else
28164   # Is the header compilable?
28165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28167 cat >conftest.$ac_ext <<_ACEOF
28168 /* confdefs.h.  */
28169 _ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h.  */
28173 $ac_includes_default
28174 #include <$ac_header>
28175 _ACEOF
28176 rm -f conftest.$ac_objext
28177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28178   (eval $ac_compile) 2>conftest.er1
28179   ac_status=$?
28180   grep -v '^ *+' conftest.er1 >conftest.err
28181   rm -f conftest.er1
28182   cat conftest.err >&5
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); } &&
28185          { ac_try='test -z "$ac_c_werror_flag"
28186                          || test ! -s conftest.err'
28187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188   (eval $ac_try) 2>&5
28189   ac_status=$?
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); }; } &&
28192          { ac_try='test -s conftest.$ac_objext'
28193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194   (eval $ac_try) 2>&5
28195   ac_status=$?
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); }; }; then
28198   ac_header_compiler=yes
28199 else
28200   echo "$as_me: failed program was:" >&5
28201 sed 's/^/| /' conftest.$ac_ext >&5
28202
28203 ac_header_compiler=no
28204 fi
28205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28207 echo "${ECHO_T}$ac_header_compiler" >&6
28208
28209 # Is the header present?
28210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28212 cat >conftest.$ac_ext <<_ACEOF
28213 /* confdefs.h.  */
28214 _ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h.  */
28218 #include <$ac_header>
28219 _ACEOF
28220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } >/dev/null; then
28228   if test -s conftest.err; then
28229     ac_cpp_err=$ac_c_preproc_warn_flag
28230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28231   else
28232     ac_cpp_err=
28233   fi
28234 else
28235   ac_cpp_err=yes
28236 fi
28237 if test -z "$ac_cpp_err"; then
28238   ac_header_preproc=yes
28239 else
28240   echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243   ac_header_preproc=no
28244 fi
28245 rm -f conftest.err conftest.$ac_ext
28246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28247 echo "${ECHO_T}$ac_header_preproc" >&6
28248
28249 # So?  What about this header?
28250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28251   yes:no: )
28252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28256     ac_header_preproc=yes
28257     ;;
28258   no:yes:* )
28259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28271     (
28272       cat <<\_ASBOX
28273 ## ------------------------------------------ ##
28274 ## Report this to the AC_PACKAGE_NAME lists.  ##
28275 ## ------------------------------------------ ##
28276 _ASBOX
28277     ) |
28278       sed "s/^/$as_me: WARNING:     /" >&2
28279     ;;
28280 esac
28281 echo "$as_me:$LINENO: checking for $ac_header" >&5
28282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28284   echo $ECHO_N "(cached) $ECHO_C" >&6
28285 else
28286   eval "$as_ac_Header=\$ac_header_preproc"
28287 fi
28288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28290
28291 fi
28292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28293   cat >>confdefs.h <<_ACEOF
28294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28295 _ACEOF
28296
28297 fi
28298
28299 done
28300
28301
28302         if test $ac_cv_header_krb5_h = yes ; then
28303
28304 for ac_header in heim_err.h
28305 do
28306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28308   echo "$as_me:$LINENO: checking for $ac_header" >&5
28309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28311   echo $ECHO_N "(cached) $ECHO_C" >&6
28312 fi
28313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28315 else
28316   # Is the header compilable?
28317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28319 cat >conftest.$ac_ext <<_ACEOF
28320 /* confdefs.h.  */
28321 _ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h.  */
28325 $ac_includes_default
28326 #include <$ac_header>
28327 _ACEOF
28328 rm -f conftest.$ac_objext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28330   (eval $ac_compile) 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } &&
28337          { ac_try='test -z "$ac_c_werror_flag"
28338                          || test ! -s conftest.err'
28339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340   (eval $ac_try) 2>&5
28341   ac_status=$?
28342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); }; } &&
28344          { ac_try='test -s conftest.$ac_objext'
28345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346   (eval $ac_try) 2>&5
28347   ac_status=$?
28348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); }; }; then
28350   ac_header_compiler=yes
28351 else
28352   echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28354
28355 ac_header_compiler=no
28356 fi
28357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28359 echo "${ECHO_T}$ac_header_compiler" >&6
28360
28361 # Is the header present?
28362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28364 cat >conftest.$ac_ext <<_ACEOF
28365 /* confdefs.h.  */
28366 _ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h.  */
28370 #include <$ac_header>
28371 _ACEOF
28372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28374   ac_status=$?
28375   grep -v '^ *+' conftest.er1 >conftest.err
28376   rm -f conftest.er1
28377   cat conftest.err >&5
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); } >/dev/null; then
28380   if test -s conftest.err; then
28381     ac_cpp_err=$ac_c_preproc_warn_flag
28382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28383   else
28384     ac_cpp_err=
28385   fi
28386 else
28387   ac_cpp_err=yes
28388 fi
28389 if test -z "$ac_cpp_err"; then
28390   ac_header_preproc=yes
28391 else
28392   echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28394
28395   ac_header_preproc=no
28396 fi
28397 rm -f conftest.err conftest.$ac_ext
28398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28399 echo "${ECHO_T}$ac_header_preproc" >&6
28400
28401 # So?  What about this header?
28402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28403   yes:no: )
28404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28408     ac_header_preproc=yes
28409     ;;
28410   no:yes:* )
28411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28423     (
28424       cat <<\_ASBOX
28425 ## ------------------------------------------ ##
28426 ## Report this to the AC_PACKAGE_NAME lists.  ##
28427 ## ------------------------------------------ ##
28428 _ASBOX
28429     ) |
28430       sed "s/^/$as_me: WARNING:     /" >&2
28431     ;;
28432 esac
28433 echo "$as_me:$LINENO: checking for $ac_header" >&5
28434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28436   echo $ECHO_N "(cached) $ECHO_C" >&6
28437 else
28438   eval "$as_ac_Header=\$ac_header_preproc"
28439 fi
28440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28442
28443 fi
28444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28445   cat >>confdefs.h <<_ACEOF
28446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28447 _ACEOF
28448
28449 fi
28450
28451 done
28452
28453                 if test $ac_cv_header_heim_err_h = yes ; then
28454                         krb5_impl=heimdal
28455                 else
28456                         krb5_impl=mit
28457                 fi
28458
28459                 if test $krb5_impl = mit; then
28460                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28461 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28462 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28463   echo $ECHO_N "(cached) $ECHO_C" >&6
28464 else
28465   ac_check_lib_save_LIBS=$LIBS
28466 LIBS="-lk5crypto  $LIBS"
28467 cat >conftest.$ac_ext <<_ACEOF
28468 /* confdefs.h.  */
28469 _ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h.  */
28473
28474
28475 int
28476 main ()
28477 {
28478 main ();
28479   ;
28480   return 0;
28481 }
28482 _ACEOF
28483 rm -f conftest.$ac_objext conftest$ac_exeext
28484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28485   (eval $ac_link) 2>conftest.er1
28486   ac_status=$?
28487   grep -v '^ *+' conftest.er1 >conftest.err
28488   rm -f conftest.er1
28489   cat conftest.err >&5
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); } &&
28492          { ac_try='test -z "$ac_c_werror_flag"
28493                          || test ! -s conftest.err'
28494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28495   (eval $ac_try) 2>&5
28496   ac_status=$?
28497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); }; } &&
28499          { ac_try='test -s conftest$ac_exeext'
28500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501   (eval $ac_try) 2>&5
28502   ac_status=$?
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); }; }; then
28505   ac_cv_lib_k5crypto_main=yes
28506 else
28507   echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28509
28510 ac_cv_lib_k5crypto_main=no
28511 fi
28512 rm -f conftest.err conftest.$ac_objext \
28513       conftest$ac_exeext conftest.$ac_ext
28514 LIBS=$ac_check_lib_save_LIBS
28515 fi
28516 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28517 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28518 if test $ac_cv_lib_k5crypto_main = yes; then
28519   krb5crypto=k5crypto
28520 else
28521   krb5crypto=crypto
28522 fi
28523
28524
28525                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28526 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28527 if test "${ac_cv_lib_krb5_main+set}" = set; then
28528   echo $ECHO_N "(cached) $ECHO_C" >&6
28529 else
28530   ac_check_lib_save_LIBS=$LIBS
28531 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28532 cat >conftest.$ac_ext <<_ACEOF
28533 /* confdefs.h.  */
28534 _ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h.  */
28538
28539
28540 int
28541 main ()
28542 {
28543 main ();
28544   ;
28545   return 0;
28546 }
28547 _ACEOF
28548 rm -f conftest.$ac_objext conftest$ac_exeext
28549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28550   (eval $ac_link) 2>conftest.er1
28551   ac_status=$?
28552   grep -v '^ *+' conftest.er1 >conftest.err
28553   rm -f conftest.er1
28554   cat conftest.err >&5
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); } &&
28557          { ac_try='test -z "$ac_c_werror_flag"
28558                          || test ! -s conftest.err'
28559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560   (eval $ac_try) 2>&5
28561   ac_status=$?
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); }; } &&
28564          { ac_try='test -s conftest$ac_exeext'
28565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566   (eval $ac_try) 2>&5
28567   ac_status=$?
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); }; }; then
28570   ac_cv_lib_krb5_main=yes
28571 else
28572   echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28574
28575 ac_cv_lib_krb5_main=no
28576 fi
28577 rm -f conftest.err conftest.$ac_objext \
28578       conftest$ac_exeext conftest.$ac_ext
28579 LIBS=$ac_check_lib_save_LIBS
28580 fi
28581 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28582 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28583 if test $ac_cv_lib_krb5_main = yes; then
28584   have_krb5=yes
28585                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28586 else
28587   have_krb5=no
28588 fi
28589
28590
28591                 elif test $krb5_impl = heimdal; then
28592                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28593 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28594 if test "${ac_cv_lib_des_main+set}" = set; then
28595   echo $ECHO_N "(cached) $ECHO_C" >&6
28596 else
28597   ac_check_lib_save_LIBS=$LIBS
28598 LIBS="-ldes  $LIBS"
28599 cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h.  */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h.  */
28605
28606
28607 int
28608 main ()
28609 {
28610 main ();
28611   ;
28612   return 0;
28613 }
28614 _ACEOF
28615 rm -f conftest.$ac_objext conftest$ac_exeext
28616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28617   (eval $ac_link) 2>conftest.er1
28618   ac_status=$?
28619   grep -v '^ *+' conftest.er1 >conftest.err
28620   rm -f conftest.er1
28621   cat conftest.err >&5
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); } &&
28624          { ac_try='test -z "$ac_c_werror_flag"
28625                          || test ! -s conftest.err'
28626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627   (eval $ac_try) 2>&5
28628   ac_status=$?
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); }; } &&
28631          { ac_try='test -s conftest$ac_exeext'
28632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633   (eval $ac_try) 2>&5
28634   ac_status=$?
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); }; }; then
28637   ac_cv_lib_des_main=yes
28638 else
28639   echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.$ac_ext >&5
28641
28642 ac_cv_lib_des_main=no
28643 fi
28644 rm -f conftest.err conftest.$ac_objext \
28645       conftest$ac_exeext conftest.$ac_ext
28646 LIBS=$ac_check_lib_save_LIBS
28647 fi
28648 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28649 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28650 if test $ac_cv_lib_des_main = yes; then
28651   krb5crypto=des
28652 else
28653   krb5crypto=crypto
28654 fi
28655
28656
28657                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28658 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28659 if test "${ac_cv_lib_krb5_main+set}" = set; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662   ac_check_lib_save_LIBS=$LIBS
28663 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28664 cat >conftest.$ac_ext <<_ACEOF
28665 /* confdefs.h.  */
28666 _ACEOF
28667 cat confdefs.h >>conftest.$ac_ext
28668 cat >>conftest.$ac_ext <<_ACEOF
28669 /* end confdefs.h.  */
28670
28671
28672 int
28673 main ()
28674 {
28675 main ();
28676   ;
28677   return 0;
28678 }
28679 _ACEOF
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28682   (eval $ac_link) 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } &&
28689          { ac_try='test -z "$ac_c_werror_flag"
28690                          || test ! -s conftest.err'
28691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692   (eval $ac_try) 2>&5
28693   ac_status=$?
28694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); }; } &&
28696          { ac_try='test -s conftest$ac_exeext'
28697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698   (eval $ac_try) 2>&5
28699   ac_status=$?
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); }; }; then
28702   ac_cv_lib_krb5_main=yes
28703 else
28704   echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28706
28707 ac_cv_lib_krb5_main=no
28708 fi
28709 rm -f conftest.err conftest.$ac_objext \
28710       conftest$ac_exeext conftest.$ac_ext
28711 LIBS=$ac_check_lib_save_LIBS
28712 fi
28713 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28714 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28715 if test $ac_cv_lib_krb5_main = yes; then
28716   have_krb5=yes
28717                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28718 else
28719   have_krb5=no
28720 fi
28721
28722
28723
28724 cat >>confdefs.h <<\_ACEOF
28725 #define HAVE_HEIMDAL_KERBEROS 1
28726 _ACEOF
28727
28728
28729                 else
28730                         have_krb5=no
28731                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28732 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28733                 fi
28734
28735                 if test $have_krb5 = yes ; then
28736                         ol_link_krb5=yes
28737
28738
28739 cat >>confdefs.h <<\_ACEOF
28740 #define HAVE_KRB5 1
28741 _ACEOF
28742
28743
28744                         if test $ol_with_kerberos = k5only ; then
28745                                 ol_with_kerberos=found
28746                         fi
28747
28748                 elif test $ol_with_kerberos != auto ; then
28749                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28750 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28751    { (exit 1); exit 1; }; }
28752                 fi
28753
28754         fi
28755 fi
28756
28757 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28758         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28759
28760
28761
28762 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28763 do
28764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28766   echo "$as_me:$LINENO: checking for $ac_header" >&5
28767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 fi
28771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28773 else
28774   # Is the header compilable?
28775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28777 cat >conftest.$ac_ext <<_ACEOF
28778 /* confdefs.h.  */
28779 _ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h.  */
28783 $ac_includes_default
28784 #include <$ac_header>
28785 _ACEOF
28786 rm -f conftest.$ac_objext
28787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28788   (eval $ac_compile) 2>conftest.er1
28789   ac_status=$?
28790   grep -v '^ *+' conftest.er1 >conftest.err
28791   rm -f conftest.er1
28792   cat conftest.err >&5
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); } &&
28795          { ac_try='test -z "$ac_c_werror_flag"
28796                          || test ! -s conftest.err'
28797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798   (eval $ac_try) 2>&5
28799   ac_status=$?
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); }; } &&
28802          { ac_try='test -s conftest.$ac_objext'
28803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804   (eval $ac_try) 2>&5
28805   ac_status=$?
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); }; }; then
28808   ac_header_compiler=yes
28809 else
28810   echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.$ac_ext >&5
28812
28813 ac_header_compiler=no
28814 fi
28815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28817 echo "${ECHO_T}$ac_header_compiler" >&6
28818
28819 # Is the header present?
28820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28822 cat >conftest.$ac_ext <<_ACEOF
28823 /* confdefs.h.  */
28824 _ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h.  */
28828 #include <$ac_header>
28829 _ACEOF
28830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28832   ac_status=$?
28833   grep -v '^ *+' conftest.er1 >conftest.err
28834   rm -f conftest.er1
28835   cat conftest.err >&5
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); } >/dev/null; then
28838   if test -s conftest.err; then
28839     ac_cpp_err=$ac_c_preproc_warn_flag
28840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28841   else
28842     ac_cpp_err=
28843   fi
28844 else
28845   ac_cpp_err=yes
28846 fi
28847 if test -z "$ac_cpp_err"; then
28848   ac_header_preproc=yes
28849 else
28850   echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28852
28853   ac_header_preproc=no
28854 fi
28855 rm -f conftest.err conftest.$ac_ext
28856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857 echo "${ECHO_T}$ac_header_preproc" >&6
28858
28859 # So?  What about this header?
28860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28861   yes:no: )
28862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28866     ac_header_preproc=yes
28867     ;;
28868   no:yes:* )
28869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28881     (
28882       cat <<\_ASBOX
28883 ## ------------------------------------------ ##
28884 ## Report this to the AC_PACKAGE_NAME lists.  ##
28885 ## ------------------------------------------ ##
28886 _ASBOX
28887     ) |
28888       sed "s/^/$as_me: WARNING:     /" >&2
28889     ;;
28890 esac
28891 echo "$as_me:$LINENO: checking for $ac_header" >&5
28892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28894   echo $ECHO_N "(cached) $ECHO_C" >&6
28895 else
28896   eval "$as_ac_Header=\$ac_header_preproc"
28897 fi
28898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28900
28901 fi
28902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28903   cat >>confdefs.h <<_ACEOF
28904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28905 _ACEOF
28906
28907 fi
28908
28909 done
28910
28911
28912         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28913                 if test $krb5_impl = mit; then
28914                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28915 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28916 if test "${ac_cv_lib_krb4_main+set}" = set; then
28917   echo $ECHO_N "(cached) $ECHO_C" >&6
28918 else
28919   ac_check_lib_save_LIBS=$LIBS
28920 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28921 cat >conftest.$ac_ext <<_ACEOF
28922 /* confdefs.h.  */
28923 _ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h.  */
28927
28928
28929 int
28930 main ()
28931 {
28932 main ();
28933   ;
28934   return 0;
28935 }
28936 _ACEOF
28937 rm -f conftest.$ac_objext conftest$ac_exeext
28938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28939   (eval $ac_link) 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } &&
28946          { ac_try='test -z "$ac_c_werror_flag"
28947                          || test ! -s conftest.err'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; } &&
28953          { ac_try='test -s conftest$ac_exeext'
28954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955   (eval $ac_try) 2>&5
28956   ac_status=$?
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); }; }; then
28959   ac_cv_lib_krb4_main=yes
28960 else
28961   echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28963
28964 ac_cv_lib_krb4_main=no
28965 fi
28966 rm -f conftest.err conftest.$ac_objext \
28967       conftest$ac_exeext conftest.$ac_ext
28968 LIBS=$ac_check_lib_save_LIBS
28969 fi
28970 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28971 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28972 if test $ac_cv_lib_krb4_main = yes; then
28973   have_k425=yes
28974                                 KRB4_LIBS="-lkrb4 -ldes425"
28975 else
28976   have_k425=no
28977 fi
28978
28979
28980                 elif test $krb5_impl = heimdal; then
28981                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28982 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28983 if test "${ac_cv_lib_krb4_main+set}" = set; then
28984   echo $ECHO_N "(cached) $ECHO_C" >&6
28985 else
28986   ac_check_lib_save_LIBS=$LIBS
28987 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28988 cat >conftest.$ac_ext <<_ACEOF
28989 /* confdefs.h.  */
28990 _ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h.  */
28994
28995
28996 int
28997 main ()
28998 {
28999 main ();
29000   ;
29001   return 0;
29002 }
29003 _ACEOF
29004 rm -f conftest.$ac_objext conftest$ac_exeext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29006   (eval $ac_link) 2>conftest.er1
29007   ac_status=$?
29008   grep -v '^ *+' conftest.er1 >conftest.err
29009   rm -f conftest.er1
29010   cat conftest.err >&5
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } &&
29013          { ac_try='test -z "$ac_c_werror_flag"
29014                          || test ! -s conftest.err'
29015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016   (eval $ac_try) 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; } &&
29020          { ac_try='test -s conftest$ac_exeext'
29021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022   (eval $ac_try) 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); }; }; then
29026   ac_cv_lib_krb4_main=yes
29027 else
29028   echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 ac_cv_lib_krb4_main=no
29032 fi
29033 rm -f conftest.err conftest.$ac_objext \
29034       conftest$ac_exeext conftest.$ac_ext
29035 LIBS=$ac_check_lib_save_LIBS
29036 fi
29037 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29038 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29039 if test $ac_cv_lib_krb4_main = yes; then
29040   have_k425=yes
29041                                 KRB4_LIBS="-lkrb4"
29042 else
29043   have_k425=no
29044 fi
29045
29046
29047                 else
29048                         have_425=no
29049                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29050 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29051                 fi
29052
29053                 if test $have_k425 = yes ; then
29054                         ol_with_kerberos=found
29055                         ol_link_krb4=yes
29056
29057
29058 cat >>confdefs.h <<\_ACEOF
29059 #define HAVE_KRB425 1
29060 _ACEOF
29061
29062
29063 cat >>confdefs.h <<\_ACEOF
29064 #define HAVE_KRB4 1
29065 _ACEOF
29066
29067
29068                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29069 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29070 if test "${ol_cv_var_des_debug+set}" = set; then
29071   echo $ECHO_N "(cached) $ECHO_C" >&6
29072 else
29073
29074                                                                 save_LIBS="$LIBS"
29075                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29076                                 cat >conftest.$ac_ext <<_ACEOF
29077 /* confdefs.h.  */
29078 _ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h.  */
29082
29083 #include <kerberosIV/krb.h>
29084 #include <kerberosIV/des.h>
29085 extern int des_debug;
29086
29087 int
29088 main ()
29089 {
29090
29091 des_debug = 1;
29092
29093   ;
29094   return 0;
29095 }
29096 _ACEOF
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099   (eval $ac_link) 2>conftest.er1
29100   ac_status=$?
29101   grep -v '^ *+' conftest.er1 >conftest.err
29102   rm -f conftest.er1
29103   cat conftest.err >&5
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); } &&
29106          { ac_try='test -z "$ac_c_werror_flag"
29107                          || test ! -s conftest.err'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; } &&
29113          { ac_try='test -s conftest$ac_exeext'
29114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115   (eval $ac_try) 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); }; }; then
29119   ol_cv_var_des_debug=yes
29120 else
29121   echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29123
29124 ol_cv_var_des_debug=no
29125 fi
29126 rm -f conftest.err conftest.$ac_objext \
29127       conftest$ac_exeext conftest.$ac_ext
29128                                                                 LIBS="$save_LIBS"
29129
29130 fi
29131 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29132 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29133
29134                         if test $ol_cv_var_des_debug = yes ; then
29135
29136 cat >>confdefs.h <<\_ACEOF
29137 #define HAVE_DES_DEBUG 1
29138 _ACEOF
29139
29140                         fi
29141
29142                         LIBS="$save_LIBS"
29143                 fi
29144         fi
29145 fi
29146
29147 if test $ol_link_krb5 = yes ; then
29148         ol_with_kerberos=found
29149 fi
29150
29151 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29152         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29153
29154
29155
29156
29157 for ac_header in krb.h des.h krb-archaeology.h
29158 do
29159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29161   echo "$as_me:$LINENO: checking for $ac_header" >&5
29162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 fi
29166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29168 else
29169   # Is the header compilable?
29170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29172 cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h.  */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h.  */
29178 $ac_includes_default
29179 #include <$ac_header>
29180 _ACEOF
29181 rm -f conftest.$ac_objext
29182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29183   (eval $ac_compile) 2>conftest.er1
29184   ac_status=$?
29185   grep -v '^ *+' conftest.er1 >conftest.err
29186   rm -f conftest.er1
29187   cat conftest.err >&5
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); } &&
29190          { ac_try='test -z "$ac_c_werror_flag"
29191                          || test ! -s conftest.err'
29192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193   (eval $ac_try) 2>&5
29194   ac_status=$?
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); }; } &&
29197          { ac_try='test -s conftest.$ac_objext'
29198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199   (eval $ac_try) 2>&5
29200   ac_status=$?
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); }; }; then
29203   ac_header_compiler=yes
29204 else
29205   echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29207
29208 ac_header_compiler=no
29209 fi
29210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29212 echo "${ECHO_T}$ac_header_compiler" >&6
29213
29214 # Is the header present?
29215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29217 cat >conftest.$ac_ext <<_ACEOF
29218 /* confdefs.h.  */
29219 _ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h.  */
29223 #include <$ac_header>
29224 _ACEOF
29225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } >/dev/null; then
29233   if test -s conftest.err; then
29234     ac_cpp_err=$ac_c_preproc_warn_flag
29235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29236   else
29237     ac_cpp_err=
29238   fi
29239 else
29240   ac_cpp_err=yes
29241 fi
29242 if test -z "$ac_cpp_err"; then
29243   ac_header_preproc=yes
29244 else
29245   echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29247
29248   ac_header_preproc=no
29249 fi
29250 rm -f conftest.err conftest.$ac_ext
29251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29252 echo "${ECHO_T}$ac_header_preproc" >&6
29253
29254 # So?  What about this header?
29255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29256   yes:no: )
29257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29261     ac_header_preproc=yes
29262     ;;
29263   no:yes:* )
29264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29276     (
29277       cat <<\_ASBOX
29278 ## ------------------------------------------ ##
29279 ## Report this to the AC_PACKAGE_NAME lists.  ##
29280 ## ------------------------------------------ ##
29281 _ASBOX
29282     ) |
29283       sed "s/^/$as_me: WARNING:     /" >&2
29284     ;;
29285 esac
29286 echo "$as_me:$LINENO: checking for $ac_header" >&5
29287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29289   echo $ECHO_N "(cached) $ECHO_C" >&6
29290 else
29291   eval "$as_ac_Header=\$ac_header_preproc"
29292 fi
29293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29295
29296 fi
29297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29298   cat >>confdefs.h <<_ACEOF
29299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29300 _ACEOF
29301
29302 fi
29303
29304 done
29305
29306
29307         if test $ac_cv_header_krb_h = yes ; then
29308                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29309 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29310 if test "${ac_cv_lib_krb_main+set}" = set; then
29311   echo $ECHO_N "(cached) $ECHO_C" >&6
29312 else
29313   ac_check_lib_save_LIBS=$LIBS
29314 LIBS="-lkrb -ldes $LIBS"
29315 cat >conftest.$ac_ext <<_ACEOF
29316 /* confdefs.h.  */
29317 _ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h.  */
29321
29322
29323 int
29324 main ()
29325 {
29326 main ();
29327   ;
29328   return 0;
29329 }
29330 _ACEOF
29331 rm -f conftest.$ac_objext conftest$ac_exeext
29332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29333   (eval $ac_link) 2>conftest.er1
29334   ac_status=$?
29335   grep -v '^ *+' conftest.er1 >conftest.err
29336   rm -f conftest.er1
29337   cat conftest.err >&5
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); } &&
29340          { ac_try='test -z "$ac_c_werror_flag"
29341                          || test ! -s conftest.err'
29342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343   (eval $ac_try) 2>&5
29344   ac_status=$?
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); }; } &&
29347          { ac_try='test -s conftest$ac_exeext'
29348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349   (eval $ac_try) 2>&5
29350   ac_status=$?
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); }; }; then
29353   ac_cv_lib_krb_main=yes
29354 else
29355   echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29357
29358 ac_cv_lib_krb_main=no
29359 fi
29360 rm -f conftest.err conftest.$ac_objext \
29361       conftest$ac_exeext conftest.$ac_ext
29362 LIBS=$ac_check_lib_save_LIBS
29363 fi
29364 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29365 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29366 if test $ac_cv_lib_krb_main = yes; then
29367   have_k4=yes
29368 else
29369   have_k4=no
29370 fi
29371
29372
29373                 if test $have_k4 = yes ; then
29374                         ol_with_kerberos=found
29375                         ol_link_krb4=yes
29376
29377
29378 cat >>confdefs.h <<\_ACEOF
29379 #define HAVE_KRB4 1
29380 _ACEOF
29381
29382
29383                         KRB4_LIBS="-lkrb -ldes"
29384
29385                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29386
29387 cat >>confdefs.h <<\_ACEOF
29388 #define HAVE_KTH_KERBEROS 1
29389 _ACEOF
29390
29391                         fi
29392                 fi
29393         fi
29394 fi
29395
29396 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29397         ol_link_kbind=yes
29398
29399 elif test $ol_enable_kbind = yes ; then
29400         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29401 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29402    { (exit 1); exit 1; }; }
29403 fi
29404
29405 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29406
29407 cat >>confdefs.h <<\_ACEOF
29408 #define HAVE_KERBEROS 1
29409 _ACEOF
29410
29411
29412 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29413         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29414 echo "$as_me: error: Kerberos detection failed" >&2;}
29415    { (exit 1); exit 1; }; }
29416 fi
29417
29418
29419 ol_link_tls=no
29420 if test $ol_with_tls != no ; then
29421
29422
29423 for ac_header in openssl/ssl.h ssl.h
29424 do
29425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29427   echo "$as_me:$LINENO: checking for $ac_header" >&5
29428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29430   echo $ECHO_N "(cached) $ECHO_C" >&6
29431 fi
29432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29434 else
29435   # Is the header compilable?
29436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29438 cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h.  */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h.  */
29444 $ac_includes_default
29445 #include <$ac_header>
29446 _ACEOF
29447 rm -f conftest.$ac_objext
29448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29449   (eval $ac_compile) 2>conftest.er1
29450   ac_status=$?
29451   grep -v '^ *+' conftest.er1 >conftest.err
29452   rm -f conftest.er1
29453   cat conftest.err >&5
29454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455   (exit $ac_status); } &&
29456          { ac_try='test -z "$ac_c_werror_flag"
29457                          || test ! -s conftest.err'
29458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459   (eval $ac_try) 2>&5
29460   ac_status=$?
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); }; } &&
29463          { ac_try='test -s conftest.$ac_objext'
29464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465   (eval $ac_try) 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); }; }; then
29469   ac_header_compiler=yes
29470 else
29471   echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29473
29474 ac_header_compiler=no
29475 fi
29476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29478 echo "${ECHO_T}$ac_header_compiler" >&6
29479
29480 # Is the header present?
29481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29483 cat >conftest.$ac_ext <<_ACEOF
29484 /* confdefs.h.  */
29485 _ACEOF
29486 cat confdefs.h >>conftest.$ac_ext
29487 cat >>conftest.$ac_ext <<_ACEOF
29488 /* end confdefs.h.  */
29489 #include <$ac_header>
29490 _ACEOF
29491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29493   ac_status=$?
29494   grep -v '^ *+' conftest.er1 >conftest.err
29495   rm -f conftest.er1
29496   cat conftest.err >&5
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); } >/dev/null; then
29499   if test -s conftest.err; then
29500     ac_cpp_err=$ac_c_preproc_warn_flag
29501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29502   else
29503     ac_cpp_err=
29504   fi
29505 else
29506   ac_cpp_err=yes
29507 fi
29508 if test -z "$ac_cpp_err"; then
29509   ac_header_preproc=yes
29510 else
29511   echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29513
29514   ac_header_preproc=no
29515 fi
29516 rm -f conftest.err conftest.$ac_ext
29517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29518 echo "${ECHO_T}$ac_header_preproc" >&6
29519
29520 # So?  What about this header?
29521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29522   yes:no: )
29523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29527     ac_header_preproc=yes
29528     ;;
29529   no:yes:* )
29530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29542     (
29543       cat <<\_ASBOX
29544 ## ------------------------------------------ ##
29545 ## Report this to the AC_PACKAGE_NAME lists.  ##
29546 ## ------------------------------------------ ##
29547 _ASBOX
29548     ) |
29549       sed "s/^/$as_me: WARNING:     /" >&2
29550     ;;
29551 esac
29552 echo "$as_me:$LINENO: checking for $ac_header" >&5
29553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29555   echo $ECHO_N "(cached) $ECHO_C" >&6
29556 else
29557   eval "$as_ac_Header=\$ac_header_preproc"
29558 fi
29559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29561
29562 fi
29563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29564   cat >>confdefs.h <<_ACEOF
29565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29566 _ACEOF
29567
29568 fi
29569
29570 done
29571
29572
29573         if test $ac_cv_header_openssl_ssl_h = yes \
29574                 -o $ac_cv_header_ssl_h = yes ; then
29575                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29576 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29577 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29578   echo $ECHO_N "(cached) $ECHO_C" >&6
29579 else
29580   ac_check_lib_save_LIBS=$LIBS
29581 LIBS="-lssl -lcrypto $LIBS"
29582 cat >conftest.$ac_ext <<_ACEOF
29583 /* confdefs.h.  */
29584 _ACEOF
29585 cat confdefs.h >>conftest.$ac_ext
29586 cat >>conftest.$ac_ext <<_ACEOF
29587 /* end confdefs.h.  */
29588
29589 /* Override any gcc2 internal prototype to avoid an error.  */
29590 #ifdef __cplusplus
29591 extern "C"
29592 #endif
29593 /* We use char because int might match the return type of a gcc2
29594    builtin and then its argument prototype would still apply.  */
29595 char SSLeay_add_ssl_algorithms ();
29596 int
29597 main ()
29598 {
29599 SSLeay_add_ssl_algorithms ();
29600   ;
29601   return 0;
29602 }
29603 _ACEOF
29604 rm -f conftest.$ac_objext conftest$ac_exeext
29605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29606   (eval $ac_link) 2>conftest.er1
29607   ac_status=$?
29608   grep -v '^ *+' conftest.er1 >conftest.err
29609   rm -f conftest.er1
29610   cat conftest.err >&5
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); } &&
29613          { ac_try='test -z "$ac_c_werror_flag"
29614                          || test ! -s conftest.err'
29615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616   (eval $ac_try) 2>&5
29617   ac_status=$?
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); }; } &&
29620          { ac_try='test -s conftest$ac_exeext'
29621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622   (eval $ac_try) 2>&5
29623   ac_status=$?
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); }; }; then
29626   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29627 else
29628   echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29632 fi
29633 rm -f conftest.err conftest.$ac_objext \
29634       conftest$ac_exeext conftest.$ac_ext
29635 LIBS=$ac_check_lib_save_LIBS
29636 fi
29637 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29638 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29639 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29640   have_ssleay=yes
29641                         need_rsaref=no
29642 else
29643   have_ssleay=no
29644 fi
29645
29646
29647                 if test $have_ssleay = no ; then
29648                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29649 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29650 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29651   echo $ECHO_N "(cached) $ECHO_C" >&6
29652 else
29653   ac_check_lib_save_LIBS=$LIBS
29654 LIBS="-lssl -lcrypto $LIBS"
29655 cat >conftest.$ac_ext <<_ACEOF
29656 /* confdefs.h.  */
29657 _ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h.  */
29661
29662 /* Override any gcc2 internal prototype to avoid an error.  */
29663 #ifdef __cplusplus
29664 extern "C"
29665 #endif
29666 /* We use char because int might match the return type of a gcc2
29667    builtin and then its argument prototype would still apply.  */
29668 char SSL_library_init ();
29669 int
29670 main ()
29671 {
29672 SSL_library_init ();
29673   ;
29674   return 0;
29675 }
29676 _ACEOF
29677 rm -f conftest.$ac_objext conftest$ac_exeext
29678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29679   (eval $ac_link) 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } &&
29686          { ac_try='test -z "$ac_c_werror_flag"
29687                          || test ! -s conftest.err'
29688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689   (eval $ac_try) 2>&5
29690   ac_status=$?
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); }; } &&
29693          { ac_try='test -s conftest$ac_exeext'
29694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695   (eval $ac_try) 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; }; then
29699   ac_cv_lib_ssl_SSL_library_init=yes
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704 ac_cv_lib_ssl_SSL_library_init=no
29705 fi
29706 rm -f conftest.err conftest.$ac_objext \
29707       conftest$ac_exeext conftest.$ac_ext
29708 LIBS=$ac_check_lib_save_LIBS
29709 fi
29710 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29711 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29712 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29713   have_ssleay=yes
29714                                 need_rsaref=no
29715 else
29716   have_ssleay=no
29717 fi
29718
29719                 fi
29720
29721                 if test $have_ssleay = no ; then
29722                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29723 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29724 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $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 ssl3_accept ();
29743 int
29744 main ()
29745 {
29746 ssl3_accept ();
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_ssl3_accept=yes
29774 else
29775   echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29777
29778 ac_cv_lib_ssl_ssl3_accept=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_ssl3_accept" >&5
29785 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29786 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29787   have_ssleay=yes
29788                                 need_rsaref=yes
29789 else
29790   have_ssleay=no
29791 fi
29792
29793                 fi
29794
29795                 if test $have_ssleay = yes ; then
29796                         ol_with_tls=found
29797                         ol_link_tls=yes
29798
29799
29800 cat >>confdefs.h <<\_ACEOF
29801 #define HAVE_SSLEAY 1
29802 _ACEOF
29803
29804
29805                         if test $need_rsaref = yes; then
29806
29807 cat >>confdefs.h <<\_ACEOF
29808 #define HAVE_RSAREF 1
29809 _ACEOF
29810
29811
29812                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29813                         else
29814                                 TLS_LIBS="-lssl -lcrypto"
29815                         fi
29816                 fi
29817                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29818 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29819 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29820   echo $ECHO_N "(cached) $ECHO_C" >&6
29821 else
29822
29823         cat >conftest.$ac_ext <<_ACEOF
29824 /* confdefs.h.  */
29825 _ACEOF
29826 cat confdefs.h >>conftest.$ac_ext
29827 cat >>conftest.$ac_ext <<_ACEOF
29828 /* end confdefs.h.  */
29829
29830 #ifdef HAVE_OPENSSL_SSL_H
29831 #include <openssl/ssl.h>
29832 #else
29833 #include <ssl.h>
29834 #endif
29835
29836 /* Require 0.9.7d+ */
29837 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29838         char *__ssl_compat = "0.9.7d";
29839 #endif
29840
29841 _ACEOF
29842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29843   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29844   ol_cv_ssl_crl_compat=yes
29845 else
29846   ol_cv_ssl_crl_compat=no
29847 fi
29848 rm -f conftest*
29849
29850 fi
29851 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29852 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29853
29854                 if test $ol_cv_ssl_crl_compat = no ; then
29855                         ol_link_ssl=no
29856                 else
29857
29858 cat >>confdefs.h <<\_ACEOF
29859 #define HAVE_OPENSSL_CRL 1
29860 _ACEOF
29861
29862                 fi
29863         fi
29864
29865 else
29866         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29867 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29868 fi
29869
29870 WITH_TLS=no
29871 if test $ol_link_tls = yes ; then
29872
29873 cat >>confdefs.h <<\_ACEOF
29874 #define HAVE_TLS 1
29875 _ACEOF
29876
29877         WITH_TLS=yes
29878
29879 elif test $ol_with_tls = auto ; then
29880         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29881 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29882         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29883 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29884
29885 elif test $ol_with_tls != no ; then
29886         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29887 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29888    { (exit 1); exit 1; }; }
29889 fi
29890
29891 if test $ol_enable_lmpasswd != no; then
29892         if test $ol_link_tls != yes ; then
29893                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29894 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29895    { (exit 1); exit 1; }; }
29896         fi
29897
29898
29899 cat >>confdefs.h <<\_ACEOF
29900 #define SLAPD_LMHASH 1
29901 _ACEOF
29902
29903 fi
29904
29905 ol_link_threads=no
29906
29907 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29908         -o $ol_with_threads = nt ; then
29909
29910
29911         echo "$as_me:$LINENO: checking for _beginthread" >&5
29912 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29913 if test "${ac_cv_func__beginthread+set}" = set; then
29914   echo $ECHO_N "(cached) $ECHO_C" >&6
29915 else
29916   cat >conftest.$ac_ext <<_ACEOF
29917 /* confdefs.h.  */
29918 _ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h.  */
29922 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29924 #define _beginthread innocuous__beginthread
29925
29926 /* System header to define __stub macros and hopefully few prototypes,
29927     which can conflict with char _beginthread (); below.
29928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29929     <limits.h> exists even on freestanding compilers.  */
29930
29931 #ifdef __STDC__
29932 # include <limits.h>
29933 #else
29934 # include <assert.h>
29935 #endif
29936
29937 #undef _beginthread
29938
29939 /* Override any gcc2 internal prototype to avoid an error.  */
29940 #ifdef __cplusplus
29941 extern "C"
29942 {
29943 #endif
29944 /* We use char because int might match the return type of a gcc2
29945    builtin and then its argument prototype would still apply.  */
29946 char _beginthread ();
29947 /* The GNU C library defines this for functions which it implements
29948     to always fail with ENOSYS.  Some functions are actually named
29949     something starting with __ and the normal name is an alias.  */
29950 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29951 choke me
29952 #else
29953 char (*f) () = _beginthread;
29954 #endif
29955 #ifdef __cplusplus
29956 }
29957 #endif
29958
29959 int
29960 main ()
29961 {
29962 return f != _beginthread;
29963   ;
29964   return 0;
29965 }
29966 _ACEOF
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969   (eval $ac_link) 2>conftest.er1
29970   ac_status=$?
29971   grep -v '^ *+' conftest.er1 >conftest.err
29972   rm -f conftest.er1
29973   cat conftest.err >&5
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); } &&
29976          { ac_try='test -z "$ac_c_werror_flag"
29977                          || test ! -s conftest.err'
29978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979   (eval $ac_try) 2>&5
29980   ac_status=$?
29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); }; } &&
29983          { ac_try='test -s conftest$ac_exeext'
29984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985   (eval $ac_try) 2>&5
29986   ac_status=$?
29987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988   (exit $ac_status); }; }; then
29989   ac_cv_func__beginthread=yes
29990 else
29991   echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29993
29994 ac_cv_func__beginthread=no
29995 fi
29996 rm -f conftest.err conftest.$ac_objext \
29997       conftest$ac_exeext conftest.$ac_ext
29998 fi
29999 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30000 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30001
30002
30003         if test $ac_cv_func__beginthread = yes ; then
30004
30005 cat >>confdefs.h <<\_ACEOF
30006 #define HAVE_NT_THREADS 1
30007 _ACEOF
30008
30009                 ol_cv_nt_threads=yes
30010         fi
30011
30012
30013         if test "$ol_cv_nt_threads" = yes ; then
30014                 ol_link_threads=nt
30015                 ol_with_threads=found
30016                 ol_with_yielding_select=yes
30017
30018
30019 cat >>confdefs.h <<\_ACEOF
30020 #define HAVE_NT_SERVICE_MANAGER 1
30021 _ACEOF
30022
30023
30024 cat >>confdefs.h <<\_ACEOF
30025 #define HAVE_NT_EVENT_LOG 1
30026 _ACEOF
30027
30028         fi
30029
30030         if test $ol_with_threads = nt ; then
30031                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30032 echo "$as_me: error: could not locate NT Threads" >&2;}
30033    { (exit 1); exit 1; }; }
30034         fi
30035 fi
30036
30037 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30038         -o $ol_with_threads = posix ; then
30039
30040
30041 for ac_header in pthread.h
30042 do
30043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30045   echo "$as_me:$LINENO: checking for $ac_header" >&5
30046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30048   echo $ECHO_N "(cached) $ECHO_C" >&6
30049 fi
30050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30052 else
30053   # Is the header compilable?
30054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30056 cat >conftest.$ac_ext <<_ACEOF
30057 /* confdefs.h.  */
30058 _ACEOF
30059 cat confdefs.h >>conftest.$ac_ext
30060 cat >>conftest.$ac_ext <<_ACEOF
30061 /* end confdefs.h.  */
30062 $ac_includes_default
30063 #include <$ac_header>
30064 _ACEOF
30065 rm -f conftest.$ac_objext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30067   (eval $ac_compile) 2>conftest.er1
30068   ac_status=$?
30069   grep -v '^ *+' conftest.er1 >conftest.err
30070   rm -f conftest.er1
30071   cat conftest.err >&5
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); } &&
30074          { ac_try='test -z "$ac_c_werror_flag"
30075                          || test ! -s conftest.err'
30076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30077   (eval $ac_try) 2>&5
30078   ac_status=$?
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); }; } &&
30081          { ac_try='test -s conftest.$ac_objext'
30082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083   (eval $ac_try) 2>&5
30084   ac_status=$?
30085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086   (exit $ac_status); }; }; then
30087   ac_header_compiler=yes
30088 else
30089   echo "$as_me: failed program was:" >&5
30090 sed 's/^/| /' conftest.$ac_ext >&5
30091
30092 ac_header_compiler=no
30093 fi
30094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30096 echo "${ECHO_T}$ac_header_compiler" >&6
30097
30098 # Is the header present?
30099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30101 cat >conftest.$ac_ext <<_ACEOF
30102 /* confdefs.h.  */
30103 _ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h.  */
30107 #include <$ac_header>
30108 _ACEOF
30109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30111   ac_status=$?
30112   grep -v '^ *+' conftest.er1 >conftest.err
30113   rm -f conftest.er1
30114   cat conftest.err >&5
30115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); } >/dev/null; then
30117   if test -s conftest.err; then
30118     ac_cpp_err=$ac_c_preproc_warn_flag
30119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30120   else
30121     ac_cpp_err=
30122   fi
30123 else
30124   ac_cpp_err=yes
30125 fi
30126 if test -z "$ac_cpp_err"; then
30127   ac_header_preproc=yes
30128 else
30129   echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30131
30132   ac_header_preproc=no
30133 fi
30134 rm -f conftest.err conftest.$ac_ext
30135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30136 echo "${ECHO_T}$ac_header_preproc" >&6
30137
30138 # So?  What about this header?
30139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30140   yes:no: )
30141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30145     ac_header_preproc=yes
30146     ;;
30147   no:yes:* )
30148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30160     (
30161       cat <<\_ASBOX
30162 ## ------------------------------------------ ##
30163 ## Report this to the AC_PACKAGE_NAME lists.  ##
30164 ## ------------------------------------------ ##
30165 _ASBOX
30166     ) |
30167       sed "s/^/$as_me: WARNING:     /" >&2
30168     ;;
30169 esac
30170 echo "$as_me:$LINENO: checking for $ac_header" >&5
30171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30173   echo $ECHO_N "(cached) $ECHO_C" >&6
30174 else
30175   eval "$as_ac_Header=\$ac_header_preproc"
30176 fi
30177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30179
30180 fi
30181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30182   cat >>confdefs.h <<_ACEOF
30183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30184 _ACEOF
30185
30186 fi
30187
30188 done
30189
30190
30191         if test $ac_cv_header_pthread_h = yes ; then
30192                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30193 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30194 if test "${ol_cv_pthread_version+set}" = set; then
30195   echo $ECHO_N "(cached) $ECHO_C" >&6
30196 else
30197
30198         cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h.  */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h.  */
30204
30205 #               include <pthread.h>
30206
30207 int
30208 main ()
30209 {
30210
30211                 int i = PTHREAD_CREATE_JOINABLE;
30212
30213   ;
30214   return 0;
30215 }
30216 _ACEOF
30217 rm -f conftest.$ac_objext
30218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30219   (eval $ac_compile) 2>conftest.er1
30220   ac_status=$?
30221   grep -v '^ *+' conftest.er1 >conftest.err
30222   rm -f conftest.er1
30223   cat conftest.err >&5
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); } &&
30226          { ac_try='test -z "$ac_c_werror_flag"
30227                          || test ! -s conftest.err'
30228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229   (eval $ac_try) 2>&5
30230   ac_status=$?
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); }; } &&
30233          { ac_try='test -s conftest.$ac_objext'
30234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235   (eval $ac_try) 2>&5
30236   ac_status=$?
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); }; }; then
30239
30240         cat >conftest.$ac_ext <<_ACEOF
30241 /* confdefs.h.  */
30242 _ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h.  */
30246 #include <pthread.h>
30247
30248 _ACEOF
30249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30250   $EGREP "pthread_detach" >/dev/null 2>&1; then
30251   ol_cv_pthread_version=10
30252 else
30253   ol_cv_pthread_version=8
30254 fi
30255 rm -f conftest*
30256
30257 else
30258   echo "$as_me: failed program was:" >&5
30259 sed 's/^/| /' conftest.$ac_ext >&5
30260
30261
30262         cat >conftest.$ac_ext <<_ACEOF
30263 /* confdefs.h.  */
30264 _ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h.  */
30268
30269 #               include <pthread.h>
30270 #               ifdef PTHREAD_CREATE_UNDETACHED
30271                 draft7
30272 #               endif
30273
30274 _ACEOF
30275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30276   $EGREP "draft7" >/dev/null 2>&1; then
30277   ol_cv_pthread_version=7
30278 else
30279
30280         cat >conftest.$ac_ext <<_ACEOF
30281 /* confdefs.h.  */
30282 _ACEOF
30283 cat confdefs.h >>conftest.$ac_ext
30284 cat >>conftest.$ac_ext <<_ACEOF
30285 /* end confdefs.h.  */
30286 #include <pthread.h>
30287
30288 _ACEOF
30289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30290   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30291   ol_cv_pthread_version=6
30292 else
30293
30294         cat >conftest.$ac_ext <<_ACEOF
30295 /* confdefs.h.  */
30296 _ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h.  */
30300
30301 #               include <pthread.h>
30302 #ifdef          PTHREAD_MUTEX_INITIALIZER
30303                 draft5
30304 #endif
30305
30306 _ACEOF
30307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30308   $EGREP "draft5" >/dev/null 2>&1; then
30309   ol_cv_pthread_version=5
30310 else
30311   ol_cv_pthread_version=4
30312 fi
30313 rm -f conftest*
30314
30315 fi
30316 rm -f conftest*
30317
30318 fi
30319 rm -f conftest*
30320
30321 fi
30322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30323
30324 fi
30325 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30326 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30327
30328
30329                 if test $ol_cv_pthread_version != 0 ; then
30330
30331 cat >>confdefs.h <<_ACEOF
30332 #define HAVE_PTHREADS $ol_cv_pthread_version
30333 _ACEOF
30334
30335                 else
30336                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30337 echo "$as_me: error: unknown pthread version" >&2;}
30338    { (exit 1); exit 1; }; }
30339                 fi
30340
30341                 # consider threads found
30342                 ol_with_threads=found
30343
30344
30345         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30346 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30347 if test "${ol_cv_header_linux_threads+set}" = set; then
30348   echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350   cat >conftest.$ac_ext <<_ACEOF
30351 /* confdefs.h.  */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h.  */
30356 #include <pthread.h>
30357 _ACEOF
30358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30359   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30360   ol_cv_header_linux_threads=yes
30361 else
30362   ol_cv_header_linux_threads=no
30363 fi
30364 rm -f conftest*
30365
30366
30367 fi
30368 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30369 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30370         if test $ol_cv_header_linux_threads = yes; then
30371
30372 cat >>confdefs.h <<\_ACEOF
30373 #define HAVE_LINUX_THREADS 1
30374 _ACEOF
30375
30376         fi
30377
30378
30379         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30380 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30381 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30382   echo $ECHO_N "(cached) $ECHO_C" >&6
30383 else
30384   cat >conftest.$ac_ext <<_ACEOF
30385 /* confdefs.h.  */
30386 _ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h.  */
30390 #include <pthread.h>
30391 #ifdef _POSIX_THREAD_IS_GNU_PTH
30392         __gnu_pth__;
30393 #endif
30394
30395 _ACEOF
30396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30397   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30398   ol_cv_header_gnu_pth_pthread_h=yes
30399 else
30400   ol_cv_header_gnu_pth_pthread_h=no
30401 fi
30402 rm -f conftest*
30403
30404
30405 fi
30406 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30407 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30408
30409
30410                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30411
30412 for ac_header in sched.h
30413 do
30414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30416   echo "$as_me:$LINENO: checking for $ac_header" >&5
30417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30419   echo $ECHO_N "(cached) $ECHO_C" >&6
30420 fi
30421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30423 else
30424   # Is the header compilable?
30425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30427 cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h.  */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h.  */
30433 $ac_includes_default
30434 #include <$ac_header>
30435 _ACEOF
30436 rm -f conftest.$ac_objext
30437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30438   (eval $ac_compile) 2>conftest.er1
30439   ac_status=$?
30440   grep -v '^ *+' conftest.er1 >conftest.err
30441   rm -f conftest.er1
30442   cat conftest.err >&5
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); } &&
30445          { ac_try='test -z "$ac_c_werror_flag"
30446                          || test ! -s conftest.err'
30447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448   (eval $ac_try) 2>&5
30449   ac_status=$?
30450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451   (exit $ac_status); }; } &&
30452          { ac_try='test -s conftest.$ac_objext'
30453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454   (eval $ac_try) 2>&5
30455   ac_status=$?
30456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457   (exit $ac_status); }; }; then
30458   ac_header_compiler=yes
30459 else
30460   echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.$ac_ext >&5
30462
30463 ac_header_compiler=no
30464 fi
30465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30467 echo "${ECHO_T}$ac_header_compiler" >&6
30468
30469 # Is the header present?
30470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30472 cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h.  */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h.  */
30478 #include <$ac_header>
30479 _ACEOF
30480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30482   ac_status=$?
30483   grep -v '^ *+' conftest.er1 >conftest.err
30484   rm -f conftest.er1
30485   cat conftest.err >&5
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); } >/dev/null; then
30488   if test -s conftest.err; then
30489     ac_cpp_err=$ac_c_preproc_warn_flag
30490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30491   else
30492     ac_cpp_err=
30493   fi
30494 else
30495   ac_cpp_err=yes
30496 fi
30497 if test -z "$ac_cpp_err"; then
30498   ac_header_preproc=yes
30499 else
30500   echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30502
30503   ac_header_preproc=no
30504 fi
30505 rm -f conftest.err conftest.$ac_ext
30506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30507 echo "${ECHO_T}$ac_header_preproc" >&6
30508
30509 # So?  What about this header?
30510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30511   yes:no: )
30512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30516     ac_header_preproc=yes
30517     ;;
30518   no:yes:* )
30519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30531     (
30532       cat <<\_ASBOX
30533 ## ------------------------------------------ ##
30534 ## Report this to the AC_PACKAGE_NAME lists.  ##
30535 ## ------------------------------------------ ##
30536 _ASBOX
30537     ) |
30538       sed "s/^/$as_me: WARNING:     /" >&2
30539     ;;
30540 esac
30541 echo "$as_me:$LINENO: checking for $ac_header" >&5
30542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30544   echo $ECHO_N "(cached) $ECHO_C" >&6
30545 else
30546   eval "$as_ac_Header=\$ac_header_preproc"
30547 fi
30548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30550
30551 fi
30552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30553   cat >>confdefs.h <<_ACEOF
30554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30555 _ACEOF
30556
30557 fi
30558
30559 done
30560
30561                 fi
30562
30563
30564                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30565 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30566 if test "${ol_cv_pthread_create+set}" = set; then
30567   echo $ECHO_N "(cached) $ECHO_C" >&6
30568 else
30569
30570                         if test "$cross_compiling" = yes; then
30571   cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577
30578 /* pthread test headers */
30579 #include <pthread.h>
30580 #if HAVE_PTHREADS < 7
30581 #include <errno.h>
30582 #endif
30583 #ifndef NULL
30584 #define NULL (void*)0
30585 #endif
30586
30587 static void *task(p)
30588         void *p;
30589 {
30590         return (void *) (p == NULL);
30591 }
30592
30593 int
30594 main ()
30595 {
30596
30597         /* pthread test function */
30598 #ifndef PTHREAD_CREATE_DETACHED
30599 #define PTHREAD_CREATE_DETACHED 1
30600 #endif
30601         pthread_t t;
30602         int status;
30603         int detach = PTHREAD_CREATE_DETACHED;
30604
30605 #if HAVE_PTHREADS > 4
30606         /* Final pthreads */
30607         pthread_attr_t attr;
30608
30609         status = pthread_attr_init(&attr);
30610         if( status ) return status;
30611
30612 #if HAVE_PTHREADS < 7
30613         status = pthread_attr_setdetachstate(&attr, &detach);
30614         if( status < 0 ) status = errno;
30615 #else
30616         status = pthread_attr_setdetachstate(&attr, detach);
30617 #endif
30618         if( status ) return status;
30619         status = pthread_create( &t, &attr, task, NULL );
30620 #if HAVE_PTHREADS < 7
30621         if( status < 0 ) status = errno;
30622 #endif
30623         if( status ) return status;
30624 #else
30625         /* Draft 4 pthreads */
30626         status = pthread_create( &t, pthread_attr_default, task, NULL );
30627         if( status ) return errno;
30628
30629         /* give thread a chance to complete */
30630         /* it should remain joinable and hence detachable */
30631         sleep( 1 );
30632
30633         status = pthread_detach( &t );
30634         if( status ) return errno;
30635 #endif
30636
30637 #ifdef HAVE_LINUX_THREADS
30638         pthread_kill_other_threads_np();
30639 #endif
30640
30641         return 0;
30642
30643   ;
30644   return 0;
30645 }
30646 _ACEOF
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30649   (eval $ac_link) 2>conftest.er1
30650   ac_status=$?
30651   grep -v '^ *+' conftest.er1 >conftest.err
30652   rm -f conftest.er1
30653   cat conftest.err >&5
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); } &&
30656          { ac_try='test -z "$ac_c_werror_flag"
30657                          || test ! -s conftest.err'
30658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659   (eval $ac_try) 2>&5
30660   ac_status=$?
30661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662   (exit $ac_status); }; } &&
30663          { ac_try='test -s conftest$ac_exeext'
30664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665   (eval $ac_try) 2>&5
30666   ac_status=$?
30667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); }; }; then
30669   ol_cv_pthread_create=yes
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674 ol_cv_pthread_create=no
30675 fi
30676 rm -f conftest.err conftest.$ac_objext \
30677       conftest$ac_exeext conftest.$ac_ext
30678 else
30679   cat >conftest.$ac_ext <<_ACEOF
30680 /* confdefs.h.  */
30681 _ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h.  */
30685
30686 /* pthread test headers */
30687 #include <pthread.h>
30688 #if HAVE_PTHREADS < 7
30689 #include <errno.h>
30690 #endif
30691 #ifndef NULL
30692 #define NULL (void*)0
30693 #endif
30694
30695 static void *task(p)
30696         void *p;
30697 {
30698         return (void *) (p == NULL);
30699 }
30700
30701
30702 int main(argc, argv)
30703         int argc;
30704         char **argv;
30705 {
30706
30707         /* pthread test function */
30708 #ifndef PTHREAD_CREATE_DETACHED
30709 #define PTHREAD_CREATE_DETACHED 1
30710 #endif
30711         pthread_t t;
30712         int status;
30713         int detach = PTHREAD_CREATE_DETACHED;
30714
30715 #if HAVE_PTHREADS > 4
30716         /* Final pthreads */
30717         pthread_attr_t attr;
30718
30719         status = pthread_attr_init(&attr);
30720         if( status ) return status;
30721
30722 #if HAVE_PTHREADS < 7
30723         status = pthread_attr_setdetachstate(&attr, &detach);
30724         if( status < 0 ) status = errno;
30725 #else
30726         status = pthread_attr_setdetachstate(&attr, detach);
30727 #endif
30728         if( status ) return status;
30729         status = pthread_create( &t, &attr, task, NULL );
30730 #if HAVE_PTHREADS < 7
30731         if( status < 0 ) status = errno;
30732 #endif
30733         if( status ) return status;
30734 #else
30735         /* Draft 4 pthreads */
30736         status = pthread_create( &t, pthread_attr_default, task, NULL );
30737         if( status ) return errno;
30738
30739         /* give thread a chance to complete */
30740         /* it should remain joinable and hence detachable */
30741         sleep( 1 );
30742
30743         status = pthread_detach( &t );
30744         if( status ) return errno;
30745 #endif
30746
30747 #ifdef HAVE_LINUX_THREADS
30748         pthread_kill_other_threads_np();
30749 #endif
30750
30751         return 0;
30752
30753 }
30754
30755 _ACEOF
30756 rm -f conftest$ac_exeext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30758   (eval $ac_link) 2>&5
30759   ac_status=$?
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30763   (eval $ac_try) 2>&5
30764   ac_status=$?
30765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766   (exit $ac_status); }; }; then
30767   ol_cv_pthread_create=yes
30768 else
30769   echo "$as_me: program exited with status $ac_status" >&5
30770 echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30772
30773 ( exit $ac_status )
30774 ol_cv_pthread_create=no
30775 fi
30776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30777 fi
30778 fi
30779 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30780 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30781
30782                 if test $ol_cv_pthread_create != no ; then
30783                         ol_link_threads=posix
30784                         ol_link_pthreads=""
30785                 fi
30786
30787                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30788 if test "$ol_link_threads" = no ; then
30789         # try -kthread
30790         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30791 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30792 if test "${ol_cv_pthread_kthread+set}" = set; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795
30796                 # save the flags
30797                 ol_LIBS="$LIBS"
30798                 LIBS="-kthread $LIBS"
30799
30800                 if test "$cross_compiling" = yes; then
30801   cat >conftest.$ac_ext <<_ACEOF
30802 /* confdefs.h.  */
30803 _ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h.  */
30807
30808 /* pthread test headers */
30809 #include <pthread.h>
30810 #if HAVE_PTHREADS < 7
30811 #include <errno.h>
30812 #endif
30813 #ifndef NULL
30814 #define NULL (void*)0
30815 #endif
30816
30817 static void *task(p)
30818         void *p;
30819 {
30820         return (void *) (p == NULL);
30821 }
30822
30823 int
30824 main ()
30825 {
30826
30827         /* pthread test function */
30828 #ifndef PTHREAD_CREATE_DETACHED
30829 #define PTHREAD_CREATE_DETACHED 1
30830 #endif
30831         pthread_t t;
30832         int status;
30833         int detach = PTHREAD_CREATE_DETACHED;
30834
30835 #if HAVE_PTHREADS > 4
30836         /* Final pthreads */
30837         pthread_attr_t attr;
30838
30839         status = pthread_attr_init(&attr);
30840         if( status ) return status;
30841
30842 #if HAVE_PTHREADS < 7
30843         status = pthread_attr_setdetachstate(&attr, &detach);
30844         if( status < 0 ) status = errno;
30845 #else
30846         status = pthread_attr_setdetachstate(&attr, detach);
30847 #endif
30848         if( status ) return status;
30849         status = pthread_create( &t, &attr, task, NULL );
30850 #if HAVE_PTHREADS < 7
30851         if( status < 0 ) status = errno;
30852 #endif
30853         if( status ) return status;
30854 #else
30855         /* Draft 4 pthreads */
30856         status = pthread_create( &t, pthread_attr_default, task, NULL );
30857         if( status ) return errno;
30858
30859         /* give thread a chance to complete */
30860         /* it should remain joinable and hence detachable */
30861         sleep( 1 );
30862
30863         status = pthread_detach( &t );
30864         if( status ) return errno;
30865 #endif
30866
30867 #ifdef HAVE_LINUX_THREADS
30868         pthread_kill_other_threads_np();
30869 #endif
30870
30871         return 0;
30872
30873   ;
30874   return 0;
30875 }
30876 _ACEOF
30877 rm -f conftest.$ac_objext conftest$ac_exeext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30879   (eval $ac_link) 2>conftest.er1
30880   ac_status=$?
30881   grep -v '^ *+' conftest.er1 >conftest.err
30882   rm -f conftest.er1
30883   cat conftest.err >&5
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); } &&
30886          { ac_try='test -z "$ac_c_werror_flag"
30887                          || test ! -s conftest.err'
30888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889   (eval $ac_try) 2>&5
30890   ac_status=$?
30891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892   (exit $ac_status); }; } &&
30893          { ac_try='test -s conftest$ac_exeext'
30894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895   (eval $ac_try) 2>&5
30896   ac_status=$?
30897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898   (exit $ac_status); }; }; then
30899   ol_cv_pthread_kthread=yes
30900 else
30901   echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30903
30904 ol_cv_pthread_kthread=no
30905 fi
30906 rm -f conftest.err conftest.$ac_objext \
30907       conftest$ac_exeext conftest.$ac_ext
30908 else
30909   cat >conftest.$ac_ext <<_ACEOF
30910 /* confdefs.h.  */
30911 _ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h.  */
30915
30916 /* pthread test headers */
30917 #include <pthread.h>
30918 #if HAVE_PTHREADS < 7
30919 #include <errno.h>
30920 #endif
30921 #ifndef NULL
30922 #define NULL (void*)0
30923 #endif
30924
30925 static void *task(p)
30926         void *p;
30927 {
30928         return (void *) (p == NULL);
30929 }
30930
30931
30932 int main(argc, argv)
30933         int argc;
30934         char **argv;
30935 {
30936
30937         /* pthread test function */
30938 #ifndef PTHREAD_CREATE_DETACHED
30939 #define PTHREAD_CREATE_DETACHED 1
30940 #endif
30941         pthread_t t;
30942         int status;
30943         int detach = PTHREAD_CREATE_DETACHED;
30944
30945 #if HAVE_PTHREADS > 4
30946         /* Final pthreads */
30947         pthread_attr_t attr;
30948
30949         status = pthread_attr_init(&attr);
30950         if( status ) return status;
30951
30952 #if HAVE_PTHREADS < 7
30953         status = pthread_attr_setdetachstate(&attr, &detach);
30954         if( status < 0 ) status = errno;
30955 #else
30956         status = pthread_attr_setdetachstate(&attr, detach);
30957 #endif
30958         if( status ) return status;
30959         status = pthread_create( &t, &attr, task, NULL );
30960 #if HAVE_PTHREADS < 7
30961         if( status < 0 ) status = errno;
30962 #endif
30963         if( status ) return status;
30964 #else
30965         /* Draft 4 pthreads */
30966         status = pthread_create( &t, pthread_attr_default, task, NULL );
30967         if( status ) return errno;
30968
30969         /* give thread a chance to complete */
30970         /* it should remain joinable and hence detachable */
30971         sleep( 1 );
30972
30973         status = pthread_detach( &t );
30974         if( status ) return errno;
30975 #endif
30976
30977 #ifdef HAVE_LINUX_THREADS
30978         pthread_kill_other_threads_np();
30979 #endif
30980
30981         return 0;
30982
30983 }
30984
30985 _ACEOF
30986 rm -f conftest$ac_exeext
30987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30988   (eval $ac_link) 2>&5
30989   ac_status=$?
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993   (eval $ac_try) 2>&5
30994   ac_status=$?
30995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); }; }; then
30997   ol_cv_pthread_kthread=yes
30998 else
30999   echo "$as_me: program exited with status $ac_status" >&5
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31002
31003 ( exit $ac_status )
31004 ol_cv_pthread_kthread=no
31005 fi
31006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31007 fi
31008
31009                 # restore the LIBS
31010                 LIBS="$ol_LIBS"
31011
31012 fi
31013 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31014 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31015
31016         if test $ol_cv_pthread_kthread = yes ; then
31017                 ol_link_pthreads="-kthread"
31018                 ol_link_threads=posix
31019         fi
31020 fi
31021
31022                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31023 if test "$ol_link_threads" = no ; then
31024         # try -pthread
31025         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31026 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31027 if test "${ol_cv_pthread_pthread+set}" = set; then
31028   echo $ECHO_N "(cached) $ECHO_C" >&6
31029 else
31030
31031                 # save the flags
31032                 ol_LIBS="$LIBS"
31033                 LIBS="-pthread $LIBS"
31034
31035                 if test "$cross_compiling" = yes; then
31036   cat >conftest.$ac_ext <<_ACEOF
31037 /* confdefs.h.  */
31038 _ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h.  */
31042
31043 /* pthread test headers */
31044 #include <pthread.h>
31045 #if HAVE_PTHREADS < 7
31046 #include <errno.h>
31047 #endif
31048 #ifndef NULL
31049 #define NULL (void*)0
31050 #endif
31051
31052 static void *task(p)
31053         void *p;
31054 {
31055         return (void *) (p == NULL);
31056 }
31057
31058 int
31059 main ()
31060 {
31061
31062         /* pthread test function */
31063 #ifndef PTHREAD_CREATE_DETACHED
31064 #define PTHREAD_CREATE_DETACHED 1
31065 #endif
31066         pthread_t t;
31067         int status;
31068         int detach = PTHREAD_CREATE_DETACHED;
31069
31070 #if HAVE_PTHREADS > 4
31071         /* Final pthreads */
31072         pthread_attr_t attr;
31073
31074         status = pthread_attr_init(&attr);
31075         if( status ) return status;
31076
31077 #if HAVE_PTHREADS < 7
31078         status = pthread_attr_setdetachstate(&attr, &detach);
31079         if( status < 0 ) status = errno;
31080 #else
31081         status = pthread_attr_setdetachstate(&attr, detach);
31082 #endif
31083         if( status ) return status;
31084         status = pthread_create( &t, &attr, task, NULL );
31085 #if HAVE_PTHREADS < 7
31086         if( status < 0 ) status = errno;
31087 #endif
31088         if( status ) return status;
31089 #else
31090         /* Draft 4 pthreads */
31091         status = pthread_create( &t, pthread_attr_default, task, NULL );
31092         if( status ) return errno;
31093
31094         /* give thread a chance to complete */
31095         /* it should remain joinable and hence detachable */
31096         sleep( 1 );
31097
31098         status = pthread_detach( &t );
31099         if( status ) return errno;
31100 #endif
31101
31102 #ifdef HAVE_LINUX_THREADS
31103         pthread_kill_other_threads_np();
31104 #endif
31105
31106         return 0;
31107
31108   ;
31109   return 0;
31110 }
31111 _ACEOF
31112 rm -f conftest.$ac_objext conftest$ac_exeext
31113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31114   (eval $ac_link) 2>conftest.er1
31115   ac_status=$?
31116   grep -v '^ *+' conftest.er1 >conftest.err
31117   rm -f conftest.er1
31118   cat conftest.err >&5
31119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120   (exit $ac_status); } &&
31121          { ac_try='test -z "$ac_c_werror_flag"
31122                          || test ! -s conftest.err'
31123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124   (eval $ac_try) 2>&5
31125   ac_status=$?
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); }; } &&
31128          { ac_try='test -s conftest$ac_exeext'
31129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130   (eval $ac_try) 2>&5
31131   ac_status=$?
31132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133   (exit $ac_status); }; }; then
31134   ol_cv_pthread_pthread=yes
31135 else
31136   echo "$as_me: failed program was:" >&5
31137 sed 's/^/| /' conftest.$ac_ext >&5
31138
31139 ol_cv_pthread_pthread=no
31140 fi
31141 rm -f conftest.err conftest.$ac_objext \
31142       conftest$ac_exeext conftest.$ac_ext
31143 else
31144   cat >conftest.$ac_ext <<_ACEOF
31145 /* confdefs.h.  */
31146 _ACEOF
31147 cat confdefs.h >>conftest.$ac_ext
31148 cat >>conftest.$ac_ext <<_ACEOF
31149 /* end confdefs.h.  */
31150
31151 /* pthread test headers */
31152 #include <pthread.h>
31153 #if HAVE_PTHREADS < 7
31154 #include <errno.h>
31155 #endif
31156 #ifndef NULL
31157 #define NULL (void*)0
31158 #endif
31159
31160 static void *task(p)
31161         void *p;
31162 {
31163         return (void *) (p == NULL);
31164 }
31165
31166
31167 int main(argc, argv)
31168         int argc;
31169         char **argv;
31170 {
31171
31172         /* pthread test function */
31173 #ifndef PTHREAD_CREATE_DETACHED
31174 #define PTHREAD_CREATE_DETACHED 1
31175 #endif
31176         pthread_t t;
31177         int status;
31178         int detach = PTHREAD_CREATE_DETACHED;
31179
31180 #if HAVE_PTHREADS > 4
31181         /* Final pthreads */
31182         pthread_attr_t attr;
31183
31184         status = pthread_attr_init(&attr);
31185         if( status ) return status;
31186
31187 #if HAVE_PTHREADS < 7
31188         status = pthread_attr_setdetachstate(&attr, &detach);
31189         if( status < 0 ) status = errno;
31190 #else
31191         status = pthread_attr_setdetachstate(&attr, detach);
31192 #endif
31193         if( status ) return status;
31194         status = pthread_create( &t, &attr, task, NULL );
31195 #if HAVE_PTHREADS < 7
31196         if( status < 0 ) status = errno;
31197 #endif
31198         if( status ) return status;
31199 #else
31200         /* Draft 4 pthreads */
31201         status = pthread_create( &t, pthread_attr_default, task, NULL );
31202         if( status ) return errno;
31203
31204         /* give thread a chance to complete */
31205         /* it should remain joinable and hence detachable */
31206         sleep( 1 );
31207
31208         status = pthread_detach( &t );
31209         if( status ) return errno;
31210 #endif
31211
31212 #ifdef HAVE_LINUX_THREADS
31213         pthread_kill_other_threads_np();
31214 #endif
31215
31216         return 0;
31217
31218 }
31219
31220 _ACEOF
31221 rm -f conftest$ac_exeext
31222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31223   (eval $ac_link) 2>&5
31224   ac_status=$?
31225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31228   (eval $ac_try) 2>&5
31229   ac_status=$?
31230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231   (exit $ac_status); }; }; then
31232   ol_cv_pthread_pthread=yes
31233 else
31234   echo "$as_me: program exited with status $ac_status" >&5
31235 echo "$as_me: failed program was:" >&5
31236 sed 's/^/| /' conftest.$ac_ext >&5
31237
31238 ( exit $ac_status )
31239 ol_cv_pthread_pthread=no
31240 fi
31241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31242 fi
31243
31244                 # restore the LIBS
31245                 LIBS="$ol_LIBS"
31246
31247 fi
31248 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31249 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31250
31251         if test $ol_cv_pthread_pthread = yes ; then
31252                 ol_link_pthreads="-pthread"
31253                 ol_link_threads=posix
31254         fi
31255 fi
31256
31257                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31258 if test "$ol_link_threads" = no ; then
31259         # try -pthreads
31260         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31261 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31262 if test "${ol_cv_pthread_pthreads+set}" = set; then
31263   echo $ECHO_N "(cached) $ECHO_C" >&6
31264 else
31265
31266                 # save the flags
31267                 ol_LIBS="$LIBS"
31268                 LIBS="-pthreads $LIBS"
31269
31270                 if test "$cross_compiling" = yes; then
31271   cat >conftest.$ac_ext <<_ACEOF
31272 /* confdefs.h.  */
31273 _ACEOF
31274 cat confdefs.h >>conftest.$ac_ext
31275 cat >>conftest.$ac_ext <<_ACEOF
31276 /* end confdefs.h.  */
31277
31278 /* pthread test headers */
31279 #include <pthread.h>
31280 #if HAVE_PTHREADS < 7
31281 #include <errno.h>
31282 #endif
31283 #ifndef NULL
31284 #define NULL (void*)0
31285 #endif
31286
31287 static void *task(p)
31288         void *p;
31289 {
31290         return (void *) (p == NULL);
31291 }
31292
31293 int
31294 main ()
31295 {
31296
31297         /* pthread test function */
31298 #ifndef PTHREAD_CREATE_DETACHED
31299 #define PTHREAD_CREATE_DETACHED 1
31300 #endif
31301         pthread_t t;
31302         int status;
31303         int detach = PTHREAD_CREATE_DETACHED;
31304
31305 #if HAVE_PTHREADS > 4
31306         /* Final pthreads */
31307         pthread_attr_t attr;
31308
31309         status = pthread_attr_init(&attr);
31310         if( status ) return status;
31311
31312 #if HAVE_PTHREADS < 7
31313         status = pthread_attr_setdetachstate(&attr, &detach);
31314         if( status < 0 ) status = errno;
31315 #else
31316         status = pthread_attr_setdetachstate(&attr, detach);
31317 #endif
31318         if( status ) return status;
31319         status = pthread_create( &t, &attr, task, NULL );
31320 #if HAVE_PTHREADS < 7
31321         if( status < 0 ) status = errno;
31322 #endif
31323         if( status ) return status;
31324 #else
31325         /* Draft 4 pthreads */
31326         status = pthread_create( &t, pthread_attr_default, task, NULL );
31327         if( status ) return errno;
31328
31329         /* give thread a chance to complete */
31330         /* it should remain joinable and hence detachable */
31331         sleep( 1 );
31332
31333         status = pthread_detach( &t );
31334         if( status ) return errno;
31335 #endif
31336
31337 #ifdef HAVE_LINUX_THREADS
31338         pthread_kill_other_threads_np();
31339 #endif
31340
31341         return 0;
31342
31343   ;
31344   return 0;
31345 }
31346 _ACEOF
31347 rm -f conftest.$ac_objext conftest$ac_exeext
31348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31349   (eval $ac_link) 2>conftest.er1
31350   ac_status=$?
31351   grep -v '^ *+' conftest.er1 >conftest.err
31352   rm -f conftest.er1
31353   cat conftest.err >&5
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); } &&
31356          { ac_try='test -z "$ac_c_werror_flag"
31357                          || test ! -s conftest.err'
31358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359   (eval $ac_try) 2>&5
31360   ac_status=$?
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); }; } &&
31363          { ac_try='test -s conftest$ac_exeext'
31364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365   (eval $ac_try) 2>&5
31366   ac_status=$?
31367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368   (exit $ac_status); }; }; then
31369   ol_cv_pthread_pthreads=yes
31370 else
31371   echo "$as_me: failed program was:" >&5
31372 sed 's/^/| /' conftest.$ac_ext >&5
31373
31374 ol_cv_pthread_pthreads=no
31375 fi
31376 rm -f conftest.err conftest.$ac_objext \
31377       conftest$ac_exeext conftest.$ac_ext
31378 else
31379   cat >conftest.$ac_ext <<_ACEOF
31380 /* confdefs.h.  */
31381 _ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h.  */
31385
31386 /* pthread test headers */
31387 #include <pthread.h>
31388 #if HAVE_PTHREADS < 7
31389 #include <errno.h>
31390 #endif
31391 #ifndef NULL
31392 #define NULL (void*)0
31393 #endif
31394
31395 static void *task(p)
31396         void *p;
31397 {
31398         return (void *) (p == NULL);
31399 }
31400
31401
31402 int main(argc, argv)
31403         int argc;
31404         char **argv;
31405 {
31406
31407         /* pthread test function */
31408 #ifndef PTHREAD_CREATE_DETACHED
31409 #define PTHREAD_CREATE_DETACHED 1
31410 #endif
31411         pthread_t t;
31412         int status;
31413         int detach = PTHREAD_CREATE_DETACHED;
31414
31415 #if HAVE_PTHREADS > 4
31416         /* Final pthreads */
31417         pthread_attr_t attr;
31418
31419         status = pthread_attr_init(&attr);
31420         if( status ) return status;
31421
31422 #if HAVE_PTHREADS < 7
31423         status = pthread_attr_setdetachstate(&attr, &detach);
31424         if( status < 0 ) status = errno;
31425 #else
31426         status = pthread_attr_setdetachstate(&attr, detach);
31427 #endif
31428         if( status ) return status;
31429         status = pthread_create( &t, &attr, task, NULL );
31430 #if HAVE_PTHREADS < 7
31431         if( status < 0 ) status = errno;
31432 #endif
31433         if( status ) return status;
31434 #else
31435         /* Draft 4 pthreads */
31436         status = pthread_create( &t, pthread_attr_default, task, NULL );
31437         if( status ) return errno;
31438
31439         /* give thread a chance to complete */
31440         /* it should remain joinable and hence detachable */
31441         sleep( 1 );
31442
31443         status = pthread_detach( &t );
31444         if( status ) return errno;
31445 #endif
31446
31447 #ifdef HAVE_LINUX_THREADS
31448         pthread_kill_other_threads_np();
31449 #endif
31450
31451         return 0;
31452
31453 }
31454
31455 _ACEOF
31456 rm -f conftest$ac_exeext
31457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31458   (eval $ac_link) 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463   (eval $ac_try) 2>&5
31464   ac_status=$?
31465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466   (exit $ac_status); }; }; then
31467   ol_cv_pthread_pthreads=yes
31468 else
31469   echo "$as_me: program exited with status $ac_status" >&5
31470 echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31472
31473 ( exit $ac_status )
31474 ol_cv_pthread_pthreads=no
31475 fi
31476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31477 fi
31478
31479                 # restore the LIBS
31480                 LIBS="$ol_LIBS"
31481
31482 fi
31483 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31484 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31485
31486         if test $ol_cv_pthread_pthreads = yes ; then
31487                 ol_link_pthreads="-pthreads"
31488                 ol_link_threads=posix
31489         fi
31490 fi
31491
31492                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31493 if test "$ol_link_threads" = no ; then
31494         # try -mthreads
31495         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31496 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31497 if test "${ol_cv_pthread_mthreads+set}" = set; then
31498   echo $ECHO_N "(cached) $ECHO_C" >&6
31499 else
31500
31501                 # save the flags
31502                 ol_LIBS="$LIBS"
31503                 LIBS="-mthreads $LIBS"
31504
31505                 if test "$cross_compiling" = yes; then
31506   cat >conftest.$ac_ext <<_ACEOF
31507 /* confdefs.h.  */
31508 _ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h.  */
31512
31513 /* pthread test headers */
31514 #include <pthread.h>
31515 #if HAVE_PTHREADS < 7
31516 #include <errno.h>
31517 #endif
31518 #ifndef NULL
31519 #define NULL (void*)0
31520 #endif
31521
31522 static void *task(p)
31523         void *p;
31524 {
31525         return (void *) (p == NULL);
31526 }
31527
31528 int
31529 main ()
31530 {
31531
31532         /* pthread test function */
31533 #ifndef PTHREAD_CREATE_DETACHED
31534 #define PTHREAD_CREATE_DETACHED 1
31535 #endif
31536         pthread_t t;
31537         int status;
31538         int detach = PTHREAD_CREATE_DETACHED;
31539
31540 #if HAVE_PTHREADS > 4
31541         /* Final pthreads */
31542         pthread_attr_t attr;
31543
31544         status = pthread_attr_init(&attr);
31545         if( status ) return status;
31546
31547 #if HAVE_PTHREADS < 7
31548         status = pthread_attr_setdetachstate(&attr, &detach);
31549         if( status < 0 ) status = errno;
31550 #else
31551         status = pthread_attr_setdetachstate(&attr, detach);
31552 #endif
31553         if( status ) return status;
31554         status = pthread_create( &t, &attr, task, NULL );
31555 #if HAVE_PTHREADS < 7
31556         if( status < 0 ) status = errno;
31557 #endif
31558         if( status ) return status;
31559 #else
31560         /* Draft 4 pthreads */
31561         status = pthread_create( &t, pthread_attr_default, task, NULL );
31562         if( status ) return errno;
31563
31564         /* give thread a chance to complete */
31565         /* it should remain joinable and hence detachable */
31566         sleep( 1 );
31567
31568         status = pthread_detach( &t );
31569         if( status ) return errno;
31570 #endif
31571
31572 #ifdef HAVE_LINUX_THREADS
31573         pthread_kill_other_threads_np();
31574 #endif
31575
31576         return 0;
31577
31578   ;
31579   return 0;
31580 }
31581 _ACEOF
31582 rm -f conftest.$ac_objext conftest$ac_exeext
31583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31584   (eval $ac_link) 2>conftest.er1
31585   ac_status=$?
31586   grep -v '^ *+' conftest.er1 >conftest.err
31587   rm -f conftest.er1
31588   cat conftest.err >&5
31589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590   (exit $ac_status); } &&
31591          { ac_try='test -z "$ac_c_werror_flag"
31592                          || test ! -s conftest.err'
31593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31594   (eval $ac_try) 2>&5
31595   ac_status=$?
31596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597   (exit $ac_status); }; } &&
31598          { ac_try='test -s conftest$ac_exeext'
31599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31600   (eval $ac_try) 2>&5
31601   ac_status=$?
31602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603   (exit $ac_status); }; }; then
31604   ol_cv_pthread_mthreads=yes
31605 else
31606   echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.$ac_ext >&5
31608
31609 ol_cv_pthread_mthreads=no
31610 fi
31611 rm -f conftest.err conftest.$ac_objext \
31612       conftest$ac_exeext conftest.$ac_ext
31613 else
31614   cat >conftest.$ac_ext <<_ACEOF
31615 /* confdefs.h.  */
31616 _ACEOF
31617 cat confdefs.h >>conftest.$ac_ext
31618 cat >>conftest.$ac_ext <<_ACEOF
31619 /* end confdefs.h.  */
31620
31621 /* pthread test headers */
31622 #include <pthread.h>
31623 #if HAVE_PTHREADS < 7
31624 #include <errno.h>
31625 #endif
31626 #ifndef NULL
31627 #define NULL (void*)0
31628 #endif
31629
31630 static void *task(p)
31631         void *p;
31632 {
31633         return (void *) (p == NULL);
31634 }
31635
31636
31637 int main(argc, argv)
31638         int argc;
31639         char **argv;
31640 {
31641
31642         /* pthread test function */
31643 #ifndef PTHREAD_CREATE_DETACHED
31644 #define PTHREAD_CREATE_DETACHED 1
31645 #endif
31646         pthread_t t;
31647         int status;
31648         int detach = PTHREAD_CREATE_DETACHED;
31649
31650 #if HAVE_PTHREADS > 4
31651         /* Final pthreads */
31652         pthread_attr_t attr;
31653
31654         status = pthread_attr_init(&attr);
31655         if( status ) return status;
31656
31657 #if HAVE_PTHREADS < 7
31658         status = pthread_attr_setdetachstate(&attr, &detach);
31659         if( status < 0 ) status = errno;
31660 #else
31661         status = pthread_attr_setdetachstate(&attr, detach);
31662 #endif
31663         if( status ) return status;
31664         status = pthread_create( &t, &attr, task, NULL );
31665 #if HAVE_PTHREADS < 7
31666         if( status < 0 ) status = errno;
31667 #endif
31668         if( status ) return status;
31669 #else
31670         /* Draft 4 pthreads */
31671         status = pthread_create( &t, pthread_attr_default, task, NULL );
31672         if( status ) return errno;
31673
31674         /* give thread a chance to complete */
31675         /* it should remain joinable and hence detachable */
31676         sleep( 1 );
31677
31678         status = pthread_detach( &t );
31679         if( status ) return errno;
31680 #endif
31681
31682 #ifdef HAVE_LINUX_THREADS
31683         pthread_kill_other_threads_np();
31684 #endif
31685
31686         return 0;
31687
31688 }
31689
31690 _ACEOF
31691 rm -f conftest$ac_exeext
31692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693   (eval $ac_link) 2>&5
31694   ac_status=$?
31695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698   (eval $ac_try) 2>&5
31699   ac_status=$?
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); }; }; then
31702   ol_cv_pthread_mthreads=yes
31703 else
31704   echo "$as_me: program exited with status $ac_status" >&5
31705 echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31707
31708 ( exit $ac_status )
31709 ol_cv_pthread_mthreads=no
31710 fi
31711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31712 fi
31713
31714                 # restore the LIBS
31715                 LIBS="$ol_LIBS"
31716
31717 fi
31718 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31719 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31720
31721         if test $ol_cv_pthread_mthreads = yes ; then
31722                 ol_link_pthreads="-mthreads"
31723                 ol_link_threads=posix
31724         fi
31725 fi
31726
31727                 # Pthread try link: -thread (ol_cv_pthread_thread)
31728 if test "$ol_link_threads" = no ; then
31729         # try -thread
31730         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31731 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31732 if test "${ol_cv_pthread_thread+set}" = set; then
31733   echo $ECHO_N "(cached) $ECHO_C" >&6
31734 else
31735
31736                 # save the flags
31737                 ol_LIBS="$LIBS"
31738                 LIBS="-thread $LIBS"
31739
31740                 if test "$cross_compiling" = yes; then
31741   cat >conftest.$ac_ext <<_ACEOF
31742 /* confdefs.h.  */
31743 _ACEOF
31744 cat confdefs.h >>conftest.$ac_ext
31745 cat >>conftest.$ac_ext <<_ACEOF
31746 /* end confdefs.h.  */
31747
31748 /* pthread test headers */
31749 #include <pthread.h>
31750 #if HAVE_PTHREADS < 7
31751 #include <errno.h>
31752 #endif
31753 #ifndef NULL
31754 #define NULL (void*)0
31755 #endif
31756
31757 static void *task(p)
31758         void *p;
31759 {
31760         return (void *) (p == NULL);
31761 }
31762
31763 int
31764 main ()
31765 {
31766
31767         /* pthread test function */
31768 #ifndef PTHREAD_CREATE_DETACHED
31769 #define PTHREAD_CREATE_DETACHED 1
31770 #endif
31771         pthread_t t;
31772         int status;
31773         int detach = PTHREAD_CREATE_DETACHED;
31774
31775 #if HAVE_PTHREADS > 4
31776         /* Final pthreads */
31777         pthread_attr_t attr;
31778
31779         status = pthread_attr_init(&attr);
31780         if( status ) return status;
31781
31782 #if HAVE_PTHREADS < 7
31783         status = pthread_attr_setdetachstate(&attr, &detach);
31784         if( status < 0 ) status = errno;
31785 #else
31786         status = pthread_attr_setdetachstate(&attr, detach);
31787 #endif
31788         if( status ) return status;
31789         status = pthread_create( &t, &attr, task, NULL );
31790 #if HAVE_PTHREADS < 7
31791         if( status < 0 ) status = errno;
31792 #endif
31793         if( status ) return status;
31794 #else
31795         /* Draft 4 pthreads */
31796         status = pthread_create( &t, pthread_attr_default, task, NULL );
31797         if( status ) return errno;
31798
31799         /* give thread a chance to complete */
31800         /* it should remain joinable and hence detachable */
31801         sleep( 1 );
31802
31803         status = pthread_detach( &t );
31804         if( status ) return errno;
31805 #endif
31806
31807 #ifdef HAVE_LINUX_THREADS
31808         pthread_kill_other_threads_np();
31809 #endif
31810
31811         return 0;
31812
31813   ;
31814   return 0;
31815 }
31816 _ACEOF
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31819   (eval $ac_link) 2>conftest.er1
31820   ac_status=$?
31821   grep -v '^ *+' conftest.er1 >conftest.err
31822   rm -f conftest.er1
31823   cat conftest.err >&5
31824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825   (exit $ac_status); } &&
31826          { ac_try='test -z "$ac_c_werror_flag"
31827                          || test ! -s conftest.err'
31828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829   (eval $ac_try) 2>&5
31830   ac_status=$?
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); }; } &&
31833          { ac_try='test -s conftest$ac_exeext'
31834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835   (eval $ac_try) 2>&5
31836   ac_status=$?
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); }; }; then
31839   ol_cv_pthread_thread=yes
31840 else
31841   echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31843
31844 ol_cv_pthread_thread=no
31845 fi
31846 rm -f conftest.err conftest.$ac_objext \
31847       conftest$ac_exeext conftest.$ac_ext
31848 else
31849   cat >conftest.$ac_ext <<_ACEOF
31850 /* confdefs.h.  */
31851 _ACEOF
31852 cat confdefs.h >>conftest.$ac_ext
31853 cat >>conftest.$ac_ext <<_ACEOF
31854 /* end confdefs.h.  */
31855
31856 /* pthread test headers */
31857 #include <pthread.h>
31858 #if HAVE_PTHREADS < 7
31859 #include <errno.h>
31860 #endif
31861 #ifndef NULL
31862 #define NULL (void*)0
31863 #endif
31864
31865 static void *task(p)
31866         void *p;
31867 {
31868         return (void *) (p == NULL);
31869 }
31870
31871
31872 int main(argc, argv)
31873         int argc;
31874         char **argv;
31875 {
31876
31877         /* pthread test function */
31878 #ifndef PTHREAD_CREATE_DETACHED
31879 #define PTHREAD_CREATE_DETACHED 1
31880 #endif
31881         pthread_t t;
31882         int status;
31883         int detach = PTHREAD_CREATE_DETACHED;
31884
31885 #if HAVE_PTHREADS > 4
31886         /* Final pthreads */
31887         pthread_attr_t attr;
31888
31889         status = pthread_attr_init(&attr);
31890         if( status ) return status;
31891
31892 #if HAVE_PTHREADS < 7
31893         status = pthread_attr_setdetachstate(&attr, &detach);
31894         if( status < 0 ) status = errno;
31895 #else
31896         status = pthread_attr_setdetachstate(&attr, detach);
31897 #endif
31898         if( status ) return status;
31899         status = pthread_create( &t, &attr, task, NULL );
31900 #if HAVE_PTHREADS < 7
31901         if( status < 0 ) status = errno;
31902 #endif
31903         if( status ) return status;
31904 #else
31905         /* Draft 4 pthreads */
31906         status = pthread_create( &t, pthread_attr_default, task, NULL );
31907         if( status ) return errno;
31908
31909         /* give thread a chance to complete */
31910         /* it should remain joinable and hence detachable */
31911         sleep( 1 );
31912
31913         status = pthread_detach( &t );
31914         if( status ) return errno;
31915 #endif
31916
31917 #ifdef HAVE_LINUX_THREADS
31918         pthread_kill_other_threads_np();
31919 #endif
31920
31921         return 0;
31922
31923 }
31924
31925 _ACEOF
31926 rm -f conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928   (eval $ac_link) 2>&5
31929   ac_status=$?
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933   (eval $ac_try) 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; }; then
31937   ol_cv_pthread_thread=yes
31938 else
31939   echo "$as_me: program exited with status $ac_status" >&5
31940 echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31942
31943 ( exit $ac_status )
31944 ol_cv_pthread_thread=no
31945 fi
31946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31947 fi
31948
31949                 # restore the LIBS
31950                 LIBS="$ol_LIBS"
31951
31952 fi
31953 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31954 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31955
31956         if test $ol_cv_pthread_thread = yes ; then
31957                 ol_link_pthreads="-thread"
31958                 ol_link_threads=posix
31959         fi
31960 fi
31961
31962
31963                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31964 if test "$ol_link_threads" = no ; then
31965         # try -lpthread -lmach -lexc -lc_r
31966         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31967 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31968 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31969   echo $ECHO_N "(cached) $ECHO_C" >&6
31970 else
31971
31972                 # save the flags
31973                 ol_LIBS="$LIBS"
31974                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31975
31976                 if test "$cross_compiling" = yes; then
31977   cat >conftest.$ac_ext <<_ACEOF
31978 /* confdefs.h.  */
31979 _ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h.  */
31983
31984 /* pthread test headers */
31985 #include <pthread.h>
31986 #if HAVE_PTHREADS < 7
31987 #include <errno.h>
31988 #endif
31989 #ifndef NULL
31990 #define NULL (void*)0
31991 #endif
31992
31993 static void *task(p)
31994         void *p;
31995 {
31996         return (void *) (p == NULL);
31997 }
31998
31999 int
32000 main ()
32001 {
32002
32003         /* pthread test function */
32004 #ifndef PTHREAD_CREATE_DETACHED
32005 #define PTHREAD_CREATE_DETACHED 1
32006 #endif
32007         pthread_t t;
32008         int status;
32009         int detach = PTHREAD_CREATE_DETACHED;
32010
32011 #if HAVE_PTHREADS > 4
32012         /* Final pthreads */
32013         pthread_attr_t attr;
32014
32015         status = pthread_attr_init(&attr);
32016         if( status ) return status;
32017
32018 #if HAVE_PTHREADS < 7
32019         status = pthread_attr_setdetachstate(&attr, &detach);
32020         if( status < 0 ) status = errno;
32021 #else
32022         status = pthread_attr_setdetachstate(&attr, detach);
32023 #endif
32024         if( status ) return status;
32025         status = pthread_create( &t, &attr, task, NULL );
32026 #if HAVE_PTHREADS < 7
32027         if( status < 0 ) status = errno;
32028 #endif
32029         if( status ) return status;
32030 #else
32031         /* Draft 4 pthreads */
32032         status = pthread_create( &t, pthread_attr_default, task, NULL );
32033         if( status ) return errno;
32034
32035         /* give thread a chance to complete */
32036         /* it should remain joinable and hence detachable */
32037         sleep( 1 );
32038
32039         status = pthread_detach( &t );
32040         if( status ) return errno;
32041 #endif
32042
32043 #ifdef HAVE_LINUX_THREADS
32044         pthread_kill_other_threads_np();
32045 #endif
32046
32047         return 0;
32048
32049   ;
32050   return 0;
32051 }
32052 _ACEOF
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32055   (eval $ac_link) 2>conftest.er1
32056   ac_status=$?
32057   grep -v '^ *+' conftest.er1 >conftest.err
32058   rm -f conftest.er1
32059   cat conftest.err >&5
32060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061   (exit $ac_status); } &&
32062          { ac_try='test -z "$ac_c_werror_flag"
32063                          || test ! -s conftest.err'
32064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065   (eval $ac_try) 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; } &&
32069          { ac_try='test -s conftest$ac_exeext'
32070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071   (eval $ac_try) 2>&5
32072   ac_status=$?
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); }; }; then
32075   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32076 else
32077   echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32079
32080 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32081 fi
32082 rm -f conftest.err conftest.$ac_objext \
32083       conftest$ac_exeext conftest.$ac_ext
32084 else
32085   cat >conftest.$ac_ext <<_ACEOF
32086 /* confdefs.h.  */
32087 _ACEOF
32088 cat confdefs.h >>conftest.$ac_ext
32089 cat >>conftest.$ac_ext <<_ACEOF
32090 /* end confdefs.h.  */
32091
32092 /* pthread test headers */
32093 #include <pthread.h>
32094 #if HAVE_PTHREADS < 7
32095 #include <errno.h>
32096 #endif
32097 #ifndef NULL
32098 #define NULL (void*)0
32099 #endif
32100
32101 static void *task(p)
32102         void *p;
32103 {
32104         return (void *) (p == NULL);
32105 }
32106
32107
32108 int main(argc, argv)
32109         int argc;
32110         char **argv;
32111 {
32112
32113         /* pthread test function */
32114 #ifndef PTHREAD_CREATE_DETACHED
32115 #define PTHREAD_CREATE_DETACHED 1
32116 #endif
32117         pthread_t t;
32118         int status;
32119         int detach = PTHREAD_CREATE_DETACHED;
32120
32121 #if HAVE_PTHREADS > 4
32122         /* Final pthreads */
32123         pthread_attr_t attr;
32124
32125         status = pthread_attr_init(&attr);
32126         if( status ) return status;
32127
32128 #if HAVE_PTHREADS < 7
32129         status = pthread_attr_setdetachstate(&attr, &detach);
32130         if( status < 0 ) status = errno;
32131 #else
32132         status = pthread_attr_setdetachstate(&attr, detach);
32133 #endif
32134         if( status ) return status;
32135         status = pthread_create( &t, &attr, task, NULL );
32136 #if HAVE_PTHREADS < 7
32137         if( status < 0 ) status = errno;
32138 #endif
32139         if( status ) return status;
32140 #else
32141         /* Draft 4 pthreads */
32142         status = pthread_create( &t, pthread_attr_default, task, NULL );
32143         if( status ) return errno;
32144
32145         /* give thread a chance to complete */
32146         /* it should remain joinable and hence detachable */
32147         sleep( 1 );
32148
32149         status = pthread_detach( &t );
32150         if( status ) return errno;
32151 #endif
32152
32153 #ifdef HAVE_LINUX_THREADS
32154         pthread_kill_other_threads_np();
32155 #endif
32156
32157         return 0;
32158
32159 }
32160
32161 _ACEOF
32162 rm -f conftest$ac_exeext
32163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32164   (eval $ac_link) 2>&5
32165   ac_status=$?
32166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169   (eval $ac_try) 2>&5
32170   ac_status=$?
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); }; }; then
32173   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32174 else
32175   echo "$as_me: program exited with status $ac_status" >&5
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32178
32179 ( exit $ac_status )
32180 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32181 fi
32182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32183 fi
32184
32185                 # restore the LIBS
32186                 LIBS="$ol_LIBS"
32187
32188 fi
32189 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32190 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32191
32192         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32193                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32194                 ol_link_threads=posix
32195         fi
32196 fi
32197
32198                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32199 if test "$ol_link_threads" = no ; then
32200         # try -lpthread -lmach -lexc
32201         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32202 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32203 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32204   echo $ECHO_N "(cached) $ECHO_C" >&6
32205 else
32206
32207                 # save the flags
32208                 ol_LIBS="$LIBS"
32209                 LIBS="-lpthread -lmach -lexc $LIBS"
32210
32211                 if test "$cross_compiling" = yes; then
32212   cat >conftest.$ac_ext <<_ACEOF
32213 /* confdefs.h.  */
32214 _ACEOF
32215 cat confdefs.h >>conftest.$ac_ext
32216 cat >>conftest.$ac_ext <<_ACEOF
32217 /* end confdefs.h.  */
32218
32219 /* pthread test headers */
32220 #include <pthread.h>
32221 #if HAVE_PTHREADS < 7
32222 #include <errno.h>
32223 #endif
32224 #ifndef NULL
32225 #define NULL (void*)0
32226 #endif
32227
32228 static void *task(p)
32229         void *p;
32230 {
32231         return (void *) (p == NULL);
32232 }
32233
32234 int
32235 main ()
32236 {
32237
32238         /* pthread test function */
32239 #ifndef PTHREAD_CREATE_DETACHED
32240 #define PTHREAD_CREATE_DETACHED 1
32241 #endif
32242         pthread_t t;
32243         int status;
32244         int detach = PTHREAD_CREATE_DETACHED;
32245
32246 #if HAVE_PTHREADS > 4
32247         /* Final pthreads */
32248         pthread_attr_t attr;
32249
32250         status = pthread_attr_init(&attr);
32251         if( status ) return status;
32252
32253 #if HAVE_PTHREADS < 7
32254         status = pthread_attr_setdetachstate(&attr, &detach);
32255         if( status < 0 ) status = errno;
32256 #else
32257         status = pthread_attr_setdetachstate(&attr, detach);
32258 #endif
32259         if( status ) return status;
32260         status = pthread_create( &t, &attr, task, NULL );
32261 #if HAVE_PTHREADS < 7
32262         if( status < 0 ) status = errno;
32263 #endif
32264         if( status ) return status;
32265 #else
32266         /* Draft 4 pthreads */
32267         status = pthread_create( &t, pthread_attr_default, task, NULL );
32268         if( status ) return errno;
32269
32270         /* give thread a chance to complete */
32271         /* it should remain joinable and hence detachable */
32272         sleep( 1 );
32273
32274         status = pthread_detach( &t );
32275         if( status ) return errno;
32276 #endif
32277
32278 #ifdef HAVE_LINUX_THREADS
32279         pthread_kill_other_threads_np();
32280 #endif
32281
32282         return 0;
32283
32284   ;
32285   return 0;
32286 }
32287 _ACEOF
32288 rm -f conftest.$ac_objext conftest$ac_exeext
32289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32290   (eval $ac_link) 2>conftest.er1
32291   ac_status=$?
32292   grep -v '^ *+' conftest.er1 >conftest.err
32293   rm -f conftest.er1
32294   cat conftest.err >&5
32295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296   (exit $ac_status); } &&
32297          { ac_try='test -z "$ac_c_werror_flag"
32298                          || test ! -s conftest.err'
32299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300   (eval $ac_try) 2>&5
32301   ac_status=$?
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); }; } &&
32304          { ac_try='test -s conftest$ac_exeext'
32305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32306   (eval $ac_try) 2>&5
32307   ac_status=$?
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); }; }; then
32310   ol_cv_pthread_lpthread_lmach_lexc=yes
32311 else
32312   echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32314
32315 ol_cv_pthread_lpthread_lmach_lexc=no
32316 fi
32317 rm -f conftest.err conftest.$ac_objext \
32318       conftest$ac_exeext conftest.$ac_ext
32319 else
32320   cat >conftest.$ac_ext <<_ACEOF
32321 /* confdefs.h.  */
32322 _ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h.  */
32326
32327 /* pthread test headers */
32328 #include <pthread.h>
32329 #if HAVE_PTHREADS < 7
32330 #include <errno.h>
32331 #endif
32332 #ifndef NULL
32333 #define NULL (void*)0
32334 #endif
32335
32336 static void *task(p)
32337         void *p;
32338 {
32339         return (void *) (p == NULL);
32340 }
32341
32342
32343 int main(argc, argv)
32344         int argc;
32345         char **argv;
32346 {
32347
32348         /* pthread test function */
32349 #ifndef PTHREAD_CREATE_DETACHED
32350 #define PTHREAD_CREATE_DETACHED 1
32351 #endif
32352         pthread_t t;
32353         int status;
32354         int detach = PTHREAD_CREATE_DETACHED;
32355
32356 #if HAVE_PTHREADS > 4
32357         /* Final pthreads */
32358         pthread_attr_t attr;
32359
32360         status = pthread_attr_init(&attr);
32361         if( status ) return status;
32362
32363 #if HAVE_PTHREADS < 7
32364         status = pthread_attr_setdetachstate(&attr, &detach);
32365         if( status < 0 ) status = errno;
32366 #else
32367         status = pthread_attr_setdetachstate(&attr, detach);
32368 #endif
32369         if( status ) return status;
32370         status = pthread_create( &t, &attr, task, NULL );
32371 #if HAVE_PTHREADS < 7
32372         if( status < 0 ) status = errno;
32373 #endif
32374         if( status ) return status;
32375 #else
32376         /* Draft 4 pthreads */
32377         status = pthread_create( &t, pthread_attr_default, task, NULL );
32378         if( status ) return errno;
32379
32380         /* give thread a chance to complete */
32381         /* it should remain joinable and hence detachable */
32382         sleep( 1 );
32383
32384         status = pthread_detach( &t );
32385         if( status ) return errno;
32386 #endif
32387
32388 #ifdef HAVE_LINUX_THREADS
32389         pthread_kill_other_threads_np();
32390 #endif
32391
32392         return 0;
32393
32394 }
32395
32396 _ACEOF
32397 rm -f conftest$ac_exeext
32398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32399   (eval $ac_link) 2>&5
32400   ac_status=$?
32401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404   (eval $ac_try) 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; }; then
32408   ol_cv_pthread_lpthread_lmach_lexc=yes
32409 else
32410   echo "$as_me: program exited with status $ac_status" >&5
32411 echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32413
32414 ( exit $ac_status )
32415 ol_cv_pthread_lpthread_lmach_lexc=no
32416 fi
32417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32418 fi
32419
32420                 # restore the LIBS
32421                 LIBS="$ol_LIBS"
32422
32423 fi
32424 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32425 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32426
32427         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32428                 ol_link_pthreads="-lpthread -lmach -lexc"
32429                 ol_link_threads=posix
32430         fi
32431 fi
32432
32433
32434                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32435 if test "$ol_link_threads" = no ; then
32436         # try -lpthread -Wl,-woff,85
32437         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32438 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32439 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32440   echo $ECHO_N "(cached) $ECHO_C" >&6
32441 else
32442
32443                 # save the flags
32444                 ol_LIBS="$LIBS"
32445                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32446
32447                 if test "$cross_compiling" = yes; then
32448   cat >conftest.$ac_ext <<_ACEOF
32449 /* confdefs.h.  */
32450 _ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h.  */
32454
32455 /* pthread test headers */
32456 #include <pthread.h>
32457 #if HAVE_PTHREADS < 7
32458 #include <errno.h>
32459 #endif
32460 #ifndef NULL
32461 #define NULL (void*)0
32462 #endif
32463
32464 static void *task(p)
32465         void *p;
32466 {
32467         return (void *) (p == NULL);
32468 }
32469
32470 int
32471 main ()
32472 {
32473
32474         /* pthread test function */
32475 #ifndef PTHREAD_CREATE_DETACHED
32476 #define PTHREAD_CREATE_DETACHED 1
32477 #endif
32478         pthread_t t;
32479         int status;
32480         int detach = PTHREAD_CREATE_DETACHED;
32481
32482 #if HAVE_PTHREADS > 4
32483         /* Final pthreads */
32484         pthread_attr_t attr;
32485
32486         status = pthread_attr_init(&attr);
32487         if( status ) return status;
32488
32489 #if HAVE_PTHREADS < 7
32490         status = pthread_attr_setdetachstate(&attr, &detach);
32491         if( status < 0 ) status = errno;
32492 #else
32493         status = pthread_attr_setdetachstate(&attr, detach);
32494 #endif
32495         if( status ) return status;
32496         status = pthread_create( &t, &attr, task, NULL );
32497 #if HAVE_PTHREADS < 7
32498         if( status < 0 ) status = errno;
32499 #endif
32500         if( status ) return status;
32501 #else
32502         /* Draft 4 pthreads */
32503         status = pthread_create( &t, pthread_attr_default, task, NULL );
32504         if( status ) return errno;
32505
32506         /* give thread a chance to complete */
32507         /* it should remain joinable and hence detachable */
32508         sleep( 1 );
32509
32510         status = pthread_detach( &t );
32511         if( status ) return errno;
32512 #endif
32513
32514 #ifdef HAVE_LINUX_THREADS
32515         pthread_kill_other_threads_np();
32516 #endif
32517
32518         return 0;
32519
32520   ;
32521   return 0;
32522 }
32523 _ACEOF
32524 rm -f conftest.$ac_objext conftest$ac_exeext
32525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32526   (eval $ac_link) 2>conftest.er1
32527   ac_status=$?
32528   grep -v '^ *+' conftest.er1 >conftest.err
32529   rm -f conftest.er1
32530   cat conftest.err >&5
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); } &&
32533          { ac_try='test -z "$ac_c_werror_flag"
32534                          || test ! -s conftest.err'
32535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32536   (eval $ac_try) 2>&5
32537   ac_status=$?
32538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539   (exit $ac_status); }; } &&
32540          { ac_try='test -s conftest$ac_exeext'
32541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542   (eval $ac_try) 2>&5
32543   ac_status=$?
32544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545   (exit $ac_status); }; }; then
32546   ol_cv_pthread_lib_lpthread_woff=yes
32547 else
32548   echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32550
32551 ol_cv_pthread_lib_lpthread_woff=no
32552 fi
32553 rm -f conftest.err conftest.$ac_objext \
32554       conftest$ac_exeext conftest.$ac_ext
32555 else
32556   cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h.  */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h.  */
32562
32563 /* pthread test headers */
32564 #include <pthread.h>
32565 #if HAVE_PTHREADS < 7
32566 #include <errno.h>
32567 #endif
32568 #ifndef NULL
32569 #define NULL (void*)0
32570 #endif
32571
32572 static void *task(p)
32573         void *p;
32574 {
32575         return (void *) (p == NULL);
32576 }
32577
32578
32579 int main(argc, argv)
32580         int argc;
32581         char **argv;
32582 {
32583
32584         /* pthread test function */
32585 #ifndef PTHREAD_CREATE_DETACHED
32586 #define PTHREAD_CREATE_DETACHED 1
32587 #endif
32588         pthread_t t;
32589         int status;
32590         int detach = PTHREAD_CREATE_DETACHED;
32591
32592 #if HAVE_PTHREADS > 4
32593         /* Final pthreads */
32594         pthread_attr_t attr;
32595
32596         status = pthread_attr_init(&attr);
32597         if( status ) return status;
32598
32599 #if HAVE_PTHREADS < 7
32600         status = pthread_attr_setdetachstate(&attr, &detach);
32601         if( status < 0 ) status = errno;
32602 #else
32603         status = pthread_attr_setdetachstate(&attr, detach);
32604 #endif
32605         if( status ) return status;
32606         status = pthread_create( &t, &attr, task, NULL );
32607 #if HAVE_PTHREADS < 7
32608         if( status < 0 ) status = errno;
32609 #endif
32610         if( status ) return status;
32611 #else
32612         /* Draft 4 pthreads */
32613         status = pthread_create( &t, pthread_attr_default, task, NULL );
32614         if( status ) return errno;
32615
32616         /* give thread a chance to complete */
32617         /* it should remain joinable and hence detachable */
32618         sleep( 1 );
32619
32620         status = pthread_detach( &t );
32621         if( status ) return errno;
32622 #endif
32623
32624 #ifdef HAVE_LINUX_THREADS
32625         pthread_kill_other_threads_np();
32626 #endif
32627
32628         return 0;
32629
32630 }
32631
32632 _ACEOF
32633 rm -f conftest$ac_exeext
32634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32635   (eval $ac_link) 2>&5
32636   ac_status=$?
32637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640   (eval $ac_try) 2>&5
32641   ac_status=$?
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); }; }; then
32644   ol_cv_pthread_lib_lpthread_woff=yes
32645 else
32646   echo "$as_me: program exited with status $ac_status" >&5
32647 echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32649
32650 ( exit $ac_status )
32651 ol_cv_pthread_lib_lpthread_woff=no
32652 fi
32653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32654 fi
32655
32656                 # restore the LIBS
32657                 LIBS="$ol_LIBS"
32658
32659 fi
32660 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32661 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32662
32663         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32664                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32665                 ol_link_threads=posix
32666         fi
32667 fi
32668
32669
32670                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32671 if test "$ol_link_threads" = no ; then
32672         # try -lpthread
32673         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32674 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32675 if test "${ol_cv_pthread_lpthread+set}" = set; then
32676   echo $ECHO_N "(cached) $ECHO_C" >&6
32677 else
32678
32679                 # save the flags
32680                 ol_LIBS="$LIBS"
32681                 LIBS="-lpthread $LIBS"
32682
32683                 if test "$cross_compiling" = yes; then
32684   cat >conftest.$ac_ext <<_ACEOF
32685 /* confdefs.h.  */
32686 _ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h.  */
32690
32691 /* pthread test headers */
32692 #include <pthread.h>
32693 #if HAVE_PTHREADS < 7
32694 #include <errno.h>
32695 #endif
32696 #ifndef NULL
32697 #define NULL (void*)0
32698 #endif
32699
32700 static void *task(p)
32701         void *p;
32702 {
32703         return (void *) (p == NULL);
32704 }
32705
32706 int
32707 main ()
32708 {
32709
32710         /* pthread test function */
32711 #ifndef PTHREAD_CREATE_DETACHED
32712 #define PTHREAD_CREATE_DETACHED 1
32713 #endif
32714         pthread_t t;
32715         int status;
32716         int detach = PTHREAD_CREATE_DETACHED;
32717
32718 #if HAVE_PTHREADS > 4
32719         /* Final pthreads */
32720         pthread_attr_t attr;
32721
32722         status = pthread_attr_init(&attr);
32723         if( status ) return status;
32724
32725 #if HAVE_PTHREADS < 7
32726         status = pthread_attr_setdetachstate(&attr, &detach);
32727         if( status < 0 ) status = errno;
32728 #else
32729         status = pthread_attr_setdetachstate(&attr, detach);
32730 #endif
32731         if( status ) return status;
32732         status = pthread_create( &t, &attr, task, NULL );
32733 #if HAVE_PTHREADS < 7
32734         if( status < 0 ) status = errno;
32735 #endif
32736         if( status ) return status;
32737 #else
32738         /* Draft 4 pthreads */
32739         status = pthread_create( &t, pthread_attr_default, task, NULL );
32740         if( status ) return errno;
32741
32742         /* give thread a chance to complete */
32743         /* it should remain joinable and hence detachable */
32744         sleep( 1 );
32745
32746         status = pthread_detach( &t );
32747         if( status ) return errno;
32748 #endif
32749
32750 #ifdef HAVE_LINUX_THREADS
32751         pthread_kill_other_threads_np();
32752 #endif
32753
32754         return 0;
32755
32756   ;
32757   return 0;
32758 }
32759 _ACEOF
32760 rm -f conftest.$ac_objext conftest$ac_exeext
32761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32762   (eval $ac_link) 2>conftest.er1
32763   ac_status=$?
32764   grep -v '^ *+' conftest.er1 >conftest.err
32765   rm -f conftest.er1
32766   cat conftest.err >&5
32767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768   (exit $ac_status); } &&
32769          { ac_try='test -z "$ac_c_werror_flag"
32770                          || test ! -s conftest.err'
32771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772   (eval $ac_try) 2>&5
32773   ac_status=$?
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); }; } &&
32776          { ac_try='test -s conftest$ac_exeext'
32777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778   (eval $ac_try) 2>&5
32779   ac_status=$?
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); }; }; then
32782   ol_cv_pthread_lpthread=yes
32783 else
32784   echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787 ol_cv_pthread_lpthread=no
32788 fi
32789 rm -f conftest.err conftest.$ac_objext \
32790       conftest$ac_exeext conftest.$ac_ext
32791 else
32792   cat >conftest.$ac_ext <<_ACEOF
32793 /* confdefs.h.  */
32794 _ACEOF
32795 cat confdefs.h >>conftest.$ac_ext
32796 cat >>conftest.$ac_ext <<_ACEOF
32797 /* end confdefs.h.  */
32798
32799 /* pthread test headers */
32800 #include <pthread.h>
32801 #if HAVE_PTHREADS < 7
32802 #include <errno.h>
32803 #endif
32804 #ifndef NULL
32805 #define NULL (void*)0
32806 #endif
32807
32808 static void *task(p)
32809         void *p;
32810 {
32811         return (void *) (p == NULL);
32812 }
32813
32814
32815 int main(argc, argv)
32816         int argc;
32817         char **argv;
32818 {
32819
32820         /* pthread test function */
32821 #ifndef PTHREAD_CREATE_DETACHED
32822 #define PTHREAD_CREATE_DETACHED 1
32823 #endif
32824         pthread_t t;
32825         int status;
32826         int detach = PTHREAD_CREATE_DETACHED;
32827
32828 #if HAVE_PTHREADS > 4
32829         /* Final pthreads */
32830         pthread_attr_t attr;
32831
32832         status = pthread_attr_init(&attr);
32833         if( status ) return status;
32834
32835 #if HAVE_PTHREADS < 7
32836         status = pthread_attr_setdetachstate(&attr, &detach);
32837         if( status < 0 ) status = errno;
32838 #else
32839         status = pthread_attr_setdetachstate(&attr, detach);
32840 #endif
32841         if( status ) return status;
32842         status = pthread_create( &t, &attr, task, NULL );
32843 #if HAVE_PTHREADS < 7
32844         if( status < 0 ) status = errno;
32845 #endif
32846         if( status ) return status;
32847 #else
32848         /* Draft 4 pthreads */
32849         status = pthread_create( &t, pthread_attr_default, task, NULL );
32850         if( status ) return errno;
32851
32852         /* give thread a chance to complete */
32853         /* it should remain joinable and hence detachable */
32854         sleep( 1 );
32855
32856         status = pthread_detach( &t );
32857         if( status ) return errno;
32858 #endif
32859
32860 #ifdef HAVE_LINUX_THREADS
32861         pthread_kill_other_threads_np();
32862 #endif
32863
32864         return 0;
32865
32866 }
32867
32868 _ACEOF
32869 rm -f conftest$ac_exeext
32870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32871   (eval $ac_link) 2>&5
32872   ac_status=$?
32873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876   (eval $ac_try) 2>&5
32877   ac_status=$?
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); }; }; then
32880   ol_cv_pthread_lpthread=yes
32881 else
32882   echo "$as_me: program exited with status $ac_status" >&5
32883 echo "$as_me: failed program was:" >&5
32884 sed 's/^/| /' conftest.$ac_ext >&5
32885
32886 ( exit $ac_status )
32887 ol_cv_pthread_lpthread=no
32888 fi
32889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32890 fi
32891
32892                 # restore the LIBS
32893                 LIBS="$ol_LIBS"
32894
32895 fi
32896 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32897 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32898
32899         if test $ol_cv_pthread_lpthread = yes ; then
32900                 ol_link_pthreads="-lpthread"
32901                 ol_link_threads=posix
32902         fi
32903 fi
32904
32905                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32906 if test "$ol_link_threads" = no ; then
32907         # try -lc_r
32908         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32909 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32910 if test "${ol_cv_pthread_lc_r+set}" = set; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913
32914                 # save the flags
32915                 ol_LIBS="$LIBS"
32916                 LIBS="-lc_r $LIBS"
32917
32918                 if test "$cross_compiling" = yes; then
32919   cat >conftest.$ac_ext <<_ACEOF
32920 /* confdefs.h.  */
32921 _ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h.  */
32925
32926 /* pthread test headers */
32927 #include <pthread.h>
32928 #if HAVE_PTHREADS < 7
32929 #include <errno.h>
32930 #endif
32931 #ifndef NULL
32932 #define NULL (void*)0
32933 #endif
32934
32935 static void *task(p)
32936         void *p;
32937 {
32938         return (void *) (p == NULL);
32939 }
32940
32941 int
32942 main ()
32943 {
32944
32945         /* pthread test function */
32946 #ifndef PTHREAD_CREATE_DETACHED
32947 #define PTHREAD_CREATE_DETACHED 1
32948 #endif
32949         pthread_t t;
32950         int status;
32951         int detach = PTHREAD_CREATE_DETACHED;
32952
32953 #if HAVE_PTHREADS > 4
32954         /* Final pthreads */
32955         pthread_attr_t attr;
32956
32957         status = pthread_attr_init(&attr);
32958         if( status ) return status;
32959
32960 #if HAVE_PTHREADS < 7
32961         status = pthread_attr_setdetachstate(&attr, &detach);
32962         if( status < 0 ) status = errno;
32963 #else
32964         status = pthread_attr_setdetachstate(&attr, detach);
32965 #endif
32966         if( status ) return status;
32967         status = pthread_create( &t, &attr, task, NULL );
32968 #if HAVE_PTHREADS < 7
32969         if( status < 0 ) status = errno;
32970 #endif
32971         if( status ) return status;
32972 #else
32973         /* Draft 4 pthreads */
32974         status = pthread_create( &t, pthread_attr_default, task, NULL );
32975         if( status ) return errno;
32976
32977         /* give thread a chance to complete */
32978         /* it should remain joinable and hence detachable */
32979         sleep( 1 );
32980
32981         status = pthread_detach( &t );
32982         if( status ) return errno;
32983 #endif
32984
32985 #ifdef HAVE_LINUX_THREADS
32986         pthread_kill_other_threads_np();
32987 #endif
32988
32989         return 0;
32990
32991   ;
32992   return 0;
32993 }
32994 _ACEOF
32995 rm -f conftest.$ac_objext conftest$ac_exeext
32996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32997   (eval $ac_link) 2>conftest.er1
32998   ac_status=$?
32999   grep -v '^ *+' conftest.er1 >conftest.err
33000   rm -f conftest.er1
33001   cat conftest.err >&5
33002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003   (exit $ac_status); } &&
33004          { ac_try='test -z "$ac_c_werror_flag"
33005                          || test ! -s conftest.err'
33006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007   (eval $ac_try) 2>&5
33008   ac_status=$?
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); }; } &&
33011          { ac_try='test -s conftest$ac_exeext'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; }; then
33017   ol_cv_pthread_lc_r=yes
33018 else
33019   echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33021
33022 ol_cv_pthread_lc_r=no
33023 fi
33024 rm -f conftest.err conftest.$ac_objext \
33025       conftest$ac_exeext conftest.$ac_ext
33026 else
33027   cat >conftest.$ac_ext <<_ACEOF
33028 /* confdefs.h.  */
33029 _ACEOF
33030 cat confdefs.h >>conftest.$ac_ext
33031 cat >>conftest.$ac_ext <<_ACEOF
33032 /* end confdefs.h.  */
33033
33034 /* pthread test headers */
33035 #include <pthread.h>
33036 #if HAVE_PTHREADS < 7
33037 #include <errno.h>
33038 #endif
33039 #ifndef NULL
33040 #define NULL (void*)0
33041 #endif
33042
33043 static void *task(p)
33044         void *p;
33045 {
33046         return (void *) (p == NULL);
33047 }
33048
33049
33050 int main(argc, argv)
33051         int argc;
33052         char **argv;
33053 {
33054
33055         /* pthread test function */
33056 #ifndef PTHREAD_CREATE_DETACHED
33057 #define PTHREAD_CREATE_DETACHED 1
33058 #endif
33059         pthread_t t;
33060         int status;
33061         int detach = PTHREAD_CREATE_DETACHED;
33062
33063 #if HAVE_PTHREADS > 4
33064         /* Final pthreads */
33065         pthread_attr_t attr;
33066
33067         status = pthread_attr_init(&attr);
33068         if( status ) return status;
33069
33070 #if HAVE_PTHREADS < 7
33071         status = pthread_attr_setdetachstate(&attr, &detach);
33072         if( status < 0 ) status = errno;
33073 #else
33074         status = pthread_attr_setdetachstate(&attr, detach);
33075 #endif
33076         if( status ) return status;
33077         status = pthread_create( &t, &attr, task, NULL );
33078 #if HAVE_PTHREADS < 7
33079         if( status < 0 ) status = errno;
33080 #endif
33081         if( status ) return status;
33082 #else
33083         /* Draft 4 pthreads */
33084         status = pthread_create( &t, pthread_attr_default, task, NULL );
33085         if( status ) return errno;
33086
33087         /* give thread a chance to complete */
33088         /* it should remain joinable and hence detachable */
33089         sleep( 1 );
33090
33091         status = pthread_detach( &t );
33092         if( status ) return errno;
33093 #endif
33094
33095 #ifdef HAVE_LINUX_THREADS
33096         pthread_kill_other_threads_np();
33097 #endif
33098
33099         return 0;
33100
33101 }
33102
33103 _ACEOF
33104 rm -f conftest$ac_exeext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33106   (eval $ac_link) 2>&5
33107   ac_status=$?
33108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111   (eval $ac_try) 2>&5
33112   ac_status=$?
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); }; }; then
33115   ol_cv_pthread_lc_r=yes
33116 else
33117   echo "$as_me: program exited with status $ac_status" >&5
33118 echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.$ac_ext >&5
33120
33121 ( exit $ac_status )
33122 ol_cv_pthread_lc_r=no
33123 fi
33124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33125 fi
33126
33127                 # restore the LIBS
33128                 LIBS="$ol_LIBS"
33129
33130 fi
33131 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33132 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33133
33134         if test $ol_cv_pthread_lc_r = yes ; then
33135                 ol_link_pthreads="-lc_r"
33136                 ol_link_threads=posix
33137         fi
33138 fi
33139
33140
33141                 # Pthread try link: -threads (ol_cv_pthread_threads)
33142 if test "$ol_link_threads" = no ; then
33143         # try -threads
33144         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33145 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33146 if test "${ol_cv_pthread_threads+set}" = set; then
33147   echo $ECHO_N "(cached) $ECHO_C" >&6
33148 else
33149
33150                 # save the flags
33151                 ol_LIBS="$LIBS"
33152                 LIBS="-threads $LIBS"
33153
33154                 if test "$cross_compiling" = yes; then
33155   cat >conftest.$ac_ext <<_ACEOF
33156 /* confdefs.h.  */
33157 _ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h.  */
33161
33162 /* pthread test headers */
33163 #include <pthread.h>
33164 #if HAVE_PTHREADS < 7
33165 #include <errno.h>
33166 #endif
33167 #ifndef NULL
33168 #define NULL (void*)0
33169 #endif
33170
33171 static void *task(p)
33172         void *p;
33173 {
33174         return (void *) (p == NULL);
33175 }
33176
33177 int
33178 main ()
33179 {
33180
33181         /* pthread test function */
33182 #ifndef PTHREAD_CREATE_DETACHED
33183 #define PTHREAD_CREATE_DETACHED 1
33184 #endif
33185         pthread_t t;
33186         int status;
33187         int detach = PTHREAD_CREATE_DETACHED;
33188
33189 #if HAVE_PTHREADS > 4
33190         /* Final pthreads */
33191         pthread_attr_t attr;
33192
33193         status = pthread_attr_init(&attr);
33194         if( status ) return status;
33195
33196 #if HAVE_PTHREADS < 7
33197         status = pthread_attr_setdetachstate(&attr, &detach);
33198         if( status < 0 ) status = errno;
33199 #else
33200         status = pthread_attr_setdetachstate(&attr, detach);
33201 #endif
33202         if( status ) return status;
33203         status = pthread_create( &t, &attr, task, NULL );
33204 #if HAVE_PTHREADS < 7
33205         if( status < 0 ) status = errno;
33206 #endif
33207         if( status ) return status;
33208 #else
33209         /* Draft 4 pthreads */
33210         status = pthread_create( &t, pthread_attr_default, task, NULL );
33211         if( status ) return errno;
33212
33213         /* give thread a chance to complete */
33214         /* it should remain joinable and hence detachable */
33215         sleep( 1 );
33216
33217         status = pthread_detach( &t );
33218         if( status ) return errno;
33219 #endif
33220
33221 #ifdef HAVE_LINUX_THREADS
33222         pthread_kill_other_threads_np();
33223 #endif
33224
33225         return 0;
33226
33227   ;
33228   return 0;
33229 }
33230 _ACEOF
33231 rm -f conftest.$ac_objext conftest$ac_exeext
33232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33233   (eval $ac_link) 2>conftest.er1
33234   ac_status=$?
33235   grep -v '^ *+' conftest.er1 >conftest.err
33236   rm -f conftest.er1
33237   cat conftest.err >&5
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); } &&
33240          { ac_try='test -z "$ac_c_werror_flag"
33241                          || test ! -s conftest.err'
33242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243   (eval $ac_try) 2>&5
33244   ac_status=$?
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); }; } &&
33247          { ac_try='test -s conftest$ac_exeext'
33248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249   (eval $ac_try) 2>&5
33250   ac_status=$?
33251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252   (exit $ac_status); }; }; then
33253   ol_cv_pthread_threads=yes
33254 else
33255   echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33257
33258 ol_cv_pthread_threads=no
33259 fi
33260 rm -f conftest.err conftest.$ac_objext \
33261       conftest$ac_exeext conftest.$ac_ext
33262 else
33263   cat >conftest.$ac_ext <<_ACEOF
33264 /* confdefs.h.  */
33265 _ACEOF
33266 cat confdefs.h >>conftest.$ac_ext
33267 cat >>conftest.$ac_ext <<_ACEOF
33268 /* end confdefs.h.  */
33269
33270 /* pthread test headers */
33271 #include <pthread.h>
33272 #if HAVE_PTHREADS < 7
33273 #include <errno.h>
33274 #endif
33275 #ifndef NULL
33276 #define NULL (void*)0
33277 #endif
33278
33279 static void *task(p)
33280         void *p;
33281 {
33282         return (void *) (p == NULL);
33283 }
33284
33285
33286 int main(argc, argv)
33287         int argc;
33288         char **argv;
33289 {
33290
33291         /* pthread test function */
33292 #ifndef PTHREAD_CREATE_DETACHED
33293 #define PTHREAD_CREATE_DETACHED 1
33294 #endif
33295         pthread_t t;
33296         int status;
33297         int detach = PTHREAD_CREATE_DETACHED;
33298
33299 #if HAVE_PTHREADS > 4
33300         /* Final pthreads */
33301         pthread_attr_t attr;
33302
33303         status = pthread_attr_init(&attr);
33304         if( status ) return status;
33305
33306 #if HAVE_PTHREADS < 7
33307         status = pthread_attr_setdetachstate(&attr, &detach);
33308         if( status < 0 ) status = errno;
33309 #else
33310         status = pthread_attr_setdetachstate(&attr, detach);
33311 #endif
33312         if( status ) return status;
33313         status = pthread_create( &t, &attr, task, NULL );
33314 #if HAVE_PTHREADS < 7
33315         if( status < 0 ) status = errno;
33316 #endif
33317         if( status ) return status;
33318 #else
33319         /* Draft 4 pthreads */
33320         status = pthread_create( &t, pthread_attr_default, task, NULL );
33321         if( status ) return errno;
33322
33323         /* give thread a chance to complete */
33324         /* it should remain joinable and hence detachable */
33325         sleep( 1 );
33326
33327         status = pthread_detach( &t );
33328         if( status ) return errno;
33329 #endif
33330
33331 #ifdef HAVE_LINUX_THREADS
33332         pthread_kill_other_threads_np();
33333 #endif
33334
33335         return 0;
33336
33337 }
33338
33339 _ACEOF
33340 rm -f conftest$ac_exeext
33341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33342   (eval $ac_link) 2>&5
33343   ac_status=$?
33344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347   (eval $ac_try) 2>&5
33348   ac_status=$?
33349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350   (exit $ac_status); }; }; then
33351   ol_cv_pthread_threads=yes
33352 else
33353   echo "$as_me: program exited with status $ac_status" >&5
33354 echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33356
33357 ( exit $ac_status )
33358 ol_cv_pthread_threads=no
33359 fi
33360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33361 fi
33362
33363                 # restore the LIBS
33364                 LIBS="$ol_LIBS"
33365
33366 fi
33367 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33368 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33369
33370         if test $ol_cv_pthread_threads = yes ; then
33371                 ol_link_pthreads="-threads"
33372                 ol_link_threads=posix
33373         fi
33374 fi
33375
33376
33377                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33378 if test "$ol_link_threads" = no ; then
33379         # try -lpthreads -lmach -lexc -lc_r
33380         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33381 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33382 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33383   echo $ECHO_N "(cached) $ECHO_C" >&6
33384 else
33385
33386                 # save the flags
33387                 ol_LIBS="$LIBS"
33388                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33389
33390                 if test "$cross_compiling" = yes; then
33391   cat >conftest.$ac_ext <<_ACEOF
33392 /* confdefs.h.  */
33393 _ACEOF
33394 cat confdefs.h >>conftest.$ac_ext
33395 cat >>conftest.$ac_ext <<_ACEOF
33396 /* end confdefs.h.  */
33397
33398 /* pthread test headers */
33399 #include <pthread.h>
33400 #if HAVE_PTHREADS < 7
33401 #include <errno.h>
33402 #endif
33403 #ifndef NULL
33404 #define NULL (void*)0
33405 #endif
33406
33407 static void *task(p)
33408         void *p;
33409 {
33410         return (void *) (p == NULL);
33411 }
33412
33413 int
33414 main ()
33415 {
33416
33417         /* pthread test function */
33418 #ifndef PTHREAD_CREATE_DETACHED
33419 #define PTHREAD_CREATE_DETACHED 1
33420 #endif
33421         pthread_t t;
33422         int status;
33423         int detach = PTHREAD_CREATE_DETACHED;
33424
33425 #if HAVE_PTHREADS > 4
33426         /* Final pthreads */
33427         pthread_attr_t attr;
33428
33429         status = pthread_attr_init(&attr);
33430         if( status ) return status;
33431
33432 #if HAVE_PTHREADS < 7
33433         status = pthread_attr_setdetachstate(&attr, &detach);
33434         if( status < 0 ) status = errno;
33435 #else
33436         status = pthread_attr_setdetachstate(&attr, detach);
33437 #endif
33438         if( status ) return status;
33439         status = pthread_create( &t, &attr, task, NULL );
33440 #if HAVE_PTHREADS < 7
33441         if( status < 0 ) status = errno;
33442 #endif
33443         if( status ) return status;
33444 #else
33445         /* Draft 4 pthreads */
33446         status = pthread_create( &t, pthread_attr_default, task, NULL );
33447         if( status ) return errno;
33448
33449         /* give thread a chance to complete */
33450         /* it should remain joinable and hence detachable */
33451         sleep( 1 );
33452
33453         status = pthread_detach( &t );
33454         if( status ) return errno;
33455 #endif
33456
33457 #ifdef HAVE_LINUX_THREADS
33458         pthread_kill_other_threads_np();
33459 #endif
33460
33461         return 0;
33462
33463   ;
33464   return 0;
33465 }
33466 _ACEOF
33467 rm -f conftest.$ac_objext conftest$ac_exeext
33468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33469   (eval $ac_link) 2>conftest.er1
33470   ac_status=$?
33471   grep -v '^ *+' conftest.er1 >conftest.err
33472   rm -f conftest.er1
33473   cat conftest.err >&5
33474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475   (exit $ac_status); } &&
33476          { ac_try='test -z "$ac_c_werror_flag"
33477                          || test ! -s conftest.err'
33478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479   (eval $ac_try) 2>&5
33480   ac_status=$?
33481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); }; } &&
33483          { ac_try='test -s conftest$ac_exeext'
33484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485   (eval $ac_try) 2>&5
33486   ac_status=$?
33487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488   (exit $ac_status); }; }; then
33489   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33490 else
33491   echo "$as_me: failed program was:" >&5
33492 sed 's/^/| /' conftest.$ac_ext >&5
33493
33494 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33495 fi
33496 rm -f conftest.err conftest.$ac_objext \
33497       conftest$ac_exeext conftest.$ac_ext
33498 else
33499   cat >conftest.$ac_ext <<_ACEOF
33500 /* confdefs.h.  */
33501 _ACEOF
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h.  */
33505
33506 /* pthread test headers */
33507 #include <pthread.h>
33508 #if HAVE_PTHREADS < 7
33509 #include <errno.h>
33510 #endif
33511 #ifndef NULL
33512 #define NULL (void*)0
33513 #endif
33514
33515 static void *task(p)
33516         void *p;
33517 {
33518         return (void *) (p == NULL);
33519 }
33520
33521
33522 int main(argc, argv)
33523         int argc;
33524         char **argv;
33525 {
33526
33527         /* pthread test function */
33528 #ifndef PTHREAD_CREATE_DETACHED
33529 #define PTHREAD_CREATE_DETACHED 1
33530 #endif
33531         pthread_t t;
33532         int status;
33533         int detach = PTHREAD_CREATE_DETACHED;
33534
33535 #if HAVE_PTHREADS > 4
33536         /* Final pthreads */
33537         pthread_attr_t attr;
33538
33539         status = pthread_attr_init(&attr);
33540         if( status ) return status;
33541
33542 #if HAVE_PTHREADS < 7
33543         status = pthread_attr_setdetachstate(&attr, &detach);
33544         if( status < 0 ) status = errno;
33545 #else
33546         status = pthread_attr_setdetachstate(&attr, detach);
33547 #endif
33548         if( status ) return status;
33549         status = pthread_create( &t, &attr, task, NULL );
33550 #if HAVE_PTHREADS < 7
33551         if( status < 0 ) status = errno;
33552 #endif
33553         if( status ) return status;
33554 #else
33555         /* Draft 4 pthreads */
33556         status = pthread_create( &t, pthread_attr_default, task, NULL );
33557         if( status ) return errno;
33558
33559         /* give thread a chance to complete */
33560         /* it should remain joinable and hence detachable */
33561         sleep( 1 );
33562
33563         status = pthread_detach( &t );
33564         if( status ) return errno;
33565 #endif
33566
33567 #ifdef HAVE_LINUX_THREADS
33568         pthread_kill_other_threads_np();
33569 #endif
33570
33571         return 0;
33572
33573 }
33574
33575 _ACEOF
33576 rm -f conftest$ac_exeext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33578   (eval $ac_link) 2>&5
33579   ac_status=$?
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33583   (eval $ac_try) 2>&5
33584   ac_status=$?
33585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586   (exit $ac_status); }; }; then
33587   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33588 else
33589   echo "$as_me: program exited with status $ac_status" >&5
33590 echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33592
33593 ( exit $ac_status )
33594 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33595 fi
33596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33597 fi
33598
33599                 # restore the LIBS
33600                 LIBS="$ol_LIBS"
33601
33602 fi
33603 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33604 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33605
33606         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33607                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33608                 ol_link_threads=posix
33609         fi
33610 fi
33611
33612                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33613 if test "$ol_link_threads" = no ; then
33614         # try -lpthreads -lmach -lexc
33615         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33616 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33617 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33618   echo $ECHO_N "(cached) $ECHO_C" >&6
33619 else
33620
33621                 # save the flags
33622                 ol_LIBS="$LIBS"
33623                 LIBS="-lpthreads -lmach -lexc $LIBS"
33624
33625                 if test "$cross_compiling" = yes; then
33626   cat >conftest.$ac_ext <<_ACEOF
33627 /* confdefs.h.  */
33628 _ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h.  */
33632
33633 /* pthread test headers */
33634 #include <pthread.h>
33635 #if HAVE_PTHREADS < 7
33636 #include <errno.h>
33637 #endif
33638 #ifndef NULL
33639 #define NULL (void*)0
33640 #endif
33641
33642 static void *task(p)
33643         void *p;
33644 {
33645         return (void *) (p == NULL);
33646 }
33647
33648 int
33649 main ()
33650 {
33651
33652         /* pthread test function */
33653 #ifndef PTHREAD_CREATE_DETACHED
33654 #define PTHREAD_CREATE_DETACHED 1
33655 #endif
33656         pthread_t t;
33657         int status;
33658         int detach = PTHREAD_CREATE_DETACHED;
33659
33660 #if HAVE_PTHREADS > 4
33661         /* Final pthreads */
33662         pthread_attr_t attr;
33663
33664         status = pthread_attr_init(&attr);
33665         if( status ) return status;
33666
33667 #if HAVE_PTHREADS < 7
33668         status = pthread_attr_setdetachstate(&attr, &detach);
33669         if( status < 0 ) status = errno;
33670 #else
33671         status = pthread_attr_setdetachstate(&attr, detach);
33672 #endif
33673         if( status ) return status;
33674         status = pthread_create( &t, &attr, task, NULL );
33675 #if HAVE_PTHREADS < 7
33676         if( status < 0 ) status = errno;
33677 #endif
33678         if( status ) return status;
33679 #else
33680         /* Draft 4 pthreads */
33681         status = pthread_create( &t, pthread_attr_default, task, NULL );
33682         if( status ) return errno;
33683
33684         /* give thread a chance to complete */
33685         /* it should remain joinable and hence detachable */
33686         sleep( 1 );
33687
33688         status = pthread_detach( &t );
33689         if( status ) return errno;
33690 #endif
33691
33692 #ifdef HAVE_LINUX_THREADS
33693         pthread_kill_other_threads_np();
33694 #endif
33695
33696         return 0;
33697
33698   ;
33699   return 0;
33700 }
33701 _ACEOF
33702 rm -f conftest.$ac_objext conftest$ac_exeext
33703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33704   (eval $ac_link) 2>conftest.er1
33705   ac_status=$?
33706   grep -v '^ *+' conftest.er1 >conftest.err
33707   rm -f conftest.er1
33708   cat conftest.err >&5
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); } &&
33711          { ac_try='test -z "$ac_c_werror_flag"
33712                          || test ! -s conftest.err'
33713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33714   (eval $ac_try) 2>&5
33715   ac_status=$?
33716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717   (exit $ac_status); }; } &&
33718          { ac_try='test -s conftest$ac_exeext'
33719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33720   (eval $ac_try) 2>&5
33721   ac_status=$?
33722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723   (exit $ac_status); }; }; then
33724   ol_cv_pthread_lpthreads_lmach_lexc=yes
33725 else
33726   echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33728
33729 ol_cv_pthread_lpthreads_lmach_lexc=no
33730 fi
33731 rm -f conftest.err conftest.$ac_objext \
33732       conftest$ac_exeext conftest.$ac_ext
33733 else
33734   cat >conftest.$ac_ext <<_ACEOF
33735 /* confdefs.h.  */
33736 _ACEOF
33737 cat confdefs.h >>conftest.$ac_ext
33738 cat >>conftest.$ac_ext <<_ACEOF
33739 /* end confdefs.h.  */
33740
33741 /* pthread test headers */
33742 #include <pthread.h>
33743 #if HAVE_PTHREADS < 7
33744 #include <errno.h>
33745 #endif
33746 #ifndef NULL
33747 #define NULL (void*)0
33748 #endif
33749
33750 static void *task(p)
33751         void *p;
33752 {
33753         return (void *) (p == NULL);
33754 }
33755
33756
33757 int main(argc, argv)
33758         int argc;
33759         char **argv;
33760 {
33761
33762         /* pthread test function */
33763 #ifndef PTHREAD_CREATE_DETACHED
33764 #define PTHREAD_CREATE_DETACHED 1
33765 #endif
33766         pthread_t t;
33767         int status;
33768         int detach = PTHREAD_CREATE_DETACHED;
33769
33770 #if HAVE_PTHREADS > 4
33771         /* Final pthreads */
33772         pthread_attr_t attr;
33773
33774         status = pthread_attr_init(&attr);
33775         if( status ) return status;
33776
33777 #if HAVE_PTHREADS < 7
33778         status = pthread_attr_setdetachstate(&attr, &detach);
33779         if( status < 0 ) status = errno;
33780 #else
33781         status = pthread_attr_setdetachstate(&attr, detach);
33782 #endif
33783         if( status ) return status;
33784         status = pthread_create( &t, &attr, task, NULL );
33785 #if HAVE_PTHREADS < 7
33786         if( status < 0 ) status = errno;
33787 #endif
33788         if( status ) return status;
33789 #else
33790         /* Draft 4 pthreads */
33791         status = pthread_create( &t, pthread_attr_default, task, NULL );
33792         if( status ) return errno;
33793
33794         /* give thread a chance to complete */
33795         /* it should remain joinable and hence detachable */
33796         sleep( 1 );
33797
33798         status = pthread_detach( &t );
33799         if( status ) return errno;
33800 #endif
33801
33802 #ifdef HAVE_LINUX_THREADS
33803         pthread_kill_other_threads_np();
33804 #endif
33805
33806         return 0;
33807
33808 }
33809
33810 _ACEOF
33811 rm -f conftest$ac_exeext
33812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33813   (eval $ac_link) 2>&5
33814   ac_status=$?
33815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818   (eval $ac_try) 2>&5
33819   ac_status=$?
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); }; }; then
33822   ol_cv_pthread_lpthreads_lmach_lexc=yes
33823 else
33824   echo "$as_me: program exited with status $ac_status" >&5
33825 echo "$as_me: failed program was:" >&5
33826 sed 's/^/| /' conftest.$ac_ext >&5
33827
33828 ( exit $ac_status )
33829 ol_cv_pthread_lpthreads_lmach_lexc=no
33830 fi
33831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33832 fi
33833
33834                 # restore the LIBS
33835                 LIBS="$ol_LIBS"
33836
33837 fi
33838 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33839 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33840
33841         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33842                 ol_link_pthreads="-lpthreads -lmach -lexc"
33843                 ol_link_threads=posix
33844         fi
33845 fi
33846
33847                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33848 if test "$ol_link_threads" = no ; then
33849         # try -lpthreads -lexc
33850         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33851 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33852 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33853   echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855
33856                 # save the flags
33857                 ol_LIBS="$LIBS"
33858                 LIBS="-lpthreads -lexc $LIBS"
33859
33860                 if test "$cross_compiling" = yes; then
33861   cat >conftest.$ac_ext <<_ACEOF
33862 /* confdefs.h.  */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h.  */
33867
33868 /* pthread test headers */
33869 #include <pthread.h>
33870 #if HAVE_PTHREADS < 7
33871 #include <errno.h>
33872 #endif
33873 #ifndef NULL
33874 #define NULL (void*)0
33875 #endif
33876
33877 static void *task(p)
33878         void *p;
33879 {
33880         return (void *) (p == NULL);
33881 }
33882
33883 int
33884 main ()
33885 {
33886
33887         /* pthread test function */
33888 #ifndef PTHREAD_CREATE_DETACHED
33889 #define PTHREAD_CREATE_DETACHED 1
33890 #endif
33891         pthread_t t;
33892         int status;
33893         int detach = PTHREAD_CREATE_DETACHED;
33894
33895 #if HAVE_PTHREADS > 4
33896         /* Final pthreads */
33897         pthread_attr_t attr;
33898
33899         status = pthread_attr_init(&attr);
33900         if( status ) return status;
33901
33902 #if HAVE_PTHREADS < 7
33903         status = pthread_attr_setdetachstate(&attr, &detach);
33904         if( status < 0 ) status = errno;
33905 #else
33906         status = pthread_attr_setdetachstate(&attr, detach);
33907 #endif
33908         if( status ) return status;
33909         status = pthread_create( &t, &attr, task, NULL );
33910 #if HAVE_PTHREADS < 7
33911         if( status < 0 ) status = errno;
33912 #endif
33913         if( status ) return status;
33914 #else
33915         /* Draft 4 pthreads */
33916         status = pthread_create( &t, pthread_attr_default, task, NULL );
33917         if( status ) return errno;
33918
33919         /* give thread a chance to complete */
33920         /* it should remain joinable and hence detachable */
33921         sleep( 1 );
33922
33923         status = pthread_detach( &t );
33924         if( status ) return errno;
33925 #endif
33926
33927 #ifdef HAVE_LINUX_THREADS
33928         pthread_kill_other_threads_np();
33929 #endif
33930
33931         return 0;
33932
33933   ;
33934   return 0;
33935 }
33936 _ACEOF
33937 rm -f conftest.$ac_objext conftest$ac_exeext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33939   (eval $ac_link) 2>conftest.er1
33940   ac_status=$?
33941   grep -v '^ *+' conftest.er1 >conftest.err
33942   rm -f conftest.er1
33943   cat conftest.err >&5
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); } &&
33946          { ac_try='test -z "$ac_c_werror_flag"
33947                          || test ! -s conftest.err'
33948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949   (eval $ac_try) 2>&5
33950   ac_status=$?
33951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952   (exit $ac_status); }; } &&
33953          { ac_try='test -s conftest$ac_exeext'
33954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955   (eval $ac_try) 2>&5
33956   ac_status=$?
33957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958   (exit $ac_status); }; }; then
33959   ol_cv_pthread_lpthreads_lexc=yes
33960 else
33961   echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33963
33964 ol_cv_pthread_lpthreads_lexc=no
33965 fi
33966 rm -f conftest.err conftest.$ac_objext \
33967       conftest$ac_exeext conftest.$ac_ext
33968 else
33969   cat >conftest.$ac_ext <<_ACEOF
33970 /* confdefs.h.  */
33971 _ACEOF
33972 cat confdefs.h >>conftest.$ac_ext
33973 cat >>conftest.$ac_ext <<_ACEOF
33974 /* end confdefs.h.  */
33975
33976 /* pthread test headers */
33977 #include <pthread.h>
33978 #if HAVE_PTHREADS < 7
33979 #include <errno.h>
33980 #endif
33981 #ifndef NULL
33982 #define NULL (void*)0
33983 #endif
33984
33985 static void *task(p)
33986         void *p;
33987 {
33988         return (void *) (p == NULL);
33989 }
33990
33991
33992 int main(argc, argv)
33993         int argc;
33994         char **argv;
33995 {
33996
33997         /* pthread test function */
33998 #ifndef PTHREAD_CREATE_DETACHED
33999 #define PTHREAD_CREATE_DETACHED 1
34000 #endif
34001         pthread_t t;
34002         int status;
34003         int detach = PTHREAD_CREATE_DETACHED;
34004
34005 #if HAVE_PTHREADS > 4
34006         /* Final pthreads */
34007         pthread_attr_t attr;
34008
34009         status = pthread_attr_init(&attr);
34010         if( status ) return status;
34011
34012 #if HAVE_PTHREADS < 7
34013         status = pthread_attr_setdetachstate(&attr, &detach);
34014         if( status < 0 ) status = errno;
34015 #else
34016         status = pthread_attr_setdetachstate(&attr, detach);
34017 #endif
34018         if( status ) return status;
34019         status = pthread_create( &t, &attr, task, NULL );
34020 #if HAVE_PTHREADS < 7
34021         if( status < 0 ) status = errno;
34022 #endif
34023         if( status ) return status;
34024 #else
34025         /* Draft 4 pthreads */
34026         status = pthread_create( &t, pthread_attr_default, task, NULL );
34027         if( status ) return errno;
34028
34029         /* give thread a chance to complete */
34030         /* it should remain joinable and hence detachable */
34031         sleep( 1 );
34032
34033         status = pthread_detach( &t );
34034         if( status ) return errno;
34035 #endif
34036
34037 #ifdef HAVE_LINUX_THREADS
34038         pthread_kill_other_threads_np();
34039 #endif
34040
34041         return 0;
34042
34043 }
34044
34045 _ACEOF
34046 rm -f conftest$ac_exeext
34047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34048   (eval $ac_link) 2>&5
34049   ac_status=$?
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34053   (eval $ac_try) 2>&5
34054   ac_status=$?
34055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056   (exit $ac_status); }; }; then
34057   ol_cv_pthread_lpthreads_lexc=yes
34058 else
34059   echo "$as_me: program exited with status $ac_status" >&5
34060 echo "$as_me: failed program was:" >&5
34061 sed 's/^/| /' conftest.$ac_ext >&5
34062
34063 ( exit $ac_status )
34064 ol_cv_pthread_lpthreads_lexc=no
34065 fi
34066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34067 fi
34068
34069                 # restore the LIBS
34070                 LIBS="$ol_LIBS"
34071
34072 fi
34073 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34074 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34075
34076         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34077                 ol_link_pthreads="-lpthreads -lexc"
34078                 ol_link_threads=posix
34079         fi
34080 fi
34081
34082
34083                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34084 if test "$ol_link_threads" = no ; then
34085         # try -lpthreads
34086         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34087 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34088 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34089   echo $ECHO_N "(cached) $ECHO_C" >&6
34090 else
34091
34092                 # save the flags
34093                 ol_LIBS="$LIBS"
34094                 LIBS="-lpthreads $LIBS"
34095
34096                 if test "$cross_compiling" = yes; then
34097   cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103
34104 /* pthread test headers */
34105 #include <pthread.h>
34106 #if HAVE_PTHREADS < 7
34107 #include <errno.h>
34108 #endif
34109 #ifndef NULL
34110 #define NULL (void*)0
34111 #endif
34112
34113 static void *task(p)
34114         void *p;
34115 {
34116         return (void *) (p == NULL);
34117 }
34118
34119 int
34120 main ()
34121 {
34122
34123         /* pthread test function */
34124 #ifndef PTHREAD_CREATE_DETACHED
34125 #define PTHREAD_CREATE_DETACHED 1
34126 #endif
34127         pthread_t t;
34128         int status;
34129         int detach = PTHREAD_CREATE_DETACHED;
34130
34131 #if HAVE_PTHREADS > 4
34132         /* Final pthreads */
34133         pthread_attr_t attr;
34134
34135         status = pthread_attr_init(&attr);
34136         if( status ) return status;
34137
34138 #if HAVE_PTHREADS < 7
34139         status = pthread_attr_setdetachstate(&attr, &detach);
34140         if( status < 0 ) status = errno;
34141 #else
34142         status = pthread_attr_setdetachstate(&attr, detach);
34143 #endif
34144         if( status ) return status;
34145         status = pthread_create( &t, &attr, task, NULL );
34146 #if HAVE_PTHREADS < 7
34147         if( status < 0 ) status = errno;
34148 #endif
34149         if( status ) return status;
34150 #else
34151         /* Draft 4 pthreads */
34152         status = pthread_create( &t, pthread_attr_default, task, NULL );
34153         if( status ) return errno;
34154
34155         /* give thread a chance to complete */
34156         /* it should remain joinable and hence detachable */
34157         sleep( 1 );
34158
34159         status = pthread_detach( &t );
34160         if( status ) return errno;
34161 #endif
34162
34163 #ifdef HAVE_LINUX_THREADS
34164         pthread_kill_other_threads_np();
34165 #endif
34166
34167         return 0;
34168
34169   ;
34170   return 0;
34171 }
34172 _ACEOF
34173 rm -f conftest.$ac_objext conftest$ac_exeext
34174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34175   (eval $ac_link) 2>conftest.er1
34176   ac_status=$?
34177   grep -v '^ *+' conftest.er1 >conftest.err
34178   rm -f conftest.er1
34179   cat conftest.err >&5
34180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181   (exit $ac_status); } &&
34182          { ac_try='test -z "$ac_c_werror_flag"
34183                          || test ! -s conftest.err'
34184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185   (eval $ac_try) 2>&5
34186   ac_status=$?
34187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188   (exit $ac_status); }; } &&
34189          { ac_try='test -s conftest$ac_exeext'
34190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191   (eval $ac_try) 2>&5
34192   ac_status=$?
34193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194   (exit $ac_status); }; }; then
34195   ol_cv_pthread_lib_lpthreads=yes
34196 else
34197   echo "$as_me: failed program was:" >&5
34198 sed 's/^/| /' conftest.$ac_ext >&5
34199
34200 ol_cv_pthread_lib_lpthreads=no
34201 fi
34202 rm -f conftest.err conftest.$ac_objext \
34203       conftest$ac_exeext conftest.$ac_ext
34204 else
34205   cat >conftest.$ac_ext <<_ACEOF
34206 /* confdefs.h.  */
34207 _ACEOF
34208 cat confdefs.h >>conftest.$ac_ext
34209 cat >>conftest.$ac_ext <<_ACEOF
34210 /* end confdefs.h.  */
34211
34212 /* pthread test headers */
34213 #include <pthread.h>
34214 #if HAVE_PTHREADS < 7
34215 #include <errno.h>
34216 #endif
34217 #ifndef NULL
34218 #define NULL (void*)0
34219 #endif
34220
34221 static void *task(p)
34222         void *p;
34223 {
34224         return (void *) (p == NULL);
34225 }
34226
34227
34228 int main(argc, argv)
34229         int argc;
34230         char **argv;
34231 {
34232
34233         /* pthread test function */
34234 #ifndef PTHREAD_CREATE_DETACHED
34235 #define PTHREAD_CREATE_DETACHED 1
34236 #endif
34237         pthread_t t;
34238         int status;
34239         int detach = PTHREAD_CREATE_DETACHED;
34240
34241 #if HAVE_PTHREADS > 4
34242         /* Final pthreads */
34243         pthread_attr_t attr;
34244
34245         status = pthread_attr_init(&attr);
34246         if( status ) return status;
34247
34248 #if HAVE_PTHREADS < 7
34249         status = pthread_attr_setdetachstate(&attr, &detach);
34250         if( status < 0 ) status = errno;
34251 #else
34252         status = pthread_attr_setdetachstate(&attr, detach);
34253 #endif
34254         if( status ) return status;
34255         status = pthread_create( &t, &attr, task, NULL );
34256 #if HAVE_PTHREADS < 7
34257         if( status < 0 ) status = errno;
34258 #endif
34259         if( status ) return status;
34260 #else
34261         /* Draft 4 pthreads */
34262         status = pthread_create( &t, pthread_attr_default, task, NULL );
34263         if( status ) return errno;
34264
34265         /* give thread a chance to complete */
34266         /* it should remain joinable and hence detachable */
34267         sleep( 1 );
34268
34269         status = pthread_detach( &t );
34270         if( status ) return errno;
34271 #endif
34272
34273 #ifdef HAVE_LINUX_THREADS
34274         pthread_kill_other_threads_np();
34275 #endif
34276
34277         return 0;
34278
34279 }
34280
34281 _ACEOF
34282 rm -f conftest$ac_exeext
34283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34284   (eval $ac_link) 2>&5
34285   ac_status=$?
34286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34289   (eval $ac_try) 2>&5
34290   ac_status=$?
34291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292   (exit $ac_status); }; }; then
34293   ol_cv_pthread_lib_lpthreads=yes
34294 else
34295   echo "$as_me: program exited with status $ac_status" >&5
34296 echo "$as_me: failed program was:" >&5
34297 sed 's/^/| /' conftest.$ac_ext >&5
34298
34299 ( exit $ac_status )
34300 ol_cv_pthread_lib_lpthreads=no
34301 fi
34302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34303 fi
34304
34305                 # restore the LIBS
34306                 LIBS="$ol_LIBS"
34307
34308 fi
34309 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34310 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34311
34312         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34313                 ol_link_pthreads="-lpthreads"
34314                 ol_link_threads=posix
34315         fi
34316 fi
34317
34318
34319                 if test $ol_link_threads != no ; then
34320                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34321
34322                                                 save_CPPFLAGS="$CPPFLAGS"
34323                         save_LIBS="$LIBS"
34324                         LIBS="$LTHREAD_LIBS $LIBS"
34325
34326
34327
34328
34329 for ac_func in sched_yield pthread_yield thr_yield
34330 do
34331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34332 echo "$as_me:$LINENO: checking for $ac_func" >&5
34333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34334 if eval "test \"\${$as_ac_var+set}\" = set"; then
34335   echo $ECHO_N "(cached) $ECHO_C" >&6
34336 else
34337   cat >conftest.$ac_ext <<_ACEOF
34338 /* confdefs.h.  */
34339 _ACEOF
34340 cat confdefs.h >>conftest.$ac_ext
34341 cat >>conftest.$ac_ext <<_ACEOF
34342 /* end confdefs.h.  */
34343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34345 #define $ac_func innocuous_$ac_func
34346
34347 /* System header to define __stub macros and hopefully few prototypes,
34348     which can conflict with char $ac_func (); below.
34349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34350     <limits.h> exists even on freestanding compilers.  */
34351
34352 #ifdef __STDC__
34353 # include <limits.h>
34354 #else
34355 # include <assert.h>
34356 #endif
34357
34358 #undef $ac_func
34359
34360 /* Override any gcc2 internal prototype to avoid an error.  */
34361 #ifdef __cplusplus
34362 extern "C"
34363 {
34364 #endif
34365 /* We use char because int might match the return type of a gcc2
34366    builtin and then its argument prototype would still apply.  */
34367 char $ac_func ();
34368 /* The GNU C library defines this for functions which it implements
34369     to always fail with ENOSYS.  Some functions are actually named
34370     something starting with __ and the normal name is an alias.  */
34371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34372 choke me
34373 #else
34374 char (*f) () = $ac_func;
34375 #endif
34376 #ifdef __cplusplus
34377 }
34378 #endif
34379
34380 int
34381 main ()
34382 {
34383 return f != $ac_func;
34384   ;
34385   return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext conftest$ac_exeext
34389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34390   (eval $ac_link) 2>conftest.er1
34391   ac_status=$?
34392   grep -v '^ *+' conftest.er1 >conftest.err
34393   rm -f conftest.er1
34394   cat conftest.err >&5
34395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396   (exit $ac_status); } &&
34397          { ac_try='test -z "$ac_c_werror_flag"
34398                          || test ! -s conftest.err'
34399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400   (eval $ac_try) 2>&5
34401   ac_status=$?
34402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403   (exit $ac_status); }; } &&
34404          { ac_try='test -s conftest$ac_exeext'
34405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406   (eval $ac_try) 2>&5
34407   ac_status=$?
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); }; }; then
34410   eval "$as_ac_var=yes"
34411 else
34412   echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34414
34415 eval "$as_ac_var=no"
34416 fi
34417 rm -f conftest.err conftest.$ac_objext \
34418       conftest$ac_exeext conftest.$ac_ext
34419 fi
34420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34422 if test `eval echo '${'$as_ac_var'}'` = yes; then
34423   cat >>confdefs.h <<_ACEOF
34424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34425 _ACEOF
34426
34427 fi
34428 done
34429
34430
34431                         if test $ac_cv_func_sched_yield = no -a \
34432                                 $ac_cv_func_pthread_yield = no -a \
34433                                 $ac_cv_func_thr_yield = no ; then
34434                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34435 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34436 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34437   echo $ECHO_N "(cached) $ECHO_C" >&6
34438 else
34439   ac_check_lib_save_LIBS=$LIBS
34440 LIBS="-lrt  $LIBS"
34441 cat >conftest.$ac_ext <<_ACEOF
34442 /* confdefs.h.  */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h.  */
34447
34448 /* Override any gcc2 internal prototype to avoid an error.  */
34449 #ifdef __cplusplus
34450 extern "C"
34451 #endif
34452 /* We use char because int might match the return type of a gcc2
34453    builtin and then its argument prototype would still apply.  */
34454 char sched_yield ();
34455 int
34456 main ()
34457 {
34458 sched_yield ();
34459   ;
34460   return 0;
34461 }
34462 _ACEOF
34463 rm -f conftest.$ac_objext conftest$ac_exeext
34464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34465   (eval $ac_link) 2>conftest.er1
34466   ac_status=$?
34467   grep -v '^ *+' conftest.er1 >conftest.err
34468   rm -f conftest.er1
34469   cat conftest.err >&5
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); } &&
34472          { ac_try='test -z "$ac_c_werror_flag"
34473                          || test ! -s conftest.err'
34474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475   (eval $ac_try) 2>&5
34476   ac_status=$?
34477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); }; } &&
34479          { ac_try='test -s conftest$ac_exeext'
34480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481   (eval $ac_try) 2>&5
34482   ac_status=$?
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); }; }; then
34485   ac_cv_lib_rt_sched_yield=yes
34486 else
34487   echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34489
34490 ac_cv_lib_rt_sched_yield=no
34491 fi
34492 rm -f conftest.err conftest.$ac_objext \
34493       conftest$ac_exeext conftest.$ac_ext
34494 LIBS=$ac_check_lib_save_LIBS
34495 fi
34496 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34497 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34498 if test $ac_cv_lib_rt_sched_yield = yes; then
34499   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34500
34501 cat >>confdefs.h <<\_ACEOF
34502 #define HAVE_SCHED_YIELD 1
34503 _ACEOF
34504
34505                                         ac_cv_func_sched_yield=yes
34506 else
34507   ac_cv_func_sched_yield=no
34508 fi
34509
34510                         fi
34511                         if test $ac_cv_func_sched_yield = no -a \
34512                                 $ac_cv_func_pthread_yield = no -a \
34513                                 "$ac_cv_func_thr_yield" = no ; then
34514                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34515 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34516                         fi
34517
34518
34519
34520 for ac_func in pthread_kill pthread_rwlock_destroy
34521 do
34522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34523 echo "$as_me:$LINENO: checking for $ac_func" >&5
34524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34525 if eval "test \"\${$as_ac_var+set}\" = set"; then
34526   echo $ECHO_N "(cached) $ECHO_C" >&6
34527 else
34528   cat >conftest.$ac_ext <<_ACEOF
34529 /* confdefs.h.  */
34530 _ACEOF
34531 cat confdefs.h >>conftest.$ac_ext
34532 cat >>conftest.$ac_ext <<_ACEOF
34533 /* end confdefs.h.  */
34534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34536 #define $ac_func innocuous_$ac_func
34537
34538 /* System header to define __stub macros and hopefully few prototypes,
34539     which can conflict with char $ac_func (); below.
34540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34541     <limits.h> exists even on freestanding compilers.  */
34542
34543 #ifdef __STDC__
34544 # include <limits.h>
34545 #else
34546 # include <assert.h>
34547 #endif
34548
34549 #undef $ac_func
34550
34551 /* Override any gcc2 internal prototype to avoid an error.  */
34552 #ifdef __cplusplus
34553 extern "C"
34554 {
34555 #endif
34556 /* We use char because int might match the return type of a gcc2
34557    builtin and then its argument prototype would still apply.  */
34558 char $ac_func ();
34559 /* The GNU C library defines this for functions which it implements
34560     to always fail with ENOSYS.  Some functions are actually named
34561     something starting with __ and the normal name is an alias.  */
34562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34563 choke me
34564 #else
34565 char (*f) () = $ac_func;
34566 #endif
34567 #ifdef __cplusplus
34568 }
34569 #endif
34570
34571 int
34572 main ()
34573 {
34574 return f != $ac_func;
34575   ;
34576   return 0;
34577 }
34578 _ACEOF
34579 rm -f conftest.$ac_objext conftest$ac_exeext
34580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34581   (eval $ac_link) 2>conftest.er1
34582   ac_status=$?
34583   grep -v '^ *+' conftest.er1 >conftest.err
34584   rm -f conftest.er1
34585   cat conftest.err >&5
34586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587   (exit $ac_status); } &&
34588          { ac_try='test -z "$ac_c_werror_flag"
34589                          || test ! -s conftest.err'
34590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34591   (eval $ac_try) 2>&5
34592   ac_status=$?
34593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594   (exit $ac_status); }; } &&
34595          { ac_try='test -s conftest$ac_exeext'
34596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34597   (eval $ac_try) 2>&5
34598   ac_status=$?
34599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600   (exit $ac_status); }; }; then
34601   eval "$as_ac_var=yes"
34602 else
34603   echo "$as_me: failed program was:" >&5
34604 sed 's/^/| /' conftest.$ac_ext >&5
34605
34606 eval "$as_ac_var=no"
34607 fi
34608 rm -f conftest.err conftest.$ac_objext \
34609       conftest$ac_exeext conftest.$ac_ext
34610 fi
34611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34613 if test `eval echo '${'$as_ac_var'}'` = yes; then
34614   cat >>confdefs.h <<_ACEOF
34615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34616 _ACEOF
34617
34618 fi
34619 done
34620
34621
34622                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34623 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34624 if test "${ol_cv_func_pthread_detach+set}" = set; then
34625   echo $ECHO_N "(cached) $ECHO_C" >&6
34626 else
34627
34628                                                                 cat >conftest.$ac_ext <<_ACEOF
34629 /* confdefs.h.  */
34630 _ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h.  */
34634
34635 #include <pthread.h>
34636 #ifndef NULL
34637 #define NULL (void*)0
34638 #endif
34639
34640 int
34641 main ()
34642 {
34643 pthread_detach(NULL);
34644   ;
34645   return 0;
34646 }
34647 _ACEOF
34648 rm -f conftest.$ac_objext conftest$ac_exeext
34649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34650   (eval $ac_link) 2>conftest.er1
34651   ac_status=$?
34652   grep -v '^ *+' conftest.er1 >conftest.err
34653   rm -f conftest.er1
34654   cat conftest.err >&5
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } &&
34657          { ac_try='test -z "$ac_c_werror_flag"
34658                          || test ! -s conftest.err'
34659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660   (eval $ac_try) 2>&5
34661   ac_status=$?
34662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663   (exit $ac_status); }; } &&
34664          { ac_try='test -s conftest$ac_exeext'
34665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666   (eval $ac_try) 2>&5
34667   ac_status=$?
34668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669   (exit $ac_status); }; }; then
34670   ol_cv_func_pthread_detach=yes
34671 else
34672   echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34674
34675 ol_cv_func_pthread_detach=no
34676 fi
34677 rm -f conftest.err conftest.$ac_objext \
34678       conftest$ac_exeext conftest.$ac_ext
34679
34680 fi
34681 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34682 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34683
34684                         if test $ol_cv_func_pthread_detach = no ; then
34685                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34686 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34687    { (exit 1); exit 1; }; }
34688                         fi
34689
34690
34691 cat >>confdefs.h <<\_ACEOF
34692 #define HAVE_PTHREAD_DETACH 1
34693 _ACEOF
34694
34695
34696
34697
34698
34699
34700 for ac_func in \
34701                                 pthread_setconcurrency \
34702                                 pthread_getconcurrency \
34703                                 thr_setconcurrency \
34704                                 thr_getconcurrency \
34705
34706 do
34707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34708 echo "$as_me:$LINENO: checking for $ac_func" >&5
34709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34710 if eval "test \"\${$as_ac_var+set}\" = set"; then
34711   echo $ECHO_N "(cached) $ECHO_C" >&6
34712 else
34713   cat >conftest.$ac_ext <<_ACEOF
34714 /* confdefs.h.  */
34715 _ACEOF
34716 cat confdefs.h >>conftest.$ac_ext
34717 cat >>conftest.$ac_ext <<_ACEOF
34718 /* end confdefs.h.  */
34719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34721 #define $ac_func innocuous_$ac_func
34722
34723 /* System header to define __stub macros and hopefully few prototypes,
34724     which can conflict with char $ac_func (); below.
34725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34726     <limits.h> exists even on freestanding compilers.  */
34727
34728 #ifdef __STDC__
34729 # include <limits.h>
34730 #else
34731 # include <assert.h>
34732 #endif
34733
34734 #undef $ac_func
34735
34736 /* Override any gcc2 internal prototype to avoid an error.  */
34737 #ifdef __cplusplus
34738 extern "C"
34739 {
34740 #endif
34741 /* We use char because int might match the return type of a gcc2
34742    builtin and then its argument prototype would still apply.  */
34743 char $ac_func ();
34744 /* The GNU C library defines this for functions which it implements
34745     to always fail with ENOSYS.  Some functions are actually named
34746     something starting with __ and the normal name is an alias.  */
34747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34748 choke me
34749 #else
34750 char (*f) () = $ac_func;
34751 #endif
34752 #ifdef __cplusplus
34753 }
34754 #endif
34755
34756 int
34757 main ()
34758 {
34759 return f != $ac_func;
34760   ;
34761   return 0;
34762 }
34763 _ACEOF
34764 rm -f conftest.$ac_objext conftest$ac_exeext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34766   (eval $ac_link) 2>conftest.er1
34767   ac_status=$?
34768   grep -v '^ *+' conftest.er1 >conftest.err
34769   rm -f conftest.er1
34770   cat conftest.err >&5
34771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772   (exit $ac_status); } &&
34773          { ac_try='test -z "$ac_c_werror_flag"
34774                          || test ! -s conftest.err'
34775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776   (eval $ac_try) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; } &&
34780          { ac_try='test -s conftest$ac_exeext'
34781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782   (eval $ac_try) 2>&5
34783   ac_status=$?
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); }; }; then
34786   eval "$as_ac_var=yes"
34787 else
34788   echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34790
34791 eval "$as_ac_var=no"
34792 fi
34793 rm -f conftest.err conftest.$ac_objext \
34794       conftest$ac_exeext conftest.$ac_ext
34795 fi
34796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34798 if test `eval echo '${'$as_ac_var'}'` = yes; then
34799   cat >>confdefs.h <<_ACEOF
34800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34801 _ACEOF
34802
34803 fi
34804 done
34805
34806
34807
34808
34809 for ac_func in pthread_kill_other_threads_np
34810 do
34811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34812 echo "$as_me:$LINENO: checking for $ac_func" >&5
34813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34814 if eval "test \"\${$as_ac_var+set}\" = set"; then
34815   echo $ECHO_N "(cached) $ECHO_C" >&6
34816 else
34817   cat >conftest.$ac_ext <<_ACEOF
34818 /* confdefs.h.  */
34819 _ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h.  */
34823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34825 #define $ac_func innocuous_$ac_func
34826
34827 /* System header to define __stub macros and hopefully few prototypes,
34828     which can conflict with char $ac_func (); below.
34829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34830     <limits.h> exists even on freestanding compilers.  */
34831
34832 #ifdef __STDC__
34833 # include <limits.h>
34834 #else
34835 # include <assert.h>
34836 #endif
34837
34838 #undef $ac_func
34839
34840 /* Override any gcc2 internal prototype to avoid an error.  */
34841 #ifdef __cplusplus
34842 extern "C"
34843 {
34844 #endif
34845 /* We use char because int might match the return type of a gcc2
34846    builtin and then its argument prototype would still apply.  */
34847 char $ac_func ();
34848 /* The GNU C library defines this for functions which it implements
34849     to always fail with ENOSYS.  Some functions are actually named
34850     something starting with __ and the normal name is an alias.  */
34851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34852 choke me
34853 #else
34854 char (*f) () = $ac_func;
34855 #endif
34856 #ifdef __cplusplus
34857 }
34858 #endif
34859
34860 int
34861 main ()
34862 {
34863 return f != $ac_func;
34864   ;
34865   return 0;
34866 }
34867 _ACEOF
34868 rm -f conftest.$ac_objext conftest$ac_exeext
34869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34870   (eval $ac_link) 2>conftest.er1
34871   ac_status=$?
34872   grep -v '^ *+' conftest.er1 >conftest.err
34873   rm -f conftest.er1
34874   cat conftest.err >&5
34875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876   (exit $ac_status); } &&
34877          { ac_try='test -z "$ac_c_werror_flag"
34878                          || test ! -s conftest.err'
34879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880   (eval $ac_try) 2>&5
34881   ac_status=$?
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); }; } &&
34884          { ac_try='test -s conftest$ac_exeext'
34885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886   (eval $ac_try) 2>&5
34887   ac_status=$?
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); }; }; then
34890   eval "$as_ac_var=yes"
34891 else
34892   echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.$ac_ext >&5
34894
34895 eval "$as_ac_var=no"
34896 fi
34897 rm -f conftest.err conftest.$ac_objext \
34898       conftest$ac_exeext conftest.$ac_ext
34899 fi
34900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34902 if test `eval echo '${'$as_ac_var'}'` = yes; then
34903   cat >>confdefs.h <<_ACEOF
34904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34905 _ACEOF
34906
34907 fi
34908 done
34909
34910         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34911 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34912 if test "${ol_cv_sys_linux_threads+set}" = set; then
34913   echo $ECHO_N "(cached) $ECHO_C" >&6
34914 else
34915   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34916 fi
34917 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34918 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34919
34920
34921
34922
34923         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34924 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34925 if test "${ol_cv_linux_threads+set}" = set; then
34926   echo $ECHO_N "(cached) $ECHO_C" >&6
34927 else
34928
34929                 if test $ol_cv_header_linux_threads = yes -a \
34930                         $ol_cv_sys_linux_threads = yes; then
34931                         ol_cv_linux_threads=yes
34932                 elif test $ol_cv_header_linux_threads = no -a \
34933                         $ol_cv_sys_linux_threads = no; then
34934                         ol_cv_linux_threads=no
34935                 else
34936                         ol_cv_linux_threads=error
34937                 fi
34938
34939 fi
34940 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34941 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34942
34943
34944                         if test $ol_cv_linux_threads = error; then
34945                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34946 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34947    { (exit 1); exit 1; }; };
34948                         fi
34949
34950                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34951 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34952 if test "${ol_cv_pthread_create_works+set}" = set; then
34953   echo $ECHO_N "(cached) $ECHO_C" >&6
34954 else
34955
34956                         if test "$cross_compiling" = yes; then
34957                                 ol_cv_pthread_create_works=yes
34958 else
34959   cat >conftest.$ac_ext <<_ACEOF
34960 /* confdefs.h.  */
34961 _ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h.  */
34965
34966 /* pthread test headers */
34967 #include <pthread.h>
34968 #if HAVE_PTHREADS < 7
34969 #include <errno.h>
34970 #endif
34971 #ifndef NULL
34972 #define NULL (void*)0
34973 #endif
34974
34975 static void *task(p)
34976         void *p;
34977 {
34978         return (void *) (p == NULL);
34979 }
34980
34981
34982 int main(argc, argv)
34983         int argc;
34984         char **argv;
34985 {
34986
34987         /* pthread test function */
34988 #ifndef PTHREAD_CREATE_DETACHED
34989 #define PTHREAD_CREATE_DETACHED 1
34990 #endif
34991         pthread_t t;
34992         int status;
34993         int detach = PTHREAD_CREATE_DETACHED;
34994
34995 #if HAVE_PTHREADS > 4
34996         /* Final pthreads */
34997         pthread_attr_t attr;
34998
34999         status = pthread_attr_init(&attr);
35000         if( status ) return status;
35001
35002 #if HAVE_PTHREADS < 7
35003         status = pthread_attr_setdetachstate(&attr, &detach);
35004         if( status < 0 ) status = errno;
35005 #else
35006         status = pthread_attr_setdetachstate(&attr, detach);
35007 #endif
35008         if( status ) return status;
35009         status = pthread_create( &t, &attr, task, NULL );
35010 #if HAVE_PTHREADS < 7
35011         if( status < 0 ) status = errno;
35012 #endif
35013         if( status ) return status;
35014 #else
35015         /* Draft 4 pthreads */
35016         status = pthread_create( &t, pthread_attr_default, task, NULL );
35017         if( status ) return errno;
35018
35019         /* give thread a chance to complete */
35020         /* it should remain joinable and hence detachable */
35021         sleep( 1 );
35022
35023         status = pthread_detach( &t );
35024         if( status ) return errno;
35025 #endif
35026
35027 #ifdef HAVE_LINUX_THREADS
35028         pthread_kill_other_threads_np();
35029 #endif
35030
35031         return 0;
35032
35033 }
35034
35035 _ACEOF
35036 rm -f conftest$ac_exeext
35037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35038   (eval $ac_link) 2>&5
35039   ac_status=$?
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043   (eval $ac_try) 2>&5
35044   ac_status=$?
35045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046   (exit $ac_status); }; }; then
35047   ol_cv_pthread_create_works=yes
35048 else
35049   echo "$as_me: program exited with status $ac_status" >&5
35050 echo "$as_me: failed program was:" >&5
35051 sed 's/^/| /' conftest.$ac_ext >&5
35052
35053 ( exit $ac_status )
35054 ol_cv_pthread_create_works=no
35055 fi
35056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35057 fi
35058 fi
35059 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35060 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35061
35062                         if test $ol_cv_pthread_create_works = no ; then
35063                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35064 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35065    { (exit 1); exit 1; }; }
35066                         fi
35067
35068                                                 if test $ol_with_yielding_select = auto ; then
35069                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35070 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35071 if test "${ol_cv_pthread_select_yields+set}" = set; then
35072   echo $ECHO_N "(cached) $ECHO_C" >&6
35073 else
35074
35075                                 if test "$cross_compiling" = yes; then
35076   ol_cv_pthread_select_yields=cross
35077 else
35078   cat >conftest.$ac_ext <<_ACEOF
35079 /* confdefs.h.  */
35080 _ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h.  */
35084
35085 #include <sys/types.h>
35086 #include <sys/time.h>
35087 #include <unistd.h>
35088 #include <pthread.h>
35089 #ifndef NULL
35090 #define NULL (void*) 0
35091 #endif
35092
35093 static int fildes[2];
35094
35095 static void *task(p)
35096         void *p;
35097 {
35098         int i;
35099         struct timeval tv;
35100
35101         fd_set rfds;
35102
35103         tv.tv_sec=10;
35104         tv.tv_usec=0;
35105
35106         FD_ZERO(&rfds);
35107         FD_SET(fildes[0], &rfds);
35108
35109         /* we're not interested in any fds */
35110         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35111
35112         if(i < 0) {
35113                 perror("select");
35114                 exit(10);
35115         }
35116
35117         exit(0); /* if we exit here, the select blocked the whole process */
35118 }
35119
35120 int main(argc, argv)
35121         int argc;
35122         char **argv;
35123 {
35124         pthread_t t;
35125
35126         /* create a pipe to select */
35127         if(pipe(&fildes[0])) {
35128                 perror("select");
35129                 exit(1);
35130         }
35131
35132 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35133         (void) pthread_setconcurrency(2);
35134 #else
35135 #ifdef HAVE_THR_SETCONCURRENCY
35136         /* Set Solaris LWP concurrency to 2 */
35137         thr_setconcurrency(2);
35138 #endif
35139 #endif
35140
35141 #if HAVE_PTHREADS < 6
35142         pthread_create(&t, pthread_attr_default, task, NULL);
35143 #else
35144         pthread_create(&t, NULL, task, NULL);
35145 #endif
35146
35147         /* make sure task runs first */
35148 #if HAVE_THR_YIELD
35149         thr_yield();
35150 #elif defined( HAVE_SCHED_YIELD )
35151         sched_yield();
35152 #elif defined( HAVE_PTHREAD_YIELD )
35153         pthread_yield();
35154 #endif
35155
35156         exit(2);
35157 }
35158 _ACEOF
35159 rm -f conftest$ac_exeext
35160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35161   (eval $ac_link) 2>&5
35162   ac_status=$?
35163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35166   (eval $ac_try) 2>&5
35167   ac_status=$?
35168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169   (exit $ac_status); }; }; then
35170   ol_cv_pthread_select_yields=no
35171 else
35172   echo "$as_me: program exited with status $ac_status" >&5
35173 echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35175
35176 ( exit $ac_status )
35177 ol_cv_pthread_select_yields=yes
35178 fi
35179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35180 fi
35181 fi
35182 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35183 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35184
35185                                 if test $ol_cv_pthread_select_yields = cross ; then
35186                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35187 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35188    { (exit 1); exit 1; }; }
35189                                 fi
35190
35191                                 if test $ol_cv_pthread_select_yields = yes ; then
35192                                         ol_with_yielding_select=yes
35193                                 fi
35194                         fi
35195
35196                                                 CPPFLAGS="$save_CPPFLAGS"
35197                         LIBS="$save_LIBS"
35198                 else
35199                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35200 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35201    { (exit 1); exit 1; }; }
35202                 fi
35203         fi
35204
35205         if test $ol_with_threads = posix ; then
35206                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35207 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35208    { (exit 1); exit 1; }; }
35209         fi
35210 fi
35211
35212 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35213         -o $ol_with_threads = mach ; then
35214
35215
35216
35217 for ac_header in mach/cthreads.h cthreads.h
35218 do
35219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35221   echo "$as_me:$LINENO: checking for $ac_header" >&5
35222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35224   echo $ECHO_N "(cached) $ECHO_C" >&6
35225 fi
35226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35228 else
35229   # Is the header compilable?
35230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35232 cat >conftest.$ac_ext <<_ACEOF
35233 /* confdefs.h.  */
35234 _ACEOF
35235 cat confdefs.h >>conftest.$ac_ext
35236 cat >>conftest.$ac_ext <<_ACEOF
35237 /* end confdefs.h.  */
35238 $ac_includes_default
35239 #include <$ac_header>
35240 _ACEOF
35241 rm -f conftest.$ac_objext
35242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35243   (eval $ac_compile) 2>conftest.er1
35244   ac_status=$?
35245   grep -v '^ *+' conftest.er1 >conftest.err
35246   rm -f conftest.er1
35247   cat conftest.err >&5
35248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249   (exit $ac_status); } &&
35250          { ac_try='test -z "$ac_c_werror_flag"
35251                          || test ! -s conftest.err'
35252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253   (eval $ac_try) 2>&5
35254   ac_status=$?
35255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256   (exit $ac_status); }; } &&
35257          { ac_try='test -s conftest.$ac_objext'
35258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259   (eval $ac_try) 2>&5
35260   ac_status=$?
35261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262   (exit $ac_status); }; }; then
35263   ac_header_compiler=yes
35264 else
35265   echo "$as_me: failed program was:" >&5
35266 sed 's/^/| /' conftest.$ac_ext >&5
35267
35268 ac_header_compiler=no
35269 fi
35270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35272 echo "${ECHO_T}$ac_header_compiler" >&6
35273
35274 # Is the header present?
35275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35277 cat >conftest.$ac_ext <<_ACEOF
35278 /* confdefs.h.  */
35279 _ACEOF
35280 cat confdefs.h >>conftest.$ac_ext
35281 cat >>conftest.$ac_ext <<_ACEOF
35282 /* end confdefs.h.  */
35283 #include <$ac_header>
35284 _ACEOF
35285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35287   ac_status=$?
35288   grep -v '^ *+' conftest.er1 >conftest.err
35289   rm -f conftest.er1
35290   cat conftest.err >&5
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); } >/dev/null; then
35293   if test -s conftest.err; then
35294     ac_cpp_err=$ac_c_preproc_warn_flag
35295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35296   else
35297     ac_cpp_err=
35298   fi
35299 else
35300   ac_cpp_err=yes
35301 fi
35302 if test -z "$ac_cpp_err"; then
35303   ac_header_preproc=yes
35304 else
35305   echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35307
35308   ac_header_preproc=no
35309 fi
35310 rm -f conftest.err conftest.$ac_ext
35311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35312 echo "${ECHO_T}$ac_header_preproc" >&6
35313
35314 # So?  What about this header?
35315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35316   yes:no: )
35317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35321     ac_header_preproc=yes
35322     ;;
35323   no:yes:* )
35324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35326     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35327 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35328     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35330     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35331 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35334     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35336     (
35337       cat <<\_ASBOX
35338 ## ------------------------------------------ ##
35339 ## Report this to the AC_PACKAGE_NAME lists.  ##
35340 ## ------------------------------------------ ##
35341 _ASBOX
35342     ) |
35343       sed "s/^/$as_me: WARNING:     /" >&2
35344     ;;
35345 esac
35346 echo "$as_me:$LINENO: checking for $ac_header" >&5
35347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35349   echo $ECHO_N "(cached) $ECHO_C" >&6
35350 else
35351   eval "$as_ac_Header=\$ac_header_preproc"
35352 fi
35353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35355
35356 fi
35357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35358   cat >>confdefs.h <<_ACEOF
35359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35360 _ACEOF
35361
35362 fi
35363
35364 done
35365
35366         if test $ac_cv_header_mach_cthreads_h = yes ; then
35367                 ol_with_threads=found
35368
35369                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35370 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35371 if test "${ac_cv_func_cthread_fork+set}" = set; then
35372   echo $ECHO_N "(cached) $ECHO_C" >&6
35373 else
35374   cat >conftest.$ac_ext <<_ACEOF
35375 /* confdefs.h.  */
35376 _ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h.  */
35380 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35382 #define cthread_fork innocuous_cthread_fork
35383
35384 /* System header to define __stub macros and hopefully few prototypes,
35385     which can conflict with char cthread_fork (); below.
35386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35387     <limits.h> exists even on freestanding compilers.  */
35388
35389 #ifdef __STDC__
35390 # include <limits.h>
35391 #else
35392 # include <assert.h>
35393 #endif
35394
35395 #undef cthread_fork
35396
35397 /* Override any gcc2 internal prototype to avoid an error.  */
35398 #ifdef __cplusplus
35399 extern "C"
35400 {
35401 #endif
35402 /* We use char because int might match the return type of a gcc2
35403    builtin and then its argument prototype would still apply.  */
35404 char cthread_fork ();
35405 /* The GNU C library defines this for functions which it implements
35406     to always fail with ENOSYS.  Some functions are actually named
35407     something starting with __ and the normal name is an alias.  */
35408 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35409 choke me
35410 #else
35411 char (*f) () = cthread_fork;
35412 #endif
35413 #ifdef __cplusplus
35414 }
35415 #endif
35416
35417 int
35418 main ()
35419 {
35420 return f != cthread_fork;
35421   ;
35422   return 0;
35423 }
35424 _ACEOF
35425 rm -f conftest.$ac_objext conftest$ac_exeext
35426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35427   (eval $ac_link) 2>conftest.er1
35428   ac_status=$?
35429   grep -v '^ *+' conftest.er1 >conftest.err
35430   rm -f conftest.er1
35431   cat conftest.err >&5
35432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433   (exit $ac_status); } &&
35434          { ac_try='test -z "$ac_c_werror_flag"
35435                          || test ! -s conftest.err'
35436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35437   (eval $ac_try) 2>&5
35438   ac_status=$?
35439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440   (exit $ac_status); }; } &&
35441          { ac_try='test -s conftest$ac_exeext'
35442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443   (eval $ac_try) 2>&5
35444   ac_status=$?
35445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446   (exit $ac_status); }; }; then
35447   ac_cv_func_cthread_fork=yes
35448 else
35449   echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.$ac_ext >&5
35451
35452 ac_cv_func_cthread_fork=no
35453 fi
35454 rm -f conftest.err conftest.$ac_objext \
35455       conftest$ac_exeext conftest.$ac_ext
35456 fi
35457 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35458 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35459 if test $ac_cv_func_cthread_fork = yes; then
35460   ol_link_threads=yes
35461 fi
35462
35463
35464                 if test $ol_link_threads = no ; then
35465                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35466 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35467 if test "${ol_cv_cthread_all_load+set}" = set; then
35468   echo $ECHO_N "(cached) $ECHO_C" >&6
35469 else
35470
35471                                                                 save_LIBS="$LIBS"
35472                                 LIBS="-all_load $LIBS"
35473                                 cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h.  */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h.  */
35479 #include <mach/cthreads.h>
35480 int
35481 main ()
35482 {
35483
35484                                         cthread_fork((void *)0, (void *)0);
35485
35486   ;
35487   return 0;
35488 }
35489 _ACEOF
35490 rm -f conftest.$ac_objext conftest$ac_exeext
35491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35492   (eval $ac_link) 2>conftest.er1
35493   ac_status=$?
35494   grep -v '^ *+' conftest.er1 >conftest.err
35495   rm -f conftest.er1
35496   cat conftest.err >&5
35497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498   (exit $ac_status); } &&
35499          { ac_try='test -z "$ac_c_werror_flag"
35500                          || test ! -s conftest.err'
35501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502   (eval $ac_try) 2>&5
35503   ac_status=$?
35504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505   (exit $ac_status); }; } &&
35506          { ac_try='test -s conftest$ac_exeext'
35507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35508   (eval $ac_try) 2>&5
35509   ac_status=$?
35510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511   (exit $ac_status); }; }; then
35512   ol_cv_cthread_all_load=yes
35513 else
35514   echo "$as_me: failed program was:" >&5
35515 sed 's/^/| /' conftest.$ac_ext >&5
35516
35517 ol_cv_cthread_all_load=no
35518 fi
35519 rm -f conftest.err conftest.$ac_objext \
35520       conftest$ac_exeext conftest.$ac_ext
35521                                                                 LIBS="$save_LIBS"
35522
35523 fi
35524 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35525 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35526
35527                         if test $ol_cv_cthread_all_load = yes ; then
35528                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35529                                 ol_link_threads=mach
35530                                 ol_with_threads=found
35531                         fi
35532                 fi
35533
35534         elif test $ac_cv_header_cthreads_h = yes ; then
35535
35536                 ol_with_threads=found
35537
35538                                 save_LIBS="$LIBS"
35539                 LIBS="$LIBS -lthreads"
35540                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35541 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35542 if test "${ac_cv_func_cthread_fork+set}" = set; then
35543   echo $ECHO_N "(cached) $ECHO_C" >&6
35544 else
35545   cat >conftest.$ac_ext <<_ACEOF
35546 /* confdefs.h.  */
35547 _ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h.  */
35551 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35553 #define cthread_fork innocuous_cthread_fork
35554
35555 /* System header to define __stub macros and hopefully few prototypes,
35556     which can conflict with char cthread_fork (); below.
35557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35558     <limits.h> exists even on freestanding compilers.  */
35559
35560 #ifdef __STDC__
35561 # include <limits.h>
35562 #else
35563 # include <assert.h>
35564 #endif
35565
35566 #undef cthread_fork
35567
35568 /* Override any gcc2 internal prototype to avoid an error.  */
35569 #ifdef __cplusplus
35570 extern "C"
35571 {
35572 #endif
35573 /* We use char because int might match the return type of a gcc2
35574    builtin and then its argument prototype would still apply.  */
35575 char cthread_fork ();
35576 /* The GNU C library defines this for functions which it implements
35577     to always fail with ENOSYS.  Some functions are actually named
35578     something starting with __ and the normal name is an alias.  */
35579 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35580 choke me
35581 #else
35582 char (*f) () = cthread_fork;
35583 #endif
35584 #ifdef __cplusplus
35585 }
35586 #endif
35587
35588 int
35589 main ()
35590 {
35591 return f != cthread_fork;
35592   ;
35593   return 0;
35594 }
35595 _ACEOF
35596 rm -f conftest.$ac_objext conftest$ac_exeext
35597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35598   (eval $ac_link) 2>conftest.er1
35599   ac_status=$?
35600   grep -v '^ *+' conftest.er1 >conftest.err
35601   rm -f conftest.er1
35602   cat conftest.err >&5
35603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604   (exit $ac_status); } &&
35605          { ac_try='test -z "$ac_c_werror_flag"
35606                          || test ! -s conftest.err'
35607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608   (eval $ac_try) 2>&5
35609   ac_status=$?
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); }; } &&
35612          { ac_try='test -s conftest$ac_exeext'
35613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614   (eval $ac_try) 2>&5
35615   ac_status=$?
35616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617   (exit $ac_status); }; }; then
35618   ac_cv_func_cthread_fork=yes
35619 else
35620   echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35622
35623 ac_cv_func_cthread_fork=no
35624 fi
35625 rm -f conftest.err conftest.$ac_objext \
35626       conftest$ac_exeext conftest.$ac_ext
35627 fi
35628 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35629 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35630 if test $ac_cv_func_cthread_fork = yes; then
35631   ol_link_threads=yes
35632 fi
35633
35634                 LIBS="$save_LIBS"
35635
35636                 if test $ol_link_threads = yes ; then
35637                         LTHREAD_LIBS="-lthreads"
35638                         ol_link_threads=mach
35639                         ol_with_threads=found
35640                 else
35641                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35642 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35643    { (exit 1); exit 1; }; }
35644                 fi
35645
35646         elif test $ol_with_threads = mach ; then
35647                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35648 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35649    { (exit 1); exit 1; }; }
35650         fi
35651
35652         if test $ol_link_threads = mach ; then
35653
35654 cat >>confdefs.h <<\_ACEOF
35655 #define HAVE_MACH_CTHREADS 1
35656 _ACEOF
35657
35658         elif test $ol_with_threads = found ; then
35659                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35660 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35661    { (exit 1); exit 1; }; }
35662         fi
35663 fi
35664
35665 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35666         -o $ol_with_threads = pth ; then
35667
35668
35669 for ac_header in pth.h
35670 do
35671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35673   echo "$as_me:$LINENO: checking for $ac_header" >&5
35674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35676   echo $ECHO_N "(cached) $ECHO_C" >&6
35677 fi
35678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35680 else
35681   # Is the header compilable?
35682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35684 cat >conftest.$ac_ext <<_ACEOF
35685 /* confdefs.h.  */
35686 _ACEOF
35687 cat confdefs.h >>conftest.$ac_ext
35688 cat >>conftest.$ac_ext <<_ACEOF
35689 /* end confdefs.h.  */
35690 $ac_includes_default
35691 #include <$ac_header>
35692 _ACEOF
35693 rm -f conftest.$ac_objext
35694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35695   (eval $ac_compile) 2>conftest.er1
35696   ac_status=$?
35697   grep -v '^ *+' conftest.er1 >conftest.err
35698   rm -f conftest.er1
35699   cat conftest.err >&5
35700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701   (exit $ac_status); } &&
35702          { ac_try='test -z "$ac_c_werror_flag"
35703                          || test ! -s conftest.err'
35704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35705   (eval $ac_try) 2>&5
35706   ac_status=$?
35707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708   (exit $ac_status); }; } &&
35709          { ac_try='test -s conftest.$ac_objext'
35710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35711   (eval $ac_try) 2>&5
35712   ac_status=$?
35713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714   (exit $ac_status); }; }; then
35715   ac_header_compiler=yes
35716 else
35717   echo "$as_me: failed program was:" >&5
35718 sed 's/^/| /' conftest.$ac_ext >&5
35719
35720 ac_header_compiler=no
35721 fi
35722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35724 echo "${ECHO_T}$ac_header_compiler" >&6
35725
35726 # Is the header present?
35727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35729 cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735 #include <$ac_header>
35736 _ACEOF
35737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35739   ac_status=$?
35740   grep -v '^ *+' conftest.er1 >conftest.err
35741   rm -f conftest.er1
35742   cat conftest.err >&5
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); } >/dev/null; then
35745   if test -s conftest.err; then
35746     ac_cpp_err=$ac_c_preproc_warn_flag
35747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35748   else
35749     ac_cpp_err=
35750   fi
35751 else
35752   ac_cpp_err=yes
35753 fi
35754 if test -z "$ac_cpp_err"; then
35755   ac_header_preproc=yes
35756 else
35757   echo "$as_me: failed program was:" >&5
35758 sed 's/^/| /' conftest.$ac_ext >&5
35759
35760   ac_header_preproc=no
35761 fi
35762 rm -f conftest.err conftest.$ac_ext
35763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35764 echo "${ECHO_T}$ac_header_preproc" >&6
35765
35766 # So?  What about this header?
35767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35768   yes:no: )
35769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35773     ac_header_preproc=yes
35774     ;;
35775   no:yes:* )
35776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35788     (
35789       cat <<\_ASBOX
35790 ## ------------------------------------------ ##
35791 ## Report this to the AC_PACKAGE_NAME lists.  ##
35792 ## ------------------------------------------ ##
35793 _ASBOX
35794     ) |
35795       sed "s/^/$as_me: WARNING:     /" >&2
35796     ;;
35797 esac
35798 echo "$as_me:$LINENO: checking for $ac_header" >&5
35799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35801   echo $ECHO_N "(cached) $ECHO_C" >&6
35802 else
35803   eval "$as_ac_Header=\$ac_header_preproc"
35804 fi
35805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35807
35808 fi
35809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35810   cat >>confdefs.h <<_ACEOF
35811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35812 _ACEOF
35813
35814 fi
35815
35816 done
35817
35818
35819         if test $ac_cv_header_pth_h = yes ; then
35820                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35821 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35822 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35823   echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825   ac_check_lib_save_LIBS=$LIBS
35826 LIBS="-lpth  $LIBS"
35827 cat >conftest.$ac_ext <<_ACEOF
35828 /* confdefs.h.  */
35829 _ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h.  */
35833
35834 /* Override any gcc2 internal prototype to avoid an error.  */
35835 #ifdef __cplusplus
35836 extern "C"
35837 #endif
35838 /* We use char because int might match the return type of a gcc2
35839    builtin and then its argument prototype would still apply.  */
35840 char pth_version ();
35841 int
35842 main ()
35843 {
35844 pth_version ();
35845   ;
35846   return 0;
35847 }
35848 _ACEOF
35849 rm -f conftest.$ac_objext conftest$ac_exeext
35850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35851   (eval $ac_link) 2>conftest.er1
35852   ac_status=$?
35853   grep -v '^ *+' conftest.er1 >conftest.err
35854   rm -f conftest.er1
35855   cat conftest.err >&5
35856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857   (exit $ac_status); } &&
35858          { ac_try='test -z "$ac_c_werror_flag"
35859                          || test ! -s conftest.err'
35860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861   (eval $ac_try) 2>&5
35862   ac_status=$?
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); }; } &&
35865          { ac_try='test -s conftest$ac_exeext'
35866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867   (eval $ac_try) 2>&5
35868   ac_status=$?
35869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870   (exit $ac_status); }; }; then
35871   ac_cv_lib_pth_pth_version=yes
35872 else
35873   echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35875
35876 ac_cv_lib_pth_pth_version=no
35877 fi
35878 rm -f conftest.err conftest.$ac_objext \
35879       conftest$ac_exeext conftest.$ac_ext
35880 LIBS=$ac_check_lib_save_LIBS
35881 fi
35882 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35883 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35884 if test $ac_cv_lib_pth_pth_version = yes; then
35885   have_pth=yes
35886 else
35887   have_pth=no
35888 fi
35889
35890
35891                 if test $have_pth = yes ; then
35892
35893 cat >>confdefs.h <<\_ACEOF
35894 #define HAVE_GNU_PTH 1
35895 _ACEOF
35896
35897                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35898                         ol_link_threads=pth
35899                         ol_with_threads=found
35900
35901                         if test $ol_with_yielding_select = auto ; then
35902                                 ol_with_yielding_select=yes
35903                         fi
35904                 fi
35905         fi
35906 fi
35907
35908 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35909         -o $ol_with_threads = lwp ; then
35910
35911
35912
35913 for ac_header in thread.h synch.h
35914 do
35915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35917   echo "$as_me:$LINENO: checking for $ac_header" >&5
35918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35920   echo $ECHO_N "(cached) $ECHO_C" >&6
35921 fi
35922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35924 else
35925   # Is the header compilable?
35926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35928 cat >conftest.$ac_ext <<_ACEOF
35929 /* confdefs.h.  */
35930 _ACEOF
35931 cat confdefs.h >>conftest.$ac_ext
35932 cat >>conftest.$ac_ext <<_ACEOF
35933 /* end confdefs.h.  */
35934 $ac_includes_default
35935 #include <$ac_header>
35936 _ACEOF
35937 rm -f conftest.$ac_objext
35938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35939   (eval $ac_compile) 2>conftest.er1
35940   ac_status=$?
35941   grep -v '^ *+' conftest.er1 >conftest.err
35942   rm -f conftest.er1
35943   cat conftest.err >&5
35944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); } &&
35946          { ac_try='test -z "$ac_c_werror_flag"
35947                          || test ! -s conftest.err'
35948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949   (eval $ac_try) 2>&5
35950   ac_status=$?
35951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952   (exit $ac_status); }; } &&
35953          { ac_try='test -s conftest.$ac_objext'
35954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955   (eval $ac_try) 2>&5
35956   ac_status=$?
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); }; }; then
35959   ac_header_compiler=yes
35960 else
35961   echo "$as_me: failed program was:" >&5
35962 sed 's/^/| /' conftest.$ac_ext >&5
35963
35964 ac_header_compiler=no
35965 fi
35966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35968 echo "${ECHO_T}$ac_header_compiler" >&6
35969
35970 # Is the header present?
35971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35973 cat >conftest.$ac_ext <<_ACEOF
35974 /* confdefs.h.  */
35975 _ACEOF
35976 cat confdefs.h >>conftest.$ac_ext
35977 cat >>conftest.$ac_ext <<_ACEOF
35978 /* end confdefs.h.  */
35979 #include <$ac_header>
35980 _ACEOF
35981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35983   ac_status=$?
35984   grep -v '^ *+' conftest.er1 >conftest.err
35985   rm -f conftest.er1
35986   cat conftest.err >&5
35987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988   (exit $ac_status); } >/dev/null; then
35989   if test -s conftest.err; then
35990     ac_cpp_err=$ac_c_preproc_warn_flag
35991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35992   else
35993     ac_cpp_err=
35994   fi
35995 else
35996   ac_cpp_err=yes
35997 fi
35998 if test -z "$ac_cpp_err"; then
35999   ac_header_preproc=yes
36000 else
36001   echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36003
36004   ac_header_preproc=no
36005 fi
36006 rm -f conftest.err conftest.$ac_ext
36007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36008 echo "${ECHO_T}$ac_header_preproc" >&6
36009
36010 # So?  What about this header?
36011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36012   yes:no: )
36013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36017     ac_header_preproc=yes
36018     ;;
36019   no:yes:* )
36020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36032     (
36033       cat <<\_ASBOX
36034 ## ------------------------------------------ ##
36035 ## Report this to the AC_PACKAGE_NAME lists.  ##
36036 ## ------------------------------------------ ##
36037 _ASBOX
36038     ) |
36039       sed "s/^/$as_me: WARNING:     /" >&2
36040     ;;
36041 esac
36042 echo "$as_me:$LINENO: checking for $ac_header" >&5
36043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36045   echo $ECHO_N "(cached) $ECHO_C" >&6
36046 else
36047   eval "$as_ac_Header=\$ac_header_preproc"
36048 fi
36049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36051
36052 fi
36053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36054   cat >>confdefs.h <<_ACEOF
36055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36056 _ACEOF
36057
36058 fi
36059
36060 done
36061
36062         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36063                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36064 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36065 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36066   echo $ECHO_N "(cached) $ECHO_C" >&6
36067 else
36068   ac_check_lib_save_LIBS=$LIBS
36069 LIBS="-lthread  $LIBS"
36070 cat >conftest.$ac_ext <<_ACEOF
36071 /* confdefs.h.  */
36072 _ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h.  */
36076
36077 /* Override any gcc2 internal prototype to avoid an error.  */
36078 #ifdef __cplusplus
36079 extern "C"
36080 #endif
36081 /* We use char because int might match the return type of a gcc2
36082    builtin and then its argument prototype would still apply.  */
36083 char thr_create ();
36084 int
36085 main ()
36086 {
36087 thr_create ();
36088   ;
36089   return 0;
36090 }
36091 _ACEOF
36092 rm -f conftest.$ac_objext conftest$ac_exeext
36093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36094   (eval $ac_link) 2>conftest.er1
36095   ac_status=$?
36096   grep -v '^ *+' conftest.er1 >conftest.err
36097   rm -f conftest.er1
36098   cat conftest.err >&5
36099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100   (exit $ac_status); } &&
36101          { ac_try='test -z "$ac_c_werror_flag"
36102                          || test ! -s conftest.err'
36103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36104   (eval $ac_try) 2>&5
36105   ac_status=$?
36106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107   (exit $ac_status); }; } &&
36108          { ac_try='test -s conftest$ac_exeext'
36109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110   (eval $ac_try) 2>&5
36111   ac_status=$?
36112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113   (exit $ac_status); }; }; then
36114   ac_cv_lib_thread_thr_create=yes
36115 else
36116   echo "$as_me: failed program was:" >&5
36117 sed 's/^/| /' conftest.$ac_ext >&5
36118
36119 ac_cv_lib_thread_thr_create=no
36120 fi
36121 rm -f conftest.err conftest.$ac_objext \
36122       conftest$ac_exeext conftest.$ac_ext
36123 LIBS=$ac_check_lib_save_LIBS
36124 fi
36125 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36126 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36127 if test $ac_cv_lib_thread_thr_create = yes; then
36128   have_thr=yes
36129 else
36130   have_thr=no
36131 fi
36132
36133
36134                 if test $have_thr = yes ; then
36135
36136 cat >>confdefs.h <<\_ACEOF
36137 #define HAVE_THR 1
36138 _ACEOF
36139
36140                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36141                         ol_link_threads=thr
36142
36143                         if test $ol_with_yielding_select = auto ; then
36144                                 ol_with_yielding_select=yes
36145                         fi
36146
36147
36148
36149 for ac_func in \
36150                                 thr_setconcurrency \
36151                                 thr_getconcurrency \
36152
36153 do
36154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36155 echo "$as_me:$LINENO: checking for $ac_func" >&5
36156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36157 if eval "test \"\${$as_ac_var+set}\" = set"; then
36158   echo $ECHO_N "(cached) $ECHO_C" >&6
36159 else
36160   cat >conftest.$ac_ext <<_ACEOF
36161 /* confdefs.h.  */
36162 _ACEOF
36163 cat confdefs.h >>conftest.$ac_ext
36164 cat >>conftest.$ac_ext <<_ACEOF
36165 /* end confdefs.h.  */
36166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36168 #define $ac_func innocuous_$ac_func
36169
36170 /* System header to define __stub macros and hopefully few prototypes,
36171     which can conflict with char $ac_func (); below.
36172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36173     <limits.h> exists even on freestanding compilers.  */
36174
36175 #ifdef __STDC__
36176 # include <limits.h>
36177 #else
36178 # include <assert.h>
36179 #endif
36180
36181 #undef $ac_func
36182
36183 /* Override any gcc2 internal prototype to avoid an error.  */
36184 #ifdef __cplusplus
36185 extern "C"
36186 {
36187 #endif
36188 /* We use char because int might match the return type of a gcc2
36189    builtin and then its argument prototype would still apply.  */
36190 char $ac_func ();
36191 /* The GNU C library defines this for functions which it implements
36192     to always fail with ENOSYS.  Some functions are actually named
36193     something starting with __ and the normal name is an alias.  */
36194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36195 choke me
36196 #else
36197 char (*f) () = $ac_func;
36198 #endif
36199 #ifdef __cplusplus
36200 }
36201 #endif
36202
36203 int
36204 main ()
36205 {
36206 return f != $ac_func;
36207   ;
36208   return 0;
36209 }
36210 _ACEOF
36211 rm -f conftest.$ac_objext conftest$ac_exeext
36212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36213   (eval $ac_link) 2>conftest.er1
36214   ac_status=$?
36215   grep -v '^ *+' conftest.er1 >conftest.err
36216   rm -f conftest.er1
36217   cat conftest.err >&5
36218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219   (exit $ac_status); } &&
36220          { ac_try='test -z "$ac_c_werror_flag"
36221                          || test ! -s conftest.err'
36222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223   (eval $ac_try) 2>&5
36224   ac_status=$?
36225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226   (exit $ac_status); }; } &&
36227          { ac_try='test -s conftest$ac_exeext'
36228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36229   (eval $ac_try) 2>&5
36230   ac_status=$?
36231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232   (exit $ac_status); }; }; then
36233   eval "$as_ac_var=yes"
36234 else
36235   echo "$as_me: failed program was:" >&5
36236 sed 's/^/| /' conftest.$ac_ext >&5
36237
36238 eval "$as_ac_var=no"
36239 fi
36240 rm -f conftest.err conftest.$ac_objext \
36241       conftest$ac_exeext conftest.$ac_ext
36242 fi
36243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36245 if test `eval echo '${'$as_ac_var'}'` = yes; then
36246   cat >>confdefs.h <<_ACEOF
36247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36248 _ACEOF
36249
36250 fi
36251 done
36252
36253                 fi
36254         fi
36255
36256
36257 for ac_header in lwp/lwp.h
36258 do
36259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36261   echo "$as_me:$LINENO: checking for $ac_header" >&5
36262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36264   echo $ECHO_N "(cached) $ECHO_C" >&6
36265 fi
36266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36268 else
36269   # Is the header compilable?
36270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36272 cat >conftest.$ac_ext <<_ACEOF
36273 /* confdefs.h.  */
36274 _ACEOF
36275 cat confdefs.h >>conftest.$ac_ext
36276 cat >>conftest.$ac_ext <<_ACEOF
36277 /* end confdefs.h.  */
36278 $ac_includes_default
36279 #include <$ac_header>
36280 _ACEOF
36281 rm -f conftest.$ac_objext
36282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36283   (eval $ac_compile) 2>conftest.er1
36284   ac_status=$?
36285   grep -v '^ *+' conftest.er1 >conftest.err
36286   rm -f conftest.er1
36287   cat conftest.err >&5
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); } &&
36290          { ac_try='test -z "$ac_c_werror_flag"
36291                          || test ! -s conftest.err'
36292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293   (eval $ac_try) 2>&5
36294   ac_status=$?
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); }; } &&
36297          { ac_try='test -s conftest.$ac_objext'
36298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299   (eval $ac_try) 2>&5
36300   ac_status=$?
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); }; }; then
36303   ac_header_compiler=yes
36304 else
36305   echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36307
36308 ac_header_compiler=no
36309 fi
36310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36312 echo "${ECHO_T}$ac_header_compiler" >&6
36313
36314 # Is the header present?
36315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36317 cat >conftest.$ac_ext <<_ACEOF
36318 /* confdefs.h.  */
36319 _ACEOF
36320 cat confdefs.h >>conftest.$ac_ext
36321 cat >>conftest.$ac_ext <<_ACEOF
36322 /* end confdefs.h.  */
36323 #include <$ac_header>
36324 _ACEOF
36325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } >/dev/null; then
36333   if test -s conftest.err; then
36334     ac_cpp_err=$ac_c_preproc_warn_flag
36335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36336   else
36337     ac_cpp_err=
36338   fi
36339 else
36340   ac_cpp_err=yes
36341 fi
36342 if test -z "$ac_cpp_err"; then
36343   ac_header_preproc=yes
36344 else
36345   echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36347
36348   ac_header_preproc=no
36349 fi
36350 rm -f conftest.err conftest.$ac_ext
36351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36352 echo "${ECHO_T}$ac_header_preproc" >&6
36353
36354 # So?  What about this header?
36355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36356   yes:no: )
36357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36361     ac_header_preproc=yes
36362     ;;
36363   no:yes:* )
36364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36376     (
36377       cat <<\_ASBOX
36378 ## ------------------------------------------ ##
36379 ## Report this to the AC_PACKAGE_NAME lists.  ##
36380 ## ------------------------------------------ ##
36381 _ASBOX
36382     ) |
36383       sed "s/^/$as_me: WARNING:     /" >&2
36384     ;;
36385 esac
36386 echo "$as_me:$LINENO: checking for $ac_header" >&5
36387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36389   echo $ECHO_N "(cached) $ECHO_C" >&6
36390 else
36391   eval "$as_ac_Header=\$ac_header_preproc"
36392 fi
36393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36395
36396 fi
36397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36398   cat >>confdefs.h <<_ACEOF
36399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36400 _ACEOF
36401
36402 fi
36403
36404 done
36405
36406         if test $ac_cv_header_lwp_lwp_h = yes ; then
36407                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36408 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36409 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36410   echo $ECHO_N "(cached) $ECHO_C" >&6
36411 else
36412   ac_check_lib_save_LIBS=$LIBS
36413 LIBS="-llwp  $LIBS"
36414 cat >conftest.$ac_ext <<_ACEOF
36415 /* confdefs.h.  */
36416 _ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h.  */
36420
36421 /* Override any gcc2 internal prototype to avoid an error.  */
36422 #ifdef __cplusplus
36423 extern "C"
36424 #endif
36425 /* We use char because int might match the return type of a gcc2
36426    builtin and then its argument prototype would still apply.  */
36427 char lwp_create ();
36428 int
36429 main ()
36430 {
36431 lwp_create ();
36432   ;
36433   return 0;
36434 }
36435 _ACEOF
36436 rm -f conftest.$ac_objext conftest$ac_exeext
36437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36438   (eval $ac_link) 2>conftest.er1
36439   ac_status=$?
36440   grep -v '^ *+' conftest.er1 >conftest.err
36441   rm -f conftest.er1
36442   cat conftest.err >&5
36443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444   (exit $ac_status); } &&
36445          { ac_try='test -z "$ac_c_werror_flag"
36446                          || test ! -s conftest.err'
36447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448   (eval $ac_try) 2>&5
36449   ac_status=$?
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); }; } &&
36452          { ac_try='test -s conftest$ac_exeext'
36453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454   (eval $ac_try) 2>&5
36455   ac_status=$?
36456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457   (exit $ac_status); }; }; then
36458   ac_cv_lib_lwp_lwp_create=yes
36459 else
36460   echo "$as_me: failed program was:" >&5
36461 sed 's/^/| /' conftest.$ac_ext >&5
36462
36463 ac_cv_lib_lwp_lwp_create=no
36464 fi
36465 rm -f conftest.err conftest.$ac_objext \
36466       conftest$ac_exeext conftest.$ac_ext
36467 LIBS=$ac_check_lib_save_LIBS
36468 fi
36469 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36470 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36471 if test $ac_cv_lib_lwp_lwp_create = yes; then
36472   have_lwp=yes
36473 else
36474   have_lwp=no
36475 fi
36476
36477
36478                 if test $have_lwp = yes ; then
36479
36480 cat >>confdefs.h <<\_ACEOF
36481 #define HAVE_LWP 1
36482 _ACEOF
36483
36484                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36485                         ol_link_threads=lwp
36486
36487                         if test $ol_with_yielding_select = auto ; then
36488                                 ol_with_yielding_select=no
36489                         fi
36490                 fi
36491         fi
36492 fi
36493
36494 if test $ol_with_yielding_select = yes ; then
36495
36496 cat >>confdefs.h <<\_ACEOF
36497 #define HAVE_YIELDING_SELECT 1
36498 _ACEOF
36499
36500 fi
36501
36502 if test $ol_with_threads = manual ; then
36503                 ol_link_threads=yes
36504
36505         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36506 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36507
36508
36509
36510 for ac_header in pthread.h sched.h
36511 do
36512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36514   echo "$as_me:$LINENO: checking for $ac_header" >&5
36515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36517   echo $ECHO_N "(cached) $ECHO_C" >&6
36518 fi
36519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36521 else
36522   # Is the header compilable?
36523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36525 cat >conftest.$ac_ext <<_ACEOF
36526 /* confdefs.h.  */
36527 _ACEOF
36528 cat confdefs.h >>conftest.$ac_ext
36529 cat >>conftest.$ac_ext <<_ACEOF
36530 /* end confdefs.h.  */
36531 $ac_includes_default
36532 #include <$ac_header>
36533 _ACEOF
36534 rm -f conftest.$ac_objext
36535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36536   (eval $ac_compile) 2>conftest.er1
36537   ac_status=$?
36538   grep -v '^ *+' conftest.er1 >conftest.err
36539   rm -f conftest.er1
36540   cat conftest.err >&5
36541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542   (exit $ac_status); } &&
36543          { ac_try='test -z "$ac_c_werror_flag"
36544                          || test ! -s conftest.err'
36545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36546   (eval $ac_try) 2>&5
36547   ac_status=$?
36548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549   (exit $ac_status); }; } &&
36550          { ac_try='test -s conftest.$ac_objext'
36551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552   (eval $ac_try) 2>&5
36553   ac_status=$?
36554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555   (exit $ac_status); }; }; then
36556   ac_header_compiler=yes
36557 else
36558   echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36560
36561 ac_header_compiler=no
36562 fi
36563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36565 echo "${ECHO_T}$ac_header_compiler" >&6
36566
36567 # Is the header present?
36568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36570 cat >conftest.$ac_ext <<_ACEOF
36571 /* confdefs.h.  */
36572 _ACEOF
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h.  */
36576 #include <$ac_header>
36577 _ACEOF
36578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36580   ac_status=$?
36581   grep -v '^ *+' conftest.er1 >conftest.err
36582   rm -f conftest.er1
36583   cat conftest.err >&5
36584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585   (exit $ac_status); } >/dev/null; then
36586   if test -s conftest.err; then
36587     ac_cpp_err=$ac_c_preproc_warn_flag
36588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36589   else
36590     ac_cpp_err=
36591   fi
36592 else
36593   ac_cpp_err=yes
36594 fi
36595 if test -z "$ac_cpp_err"; then
36596   ac_header_preproc=yes
36597 else
36598   echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36600
36601   ac_header_preproc=no
36602 fi
36603 rm -f conftest.err conftest.$ac_ext
36604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36605 echo "${ECHO_T}$ac_header_preproc" >&6
36606
36607 # So?  What about this header?
36608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36609   yes:no: )
36610     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36614     ac_header_preproc=yes
36615     ;;
36616   no:yes:* )
36617     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36619     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36620 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36621     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36623     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36624 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36627     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36629     (
36630       cat <<\_ASBOX
36631 ## ------------------------------------------ ##
36632 ## Report this to the AC_PACKAGE_NAME lists.  ##
36633 ## ------------------------------------------ ##
36634 _ASBOX
36635     ) |
36636       sed "s/^/$as_me: WARNING:     /" >&2
36637     ;;
36638 esac
36639 echo "$as_me:$LINENO: checking for $ac_header" >&5
36640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36642   echo $ECHO_N "(cached) $ECHO_C" >&6
36643 else
36644   eval "$as_ac_Header=\$ac_header_preproc"
36645 fi
36646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36648
36649 fi
36650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36651   cat >>confdefs.h <<_ACEOF
36652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36653 _ACEOF
36654
36655 fi
36656
36657 done
36658
36659
36660
36661 for ac_func in sched_yield pthread_yield
36662 do
36663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36664 echo "$as_me:$LINENO: checking for $ac_func" >&5
36665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36666 if eval "test \"\${$as_ac_var+set}\" = set"; then
36667   echo $ECHO_N "(cached) $ECHO_C" >&6
36668 else
36669   cat >conftest.$ac_ext <<_ACEOF
36670 /* confdefs.h.  */
36671 _ACEOF
36672 cat confdefs.h >>conftest.$ac_ext
36673 cat >>conftest.$ac_ext <<_ACEOF
36674 /* end confdefs.h.  */
36675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36677 #define $ac_func innocuous_$ac_func
36678
36679 /* System header to define __stub macros and hopefully few prototypes,
36680     which can conflict with char $ac_func (); below.
36681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36682     <limits.h> exists even on freestanding compilers.  */
36683
36684 #ifdef __STDC__
36685 # include <limits.h>
36686 #else
36687 # include <assert.h>
36688 #endif
36689
36690 #undef $ac_func
36691
36692 /* Override any gcc2 internal prototype to avoid an error.  */
36693 #ifdef __cplusplus
36694 extern "C"
36695 {
36696 #endif
36697 /* We use char because int might match the return type of a gcc2
36698    builtin and then its argument prototype would still apply.  */
36699 char $ac_func ();
36700 /* The GNU C library defines this for functions which it implements
36701     to always fail with ENOSYS.  Some functions are actually named
36702     something starting with __ and the normal name is an alias.  */
36703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36704 choke me
36705 #else
36706 char (*f) () = $ac_func;
36707 #endif
36708 #ifdef __cplusplus
36709 }
36710 #endif
36711
36712 int
36713 main ()
36714 {
36715 return f != $ac_func;
36716   ;
36717   return 0;
36718 }
36719 _ACEOF
36720 rm -f conftest.$ac_objext conftest$ac_exeext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36722   (eval $ac_link) 2>conftest.er1
36723   ac_status=$?
36724   grep -v '^ *+' conftest.er1 >conftest.err
36725   rm -f conftest.er1
36726   cat conftest.err >&5
36727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728   (exit $ac_status); } &&
36729          { ac_try='test -z "$ac_c_werror_flag"
36730                          || test ! -s conftest.err'
36731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732   (eval $ac_try) 2>&5
36733   ac_status=$?
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); }; } &&
36736          { ac_try='test -s conftest$ac_exeext'
36737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738   (eval $ac_try) 2>&5
36739   ac_status=$?
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); }; }; then
36742   eval "$as_ac_var=yes"
36743 else
36744   echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36746
36747 eval "$as_ac_var=no"
36748 fi
36749 rm -f conftest.err conftest.$ac_objext \
36750       conftest$ac_exeext conftest.$ac_ext
36751 fi
36752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36754 if test `eval echo '${'$as_ac_var'}'` = yes; then
36755   cat >>confdefs.h <<_ACEOF
36756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36757 _ACEOF
36758
36759 fi
36760 done
36761
36762
36763         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36764 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36765 if test "${ol_cv_header_linux_threads+set}" = set; then
36766   echo $ECHO_N "(cached) $ECHO_C" >&6
36767 else
36768   cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774 #include <pthread.h>
36775 _ACEOF
36776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36777   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36778   ol_cv_header_linux_threads=yes
36779 else
36780   ol_cv_header_linux_threads=no
36781 fi
36782 rm -f conftest*
36783
36784
36785 fi
36786 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36787 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36788         if test $ol_cv_header_linux_threads = yes; then
36789
36790 cat >>confdefs.h <<\_ACEOF
36791 #define HAVE_LINUX_THREADS 1
36792 _ACEOF
36793
36794         fi
36795
36796
36797
36798 for ac_header in mach/cthreads.h
36799 do
36800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36802   echo "$as_me:$LINENO: checking for $ac_header" >&5
36803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36805   echo $ECHO_N "(cached) $ECHO_C" >&6
36806 fi
36807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36809 else
36810   # Is the header compilable?
36811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36813 cat >conftest.$ac_ext <<_ACEOF
36814 /* confdefs.h.  */
36815 _ACEOF
36816 cat confdefs.h >>conftest.$ac_ext
36817 cat >>conftest.$ac_ext <<_ACEOF
36818 /* end confdefs.h.  */
36819 $ac_includes_default
36820 #include <$ac_header>
36821 _ACEOF
36822 rm -f conftest.$ac_objext
36823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36824   (eval $ac_compile) 2>conftest.er1
36825   ac_status=$?
36826   grep -v '^ *+' conftest.er1 >conftest.err
36827   rm -f conftest.er1
36828   cat conftest.err >&5
36829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830   (exit $ac_status); } &&
36831          { ac_try='test -z "$ac_c_werror_flag"
36832                          || test ! -s conftest.err'
36833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36834   (eval $ac_try) 2>&5
36835   ac_status=$?
36836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837   (exit $ac_status); }; } &&
36838          { ac_try='test -s conftest.$ac_objext'
36839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36840   (eval $ac_try) 2>&5
36841   ac_status=$?
36842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843   (exit $ac_status); }; }; then
36844   ac_header_compiler=yes
36845 else
36846   echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36848
36849 ac_header_compiler=no
36850 fi
36851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36853 echo "${ECHO_T}$ac_header_compiler" >&6
36854
36855 # Is the header present?
36856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36858 cat >conftest.$ac_ext <<_ACEOF
36859 /* confdefs.h.  */
36860 _ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h.  */
36864 #include <$ac_header>
36865 _ACEOF
36866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36868   ac_status=$?
36869   grep -v '^ *+' conftest.er1 >conftest.err
36870   rm -f conftest.er1
36871   cat conftest.err >&5
36872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873   (exit $ac_status); } >/dev/null; then
36874   if test -s conftest.err; then
36875     ac_cpp_err=$ac_c_preproc_warn_flag
36876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36877   else
36878     ac_cpp_err=
36879   fi
36880 else
36881   ac_cpp_err=yes
36882 fi
36883 if test -z "$ac_cpp_err"; then
36884   ac_header_preproc=yes
36885 else
36886   echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36888
36889   ac_header_preproc=no
36890 fi
36891 rm -f conftest.err conftest.$ac_ext
36892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36893 echo "${ECHO_T}$ac_header_preproc" >&6
36894
36895 # So?  What about this header?
36896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36897   yes:no: )
36898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36902     ac_header_preproc=yes
36903     ;;
36904   no:yes:* )
36905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36917     (
36918       cat <<\_ASBOX
36919 ## ------------------------------------------ ##
36920 ## Report this to the AC_PACKAGE_NAME lists.  ##
36921 ## ------------------------------------------ ##
36922 _ASBOX
36923     ) |
36924       sed "s/^/$as_me: WARNING:     /" >&2
36925     ;;
36926 esac
36927 echo "$as_me:$LINENO: checking for $ac_header" >&5
36928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36930   echo $ECHO_N "(cached) $ECHO_C" >&6
36931 else
36932   eval "$as_ac_Header=\$ac_header_preproc"
36933 fi
36934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36936
36937 fi
36938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36939   cat >>confdefs.h <<_ACEOF
36940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36941 _ACEOF
36942
36943 fi
36944
36945 done
36946
36947
36948 for ac_header in lwp/lwp.h
36949 do
36950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36952   echo "$as_me:$LINENO: checking for $ac_header" >&5
36953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36955   echo $ECHO_N "(cached) $ECHO_C" >&6
36956 fi
36957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36959 else
36960   # Is the header compilable?
36961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36963 cat >conftest.$ac_ext <<_ACEOF
36964 /* confdefs.h.  */
36965 _ACEOF
36966 cat confdefs.h >>conftest.$ac_ext
36967 cat >>conftest.$ac_ext <<_ACEOF
36968 /* end confdefs.h.  */
36969 $ac_includes_default
36970 #include <$ac_header>
36971 _ACEOF
36972 rm -f conftest.$ac_objext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36974   (eval $ac_compile) 2>conftest.er1
36975   ac_status=$?
36976   grep -v '^ *+' conftest.er1 >conftest.err
36977   rm -f conftest.er1
36978   cat conftest.err >&5
36979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980   (exit $ac_status); } &&
36981          { ac_try='test -z "$ac_c_werror_flag"
36982                          || test ! -s conftest.err'
36983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984   (eval $ac_try) 2>&5
36985   ac_status=$?
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); }; } &&
36988          { ac_try='test -s conftest.$ac_objext'
36989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990   (eval $ac_try) 2>&5
36991   ac_status=$?
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); }; }; then
36994   ac_header_compiler=yes
36995 else
36996   echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36998
36999 ac_header_compiler=no
37000 fi
37001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37003 echo "${ECHO_T}$ac_header_compiler" >&6
37004
37005 # Is the header present?
37006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37008 cat >conftest.$ac_ext <<_ACEOF
37009 /* confdefs.h.  */
37010 _ACEOF
37011 cat confdefs.h >>conftest.$ac_ext
37012 cat >>conftest.$ac_ext <<_ACEOF
37013 /* end confdefs.h.  */
37014 #include <$ac_header>
37015 _ACEOF
37016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37018   ac_status=$?
37019   grep -v '^ *+' conftest.er1 >conftest.err
37020   rm -f conftest.er1
37021   cat conftest.err >&5
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); } >/dev/null; then
37024   if test -s conftest.err; then
37025     ac_cpp_err=$ac_c_preproc_warn_flag
37026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37027   else
37028     ac_cpp_err=
37029   fi
37030 else
37031   ac_cpp_err=yes
37032 fi
37033 if test -z "$ac_cpp_err"; then
37034   ac_header_preproc=yes
37035 else
37036   echo "$as_me: failed program was:" >&5
37037 sed 's/^/| /' conftest.$ac_ext >&5
37038
37039   ac_header_preproc=no
37040 fi
37041 rm -f conftest.err conftest.$ac_ext
37042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37043 echo "${ECHO_T}$ac_header_preproc" >&6
37044
37045 # So?  What about this header?
37046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37047   yes:no: )
37048     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37052     ac_header_preproc=yes
37053     ;;
37054   no:yes:* )
37055     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37057     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37058 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37059     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37061     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37062 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37065     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37067     (
37068       cat <<\_ASBOX
37069 ## ------------------------------------------ ##
37070 ## Report this to the AC_PACKAGE_NAME lists.  ##
37071 ## ------------------------------------------ ##
37072 _ASBOX
37073     ) |
37074       sed "s/^/$as_me: WARNING:     /" >&2
37075     ;;
37076 esac
37077 echo "$as_me:$LINENO: checking for $ac_header" >&5
37078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37080   echo $ECHO_N "(cached) $ECHO_C" >&6
37081 else
37082   eval "$as_ac_Header=\$ac_header_preproc"
37083 fi
37084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37086
37087 fi
37088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37089   cat >>confdefs.h <<_ACEOF
37090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37091 _ACEOF
37092
37093 fi
37094
37095 done
37096
37097
37098
37099 for ac_header in thread.h synch.h
37100 do
37101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37103   echo "$as_me:$LINENO: checking for $ac_header" >&5
37104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37106   echo $ECHO_N "(cached) $ECHO_C" >&6
37107 fi
37108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37110 else
37111   # Is the header compilable?
37112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37114 cat >conftest.$ac_ext <<_ACEOF
37115 /* confdefs.h.  */
37116 _ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h.  */
37120 $ac_includes_default
37121 #include <$ac_header>
37122 _ACEOF
37123 rm -f conftest.$ac_objext
37124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37125   (eval $ac_compile) 2>conftest.er1
37126   ac_status=$?
37127   grep -v '^ *+' conftest.er1 >conftest.err
37128   rm -f conftest.er1
37129   cat conftest.err >&5
37130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131   (exit $ac_status); } &&
37132          { ac_try='test -z "$ac_c_werror_flag"
37133                          || test ! -s conftest.err'
37134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135   (eval $ac_try) 2>&5
37136   ac_status=$?
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); }; } &&
37139          { ac_try='test -s conftest.$ac_objext'
37140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141   (eval $ac_try) 2>&5
37142   ac_status=$?
37143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144   (exit $ac_status); }; }; then
37145   ac_header_compiler=yes
37146 else
37147   echo "$as_me: failed program was:" >&5
37148 sed 's/^/| /' conftest.$ac_ext >&5
37149
37150 ac_header_compiler=no
37151 fi
37152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37154 echo "${ECHO_T}$ac_header_compiler" >&6
37155
37156 # Is the header present?
37157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37159 cat >conftest.$ac_ext <<_ACEOF
37160 /* confdefs.h.  */
37161 _ACEOF
37162 cat confdefs.h >>conftest.$ac_ext
37163 cat >>conftest.$ac_ext <<_ACEOF
37164 /* end confdefs.h.  */
37165 #include <$ac_header>
37166 _ACEOF
37167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37169   ac_status=$?
37170   grep -v '^ *+' conftest.er1 >conftest.err
37171   rm -f conftest.er1
37172   cat conftest.err >&5
37173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174   (exit $ac_status); } >/dev/null; then
37175   if test -s conftest.err; then
37176     ac_cpp_err=$ac_c_preproc_warn_flag
37177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37178   else
37179     ac_cpp_err=
37180   fi
37181 else
37182   ac_cpp_err=yes
37183 fi
37184 if test -z "$ac_cpp_err"; then
37185   ac_header_preproc=yes
37186 else
37187   echo "$as_me: failed program was:" >&5
37188 sed 's/^/| /' conftest.$ac_ext >&5
37189
37190   ac_header_preproc=no
37191 fi
37192 rm -f conftest.err conftest.$ac_ext
37193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37194 echo "${ECHO_T}$ac_header_preproc" >&6
37195
37196 # So?  What about this header?
37197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37198   yes:no: )
37199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37203     ac_header_preproc=yes
37204     ;;
37205   no:yes:* )
37206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37218     (
37219       cat <<\_ASBOX
37220 ## ------------------------------------------ ##
37221 ## Report this to the AC_PACKAGE_NAME lists.  ##
37222 ## ------------------------------------------ ##
37223 _ASBOX
37224     ) |
37225       sed "s/^/$as_me: WARNING:     /" >&2
37226     ;;
37227 esac
37228 echo "$as_me:$LINENO: checking for $ac_header" >&5
37229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37231   echo $ECHO_N "(cached) $ECHO_C" >&6
37232 else
37233   eval "$as_ac_Header=\$ac_header_preproc"
37234 fi
37235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37237
37238 fi
37239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37240   cat >>confdefs.h <<_ACEOF
37241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37242 _ACEOF
37243
37244 fi
37245
37246 done
37247
37248 fi
37249
37250 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37251                         cat >>confdefs.h <<\_ACEOF
37252 #define REENTRANT 1
37253 _ACEOF
37254
37255         cat >>confdefs.h <<\_ACEOF
37256 #define _REENTRANT 1
37257 _ACEOF
37258
37259         cat >>confdefs.h <<\_ACEOF
37260 #define THREAD_SAFE 1
37261 _ACEOF
37262
37263         cat >>confdefs.h <<\_ACEOF
37264 #define _THREAD_SAFE 1
37265 _ACEOF
37266
37267         cat >>confdefs.h <<\_ACEOF
37268 #define THREADSAFE 1
37269 _ACEOF
37270
37271         cat >>confdefs.h <<\_ACEOF
37272 #define _THREADSAFE 1
37273 _ACEOF
37274
37275         cat >>confdefs.h <<\_ACEOF
37276 #define _SGI_MP_SOURCE 1
37277 _ACEOF
37278
37279
37280                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37281 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37282 if test "${ol_cv_errno_thread_specific+set}" = set; then
37283   echo $ECHO_N "(cached) $ECHO_C" >&6
37284 else
37285
37286                 cat >conftest.$ac_ext <<_ACEOF
37287 /* confdefs.h.  */
37288 _ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h.  */
37292 #include <errno.h>
37293 int
37294 main ()
37295 {
37296 errno = 0;
37297   ;
37298   return 0;
37299 }
37300 _ACEOF
37301 rm -f conftest.$ac_objext conftest$ac_exeext
37302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37303   (eval $ac_link) 2>conftest.er1
37304   ac_status=$?
37305   grep -v '^ *+' conftest.er1 >conftest.err
37306   rm -f conftest.er1
37307   cat conftest.err >&5
37308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309   (exit $ac_status); } &&
37310          { ac_try='test -z "$ac_c_werror_flag"
37311                          || test ! -s conftest.err'
37312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313   (eval $ac_try) 2>&5
37314   ac_status=$?
37315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316   (exit $ac_status); }; } &&
37317          { ac_try='test -s conftest$ac_exeext'
37318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319   (eval $ac_try) 2>&5
37320   ac_status=$?
37321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322   (exit $ac_status); }; }; then
37323   ol_cv_errno_thread_specific=yes
37324 else
37325   echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37327
37328 ol_cv_errno_thread_specific=no
37329 fi
37330 rm -f conftest.err conftest.$ac_objext \
37331       conftest$ac_exeext conftest.$ac_ext
37332
37333 fi
37334 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37335 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37336
37337                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37338 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37339 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37340   echo $ECHO_N "(cached) $ECHO_C" >&6
37341 else
37342
37343                 cat >conftest.$ac_ext <<_ACEOF
37344 /* confdefs.h.  */
37345 _ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h.  */
37349 #include <netdb.h>
37350 int
37351 main ()
37352 {
37353 h_errno = 0;
37354   ;
37355   return 0;
37356 }
37357 _ACEOF
37358 rm -f conftest.$ac_objext conftest$ac_exeext
37359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37360   (eval $ac_link) 2>conftest.er1
37361   ac_status=$?
37362   grep -v '^ *+' conftest.er1 >conftest.err
37363   rm -f conftest.er1
37364   cat conftest.err >&5
37365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); } &&
37367          { ac_try='test -z "$ac_c_werror_flag"
37368                          || test ! -s conftest.err'
37369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37370   (eval $ac_try) 2>&5
37371   ac_status=$?
37372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373   (exit $ac_status); }; } &&
37374          { ac_try='test -s conftest$ac_exeext'
37375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37376   (eval $ac_try) 2>&5
37377   ac_status=$?
37378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379   (exit $ac_status); }; }; then
37380   ol_cv_h_errno_thread_specific=yes
37381 else
37382   echo "$as_me: failed program was:" >&5
37383 sed 's/^/| /' conftest.$ac_ext >&5
37384
37385 ol_cv_h_errno_thread_specific=no
37386 fi
37387 rm -f conftest.err conftest.$ac_objext \
37388       conftest$ac_exeext conftest.$ac_ext
37389
37390 fi
37391 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37392 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37393
37394         if test $ol_cv_errno_thread_specific != yes \
37395                 -o $ol_cv_h_errno_thread_specific != yes ; then
37396                 LIBS="$LTHREAD_LIBS $LIBS"
37397                 LTHREAD_LIBS=""
37398         fi
37399
37400 fi
37401
37402 if test $ol_link_threads = no ; then
37403         if test $ol_with_threads = yes ; then
37404                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37405 echo "$as_me: error: no suitable thread support" >&2;}
37406    { (exit 1); exit 1; }; }
37407         fi
37408
37409         if test $ol_with_threads = auto ; then
37410                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37411 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37412                 ol_with_threads=no
37413         fi
37414
37415
37416 cat >>confdefs.h <<\_ACEOF
37417 #define NO_THREADS 1
37418 _ACEOF
37419
37420         LTHREAD_LIBS=""
37421 fi
37422
37423 if test $ol_link_threads != no ; then
37424
37425 cat >>confdefs.h <<\_ACEOF
37426 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37427 _ACEOF
37428
37429 fi
37430
37431
37432
37433
37434 for ac_func in \
37435         ctime_r                 \
37436         gethostbyname_r gethostbyaddr_r \
37437
37438 do
37439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37440 echo "$as_me:$LINENO: checking for $ac_func" >&5
37441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37442 if eval "test \"\${$as_ac_var+set}\" = set"; then
37443   echo $ECHO_N "(cached) $ECHO_C" >&6
37444 else
37445   cat >conftest.$ac_ext <<_ACEOF
37446 /* confdefs.h.  */
37447 _ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h.  */
37451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37453 #define $ac_func innocuous_$ac_func
37454
37455 /* System header to define __stub macros and hopefully few prototypes,
37456     which can conflict with char $ac_func (); below.
37457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37458     <limits.h> exists even on freestanding compilers.  */
37459
37460 #ifdef __STDC__
37461 # include <limits.h>
37462 #else
37463 # include <assert.h>
37464 #endif
37465
37466 #undef $ac_func
37467
37468 /* Override any gcc2 internal prototype to avoid an error.  */
37469 #ifdef __cplusplus
37470 extern "C"
37471 {
37472 #endif
37473 /* We use char because int might match the return type of a gcc2
37474    builtin and then its argument prototype would still apply.  */
37475 char $ac_func ();
37476 /* The GNU C library defines this for functions which it implements
37477     to always fail with ENOSYS.  Some functions are actually named
37478     something starting with __ and the normal name is an alias.  */
37479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37480 choke me
37481 #else
37482 char (*f) () = $ac_func;
37483 #endif
37484 #ifdef __cplusplus
37485 }
37486 #endif
37487
37488 int
37489 main ()
37490 {
37491 return f != $ac_func;
37492   ;
37493   return 0;
37494 }
37495 _ACEOF
37496 rm -f conftest.$ac_objext conftest$ac_exeext
37497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37498   (eval $ac_link) 2>conftest.er1
37499   ac_status=$?
37500   grep -v '^ *+' conftest.er1 >conftest.err
37501   rm -f conftest.er1
37502   cat conftest.err >&5
37503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504   (exit $ac_status); } &&
37505          { ac_try='test -z "$ac_c_werror_flag"
37506                          || test ! -s conftest.err'
37507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508   (eval $ac_try) 2>&5
37509   ac_status=$?
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); }; } &&
37512          { ac_try='test -s conftest$ac_exeext'
37513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514   (eval $ac_try) 2>&5
37515   ac_status=$?
37516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517   (exit $ac_status); }; }; then
37518   eval "$as_ac_var=yes"
37519 else
37520   echo "$as_me: failed program was:" >&5
37521 sed 's/^/| /' conftest.$ac_ext >&5
37522
37523 eval "$as_ac_var=no"
37524 fi
37525 rm -f conftest.err conftest.$ac_objext \
37526       conftest$ac_exeext conftest.$ac_ext
37527 fi
37528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37530 if test `eval echo '${'$as_ac_var'}'` = yes; then
37531   cat >>confdefs.h <<_ACEOF
37532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37533 _ACEOF
37534
37535 fi
37536 done
37537
37538
37539 if test "$ac_cv_func_ctime_r" = no ; then
37540         ol_cv_func_ctime_r_nargs=0
37541 else
37542         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37543 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37544 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37545   echo $ECHO_N "(cached) $ECHO_C" >&6
37546 else
37547   cat >conftest.$ac_ext <<_ACEOF
37548 /* confdefs.h.  */
37549 _ACEOF
37550 cat confdefs.h >>conftest.$ac_ext
37551 cat >>conftest.$ac_ext <<_ACEOF
37552 /* end confdefs.h.  */
37553 #include <time.h>
37554 int
37555 main ()
37556 {
37557 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37558   ;
37559   return 0;
37560 }
37561 _ACEOF
37562 rm -f conftest.$ac_objext
37563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37564   (eval $ac_compile) 2>conftest.er1
37565   ac_status=$?
37566   grep -v '^ *+' conftest.er1 >conftest.err
37567   rm -f conftest.er1
37568   cat conftest.err >&5
37569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570   (exit $ac_status); } &&
37571          { ac_try='test -z "$ac_c_werror_flag"
37572                          || test ! -s conftest.err'
37573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37574   (eval $ac_try) 2>&5
37575   ac_status=$?
37576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577   (exit $ac_status); }; } &&
37578          { ac_try='test -s conftest.$ac_objext'
37579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580   (eval $ac_try) 2>&5
37581   ac_status=$?
37582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583   (exit $ac_status); }; }; then
37584   ol_cv_func_ctime_r_nargs3=yes
37585 else
37586   echo "$as_me: failed program was:" >&5
37587 sed 's/^/| /' conftest.$ac_ext >&5
37588
37589 ol_cv_func_ctime_r_nargs3=no
37590 fi
37591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37592
37593         cat >conftest.$ac_ext <<_ACEOF
37594 /* confdefs.h.  */
37595 _ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h.  */
37599 #include <time.h>
37600 int
37601 main ()
37602 {
37603 time_t ti; char *buffer; ctime_r(&ti,buffer);
37604   ;
37605   return 0;
37606 }
37607 _ACEOF
37608 rm -f conftest.$ac_objext
37609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37610   (eval $ac_compile) 2>conftest.er1
37611   ac_status=$?
37612   grep -v '^ *+' conftest.er1 >conftest.err
37613   rm -f conftest.er1
37614   cat conftest.err >&5
37615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616   (exit $ac_status); } &&
37617          { ac_try='test -z "$ac_c_werror_flag"
37618                          || test ! -s conftest.err'
37619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620   (eval $ac_try) 2>&5
37621   ac_status=$?
37622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623   (exit $ac_status); }; } &&
37624          { ac_try='test -s conftest.$ac_objext'
37625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626   (eval $ac_try) 2>&5
37627   ac_status=$?
37628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629   (exit $ac_status); }; }; then
37630   ol_cv_func_ctime_r_nargs2=yes
37631 else
37632   echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37634
37635 ol_cv_func_ctime_r_nargs2=no
37636 fi
37637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37638
37639         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37640                 $ol_cv_func_ctime_r_nargs2 = no ; then
37641
37642                 ol_cv_func_ctime_r_nargs=3
37643
37644         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37645                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37646
37647                 ol_cv_func_ctime_r_nargs=2
37648
37649         else
37650                 ol_cv_func_ctime_r_nargs=0
37651         fi
37652
37653 fi
37654 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37655 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37656
37657   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37658
37659 cat >>confdefs.h <<_ACEOF
37660 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37661 _ACEOF
37662
37663   fi
37664
37665 fi
37666
37667 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37668         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37669 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37670 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37671   echo $ECHO_N "(cached) $ECHO_C" >&6
37672 else
37673   cat >conftest.$ac_ext <<_ACEOF
37674 /* confdefs.h.  */
37675 _ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h.  */
37679 #include <sys/types.h>
37680 #include <sys/socket.h>
37681 #include <netinet/in.h>
37682 #include <netdb.h>
37683 #define BUFSIZE (sizeof(struct hostent)+10)
37684 int
37685 main ()
37686 {
37687 struct hostent hent; char buffer[BUFSIZE];
37688                 int bufsize=BUFSIZE;int h_errno;
37689                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37690                         buffer, bufsize, &h_errno);
37691   ;
37692   return 0;
37693 }
37694 _ACEOF
37695 rm -f conftest.$ac_objext
37696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37697   (eval $ac_compile) 2>conftest.er1
37698   ac_status=$?
37699   grep -v '^ *+' conftest.er1 >conftest.err
37700   rm -f conftest.er1
37701   cat conftest.err >&5
37702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703   (exit $ac_status); } &&
37704          { ac_try='test -z "$ac_c_werror_flag"
37705                          || test ! -s conftest.err'
37706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37707   (eval $ac_try) 2>&5
37708   ac_status=$?
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); }; } &&
37711          { ac_try='test -s conftest.$ac_objext'
37712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713   (eval $ac_try) 2>&5
37714   ac_status=$?
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); }; }; then
37717   ol_cv_func_gethostbyname_r_nargs5=yes
37718 else
37719   echo "$as_me: failed program was:" >&5
37720 sed 's/^/| /' conftest.$ac_ext >&5
37721
37722 ol_cv_func_gethostbyname_r_nargs5=no
37723 fi
37724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37725
37726         cat >conftest.$ac_ext <<_ACEOF
37727 /* confdefs.h.  */
37728 _ACEOF
37729 cat confdefs.h >>conftest.$ac_ext
37730 cat >>conftest.$ac_ext <<_ACEOF
37731 /* end confdefs.h.  */
37732 #include <sys/types.h>
37733 #include <sys/socket.h>
37734 #include <netinet/in.h>
37735 #include <netdb.h>
37736 #define BUFSIZE (sizeof(struct hostent)+10)
37737 int
37738 main ()
37739 {
37740 struct hostent hent;struct hostent *rhent;
37741                 char buffer[BUFSIZE];
37742                 int bufsize=BUFSIZE;int h_errno;
37743                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37744                         &rhent, &h_errno);
37745   ;
37746   return 0;
37747 }
37748 _ACEOF
37749 rm -f conftest.$ac_objext
37750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37751   (eval $ac_compile) 2>conftest.er1
37752   ac_status=$?
37753   grep -v '^ *+' conftest.er1 >conftest.err
37754   rm -f conftest.er1
37755   cat conftest.err >&5
37756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757   (exit $ac_status); } &&
37758          { ac_try='test -z "$ac_c_werror_flag"
37759                          || test ! -s conftest.err'
37760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761   (eval $ac_try) 2>&5
37762   ac_status=$?
37763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764   (exit $ac_status); }; } &&
37765          { ac_try='test -s conftest.$ac_objext'
37766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767   (eval $ac_try) 2>&5
37768   ac_status=$?
37769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770   (exit $ac_status); }; }; then
37771   ol_cv_func_gethostbyname_r_nargs6=yes
37772 else
37773   echo "$as_me: failed program was:" >&5
37774 sed 's/^/| /' conftest.$ac_ext >&5
37775
37776 ol_cv_func_gethostbyname_r_nargs6=no
37777 fi
37778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37779
37780         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37781                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37782
37783                 ol_cv_func_gethostbyname_r_nargs=5
37784
37785         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37786                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37787
37788                 ol_cv_func_gethostbyname_r_nargs=6
37789
37790         else
37791                 ol_cv_func_gethostbyname_r_nargs=0
37792         fi
37793
37794 fi
37795 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37796 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37797   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37798
37799 cat >>confdefs.h <<_ACEOF
37800 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37801 _ACEOF
37802
37803   fi
37804
37805 else
37806         ol_cv_func_gethostbyname_r_nargs=0
37807 fi
37808
37809 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37810         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37811 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37812 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37813   echo $ECHO_N "(cached) $ECHO_C" >&6
37814 else
37815   cat >conftest.$ac_ext <<_ACEOF
37816 /* confdefs.h.  */
37817 _ACEOF
37818 cat confdefs.h >>conftest.$ac_ext
37819 cat >>conftest.$ac_ext <<_ACEOF
37820 /* end confdefs.h.  */
37821 #include <sys/types.h>
37822 #include <sys/socket.h>
37823 #include <netinet/in.h>
37824 #include <netdb.h>
37825 #define BUFSIZE (sizeof(struct hostent)+10)
37826 int
37827 main ()
37828 {
37829 struct hostent hent; char buffer[BUFSIZE];
37830             struct in_addr add;
37831             size_t alen=sizeof(struct in_addr);
37832             int bufsize=BUFSIZE;int h_errno;
37833                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37834                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37835   ;
37836   return 0;
37837 }
37838 _ACEOF
37839 rm -f conftest.$ac_objext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37841   (eval $ac_compile) 2>conftest.er1
37842   ac_status=$?
37843   grep -v '^ *+' conftest.er1 >conftest.err
37844   rm -f conftest.er1
37845   cat conftest.err >&5
37846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847   (exit $ac_status); } &&
37848          { ac_try='test -z "$ac_c_werror_flag"
37849                          || test ! -s conftest.err'
37850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851   (eval $ac_try) 2>&5
37852   ac_status=$?
37853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854   (exit $ac_status); }; } &&
37855          { ac_try='test -s conftest.$ac_objext'
37856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857   (eval $ac_try) 2>&5
37858   ac_status=$?
37859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860   (exit $ac_status); }; }; then
37861   ol_cv_func_gethostbyaddr_r_nargs7=yes
37862 else
37863   echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37865
37866 ol_cv_func_gethostbyaddr_r_nargs7=no
37867 fi
37868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37869
37870         cat >conftest.$ac_ext <<_ACEOF
37871 /* confdefs.h.  */
37872 _ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h.  */
37876 #include <sys/types.h>
37877 #include <sys/socket.h>
37878 #include <netinet/in.h>
37879 #include <netdb.h>
37880 #define BUFSIZE (sizeof(struct hostent)+10)
37881 int
37882 main ()
37883 {
37884 struct hostent hent;
37885                 struct hostent *rhent; char buffer[BUFSIZE];
37886                 struct in_addr add;
37887                 size_t alen=sizeof(struct in_addr);
37888                 int bufsize=BUFSIZE;int h_errno;
37889                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37890                         alen, AF_INET, &hent, buffer, bufsize,
37891                         &rhent, &h_errno);
37892   ;
37893   return 0;
37894 }
37895 _ACEOF
37896 rm -f conftest.$ac_objext
37897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37898   (eval $ac_compile) 2>conftest.er1
37899   ac_status=$?
37900   grep -v '^ *+' conftest.er1 >conftest.err
37901   rm -f conftest.er1
37902   cat conftest.err >&5
37903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904   (exit $ac_status); } &&
37905          { ac_try='test -z "$ac_c_werror_flag"
37906                          || test ! -s conftest.err'
37907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908   (eval $ac_try) 2>&5
37909   ac_status=$?
37910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911   (exit $ac_status); }; } &&
37912          { ac_try='test -s conftest.$ac_objext'
37913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914   (eval $ac_try) 2>&5
37915   ac_status=$?
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); }; }; then
37918   ol_cv_func_gethostbyaddr_r_nargs8=yes
37919 else
37920   echo "$as_me: failed program was:" >&5
37921 sed 's/^/| /' conftest.$ac_ext >&5
37922
37923 ol_cv_func_gethostbyaddr_r_nargs8=no
37924 fi
37925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37926
37927         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37928                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37929
37930                 ol_cv_func_gethostbyaddr_r_nargs=7
37931
37932         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37933                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37934
37935                 ol_cv_func_gethostbyaddr_r_nargs=8
37936
37937         else
37938                 ol_cv_func_gethostbyaddr_r_nargs=0
37939         fi
37940
37941 fi
37942 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37943 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37944   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37945
37946 cat >>confdefs.h <<_ACEOF
37947 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37948 _ACEOF
37949
37950   fi
37951
37952 else
37953         ol_cv_func_gethostbyaddr_r_nargs=0
37954 fi
37955
37956 ol_link_ldbm=no
37957
37958 if test $ol_enable_ldbm_api = auto \
37959         -o $ol_enable_ldbm_api = berkeley \
37960         -o $ol_enable_ldbm_api = bcompat ; then
37961
37962         if test $ol_enable_ldbm_api = bcompat; then \
37963
37964
37965 for ac_header in db_185.h db.h
37966 do
37967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37969   echo "$as_me:$LINENO: checking for $ac_header" >&5
37970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37972   echo $ECHO_N "(cached) $ECHO_C" >&6
37973 fi
37974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37976 else
37977   # Is the header compilable?
37978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37980 cat >conftest.$ac_ext <<_ACEOF
37981 /* confdefs.h.  */
37982 _ACEOF
37983 cat confdefs.h >>conftest.$ac_ext
37984 cat >>conftest.$ac_ext <<_ACEOF
37985 /* end confdefs.h.  */
37986 $ac_includes_default
37987 #include <$ac_header>
37988 _ACEOF
37989 rm -f conftest.$ac_objext
37990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37991   (eval $ac_compile) 2>conftest.er1
37992   ac_status=$?
37993   grep -v '^ *+' conftest.er1 >conftest.err
37994   rm -f conftest.er1
37995   cat conftest.err >&5
37996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997   (exit $ac_status); } &&
37998          { ac_try='test -z "$ac_c_werror_flag"
37999                          || test ! -s conftest.err'
38000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001   (eval $ac_try) 2>&5
38002   ac_status=$?
38003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004   (exit $ac_status); }; } &&
38005          { ac_try='test -s conftest.$ac_objext'
38006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38007   (eval $ac_try) 2>&5
38008   ac_status=$?
38009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010   (exit $ac_status); }; }; then
38011   ac_header_compiler=yes
38012 else
38013   echo "$as_me: failed program was:" >&5
38014 sed 's/^/| /' conftest.$ac_ext >&5
38015
38016 ac_header_compiler=no
38017 fi
38018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38020 echo "${ECHO_T}$ac_header_compiler" >&6
38021
38022 # Is the header present?
38023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38025 cat >conftest.$ac_ext <<_ACEOF
38026 /* confdefs.h.  */
38027 _ACEOF
38028 cat confdefs.h >>conftest.$ac_ext
38029 cat >>conftest.$ac_ext <<_ACEOF
38030 /* end confdefs.h.  */
38031 #include <$ac_header>
38032 _ACEOF
38033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38035   ac_status=$?
38036   grep -v '^ *+' conftest.er1 >conftest.err
38037   rm -f conftest.er1
38038   cat conftest.err >&5
38039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040   (exit $ac_status); } >/dev/null; then
38041   if test -s conftest.err; then
38042     ac_cpp_err=$ac_c_preproc_warn_flag
38043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38044   else
38045     ac_cpp_err=
38046   fi
38047 else
38048   ac_cpp_err=yes
38049 fi
38050 if test -z "$ac_cpp_err"; then
38051   ac_header_preproc=yes
38052 else
38053   echo "$as_me: failed program was:" >&5
38054 sed 's/^/| /' conftest.$ac_ext >&5
38055
38056   ac_header_preproc=no
38057 fi
38058 rm -f conftest.err conftest.$ac_ext
38059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38060 echo "${ECHO_T}$ac_header_preproc" >&6
38061
38062 # So?  What about this header?
38063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38064   yes:no: )
38065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38069     ac_header_preproc=yes
38070     ;;
38071   no:yes:* )
38072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38074     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38075 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38078     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38079 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38084     (
38085       cat <<\_ASBOX
38086 ## ------------------------------------------ ##
38087 ## Report this to the AC_PACKAGE_NAME lists.  ##
38088 ## ------------------------------------------ ##
38089 _ASBOX
38090     ) |
38091       sed "s/^/$as_me: WARNING:     /" >&2
38092     ;;
38093 esac
38094 echo "$as_me:$LINENO: checking for $ac_header" >&5
38095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38097   echo $ECHO_N "(cached) $ECHO_C" >&6
38098 else
38099   eval "$as_ac_Header=\$ac_header_preproc"
38100 fi
38101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38103
38104 fi
38105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38106   cat >>confdefs.h <<_ACEOF
38107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38108 _ACEOF
38109
38110 fi
38111
38112 done
38113
38114 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38115         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38116 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38117 if test "${ol_cv_header_db1+set}" = set; then
38118   echo $ECHO_N "(cached) $ECHO_C" >&6
38119 else
38120
38121                 cat >conftest.$ac_ext <<_ACEOF
38122 /* confdefs.h.  */
38123 _ACEOF
38124 cat confdefs.h >>conftest.$ac_ext
38125 cat >>conftest.$ac_ext <<_ACEOF
38126 /* end confdefs.h.  */
38127
38128 #if HAVE_DB_185_H
38129 #       include <db_185.h>
38130 #else
38131 #       include <db.h>
38132 #endif
38133
38134  /* this check could be improved */
38135 #ifndef DB_VERSION_MAJOR
38136 #       define DB_VERSION_MAJOR 1
38137 #endif
38138
38139 #if DB_VERSION_MAJOR == 1
38140         __db_version_1
38141 #endif
38142
38143 _ACEOF
38144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38145   $EGREP "__db_version_1" >/dev/null 2>&1; then
38146   ol_cv_header_db1=yes
38147 else
38148   ol_cv_header_db1=no
38149 fi
38150 rm -f conftest*
38151
38152 fi
38153 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38154 echo "${ECHO_T}$ol_cv_header_db1" >&6
38155
38156         if test $ol_cv_header_db1 = yes ; then
38157                 ol_cv_lib_db=no
38158 if test $ol_cv_lib_db = no ; then
38159         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38160 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38161 if test "${ol_cv_db_none+set}" = set; then
38162   echo $ECHO_N "(cached) $ECHO_C" >&6
38163 else
38164
38165         ol_DB_LIB=
38166         ol_LIBS=$LIBS
38167         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38168
38169         cat >conftest.$ac_ext <<_ACEOF
38170 /* confdefs.h.  */
38171 _ACEOF
38172 cat confdefs.h >>conftest.$ac_ext
38173 cat >>conftest.$ac_ext <<_ACEOF
38174 /* end confdefs.h.  */
38175
38176 #ifdef HAVE_DB_185_H
38177 # include <db_185.h>
38178 #else
38179 # include <db.h>
38180 #endif
38181
38182 #ifndef DB_VERSION_MAJOR
38183 # define DB_VERSION_MAJOR 1
38184 #endif
38185
38186 #ifndef NULL
38187 #define NULL ((void*)0)
38188 #endif
38189
38190 int
38191 main ()
38192 {
38193
38194 #if DB_VERSION_MAJOR > 1
38195         {
38196                 char *version;
38197                 int major, minor, patch;
38198
38199                 version = db_version( &major, &minor, &patch );
38200
38201                 if( major != DB_VERSION_MAJOR ||
38202                         minor < DB_VERSION_MINOR )
38203                 {
38204                         printf("Berkeley DB version mismatch\n"
38205                                 "\theader: %s\n\tlibrary: %s\n",
38206                                 DB_VERSION_STRING, version);
38207                         return 1;
38208                 }
38209         }
38210 #endif
38211
38212 #if DB_VERSION_MAJOR > 2
38213         db_env_create( NULL, 0 );
38214 #elif DB_VERSION_MAJOR > 1
38215         db_appexit( NULL );
38216 #else
38217         (void) dbopen( NULL, 0, 0, 0, NULL);
38218 #endif
38219
38220   ;
38221   return 0;
38222 }
38223 _ACEOF
38224 rm -f conftest.$ac_objext conftest$ac_exeext
38225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38226   (eval $ac_link) 2>conftest.er1
38227   ac_status=$?
38228   grep -v '^ *+' conftest.er1 >conftest.err
38229   rm -f conftest.er1
38230   cat conftest.err >&5
38231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232   (exit $ac_status); } &&
38233          { ac_try='test -z "$ac_c_werror_flag"
38234                          || test ! -s conftest.err'
38235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38236   (eval $ac_try) 2>&5
38237   ac_status=$?
38238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239   (exit $ac_status); }; } &&
38240          { ac_try='test -s conftest$ac_exeext'
38241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38242   (eval $ac_try) 2>&5
38243   ac_status=$?
38244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245   (exit $ac_status); }; }; then
38246   ol_cv_db_none=yes
38247 else
38248   echo "$as_me: failed program was:" >&5
38249 sed 's/^/| /' conftest.$ac_ext >&5
38250
38251 ol_cv_db_none=no
38252 fi
38253 rm -f conftest.err conftest.$ac_objext \
38254       conftest$ac_exeext conftest.$ac_ext
38255
38256         LIBS="$ol_LIBS"
38257
38258 fi
38259 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38260 echo "${ECHO_T}$ol_cv_db_none" >&6
38261
38262         if test $ol_cv_db_none = yes ; then
38263                 ol_cv_lib_db=yes
38264         fi
38265 fi
38266
38267 if test $ol_cv_lib_db = no ; then
38268         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38269 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38270 if test "${ol_cv_db_db43+set}" = set; then
38271   echo $ECHO_N "(cached) $ECHO_C" >&6
38272 else
38273
38274         ol_DB_LIB=-ldb43
38275         ol_LIBS=$LIBS
38276         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38277
38278         cat >conftest.$ac_ext <<_ACEOF
38279 /* confdefs.h.  */
38280 _ACEOF
38281 cat confdefs.h >>conftest.$ac_ext
38282 cat >>conftest.$ac_ext <<_ACEOF
38283 /* end confdefs.h.  */
38284
38285 #ifdef HAVE_DB_185_H
38286 # include <db_185.h>
38287 #else
38288 # include <db.h>
38289 #endif
38290
38291 #ifndef DB_VERSION_MAJOR
38292 # define DB_VERSION_MAJOR 1
38293 #endif
38294
38295 #ifndef NULL
38296 #define NULL ((void*)0)
38297 #endif
38298
38299 int
38300 main ()
38301 {
38302
38303 #if DB_VERSION_MAJOR > 1
38304         {
38305                 char *version;
38306                 int major, minor, patch;
38307
38308                 version = db_version( &major, &minor, &patch );
38309
38310                 if( major != DB_VERSION_MAJOR ||
38311                         minor < DB_VERSION_MINOR )
38312                 {
38313                         printf("Berkeley DB version mismatch\n"
38314                                 "\theader: %s\n\tlibrary: %s\n",
38315                                 DB_VERSION_STRING, version);
38316                         return 1;
38317                 }
38318         }
38319 #endif
38320
38321 #if DB_VERSION_MAJOR > 2
38322         db_env_create( NULL, 0 );
38323 #elif DB_VERSION_MAJOR > 1
38324         db_appexit( NULL );
38325 #else
38326         (void) dbopen( NULL, 0, 0, 0, NULL);
38327 #endif
38328
38329   ;
38330   return 0;
38331 }
38332 _ACEOF
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38335   (eval $ac_link) 2>conftest.er1
38336   ac_status=$?
38337   grep -v '^ *+' conftest.er1 >conftest.err
38338   rm -f conftest.er1
38339   cat conftest.err >&5
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); } &&
38342          { ac_try='test -z "$ac_c_werror_flag"
38343                          || test ! -s conftest.err'
38344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38345   (eval $ac_try) 2>&5
38346   ac_status=$?
38347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348   (exit $ac_status); }; } &&
38349          { ac_try='test -s conftest$ac_exeext'
38350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351   (eval $ac_try) 2>&5
38352   ac_status=$?
38353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354   (exit $ac_status); }; }; then
38355   ol_cv_db_db43=yes
38356 else
38357   echo "$as_me: failed program was:" >&5
38358 sed 's/^/| /' conftest.$ac_ext >&5
38359
38360 ol_cv_db_db43=no
38361 fi
38362 rm -f conftest.err conftest.$ac_objext \
38363       conftest$ac_exeext conftest.$ac_ext
38364
38365         LIBS="$ol_LIBS"
38366
38367 fi
38368 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38369 echo "${ECHO_T}$ol_cv_db_db43" >&6
38370
38371         if test $ol_cv_db_db43 = yes ; then
38372                 ol_cv_lib_db=-ldb43
38373         fi
38374 fi
38375
38376 if test $ol_cv_lib_db = no ; then
38377         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38378 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38379 if test "${ol_cv_db_db_43+set}" = set; then
38380   echo $ECHO_N "(cached) $ECHO_C" >&6
38381 else
38382
38383         ol_DB_LIB=-ldb-43
38384         ol_LIBS=$LIBS
38385         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38386
38387         cat >conftest.$ac_ext <<_ACEOF
38388 /* confdefs.h.  */
38389 _ACEOF
38390 cat confdefs.h >>conftest.$ac_ext
38391 cat >>conftest.$ac_ext <<_ACEOF
38392 /* end confdefs.h.  */
38393
38394 #ifdef HAVE_DB_185_H
38395 # include <db_185.h>
38396 #else
38397 # include <db.h>
38398 #endif
38399
38400 #ifndef DB_VERSION_MAJOR
38401 # define DB_VERSION_MAJOR 1
38402 #endif
38403
38404 #ifndef NULL
38405 #define NULL ((void*)0)
38406 #endif
38407
38408 int
38409 main ()
38410 {
38411
38412 #if DB_VERSION_MAJOR > 1
38413         {
38414                 char *version;
38415                 int major, minor, patch;
38416
38417                 version = db_version( &major, &minor, &patch );
38418
38419                 if( major != DB_VERSION_MAJOR ||
38420                         minor < DB_VERSION_MINOR )
38421                 {
38422                         printf("Berkeley DB version mismatch\n"
38423                                 "\theader: %s\n\tlibrary: %s\n",
38424                                 DB_VERSION_STRING, version);
38425                         return 1;
38426                 }
38427         }
38428 #endif
38429
38430 #if DB_VERSION_MAJOR > 2
38431         db_env_create( NULL, 0 );
38432 #elif DB_VERSION_MAJOR > 1
38433         db_appexit( NULL );
38434 #else
38435         (void) dbopen( NULL, 0, 0, 0, NULL);
38436 #endif
38437
38438   ;
38439   return 0;
38440 }
38441 _ACEOF
38442 rm -f conftest.$ac_objext conftest$ac_exeext
38443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38444   (eval $ac_link) 2>conftest.er1
38445   ac_status=$?
38446   grep -v '^ *+' conftest.er1 >conftest.err
38447   rm -f conftest.er1
38448   cat conftest.err >&5
38449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450   (exit $ac_status); } &&
38451          { ac_try='test -z "$ac_c_werror_flag"
38452                          || test ! -s conftest.err'
38453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38454   (eval $ac_try) 2>&5
38455   ac_status=$?
38456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457   (exit $ac_status); }; } &&
38458          { ac_try='test -s conftest$ac_exeext'
38459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38460   (eval $ac_try) 2>&5
38461   ac_status=$?
38462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463   (exit $ac_status); }; }; then
38464   ol_cv_db_db_43=yes
38465 else
38466   echo "$as_me: failed program was:" >&5
38467 sed 's/^/| /' conftest.$ac_ext >&5
38468
38469 ol_cv_db_db_43=no
38470 fi
38471 rm -f conftest.err conftest.$ac_objext \
38472       conftest$ac_exeext conftest.$ac_ext
38473
38474         LIBS="$ol_LIBS"
38475
38476 fi
38477 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38478 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38479
38480         if test $ol_cv_db_db_43 = yes ; then
38481                 ol_cv_lib_db=-ldb-43
38482         fi
38483 fi
38484
38485 if test $ol_cv_lib_db = no ; then
38486         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38487 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38488 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38489   echo $ECHO_N "(cached) $ECHO_C" >&6
38490 else
38491
38492         ol_DB_LIB=-ldb-4.3
38493         ol_LIBS=$LIBS
38494         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38495
38496         cat >conftest.$ac_ext <<_ACEOF
38497 /* confdefs.h.  */
38498 _ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h.  */
38502
38503 #ifdef HAVE_DB_185_H
38504 # include <db_185.h>
38505 #else
38506 # include <db.h>
38507 #endif
38508
38509 #ifndef DB_VERSION_MAJOR
38510 # define DB_VERSION_MAJOR 1
38511 #endif
38512
38513 #ifndef NULL
38514 #define NULL ((void*)0)
38515 #endif
38516
38517 int
38518 main ()
38519 {
38520
38521 #if DB_VERSION_MAJOR > 1
38522         {
38523                 char *version;
38524                 int major, minor, patch;
38525
38526                 version = db_version( &major, &minor, &patch );
38527
38528                 if( major != DB_VERSION_MAJOR ||
38529                         minor < DB_VERSION_MINOR )
38530                 {
38531                         printf("Berkeley DB version mismatch\n"
38532                                 "\theader: %s\n\tlibrary: %s\n",
38533                                 DB_VERSION_STRING, version);
38534                         return 1;
38535                 }
38536         }
38537 #endif
38538
38539 #if DB_VERSION_MAJOR > 2
38540         db_env_create( NULL, 0 );
38541 #elif DB_VERSION_MAJOR > 1
38542         db_appexit( NULL );
38543 #else
38544         (void) dbopen( NULL, 0, 0, 0, NULL);
38545 #endif
38546
38547   ;
38548   return 0;
38549 }
38550 _ACEOF
38551 rm -f conftest.$ac_objext conftest$ac_exeext
38552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38553   (eval $ac_link) 2>conftest.er1
38554   ac_status=$?
38555   grep -v '^ *+' conftest.er1 >conftest.err
38556   rm -f conftest.er1
38557   cat conftest.err >&5
38558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559   (exit $ac_status); } &&
38560          { ac_try='test -z "$ac_c_werror_flag"
38561                          || test ! -s conftest.err'
38562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38563   (eval $ac_try) 2>&5
38564   ac_status=$?
38565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566   (exit $ac_status); }; } &&
38567          { ac_try='test -s conftest$ac_exeext'
38568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38569   (eval $ac_try) 2>&5
38570   ac_status=$?
38571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572   (exit $ac_status); }; }; then
38573   ol_cv_db_db_4_dot_3=yes
38574 else
38575   echo "$as_me: failed program was:" >&5
38576 sed 's/^/| /' conftest.$ac_ext >&5
38577
38578 ol_cv_db_db_4_dot_3=no
38579 fi
38580 rm -f conftest.err conftest.$ac_objext \
38581       conftest$ac_exeext conftest.$ac_ext
38582
38583         LIBS="$ol_LIBS"
38584
38585 fi
38586 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38587 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38588
38589         if test $ol_cv_db_db_4_dot_3 = yes ; then
38590                 ol_cv_lib_db=-ldb-4.3
38591         fi
38592 fi
38593
38594 if test $ol_cv_lib_db = no ; then
38595         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38596 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38597 if test "${ol_cv_db_db_4_3+set}" = set; then
38598   echo $ECHO_N "(cached) $ECHO_C" >&6
38599 else
38600
38601         ol_DB_LIB=-ldb-4-3
38602         ol_LIBS=$LIBS
38603         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38604
38605         cat >conftest.$ac_ext <<_ACEOF
38606 /* confdefs.h.  */
38607 _ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h.  */
38611
38612 #ifdef HAVE_DB_185_H
38613 # include <db_185.h>
38614 #else
38615 # include <db.h>
38616 #endif
38617
38618 #ifndef DB_VERSION_MAJOR
38619 # define DB_VERSION_MAJOR 1
38620 #endif
38621
38622 #ifndef NULL
38623 #define NULL ((void*)0)
38624 #endif
38625
38626 int
38627 main ()
38628 {
38629
38630 #if DB_VERSION_MAJOR > 1
38631         {
38632                 char *version;
38633                 int major, minor, patch;
38634
38635                 version = db_version( &major, &minor, &patch );
38636
38637                 if( major != DB_VERSION_MAJOR ||
38638                         minor < DB_VERSION_MINOR )
38639                 {
38640                         printf("Berkeley DB version mismatch\n"
38641                                 "\theader: %s\n\tlibrary: %s\n",
38642                                 DB_VERSION_STRING, version);
38643                         return 1;
38644                 }
38645         }
38646 #endif
38647
38648 #if DB_VERSION_MAJOR > 2
38649         db_env_create( NULL, 0 );
38650 #elif DB_VERSION_MAJOR > 1
38651         db_appexit( NULL );
38652 #else
38653         (void) dbopen( NULL, 0, 0, 0, NULL);
38654 #endif
38655
38656   ;
38657   return 0;
38658 }
38659 _ACEOF
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662   (eval $ac_link) 2>conftest.er1
38663   ac_status=$?
38664   grep -v '^ *+' conftest.er1 >conftest.err
38665   rm -f conftest.er1
38666   cat conftest.err >&5
38667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668   (exit $ac_status); } &&
38669          { ac_try='test -z "$ac_c_werror_flag"
38670                          || test ! -s conftest.err'
38671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38672   (eval $ac_try) 2>&5
38673   ac_status=$?
38674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38675   (exit $ac_status); }; } &&
38676          { ac_try='test -s conftest$ac_exeext'
38677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678   (eval $ac_try) 2>&5
38679   ac_status=$?
38680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681   (exit $ac_status); }; }; then
38682   ol_cv_db_db_4_3=yes
38683 else
38684   echo "$as_me: failed program was:" >&5
38685 sed 's/^/| /' conftest.$ac_ext >&5
38686
38687 ol_cv_db_db_4_3=no
38688 fi
38689 rm -f conftest.err conftest.$ac_objext \
38690       conftest$ac_exeext conftest.$ac_ext
38691
38692         LIBS="$ol_LIBS"
38693
38694 fi
38695 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38696 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38697
38698         if test $ol_cv_db_db_4_3 = yes ; then
38699                 ol_cv_lib_db=-ldb-4-3
38700         fi
38701 fi
38702
38703 if test $ol_cv_lib_db = no ; then
38704         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38705 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38706 if test "${ol_cv_db_db42+set}" = set; then
38707   echo $ECHO_N "(cached) $ECHO_C" >&6
38708 else
38709
38710         ol_DB_LIB=-ldb42
38711         ol_LIBS=$LIBS
38712         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38713
38714         cat >conftest.$ac_ext <<_ACEOF
38715 /* confdefs.h.  */
38716 _ACEOF
38717 cat confdefs.h >>conftest.$ac_ext
38718 cat >>conftest.$ac_ext <<_ACEOF
38719 /* end confdefs.h.  */
38720
38721 #ifdef HAVE_DB_185_H
38722 # include <db_185.h>
38723 #else
38724 # include <db.h>
38725 #endif
38726
38727 #ifndef DB_VERSION_MAJOR
38728 # define DB_VERSION_MAJOR 1
38729 #endif
38730
38731 #ifndef NULL
38732 #define NULL ((void*)0)
38733 #endif
38734
38735 int
38736 main ()
38737 {
38738
38739 #if DB_VERSION_MAJOR > 1
38740         {
38741                 char *version;
38742                 int major, minor, patch;
38743
38744                 version = db_version( &major, &minor, &patch );
38745
38746                 if( major != DB_VERSION_MAJOR ||
38747                         minor < DB_VERSION_MINOR )
38748                 {
38749                         printf("Berkeley DB version mismatch\n"
38750                                 "\theader: %s\n\tlibrary: %s\n",
38751                                 DB_VERSION_STRING, version);
38752                         return 1;
38753                 }
38754         }
38755 #endif
38756
38757 #if DB_VERSION_MAJOR > 2
38758         db_env_create( NULL, 0 );
38759 #elif DB_VERSION_MAJOR > 1
38760         db_appexit( NULL );
38761 #else
38762         (void) dbopen( NULL, 0, 0, 0, NULL);
38763 #endif
38764
38765   ;
38766   return 0;
38767 }
38768 _ACEOF
38769 rm -f conftest.$ac_objext conftest$ac_exeext
38770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38771   (eval $ac_link) 2>conftest.er1
38772   ac_status=$?
38773   grep -v '^ *+' conftest.er1 >conftest.err
38774   rm -f conftest.er1
38775   cat conftest.err >&5
38776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777   (exit $ac_status); } &&
38778          { ac_try='test -z "$ac_c_werror_flag"
38779                          || test ! -s conftest.err'
38780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38781   (eval $ac_try) 2>&5
38782   ac_status=$?
38783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38784   (exit $ac_status); }; } &&
38785          { ac_try='test -s conftest$ac_exeext'
38786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38787   (eval $ac_try) 2>&5
38788   ac_status=$?
38789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790   (exit $ac_status); }; }; then
38791   ol_cv_db_db42=yes
38792 else
38793   echo "$as_me: failed program was:" >&5
38794 sed 's/^/| /' conftest.$ac_ext >&5
38795
38796 ol_cv_db_db42=no
38797 fi
38798 rm -f conftest.err conftest.$ac_objext \
38799       conftest$ac_exeext conftest.$ac_ext
38800
38801         LIBS="$ol_LIBS"
38802
38803 fi
38804 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38805 echo "${ECHO_T}$ol_cv_db_db42" >&6
38806
38807         if test $ol_cv_db_db42 = yes ; then
38808                 ol_cv_lib_db=-ldb42
38809         fi
38810 fi
38811
38812 if test $ol_cv_lib_db = no ; then
38813         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38814 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38815 if test "${ol_cv_db_db_42+set}" = set; then
38816   echo $ECHO_N "(cached) $ECHO_C" >&6
38817 else
38818
38819         ol_DB_LIB=-ldb-42
38820         ol_LIBS=$LIBS
38821         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38822
38823         cat >conftest.$ac_ext <<_ACEOF
38824 /* confdefs.h.  */
38825 _ACEOF
38826 cat confdefs.h >>conftest.$ac_ext
38827 cat >>conftest.$ac_ext <<_ACEOF
38828 /* end confdefs.h.  */
38829
38830 #ifdef HAVE_DB_185_H
38831 # include <db_185.h>
38832 #else
38833 # include <db.h>
38834 #endif
38835
38836 #ifndef DB_VERSION_MAJOR
38837 # define DB_VERSION_MAJOR 1
38838 #endif
38839
38840 #ifndef NULL
38841 #define NULL ((void*)0)
38842 #endif
38843
38844 int
38845 main ()
38846 {
38847
38848 #if DB_VERSION_MAJOR > 1
38849         {
38850                 char *version;
38851                 int major, minor, patch;
38852
38853                 version = db_version( &major, &minor, &patch );
38854
38855                 if( major != DB_VERSION_MAJOR ||
38856                         minor < DB_VERSION_MINOR )
38857                 {
38858                         printf("Berkeley DB version mismatch\n"
38859                                 "\theader: %s\n\tlibrary: %s\n",
38860                                 DB_VERSION_STRING, version);
38861                         return 1;
38862                 }
38863         }
38864 #endif
38865
38866 #if DB_VERSION_MAJOR > 2
38867         db_env_create( NULL, 0 );
38868 #elif DB_VERSION_MAJOR > 1
38869         db_appexit( NULL );
38870 #else
38871         (void) dbopen( NULL, 0, 0, 0, NULL);
38872 #endif
38873
38874   ;
38875   return 0;
38876 }
38877 _ACEOF
38878 rm -f conftest.$ac_objext conftest$ac_exeext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38880   (eval $ac_link) 2>conftest.er1
38881   ac_status=$?
38882   grep -v '^ *+' conftest.er1 >conftest.err
38883   rm -f conftest.er1
38884   cat conftest.err >&5
38885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886   (exit $ac_status); } &&
38887          { ac_try='test -z "$ac_c_werror_flag"
38888                          || test ! -s conftest.err'
38889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890   (eval $ac_try) 2>&5
38891   ac_status=$?
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); }; } &&
38894          { ac_try='test -s conftest$ac_exeext'
38895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896   (eval $ac_try) 2>&5
38897   ac_status=$?
38898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899   (exit $ac_status); }; }; then
38900   ol_cv_db_db_42=yes
38901 else
38902   echo "$as_me: failed program was:" >&5
38903 sed 's/^/| /' conftest.$ac_ext >&5
38904
38905 ol_cv_db_db_42=no
38906 fi
38907 rm -f conftest.err conftest.$ac_objext \
38908       conftest$ac_exeext conftest.$ac_ext
38909
38910         LIBS="$ol_LIBS"
38911
38912 fi
38913 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38914 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38915
38916         if test $ol_cv_db_db_42 = yes ; then
38917                 ol_cv_lib_db=-ldb-42
38918         fi
38919 fi
38920
38921 if test $ol_cv_lib_db = no ; then
38922         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38923 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38924 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38925   echo $ECHO_N "(cached) $ECHO_C" >&6
38926 else
38927
38928         ol_DB_LIB=-ldb-4.2
38929         ol_LIBS=$LIBS
38930         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38931
38932         cat >conftest.$ac_ext <<_ACEOF
38933 /* confdefs.h.  */
38934 _ACEOF
38935 cat confdefs.h >>conftest.$ac_ext
38936 cat >>conftest.$ac_ext <<_ACEOF
38937 /* end confdefs.h.  */
38938
38939 #ifdef HAVE_DB_185_H
38940 # include <db_185.h>
38941 #else
38942 # include <db.h>
38943 #endif
38944
38945 #ifndef DB_VERSION_MAJOR
38946 # define DB_VERSION_MAJOR 1
38947 #endif
38948
38949 #ifndef NULL
38950 #define NULL ((void*)0)
38951 #endif
38952
38953 int
38954 main ()
38955 {
38956
38957 #if DB_VERSION_MAJOR > 1
38958         {
38959                 char *version;
38960                 int major, minor, patch;
38961
38962                 version = db_version( &major, &minor, &patch );
38963
38964                 if( major != DB_VERSION_MAJOR ||
38965                         minor < DB_VERSION_MINOR )
38966                 {
38967                         printf("Berkeley DB version mismatch\n"
38968                                 "\theader: %s\n\tlibrary: %s\n",
38969                                 DB_VERSION_STRING, version);
38970                         return 1;
38971                 }
38972         }
38973 #endif
38974
38975 #if DB_VERSION_MAJOR > 2
38976         db_env_create( NULL, 0 );
38977 #elif DB_VERSION_MAJOR > 1
38978         db_appexit( NULL );
38979 #else
38980         (void) dbopen( NULL, 0, 0, 0, NULL);
38981 #endif
38982
38983   ;
38984   return 0;
38985 }
38986 _ACEOF
38987 rm -f conftest.$ac_objext conftest$ac_exeext
38988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38989   (eval $ac_link) 2>conftest.er1
38990   ac_status=$?
38991   grep -v '^ *+' conftest.er1 >conftest.err
38992   rm -f conftest.er1
38993   cat conftest.err >&5
38994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995   (exit $ac_status); } &&
38996          { ac_try='test -z "$ac_c_werror_flag"
38997                          || test ! -s conftest.err'
38998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999   (eval $ac_try) 2>&5
39000   ac_status=$?
39001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002   (exit $ac_status); }; } &&
39003          { ac_try='test -s conftest$ac_exeext'
39004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005   (eval $ac_try) 2>&5
39006   ac_status=$?
39007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008   (exit $ac_status); }; }; then
39009   ol_cv_db_db_4_dot_2=yes
39010 else
39011   echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39013
39014 ol_cv_db_db_4_dot_2=no
39015 fi
39016 rm -f conftest.err conftest.$ac_objext \
39017       conftest$ac_exeext conftest.$ac_ext
39018
39019         LIBS="$ol_LIBS"
39020
39021 fi
39022 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39023 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39024
39025         if test $ol_cv_db_db_4_dot_2 = yes ; then
39026                 ol_cv_lib_db=-ldb-4.2
39027         fi
39028 fi
39029
39030 if test $ol_cv_lib_db = no ; then
39031         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39032 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39033 if test "${ol_cv_db_db_4_2+set}" = set; then
39034   echo $ECHO_N "(cached) $ECHO_C" >&6
39035 else
39036
39037         ol_DB_LIB=-ldb-4-2
39038         ol_LIBS=$LIBS
39039         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39040
39041         cat >conftest.$ac_ext <<_ACEOF
39042 /* confdefs.h.  */
39043 _ACEOF
39044 cat confdefs.h >>conftest.$ac_ext
39045 cat >>conftest.$ac_ext <<_ACEOF
39046 /* end confdefs.h.  */
39047
39048 #ifdef HAVE_DB_185_H
39049 # include <db_185.h>
39050 #else
39051 # include <db.h>
39052 #endif
39053
39054 #ifndef DB_VERSION_MAJOR
39055 # define DB_VERSION_MAJOR 1
39056 #endif
39057
39058 #ifndef NULL
39059 #define NULL ((void*)0)
39060 #endif
39061
39062 int
39063 main ()
39064 {
39065
39066 #if DB_VERSION_MAJOR > 1
39067         {
39068                 char *version;
39069                 int major, minor, patch;
39070
39071                 version = db_version( &major, &minor, &patch );
39072
39073                 if( major != DB_VERSION_MAJOR ||
39074                         minor < DB_VERSION_MINOR )
39075                 {
39076                         printf("Berkeley DB version mismatch\n"
39077                                 "\theader: %s\n\tlibrary: %s\n",
39078                                 DB_VERSION_STRING, version);
39079                         return 1;
39080                 }
39081         }
39082 #endif
39083
39084 #if DB_VERSION_MAJOR > 2
39085         db_env_create( NULL, 0 );
39086 #elif DB_VERSION_MAJOR > 1
39087         db_appexit( NULL );
39088 #else
39089         (void) dbopen( NULL, 0, 0, 0, NULL);
39090 #endif
39091
39092   ;
39093   return 0;
39094 }
39095 _ACEOF
39096 rm -f conftest.$ac_objext conftest$ac_exeext
39097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39098   (eval $ac_link) 2>conftest.er1
39099   ac_status=$?
39100   grep -v '^ *+' conftest.er1 >conftest.err
39101   rm -f conftest.er1
39102   cat conftest.err >&5
39103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104   (exit $ac_status); } &&
39105          { ac_try='test -z "$ac_c_werror_flag"
39106                          || test ! -s conftest.err'
39107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39108   (eval $ac_try) 2>&5
39109   ac_status=$?
39110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111   (exit $ac_status); }; } &&
39112          { ac_try='test -s conftest$ac_exeext'
39113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39114   (eval $ac_try) 2>&5
39115   ac_status=$?
39116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117   (exit $ac_status); }; }; then
39118   ol_cv_db_db_4_2=yes
39119 else
39120   echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39122
39123 ol_cv_db_db_4_2=no
39124 fi
39125 rm -f conftest.err conftest.$ac_objext \
39126       conftest$ac_exeext conftest.$ac_ext
39127
39128         LIBS="$ol_LIBS"
39129
39130 fi
39131 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39132 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39133
39134         if test $ol_cv_db_db_4_2 = yes ; then
39135                 ol_cv_lib_db=-ldb-4-2
39136         fi
39137 fi
39138
39139 if test $ol_cv_lib_db = no ; then
39140         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39141 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39142 if test "${ol_cv_db_db_4+set}" = set; then
39143   echo $ECHO_N "(cached) $ECHO_C" >&6
39144 else
39145
39146         ol_DB_LIB=-ldb-4
39147         ol_LIBS=$LIBS
39148         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39149
39150         cat >conftest.$ac_ext <<_ACEOF
39151 /* confdefs.h.  */
39152 _ACEOF
39153 cat confdefs.h >>conftest.$ac_ext
39154 cat >>conftest.$ac_ext <<_ACEOF
39155 /* end confdefs.h.  */
39156
39157 #ifdef HAVE_DB_185_H
39158 # include <db_185.h>
39159 #else
39160 # include <db.h>
39161 #endif
39162
39163 #ifndef DB_VERSION_MAJOR
39164 # define DB_VERSION_MAJOR 1
39165 #endif
39166
39167 #ifndef NULL
39168 #define NULL ((void*)0)
39169 #endif
39170
39171 int
39172 main ()
39173 {
39174
39175 #if DB_VERSION_MAJOR > 1
39176         {
39177                 char *version;
39178                 int major, minor, patch;
39179
39180                 version = db_version( &major, &minor, &patch );
39181
39182                 if( major != DB_VERSION_MAJOR ||
39183                         minor < DB_VERSION_MINOR )
39184                 {
39185                         printf("Berkeley DB version mismatch\n"
39186                                 "\theader: %s\n\tlibrary: %s\n",
39187                                 DB_VERSION_STRING, version);
39188                         return 1;
39189                 }
39190         }
39191 #endif
39192
39193 #if DB_VERSION_MAJOR > 2
39194         db_env_create( NULL, 0 );
39195 #elif DB_VERSION_MAJOR > 1
39196         db_appexit( NULL );
39197 #else
39198         (void) dbopen( NULL, 0, 0, 0, NULL);
39199 #endif
39200
39201   ;
39202   return 0;
39203 }
39204 _ACEOF
39205 rm -f conftest.$ac_objext conftest$ac_exeext
39206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39207   (eval $ac_link) 2>conftest.er1
39208   ac_status=$?
39209   grep -v '^ *+' conftest.er1 >conftest.err
39210   rm -f conftest.er1
39211   cat conftest.err >&5
39212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213   (exit $ac_status); } &&
39214          { ac_try='test -z "$ac_c_werror_flag"
39215                          || test ! -s conftest.err'
39216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39217   (eval $ac_try) 2>&5
39218   ac_status=$?
39219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220   (exit $ac_status); }; } &&
39221          { ac_try='test -s conftest$ac_exeext'
39222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223   (eval $ac_try) 2>&5
39224   ac_status=$?
39225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226   (exit $ac_status); }; }; then
39227   ol_cv_db_db_4=yes
39228 else
39229   echo "$as_me: failed program was:" >&5
39230 sed 's/^/| /' conftest.$ac_ext >&5
39231
39232 ol_cv_db_db_4=no
39233 fi
39234 rm -f conftest.err conftest.$ac_objext \
39235       conftest$ac_exeext conftest.$ac_ext
39236
39237         LIBS="$ol_LIBS"
39238
39239 fi
39240 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39241 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39242
39243         if test $ol_cv_db_db_4 = yes ; then
39244                 ol_cv_lib_db=-ldb-4
39245         fi
39246 fi
39247
39248 if test $ol_cv_lib_db = no ; then
39249         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39250 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39251 if test "${ol_cv_db_db4+set}" = set; then
39252   echo $ECHO_N "(cached) $ECHO_C" >&6
39253 else
39254
39255         ol_DB_LIB=-ldb4
39256         ol_LIBS=$LIBS
39257         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39258
39259         cat >conftest.$ac_ext <<_ACEOF
39260 /* confdefs.h.  */
39261 _ACEOF
39262 cat confdefs.h >>conftest.$ac_ext
39263 cat >>conftest.$ac_ext <<_ACEOF
39264 /* end confdefs.h.  */
39265
39266 #ifdef HAVE_DB_185_H
39267 # include <db_185.h>
39268 #else
39269 # include <db.h>
39270 #endif
39271
39272 #ifndef DB_VERSION_MAJOR
39273 # define DB_VERSION_MAJOR 1
39274 #endif
39275
39276 #ifndef NULL
39277 #define NULL ((void*)0)
39278 #endif
39279
39280 int
39281 main ()
39282 {
39283
39284 #if DB_VERSION_MAJOR > 1
39285         {
39286                 char *version;
39287                 int major, minor, patch;
39288
39289                 version = db_version( &major, &minor, &patch );
39290
39291                 if( major != DB_VERSION_MAJOR ||
39292                         minor < DB_VERSION_MINOR )
39293                 {
39294                         printf("Berkeley DB version mismatch\n"
39295                                 "\theader: %s\n\tlibrary: %s\n",
39296                                 DB_VERSION_STRING, version);
39297                         return 1;
39298                 }
39299         }
39300 #endif
39301
39302 #if DB_VERSION_MAJOR > 2
39303         db_env_create( NULL, 0 );
39304 #elif DB_VERSION_MAJOR > 1
39305         db_appexit( NULL );
39306 #else
39307         (void) dbopen( NULL, 0, 0, 0, NULL);
39308 #endif
39309
39310   ;
39311   return 0;
39312 }
39313 _ACEOF
39314 rm -f conftest.$ac_objext conftest$ac_exeext
39315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39316   (eval $ac_link) 2>conftest.er1
39317   ac_status=$?
39318   grep -v '^ *+' conftest.er1 >conftest.err
39319   rm -f conftest.er1
39320   cat conftest.err >&5
39321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322   (exit $ac_status); } &&
39323          { ac_try='test -z "$ac_c_werror_flag"
39324                          || test ! -s conftest.err'
39325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326   (eval $ac_try) 2>&5
39327   ac_status=$?
39328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329   (exit $ac_status); }; } &&
39330          { ac_try='test -s conftest$ac_exeext'
39331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332   (eval $ac_try) 2>&5
39333   ac_status=$?
39334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335   (exit $ac_status); }; }; then
39336   ol_cv_db_db4=yes
39337 else
39338   echo "$as_me: failed program was:" >&5
39339 sed 's/^/| /' conftest.$ac_ext >&5
39340
39341 ol_cv_db_db4=no
39342 fi
39343 rm -f conftest.err conftest.$ac_objext \
39344       conftest$ac_exeext conftest.$ac_ext
39345
39346         LIBS="$ol_LIBS"
39347
39348 fi
39349 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39350 echo "${ECHO_T}$ol_cv_db_db4" >&6
39351
39352         if test $ol_cv_db_db4 = yes ; then
39353                 ol_cv_lib_db=-ldb4
39354         fi
39355 fi
39356
39357 if test $ol_cv_lib_db = no ; then
39358         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39359 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39360 if test "${ol_cv_db_db+set}" = set; then
39361   echo $ECHO_N "(cached) $ECHO_C" >&6
39362 else
39363
39364         ol_DB_LIB=-ldb
39365         ol_LIBS=$LIBS
39366         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39367
39368         cat >conftest.$ac_ext <<_ACEOF
39369 /* confdefs.h.  */
39370 _ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h.  */
39374
39375 #ifdef HAVE_DB_185_H
39376 # include <db_185.h>
39377 #else
39378 # include <db.h>
39379 #endif
39380
39381 #ifndef DB_VERSION_MAJOR
39382 # define DB_VERSION_MAJOR 1
39383 #endif
39384
39385 #ifndef NULL
39386 #define NULL ((void*)0)
39387 #endif
39388
39389 int
39390 main ()
39391 {
39392
39393 #if DB_VERSION_MAJOR > 1
39394         {
39395                 char *version;
39396                 int major, minor, patch;
39397
39398                 version = db_version( &major, &minor, &patch );
39399
39400                 if( major != DB_VERSION_MAJOR ||
39401                         minor < DB_VERSION_MINOR )
39402                 {
39403                         printf("Berkeley DB version mismatch\n"
39404                                 "\theader: %s\n\tlibrary: %s\n",
39405                                 DB_VERSION_STRING, version);
39406                         return 1;
39407                 }
39408         }
39409 #endif
39410
39411 #if DB_VERSION_MAJOR > 2
39412         db_env_create( NULL, 0 );
39413 #elif DB_VERSION_MAJOR > 1
39414         db_appexit( NULL );
39415 #else
39416         (void) dbopen( NULL, 0, 0, 0, NULL);
39417 #endif
39418
39419   ;
39420   return 0;
39421 }
39422 _ACEOF
39423 rm -f conftest.$ac_objext conftest$ac_exeext
39424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39425   (eval $ac_link) 2>conftest.er1
39426   ac_status=$?
39427   grep -v '^ *+' conftest.er1 >conftest.err
39428   rm -f conftest.er1
39429   cat conftest.err >&5
39430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); } &&
39432          { ac_try='test -z "$ac_c_werror_flag"
39433                          || test ! -s conftest.err'
39434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435   (eval $ac_try) 2>&5
39436   ac_status=$?
39437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438   (exit $ac_status); }; } &&
39439          { ac_try='test -s conftest$ac_exeext'
39440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441   (eval $ac_try) 2>&5
39442   ac_status=$?
39443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444   (exit $ac_status); }; }; then
39445   ol_cv_db_db=yes
39446 else
39447   echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39449
39450 ol_cv_db_db=no
39451 fi
39452 rm -f conftest.err conftest.$ac_objext \
39453       conftest$ac_exeext conftest.$ac_ext
39454
39455         LIBS="$ol_LIBS"
39456
39457 fi
39458 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39459 echo "${ECHO_T}$ol_cv_db_db" >&6
39460
39461         if test $ol_cv_db_db = yes ; then
39462                 ol_cv_lib_db=-ldb
39463         fi
39464 fi
39465
39466 if test $ol_cv_lib_db = no ; then
39467         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39468 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39469 if test "${ol_cv_db_db41+set}" = set; then
39470   echo $ECHO_N "(cached) $ECHO_C" >&6
39471 else
39472
39473         ol_DB_LIB=-ldb41
39474         ol_LIBS=$LIBS
39475         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39476
39477         cat >conftest.$ac_ext <<_ACEOF
39478 /* confdefs.h.  */
39479 _ACEOF
39480 cat confdefs.h >>conftest.$ac_ext
39481 cat >>conftest.$ac_ext <<_ACEOF
39482 /* end confdefs.h.  */
39483
39484 #ifdef HAVE_DB_185_H
39485 # include <db_185.h>
39486 #else
39487 # include <db.h>
39488 #endif
39489
39490 #ifndef DB_VERSION_MAJOR
39491 # define DB_VERSION_MAJOR 1
39492 #endif
39493
39494 #ifndef NULL
39495 #define NULL ((void*)0)
39496 #endif
39497
39498 int
39499 main ()
39500 {
39501
39502 #if DB_VERSION_MAJOR > 1
39503         {
39504                 char *version;
39505                 int major, minor, patch;
39506
39507                 version = db_version( &major, &minor, &patch );
39508
39509                 if( major != DB_VERSION_MAJOR ||
39510                         minor < DB_VERSION_MINOR )
39511                 {
39512                         printf("Berkeley DB version mismatch\n"
39513                                 "\theader: %s\n\tlibrary: %s\n",
39514                                 DB_VERSION_STRING, version);
39515                         return 1;
39516                 }
39517         }
39518 #endif
39519
39520 #if DB_VERSION_MAJOR > 2
39521         db_env_create( NULL, 0 );
39522 #elif DB_VERSION_MAJOR > 1
39523         db_appexit( NULL );
39524 #else
39525         (void) dbopen( NULL, 0, 0, 0, NULL);
39526 #endif
39527
39528   ;
39529   return 0;
39530 }
39531 _ACEOF
39532 rm -f conftest.$ac_objext conftest$ac_exeext
39533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39534   (eval $ac_link) 2>conftest.er1
39535   ac_status=$?
39536   grep -v '^ *+' conftest.er1 >conftest.err
39537   rm -f conftest.er1
39538   cat conftest.err >&5
39539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540   (exit $ac_status); } &&
39541          { ac_try='test -z "$ac_c_werror_flag"
39542                          || test ! -s conftest.err'
39543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544   (eval $ac_try) 2>&5
39545   ac_status=$?
39546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547   (exit $ac_status); }; } &&
39548          { ac_try='test -s conftest$ac_exeext'
39549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39550   (eval $ac_try) 2>&5
39551   ac_status=$?
39552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553   (exit $ac_status); }; }; then
39554   ol_cv_db_db41=yes
39555 else
39556   echo "$as_me: failed program was:" >&5
39557 sed 's/^/| /' conftest.$ac_ext >&5
39558
39559 ol_cv_db_db41=no
39560 fi
39561 rm -f conftest.err conftest.$ac_objext \
39562       conftest$ac_exeext conftest.$ac_ext
39563
39564         LIBS="$ol_LIBS"
39565
39566 fi
39567 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39568 echo "${ECHO_T}$ol_cv_db_db41" >&6
39569
39570         if test $ol_cv_db_db41 = yes ; then
39571                 ol_cv_lib_db=-ldb41
39572         fi
39573 fi
39574
39575 if test $ol_cv_lib_db = no ; then
39576         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39577 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39578 if test "${ol_cv_db_db_41+set}" = set; then
39579   echo $ECHO_N "(cached) $ECHO_C" >&6
39580 else
39581
39582         ol_DB_LIB=-ldb-41
39583         ol_LIBS=$LIBS
39584         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39585
39586         cat >conftest.$ac_ext <<_ACEOF
39587 /* confdefs.h.  */
39588 _ACEOF
39589 cat confdefs.h >>conftest.$ac_ext
39590 cat >>conftest.$ac_ext <<_ACEOF
39591 /* end confdefs.h.  */
39592
39593 #ifdef HAVE_DB_185_H
39594 # include <db_185.h>
39595 #else
39596 # include <db.h>
39597 #endif
39598
39599 #ifndef DB_VERSION_MAJOR
39600 # define DB_VERSION_MAJOR 1
39601 #endif
39602
39603 #ifndef NULL
39604 #define NULL ((void*)0)
39605 #endif
39606
39607 int
39608 main ()
39609 {
39610
39611 #if DB_VERSION_MAJOR > 1
39612         {
39613                 char *version;
39614                 int major, minor, patch;
39615
39616                 version = db_version( &major, &minor, &patch );
39617
39618                 if( major != DB_VERSION_MAJOR ||
39619                         minor < DB_VERSION_MINOR )
39620                 {
39621                         printf("Berkeley DB version mismatch\n"
39622                                 "\theader: %s\n\tlibrary: %s\n",
39623                                 DB_VERSION_STRING, version);
39624                         return 1;
39625                 }
39626         }
39627 #endif
39628
39629 #if DB_VERSION_MAJOR > 2
39630         db_env_create( NULL, 0 );
39631 #elif DB_VERSION_MAJOR > 1
39632         db_appexit( NULL );
39633 #else
39634         (void) dbopen( NULL, 0, 0, 0, NULL);
39635 #endif
39636
39637   ;
39638   return 0;
39639 }
39640 _ACEOF
39641 rm -f conftest.$ac_objext conftest$ac_exeext
39642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39643   (eval $ac_link) 2>conftest.er1
39644   ac_status=$?
39645   grep -v '^ *+' conftest.er1 >conftest.err
39646   rm -f conftest.er1
39647   cat conftest.err >&5
39648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649   (exit $ac_status); } &&
39650          { ac_try='test -z "$ac_c_werror_flag"
39651                          || test ! -s conftest.err'
39652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39653   (eval $ac_try) 2>&5
39654   ac_status=$?
39655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656   (exit $ac_status); }; } &&
39657          { ac_try='test -s conftest$ac_exeext'
39658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659   (eval $ac_try) 2>&5
39660   ac_status=$?
39661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662   (exit $ac_status); }; }; then
39663   ol_cv_db_db_41=yes
39664 else
39665   echo "$as_me: failed program was:" >&5
39666 sed 's/^/| /' conftest.$ac_ext >&5
39667
39668 ol_cv_db_db_41=no
39669 fi
39670 rm -f conftest.err conftest.$ac_objext \
39671       conftest$ac_exeext conftest.$ac_ext
39672
39673         LIBS="$ol_LIBS"
39674
39675 fi
39676 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39677 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39678
39679         if test $ol_cv_db_db_41 = yes ; then
39680                 ol_cv_lib_db=-ldb-41
39681         fi
39682 fi
39683
39684 if test $ol_cv_lib_db = no ; then
39685         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39686 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39687 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39688   echo $ECHO_N "(cached) $ECHO_C" >&6
39689 else
39690
39691         ol_DB_LIB=-ldb-4.1
39692         ol_LIBS=$LIBS
39693         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39694
39695         cat >conftest.$ac_ext <<_ACEOF
39696 /* confdefs.h.  */
39697 _ACEOF
39698 cat confdefs.h >>conftest.$ac_ext
39699 cat >>conftest.$ac_ext <<_ACEOF
39700 /* end confdefs.h.  */
39701
39702 #ifdef HAVE_DB_185_H
39703 # include <db_185.h>
39704 #else
39705 # include <db.h>
39706 #endif
39707
39708 #ifndef DB_VERSION_MAJOR
39709 # define DB_VERSION_MAJOR 1
39710 #endif
39711
39712 #ifndef NULL
39713 #define NULL ((void*)0)
39714 #endif
39715
39716 int
39717 main ()
39718 {
39719
39720 #if DB_VERSION_MAJOR > 1
39721         {
39722                 char *version;
39723                 int major, minor, patch;
39724
39725                 version = db_version( &major, &minor, &patch );
39726
39727                 if( major != DB_VERSION_MAJOR ||
39728                         minor < DB_VERSION_MINOR )
39729                 {
39730                         printf("Berkeley DB version mismatch\n"
39731                                 "\theader: %s\n\tlibrary: %s\n",
39732                                 DB_VERSION_STRING, version);
39733                         return 1;
39734                 }
39735         }
39736 #endif
39737
39738 #if DB_VERSION_MAJOR > 2
39739         db_env_create( NULL, 0 );
39740 #elif DB_VERSION_MAJOR > 1
39741         db_appexit( NULL );
39742 #else
39743         (void) dbopen( NULL, 0, 0, 0, NULL);
39744 #endif
39745
39746   ;
39747   return 0;
39748 }
39749 _ACEOF
39750 rm -f conftest.$ac_objext conftest$ac_exeext
39751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39752   (eval $ac_link) 2>conftest.er1
39753   ac_status=$?
39754   grep -v '^ *+' conftest.er1 >conftest.err
39755   rm -f conftest.er1
39756   cat conftest.err >&5
39757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758   (exit $ac_status); } &&
39759          { ac_try='test -z "$ac_c_werror_flag"
39760                          || test ! -s conftest.err'
39761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762   (eval $ac_try) 2>&5
39763   ac_status=$?
39764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765   (exit $ac_status); }; } &&
39766          { ac_try='test -s conftest$ac_exeext'
39767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768   (eval $ac_try) 2>&5
39769   ac_status=$?
39770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771   (exit $ac_status); }; }; then
39772   ol_cv_db_db_4_dot_1=yes
39773 else
39774   echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.$ac_ext >&5
39776
39777 ol_cv_db_db_4_dot_1=no
39778 fi
39779 rm -f conftest.err conftest.$ac_objext \
39780       conftest$ac_exeext conftest.$ac_ext
39781
39782         LIBS="$ol_LIBS"
39783
39784 fi
39785 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39786 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39787
39788         if test $ol_cv_db_db_4_dot_1 = yes ; then
39789                 ol_cv_lib_db=-ldb-4.1
39790         fi
39791 fi
39792
39793 if test $ol_cv_lib_db = no ; then
39794         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39795 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39796 if test "${ol_cv_db_db_4_1+set}" = set; then
39797   echo $ECHO_N "(cached) $ECHO_C" >&6
39798 else
39799
39800         ol_DB_LIB=-ldb-4-1
39801         ol_LIBS=$LIBS
39802         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39803
39804         cat >conftest.$ac_ext <<_ACEOF
39805 /* confdefs.h.  */
39806 _ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h.  */
39810
39811 #ifdef HAVE_DB_185_H
39812 # include <db_185.h>
39813 #else
39814 # include <db.h>
39815 #endif
39816
39817 #ifndef DB_VERSION_MAJOR
39818 # define DB_VERSION_MAJOR 1
39819 #endif
39820
39821 #ifndef NULL
39822 #define NULL ((void*)0)
39823 #endif
39824
39825 int
39826 main ()
39827 {
39828
39829 #if DB_VERSION_MAJOR > 1
39830         {
39831                 char *version;
39832                 int major, minor, patch;
39833
39834                 version = db_version( &major, &minor, &patch );
39835
39836                 if( major != DB_VERSION_MAJOR ||
39837                         minor < DB_VERSION_MINOR )
39838                 {
39839                         printf("Berkeley DB version mismatch\n"
39840                                 "\theader: %s\n\tlibrary: %s\n",
39841                                 DB_VERSION_STRING, version);
39842                         return 1;
39843                 }
39844         }
39845 #endif
39846
39847 #if DB_VERSION_MAJOR > 2
39848         db_env_create( NULL, 0 );
39849 #elif DB_VERSION_MAJOR > 1
39850         db_appexit( NULL );
39851 #else
39852         (void) dbopen( NULL, 0, 0, 0, NULL);
39853 #endif
39854
39855   ;
39856   return 0;
39857 }
39858 _ACEOF
39859 rm -f conftest.$ac_objext conftest$ac_exeext
39860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39861   (eval $ac_link) 2>conftest.er1
39862   ac_status=$?
39863   grep -v '^ *+' conftest.er1 >conftest.err
39864   rm -f conftest.er1
39865   cat conftest.err >&5
39866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867   (exit $ac_status); } &&
39868          { ac_try='test -z "$ac_c_werror_flag"
39869                          || test ! -s conftest.err'
39870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39871   (eval $ac_try) 2>&5
39872   ac_status=$?
39873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874   (exit $ac_status); }; } &&
39875          { ac_try='test -s conftest$ac_exeext'
39876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39877   (eval $ac_try) 2>&5
39878   ac_status=$?
39879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880   (exit $ac_status); }; }; then
39881   ol_cv_db_db_4_1=yes
39882 else
39883   echo "$as_me: failed program was:" >&5
39884 sed 's/^/| /' conftest.$ac_ext >&5
39885
39886 ol_cv_db_db_4_1=no
39887 fi
39888 rm -f conftest.err conftest.$ac_objext \
39889       conftest$ac_exeext conftest.$ac_ext
39890
39891         LIBS="$ol_LIBS"
39892
39893 fi
39894 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39895 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39896
39897         if test $ol_cv_db_db_4_1 = yes ; then
39898                 ol_cv_lib_db=-ldb-4-1
39899         fi
39900 fi
39901
39902 if test $ol_cv_lib_db = no ; then
39903         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39904 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39905 if test "${ol_cv_db_db3+set}" = set; then
39906   echo $ECHO_N "(cached) $ECHO_C" >&6
39907 else
39908
39909         ol_DB_LIB=-ldb3
39910         ol_LIBS=$LIBS
39911         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39912
39913         cat >conftest.$ac_ext <<_ACEOF
39914 /* confdefs.h.  */
39915 _ACEOF
39916 cat confdefs.h >>conftest.$ac_ext
39917 cat >>conftest.$ac_ext <<_ACEOF
39918 /* end confdefs.h.  */
39919
39920 #ifdef HAVE_DB_185_H
39921 # include <db_185.h>
39922 #else
39923 # include <db.h>
39924 #endif
39925
39926 #ifndef DB_VERSION_MAJOR
39927 # define DB_VERSION_MAJOR 1
39928 #endif
39929
39930 #ifndef NULL
39931 #define NULL ((void*)0)
39932 #endif
39933
39934 int
39935 main ()
39936 {
39937
39938 #if DB_VERSION_MAJOR > 1
39939         {
39940                 char *version;
39941                 int major, minor, patch;
39942
39943                 version = db_version( &major, &minor, &patch );
39944
39945                 if( major != DB_VERSION_MAJOR ||
39946                         minor < DB_VERSION_MINOR )
39947                 {
39948                         printf("Berkeley DB version mismatch\n"
39949                                 "\theader: %s\n\tlibrary: %s\n",
39950                                 DB_VERSION_STRING, version);
39951                         return 1;
39952                 }
39953         }
39954 #endif
39955
39956 #if DB_VERSION_MAJOR > 2
39957         db_env_create( NULL, 0 );
39958 #elif DB_VERSION_MAJOR > 1
39959         db_appexit( NULL );
39960 #else
39961         (void) dbopen( NULL, 0, 0, 0, NULL);
39962 #endif
39963
39964   ;
39965   return 0;
39966 }
39967 _ACEOF
39968 rm -f conftest.$ac_objext conftest$ac_exeext
39969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39970   (eval $ac_link) 2>conftest.er1
39971   ac_status=$?
39972   grep -v '^ *+' conftest.er1 >conftest.err
39973   rm -f conftest.er1
39974   cat conftest.err >&5
39975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976   (exit $ac_status); } &&
39977          { ac_try='test -z "$ac_c_werror_flag"
39978                          || test ! -s conftest.err'
39979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39980   (eval $ac_try) 2>&5
39981   ac_status=$?
39982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983   (exit $ac_status); }; } &&
39984          { ac_try='test -s conftest$ac_exeext'
39985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986   (eval $ac_try) 2>&5
39987   ac_status=$?
39988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989   (exit $ac_status); }; }; then
39990   ol_cv_db_db3=yes
39991 else
39992   echo "$as_me: failed program was:" >&5
39993 sed 's/^/| /' conftest.$ac_ext >&5
39994
39995 ol_cv_db_db3=no
39996 fi
39997 rm -f conftest.err conftest.$ac_objext \
39998       conftest$ac_exeext conftest.$ac_ext
39999
40000         LIBS="$ol_LIBS"
40001
40002 fi
40003 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40004 echo "${ECHO_T}$ol_cv_db_db3" >&6
40005
40006         if test $ol_cv_db_db3 = yes ; then
40007                 ol_cv_lib_db=-ldb3
40008         fi
40009 fi
40010
40011 if test $ol_cv_lib_db = no ; then
40012         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40013 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40014 if test "${ol_cv_db_db_3+set}" = set; then
40015   echo $ECHO_N "(cached) $ECHO_C" >&6
40016 else
40017
40018         ol_DB_LIB=-ldb-3
40019         ol_LIBS=$LIBS
40020         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40021
40022         cat >conftest.$ac_ext <<_ACEOF
40023 /* confdefs.h.  */
40024 _ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h.  */
40028
40029 #ifdef HAVE_DB_185_H
40030 # include <db_185.h>
40031 #else
40032 # include <db.h>
40033 #endif
40034
40035 #ifndef DB_VERSION_MAJOR
40036 # define DB_VERSION_MAJOR 1
40037 #endif
40038
40039 #ifndef NULL
40040 #define NULL ((void*)0)
40041 #endif
40042
40043 int
40044 main ()
40045 {
40046
40047 #if DB_VERSION_MAJOR > 1
40048         {
40049                 char *version;
40050                 int major, minor, patch;
40051
40052                 version = db_version( &major, &minor, &patch );
40053
40054                 if( major != DB_VERSION_MAJOR ||
40055                         minor < DB_VERSION_MINOR )
40056                 {
40057                         printf("Berkeley DB version mismatch\n"
40058                                 "\theader: %s\n\tlibrary: %s\n",
40059                                 DB_VERSION_STRING, version);
40060                         return 1;
40061                 }
40062         }
40063 #endif
40064
40065 #if DB_VERSION_MAJOR > 2
40066         db_env_create( NULL, 0 );
40067 #elif DB_VERSION_MAJOR > 1
40068         db_appexit( NULL );
40069 #else
40070         (void) dbopen( NULL, 0, 0, 0, NULL);
40071 #endif
40072
40073   ;
40074   return 0;
40075 }
40076 _ACEOF
40077 rm -f conftest.$ac_objext conftest$ac_exeext
40078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40079   (eval $ac_link) 2>conftest.er1
40080   ac_status=$?
40081   grep -v '^ *+' conftest.er1 >conftest.err
40082   rm -f conftest.er1
40083   cat conftest.err >&5
40084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40085   (exit $ac_status); } &&
40086          { ac_try='test -z "$ac_c_werror_flag"
40087                          || test ! -s conftest.err'
40088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40089   (eval $ac_try) 2>&5
40090   ac_status=$?
40091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092   (exit $ac_status); }; } &&
40093          { ac_try='test -s conftest$ac_exeext'
40094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095   (eval $ac_try) 2>&5
40096   ac_status=$?
40097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098   (exit $ac_status); }; }; then
40099   ol_cv_db_db_3=yes
40100 else
40101   echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40103
40104 ol_cv_db_db_3=no
40105 fi
40106 rm -f conftest.err conftest.$ac_objext \
40107       conftest$ac_exeext conftest.$ac_ext
40108
40109         LIBS="$ol_LIBS"
40110
40111 fi
40112 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40113 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40114
40115         if test $ol_cv_db_db_3 = yes ; then
40116                 ol_cv_lib_db=-ldb-3
40117         fi
40118 fi
40119
40120 if test $ol_cv_lib_db = no ; then
40121         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40122 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40123 if test "${ol_cv_db_db2+set}" = set; then
40124   echo $ECHO_N "(cached) $ECHO_C" >&6
40125 else
40126
40127         ol_DB_LIB=-ldb2
40128         ol_LIBS=$LIBS
40129         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40130
40131         cat >conftest.$ac_ext <<_ACEOF
40132 /* confdefs.h.  */
40133 _ACEOF
40134 cat confdefs.h >>conftest.$ac_ext
40135 cat >>conftest.$ac_ext <<_ACEOF
40136 /* end confdefs.h.  */
40137
40138 #ifdef HAVE_DB_185_H
40139 # include <db_185.h>
40140 #else
40141 # include <db.h>
40142 #endif
40143
40144 #ifndef DB_VERSION_MAJOR
40145 # define DB_VERSION_MAJOR 1
40146 #endif
40147
40148 #ifndef NULL
40149 #define NULL ((void*)0)
40150 #endif
40151
40152 int
40153 main ()
40154 {
40155
40156 #if DB_VERSION_MAJOR > 1
40157         {
40158                 char *version;
40159                 int major, minor, patch;
40160
40161                 version = db_version( &major, &minor, &patch );
40162
40163                 if( major != DB_VERSION_MAJOR ||
40164                         minor < DB_VERSION_MINOR )
40165                 {
40166                         printf("Berkeley DB version mismatch\n"
40167                                 "\theader: %s\n\tlibrary: %s\n",
40168                                 DB_VERSION_STRING, version);
40169                         return 1;
40170                 }
40171         }
40172 #endif
40173
40174 #if DB_VERSION_MAJOR > 2
40175         db_env_create( NULL, 0 );
40176 #elif DB_VERSION_MAJOR > 1
40177         db_appexit( NULL );
40178 #else
40179         (void) dbopen( NULL, 0, 0, 0, NULL);
40180 #endif
40181
40182   ;
40183   return 0;
40184 }
40185 _ACEOF
40186 rm -f conftest.$ac_objext conftest$ac_exeext
40187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40188   (eval $ac_link) 2>conftest.er1
40189   ac_status=$?
40190   grep -v '^ *+' conftest.er1 >conftest.err
40191   rm -f conftest.er1
40192   cat conftest.err >&5
40193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194   (exit $ac_status); } &&
40195          { ac_try='test -z "$ac_c_werror_flag"
40196                          || test ! -s conftest.err'
40197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40198   (eval $ac_try) 2>&5
40199   ac_status=$?
40200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201   (exit $ac_status); }; } &&
40202          { ac_try='test -s conftest$ac_exeext'
40203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40204   (eval $ac_try) 2>&5
40205   ac_status=$?
40206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40207   (exit $ac_status); }; }; then
40208   ol_cv_db_db2=yes
40209 else
40210   echo "$as_me: failed program was:" >&5
40211 sed 's/^/| /' conftest.$ac_ext >&5
40212
40213 ol_cv_db_db2=no
40214 fi
40215 rm -f conftest.err conftest.$ac_objext \
40216       conftest$ac_exeext conftest.$ac_ext
40217
40218         LIBS="$ol_LIBS"
40219
40220 fi
40221 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40222 echo "${ECHO_T}$ol_cv_db_db2" >&6
40223
40224         if test $ol_cv_db_db2 = yes ; then
40225                 ol_cv_lib_db=-ldb2
40226         fi
40227 fi
40228
40229 if test $ol_cv_lib_db = no ; then
40230         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40231 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40232 if test "${ol_cv_db_db_2+set}" = set; then
40233   echo $ECHO_N "(cached) $ECHO_C" >&6
40234 else
40235
40236         ol_DB_LIB=-ldb-2
40237         ol_LIBS=$LIBS
40238         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40239
40240         cat >conftest.$ac_ext <<_ACEOF
40241 /* confdefs.h.  */
40242 _ACEOF
40243 cat confdefs.h >>conftest.$ac_ext
40244 cat >>conftest.$ac_ext <<_ACEOF
40245 /* end confdefs.h.  */
40246
40247 #ifdef HAVE_DB_185_H
40248 # include <db_185.h>
40249 #else
40250 # include <db.h>
40251 #endif
40252
40253 #ifndef DB_VERSION_MAJOR
40254 # define DB_VERSION_MAJOR 1
40255 #endif
40256
40257 #ifndef NULL
40258 #define NULL ((void*)0)
40259 #endif
40260
40261 int
40262 main ()
40263 {
40264
40265 #if DB_VERSION_MAJOR > 1
40266         {
40267                 char *version;
40268                 int major, minor, patch;
40269
40270                 version = db_version( &major, &minor, &patch );
40271
40272                 if( major != DB_VERSION_MAJOR ||
40273                         minor < DB_VERSION_MINOR )
40274                 {
40275                         printf("Berkeley DB version mismatch\n"
40276                                 "\theader: %s\n\tlibrary: %s\n",
40277                                 DB_VERSION_STRING, version);
40278                         return 1;
40279                 }
40280         }
40281 #endif
40282
40283 #if DB_VERSION_MAJOR > 2
40284         db_env_create( NULL, 0 );
40285 #elif DB_VERSION_MAJOR > 1
40286         db_appexit( NULL );
40287 #else
40288         (void) dbopen( NULL, 0, 0, 0, NULL);
40289 #endif
40290
40291   ;
40292   return 0;
40293 }
40294 _ACEOF
40295 rm -f conftest.$ac_objext conftest$ac_exeext
40296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40297   (eval $ac_link) 2>conftest.er1
40298   ac_status=$?
40299   grep -v '^ *+' conftest.er1 >conftest.err
40300   rm -f conftest.er1
40301   cat conftest.err >&5
40302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303   (exit $ac_status); } &&
40304          { ac_try='test -z "$ac_c_werror_flag"
40305                          || test ! -s conftest.err'
40306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307   (eval $ac_try) 2>&5
40308   ac_status=$?
40309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310   (exit $ac_status); }; } &&
40311          { ac_try='test -s conftest$ac_exeext'
40312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313   (eval $ac_try) 2>&5
40314   ac_status=$?
40315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316   (exit $ac_status); }; }; then
40317   ol_cv_db_db_2=yes
40318 else
40319   echo "$as_me: failed program was:" >&5
40320 sed 's/^/| /' conftest.$ac_ext >&5
40321
40322 ol_cv_db_db_2=no
40323 fi
40324 rm -f conftest.err conftest.$ac_objext \
40325       conftest$ac_exeext conftest.$ac_ext
40326
40327         LIBS="$ol_LIBS"
40328
40329 fi
40330 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40331 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40332
40333         if test $ol_cv_db_db_2 = yes ; then
40334                 ol_cv_lib_db=-ldb-2
40335         fi
40336 fi
40337
40338 if test $ol_cv_lib_db = no ; then
40339         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40340 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40341 if test "${ol_cv_db_db1+set}" = set; then
40342   echo $ECHO_N "(cached) $ECHO_C" >&6
40343 else
40344
40345         ol_DB_LIB=-ldb1
40346         ol_LIBS=$LIBS
40347         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40348
40349         cat >conftest.$ac_ext <<_ACEOF
40350 /* confdefs.h.  */
40351 _ACEOF
40352 cat confdefs.h >>conftest.$ac_ext
40353 cat >>conftest.$ac_ext <<_ACEOF
40354 /* end confdefs.h.  */
40355
40356 #ifdef HAVE_DB_185_H
40357 # include <db_185.h>
40358 #else
40359 # include <db.h>
40360 #endif
40361
40362 #ifndef DB_VERSION_MAJOR
40363 # define DB_VERSION_MAJOR 1
40364 #endif
40365
40366 #ifndef NULL
40367 #define NULL ((void*)0)
40368 #endif
40369
40370 int
40371 main ()
40372 {
40373
40374 #if DB_VERSION_MAJOR > 1
40375         {
40376                 char *version;
40377                 int major, minor, patch;
40378
40379                 version = db_version( &major, &minor, &patch );
40380
40381                 if( major != DB_VERSION_MAJOR ||
40382                         minor < DB_VERSION_MINOR )
40383                 {
40384                         printf("Berkeley DB version mismatch\n"
40385                                 "\theader: %s\n\tlibrary: %s\n",
40386                                 DB_VERSION_STRING, version);
40387                         return 1;
40388                 }
40389         }
40390 #endif
40391
40392 #if DB_VERSION_MAJOR > 2
40393         db_env_create( NULL, 0 );
40394 #elif DB_VERSION_MAJOR > 1
40395         db_appexit( NULL );
40396 #else
40397         (void) dbopen( NULL, 0, 0, 0, NULL);
40398 #endif
40399
40400   ;
40401   return 0;
40402 }
40403 _ACEOF
40404 rm -f conftest.$ac_objext conftest$ac_exeext
40405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40406   (eval $ac_link) 2>conftest.er1
40407   ac_status=$?
40408   grep -v '^ *+' conftest.er1 >conftest.err
40409   rm -f conftest.er1
40410   cat conftest.err >&5
40411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412   (exit $ac_status); } &&
40413          { ac_try='test -z "$ac_c_werror_flag"
40414                          || test ! -s conftest.err'
40415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40416   (eval $ac_try) 2>&5
40417   ac_status=$?
40418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40419   (exit $ac_status); }; } &&
40420          { ac_try='test -s conftest$ac_exeext'
40421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40422   (eval $ac_try) 2>&5
40423   ac_status=$?
40424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425   (exit $ac_status); }; }; then
40426   ol_cv_db_db1=yes
40427 else
40428   echo "$as_me: failed program was:" >&5
40429 sed 's/^/| /' conftest.$ac_ext >&5
40430
40431 ol_cv_db_db1=no
40432 fi
40433 rm -f conftest.err conftest.$ac_objext \
40434       conftest$ac_exeext conftest.$ac_ext
40435
40436         LIBS="$ol_LIBS"
40437
40438 fi
40439 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40440 echo "${ECHO_T}$ol_cv_db_db1" >&6
40441
40442         if test $ol_cv_db_db1 = yes ; then
40443                 ol_cv_lib_db=-ldb1
40444         fi
40445 fi
40446
40447 if test $ol_cv_lib_db = no ; then
40448         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40449 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40450 if test "${ol_cv_db_db_1+set}" = set; then
40451   echo $ECHO_N "(cached) $ECHO_C" >&6
40452 else
40453
40454         ol_DB_LIB=-ldb-1
40455         ol_LIBS=$LIBS
40456         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40457
40458         cat >conftest.$ac_ext <<_ACEOF
40459 /* confdefs.h.  */
40460 _ACEOF
40461 cat confdefs.h >>conftest.$ac_ext
40462 cat >>conftest.$ac_ext <<_ACEOF
40463 /* end confdefs.h.  */
40464
40465 #ifdef HAVE_DB_185_H
40466 # include <db_185.h>
40467 #else
40468 # include <db.h>
40469 #endif
40470
40471 #ifndef DB_VERSION_MAJOR
40472 # define DB_VERSION_MAJOR 1
40473 #endif
40474
40475 #ifndef NULL
40476 #define NULL ((void*)0)
40477 #endif
40478
40479 int
40480 main ()
40481 {
40482
40483 #if DB_VERSION_MAJOR > 1
40484         {
40485                 char *version;
40486                 int major, minor, patch;
40487
40488                 version = db_version( &major, &minor, &patch );
40489
40490                 if( major != DB_VERSION_MAJOR ||
40491                         minor < DB_VERSION_MINOR )
40492                 {
40493                         printf("Berkeley DB version mismatch\n"
40494                                 "\theader: %s\n\tlibrary: %s\n",
40495                                 DB_VERSION_STRING, version);
40496                         return 1;
40497                 }
40498         }
40499 #endif
40500
40501 #if DB_VERSION_MAJOR > 2
40502         db_env_create( NULL, 0 );
40503 #elif DB_VERSION_MAJOR > 1
40504         db_appexit( NULL );
40505 #else
40506         (void) dbopen( NULL, 0, 0, 0, NULL);
40507 #endif
40508
40509   ;
40510   return 0;
40511 }
40512 _ACEOF
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40515   (eval $ac_link) 2>conftest.er1
40516   ac_status=$?
40517   grep -v '^ *+' conftest.er1 >conftest.err
40518   rm -f conftest.er1
40519   cat conftest.err >&5
40520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521   (exit $ac_status); } &&
40522          { ac_try='test -z "$ac_c_werror_flag"
40523                          || test ! -s conftest.err'
40524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525   (eval $ac_try) 2>&5
40526   ac_status=$?
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); }; } &&
40529          { ac_try='test -s conftest$ac_exeext'
40530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40531   (eval $ac_try) 2>&5
40532   ac_status=$?
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); }; }; then
40535   ol_cv_db_db_1=yes
40536 else
40537   echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40539
40540 ol_cv_db_db_1=no
40541 fi
40542 rm -f conftest.err conftest.$ac_objext \
40543       conftest$ac_exeext conftest.$ac_ext
40544
40545         LIBS="$ol_LIBS"
40546
40547 fi
40548 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40549 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40550
40551         if test $ol_cv_db_db_1 = yes ; then
40552                 ol_cv_lib_db=-ldb-1
40553         fi
40554 fi
40555
40556
40557                 if test "$ol_cv_lib_db" != no ; then
40558                         ol_cv_berkeley_db=yes
40559                 fi
40560         fi
40561 fi
40562
40563         else
40564                 ol_cv_berkeley_db=no
40565
40566 for ac_header in db.h
40567 do
40568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40570   echo "$as_me:$LINENO: checking for $ac_header" >&5
40571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40573   echo $ECHO_N "(cached) $ECHO_C" >&6
40574 fi
40575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40577 else
40578   # Is the header compilable?
40579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40581 cat >conftest.$ac_ext <<_ACEOF
40582 /* confdefs.h.  */
40583 _ACEOF
40584 cat confdefs.h >>conftest.$ac_ext
40585 cat >>conftest.$ac_ext <<_ACEOF
40586 /* end confdefs.h.  */
40587 $ac_includes_default
40588 #include <$ac_header>
40589 _ACEOF
40590 rm -f conftest.$ac_objext
40591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40592   (eval $ac_compile) 2>conftest.er1
40593   ac_status=$?
40594   grep -v '^ *+' conftest.er1 >conftest.err
40595   rm -f conftest.er1
40596   cat conftest.err >&5
40597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40598   (exit $ac_status); } &&
40599          { ac_try='test -z "$ac_c_werror_flag"
40600                          || test ! -s conftest.err'
40601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40602   (eval $ac_try) 2>&5
40603   ac_status=$?
40604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605   (exit $ac_status); }; } &&
40606          { ac_try='test -s conftest.$ac_objext'
40607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40608   (eval $ac_try) 2>&5
40609   ac_status=$?
40610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40611   (exit $ac_status); }; }; then
40612   ac_header_compiler=yes
40613 else
40614   echo "$as_me: failed program was:" >&5
40615 sed 's/^/| /' conftest.$ac_ext >&5
40616
40617 ac_header_compiler=no
40618 fi
40619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40621 echo "${ECHO_T}$ac_header_compiler" >&6
40622
40623 # Is the header present?
40624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40626 cat >conftest.$ac_ext <<_ACEOF
40627 /* confdefs.h.  */
40628 _ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h.  */
40632 #include <$ac_header>
40633 _ACEOF
40634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40636   ac_status=$?
40637   grep -v '^ *+' conftest.er1 >conftest.err
40638   rm -f conftest.er1
40639   cat conftest.err >&5
40640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40641   (exit $ac_status); } >/dev/null; then
40642   if test -s conftest.err; then
40643     ac_cpp_err=$ac_c_preproc_warn_flag
40644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40645   else
40646     ac_cpp_err=
40647   fi
40648 else
40649   ac_cpp_err=yes
40650 fi
40651 if test -z "$ac_cpp_err"; then
40652   ac_header_preproc=yes
40653 else
40654   echo "$as_me: failed program was:" >&5
40655 sed 's/^/| /' conftest.$ac_ext >&5
40656
40657   ac_header_preproc=no
40658 fi
40659 rm -f conftest.err conftest.$ac_ext
40660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40661 echo "${ECHO_T}$ac_header_preproc" >&6
40662
40663 # So?  What about this header?
40664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40665   yes:no: )
40666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40670     ac_header_preproc=yes
40671     ;;
40672   no:yes:* )
40673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40685     (
40686       cat <<\_ASBOX
40687 ## ------------------------------------------ ##
40688 ## Report this to the AC_PACKAGE_NAME lists.  ##
40689 ## ------------------------------------------ ##
40690 _ASBOX
40691     ) |
40692       sed "s/^/$as_me: WARNING:     /" >&2
40693     ;;
40694 esac
40695 echo "$as_me:$LINENO: checking for $ac_header" >&5
40696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40698   echo $ECHO_N "(cached) $ECHO_C" >&6
40699 else
40700   eval "$as_ac_Header=\$ac_header_preproc"
40701 fi
40702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40704
40705 fi
40706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40707   cat >>confdefs.h <<_ACEOF
40708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40709 _ACEOF
40710
40711 fi
40712
40713 done
40714
40715 if test $ac_cv_header_db_h = yes; then
40716         ol_cv_lib_db=no
40717 if test $ol_cv_lib_db = no ; then
40718         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40719 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40720 if test "${ol_cv_db_none+set}" = set; then
40721   echo $ECHO_N "(cached) $ECHO_C" >&6
40722 else
40723
40724         ol_DB_LIB=
40725         ol_LIBS=$LIBS
40726         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40727
40728         cat >conftest.$ac_ext <<_ACEOF
40729 /* confdefs.h.  */
40730 _ACEOF
40731 cat confdefs.h >>conftest.$ac_ext
40732 cat >>conftest.$ac_ext <<_ACEOF
40733 /* end confdefs.h.  */
40734
40735 #ifdef HAVE_DB_185_H
40736 # include <db_185.h>
40737 #else
40738 # include <db.h>
40739 #endif
40740
40741 #ifndef DB_VERSION_MAJOR
40742 # define DB_VERSION_MAJOR 1
40743 #endif
40744
40745 #ifndef NULL
40746 #define NULL ((void*)0)
40747 #endif
40748
40749 int
40750 main ()
40751 {
40752
40753 #if DB_VERSION_MAJOR > 1
40754         {
40755                 char *version;
40756                 int major, minor, patch;
40757
40758                 version = db_version( &major, &minor, &patch );
40759
40760                 if( major != DB_VERSION_MAJOR ||
40761                         minor < DB_VERSION_MINOR )
40762                 {
40763                         printf("Berkeley DB version mismatch\n"
40764                                 "\theader: %s\n\tlibrary: %s\n",
40765                                 DB_VERSION_STRING, version);
40766                         return 1;
40767                 }
40768         }
40769 #endif
40770
40771 #if DB_VERSION_MAJOR > 2
40772         db_env_create( NULL, 0 );
40773 #elif DB_VERSION_MAJOR > 1
40774         db_appexit( NULL );
40775 #else
40776         (void) dbopen( NULL, 0, 0, 0, NULL);
40777 #endif
40778
40779   ;
40780   return 0;
40781 }
40782 _ACEOF
40783 rm -f conftest.$ac_objext conftest$ac_exeext
40784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40785   (eval $ac_link) 2>conftest.er1
40786   ac_status=$?
40787   grep -v '^ *+' conftest.er1 >conftest.err
40788   rm -f conftest.er1
40789   cat conftest.err >&5
40790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791   (exit $ac_status); } &&
40792          { ac_try='test -z "$ac_c_werror_flag"
40793                          || test ! -s conftest.err'
40794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40795   (eval $ac_try) 2>&5
40796   ac_status=$?
40797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798   (exit $ac_status); }; } &&
40799          { ac_try='test -s conftest$ac_exeext'
40800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40801   (eval $ac_try) 2>&5
40802   ac_status=$?
40803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40804   (exit $ac_status); }; }; then
40805   ol_cv_db_none=yes
40806 else
40807   echo "$as_me: failed program was:" >&5
40808 sed 's/^/| /' conftest.$ac_ext >&5
40809
40810 ol_cv_db_none=no
40811 fi
40812 rm -f conftest.err conftest.$ac_objext \
40813       conftest$ac_exeext conftest.$ac_ext
40814
40815         LIBS="$ol_LIBS"
40816
40817 fi
40818 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40819 echo "${ECHO_T}$ol_cv_db_none" >&6
40820
40821         if test $ol_cv_db_none = yes ; then
40822                 ol_cv_lib_db=yes
40823         fi
40824 fi
40825
40826 if test $ol_cv_lib_db = no ; then
40827         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40828 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40829 if test "${ol_cv_db_db43+set}" = set; then
40830   echo $ECHO_N "(cached) $ECHO_C" >&6
40831 else
40832
40833         ol_DB_LIB=-ldb43
40834         ol_LIBS=$LIBS
40835         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40836
40837         cat >conftest.$ac_ext <<_ACEOF
40838 /* confdefs.h.  */
40839 _ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h.  */
40843
40844 #ifdef HAVE_DB_185_H
40845 # include <db_185.h>
40846 #else
40847 # include <db.h>
40848 #endif
40849
40850 #ifndef DB_VERSION_MAJOR
40851 # define DB_VERSION_MAJOR 1
40852 #endif
40853
40854 #ifndef NULL
40855 #define NULL ((void*)0)
40856 #endif
40857
40858 int
40859 main ()
40860 {
40861
40862 #if DB_VERSION_MAJOR > 1
40863         {
40864                 char *version;
40865                 int major, minor, patch;
40866
40867                 version = db_version( &major, &minor, &patch );
40868
40869                 if( major != DB_VERSION_MAJOR ||
40870                         minor < DB_VERSION_MINOR )
40871                 {
40872                         printf("Berkeley DB version mismatch\n"
40873                                 "\theader: %s\n\tlibrary: %s\n",
40874                                 DB_VERSION_STRING, version);
40875                         return 1;
40876                 }
40877         }
40878 #endif
40879
40880 #if DB_VERSION_MAJOR > 2
40881         db_env_create( NULL, 0 );
40882 #elif DB_VERSION_MAJOR > 1
40883         db_appexit( NULL );
40884 #else
40885         (void) dbopen( NULL, 0, 0, 0, NULL);
40886 #endif
40887
40888   ;
40889   return 0;
40890 }
40891 _ACEOF
40892 rm -f conftest.$ac_objext conftest$ac_exeext
40893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40894   (eval $ac_link) 2>conftest.er1
40895   ac_status=$?
40896   grep -v '^ *+' conftest.er1 >conftest.err
40897   rm -f conftest.er1
40898   cat conftest.err >&5
40899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900   (exit $ac_status); } &&
40901          { ac_try='test -z "$ac_c_werror_flag"
40902                          || test ! -s conftest.err'
40903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40904   (eval $ac_try) 2>&5
40905   ac_status=$?
40906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40907   (exit $ac_status); }; } &&
40908          { ac_try='test -s conftest$ac_exeext'
40909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40910   (eval $ac_try) 2>&5
40911   ac_status=$?
40912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913   (exit $ac_status); }; }; then
40914   ol_cv_db_db43=yes
40915 else
40916   echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40918
40919 ol_cv_db_db43=no
40920 fi
40921 rm -f conftest.err conftest.$ac_objext \
40922       conftest$ac_exeext conftest.$ac_ext
40923
40924         LIBS="$ol_LIBS"
40925
40926 fi
40927 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40928 echo "${ECHO_T}$ol_cv_db_db43" >&6
40929
40930         if test $ol_cv_db_db43 = yes ; then
40931                 ol_cv_lib_db=-ldb43
40932         fi
40933 fi
40934
40935 if test $ol_cv_lib_db = no ; then
40936         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40937 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40938 if test "${ol_cv_db_db_43+set}" = set; then
40939   echo $ECHO_N "(cached) $ECHO_C" >&6
40940 else
40941
40942         ol_DB_LIB=-ldb-43
40943         ol_LIBS=$LIBS
40944         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40945
40946         cat >conftest.$ac_ext <<_ACEOF
40947 /* confdefs.h.  */
40948 _ACEOF
40949 cat confdefs.h >>conftest.$ac_ext
40950 cat >>conftest.$ac_ext <<_ACEOF
40951 /* end confdefs.h.  */
40952
40953 #ifdef HAVE_DB_185_H
40954 # include <db_185.h>
40955 #else
40956 # include <db.h>
40957 #endif
40958
40959 #ifndef DB_VERSION_MAJOR
40960 # define DB_VERSION_MAJOR 1
40961 #endif
40962
40963 #ifndef NULL
40964 #define NULL ((void*)0)
40965 #endif
40966
40967 int
40968 main ()
40969 {
40970
40971 #if DB_VERSION_MAJOR > 1
40972         {
40973                 char *version;
40974                 int major, minor, patch;
40975
40976                 version = db_version( &major, &minor, &patch );
40977
40978                 if( major != DB_VERSION_MAJOR ||
40979                         minor < DB_VERSION_MINOR )
40980                 {
40981                         printf("Berkeley DB version mismatch\n"
40982                                 "\theader: %s\n\tlibrary: %s\n",
40983                                 DB_VERSION_STRING, version);
40984                         return 1;
40985                 }
40986         }
40987 #endif
40988
40989 #if DB_VERSION_MAJOR > 2
40990         db_env_create( NULL, 0 );
40991 #elif DB_VERSION_MAJOR > 1
40992         db_appexit( NULL );
40993 #else
40994         (void) dbopen( NULL, 0, 0, 0, NULL);
40995 #endif
40996
40997   ;
40998   return 0;
40999 }
41000 _ACEOF
41001 rm -f conftest.$ac_objext conftest$ac_exeext
41002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41003   (eval $ac_link) 2>conftest.er1
41004   ac_status=$?
41005   grep -v '^ *+' conftest.er1 >conftest.err
41006   rm -f conftest.er1
41007   cat conftest.err >&5
41008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41009   (exit $ac_status); } &&
41010          { ac_try='test -z "$ac_c_werror_flag"
41011                          || test ! -s conftest.err'
41012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41013   (eval $ac_try) 2>&5
41014   ac_status=$?
41015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016   (exit $ac_status); }; } &&
41017          { ac_try='test -s conftest$ac_exeext'
41018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019   (eval $ac_try) 2>&5
41020   ac_status=$?
41021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022   (exit $ac_status); }; }; then
41023   ol_cv_db_db_43=yes
41024 else
41025   echo "$as_me: failed program was:" >&5
41026 sed 's/^/| /' conftest.$ac_ext >&5
41027
41028 ol_cv_db_db_43=no
41029 fi
41030 rm -f conftest.err conftest.$ac_objext \
41031       conftest$ac_exeext conftest.$ac_ext
41032
41033         LIBS="$ol_LIBS"
41034
41035 fi
41036 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41037 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41038
41039         if test $ol_cv_db_db_43 = yes ; then
41040                 ol_cv_lib_db=-ldb-43
41041         fi
41042 fi
41043
41044 if test $ol_cv_lib_db = no ; then
41045         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41046 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41047 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41048   echo $ECHO_N "(cached) $ECHO_C" >&6
41049 else
41050
41051         ol_DB_LIB=-ldb-4.3
41052         ol_LIBS=$LIBS
41053         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41054
41055         cat >conftest.$ac_ext <<_ACEOF
41056 /* confdefs.h.  */
41057 _ACEOF
41058 cat confdefs.h >>conftest.$ac_ext
41059 cat >>conftest.$ac_ext <<_ACEOF
41060 /* end confdefs.h.  */
41061
41062 #ifdef HAVE_DB_185_H
41063 # include <db_185.h>
41064 #else
41065 # include <db.h>
41066 #endif
41067
41068 #ifndef DB_VERSION_MAJOR
41069 # define DB_VERSION_MAJOR 1
41070 #endif
41071
41072 #ifndef NULL
41073 #define NULL ((void*)0)
41074 #endif
41075
41076 int
41077 main ()
41078 {
41079
41080 #if DB_VERSION_MAJOR > 1
41081         {
41082                 char *version;
41083                 int major, minor, patch;
41084
41085                 version = db_version( &major, &minor, &patch );
41086
41087                 if( major != DB_VERSION_MAJOR ||
41088                         minor < DB_VERSION_MINOR )
41089                 {
41090                         printf("Berkeley DB version mismatch\n"
41091                                 "\theader: %s\n\tlibrary: %s\n",
41092                                 DB_VERSION_STRING, version);
41093                         return 1;
41094                 }
41095         }
41096 #endif
41097
41098 #if DB_VERSION_MAJOR > 2
41099         db_env_create( NULL, 0 );
41100 #elif DB_VERSION_MAJOR > 1
41101         db_appexit( NULL );
41102 #else
41103         (void) dbopen( NULL, 0, 0, 0, NULL);
41104 #endif
41105
41106   ;
41107   return 0;
41108 }
41109 _ACEOF
41110 rm -f conftest.$ac_objext conftest$ac_exeext
41111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41112   (eval $ac_link) 2>conftest.er1
41113   ac_status=$?
41114   grep -v '^ *+' conftest.er1 >conftest.err
41115   rm -f conftest.er1
41116   cat conftest.err >&5
41117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118   (exit $ac_status); } &&
41119          { ac_try='test -z "$ac_c_werror_flag"
41120                          || test ! -s conftest.err'
41121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41122   (eval $ac_try) 2>&5
41123   ac_status=$?
41124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41125   (exit $ac_status); }; } &&
41126          { ac_try='test -s conftest$ac_exeext'
41127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41128   (eval $ac_try) 2>&5
41129   ac_status=$?
41130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131   (exit $ac_status); }; }; then
41132   ol_cv_db_db_4_dot_3=yes
41133 else
41134   echo "$as_me: failed program was:" >&5
41135 sed 's/^/| /' conftest.$ac_ext >&5
41136
41137 ol_cv_db_db_4_dot_3=no
41138 fi
41139 rm -f conftest.err conftest.$ac_objext \
41140       conftest$ac_exeext conftest.$ac_ext
41141
41142         LIBS="$ol_LIBS"
41143
41144 fi
41145 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41146 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41147
41148         if test $ol_cv_db_db_4_dot_3 = yes ; then
41149                 ol_cv_lib_db=-ldb-4.3
41150         fi
41151 fi
41152
41153 if test $ol_cv_lib_db = no ; then
41154         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41155 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41156 if test "${ol_cv_db_db_4_3+set}" = set; then
41157   echo $ECHO_N "(cached) $ECHO_C" >&6
41158 else
41159
41160         ol_DB_LIB=-ldb-4-3
41161         ol_LIBS=$LIBS
41162         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41163
41164         cat >conftest.$ac_ext <<_ACEOF
41165 /* confdefs.h.  */
41166 _ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h.  */
41170
41171 #ifdef HAVE_DB_185_H
41172 # include <db_185.h>
41173 #else
41174 # include <db.h>
41175 #endif
41176
41177 #ifndef DB_VERSION_MAJOR
41178 # define DB_VERSION_MAJOR 1
41179 #endif
41180
41181 #ifndef NULL
41182 #define NULL ((void*)0)
41183 #endif
41184
41185 int
41186 main ()
41187 {
41188
41189 #if DB_VERSION_MAJOR > 1
41190         {
41191                 char *version;
41192                 int major, minor, patch;
41193
41194                 version = db_version( &major, &minor, &patch );
41195
41196                 if( major != DB_VERSION_MAJOR ||
41197                         minor < DB_VERSION_MINOR )
41198                 {
41199                         printf("Berkeley DB version mismatch\n"
41200                                 "\theader: %s\n\tlibrary: %s\n",
41201                                 DB_VERSION_STRING, version);
41202                         return 1;
41203                 }
41204         }
41205 #endif
41206
41207 #if DB_VERSION_MAJOR > 2
41208         db_env_create( NULL, 0 );
41209 #elif DB_VERSION_MAJOR > 1
41210         db_appexit( NULL );
41211 #else
41212         (void) dbopen( NULL, 0, 0, 0, NULL);
41213 #endif
41214
41215   ;
41216   return 0;
41217 }
41218 _ACEOF
41219 rm -f conftest.$ac_objext conftest$ac_exeext
41220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41221   (eval $ac_link) 2>conftest.er1
41222   ac_status=$?
41223   grep -v '^ *+' conftest.er1 >conftest.err
41224   rm -f conftest.er1
41225   cat conftest.err >&5
41226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41227   (exit $ac_status); } &&
41228          { ac_try='test -z "$ac_c_werror_flag"
41229                          || test ! -s conftest.err'
41230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41231   (eval $ac_try) 2>&5
41232   ac_status=$?
41233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234   (exit $ac_status); }; } &&
41235          { ac_try='test -s conftest$ac_exeext'
41236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41237   (eval $ac_try) 2>&5
41238   ac_status=$?
41239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41240   (exit $ac_status); }; }; then
41241   ol_cv_db_db_4_3=yes
41242 else
41243   echo "$as_me: failed program was:" >&5
41244 sed 's/^/| /' conftest.$ac_ext >&5
41245
41246 ol_cv_db_db_4_3=no
41247 fi
41248 rm -f conftest.err conftest.$ac_objext \
41249       conftest$ac_exeext conftest.$ac_ext
41250
41251         LIBS="$ol_LIBS"
41252
41253 fi
41254 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41255 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41256
41257         if test $ol_cv_db_db_4_3 = yes ; then
41258                 ol_cv_lib_db=-ldb-4-3
41259         fi
41260 fi
41261
41262 if test $ol_cv_lib_db = no ; then
41263         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41264 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41265 if test "${ol_cv_db_db42+set}" = set; then
41266   echo $ECHO_N "(cached) $ECHO_C" >&6
41267 else
41268
41269         ol_DB_LIB=-ldb42
41270         ol_LIBS=$LIBS
41271         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41272
41273         cat >conftest.$ac_ext <<_ACEOF
41274 /* confdefs.h.  */
41275 _ACEOF
41276 cat confdefs.h >>conftest.$ac_ext
41277 cat >>conftest.$ac_ext <<_ACEOF
41278 /* end confdefs.h.  */
41279
41280 #ifdef HAVE_DB_185_H
41281 # include <db_185.h>
41282 #else
41283 # include <db.h>
41284 #endif
41285
41286 #ifndef DB_VERSION_MAJOR
41287 # define DB_VERSION_MAJOR 1
41288 #endif
41289
41290 #ifndef NULL
41291 #define NULL ((void*)0)
41292 #endif
41293
41294 int
41295 main ()
41296 {
41297
41298 #if DB_VERSION_MAJOR > 1
41299         {
41300                 char *version;
41301                 int major, minor, patch;
41302
41303                 version = db_version( &major, &minor, &patch );
41304
41305                 if( major != DB_VERSION_MAJOR ||
41306                         minor < DB_VERSION_MINOR )
41307                 {
41308                         printf("Berkeley DB version mismatch\n"
41309                                 "\theader: %s\n\tlibrary: %s\n",
41310                                 DB_VERSION_STRING, version);
41311                         return 1;
41312                 }
41313         }
41314 #endif
41315
41316 #if DB_VERSION_MAJOR > 2
41317         db_env_create( NULL, 0 );
41318 #elif DB_VERSION_MAJOR > 1
41319         db_appexit( NULL );
41320 #else
41321         (void) dbopen( NULL, 0, 0, 0, NULL);
41322 #endif
41323
41324   ;
41325   return 0;
41326 }
41327 _ACEOF
41328 rm -f conftest.$ac_objext conftest$ac_exeext
41329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41330   (eval $ac_link) 2>conftest.er1
41331   ac_status=$?
41332   grep -v '^ *+' conftest.er1 >conftest.err
41333   rm -f conftest.er1
41334   cat conftest.err >&5
41335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336   (exit $ac_status); } &&
41337          { ac_try='test -z "$ac_c_werror_flag"
41338                          || test ! -s conftest.err'
41339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41340   (eval $ac_try) 2>&5
41341   ac_status=$?
41342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41343   (exit $ac_status); }; } &&
41344          { ac_try='test -s conftest$ac_exeext'
41345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41346   (eval $ac_try) 2>&5
41347   ac_status=$?
41348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349   (exit $ac_status); }; }; then
41350   ol_cv_db_db42=yes
41351 else
41352   echo "$as_me: failed program was:" >&5
41353 sed 's/^/| /' conftest.$ac_ext >&5
41354
41355 ol_cv_db_db42=no
41356 fi
41357 rm -f conftest.err conftest.$ac_objext \
41358       conftest$ac_exeext conftest.$ac_ext
41359
41360         LIBS="$ol_LIBS"
41361
41362 fi
41363 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41364 echo "${ECHO_T}$ol_cv_db_db42" >&6
41365
41366         if test $ol_cv_db_db42 = yes ; then
41367                 ol_cv_lib_db=-ldb42
41368         fi
41369 fi
41370
41371 if test $ol_cv_lib_db = no ; then
41372         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41373 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41374 if test "${ol_cv_db_db_42+set}" = set; then
41375   echo $ECHO_N "(cached) $ECHO_C" >&6
41376 else
41377
41378         ol_DB_LIB=-ldb-42
41379         ol_LIBS=$LIBS
41380         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41381
41382         cat >conftest.$ac_ext <<_ACEOF
41383 /* confdefs.h.  */
41384 _ACEOF
41385 cat confdefs.h >>conftest.$ac_ext
41386 cat >>conftest.$ac_ext <<_ACEOF
41387 /* end confdefs.h.  */
41388
41389 #ifdef HAVE_DB_185_H
41390 # include <db_185.h>
41391 #else
41392 # include <db.h>
41393 #endif
41394
41395 #ifndef DB_VERSION_MAJOR
41396 # define DB_VERSION_MAJOR 1
41397 #endif
41398
41399 #ifndef NULL
41400 #define NULL ((void*)0)
41401 #endif
41402
41403 int
41404 main ()
41405 {
41406
41407 #if DB_VERSION_MAJOR > 1
41408         {
41409                 char *version;
41410                 int major, minor, patch;
41411
41412                 version = db_version( &major, &minor, &patch );
41413
41414                 if( major != DB_VERSION_MAJOR ||
41415                         minor < DB_VERSION_MINOR )
41416                 {
41417                         printf("Berkeley DB version mismatch\n"
41418                                 "\theader: %s\n\tlibrary: %s\n",
41419                                 DB_VERSION_STRING, version);
41420                         return 1;
41421                 }
41422         }
41423 #endif
41424
41425 #if DB_VERSION_MAJOR > 2
41426         db_env_create( NULL, 0 );
41427 #elif DB_VERSION_MAJOR > 1
41428         db_appexit( NULL );
41429 #else
41430         (void) dbopen( NULL, 0, 0, 0, NULL);
41431 #endif
41432
41433   ;
41434   return 0;
41435 }
41436 _ACEOF
41437 rm -f conftest.$ac_objext conftest$ac_exeext
41438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41439   (eval $ac_link) 2>conftest.er1
41440   ac_status=$?
41441   grep -v '^ *+' conftest.er1 >conftest.err
41442   rm -f conftest.er1
41443   cat conftest.err >&5
41444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41445   (exit $ac_status); } &&
41446          { ac_try='test -z "$ac_c_werror_flag"
41447                          || test ! -s conftest.err'
41448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41449   (eval $ac_try) 2>&5
41450   ac_status=$?
41451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41452   (exit $ac_status); }; } &&
41453          { ac_try='test -s conftest$ac_exeext'
41454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41455   (eval $ac_try) 2>&5
41456   ac_status=$?
41457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458   (exit $ac_status); }; }; then
41459   ol_cv_db_db_42=yes
41460 else
41461   echo "$as_me: failed program was:" >&5
41462 sed 's/^/| /' conftest.$ac_ext >&5
41463
41464 ol_cv_db_db_42=no
41465 fi
41466 rm -f conftest.err conftest.$ac_objext \
41467       conftest$ac_exeext conftest.$ac_ext
41468
41469         LIBS="$ol_LIBS"
41470
41471 fi
41472 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41473 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41474
41475         if test $ol_cv_db_db_42 = yes ; then
41476                 ol_cv_lib_db=-ldb-42
41477         fi
41478 fi
41479
41480 if test $ol_cv_lib_db = no ; then
41481         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41482 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41483 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41484   echo $ECHO_N "(cached) $ECHO_C" >&6
41485 else
41486
41487         ol_DB_LIB=-ldb-4.2
41488         ol_LIBS=$LIBS
41489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41490
41491         cat >conftest.$ac_ext <<_ACEOF
41492 /* confdefs.h.  */
41493 _ACEOF
41494 cat confdefs.h >>conftest.$ac_ext
41495 cat >>conftest.$ac_ext <<_ACEOF
41496 /* end confdefs.h.  */
41497
41498 #ifdef HAVE_DB_185_H
41499 # include <db_185.h>
41500 #else
41501 # include <db.h>
41502 #endif
41503
41504 #ifndef DB_VERSION_MAJOR
41505 # define DB_VERSION_MAJOR 1
41506 #endif
41507
41508 #ifndef NULL
41509 #define NULL ((void*)0)
41510 #endif
41511
41512 int
41513 main ()
41514 {
41515
41516 #if DB_VERSION_MAJOR > 1
41517         {
41518                 char *version;
41519                 int major, minor, patch;
41520
41521                 version = db_version( &major, &minor, &patch );
41522
41523                 if( major != DB_VERSION_MAJOR ||
41524                         minor < DB_VERSION_MINOR )
41525                 {
41526                         printf("Berkeley DB version mismatch\n"
41527                                 "\theader: %s\n\tlibrary: %s\n",
41528                                 DB_VERSION_STRING, version);
41529                         return 1;
41530                 }
41531         }
41532 #endif
41533
41534 #if DB_VERSION_MAJOR > 2
41535         db_env_create( NULL, 0 );
41536 #elif DB_VERSION_MAJOR > 1
41537         db_appexit( NULL );
41538 #else
41539         (void) dbopen( NULL, 0, 0, 0, NULL);
41540 #endif
41541
41542   ;
41543   return 0;
41544 }
41545 _ACEOF
41546 rm -f conftest.$ac_objext conftest$ac_exeext
41547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41548   (eval $ac_link) 2>conftest.er1
41549   ac_status=$?
41550   grep -v '^ *+' conftest.er1 >conftest.err
41551   rm -f conftest.er1
41552   cat conftest.err >&5
41553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41554   (exit $ac_status); } &&
41555          { ac_try='test -z "$ac_c_werror_flag"
41556                          || test ! -s conftest.err'
41557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41558   (eval $ac_try) 2>&5
41559   ac_status=$?
41560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41561   (exit $ac_status); }; } &&
41562          { ac_try='test -s conftest$ac_exeext'
41563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564   (eval $ac_try) 2>&5
41565   ac_status=$?
41566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567   (exit $ac_status); }; }; then
41568   ol_cv_db_db_4_dot_2=yes
41569 else
41570   echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41572
41573 ol_cv_db_db_4_dot_2=no
41574 fi
41575 rm -f conftest.err conftest.$ac_objext \
41576       conftest$ac_exeext conftest.$ac_ext
41577
41578         LIBS="$ol_LIBS"
41579
41580 fi
41581 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41582 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41583
41584         if test $ol_cv_db_db_4_dot_2 = yes ; then
41585                 ol_cv_lib_db=-ldb-4.2
41586         fi
41587 fi
41588
41589 if test $ol_cv_lib_db = no ; then
41590         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41591 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41592 if test "${ol_cv_db_db_4_2+set}" = set; then
41593   echo $ECHO_N "(cached) $ECHO_C" >&6
41594 else
41595
41596         ol_DB_LIB=-ldb-4-2
41597         ol_LIBS=$LIBS
41598         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41599
41600         cat >conftest.$ac_ext <<_ACEOF
41601 /* confdefs.h.  */
41602 _ACEOF
41603 cat confdefs.h >>conftest.$ac_ext
41604 cat >>conftest.$ac_ext <<_ACEOF
41605 /* end confdefs.h.  */
41606
41607 #ifdef HAVE_DB_185_H
41608 # include <db_185.h>
41609 #else
41610 # include <db.h>
41611 #endif
41612
41613 #ifndef DB_VERSION_MAJOR
41614 # define DB_VERSION_MAJOR 1
41615 #endif
41616
41617 #ifndef NULL
41618 #define NULL ((void*)0)
41619 #endif
41620
41621 int
41622 main ()
41623 {
41624
41625 #if DB_VERSION_MAJOR > 1
41626         {
41627                 char *version;
41628                 int major, minor, patch;
41629
41630                 version = db_version( &major, &minor, &patch );
41631
41632                 if( major != DB_VERSION_MAJOR ||
41633                         minor < DB_VERSION_MINOR )
41634                 {
41635                         printf("Berkeley DB version mismatch\n"
41636                                 "\theader: %s\n\tlibrary: %s\n",
41637                                 DB_VERSION_STRING, version);
41638                         return 1;
41639                 }
41640         }
41641 #endif
41642
41643 #if DB_VERSION_MAJOR > 2
41644         db_env_create( NULL, 0 );
41645 #elif DB_VERSION_MAJOR > 1
41646         db_appexit( NULL );
41647 #else
41648         (void) dbopen( NULL, 0, 0, 0, NULL);
41649 #endif
41650
41651   ;
41652   return 0;
41653 }
41654 _ACEOF
41655 rm -f conftest.$ac_objext conftest$ac_exeext
41656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41657   (eval $ac_link) 2>conftest.er1
41658   ac_status=$?
41659   grep -v '^ *+' conftest.er1 >conftest.err
41660   rm -f conftest.er1
41661   cat conftest.err >&5
41662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663   (exit $ac_status); } &&
41664          { ac_try='test -z "$ac_c_werror_flag"
41665                          || test ! -s conftest.err'
41666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41667   (eval $ac_try) 2>&5
41668   ac_status=$?
41669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670   (exit $ac_status); }; } &&
41671          { ac_try='test -s conftest$ac_exeext'
41672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41673   (eval $ac_try) 2>&5
41674   ac_status=$?
41675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41676   (exit $ac_status); }; }; then
41677   ol_cv_db_db_4_2=yes
41678 else
41679   echo "$as_me: failed program was:" >&5
41680 sed 's/^/| /' conftest.$ac_ext >&5
41681
41682 ol_cv_db_db_4_2=no
41683 fi
41684 rm -f conftest.err conftest.$ac_objext \
41685       conftest$ac_exeext conftest.$ac_ext
41686
41687         LIBS="$ol_LIBS"
41688
41689 fi
41690 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41691 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41692
41693         if test $ol_cv_db_db_4_2 = yes ; then
41694                 ol_cv_lib_db=-ldb-4-2
41695         fi
41696 fi
41697
41698 if test $ol_cv_lib_db = no ; then
41699         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41700 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41701 if test "${ol_cv_db_db_4+set}" = set; then
41702   echo $ECHO_N "(cached) $ECHO_C" >&6
41703 else
41704
41705         ol_DB_LIB=-ldb-4
41706         ol_LIBS=$LIBS
41707         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41708
41709         cat >conftest.$ac_ext <<_ACEOF
41710 /* confdefs.h.  */
41711 _ACEOF
41712 cat confdefs.h >>conftest.$ac_ext
41713 cat >>conftest.$ac_ext <<_ACEOF
41714 /* end confdefs.h.  */
41715
41716 #ifdef HAVE_DB_185_H
41717 # include <db_185.h>
41718 #else
41719 # include <db.h>
41720 #endif
41721
41722 #ifndef DB_VERSION_MAJOR
41723 # define DB_VERSION_MAJOR 1
41724 #endif
41725
41726 #ifndef NULL
41727 #define NULL ((void*)0)
41728 #endif
41729
41730 int
41731 main ()
41732 {
41733
41734 #if DB_VERSION_MAJOR > 1
41735         {
41736                 char *version;
41737                 int major, minor, patch;
41738
41739                 version = db_version( &major, &minor, &patch );
41740
41741                 if( major != DB_VERSION_MAJOR ||
41742                         minor < DB_VERSION_MINOR )
41743                 {
41744                         printf("Berkeley DB version mismatch\n"
41745                                 "\theader: %s\n\tlibrary: %s\n",
41746                                 DB_VERSION_STRING, version);
41747                         return 1;
41748                 }
41749         }
41750 #endif
41751
41752 #if DB_VERSION_MAJOR > 2
41753         db_env_create( NULL, 0 );
41754 #elif DB_VERSION_MAJOR > 1
41755         db_appexit( NULL );
41756 #else
41757         (void) dbopen( NULL, 0, 0, 0, NULL);
41758 #endif
41759
41760   ;
41761   return 0;
41762 }
41763 _ACEOF
41764 rm -f conftest.$ac_objext conftest$ac_exeext
41765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41766   (eval $ac_link) 2>conftest.er1
41767   ac_status=$?
41768   grep -v '^ *+' conftest.er1 >conftest.err
41769   rm -f conftest.er1
41770   cat conftest.err >&5
41771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41772   (exit $ac_status); } &&
41773          { ac_try='test -z "$ac_c_werror_flag"
41774                          || test ! -s conftest.err'
41775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41776   (eval $ac_try) 2>&5
41777   ac_status=$?
41778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41779   (exit $ac_status); }; } &&
41780          { ac_try='test -s conftest$ac_exeext'
41781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41782   (eval $ac_try) 2>&5
41783   ac_status=$?
41784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41785   (exit $ac_status); }; }; then
41786   ol_cv_db_db_4=yes
41787 else
41788   echo "$as_me: failed program was:" >&5
41789 sed 's/^/| /' conftest.$ac_ext >&5
41790
41791 ol_cv_db_db_4=no
41792 fi
41793 rm -f conftest.err conftest.$ac_objext \
41794       conftest$ac_exeext conftest.$ac_ext
41795
41796         LIBS="$ol_LIBS"
41797
41798 fi
41799 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41800 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41801
41802         if test $ol_cv_db_db_4 = yes ; then
41803                 ol_cv_lib_db=-ldb-4
41804         fi
41805 fi
41806
41807 if test $ol_cv_lib_db = no ; then
41808         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41809 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41810 if test "${ol_cv_db_db4+set}" = set; then
41811   echo $ECHO_N "(cached) $ECHO_C" >&6
41812 else
41813
41814         ol_DB_LIB=-ldb4
41815         ol_LIBS=$LIBS
41816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41817
41818         cat >conftest.$ac_ext <<_ACEOF
41819 /* confdefs.h.  */
41820 _ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h.  */
41824
41825 #ifdef HAVE_DB_185_H
41826 # include <db_185.h>
41827 #else
41828 # include <db.h>
41829 #endif
41830
41831 #ifndef DB_VERSION_MAJOR
41832 # define DB_VERSION_MAJOR 1
41833 #endif
41834
41835 #ifndef NULL
41836 #define NULL ((void*)0)
41837 #endif
41838
41839 int
41840 main ()
41841 {
41842
41843 #if DB_VERSION_MAJOR > 1
41844         {
41845                 char *version;
41846                 int major, minor, patch;
41847
41848                 version = db_version( &major, &minor, &patch );
41849
41850                 if( major != DB_VERSION_MAJOR ||
41851                         minor < DB_VERSION_MINOR )
41852                 {
41853                         printf("Berkeley DB version mismatch\n"
41854                                 "\theader: %s\n\tlibrary: %s\n",
41855                                 DB_VERSION_STRING, version);
41856                         return 1;
41857                 }
41858         }
41859 #endif
41860
41861 #if DB_VERSION_MAJOR > 2
41862         db_env_create( NULL, 0 );
41863 #elif DB_VERSION_MAJOR > 1
41864         db_appexit( NULL );
41865 #else
41866         (void) dbopen( NULL, 0, 0, 0, NULL);
41867 #endif
41868
41869   ;
41870   return 0;
41871 }
41872 _ACEOF
41873 rm -f conftest.$ac_objext conftest$ac_exeext
41874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41875   (eval $ac_link) 2>conftest.er1
41876   ac_status=$?
41877   grep -v '^ *+' conftest.er1 >conftest.err
41878   rm -f conftest.er1
41879   cat conftest.err >&5
41880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881   (exit $ac_status); } &&
41882          { ac_try='test -z "$ac_c_werror_flag"
41883                          || test ! -s conftest.err'
41884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41885   (eval $ac_try) 2>&5
41886   ac_status=$?
41887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41888   (exit $ac_status); }; } &&
41889          { ac_try='test -s conftest$ac_exeext'
41890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41891   (eval $ac_try) 2>&5
41892   ac_status=$?
41893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41894   (exit $ac_status); }; }; then
41895   ol_cv_db_db4=yes
41896 else
41897   echo "$as_me: failed program was:" >&5
41898 sed 's/^/| /' conftest.$ac_ext >&5
41899
41900 ol_cv_db_db4=no
41901 fi
41902 rm -f conftest.err conftest.$ac_objext \
41903       conftest$ac_exeext conftest.$ac_ext
41904
41905         LIBS="$ol_LIBS"
41906
41907 fi
41908 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41909 echo "${ECHO_T}$ol_cv_db_db4" >&6
41910
41911         if test $ol_cv_db_db4 = yes ; then
41912                 ol_cv_lib_db=-ldb4
41913         fi
41914 fi
41915
41916 if test $ol_cv_lib_db = no ; then
41917         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41918 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41919 if test "${ol_cv_db_db+set}" = set; then
41920   echo $ECHO_N "(cached) $ECHO_C" >&6
41921 else
41922
41923         ol_DB_LIB=-ldb
41924         ol_LIBS=$LIBS
41925         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41926
41927         cat >conftest.$ac_ext <<_ACEOF
41928 /* confdefs.h.  */
41929 _ACEOF
41930 cat confdefs.h >>conftest.$ac_ext
41931 cat >>conftest.$ac_ext <<_ACEOF
41932 /* end confdefs.h.  */
41933
41934 #ifdef HAVE_DB_185_H
41935 # include <db_185.h>
41936 #else
41937 # include <db.h>
41938 #endif
41939
41940 #ifndef DB_VERSION_MAJOR
41941 # define DB_VERSION_MAJOR 1
41942 #endif
41943
41944 #ifndef NULL
41945 #define NULL ((void*)0)
41946 #endif
41947
41948 int
41949 main ()
41950 {
41951
41952 #if DB_VERSION_MAJOR > 1
41953         {
41954                 char *version;
41955                 int major, minor, patch;
41956
41957                 version = db_version( &major, &minor, &patch );
41958
41959                 if( major != DB_VERSION_MAJOR ||
41960                         minor < DB_VERSION_MINOR )
41961                 {
41962                         printf("Berkeley DB version mismatch\n"
41963                                 "\theader: %s\n\tlibrary: %s\n",
41964                                 DB_VERSION_STRING, version);
41965                         return 1;
41966                 }
41967         }
41968 #endif
41969
41970 #if DB_VERSION_MAJOR > 2
41971         db_env_create( NULL, 0 );
41972 #elif DB_VERSION_MAJOR > 1
41973         db_appexit( NULL );
41974 #else
41975         (void) dbopen( NULL, 0, 0, 0, NULL);
41976 #endif
41977
41978   ;
41979   return 0;
41980 }
41981 _ACEOF
41982 rm -f conftest.$ac_objext conftest$ac_exeext
41983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41984   (eval $ac_link) 2>conftest.er1
41985   ac_status=$?
41986   grep -v '^ *+' conftest.er1 >conftest.err
41987   rm -f conftest.er1
41988   cat conftest.err >&5
41989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41990   (exit $ac_status); } &&
41991          { ac_try='test -z "$ac_c_werror_flag"
41992                          || test ! -s conftest.err'
41993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41994   (eval $ac_try) 2>&5
41995   ac_status=$?
41996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41997   (exit $ac_status); }; } &&
41998          { ac_try='test -s conftest$ac_exeext'
41999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42000   (eval $ac_try) 2>&5
42001   ac_status=$?
42002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003   (exit $ac_status); }; }; then
42004   ol_cv_db_db=yes
42005 else
42006   echo "$as_me: failed program was:" >&5
42007 sed 's/^/| /' conftest.$ac_ext >&5
42008
42009 ol_cv_db_db=no
42010 fi
42011 rm -f conftest.err conftest.$ac_objext \
42012       conftest$ac_exeext conftest.$ac_ext
42013
42014         LIBS="$ol_LIBS"
42015
42016 fi
42017 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42018 echo "${ECHO_T}$ol_cv_db_db" >&6
42019
42020         if test $ol_cv_db_db = yes ; then
42021                 ol_cv_lib_db=-ldb
42022         fi
42023 fi
42024
42025 if test $ol_cv_lib_db = no ; then
42026         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42027 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42028 if test "${ol_cv_db_db41+set}" = set; then
42029   echo $ECHO_N "(cached) $ECHO_C" >&6
42030 else
42031
42032         ol_DB_LIB=-ldb41
42033         ol_LIBS=$LIBS
42034         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42035
42036         cat >conftest.$ac_ext <<_ACEOF
42037 /* confdefs.h.  */
42038 _ACEOF
42039 cat confdefs.h >>conftest.$ac_ext
42040 cat >>conftest.$ac_ext <<_ACEOF
42041 /* end confdefs.h.  */
42042
42043 #ifdef HAVE_DB_185_H
42044 # include <db_185.h>
42045 #else
42046 # include <db.h>
42047 #endif
42048
42049 #ifndef DB_VERSION_MAJOR
42050 # define DB_VERSION_MAJOR 1
42051 #endif
42052
42053 #ifndef NULL
42054 #define NULL ((void*)0)
42055 #endif
42056
42057 int
42058 main ()
42059 {
42060
42061 #if DB_VERSION_MAJOR > 1
42062         {
42063                 char *version;
42064                 int major, minor, patch;
42065
42066                 version = db_version( &major, &minor, &patch );
42067
42068                 if( major != DB_VERSION_MAJOR ||
42069                         minor < DB_VERSION_MINOR )
42070                 {
42071                         printf("Berkeley DB version mismatch\n"
42072                                 "\theader: %s\n\tlibrary: %s\n",
42073                                 DB_VERSION_STRING, version);
42074                         return 1;
42075                 }
42076         }
42077 #endif
42078
42079 #if DB_VERSION_MAJOR > 2
42080         db_env_create( NULL, 0 );
42081 #elif DB_VERSION_MAJOR > 1
42082         db_appexit( NULL );
42083 #else
42084         (void) dbopen( NULL, 0, 0, 0, NULL);
42085 #endif
42086
42087   ;
42088   return 0;
42089 }
42090 _ACEOF
42091 rm -f conftest.$ac_objext conftest$ac_exeext
42092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42093   (eval $ac_link) 2>conftest.er1
42094   ac_status=$?
42095   grep -v '^ *+' conftest.er1 >conftest.err
42096   rm -f conftest.er1
42097   cat conftest.err >&5
42098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099   (exit $ac_status); } &&
42100          { ac_try='test -z "$ac_c_werror_flag"
42101                          || test ! -s conftest.err'
42102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42103   (eval $ac_try) 2>&5
42104   ac_status=$?
42105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106   (exit $ac_status); }; } &&
42107          { ac_try='test -s conftest$ac_exeext'
42108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42109   (eval $ac_try) 2>&5
42110   ac_status=$?
42111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42112   (exit $ac_status); }; }; then
42113   ol_cv_db_db41=yes
42114 else
42115   echo "$as_me: failed program was:" >&5
42116 sed 's/^/| /' conftest.$ac_ext >&5
42117
42118 ol_cv_db_db41=no
42119 fi
42120 rm -f conftest.err conftest.$ac_objext \
42121       conftest$ac_exeext conftest.$ac_ext
42122
42123         LIBS="$ol_LIBS"
42124
42125 fi
42126 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42127 echo "${ECHO_T}$ol_cv_db_db41" >&6
42128
42129         if test $ol_cv_db_db41 = yes ; then
42130                 ol_cv_lib_db=-ldb41
42131         fi
42132 fi
42133
42134 if test $ol_cv_lib_db = no ; then
42135         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42136 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42137 if test "${ol_cv_db_db_41+set}" = set; then
42138   echo $ECHO_N "(cached) $ECHO_C" >&6
42139 else
42140
42141         ol_DB_LIB=-ldb-41
42142         ol_LIBS=$LIBS
42143         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42144
42145         cat >conftest.$ac_ext <<_ACEOF
42146 /* confdefs.h.  */
42147 _ACEOF
42148 cat confdefs.h >>conftest.$ac_ext
42149 cat >>conftest.$ac_ext <<_ACEOF
42150 /* end confdefs.h.  */
42151
42152 #ifdef HAVE_DB_185_H
42153 # include <db_185.h>
42154 #else
42155 # include <db.h>
42156 #endif
42157
42158 #ifndef DB_VERSION_MAJOR
42159 # define DB_VERSION_MAJOR 1
42160 #endif
42161
42162 #ifndef NULL
42163 #define NULL ((void*)0)
42164 #endif
42165
42166 int
42167 main ()
42168 {
42169
42170 #if DB_VERSION_MAJOR > 1
42171         {
42172                 char *version;
42173                 int major, minor, patch;
42174
42175                 version = db_version( &major, &minor, &patch );
42176
42177                 if( major != DB_VERSION_MAJOR ||
42178                         minor < DB_VERSION_MINOR )
42179                 {
42180                         printf("Berkeley DB version mismatch\n"
42181                                 "\theader: %s\n\tlibrary: %s\n",
42182                                 DB_VERSION_STRING, version);
42183                         return 1;
42184                 }
42185         }
42186 #endif
42187
42188 #if DB_VERSION_MAJOR > 2
42189         db_env_create( NULL, 0 );
42190 #elif DB_VERSION_MAJOR > 1
42191         db_appexit( NULL );
42192 #else
42193         (void) dbopen( NULL, 0, 0, 0, NULL);
42194 #endif
42195
42196   ;
42197   return 0;
42198 }
42199 _ACEOF
42200 rm -f conftest.$ac_objext conftest$ac_exeext
42201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42202   (eval $ac_link) 2>conftest.er1
42203   ac_status=$?
42204   grep -v '^ *+' conftest.er1 >conftest.err
42205   rm -f conftest.er1
42206   cat conftest.err >&5
42207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208   (exit $ac_status); } &&
42209          { ac_try='test -z "$ac_c_werror_flag"
42210                          || test ! -s conftest.err'
42211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42212   (eval $ac_try) 2>&5
42213   ac_status=$?
42214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215   (exit $ac_status); }; } &&
42216          { ac_try='test -s conftest$ac_exeext'
42217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42218   (eval $ac_try) 2>&5
42219   ac_status=$?
42220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221   (exit $ac_status); }; }; then
42222   ol_cv_db_db_41=yes
42223 else
42224   echo "$as_me: failed program was:" >&5
42225 sed 's/^/| /' conftest.$ac_ext >&5
42226
42227 ol_cv_db_db_41=no
42228 fi
42229 rm -f conftest.err conftest.$ac_objext \
42230       conftest$ac_exeext conftest.$ac_ext
42231
42232         LIBS="$ol_LIBS"
42233
42234 fi
42235 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42236 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42237
42238         if test $ol_cv_db_db_41 = yes ; then
42239                 ol_cv_lib_db=-ldb-41
42240         fi
42241 fi
42242
42243 if test $ol_cv_lib_db = no ; then
42244         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42245 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42246 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42247   echo $ECHO_N "(cached) $ECHO_C" >&6
42248 else
42249
42250         ol_DB_LIB=-ldb-4.1
42251         ol_LIBS=$LIBS
42252         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42253
42254         cat >conftest.$ac_ext <<_ACEOF
42255 /* confdefs.h.  */
42256 _ACEOF
42257 cat confdefs.h >>conftest.$ac_ext
42258 cat >>conftest.$ac_ext <<_ACEOF
42259 /* end confdefs.h.  */
42260
42261 #ifdef HAVE_DB_185_H
42262 # include <db_185.h>
42263 #else
42264 # include <db.h>
42265 #endif
42266
42267 #ifndef DB_VERSION_MAJOR
42268 # define DB_VERSION_MAJOR 1
42269 #endif
42270
42271 #ifndef NULL
42272 #define NULL ((void*)0)
42273 #endif
42274
42275 int
42276 main ()
42277 {
42278
42279 #if DB_VERSION_MAJOR > 1
42280         {
42281                 char *version;
42282                 int major, minor, patch;
42283
42284                 version = db_version( &major, &minor, &patch );
42285
42286                 if( major != DB_VERSION_MAJOR ||
42287                         minor < DB_VERSION_MINOR )
42288                 {
42289                         printf("Berkeley DB version mismatch\n"
42290                                 "\theader: %s\n\tlibrary: %s\n",
42291                                 DB_VERSION_STRING, version);
42292                         return 1;
42293                 }
42294         }
42295 #endif
42296
42297 #if DB_VERSION_MAJOR > 2
42298         db_env_create( NULL, 0 );
42299 #elif DB_VERSION_MAJOR > 1
42300         db_appexit( NULL );
42301 #else
42302         (void) dbopen( NULL, 0, 0, 0, NULL);
42303 #endif
42304
42305   ;
42306   return 0;
42307 }
42308 _ACEOF
42309 rm -f conftest.$ac_objext conftest$ac_exeext
42310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42311   (eval $ac_link) 2>conftest.er1
42312   ac_status=$?
42313   grep -v '^ *+' conftest.er1 >conftest.err
42314   rm -f conftest.er1
42315   cat conftest.err >&5
42316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317   (exit $ac_status); } &&
42318          { ac_try='test -z "$ac_c_werror_flag"
42319                          || test ! -s conftest.err'
42320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42321   (eval $ac_try) 2>&5
42322   ac_status=$?
42323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42324   (exit $ac_status); }; } &&
42325          { ac_try='test -s conftest$ac_exeext'
42326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42327   (eval $ac_try) 2>&5
42328   ac_status=$?
42329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330   (exit $ac_status); }; }; then
42331   ol_cv_db_db_4_dot_1=yes
42332 else
42333   echo "$as_me: failed program was:" >&5
42334 sed 's/^/| /' conftest.$ac_ext >&5
42335
42336 ol_cv_db_db_4_dot_1=no
42337 fi
42338 rm -f conftest.err conftest.$ac_objext \
42339       conftest$ac_exeext conftest.$ac_ext
42340
42341         LIBS="$ol_LIBS"
42342
42343 fi
42344 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42345 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42346
42347         if test $ol_cv_db_db_4_dot_1 = yes ; then
42348                 ol_cv_lib_db=-ldb-4.1
42349         fi
42350 fi
42351
42352 if test $ol_cv_lib_db = no ; then
42353         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42354 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42355 if test "${ol_cv_db_db_4_1+set}" = set; then
42356   echo $ECHO_N "(cached) $ECHO_C" >&6
42357 else
42358
42359         ol_DB_LIB=-ldb-4-1
42360         ol_LIBS=$LIBS
42361         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42362
42363         cat >conftest.$ac_ext <<_ACEOF
42364 /* confdefs.h.  */
42365 _ACEOF
42366 cat confdefs.h >>conftest.$ac_ext
42367 cat >>conftest.$ac_ext <<_ACEOF
42368 /* end confdefs.h.  */
42369
42370 #ifdef HAVE_DB_185_H
42371 # include <db_185.h>
42372 #else
42373 # include <db.h>
42374 #endif
42375
42376 #ifndef DB_VERSION_MAJOR
42377 # define DB_VERSION_MAJOR 1
42378 #endif
42379
42380 #ifndef NULL
42381 #define NULL ((void*)0)
42382 #endif
42383
42384 int
42385 main ()
42386 {
42387
42388 #if DB_VERSION_MAJOR > 1
42389         {
42390                 char *version;
42391                 int major, minor, patch;
42392
42393                 version = db_version( &major, &minor, &patch );
42394
42395                 if( major != DB_VERSION_MAJOR ||
42396                         minor < DB_VERSION_MINOR )
42397                 {
42398                         printf("Berkeley DB version mismatch\n"
42399                                 "\theader: %s\n\tlibrary: %s\n",
42400                                 DB_VERSION_STRING, version);
42401                         return 1;
42402                 }
42403         }
42404 #endif
42405
42406 #if DB_VERSION_MAJOR > 2
42407         db_env_create( NULL, 0 );
42408 #elif DB_VERSION_MAJOR > 1
42409         db_appexit( NULL );
42410 #else
42411         (void) dbopen( NULL, 0, 0, 0, NULL);
42412 #endif
42413
42414   ;
42415   return 0;
42416 }
42417 _ACEOF
42418 rm -f conftest.$ac_objext conftest$ac_exeext
42419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42420   (eval $ac_link) 2>conftest.er1
42421   ac_status=$?
42422   grep -v '^ *+' conftest.er1 >conftest.err
42423   rm -f conftest.er1
42424   cat conftest.err >&5
42425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426   (exit $ac_status); } &&
42427          { ac_try='test -z "$ac_c_werror_flag"
42428                          || test ! -s conftest.err'
42429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42430   (eval $ac_try) 2>&5
42431   ac_status=$?
42432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42433   (exit $ac_status); }; } &&
42434          { ac_try='test -s conftest$ac_exeext'
42435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42436   (eval $ac_try) 2>&5
42437   ac_status=$?
42438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439   (exit $ac_status); }; }; then
42440   ol_cv_db_db_4_1=yes
42441 else
42442   echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42444
42445 ol_cv_db_db_4_1=no
42446 fi
42447 rm -f conftest.err conftest.$ac_objext \
42448       conftest$ac_exeext conftest.$ac_ext
42449
42450         LIBS="$ol_LIBS"
42451
42452 fi
42453 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42454 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42455
42456         if test $ol_cv_db_db_4_1 = yes ; then
42457                 ol_cv_lib_db=-ldb-4-1
42458         fi
42459 fi
42460
42461 if test $ol_cv_lib_db = no ; then
42462         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42463 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42464 if test "${ol_cv_db_db3+set}" = set; then
42465   echo $ECHO_N "(cached) $ECHO_C" >&6
42466 else
42467
42468         ol_DB_LIB=-ldb3
42469         ol_LIBS=$LIBS
42470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42471
42472         cat >conftest.$ac_ext <<_ACEOF
42473 /* confdefs.h.  */
42474 _ACEOF
42475 cat confdefs.h >>conftest.$ac_ext
42476 cat >>conftest.$ac_ext <<_ACEOF
42477 /* end confdefs.h.  */
42478
42479 #ifdef HAVE_DB_185_H
42480 # include <db_185.h>
42481 #else
42482 # include <db.h>
42483 #endif
42484
42485 #ifndef DB_VERSION_MAJOR
42486 # define DB_VERSION_MAJOR 1
42487 #endif
42488
42489 #ifndef NULL
42490 #define NULL ((void*)0)
42491 #endif
42492
42493 int
42494 main ()
42495 {
42496
42497 #if DB_VERSION_MAJOR > 1
42498         {
42499                 char *version;
42500                 int major, minor, patch;
42501
42502                 version = db_version( &major, &minor, &patch );
42503
42504                 if( major != DB_VERSION_MAJOR ||
42505                         minor < DB_VERSION_MINOR )
42506                 {
42507                         printf("Berkeley DB version mismatch\n"
42508                                 "\theader: %s\n\tlibrary: %s\n",
42509                                 DB_VERSION_STRING, version);
42510                         return 1;
42511                 }
42512         }
42513 #endif
42514
42515 #if DB_VERSION_MAJOR > 2
42516         db_env_create( NULL, 0 );
42517 #elif DB_VERSION_MAJOR > 1
42518         db_appexit( NULL );
42519 #else
42520         (void) dbopen( NULL, 0, 0, 0, NULL);
42521 #endif
42522
42523   ;
42524   return 0;
42525 }
42526 _ACEOF
42527 rm -f conftest.$ac_objext conftest$ac_exeext
42528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42529   (eval $ac_link) 2>conftest.er1
42530   ac_status=$?
42531   grep -v '^ *+' conftest.er1 >conftest.err
42532   rm -f conftest.er1
42533   cat conftest.err >&5
42534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42535   (exit $ac_status); } &&
42536          { ac_try='test -z "$ac_c_werror_flag"
42537                          || test ! -s conftest.err'
42538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42539   (eval $ac_try) 2>&5
42540   ac_status=$?
42541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542   (exit $ac_status); }; } &&
42543          { ac_try='test -s conftest$ac_exeext'
42544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42545   (eval $ac_try) 2>&5
42546   ac_status=$?
42547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42548   (exit $ac_status); }; }; then
42549   ol_cv_db_db3=yes
42550 else
42551   echo "$as_me: failed program was:" >&5
42552 sed 's/^/| /' conftest.$ac_ext >&5
42553
42554 ol_cv_db_db3=no
42555 fi
42556 rm -f conftest.err conftest.$ac_objext \
42557       conftest$ac_exeext conftest.$ac_ext
42558
42559         LIBS="$ol_LIBS"
42560
42561 fi
42562 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42563 echo "${ECHO_T}$ol_cv_db_db3" >&6
42564
42565         if test $ol_cv_db_db3 = yes ; then
42566                 ol_cv_lib_db=-ldb3
42567         fi
42568 fi
42569
42570 if test $ol_cv_lib_db = no ; then
42571         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42572 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42573 if test "${ol_cv_db_db_3+set}" = set; then
42574   echo $ECHO_N "(cached) $ECHO_C" >&6
42575 else
42576
42577         ol_DB_LIB=-ldb-3
42578         ol_LIBS=$LIBS
42579         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42580
42581         cat >conftest.$ac_ext <<_ACEOF
42582 /* confdefs.h.  */
42583 _ACEOF
42584 cat confdefs.h >>conftest.$ac_ext
42585 cat >>conftest.$ac_ext <<_ACEOF
42586 /* end confdefs.h.  */
42587
42588 #ifdef HAVE_DB_185_H
42589 # include <db_185.h>
42590 #else
42591 # include <db.h>
42592 #endif
42593
42594 #ifndef DB_VERSION_MAJOR
42595 # define DB_VERSION_MAJOR 1
42596 #endif
42597
42598 #ifndef NULL
42599 #define NULL ((void*)0)
42600 #endif
42601
42602 int
42603 main ()
42604 {
42605
42606 #if DB_VERSION_MAJOR > 1
42607         {
42608                 char *version;
42609                 int major, minor, patch;
42610
42611                 version = db_version( &major, &minor, &patch );
42612
42613                 if( major != DB_VERSION_MAJOR ||
42614                         minor < DB_VERSION_MINOR )
42615                 {
42616                         printf("Berkeley DB version mismatch\n"
42617                                 "\theader: %s\n\tlibrary: %s\n",
42618                                 DB_VERSION_STRING, version);
42619                         return 1;
42620                 }
42621         }
42622 #endif
42623
42624 #if DB_VERSION_MAJOR > 2
42625         db_env_create( NULL, 0 );
42626 #elif DB_VERSION_MAJOR > 1
42627         db_appexit( NULL );
42628 #else
42629         (void) dbopen( NULL, 0, 0, 0, NULL);
42630 #endif
42631
42632   ;
42633   return 0;
42634 }
42635 _ACEOF
42636 rm -f conftest.$ac_objext conftest$ac_exeext
42637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42638   (eval $ac_link) 2>conftest.er1
42639   ac_status=$?
42640   grep -v '^ *+' conftest.er1 >conftest.err
42641   rm -f conftest.er1
42642   cat conftest.err >&5
42643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644   (exit $ac_status); } &&
42645          { ac_try='test -z "$ac_c_werror_flag"
42646                          || test ! -s conftest.err'
42647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42648   (eval $ac_try) 2>&5
42649   ac_status=$?
42650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651   (exit $ac_status); }; } &&
42652          { ac_try='test -s conftest$ac_exeext'
42653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654   (eval $ac_try) 2>&5
42655   ac_status=$?
42656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657   (exit $ac_status); }; }; then
42658   ol_cv_db_db_3=yes
42659 else
42660   echo "$as_me: failed program was:" >&5
42661 sed 's/^/| /' conftest.$ac_ext >&5
42662
42663 ol_cv_db_db_3=no
42664 fi
42665 rm -f conftest.err conftest.$ac_objext \
42666       conftest$ac_exeext conftest.$ac_ext
42667
42668         LIBS="$ol_LIBS"
42669
42670 fi
42671 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42672 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42673
42674         if test $ol_cv_db_db_3 = yes ; then
42675                 ol_cv_lib_db=-ldb-3
42676         fi
42677 fi
42678
42679 if test $ol_cv_lib_db = no ; then
42680         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42681 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42682 if test "${ol_cv_db_db2+set}" = set; then
42683   echo $ECHO_N "(cached) $ECHO_C" >&6
42684 else
42685
42686         ol_DB_LIB=-ldb2
42687         ol_LIBS=$LIBS
42688         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42689
42690         cat >conftest.$ac_ext <<_ACEOF
42691 /* confdefs.h.  */
42692 _ACEOF
42693 cat confdefs.h >>conftest.$ac_ext
42694 cat >>conftest.$ac_ext <<_ACEOF
42695 /* end confdefs.h.  */
42696
42697 #ifdef HAVE_DB_185_H
42698 # include <db_185.h>
42699 #else
42700 # include <db.h>
42701 #endif
42702
42703 #ifndef DB_VERSION_MAJOR
42704 # define DB_VERSION_MAJOR 1
42705 #endif
42706
42707 #ifndef NULL
42708 #define NULL ((void*)0)
42709 #endif
42710
42711 int
42712 main ()
42713 {
42714
42715 #if DB_VERSION_MAJOR > 1
42716         {
42717                 char *version;
42718                 int major, minor, patch;
42719
42720                 version = db_version( &major, &minor, &patch );
42721
42722                 if( major != DB_VERSION_MAJOR ||
42723                         minor < DB_VERSION_MINOR )
42724                 {
42725                         printf("Berkeley DB version mismatch\n"
42726                                 "\theader: %s\n\tlibrary: %s\n",
42727                                 DB_VERSION_STRING, version);
42728                         return 1;
42729                 }
42730         }
42731 #endif
42732
42733 #if DB_VERSION_MAJOR > 2
42734         db_env_create( NULL, 0 );
42735 #elif DB_VERSION_MAJOR > 1
42736         db_appexit( NULL );
42737 #else
42738         (void) dbopen( NULL, 0, 0, 0, NULL);
42739 #endif
42740
42741   ;
42742   return 0;
42743 }
42744 _ACEOF
42745 rm -f conftest.$ac_objext conftest$ac_exeext
42746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42747   (eval $ac_link) 2>conftest.er1
42748   ac_status=$?
42749   grep -v '^ *+' conftest.er1 >conftest.err
42750   rm -f conftest.er1
42751   cat conftest.err >&5
42752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753   (exit $ac_status); } &&
42754          { ac_try='test -z "$ac_c_werror_flag"
42755                          || test ! -s conftest.err'
42756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42757   (eval $ac_try) 2>&5
42758   ac_status=$?
42759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760   (exit $ac_status); }; } &&
42761          { ac_try='test -s conftest$ac_exeext'
42762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763   (eval $ac_try) 2>&5
42764   ac_status=$?
42765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766   (exit $ac_status); }; }; then
42767   ol_cv_db_db2=yes
42768 else
42769   echo "$as_me: failed program was:" >&5
42770 sed 's/^/| /' conftest.$ac_ext >&5
42771
42772 ol_cv_db_db2=no
42773 fi
42774 rm -f conftest.err conftest.$ac_objext \
42775       conftest$ac_exeext conftest.$ac_ext
42776
42777         LIBS="$ol_LIBS"
42778
42779 fi
42780 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42781 echo "${ECHO_T}$ol_cv_db_db2" >&6
42782
42783         if test $ol_cv_db_db2 = yes ; then
42784                 ol_cv_lib_db=-ldb2
42785         fi
42786 fi
42787
42788 if test $ol_cv_lib_db = no ; then
42789         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42790 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42791 if test "${ol_cv_db_db_2+set}" = set; then
42792   echo $ECHO_N "(cached) $ECHO_C" >&6
42793 else
42794
42795         ol_DB_LIB=-ldb-2
42796         ol_LIBS=$LIBS
42797         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42798
42799         cat >conftest.$ac_ext <<_ACEOF
42800 /* confdefs.h.  */
42801 _ACEOF
42802 cat confdefs.h >>conftest.$ac_ext
42803 cat >>conftest.$ac_ext <<_ACEOF
42804 /* end confdefs.h.  */
42805
42806 #ifdef HAVE_DB_185_H
42807 # include <db_185.h>
42808 #else
42809 # include <db.h>
42810 #endif
42811
42812 #ifndef DB_VERSION_MAJOR
42813 # define DB_VERSION_MAJOR 1
42814 #endif
42815
42816 #ifndef NULL
42817 #define NULL ((void*)0)
42818 #endif
42819
42820 int
42821 main ()
42822 {
42823
42824 #if DB_VERSION_MAJOR > 1
42825         {
42826                 char *version;
42827                 int major, minor, patch;
42828
42829                 version = db_version( &major, &minor, &patch );
42830
42831                 if( major != DB_VERSION_MAJOR ||
42832                         minor < DB_VERSION_MINOR )
42833                 {
42834                         printf("Berkeley DB version mismatch\n"
42835                                 "\theader: %s\n\tlibrary: %s\n",
42836                                 DB_VERSION_STRING, version);
42837                         return 1;
42838                 }
42839         }
42840 #endif
42841
42842 #if DB_VERSION_MAJOR > 2
42843         db_env_create( NULL, 0 );
42844 #elif DB_VERSION_MAJOR > 1
42845         db_appexit( NULL );
42846 #else
42847         (void) dbopen( NULL, 0, 0, 0, NULL);
42848 #endif
42849
42850   ;
42851   return 0;
42852 }
42853 _ACEOF
42854 rm -f conftest.$ac_objext conftest$ac_exeext
42855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42856   (eval $ac_link) 2>conftest.er1
42857   ac_status=$?
42858   grep -v '^ *+' conftest.er1 >conftest.err
42859   rm -f conftest.er1
42860   cat conftest.err >&5
42861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862   (exit $ac_status); } &&
42863          { ac_try='test -z "$ac_c_werror_flag"
42864                          || test ! -s conftest.err'
42865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866   (eval $ac_try) 2>&5
42867   ac_status=$?
42868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869   (exit $ac_status); }; } &&
42870          { ac_try='test -s conftest$ac_exeext'
42871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872   (eval $ac_try) 2>&5
42873   ac_status=$?
42874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875   (exit $ac_status); }; }; then
42876   ol_cv_db_db_2=yes
42877 else
42878   echo "$as_me: failed program was:" >&5
42879 sed 's/^/| /' conftest.$ac_ext >&5
42880
42881 ol_cv_db_db_2=no
42882 fi
42883 rm -f conftest.err conftest.$ac_objext \
42884       conftest$ac_exeext conftest.$ac_ext
42885
42886         LIBS="$ol_LIBS"
42887
42888 fi
42889 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42890 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42891
42892         if test $ol_cv_db_db_2 = yes ; then
42893                 ol_cv_lib_db=-ldb-2
42894         fi
42895 fi
42896
42897 if test $ol_cv_lib_db = no ; then
42898         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42899 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42900 if test "${ol_cv_db_db1+set}" = set; then
42901   echo $ECHO_N "(cached) $ECHO_C" >&6
42902 else
42903
42904         ol_DB_LIB=-ldb1
42905         ol_LIBS=$LIBS
42906         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42907
42908         cat >conftest.$ac_ext <<_ACEOF
42909 /* confdefs.h.  */
42910 _ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h.  */
42914
42915 #ifdef HAVE_DB_185_H
42916 # include <db_185.h>
42917 #else
42918 # include <db.h>
42919 #endif
42920
42921 #ifndef DB_VERSION_MAJOR
42922 # define DB_VERSION_MAJOR 1
42923 #endif
42924
42925 #ifndef NULL
42926 #define NULL ((void*)0)
42927 #endif
42928
42929 int
42930 main ()
42931 {
42932
42933 #if DB_VERSION_MAJOR > 1
42934         {
42935                 char *version;
42936                 int major, minor, patch;
42937
42938                 version = db_version( &major, &minor, &patch );
42939
42940                 if( major != DB_VERSION_MAJOR ||
42941                         minor < DB_VERSION_MINOR )
42942                 {
42943                         printf("Berkeley DB version mismatch\n"
42944                                 "\theader: %s\n\tlibrary: %s\n",
42945                                 DB_VERSION_STRING, version);
42946                         return 1;
42947                 }
42948         }
42949 #endif
42950
42951 #if DB_VERSION_MAJOR > 2
42952         db_env_create( NULL, 0 );
42953 #elif DB_VERSION_MAJOR > 1
42954         db_appexit( NULL );
42955 #else
42956         (void) dbopen( NULL, 0, 0, 0, NULL);
42957 #endif
42958
42959   ;
42960   return 0;
42961 }
42962 _ACEOF
42963 rm -f conftest.$ac_objext conftest$ac_exeext
42964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42965   (eval $ac_link) 2>conftest.er1
42966   ac_status=$?
42967   grep -v '^ *+' conftest.er1 >conftest.err
42968   rm -f conftest.er1
42969   cat conftest.err >&5
42970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42971   (exit $ac_status); } &&
42972          { ac_try='test -z "$ac_c_werror_flag"
42973                          || test ! -s conftest.err'
42974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42975   (eval $ac_try) 2>&5
42976   ac_status=$?
42977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978   (exit $ac_status); }; } &&
42979          { ac_try='test -s conftest$ac_exeext'
42980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42981   (eval $ac_try) 2>&5
42982   ac_status=$?
42983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984   (exit $ac_status); }; }; then
42985   ol_cv_db_db1=yes
42986 else
42987   echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42989
42990 ol_cv_db_db1=no
42991 fi
42992 rm -f conftest.err conftest.$ac_objext \
42993       conftest$ac_exeext conftest.$ac_ext
42994
42995         LIBS="$ol_LIBS"
42996
42997 fi
42998 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42999 echo "${ECHO_T}$ol_cv_db_db1" >&6
43000
43001         if test $ol_cv_db_db1 = yes ; then
43002                 ol_cv_lib_db=-ldb1
43003         fi
43004 fi
43005
43006 if test $ol_cv_lib_db = no ; then
43007         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43008 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43009 if test "${ol_cv_db_db_1+set}" = set; then
43010   echo $ECHO_N "(cached) $ECHO_C" >&6
43011 else
43012
43013         ol_DB_LIB=-ldb-1
43014         ol_LIBS=$LIBS
43015         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43016
43017         cat >conftest.$ac_ext <<_ACEOF
43018 /* confdefs.h.  */
43019 _ACEOF
43020 cat confdefs.h >>conftest.$ac_ext
43021 cat >>conftest.$ac_ext <<_ACEOF
43022 /* end confdefs.h.  */
43023
43024 #ifdef HAVE_DB_185_H
43025 # include <db_185.h>
43026 #else
43027 # include <db.h>
43028 #endif
43029
43030 #ifndef DB_VERSION_MAJOR
43031 # define DB_VERSION_MAJOR 1
43032 #endif
43033
43034 #ifndef NULL
43035 #define NULL ((void*)0)
43036 #endif
43037
43038 int
43039 main ()
43040 {
43041
43042 #if DB_VERSION_MAJOR > 1
43043         {
43044                 char *version;
43045                 int major, minor, patch;
43046
43047                 version = db_version( &major, &minor, &patch );
43048
43049                 if( major != DB_VERSION_MAJOR ||
43050                         minor < DB_VERSION_MINOR )
43051                 {
43052                         printf("Berkeley DB version mismatch\n"
43053                                 "\theader: %s\n\tlibrary: %s\n",
43054                                 DB_VERSION_STRING, version);
43055                         return 1;
43056                 }
43057         }
43058 #endif
43059
43060 #if DB_VERSION_MAJOR > 2
43061         db_env_create( NULL, 0 );
43062 #elif DB_VERSION_MAJOR > 1
43063         db_appexit( NULL );
43064 #else
43065         (void) dbopen( NULL, 0, 0, 0, NULL);
43066 #endif
43067
43068   ;
43069   return 0;
43070 }
43071 _ACEOF
43072 rm -f conftest.$ac_objext conftest$ac_exeext
43073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43074   (eval $ac_link) 2>conftest.er1
43075   ac_status=$?
43076   grep -v '^ *+' conftest.er1 >conftest.err
43077   rm -f conftest.er1
43078   cat conftest.err >&5
43079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080   (exit $ac_status); } &&
43081          { ac_try='test -z "$ac_c_werror_flag"
43082                          || test ! -s conftest.err'
43083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43084   (eval $ac_try) 2>&5
43085   ac_status=$?
43086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087   (exit $ac_status); }; } &&
43088          { ac_try='test -s conftest$ac_exeext'
43089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43090   (eval $ac_try) 2>&5
43091   ac_status=$?
43092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093   (exit $ac_status); }; }; then
43094   ol_cv_db_db_1=yes
43095 else
43096   echo "$as_me: failed program was:" >&5
43097 sed 's/^/| /' conftest.$ac_ext >&5
43098
43099 ol_cv_db_db_1=no
43100 fi
43101 rm -f conftest.err conftest.$ac_objext \
43102       conftest$ac_exeext conftest.$ac_ext
43103
43104         LIBS="$ol_LIBS"
43105
43106 fi
43107 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43108 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43109
43110         if test $ol_cv_db_db_1 = yes ; then
43111                 ol_cv_lib_db=-ldb-1
43112         fi
43113 fi
43114
43115
43116         if test "$ol_cv_lib_db" != no ; then
43117                 ol_cv_berkeley_db=yes
43118                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43119 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43120 if test "${ol_cv_berkeley_db_version+set}" = set; then
43121   echo $ECHO_N "(cached) $ECHO_C" >&6
43122 else
43123
43124         ol_LIBS="$LIBS"
43125         LIBS="$LTHREAD_LIBS $LIBS"
43126         if test $ol_cv_lib_db != yes ; then
43127                 LIBS="$ol_cv_lib_db $LIBS"
43128         fi
43129
43130         if test "$cross_compiling" = yes; then
43131   ol_cv_berkeley_db_version=cross
43132 else
43133   cat >conftest.$ac_ext <<_ACEOF
43134 /* confdefs.h.  */
43135 _ACEOF
43136 cat confdefs.h >>conftest.$ac_ext
43137 cat >>conftest.$ac_ext <<_ACEOF
43138 /* end confdefs.h.  */
43139
43140 #ifdef HAVE_DB_185_H
43141         choke me;
43142 #else
43143 #include <db.h>
43144 #endif
43145 #ifndef DB_VERSION_MAJOR
43146 # define DB_VERSION_MAJOR 1
43147 #endif
43148 #ifndef NULL
43149 #define NULL ((void *)0)
43150 #endif
43151 main()
43152 {
43153 #if DB_VERSION_MAJOR > 1
43154         char *version;
43155         int major, minor, patch;
43156
43157         version = db_version( &major, &minor, &patch );
43158
43159         if( major != DB_VERSION_MAJOR ||
43160                 minor != DB_VERSION_MINOR ||
43161                 patch != DB_VERSION_PATCH )
43162         {
43163                 printf("Berkeley DB version mismatch\n"
43164                         "\theader: %s\n\tlibrary: %s\n",
43165                         DB_VERSION_STRING, version);
43166                 return 1;
43167         }
43168 #endif
43169
43170         return 0;
43171 }
43172 _ACEOF
43173 rm -f conftest$ac_exeext
43174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43175   (eval $ac_link) 2>&5
43176   ac_status=$?
43177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43180   (eval $ac_try) 2>&5
43181   ac_status=$?
43182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183   (exit $ac_status); }; }; then
43184   ol_cv_berkeley_db_version=yes
43185 else
43186   echo "$as_me: program exited with status $ac_status" >&5
43187 echo "$as_me: failed program was:" >&5
43188 sed 's/^/| /' conftest.$ac_ext >&5
43189
43190 ( exit $ac_status )
43191 ol_cv_berkeley_db_version=no
43192 fi
43193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43194 fi
43195
43196         LIBS="$ol_LIBS"
43197
43198 fi
43199 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43200 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43201
43202         if test $ol_cv_berkeley_db_version = no ; then
43203                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43204 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43205    { (exit 1); exit 1; }; }
43206         fi
43207
43208                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43209 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43210 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43211   echo $ECHO_N "(cached) $ECHO_C" >&6
43212 else
43213
43214         ol_LIBS="$LIBS"
43215         LIBS="$LTHREAD_LIBS $LIBS"
43216         if test $ol_cv_lib_db != yes ; then
43217                 LIBS="$ol_cv_lib_db $LIBS"
43218         fi
43219
43220         if test "$cross_compiling" = yes; then
43221   ol_cv_berkeley_db_thread=cross
43222 else
43223   cat >conftest.$ac_ext <<_ACEOF
43224 /* confdefs.h.  */
43225 _ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h.  */
43229
43230 #ifdef HAVE_DB_185_H
43231         choke me;
43232 #else
43233 #include <db.h>
43234 #endif
43235 #ifndef NULL
43236 #define NULL ((void *)0)
43237 #endif
43238 main()
43239 {
43240         int rc;
43241         u_int32_t flags = DB_CREATE |
43242 #ifdef DB_PRIVATE
43243                 DB_PRIVATE |
43244 #endif
43245                 DB_THREAD;
43246
43247 #if DB_VERSION_MAJOR > 2
43248         DB_ENV *env = NULL;
43249
43250         rc = db_env_create( &env, 0 );
43251
43252         flags |= DB_INIT_MPOOL;
43253 #ifdef DB_MPOOL_PRIVATE
43254         flags |= DB_MPOOL_PRIVATE;
43255 #endif
43256
43257         if( rc ) {
43258                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43259                 return rc;
43260         }
43261
43262 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43263         rc = env->open( env, NULL, flags, 0 );
43264 #else
43265         rc = env->open( env, NULL, NULL, flags, 0 );
43266 #endif
43267
43268         if ( rc == 0 ) {
43269                 rc = env->close( env, 0 );
43270         }
43271
43272         if( rc ) {
43273                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43274                 return rc;
43275         }
43276
43277 #else
43278         DB_ENV env;
43279         memset( &env, '\0', sizeof(env) );
43280
43281         rc = db_appinit( NULL, NULL, &env, flags );
43282
43283         if( rc == 0 ) {
43284                 db_appexit( &env );
43285         }
43286
43287         unlink("__db_mpool.share");
43288         unlink("__db_lock.share");
43289 #endif
43290
43291         return rc;
43292 }
43293 _ACEOF
43294 rm -f conftest$ac_exeext
43295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43296   (eval $ac_link) 2>&5
43297   ac_status=$?
43298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301   (eval $ac_try) 2>&5
43302   ac_status=$?
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); }; }; then
43305   ol_cv_berkeley_db_thread=yes
43306 else
43307   echo "$as_me: program exited with status $ac_status" >&5
43308 echo "$as_me: failed program was:" >&5
43309 sed 's/^/| /' conftest.$ac_ext >&5
43310
43311 ( exit $ac_status )
43312 ol_cv_berkeley_db_thread=no
43313 fi
43314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43315 fi
43316
43317         LIBS="$ol_LIBS"
43318
43319 fi
43320 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43321 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43322
43323         if test $ol_cv_berkeley_db_thread != no ; then
43324
43325 cat >>confdefs.h <<\_ACEOF
43326 #define HAVE_BERKELEY_DB_THREAD 1
43327 _ACEOF
43328
43329         fi
43330
43331         fi
43332 fi
43333
43334         fi
43335
43336         if test $ol_cv_berkeley_db != no ; then
43337
43338 cat >>confdefs.h <<\_ACEOF
43339 #define HAVE_BERKELEY_DB 1
43340 _ACEOF
43341
43342
43343                 ol_link_ldbm=berkeley
43344                 ol_enable_ldbm_api=berkeley
43345
43346                 if test $ol_enable_ldbm_type = hash ; then
43347
43348 cat >>confdefs.h <<\_ACEOF
43349 #define LDBM_USE_DBHASH 1
43350 _ACEOF
43351
43352                 else
43353
43354 cat >>confdefs.h <<\_ACEOF
43355 #define LDBM_USE_DBBTREE 1
43356 _ACEOF
43357
43358                 fi
43359
43360                                                 if test $ol_cv_lib_db != yes ; then
43361                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43362                 fi
43363         fi
43364 fi
43365
43366 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43367         if test $ol_link_ldbm != berkeley ; then
43368                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43369 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43370    { (exit 1); exit 1; }; }
43371         else
43372                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43373 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43374 if test "${ol_cv_bdb_compat+set}" = set; then
43375   echo $ECHO_N "(cached) $ECHO_C" >&6
43376 else
43377
43378         cat >conftest.$ac_ext <<_ACEOF
43379 /* confdefs.h.  */
43380 _ACEOF
43381 cat confdefs.h >>conftest.$ac_ext
43382 cat >>conftest.$ac_ext <<_ACEOF
43383 /* end confdefs.h.  */
43384
43385 #include <db.h>
43386
43387  /* this check could be improved */
43388 #ifndef DB_VERSION_MAJOR
43389 #       define DB_VERSION_MAJOR 1
43390 #endif
43391 #ifndef DB_VERSION_MINOR
43392 #       define DB_VERSION_MINOR 0
43393 #endif
43394
43395 /* require 4.2 or later */
43396 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43397         __db_version_compat
43398 #endif
43399
43400 _ACEOF
43401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43402   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43403   ol_cv_bdb_compat=yes
43404 else
43405   ol_cv_bdb_compat=no
43406 fi
43407 rm -f conftest*
43408
43409 fi
43410 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43411 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43412
43413
43414                 if test $ol_cv_bdb_compat != yes ; then
43415                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43416 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43417    { (exit 1); exit 1; }; }
43418                 fi
43419         fi
43420 fi
43421
43422 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43423         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43424 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43425         ol_enable_ldbm_api=none
43426 fi
43427
43428 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43429         echo "$as_me:$LINENO: checking for MDBM library" >&5
43430 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43431 if test "${ol_cv_lib_mdbm+set}" = set; then
43432   echo $ECHO_N "(cached) $ECHO_C" >&6
43433 else
43434         ol_LIBS="$LIBS"
43435         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43436 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43437 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43438   echo $ECHO_N "(cached) $ECHO_C" >&6
43439 else
43440   cat >conftest.$ac_ext <<_ACEOF
43441 /* confdefs.h.  */
43442 _ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h.  */
43446 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43448 #define mdbm_set_chain innocuous_mdbm_set_chain
43449
43450 /* System header to define __stub macros and hopefully few prototypes,
43451     which can conflict with char mdbm_set_chain (); below.
43452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43453     <limits.h> exists even on freestanding compilers.  */
43454
43455 #ifdef __STDC__
43456 # include <limits.h>
43457 #else
43458 # include <assert.h>
43459 #endif
43460
43461 #undef mdbm_set_chain
43462
43463 /* Override any gcc2 internal prototype to avoid an error.  */
43464 #ifdef __cplusplus
43465 extern "C"
43466 {
43467 #endif
43468 /* We use char because int might match the return type of a gcc2
43469    builtin and then its argument prototype would still apply.  */
43470 char mdbm_set_chain ();
43471 /* The GNU C library defines this for functions which it implements
43472     to always fail with ENOSYS.  Some functions are actually named
43473     something starting with __ and the normal name is an alias.  */
43474 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43475 choke me
43476 #else
43477 char (*f) () = mdbm_set_chain;
43478 #endif
43479 #ifdef __cplusplus
43480 }
43481 #endif
43482
43483 int
43484 main ()
43485 {
43486 return f != mdbm_set_chain;
43487   ;
43488   return 0;
43489 }
43490 _ACEOF
43491 rm -f conftest.$ac_objext conftest$ac_exeext
43492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43493   (eval $ac_link) 2>conftest.er1
43494   ac_status=$?
43495   grep -v '^ *+' conftest.er1 >conftest.err
43496   rm -f conftest.er1
43497   cat conftest.err >&5
43498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499   (exit $ac_status); } &&
43500          { ac_try='test -z "$ac_c_werror_flag"
43501                          || test ! -s conftest.err'
43502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503   (eval $ac_try) 2>&5
43504   ac_status=$?
43505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506   (exit $ac_status); }; } &&
43507          { ac_try='test -s conftest$ac_exeext'
43508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43509   (eval $ac_try) 2>&5
43510   ac_status=$?
43511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43512   (exit $ac_status); }; }; then
43513   ac_cv_func_mdbm_set_chain=yes
43514 else
43515   echo "$as_me: failed program was:" >&5
43516 sed 's/^/| /' conftest.$ac_ext >&5
43517
43518 ac_cv_func_mdbm_set_chain=no
43519 fi
43520 rm -f conftest.err conftest.$ac_objext \
43521       conftest$ac_exeext conftest.$ac_ext
43522 fi
43523 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43524 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43525 if test $ac_cv_func_mdbm_set_chain = yes; then
43526   ol_cv_lib_mdbm=yes
43527 else
43528
43529                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43530 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43531 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43532   echo $ECHO_N "(cached) $ECHO_C" >&6
43533 else
43534   ac_check_lib_save_LIBS=$LIBS
43535 LIBS="-lmdbm  $LIBS"
43536 cat >conftest.$ac_ext <<_ACEOF
43537 /* confdefs.h.  */
43538 _ACEOF
43539 cat confdefs.h >>conftest.$ac_ext
43540 cat >>conftest.$ac_ext <<_ACEOF
43541 /* end confdefs.h.  */
43542
43543 /* Override any gcc2 internal prototype to avoid an error.  */
43544 #ifdef __cplusplus
43545 extern "C"
43546 #endif
43547 /* We use char because int might match the return type of a gcc2
43548    builtin and then its argument prototype would still apply.  */
43549 char mdbm_set_chain ();
43550 int
43551 main ()
43552 {
43553 mdbm_set_chain ();
43554   ;
43555   return 0;
43556 }
43557 _ACEOF
43558 rm -f conftest.$ac_objext conftest$ac_exeext
43559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43560   (eval $ac_link) 2>conftest.er1
43561   ac_status=$?
43562   grep -v '^ *+' conftest.er1 >conftest.err
43563   rm -f conftest.er1
43564   cat conftest.err >&5
43565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566   (exit $ac_status); } &&
43567          { ac_try='test -z "$ac_c_werror_flag"
43568                          || test ! -s conftest.err'
43569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43570   (eval $ac_try) 2>&5
43571   ac_status=$?
43572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573   (exit $ac_status); }; } &&
43574          { ac_try='test -s conftest$ac_exeext'
43575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43576   (eval $ac_try) 2>&5
43577   ac_status=$?
43578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43579   (exit $ac_status); }; }; then
43580   ac_cv_lib_mdbm_mdbm_set_chain=yes
43581 else
43582   echo "$as_me: failed program was:" >&5
43583 sed 's/^/| /' conftest.$ac_ext >&5
43584
43585 ac_cv_lib_mdbm_mdbm_set_chain=no
43586 fi
43587 rm -f conftest.err conftest.$ac_objext \
43588       conftest$ac_exeext conftest.$ac_ext
43589 LIBS=$ac_check_lib_save_LIBS
43590 fi
43591 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43592 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43593 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43594   ol_cv_lib_mdbm=-lmdbm
43595 else
43596   ol_cv_lib_mdbm=no
43597 fi
43598
43599
43600 fi
43601
43602         LIBS="$ol_LIBS"
43603
43604 fi
43605 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43606 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43607
43608
43609
43610 for ac_header in mdbm.h
43611 do
43612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43614   echo "$as_me:$LINENO: checking for $ac_header" >&5
43615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43617   echo $ECHO_N "(cached) $ECHO_C" >&6
43618 fi
43619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43621 else
43622   # Is the header compilable?
43623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43625 cat >conftest.$ac_ext <<_ACEOF
43626 /* confdefs.h.  */
43627 _ACEOF
43628 cat confdefs.h >>conftest.$ac_ext
43629 cat >>conftest.$ac_ext <<_ACEOF
43630 /* end confdefs.h.  */
43631 $ac_includes_default
43632 #include <$ac_header>
43633 _ACEOF
43634 rm -f conftest.$ac_objext
43635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43636   (eval $ac_compile) 2>conftest.er1
43637   ac_status=$?
43638   grep -v '^ *+' conftest.er1 >conftest.err
43639   rm -f conftest.er1
43640   cat conftest.err >&5
43641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43642   (exit $ac_status); } &&
43643          { ac_try='test -z "$ac_c_werror_flag"
43644                          || test ! -s conftest.err'
43645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43646   (eval $ac_try) 2>&5
43647   ac_status=$?
43648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649   (exit $ac_status); }; } &&
43650          { ac_try='test -s conftest.$ac_objext'
43651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43652   (eval $ac_try) 2>&5
43653   ac_status=$?
43654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655   (exit $ac_status); }; }; then
43656   ac_header_compiler=yes
43657 else
43658   echo "$as_me: failed program was:" >&5
43659 sed 's/^/| /' conftest.$ac_ext >&5
43660
43661 ac_header_compiler=no
43662 fi
43663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43665 echo "${ECHO_T}$ac_header_compiler" >&6
43666
43667 # Is the header present?
43668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43670 cat >conftest.$ac_ext <<_ACEOF
43671 /* confdefs.h.  */
43672 _ACEOF
43673 cat confdefs.h >>conftest.$ac_ext
43674 cat >>conftest.$ac_ext <<_ACEOF
43675 /* end confdefs.h.  */
43676 #include <$ac_header>
43677 _ACEOF
43678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43680   ac_status=$?
43681   grep -v '^ *+' conftest.er1 >conftest.err
43682   rm -f conftest.er1
43683   cat conftest.err >&5
43684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685   (exit $ac_status); } >/dev/null; then
43686   if test -s conftest.err; then
43687     ac_cpp_err=$ac_c_preproc_warn_flag
43688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43689   else
43690     ac_cpp_err=
43691   fi
43692 else
43693   ac_cpp_err=yes
43694 fi
43695 if test -z "$ac_cpp_err"; then
43696   ac_header_preproc=yes
43697 else
43698   echo "$as_me: failed program was:" >&5
43699 sed 's/^/| /' conftest.$ac_ext >&5
43700
43701   ac_header_preproc=no
43702 fi
43703 rm -f conftest.err conftest.$ac_ext
43704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43705 echo "${ECHO_T}$ac_header_preproc" >&6
43706
43707 # So?  What about this header?
43708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43709   yes:no: )
43710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43714     ac_header_preproc=yes
43715     ;;
43716   no:yes:* )
43717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43729     (
43730       cat <<\_ASBOX
43731 ## ------------------------------------------ ##
43732 ## Report this to the AC_PACKAGE_NAME lists.  ##
43733 ## ------------------------------------------ ##
43734 _ASBOX
43735     ) |
43736       sed "s/^/$as_me: WARNING:     /" >&2
43737     ;;
43738 esac
43739 echo "$as_me:$LINENO: checking for $ac_header" >&5
43740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43742   echo $ECHO_N "(cached) $ECHO_C" >&6
43743 else
43744   eval "$as_ac_Header=\$ac_header_preproc"
43745 fi
43746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43748
43749 fi
43750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43751   cat >>confdefs.h <<_ACEOF
43752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43753 _ACEOF
43754
43755 fi
43756
43757 done
43758
43759  echo "$as_me:$LINENO: checking for db" >&5
43760 echo $ECHO_N "checking for db... $ECHO_C" >&6
43761 if test "${ol_cv_mdbm+set}" = set; then
43762   echo $ECHO_N "(cached) $ECHO_C" >&6
43763 else
43764
43765         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43766                 ol_cv_mdbm=no
43767         else
43768                 ol_cv_mdbm=yes
43769         fi
43770
43771 fi
43772 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43773 echo "${ECHO_T}$ol_cv_mdbm" >&6
43774  if test $ol_cv_mdbm = yes ; then
43775
43776 cat >>confdefs.h <<\_ACEOF
43777 #define HAVE_MDBM 1
43778 _ACEOF
43779
43780  fi
43781
43782
43783         if test $ol_cv_mdbm = yes ; then
43784                 ol_link_ldbm=mdbm
43785                 ol_enable_ldbm_api=mdbm
43786                 if test $ol_cv_lib_mdbm != yes ; then
43787                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43788                 fi
43789         fi
43790 fi
43791
43792 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43793         echo "$as_me:$LINENO: checking for GDBM library" >&5
43794 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43795 if test "${ol_cv_lib_gdbm+set}" = set; then
43796   echo $ECHO_N "(cached) $ECHO_C" >&6
43797 else
43798         ol_LIBS="$LIBS"
43799         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43800 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43801 if test "${ac_cv_func_gdbm_open+set}" = set; then
43802   echo $ECHO_N "(cached) $ECHO_C" >&6
43803 else
43804   cat >conftest.$ac_ext <<_ACEOF
43805 /* confdefs.h.  */
43806 _ACEOF
43807 cat confdefs.h >>conftest.$ac_ext
43808 cat >>conftest.$ac_ext <<_ACEOF
43809 /* end confdefs.h.  */
43810 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43812 #define gdbm_open innocuous_gdbm_open
43813
43814 /* System header to define __stub macros and hopefully few prototypes,
43815     which can conflict with char gdbm_open (); below.
43816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43817     <limits.h> exists even on freestanding compilers.  */
43818
43819 #ifdef __STDC__
43820 # include <limits.h>
43821 #else
43822 # include <assert.h>
43823 #endif
43824
43825 #undef gdbm_open
43826
43827 /* Override any gcc2 internal prototype to avoid an error.  */
43828 #ifdef __cplusplus
43829 extern "C"
43830 {
43831 #endif
43832 /* We use char because int might match the return type of a gcc2
43833    builtin and then its argument prototype would still apply.  */
43834 char gdbm_open ();
43835 /* The GNU C library defines this for functions which it implements
43836     to always fail with ENOSYS.  Some functions are actually named
43837     something starting with __ and the normal name is an alias.  */
43838 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43839 choke me
43840 #else
43841 char (*f) () = gdbm_open;
43842 #endif
43843 #ifdef __cplusplus
43844 }
43845 #endif
43846
43847 int
43848 main ()
43849 {
43850 return f != gdbm_open;
43851   ;
43852   return 0;
43853 }
43854 _ACEOF
43855 rm -f conftest.$ac_objext conftest$ac_exeext
43856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43857   (eval $ac_link) 2>conftest.er1
43858   ac_status=$?
43859   grep -v '^ *+' conftest.er1 >conftest.err
43860   rm -f conftest.er1
43861   cat conftest.err >&5
43862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863   (exit $ac_status); } &&
43864          { ac_try='test -z "$ac_c_werror_flag"
43865                          || test ! -s conftest.err'
43866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43867   (eval $ac_try) 2>&5
43868   ac_status=$?
43869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870   (exit $ac_status); }; } &&
43871          { ac_try='test -s conftest$ac_exeext'
43872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43873   (eval $ac_try) 2>&5
43874   ac_status=$?
43875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43876   (exit $ac_status); }; }; then
43877   ac_cv_func_gdbm_open=yes
43878 else
43879   echo "$as_me: failed program was:" >&5
43880 sed 's/^/| /' conftest.$ac_ext >&5
43881
43882 ac_cv_func_gdbm_open=no
43883 fi
43884 rm -f conftest.err conftest.$ac_objext \
43885       conftest$ac_exeext conftest.$ac_ext
43886 fi
43887 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43888 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43889 if test $ac_cv_func_gdbm_open = yes; then
43890   ol_cv_lib_gdbm=yes
43891 else
43892
43893                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43894 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43895 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43896   echo $ECHO_N "(cached) $ECHO_C" >&6
43897 else
43898   ac_check_lib_save_LIBS=$LIBS
43899 LIBS="-lgdbm  $LIBS"
43900 cat >conftest.$ac_ext <<_ACEOF
43901 /* confdefs.h.  */
43902 _ACEOF
43903 cat confdefs.h >>conftest.$ac_ext
43904 cat >>conftest.$ac_ext <<_ACEOF
43905 /* end confdefs.h.  */
43906
43907 /* Override any gcc2 internal prototype to avoid an error.  */
43908 #ifdef __cplusplus
43909 extern "C"
43910 #endif
43911 /* We use char because int might match the return type of a gcc2
43912    builtin and then its argument prototype would still apply.  */
43913 char gdbm_open ();
43914 int
43915 main ()
43916 {
43917 gdbm_open ();
43918   ;
43919   return 0;
43920 }
43921 _ACEOF
43922 rm -f conftest.$ac_objext conftest$ac_exeext
43923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43924   (eval $ac_link) 2>conftest.er1
43925   ac_status=$?
43926   grep -v '^ *+' conftest.er1 >conftest.err
43927   rm -f conftest.er1
43928   cat conftest.err >&5
43929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43930   (exit $ac_status); } &&
43931          { ac_try='test -z "$ac_c_werror_flag"
43932                          || test ! -s conftest.err'
43933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43934   (eval $ac_try) 2>&5
43935   ac_status=$?
43936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43937   (exit $ac_status); }; } &&
43938          { ac_try='test -s conftest$ac_exeext'
43939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43940   (eval $ac_try) 2>&5
43941   ac_status=$?
43942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43943   (exit $ac_status); }; }; then
43944   ac_cv_lib_gdbm_gdbm_open=yes
43945 else
43946   echo "$as_me: failed program was:" >&5
43947 sed 's/^/| /' conftest.$ac_ext >&5
43948
43949 ac_cv_lib_gdbm_gdbm_open=no
43950 fi
43951 rm -f conftest.err conftest.$ac_objext \
43952       conftest$ac_exeext conftest.$ac_ext
43953 LIBS=$ac_check_lib_save_LIBS
43954 fi
43955 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43956 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43957 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43958   ol_cv_lib_gdbm=-lgdbm
43959 else
43960   ol_cv_lib_gdbm=no
43961 fi
43962
43963
43964 fi
43965
43966         LIBS="$ol_LIBS"
43967
43968 fi
43969 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43970 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43971
43972
43973
43974 for ac_header in gdbm.h
43975 do
43976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43978   echo "$as_me:$LINENO: checking for $ac_header" >&5
43979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43981   echo $ECHO_N "(cached) $ECHO_C" >&6
43982 fi
43983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43985 else
43986   # Is the header compilable?
43987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43989 cat >conftest.$ac_ext <<_ACEOF
43990 /* confdefs.h.  */
43991 _ACEOF
43992 cat confdefs.h >>conftest.$ac_ext
43993 cat >>conftest.$ac_ext <<_ACEOF
43994 /* end confdefs.h.  */
43995 $ac_includes_default
43996 #include <$ac_header>
43997 _ACEOF
43998 rm -f conftest.$ac_objext
43999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44000   (eval $ac_compile) 2>conftest.er1
44001   ac_status=$?
44002   grep -v '^ *+' conftest.er1 >conftest.err
44003   rm -f conftest.er1
44004   cat conftest.err >&5
44005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44006   (exit $ac_status); } &&
44007          { ac_try='test -z "$ac_c_werror_flag"
44008                          || test ! -s conftest.err'
44009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44010   (eval $ac_try) 2>&5
44011   ac_status=$?
44012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44013   (exit $ac_status); }; } &&
44014          { ac_try='test -s conftest.$ac_objext'
44015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44016   (eval $ac_try) 2>&5
44017   ac_status=$?
44018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44019   (exit $ac_status); }; }; then
44020   ac_header_compiler=yes
44021 else
44022   echo "$as_me: failed program was:" >&5
44023 sed 's/^/| /' conftest.$ac_ext >&5
44024
44025 ac_header_compiler=no
44026 fi
44027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44029 echo "${ECHO_T}$ac_header_compiler" >&6
44030
44031 # Is the header present?
44032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44034 cat >conftest.$ac_ext <<_ACEOF
44035 /* confdefs.h.  */
44036 _ACEOF
44037 cat confdefs.h >>conftest.$ac_ext
44038 cat >>conftest.$ac_ext <<_ACEOF
44039 /* end confdefs.h.  */
44040 #include <$ac_header>
44041 _ACEOF
44042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44044   ac_status=$?
44045   grep -v '^ *+' conftest.er1 >conftest.err
44046   rm -f conftest.er1
44047   cat conftest.err >&5
44048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44049   (exit $ac_status); } >/dev/null; then
44050   if test -s conftest.err; then
44051     ac_cpp_err=$ac_c_preproc_warn_flag
44052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44053   else
44054     ac_cpp_err=
44055   fi
44056 else
44057   ac_cpp_err=yes
44058 fi
44059 if test -z "$ac_cpp_err"; then
44060   ac_header_preproc=yes
44061 else
44062   echo "$as_me: failed program was:" >&5
44063 sed 's/^/| /' conftest.$ac_ext >&5
44064
44065   ac_header_preproc=no
44066 fi
44067 rm -f conftest.err conftest.$ac_ext
44068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44069 echo "${ECHO_T}$ac_header_preproc" >&6
44070
44071 # So?  What about this header?
44072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44073   yes:no: )
44074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44078     ac_header_preproc=yes
44079     ;;
44080   no:yes:* )
44081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44093     (
44094       cat <<\_ASBOX
44095 ## ------------------------------------------ ##
44096 ## Report this to the AC_PACKAGE_NAME lists.  ##
44097 ## ------------------------------------------ ##
44098 _ASBOX
44099     ) |
44100       sed "s/^/$as_me: WARNING:     /" >&2
44101     ;;
44102 esac
44103 echo "$as_me:$LINENO: checking for $ac_header" >&5
44104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44106   echo $ECHO_N "(cached) $ECHO_C" >&6
44107 else
44108   eval "$as_ac_Header=\$ac_header_preproc"
44109 fi
44110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44112
44113 fi
44114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44115   cat >>confdefs.h <<_ACEOF
44116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44117 _ACEOF
44118
44119 fi
44120
44121 done
44122
44123  echo "$as_me:$LINENO: checking for db" >&5
44124 echo $ECHO_N "checking for db... $ECHO_C" >&6
44125 if test "${ol_cv_gdbm+set}" = set; then
44126   echo $ECHO_N "(cached) $ECHO_C" >&6
44127 else
44128
44129         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44130                 ol_cv_gdbm=no
44131         else
44132                 ol_cv_gdbm=yes
44133         fi
44134
44135 fi
44136 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44137 echo "${ECHO_T}$ol_cv_gdbm" >&6
44138  if test $ol_cv_gdbm = yes ; then
44139
44140 cat >>confdefs.h <<\_ACEOF
44141 #define HAVE_GDBM 1
44142 _ACEOF
44143
44144  fi
44145
44146
44147         if test $ol_cv_gdbm = yes ; then
44148                 ol_link_ldbm=gdbm
44149                 ol_enable_ldbm_api=gdbm
44150
44151                 if test $ol_cv_lib_gdbm != yes ; then
44152                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44153                 fi
44154         fi
44155 fi
44156
44157 if test $ol_enable_ldbm_api = ndbm ; then
44158         echo "$as_me:$LINENO: checking for NDBM library" >&5
44159 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44160 if test "${ol_cv_lib_ndbm+set}" = set; then
44161   echo $ECHO_N "(cached) $ECHO_C" >&6
44162 else
44163         ol_LIBS="$LIBS"
44164         echo "$as_me:$LINENO: checking for dbm_open" >&5
44165 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44166 if test "${ac_cv_func_dbm_open+set}" = set; then
44167   echo $ECHO_N "(cached) $ECHO_C" >&6
44168 else
44169   cat >conftest.$ac_ext <<_ACEOF
44170 /* confdefs.h.  */
44171 _ACEOF
44172 cat confdefs.h >>conftest.$ac_ext
44173 cat >>conftest.$ac_ext <<_ACEOF
44174 /* end confdefs.h.  */
44175 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44177 #define dbm_open innocuous_dbm_open
44178
44179 /* System header to define __stub macros and hopefully few prototypes,
44180     which can conflict with char dbm_open (); below.
44181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44182     <limits.h> exists even on freestanding compilers.  */
44183
44184 #ifdef __STDC__
44185 # include <limits.h>
44186 #else
44187 # include <assert.h>
44188 #endif
44189
44190 #undef dbm_open
44191
44192 /* Override any gcc2 internal prototype to avoid an error.  */
44193 #ifdef __cplusplus
44194 extern "C"
44195 {
44196 #endif
44197 /* We use char because int might match the return type of a gcc2
44198    builtin and then its argument prototype would still apply.  */
44199 char dbm_open ();
44200 /* The GNU C library defines this for functions which it implements
44201     to always fail with ENOSYS.  Some functions are actually named
44202     something starting with __ and the normal name is an alias.  */
44203 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44204 choke me
44205 #else
44206 char (*f) () = dbm_open;
44207 #endif
44208 #ifdef __cplusplus
44209 }
44210 #endif
44211
44212 int
44213 main ()
44214 {
44215 return f != dbm_open;
44216   ;
44217   return 0;
44218 }
44219 _ACEOF
44220 rm -f conftest.$ac_objext conftest$ac_exeext
44221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44222   (eval $ac_link) 2>conftest.er1
44223   ac_status=$?
44224   grep -v '^ *+' conftest.er1 >conftest.err
44225   rm -f conftest.er1
44226   cat conftest.err >&5
44227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44228   (exit $ac_status); } &&
44229          { ac_try='test -z "$ac_c_werror_flag"
44230                          || test ! -s conftest.err'
44231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44232   (eval $ac_try) 2>&5
44233   ac_status=$?
44234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235   (exit $ac_status); }; } &&
44236          { ac_try='test -s conftest$ac_exeext'
44237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44238   (eval $ac_try) 2>&5
44239   ac_status=$?
44240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241   (exit $ac_status); }; }; then
44242   ac_cv_func_dbm_open=yes
44243 else
44244   echo "$as_me: failed program was:" >&5
44245 sed 's/^/| /' conftest.$ac_ext >&5
44246
44247 ac_cv_func_dbm_open=no
44248 fi
44249 rm -f conftest.err conftest.$ac_objext \
44250       conftest$ac_exeext conftest.$ac_ext
44251 fi
44252 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44253 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44254 if test $ac_cv_func_dbm_open = yes; then
44255   ol_cv_lib_ndbm=yes
44256 else
44257
44258                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44259 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44260 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44261   echo $ECHO_N "(cached) $ECHO_C" >&6
44262 else
44263   ac_check_lib_save_LIBS=$LIBS
44264 LIBS="-lndbm  $LIBS"
44265 cat >conftest.$ac_ext <<_ACEOF
44266 /* confdefs.h.  */
44267 _ACEOF
44268 cat confdefs.h >>conftest.$ac_ext
44269 cat >>conftest.$ac_ext <<_ACEOF
44270 /* end confdefs.h.  */
44271
44272 /* Override any gcc2 internal prototype to avoid an error.  */
44273 #ifdef __cplusplus
44274 extern "C"
44275 #endif
44276 /* We use char because int might match the return type of a gcc2
44277    builtin and then its argument prototype would still apply.  */
44278 char dbm_open ();
44279 int
44280 main ()
44281 {
44282 dbm_open ();
44283   ;
44284   return 0;
44285 }
44286 _ACEOF
44287 rm -f conftest.$ac_objext conftest$ac_exeext
44288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44289   (eval $ac_link) 2>conftest.er1
44290   ac_status=$?
44291   grep -v '^ *+' conftest.er1 >conftest.err
44292   rm -f conftest.er1
44293   cat conftest.err >&5
44294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44295   (exit $ac_status); } &&
44296          { ac_try='test -z "$ac_c_werror_flag"
44297                          || test ! -s conftest.err'
44298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44299   (eval $ac_try) 2>&5
44300   ac_status=$?
44301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302   (exit $ac_status); }; } &&
44303          { ac_try='test -s conftest$ac_exeext'
44304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44305   (eval $ac_try) 2>&5
44306   ac_status=$?
44307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44308   (exit $ac_status); }; }; then
44309   ac_cv_lib_ndbm_dbm_open=yes
44310 else
44311   echo "$as_me: failed program was:" >&5
44312 sed 's/^/| /' conftest.$ac_ext >&5
44313
44314 ac_cv_lib_ndbm_dbm_open=no
44315 fi
44316 rm -f conftest.err conftest.$ac_objext \
44317       conftest$ac_exeext conftest.$ac_ext
44318 LIBS=$ac_check_lib_save_LIBS
44319 fi
44320 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44321 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44322 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44323   ol_cv_lib_ndbm=-lndbm
44324 else
44325
44326                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44327 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44328 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44329   echo $ECHO_N "(cached) $ECHO_C" >&6
44330 else
44331   ac_check_lib_save_LIBS=$LIBS
44332 LIBS="-ldbm  $LIBS"
44333 cat >conftest.$ac_ext <<_ACEOF
44334 /* confdefs.h.  */
44335 _ACEOF
44336 cat confdefs.h >>conftest.$ac_ext
44337 cat >>conftest.$ac_ext <<_ACEOF
44338 /* end confdefs.h.  */
44339
44340 /* Override any gcc2 internal prototype to avoid an error.  */
44341 #ifdef __cplusplus
44342 extern "C"
44343 #endif
44344 /* We use char because int might match the return type of a gcc2
44345    builtin and then its argument prototype would still apply.  */
44346 char dbm_open ();
44347 int
44348 main ()
44349 {
44350 dbm_open ();
44351   ;
44352   return 0;
44353 }
44354 _ACEOF
44355 rm -f conftest.$ac_objext conftest$ac_exeext
44356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44357   (eval $ac_link) 2>conftest.er1
44358   ac_status=$?
44359   grep -v '^ *+' conftest.er1 >conftest.err
44360   rm -f conftest.er1
44361   cat conftest.err >&5
44362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363   (exit $ac_status); } &&
44364          { ac_try='test -z "$ac_c_werror_flag"
44365                          || test ! -s conftest.err'
44366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44367   (eval $ac_try) 2>&5
44368   ac_status=$?
44369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44370   (exit $ac_status); }; } &&
44371          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
44377   ac_cv_lib_dbm_dbm_open=yes
44378 else
44379   echo "$as_me: failed program was:" >&5
44380 sed 's/^/| /' conftest.$ac_ext >&5
44381
44382 ac_cv_lib_dbm_dbm_open=no
44383 fi
44384 rm -f conftest.err conftest.$ac_objext \
44385       conftest$ac_exeext conftest.$ac_ext
44386 LIBS=$ac_check_lib_save_LIBS
44387 fi
44388 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44389 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44390 if test $ac_cv_lib_dbm_dbm_open = yes; then
44391   ol_cv_lib_ndbm=-ldbm
44392 else
44393   ol_cv_lib_ndbm=no
44394 fi
44395
44396 fi
44397
44398
44399 fi
44400
44401         LIBS="$ol_LIBS"
44402
44403 fi
44404 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44405 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44406
44407
44408
44409 for ac_header in ndbm.h
44410 do
44411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44413   echo "$as_me:$LINENO: checking for $ac_header" >&5
44414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44416   echo $ECHO_N "(cached) $ECHO_C" >&6
44417 fi
44418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44420 else
44421   # Is the header compilable?
44422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44424 cat >conftest.$ac_ext <<_ACEOF
44425 /* confdefs.h.  */
44426 _ACEOF
44427 cat confdefs.h >>conftest.$ac_ext
44428 cat >>conftest.$ac_ext <<_ACEOF
44429 /* end confdefs.h.  */
44430 $ac_includes_default
44431 #include <$ac_header>
44432 _ACEOF
44433 rm -f conftest.$ac_objext
44434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44435   (eval $ac_compile) 2>conftest.er1
44436   ac_status=$?
44437   grep -v '^ *+' conftest.er1 >conftest.err
44438   rm -f conftest.er1
44439   cat conftest.err >&5
44440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44441   (exit $ac_status); } &&
44442          { ac_try='test -z "$ac_c_werror_flag"
44443                          || test ! -s conftest.err'
44444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44445   (eval $ac_try) 2>&5
44446   ac_status=$?
44447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44448   (exit $ac_status); }; } &&
44449          { ac_try='test -s conftest.$ac_objext'
44450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44451   (eval $ac_try) 2>&5
44452   ac_status=$?
44453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454   (exit $ac_status); }; }; then
44455   ac_header_compiler=yes
44456 else
44457   echo "$as_me: failed program was:" >&5
44458 sed 's/^/| /' conftest.$ac_ext >&5
44459
44460 ac_header_compiler=no
44461 fi
44462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44464 echo "${ECHO_T}$ac_header_compiler" >&6
44465
44466 # Is the header present?
44467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44469 cat >conftest.$ac_ext <<_ACEOF
44470 /* confdefs.h.  */
44471 _ACEOF
44472 cat confdefs.h >>conftest.$ac_ext
44473 cat >>conftest.$ac_ext <<_ACEOF
44474 /* end confdefs.h.  */
44475 #include <$ac_header>
44476 _ACEOF
44477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44479   ac_status=$?
44480   grep -v '^ *+' conftest.er1 >conftest.err
44481   rm -f conftest.er1
44482   cat conftest.err >&5
44483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484   (exit $ac_status); } >/dev/null; then
44485   if test -s conftest.err; then
44486     ac_cpp_err=$ac_c_preproc_warn_flag
44487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44488   else
44489     ac_cpp_err=
44490   fi
44491 else
44492   ac_cpp_err=yes
44493 fi
44494 if test -z "$ac_cpp_err"; then
44495   ac_header_preproc=yes
44496 else
44497   echo "$as_me: failed program was:" >&5
44498 sed 's/^/| /' conftest.$ac_ext >&5
44499
44500   ac_header_preproc=no
44501 fi
44502 rm -f conftest.err conftest.$ac_ext
44503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44504 echo "${ECHO_T}$ac_header_preproc" >&6
44505
44506 # So?  What about this header?
44507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44508   yes:no: )
44509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44513     ac_header_preproc=yes
44514     ;;
44515   no:yes:* )
44516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44528     (
44529       cat <<\_ASBOX
44530 ## ------------------------------------------ ##
44531 ## Report this to the AC_PACKAGE_NAME lists.  ##
44532 ## ------------------------------------------ ##
44533 _ASBOX
44534     ) |
44535       sed "s/^/$as_me: WARNING:     /" >&2
44536     ;;
44537 esac
44538 echo "$as_me:$LINENO: checking for $ac_header" >&5
44539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44541   echo $ECHO_N "(cached) $ECHO_C" >&6
44542 else
44543   eval "$as_ac_Header=\$ac_header_preproc"
44544 fi
44545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44547
44548 fi
44549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44550   cat >>confdefs.h <<_ACEOF
44551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44552 _ACEOF
44553
44554 fi
44555
44556 done
44557
44558  echo "$as_me:$LINENO: checking for db" >&5
44559 echo $ECHO_N "checking for db... $ECHO_C" >&6
44560 if test "${ol_cv_ndbm+set}" = set; then
44561   echo $ECHO_N "(cached) $ECHO_C" >&6
44562 else
44563
44564         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44565                 ol_cv_ndbm=no
44566         else
44567                 ol_cv_ndbm=yes
44568         fi
44569
44570 fi
44571 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44572 echo "${ECHO_T}$ol_cv_ndbm" >&6
44573  if test $ol_cv_ndbm = yes ; then
44574
44575 cat >>confdefs.h <<\_ACEOF
44576 #define HAVE_NDBM 1
44577 _ACEOF
44578
44579  fi
44580
44581
44582         if test $ol_cv_ndbm = yes ; then
44583                 ol_link_ldbm=ndbm
44584                 ol_enable_ldbm_api=ndbm
44585
44586                 if test $ol_cv_lib_ndbm != yes ; then
44587                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44588                 fi
44589         fi
44590 fi
44591
44592 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44593         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44594 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44595    { (exit 1); exit 1; }; }
44596 fi
44597
44598 if test $ol_enable_bdb = yes -o \
44599         $ol_enable_hdb = yes -o \
44600         $ol_enable_ldbm = yes ; then
44601         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44602 fi
44603
44604
44605 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44606         BUILD_LIBS_DYNAMIC=shared
44607
44608 cat >>confdefs.h <<\_ACEOF
44609 #define LDAP_LIBS_DYNAMIC 1
44610 _ACEOF
44611
44612         LTSTATIC=""
44613 else
44614         BUILD_LIBS_DYNAMIC=static
44615         LTSTATIC="-static"
44616 fi
44617
44618 if test $ol_enable_wrappers != no ; then
44619
44620 for ac_header in tcpd.h
44621 do
44622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44624   echo "$as_me:$LINENO: checking for $ac_header" >&5
44625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44627   echo $ECHO_N "(cached) $ECHO_C" >&6
44628 fi
44629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44631 else
44632   # Is the header compilable?
44633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44635 cat >conftest.$ac_ext <<_ACEOF
44636 /* confdefs.h.  */
44637 _ACEOF
44638 cat confdefs.h >>conftest.$ac_ext
44639 cat >>conftest.$ac_ext <<_ACEOF
44640 /* end confdefs.h.  */
44641 $ac_includes_default
44642 #include <$ac_header>
44643 _ACEOF
44644 rm -f conftest.$ac_objext
44645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44646   (eval $ac_compile) 2>conftest.er1
44647   ac_status=$?
44648   grep -v '^ *+' conftest.er1 >conftest.err
44649   rm -f conftest.er1
44650   cat conftest.err >&5
44651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44652   (exit $ac_status); } &&
44653          { ac_try='test -z "$ac_c_werror_flag"
44654                          || test ! -s conftest.err'
44655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44656   (eval $ac_try) 2>&5
44657   ac_status=$?
44658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659   (exit $ac_status); }; } &&
44660          { ac_try='test -s conftest.$ac_objext'
44661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662   (eval $ac_try) 2>&5
44663   ac_status=$?
44664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665   (exit $ac_status); }; }; then
44666   ac_header_compiler=yes
44667 else
44668   echo "$as_me: failed program was:" >&5
44669 sed 's/^/| /' conftest.$ac_ext >&5
44670
44671 ac_header_compiler=no
44672 fi
44673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44675 echo "${ECHO_T}$ac_header_compiler" >&6
44676
44677 # Is the header present?
44678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44680 cat >conftest.$ac_ext <<_ACEOF
44681 /* confdefs.h.  */
44682 _ACEOF
44683 cat confdefs.h >>conftest.$ac_ext
44684 cat >>conftest.$ac_ext <<_ACEOF
44685 /* end confdefs.h.  */
44686 #include <$ac_header>
44687 _ACEOF
44688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44690   ac_status=$?
44691   grep -v '^ *+' conftest.er1 >conftest.err
44692   rm -f conftest.er1
44693   cat conftest.err >&5
44694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695   (exit $ac_status); } >/dev/null; then
44696   if test -s conftest.err; then
44697     ac_cpp_err=$ac_c_preproc_warn_flag
44698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44699   else
44700     ac_cpp_err=
44701   fi
44702 else
44703   ac_cpp_err=yes
44704 fi
44705 if test -z "$ac_cpp_err"; then
44706   ac_header_preproc=yes
44707 else
44708   echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44710
44711   ac_header_preproc=no
44712 fi
44713 rm -f conftest.err conftest.$ac_ext
44714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44715 echo "${ECHO_T}$ac_header_preproc" >&6
44716
44717 # So?  What about this header?
44718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44719   yes:no: )
44720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44724     ac_header_preproc=yes
44725     ;;
44726   no:yes:* )
44727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44739     (
44740       cat <<\_ASBOX
44741 ## ------------------------------------------ ##
44742 ## Report this to the AC_PACKAGE_NAME lists.  ##
44743 ## ------------------------------------------ ##
44744 _ASBOX
44745     ) |
44746       sed "s/^/$as_me: WARNING:     /" >&2
44747     ;;
44748 esac
44749 echo "$as_me:$LINENO: checking for $ac_header" >&5
44750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44752   echo $ECHO_N "(cached) $ECHO_C" >&6
44753 else
44754   eval "$as_ac_Header=\$ac_header_preproc"
44755 fi
44756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44758
44759 fi
44760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44761   cat >>confdefs.h <<_ACEOF
44762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44763 _ACEOF
44764
44765                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44766 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44767                 save_LIBS="$LIBS"
44768                 LIBS="$LIBS -lwrap"
44769                 cat >conftest.$ac_ext <<_ACEOF
44770 /* confdefs.h.  */
44771 _ACEOF
44772 cat confdefs.h >>conftest.$ac_ext
44773 cat >>conftest.$ac_ext <<_ACEOF
44774 /* end confdefs.h.  */
44775
44776 #include <tcpd.h>
44777 int allow_severity = 0;
44778 int deny_severity  = 0;
44779
44780 struct request_info *req;
44781
44782 int
44783 main ()
44784 {
44785
44786 hosts_access(req)
44787
44788   ;
44789   return 0;
44790 }
44791 _ACEOF
44792 rm -f conftest.$ac_objext conftest$ac_exeext
44793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44794   (eval $ac_link) 2>conftest.er1
44795   ac_status=$?
44796   grep -v '^ *+' conftest.er1 >conftest.err
44797   rm -f conftest.er1
44798   cat conftest.err >&5
44799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800   (exit $ac_status); } &&
44801          { ac_try='test -z "$ac_c_werror_flag"
44802                          || test ! -s conftest.err'
44803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44804   (eval $ac_try) 2>&5
44805   ac_status=$?
44806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807   (exit $ac_status); }; } &&
44808          { ac_try='test -s conftest$ac_exeext'
44809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44810   (eval $ac_try) 2>&5
44811   ac_status=$?
44812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813   (exit $ac_status); }; }; then
44814   echo "$as_me:$LINENO: result: -lwrap" >&5
44815 echo "${ECHO_T}-lwrap" >&6
44816                 have_wrappers=yes
44817                 LIBS="$save_LIBS"
44818 else
44819   echo "$as_me: failed program was:" >&5
44820 sed 's/^/| /' conftest.$ac_ext >&5
44821
44822
44823                                 LIBS="$LIBS -lnsl"
44824                 cat >conftest.$ac_ext <<_ACEOF
44825 /* confdefs.h.  */
44826 _ACEOF
44827 cat confdefs.h >>conftest.$ac_ext
44828 cat >>conftest.$ac_ext <<_ACEOF
44829 /* end confdefs.h.  */
44830
44831 #include <tcpd.h>
44832 int allow_severity = 0;
44833 int deny_severity  = 0;
44834
44835 struct request_info *req;
44836
44837 int
44838 main ()
44839 {
44840
44841 hosts_access(req)
44842
44843   ;
44844   return 0;
44845 }
44846 _ACEOF
44847 rm -f conftest.$ac_objext conftest$ac_exeext
44848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44849   (eval $ac_link) 2>conftest.er1
44850   ac_status=$?
44851   grep -v '^ *+' conftest.er1 >conftest.err
44852   rm -f conftest.er1
44853   cat conftest.err >&5
44854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44855   (exit $ac_status); } &&
44856          { ac_try='test -z "$ac_c_werror_flag"
44857                          || test ! -s conftest.err'
44858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44859   (eval $ac_try) 2>&5
44860   ac_status=$?
44861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44862   (exit $ac_status); }; } &&
44863          { ac_try='test -s conftest$ac_exeext'
44864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44865   (eval $ac_try) 2>&5
44866   ac_status=$?
44867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44868   (exit $ac_status); }; }; then
44869   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44870 echo "${ECHO_T}-lwrap -lnsl" >&6
44871                 have_wrappers=yes
44872                 LIBS="$save_LIBS -lnsl"
44873 else
44874   echo "$as_me: failed program was:" >&5
44875 sed 's/^/| /' conftest.$ac_ext >&5
44876
44877
44878                 echo "$as_me:$LINENO: result: no" >&5
44879 echo "${ECHO_T}no" >&6
44880                 have_wrappers=no
44881                 LIBS=$save_LIBS
44882 fi
44883 rm -f conftest.err conftest.$ac_objext \
44884       conftest$ac_exeext conftest.$ac_ext
44885 fi
44886 rm -f conftest.err conftest.$ac_objext \
44887       conftest$ac_exeext conftest.$ac_ext
44888 else
44889   have_wrappers=no
44890 fi
44891
44892 done
44893
44894
44895         if test $have_wrappers = yes ; then
44896
44897 cat >>confdefs.h <<\_ACEOF
44898 #define HAVE_TCPD 1
44899 _ACEOF
44900
44901                 WRAP_LIBS="-lwrap"
44902         elif test $ol_enable_wrappers = yes ; then
44903                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44904 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44905    { (exit 1); exit 1; }; }
44906         else
44907                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44908 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44909                 WRAP_LIBS=""
44910         fi
44911 fi
44912
44913 if test $ol_enable_syslog != no ; then
44914         echo "$as_me:$LINENO: checking for openlog" >&5
44915 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44916 if test "${ac_cv_func_openlog+set}" = set; then
44917   echo $ECHO_N "(cached) $ECHO_C" >&6
44918 else
44919   cat >conftest.$ac_ext <<_ACEOF
44920 /* confdefs.h.  */
44921 _ACEOF
44922 cat confdefs.h >>conftest.$ac_ext
44923 cat >>conftest.$ac_ext <<_ACEOF
44924 /* end confdefs.h.  */
44925 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44927 #define openlog innocuous_openlog
44928
44929 /* System header to define __stub macros and hopefully few prototypes,
44930     which can conflict with char openlog (); below.
44931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44932     <limits.h> exists even on freestanding compilers.  */
44933
44934 #ifdef __STDC__
44935 # include <limits.h>
44936 #else
44937 # include <assert.h>
44938 #endif
44939
44940 #undef openlog
44941
44942 /* Override any gcc2 internal prototype to avoid an error.  */
44943 #ifdef __cplusplus
44944 extern "C"
44945 {
44946 #endif
44947 /* We use char because int might match the return type of a gcc2
44948    builtin and then its argument prototype would still apply.  */
44949 char openlog ();
44950 /* The GNU C library defines this for functions which it implements
44951     to always fail with ENOSYS.  Some functions are actually named
44952     something starting with __ and the normal name is an alias.  */
44953 #if defined (__stub_openlog) || defined (__stub___openlog)
44954 choke me
44955 #else
44956 char (*f) () = openlog;
44957 #endif
44958 #ifdef __cplusplus
44959 }
44960 #endif
44961
44962 int
44963 main ()
44964 {
44965 return f != openlog;
44966   ;
44967   return 0;
44968 }
44969 _ACEOF
44970 rm -f conftest.$ac_objext conftest$ac_exeext
44971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44972   (eval $ac_link) 2>conftest.er1
44973   ac_status=$?
44974   grep -v '^ *+' conftest.er1 >conftest.err
44975   rm -f conftest.er1
44976   cat conftest.err >&5
44977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44978   (exit $ac_status); } &&
44979          { ac_try='test -z "$ac_c_werror_flag"
44980                          || test ! -s conftest.err'
44981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44982   (eval $ac_try) 2>&5
44983   ac_status=$?
44984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44985   (exit $ac_status); }; } &&
44986          { ac_try='test -s conftest$ac_exeext'
44987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44988   (eval $ac_try) 2>&5
44989   ac_status=$?
44990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44991   (exit $ac_status); }; }; then
44992   ac_cv_func_openlog=yes
44993 else
44994   echo "$as_me: failed program was:" >&5
44995 sed 's/^/| /' conftest.$ac_ext >&5
44996
44997 ac_cv_func_openlog=no
44998 fi
44999 rm -f conftest.err conftest.$ac_objext \
45000       conftest$ac_exeext conftest.$ac_ext
45001 fi
45002 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45003 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45004
45005         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45006                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45007 echo "$as_me: error: could not find syslog" >&2;}
45008    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45009         fi
45010         ol_enable_syslog=$ac_cv_func_openlog
45011 fi
45012
45013 ol_link_sql=no
45014 if test $ol_enable_sql != no ; then
45015
45016
45017 for ac_header in sql.h sqlext.h
45018 do
45019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45021   echo "$as_me:$LINENO: checking for $ac_header" >&5
45022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45024   echo $ECHO_N "(cached) $ECHO_C" >&6
45025 fi
45026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45028 else
45029   # Is the header compilable?
45030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45032 cat >conftest.$ac_ext <<_ACEOF
45033 /* confdefs.h.  */
45034 _ACEOF
45035 cat confdefs.h >>conftest.$ac_ext
45036 cat >>conftest.$ac_ext <<_ACEOF
45037 /* end confdefs.h.  */
45038 $ac_includes_default
45039 #include <$ac_header>
45040 _ACEOF
45041 rm -f conftest.$ac_objext
45042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45043   (eval $ac_compile) 2>conftest.er1
45044   ac_status=$?
45045   grep -v '^ *+' conftest.er1 >conftest.err
45046   rm -f conftest.er1
45047   cat conftest.err >&5
45048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45049   (exit $ac_status); } &&
45050          { ac_try='test -z "$ac_c_werror_flag"
45051                          || test ! -s conftest.err'
45052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45053   (eval $ac_try) 2>&5
45054   ac_status=$?
45055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056   (exit $ac_status); }; } &&
45057          { ac_try='test -s conftest.$ac_objext'
45058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45059   (eval $ac_try) 2>&5
45060   ac_status=$?
45061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45062   (exit $ac_status); }; }; then
45063   ac_header_compiler=yes
45064 else
45065   echo "$as_me: failed program was:" >&5
45066 sed 's/^/| /' conftest.$ac_ext >&5
45067
45068 ac_header_compiler=no
45069 fi
45070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45072 echo "${ECHO_T}$ac_header_compiler" >&6
45073
45074 # Is the header present?
45075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45077 cat >conftest.$ac_ext <<_ACEOF
45078 /* confdefs.h.  */
45079 _ACEOF
45080 cat confdefs.h >>conftest.$ac_ext
45081 cat >>conftest.$ac_ext <<_ACEOF
45082 /* end confdefs.h.  */
45083 #include <$ac_header>
45084 _ACEOF
45085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45087   ac_status=$?
45088   grep -v '^ *+' conftest.er1 >conftest.err
45089   rm -f conftest.er1
45090   cat conftest.err >&5
45091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092   (exit $ac_status); } >/dev/null; then
45093   if test -s conftest.err; then
45094     ac_cpp_err=$ac_c_preproc_warn_flag
45095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45096   else
45097     ac_cpp_err=
45098   fi
45099 else
45100   ac_cpp_err=yes
45101 fi
45102 if test -z "$ac_cpp_err"; then
45103   ac_header_preproc=yes
45104 else
45105   echo "$as_me: failed program was:" >&5
45106 sed 's/^/| /' conftest.$ac_ext >&5
45107
45108   ac_header_preproc=no
45109 fi
45110 rm -f conftest.err conftest.$ac_ext
45111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45112 echo "${ECHO_T}$ac_header_preproc" >&6
45113
45114 # So?  What about this header?
45115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45116   yes:no: )
45117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45121     ac_header_preproc=yes
45122     ;;
45123   no:yes:* )
45124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45136     (
45137       cat <<\_ASBOX
45138 ## ------------------------------------------ ##
45139 ## Report this to the AC_PACKAGE_NAME lists.  ##
45140 ## ------------------------------------------ ##
45141 _ASBOX
45142     ) |
45143       sed "s/^/$as_me: WARNING:     /" >&2
45144     ;;
45145 esac
45146 echo "$as_me:$LINENO: checking for $ac_header" >&5
45147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45149   echo $ECHO_N "(cached) $ECHO_C" >&6
45150 else
45151   eval "$as_ac_Header=\$ac_header_preproc"
45152 fi
45153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45155
45156 fi
45157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45158   cat >>confdefs.h <<_ACEOF
45159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45160 _ACEOF
45161
45162 else
45163
45164                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45165 echo "$as_me: error: could not locate SQL headers" >&2;}
45166    { (exit 1); exit 1; }; }
45167
45168 fi
45169
45170 done
45171
45172
45173         sql_LIBS="$LIBS"
45174         LIBS="$LTHREAD_LIBS"
45175
45176         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45177 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45178 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45179   echo $ECHO_N "(cached) $ECHO_C" >&6
45180 else
45181   ac_check_lib_save_LIBS=$LIBS
45182 LIBS="-liodbc  $LIBS"
45183 cat >conftest.$ac_ext <<_ACEOF
45184 /* confdefs.h.  */
45185 _ACEOF
45186 cat confdefs.h >>conftest.$ac_ext
45187 cat >>conftest.$ac_ext <<_ACEOF
45188 /* end confdefs.h.  */
45189
45190 /* Override any gcc2 internal prototype to avoid an error.  */
45191 #ifdef __cplusplus
45192 extern "C"
45193 #endif
45194 /* We use char because int might match the return type of a gcc2
45195    builtin and then its argument prototype would still apply.  */
45196 char SQLDriverConnect ();
45197 int
45198 main ()
45199 {
45200 SQLDriverConnect ();
45201   ;
45202   return 0;
45203 }
45204 _ACEOF
45205 rm -f conftest.$ac_objext conftest$ac_exeext
45206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45207   (eval $ac_link) 2>conftest.er1
45208   ac_status=$?
45209   grep -v '^ *+' conftest.er1 >conftest.err
45210   rm -f conftest.er1
45211   cat conftest.err >&5
45212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45213   (exit $ac_status); } &&
45214          { ac_try='test -z "$ac_c_werror_flag"
45215                          || test ! -s conftest.err'
45216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45217   (eval $ac_try) 2>&5
45218   ac_status=$?
45219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45220   (exit $ac_status); }; } &&
45221          { ac_try='test -s conftest$ac_exeext'
45222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45223   (eval $ac_try) 2>&5
45224   ac_status=$?
45225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45226   (exit $ac_status); }; }; then
45227   ac_cv_lib_iodbc_SQLDriverConnect=yes
45228 else
45229   echo "$as_me: failed program was:" >&5
45230 sed 's/^/| /' conftest.$ac_ext >&5
45231
45232 ac_cv_lib_iodbc_SQLDriverConnect=no
45233 fi
45234 rm -f conftest.err conftest.$ac_objext \
45235       conftest$ac_exeext conftest.$ac_ext
45236 LIBS=$ac_check_lib_save_LIBS
45237 fi
45238 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45239 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45240 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45241   have_iodbc=yes
45242 else
45243   have_iodbc=no
45244 fi
45245
45246         if test $have_iodbc = yes ; then
45247                 ol_link_sql="-liodbc"
45248         else
45249                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45250 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45251 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45252   echo $ECHO_N "(cached) $ECHO_C" >&6
45253 else
45254   ac_check_lib_save_LIBS=$LIBS
45255 LIBS="-lodbc  $LIBS"
45256 cat >conftest.$ac_ext <<_ACEOF
45257 /* confdefs.h.  */
45258 _ACEOF
45259 cat confdefs.h >>conftest.$ac_ext
45260 cat >>conftest.$ac_ext <<_ACEOF
45261 /* end confdefs.h.  */
45262
45263 /* Override any gcc2 internal prototype to avoid an error.  */
45264 #ifdef __cplusplus
45265 extern "C"
45266 #endif
45267 /* We use char because int might match the return type of a gcc2
45268    builtin and then its argument prototype would still apply.  */
45269 char SQLDriverConnect ();
45270 int
45271 main ()
45272 {
45273 SQLDriverConnect ();
45274   ;
45275   return 0;
45276 }
45277 _ACEOF
45278 rm -f conftest.$ac_objext conftest$ac_exeext
45279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45280   (eval $ac_link) 2>conftest.er1
45281   ac_status=$?
45282   grep -v '^ *+' conftest.er1 >conftest.err
45283   rm -f conftest.er1
45284   cat conftest.err >&5
45285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45286   (exit $ac_status); } &&
45287          { ac_try='test -z "$ac_c_werror_flag"
45288                          || test ! -s conftest.err'
45289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45290   (eval $ac_try) 2>&5
45291   ac_status=$?
45292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45293   (exit $ac_status); }; } &&
45294          { ac_try='test -s conftest$ac_exeext'
45295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45296   (eval $ac_try) 2>&5
45297   ac_status=$?
45298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299   (exit $ac_status); }; }; then
45300   ac_cv_lib_odbc_SQLDriverConnect=yes
45301 else
45302   echo "$as_me: failed program was:" >&5
45303 sed 's/^/| /' conftest.$ac_ext >&5
45304
45305 ac_cv_lib_odbc_SQLDriverConnect=no
45306 fi
45307 rm -f conftest.err conftest.$ac_objext \
45308       conftest$ac_exeext conftest.$ac_ext
45309 LIBS=$ac_check_lib_save_LIBS
45310 fi
45311 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45312 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45313 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45314   have_odbc=yes
45315 else
45316   have_odbc=no
45317 fi
45318
45319                 if test $have_odbc = yes ; then
45320                         ol_link_sql="-lodbc"
45321                 fi
45322         fi
45323
45324         LIBS="$sql_LIBS"
45325
45326         if test $ol_link_sql != no ; then
45327                 SLAPD_SQL_LIBS="$ol_link_sql"
45328
45329         elif test $ol_enable_sql != auto ; then
45330                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45331 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45332    { (exit 1); exit 1; }; }
45333         fi
45334 fi
45335
45336 WITH_SASL=no
45337 ol_link_sasl=no
45338 ol_link_spasswd=no
45339 if test $ol_with_cyrus_sasl != no ; then
45340
45341
45342 for ac_header in sasl/sasl.h sasl.h
45343 do
45344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45346   echo "$as_me:$LINENO: checking for $ac_header" >&5
45347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45349   echo $ECHO_N "(cached) $ECHO_C" >&6
45350 fi
45351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45353 else
45354   # Is the header compilable?
45355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45357 cat >conftest.$ac_ext <<_ACEOF
45358 /* confdefs.h.  */
45359 _ACEOF
45360 cat confdefs.h >>conftest.$ac_ext
45361 cat >>conftest.$ac_ext <<_ACEOF
45362 /* end confdefs.h.  */
45363 $ac_includes_default
45364 #include <$ac_header>
45365 _ACEOF
45366 rm -f conftest.$ac_objext
45367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45368   (eval $ac_compile) 2>conftest.er1
45369   ac_status=$?
45370   grep -v '^ *+' conftest.er1 >conftest.err
45371   rm -f conftest.er1
45372   cat conftest.err >&5
45373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45374   (exit $ac_status); } &&
45375          { ac_try='test -z "$ac_c_werror_flag"
45376                          || test ! -s conftest.err'
45377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45378   (eval $ac_try) 2>&5
45379   ac_status=$?
45380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45381   (exit $ac_status); }; } &&
45382          { ac_try='test -s conftest.$ac_objext'
45383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45384   (eval $ac_try) 2>&5
45385   ac_status=$?
45386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45387   (exit $ac_status); }; }; then
45388   ac_header_compiler=yes
45389 else
45390   echo "$as_me: failed program was:" >&5
45391 sed 's/^/| /' conftest.$ac_ext >&5
45392
45393 ac_header_compiler=no
45394 fi
45395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45397 echo "${ECHO_T}$ac_header_compiler" >&6
45398
45399 # Is the header present?
45400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45402 cat >conftest.$ac_ext <<_ACEOF
45403 /* confdefs.h.  */
45404 _ACEOF
45405 cat confdefs.h >>conftest.$ac_ext
45406 cat >>conftest.$ac_ext <<_ACEOF
45407 /* end confdefs.h.  */
45408 #include <$ac_header>
45409 _ACEOF
45410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45412   ac_status=$?
45413   grep -v '^ *+' conftest.er1 >conftest.err
45414   rm -f conftest.er1
45415   cat conftest.err >&5
45416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45417   (exit $ac_status); } >/dev/null; then
45418   if test -s conftest.err; then
45419     ac_cpp_err=$ac_c_preproc_warn_flag
45420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45421   else
45422     ac_cpp_err=
45423   fi
45424 else
45425   ac_cpp_err=yes
45426 fi
45427 if test -z "$ac_cpp_err"; then
45428   ac_header_preproc=yes
45429 else
45430   echo "$as_me: failed program was:" >&5
45431 sed 's/^/| /' conftest.$ac_ext >&5
45432
45433   ac_header_preproc=no
45434 fi
45435 rm -f conftest.err conftest.$ac_ext
45436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45437 echo "${ECHO_T}$ac_header_preproc" >&6
45438
45439 # So?  What about this header?
45440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45441   yes:no: )
45442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45446     ac_header_preproc=yes
45447     ;;
45448   no:yes:* )
45449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45461     (
45462       cat <<\_ASBOX
45463 ## ------------------------------------------ ##
45464 ## Report this to the AC_PACKAGE_NAME lists.  ##
45465 ## ------------------------------------------ ##
45466 _ASBOX
45467     ) |
45468       sed "s/^/$as_me: WARNING:     /" >&2
45469     ;;
45470 esac
45471 echo "$as_me:$LINENO: checking for $ac_header" >&5
45472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45474   echo $ECHO_N "(cached) $ECHO_C" >&6
45475 else
45476   eval "$as_ac_Header=\$ac_header_preproc"
45477 fi
45478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45480
45481 fi
45482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45483   cat >>confdefs.h <<_ACEOF
45484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45485 _ACEOF
45486
45487 fi
45488
45489 done
45490
45491
45492         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45493                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45494 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45495 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45496   echo $ECHO_N "(cached) $ECHO_C" >&6
45497 else
45498   ac_check_lib_save_LIBS=$LIBS
45499 LIBS="-lsasl2  $LIBS"
45500 cat >conftest.$ac_ext <<_ACEOF
45501 /* confdefs.h.  */
45502 _ACEOF
45503 cat confdefs.h >>conftest.$ac_ext
45504 cat >>conftest.$ac_ext <<_ACEOF
45505 /* end confdefs.h.  */
45506
45507 /* Override any gcc2 internal prototype to avoid an error.  */
45508 #ifdef __cplusplus
45509 extern "C"
45510 #endif
45511 /* We use char because int might match the return type of a gcc2
45512    builtin and then its argument prototype would still apply.  */
45513 char sasl_client_init ();
45514 int
45515 main ()
45516 {
45517 sasl_client_init ();
45518   ;
45519   return 0;
45520 }
45521 _ACEOF
45522 rm -f conftest.$ac_objext conftest$ac_exeext
45523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45524   (eval $ac_link) 2>conftest.er1
45525   ac_status=$?
45526   grep -v '^ *+' conftest.er1 >conftest.err
45527   rm -f conftest.er1
45528   cat conftest.err >&5
45529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45530   (exit $ac_status); } &&
45531          { ac_try='test -z "$ac_c_werror_flag"
45532                          || test ! -s conftest.err'
45533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45534   (eval $ac_try) 2>&5
45535   ac_status=$?
45536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45537   (exit $ac_status); }; } &&
45538          { ac_try='test -s conftest$ac_exeext'
45539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45540   (eval $ac_try) 2>&5
45541   ac_status=$?
45542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45543   (exit $ac_status); }; }; then
45544   ac_cv_lib_sasl2_sasl_client_init=yes
45545 else
45546   echo "$as_me: failed program was:" >&5
45547 sed 's/^/| /' conftest.$ac_ext >&5
45548
45549 ac_cv_lib_sasl2_sasl_client_init=no
45550 fi
45551 rm -f conftest.err conftest.$ac_objext \
45552       conftest$ac_exeext conftest.$ac_ext
45553 LIBS=$ac_check_lib_save_LIBS
45554 fi
45555 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45556 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45557 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45558   ol_link_sasl="-lsasl2"
45559 else
45560   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45561 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45562 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45563   echo $ECHO_N "(cached) $ECHO_C" >&6
45564 else
45565   ac_check_lib_save_LIBS=$LIBS
45566 LIBS="-lsasl  $LIBS"
45567 cat >conftest.$ac_ext <<_ACEOF
45568 /* confdefs.h.  */
45569 _ACEOF
45570 cat confdefs.h >>conftest.$ac_ext
45571 cat >>conftest.$ac_ext <<_ACEOF
45572 /* end confdefs.h.  */
45573
45574 /* Override any gcc2 internal prototype to avoid an error.  */
45575 #ifdef __cplusplus
45576 extern "C"
45577 #endif
45578 /* We use char because int might match the return type of a gcc2
45579    builtin and then its argument prototype would still apply.  */
45580 char sasl_client_init ();
45581 int
45582 main ()
45583 {
45584 sasl_client_init ();
45585   ;
45586   return 0;
45587 }
45588 _ACEOF
45589 rm -f conftest.$ac_objext conftest$ac_exeext
45590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45591   (eval $ac_link) 2>conftest.er1
45592   ac_status=$?
45593   grep -v '^ *+' conftest.er1 >conftest.err
45594   rm -f conftest.er1
45595   cat conftest.err >&5
45596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45597   (exit $ac_status); } &&
45598          { ac_try='test -z "$ac_c_werror_flag"
45599                          || test ! -s conftest.err'
45600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45601   (eval $ac_try) 2>&5
45602   ac_status=$?
45603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604   (exit $ac_status); }; } &&
45605          { ac_try='test -s conftest$ac_exeext'
45606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45607   (eval $ac_try) 2>&5
45608   ac_status=$?
45609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610   (exit $ac_status); }; }; then
45611   ac_cv_lib_sasl_sasl_client_init=yes
45612 else
45613   echo "$as_me: failed program was:" >&5
45614 sed 's/^/| /' conftest.$ac_ext >&5
45615
45616 ac_cv_lib_sasl_sasl_client_init=no
45617 fi
45618 rm -f conftest.err conftest.$ac_objext \
45619       conftest$ac_exeext conftest.$ac_ext
45620 LIBS=$ac_check_lib_save_LIBS
45621 fi
45622 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45623 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45624 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45625   ol_link_sasl="-lsasl"
45626 fi
45627
45628 fi
45629
45630         fi
45631
45632         if test $ol_link_sasl = no ; then
45633                 if test $ol_with_cyrus_sasl != auto ; then
45634                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45635 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45636    { (exit 1); exit 1; }; }
45637                 else
45638                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45639 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45640                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45641 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45642                         if test $ol_link_tls = no ; then
45643                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45644 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45645                         fi
45646                 fi
45647         else
45648                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45649 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45650 if test "${ol_cv_sasl_compat+set}" = set; then
45651   echo $ECHO_N "(cached) $ECHO_C" >&6
45652 else
45653
45654         cat >conftest.$ac_ext <<_ACEOF
45655 /* confdefs.h.  */
45656 _ACEOF
45657 cat confdefs.h >>conftest.$ac_ext
45658 cat >>conftest.$ac_ext <<_ACEOF
45659 /* end confdefs.h.  */
45660
45661 #ifdef HAVE_SASL_SASL_H
45662 #include <sasl/sasl.h>
45663 #else
45664 #include <sasl.h>
45665 #endif
45666
45667 /* Require 2.1.15+ */
45668 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45669         char *__sasl_compat = "2.2+ or better okay (we guess)";
45670 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45671         && SASL_VERSION_STEP >=15
45672         char *__sasl_compat = "2.1.15+ or better okay";
45673 #endif
45674
45675 _ACEOF
45676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45677   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45678   ol_cv_sasl_compat=yes
45679 else
45680   ol_cv_sasl_compat=no
45681 fi
45682 rm -f conftest*
45683
45684 fi
45685 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45686 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45687
45688                 if test $ol_cv_sasl_compat = no ; then
45689                         ol_link_sasl=no
45690                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45691 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45692    { (exit 1); exit 1; }; }
45693                 fi
45694
45695
45696 cat >>confdefs.h <<\_ACEOF
45697 #define HAVE_CYRUS_SASL 1
45698 _ACEOF
45699
45700                 SASL_LIBS="$ol_link_sasl"
45701                 if test $ol_enable_spasswd != no ; then
45702                         ol_link_spasswd=yes
45703                 fi
45704
45705                 ac_save_LIBS="$LIBS"
45706                 LIBS="$LIBS $ol_link_sasl"
45707                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45708 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45709 if test "${ac_cv_func_sasl_version+set}" = set; then
45710   echo $ECHO_N "(cached) $ECHO_C" >&6
45711 else
45712   cat >conftest.$ac_ext <<_ACEOF
45713 /* confdefs.h.  */
45714 _ACEOF
45715 cat confdefs.h >>conftest.$ac_ext
45716 cat >>conftest.$ac_ext <<_ACEOF
45717 /* end confdefs.h.  */
45718 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45720 #define sasl_version innocuous_sasl_version
45721
45722 /* System header to define __stub macros and hopefully few prototypes,
45723     which can conflict with char sasl_version (); below.
45724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45725     <limits.h> exists even on freestanding compilers.  */
45726
45727 #ifdef __STDC__
45728 # include <limits.h>
45729 #else
45730 # include <assert.h>
45731 #endif
45732
45733 #undef sasl_version
45734
45735 /* Override any gcc2 internal prototype to avoid an error.  */
45736 #ifdef __cplusplus
45737 extern "C"
45738 {
45739 #endif
45740 /* We use char because int might match the return type of a gcc2
45741    builtin and then its argument prototype would still apply.  */
45742 char sasl_version ();
45743 /* The GNU C library defines this for functions which it implements
45744     to always fail with ENOSYS.  Some functions are actually named
45745     something starting with __ and the normal name is an alias.  */
45746 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45747 choke me
45748 #else
45749 char (*f) () = sasl_version;
45750 #endif
45751 #ifdef __cplusplus
45752 }
45753 #endif
45754
45755 int
45756 main ()
45757 {
45758 return f != sasl_version;
45759   ;
45760   return 0;
45761 }
45762 _ACEOF
45763 rm -f conftest.$ac_objext conftest$ac_exeext
45764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45765   (eval $ac_link) 2>conftest.er1
45766   ac_status=$?
45767   grep -v '^ *+' conftest.er1 >conftest.err
45768   rm -f conftest.er1
45769   cat conftest.err >&5
45770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771   (exit $ac_status); } &&
45772          { ac_try='test -z "$ac_c_werror_flag"
45773                          || test ! -s conftest.err'
45774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45775   (eval $ac_try) 2>&5
45776   ac_status=$?
45777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45778   (exit $ac_status); }; } &&
45779          { ac_try='test -s conftest$ac_exeext'
45780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45781   (eval $ac_try) 2>&5
45782   ac_status=$?
45783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45784   (exit $ac_status); }; }; then
45785   ac_cv_func_sasl_version=yes
45786 else
45787   echo "$as_me: failed program was:" >&5
45788 sed 's/^/| /' conftest.$ac_ext >&5
45789
45790 ac_cv_func_sasl_version=no
45791 fi
45792 rm -f conftest.err conftest.$ac_objext \
45793       conftest$ac_exeext conftest.$ac_ext
45794 fi
45795 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45796 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45797 if test $ac_cv_func_sasl_version = yes; then
45798
45799 cat >>confdefs.h <<\_ACEOF
45800 #define HAVE_SASL_VERSION 1
45801 _ACEOF
45802
45803 fi
45804
45805                 LIBS="$ac_save_LIBS"
45806
45807                 WITH_SASL=yes
45808         fi
45809
45810 else
45811         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45812 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45813         if test $ol_link_tls = no ; then
45814                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45815 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45816         fi
45817 fi
45818
45819 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45820         dev=no
45821         if test -r /dev/urandom ; then
45822                 dev="/dev/urandom";
45823         elif test -r /idev/urandom ; then
45824                 dev="/idev/urandom";
45825         elif test -r /dev/srandom ; then
45826                 dev="/dev/srandom";
45827         elif test -r /dev/random ; then
45828                 dev="/dev/random";
45829         elif test -r /idev/random ; then
45830                 dev="/idev/random";
45831         fi
45832
45833         if test $dev != no ; then
45834
45835 cat >>confdefs.h <<_ACEOF
45836 #define URANDOM_DEVICE "$dev"
45837 _ACEOF
45838
45839         fi
45840 fi
45841
45842 ol_link_fetch=no
45843 if test $ol_with_fetch != no ; then
45844         ol_LIBS=$LIBS
45845 LIBS="-lfetch -lcom_err $LIBS"
45846 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45847 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45848 if test "${ol_cv_lib_fetch+set}" = set; then
45849   echo $ECHO_N "(cached) $ECHO_C" >&6
45850 else
45851
45852         cat >conftest.$ac_ext <<_ACEOF
45853 /* confdefs.h.  */
45854 _ACEOF
45855 cat confdefs.h >>conftest.$ac_ext
45856 cat >>conftest.$ac_ext <<_ACEOF
45857 /* end confdefs.h.  */
45858
45859 #include <sys/param.h>
45860 #include <stdio.h>
45861 #include <fetch.h>
45862 int
45863 main ()
45864 {
45865 struct url *u = fetchParseURL("file:///");
45866   ;
45867   return 0;
45868 }
45869 _ACEOF
45870 rm -f conftest.$ac_objext conftest$ac_exeext
45871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45872   (eval $ac_link) 2>conftest.er1
45873   ac_status=$?
45874   grep -v '^ *+' conftest.er1 >conftest.err
45875   rm -f conftest.er1
45876   cat conftest.err >&5
45877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45878   (exit $ac_status); } &&
45879          { ac_try='test -z "$ac_c_werror_flag"
45880                          || test ! -s conftest.err'
45881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45882   (eval $ac_try) 2>&5
45883   ac_status=$?
45884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45885   (exit $ac_status); }; } &&
45886          { ac_try='test -s conftest$ac_exeext'
45887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45888   (eval $ac_try) 2>&5
45889   ac_status=$?
45890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45891   (exit $ac_status); }; }; then
45892   ol_cv_lib_fetch=yes
45893 else
45894   echo "$as_me: failed program was:" >&5
45895 sed 's/^/| /' conftest.$ac_ext >&5
45896
45897 ol_cv_lib_fetch=no
45898 fi
45899 rm -f conftest.err conftest.$ac_objext \
45900       conftest$ac_exeext conftest.$ac_ext
45901 fi
45902 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45903 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45904 LIBS=$ol_LIBS
45905 if test $ol_cv_lib_fetch != no ; then
45906         ol_link_fetch="-lfetch -lcom_err"
45907
45908 cat >>confdefs.h <<\_ACEOF
45909 #define HAVE_FETCH 1
45910 _ACEOF
45911
45912 fi
45913
45914
45915         if test $ol_cv_lib_fetch != no ; then
45916                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45917                 ol_link_fetch=freebsd
45918
45919         elif test $ol_with_fetch != auto ; then
45920                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45921 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45922    { (exit 1); exit 1; }; }
45923         fi
45924 fi
45925
45926 if test $ol_enable_crypt != no ; then
45927         save_LIBS="$LIBS"
45928         LIBS="$TLS_LIBS $LIBS"
45929
45930         echo "$as_me:$LINENO: checking for crypt" >&5
45931 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45932 if test "${ac_cv_func_crypt+set}" = set; then
45933   echo $ECHO_N "(cached) $ECHO_C" >&6
45934 else
45935   cat >conftest.$ac_ext <<_ACEOF
45936 /* confdefs.h.  */
45937 _ACEOF
45938 cat confdefs.h >>conftest.$ac_ext
45939 cat >>conftest.$ac_ext <<_ACEOF
45940 /* end confdefs.h.  */
45941 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45943 #define crypt innocuous_crypt
45944
45945 /* System header to define __stub macros and hopefully few prototypes,
45946     which can conflict with char crypt (); below.
45947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45948     <limits.h> exists even on freestanding compilers.  */
45949
45950 #ifdef __STDC__
45951 # include <limits.h>
45952 #else
45953 # include <assert.h>
45954 #endif
45955
45956 #undef crypt
45957
45958 /* Override any gcc2 internal prototype to avoid an error.  */
45959 #ifdef __cplusplus
45960 extern "C"
45961 {
45962 #endif
45963 /* We use char because int might match the return type of a gcc2
45964    builtin and then its argument prototype would still apply.  */
45965 char crypt ();
45966 /* The GNU C library defines this for functions which it implements
45967     to always fail with ENOSYS.  Some functions are actually named
45968     something starting with __ and the normal name is an alias.  */
45969 #if defined (__stub_crypt) || defined (__stub___crypt)
45970 choke me
45971 #else
45972 char (*f) () = crypt;
45973 #endif
45974 #ifdef __cplusplus
45975 }
45976 #endif
45977
45978 int
45979 main ()
45980 {
45981 return f != crypt;
45982   ;
45983   return 0;
45984 }
45985 _ACEOF
45986 rm -f conftest.$ac_objext conftest$ac_exeext
45987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45988   (eval $ac_link) 2>conftest.er1
45989   ac_status=$?
45990   grep -v '^ *+' conftest.er1 >conftest.err
45991   rm -f conftest.er1
45992   cat conftest.err >&5
45993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45994   (exit $ac_status); } &&
45995          { ac_try='test -z "$ac_c_werror_flag"
45996                          || test ! -s conftest.err'
45997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45998   (eval $ac_try) 2>&5
45999   ac_status=$?
46000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46001   (exit $ac_status); }; } &&
46002          { ac_try='test -s conftest$ac_exeext'
46003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46004   (eval $ac_try) 2>&5
46005   ac_status=$?
46006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46007   (exit $ac_status); }; }; then
46008   ac_cv_func_crypt=yes
46009 else
46010   echo "$as_me: failed program was:" >&5
46011 sed 's/^/| /' conftest.$ac_ext >&5
46012
46013 ac_cv_func_crypt=no
46014 fi
46015 rm -f conftest.err conftest.$ac_objext \
46016       conftest$ac_exeext conftest.$ac_ext
46017 fi
46018 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46019 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46020 if test $ac_cv_func_crypt = yes; then
46021   have_crypt=yes
46022 else
46023
46024                 LIBS="$save_LIBS"
46025                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46026 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46027 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46028   echo $ECHO_N "(cached) $ECHO_C" >&6
46029 else
46030   ac_check_lib_save_LIBS=$LIBS
46031 LIBS="-lcrypt  $LIBS"
46032 cat >conftest.$ac_ext <<_ACEOF
46033 /* confdefs.h.  */
46034 _ACEOF
46035 cat confdefs.h >>conftest.$ac_ext
46036 cat >>conftest.$ac_ext <<_ACEOF
46037 /* end confdefs.h.  */
46038
46039 /* Override any gcc2 internal prototype to avoid an error.  */
46040 #ifdef __cplusplus
46041 extern "C"
46042 #endif
46043 /* We use char because int might match the return type of a gcc2
46044    builtin and then its argument prototype would still apply.  */
46045 char crypt ();
46046 int
46047 main ()
46048 {
46049 crypt ();
46050   ;
46051   return 0;
46052 }
46053 _ACEOF
46054 rm -f conftest.$ac_objext conftest$ac_exeext
46055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46056   (eval $ac_link) 2>conftest.er1
46057   ac_status=$?
46058   grep -v '^ *+' conftest.er1 >conftest.err
46059   rm -f conftest.er1
46060   cat conftest.err >&5
46061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46062   (exit $ac_status); } &&
46063          { ac_try='test -z "$ac_c_werror_flag"
46064                          || test ! -s conftest.err'
46065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46066   (eval $ac_try) 2>&5
46067   ac_status=$?
46068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46069   (exit $ac_status); }; } &&
46070          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
46076   ac_cv_lib_crypt_crypt=yes
46077 else
46078   echo "$as_me: failed program was:" >&5
46079 sed 's/^/| /' conftest.$ac_ext >&5
46080
46081 ac_cv_lib_crypt_crypt=no
46082 fi
46083 rm -f conftest.err conftest.$ac_objext \
46084       conftest$ac_exeext conftest.$ac_ext
46085 LIBS=$ac_check_lib_save_LIBS
46086 fi
46087 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46088 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46089 if test $ac_cv_lib_crypt_crypt = yes; then
46090   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46091                         have_crypt=yes
46092 else
46093   have_crypt=no
46094 fi
46095
46096 fi
46097
46098
46099         LIBS="$save_LIBS"
46100
46101         if test $have_crypt = yes ; then
46102
46103 cat >>confdefs.h <<\_ACEOF
46104 #define HAVE_CRYPT 1
46105 _ACEOF
46106
46107         else
46108                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46109 echo "$as_me: WARNING: could not find crypt" >&2;}
46110                 if test $ol_enable_crypt = yes ; then
46111                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46112 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46113    { (exit 1); exit 1; }; }
46114                 fi
46115
46116                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46117 echo "$as_me: WARNING: disabling crypt support" >&2;}
46118                 ol_enable_crypt=no
46119         fi
46120 fi
46121
46122 if test $ol_enable_proctitle != no ; then
46123         echo "$as_me:$LINENO: checking for setproctitle" >&5
46124 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46125 if test "${ac_cv_func_setproctitle+set}" = set; then
46126   echo $ECHO_N "(cached) $ECHO_C" >&6
46127 else
46128   cat >conftest.$ac_ext <<_ACEOF
46129 /* confdefs.h.  */
46130 _ACEOF
46131 cat confdefs.h >>conftest.$ac_ext
46132 cat >>conftest.$ac_ext <<_ACEOF
46133 /* end confdefs.h.  */
46134 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46136 #define setproctitle innocuous_setproctitle
46137
46138 /* System header to define __stub macros and hopefully few prototypes,
46139     which can conflict with char setproctitle (); below.
46140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46141     <limits.h> exists even on freestanding compilers.  */
46142
46143 #ifdef __STDC__
46144 # include <limits.h>
46145 #else
46146 # include <assert.h>
46147 #endif
46148
46149 #undef setproctitle
46150
46151 /* Override any gcc2 internal prototype to avoid an error.  */
46152 #ifdef __cplusplus
46153 extern "C"
46154 {
46155 #endif
46156 /* We use char because int might match the return type of a gcc2
46157    builtin and then its argument prototype would still apply.  */
46158 char setproctitle ();
46159 /* The GNU C library defines this for functions which it implements
46160     to always fail with ENOSYS.  Some functions are actually named
46161     something starting with __ and the normal name is an alias.  */
46162 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46163 choke me
46164 #else
46165 char (*f) () = setproctitle;
46166 #endif
46167 #ifdef __cplusplus
46168 }
46169 #endif
46170
46171 int
46172 main ()
46173 {
46174 return f != setproctitle;
46175   ;
46176   return 0;
46177 }
46178 _ACEOF
46179 rm -f conftest.$ac_objext conftest$ac_exeext
46180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46181   (eval $ac_link) 2>conftest.er1
46182   ac_status=$?
46183   grep -v '^ *+' conftest.er1 >conftest.err
46184   rm -f conftest.er1
46185   cat conftest.err >&5
46186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46187   (exit $ac_status); } &&
46188          { ac_try='test -z "$ac_c_werror_flag"
46189                          || test ! -s conftest.err'
46190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46191   (eval $ac_try) 2>&5
46192   ac_status=$?
46193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194   (exit $ac_status); }; } &&
46195          { ac_try='test -s conftest$ac_exeext'
46196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46197   (eval $ac_try) 2>&5
46198   ac_status=$?
46199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46200   (exit $ac_status); }; }; then
46201   ac_cv_func_setproctitle=yes
46202 else
46203   echo "$as_me: failed program was:" >&5
46204 sed 's/^/| /' conftest.$ac_ext >&5
46205
46206 ac_cv_func_setproctitle=no
46207 fi
46208 rm -f conftest.err conftest.$ac_objext \
46209       conftest$ac_exeext conftest.$ac_ext
46210 fi
46211 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46212 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46213 if test $ac_cv_func_setproctitle = yes; then
46214   have_setproctitle=yes
46215 else
46216
46217                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46218 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46219 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46220   echo $ECHO_N "(cached) $ECHO_C" >&6
46221 else
46222   ac_check_lib_save_LIBS=$LIBS
46223 LIBS="-lutil  $LIBS"
46224 cat >conftest.$ac_ext <<_ACEOF
46225 /* confdefs.h.  */
46226 _ACEOF
46227 cat confdefs.h >>conftest.$ac_ext
46228 cat >>conftest.$ac_ext <<_ACEOF
46229 /* end confdefs.h.  */
46230
46231 /* Override any gcc2 internal prototype to avoid an error.  */
46232 #ifdef __cplusplus
46233 extern "C"
46234 #endif
46235 /* We use char because int might match the return type of a gcc2
46236    builtin and then its argument prototype would still apply.  */
46237 char setproctitle ();
46238 int
46239 main ()
46240 {
46241 setproctitle ();
46242   ;
46243   return 0;
46244 }
46245 _ACEOF
46246 rm -f conftest.$ac_objext conftest$ac_exeext
46247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46248   (eval $ac_link) 2>conftest.er1
46249   ac_status=$?
46250   grep -v '^ *+' conftest.er1 >conftest.err
46251   rm -f conftest.er1
46252   cat conftest.err >&5
46253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46254   (exit $ac_status); } &&
46255          { ac_try='test -z "$ac_c_werror_flag"
46256                          || test ! -s conftest.err'
46257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46258   (eval $ac_try) 2>&5
46259   ac_status=$?
46260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261   (exit $ac_status); }; } &&
46262          { ac_try='test -s conftest$ac_exeext'
46263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264   (eval $ac_try) 2>&5
46265   ac_status=$?
46266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267   (exit $ac_status); }; }; then
46268   ac_cv_lib_util_setproctitle=yes
46269 else
46270   echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46272
46273 ac_cv_lib_util_setproctitle=no
46274 fi
46275 rm -f conftest.err conftest.$ac_objext \
46276       conftest$ac_exeext conftest.$ac_ext
46277 LIBS=$ac_check_lib_save_LIBS
46278 fi
46279 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46280 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46281 if test $ac_cv_lib_util_setproctitle = yes; then
46282   have_setproctitle=yes
46283                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46284 else
46285   have_setproctitle=no
46286                         case $LIBOBJS in
46287     "setproctitle.$ac_objext"   | \
46288   *" setproctitle.$ac_objext"   | \
46289     "setproctitle.$ac_objext "* | \
46290   *" setproctitle.$ac_objext "* ) ;;
46291   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46292 esac
46293
46294                         LIBSRCS="$LIBSRCS setproctitle.c"
46295 fi
46296
46297 fi
46298
46299
46300         if test $have_setproctitle = yes ; then
46301
46302 cat >>confdefs.h <<\_ACEOF
46303 #define HAVE_SETPROCTITLE 1
46304 _ACEOF
46305
46306         fi
46307 fi
46308
46309 if test $ol_enable_slp != no ; then
46310
46311 for ac_header in slp.h
46312 do
46313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46315   echo "$as_me:$LINENO: checking for $ac_header" >&5
46316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46318   echo $ECHO_N "(cached) $ECHO_C" >&6
46319 fi
46320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46322 else
46323   # Is the header compilable?
46324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46326 cat >conftest.$ac_ext <<_ACEOF
46327 /* confdefs.h.  */
46328 _ACEOF
46329 cat confdefs.h >>conftest.$ac_ext
46330 cat >>conftest.$ac_ext <<_ACEOF
46331 /* end confdefs.h.  */
46332 $ac_includes_default
46333 #include <$ac_header>
46334 _ACEOF
46335 rm -f conftest.$ac_objext
46336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46337   (eval $ac_compile) 2>conftest.er1
46338   ac_status=$?
46339   grep -v '^ *+' conftest.er1 >conftest.err
46340   rm -f conftest.er1
46341   cat conftest.err >&5
46342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46343   (exit $ac_status); } &&
46344          { ac_try='test -z "$ac_c_werror_flag"
46345                          || test ! -s conftest.err'
46346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46347   (eval $ac_try) 2>&5
46348   ac_status=$?
46349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46350   (exit $ac_status); }; } &&
46351          { ac_try='test -s conftest.$ac_objext'
46352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46353   (eval $ac_try) 2>&5
46354   ac_status=$?
46355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356   (exit $ac_status); }; }; then
46357   ac_header_compiler=yes
46358 else
46359   echo "$as_me: failed program was:" >&5
46360 sed 's/^/| /' conftest.$ac_ext >&5
46361
46362 ac_header_compiler=no
46363 fi
46364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46366 echo "${ECHO_T}$ac_header_compiler" >&6
46367
46368 # Is the header present?
46369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46371 cat >conftest.$ac_ext <<_ACEOF
46372 /* confdefs.h.  */
46373 _ACEOF
46374 cat confdefs.h >>conftest.$ac_ext
46375 cat >>conftest.$ac_ext <<_ACEOF
46376 /* end confdefs.h.  */
46377 #include <$ac_header>
46378 _ACEOF
46379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46381   ac_status=$?
46382   grep -v '^ *+' conftest.er1 >conftest.err
46383   rm -f conftest.er1
46384   cat conftest.err >&5
46385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46386   (exit $ac_status); } >/dev/null; then
46387   if test -s conftest.err; then
46388     ac_cpp_err=$ac_c_preproc_warn_flag
46389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46390   else
46391     ac_cpp_err=
46392   fi
46393 else
46394   ac_cpp_err=yes
46395 fi
46396 if test -z "$ac_cpp_err"; then
46397   ac_header_preproc=yes
46398 else
46399   echo "$as_me: failed program was:" >&5
46400 sed 's/^/| /' conftest.$ac_ext >&5
46401
46402   ac_header_preproc=no
46403 fi
46404 rm -f conftest.err conftest.$ac_ext
46405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46406 echo "${ECHO_T}$ac_header_preproc" >&6
46407
46408 # So?  What about this header?
46409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46410   yes:no: )
46411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46415     ac_header_preproc=yes
46416     ;;
46417   no:yes:* )
46418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46430     (
46431       cat <<\_ASBOX
46432 ## ------------------------------------------ ##
46433 ## Report this to the AC_PACKAGE_NAME lists.  ##
46434 ## ------------------------------------------ ##
46435 _ASBOX
46436     ) |
46437       sed "s/^/$as_me: WARNING:     /" >&2
46438     ;;
46439 esac
46440 echo "$as_me:$LINENO: checking for $ac_header" >&5
46441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46443   echo $ECHO_N "(cached) $ECHO_C" >&6
46444 else
46445   eval "$as_ac_Header=\$ac_header_preproc"
46446 fi
46447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46449
46450 fi
46451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46452   cat >>confdefs.h <<_ACEOF
46453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46454 _ACEOF
46455
46456 fi
46457
46458 done
46459
46460
46461         if test $ac_cv_header_slp_h = yes ; then
46462                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46463 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46464 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46465   echo $ECHO_N "(cached) $ECHO_C" >&6
46466 else
46467   ac_check_lib_save_LIBS=$LIBS
46468 LIBS="-lslp  $LIBS"
46469 cat >conftest.$ac_ext <<_ACEOF
46470 /* confdefs.h.  */
46471 _ACEOF
46472 cat confdefs.h >>conftest.$ac_ext
46473 cat >>conftest.$ac_ext <<_ACEOF
46474 /* end confdefs.h.  */
46475
46476 /* Override any gcc2 internal prototype to avoid an error.  */
46477 #ifdef __cplusplus
46478 extern "C"
46479 #endif
46480 /* We use char because int might match the return type of a gcc2
46481    builtin and then its argument prototype would still apply.  */
46482 char SLPOpen ();
46483 int
46484 main ()
46485 {
46486 SLPOpen ();
46487   ;
46488   return 0;
46489 }
46490 _ACEOF
46491 rm -f conftest.$ac_objext conftest$ac_exeext
46492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46493   (eval $ac_link) 2>conftest.er1
46494   ac_status=$?
46495   grep -v '^ *+' conftest.er1 >conftest.err
46496   rm -f conftest.er1
46497   cat conftest.err >&5
46498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499   (exit $ac_status); } &&
46500          { ac_try='test -z "$ac_c_werror_flag"
46501                          || test ! -s conftest.err'
46502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46503   (eval $ac_try) 2>&5
46504   ac_status=$?
46505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46506   (exit $ac_status); }; } &&
46507          { ac_try='test -s conftest$ac_exeext'
46508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46509   (eval $ac_try) 2>&5
46510   ac_status=$?
46511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46512   (exit $ac_status); }; }; then
46513   ac_cv_lib_slp_SLPOpen=yes
46514 else
46515   echo "$as_me: failed program was:" >&5
46516 sed 's/^/| /' conftest.$ac_ext >&5
46517
46518 ac_cv_lib_slp_SLPOpen=no
46519 fi
46520 rm -f conftest.err conftest.$ac_objext \
46521       conftest$ac_exeext conftest.$ac_ext
46522 LIBS=$ac_check_lib_save_LIBS
46523 fi
46524 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46525 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46526 if test $ac_cv_lib_slp_SLPOpen = yes; then
46527   have_slp=yes
46528 else
46529   have_slp=no
46530 fi
46531
46532                 if test $have_slp = yes ; then
46533
46534 cat >>confdefs.h <<\_ACEOF
46535 #define HAVE_SLP 1
46536 _ACEOF
46537
46538                         SLAPD_SLP_LIBS=-lslp
46539                 fi
46540
46541         elif test $ol_enable_slp = yes ; then
46542                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46543 echo "$as_me: error: SLP not found" >&2;}
46544    { (exit 1); exit 1; }; }
46545         fi
46546 fi
46547
46548 if test "$ol_with_multiple_precision" != "no" ; then
46549         ol_have_bignum=no
46550         ol_have_gmp=no
46551
46552
46553
46554 for ac_header in openssl/bn.h bn.h
46555 do
46556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46558   echo "$as_me:$LINENO: checking for $ac_header" >&5
46559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46561   echo $ECHO_N "(cached) $ECHO_C" >&6
46562 fi
46563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46565 else
46566   # Is the header compilable?
46567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46569 cat >conftest.$ac_ext <<_ACEOF
46570 /* confdefs.h.  */
46571 _ACEOF
46572 cat confdefs.h >>conftest.$ac_ext
46573 cat >>conftest.$ac_ext <<_ACEOF
46574 /* end confdefs.h.  */
46575 $ac_includes_default
46576 #include <$ac_header>
46577 _ACEOF
46578 rm -f conftest.$ac_objext
46579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46580   (eval $ac_compile) 2>conftest.er1
46581   ac_status=$?
46582   grep -v '^ *+' conftest.er1 >conftest.err
46583   rm -f conftest.er1
46584   cat conftest.err >&5
46585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586   (exit $ac_status); } &&
46587          { ac_try='test -z "$ac_c_werror_flag"
46588                          || test ! -s conftest.err'
46589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46590   (eval $ac_try) 2>&5
46591   ac_status=$?
46592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46593   (exit $ac_status); }; } &&
46594          { ac_try='test -s conftest.$ac_objext'
46595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46596   (eval $ac_try) 2>&5
46597   ac_status=$?
46598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46599   (exit $ac_status); }; }; then
46600   ac_header_compiler=yes
46601 else
46602   echo "$as_me: failed program was:" >&5
46603 sed 's/^/| /' conftest.$ac_ext >&5
46604
46605 ac_header_compiler=no
46606 fi
46607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46609 echo "${ECHO_T}$ac_header_compiler" >&6
46610
46611 # Is the header present?
46612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46614 cat >conftest.$ac_ext <<_ACEOF
46615 /* confdefs.h.  */
46616 _ACEOF
46617 cat confdefs.h >>conftest.$ac_ext
46618 cat >>conftest.$ac_ext <<_ACEOF
46619 /* end confdefs.h.  */
46620 #include <$ac_header>
46621 _ACEOF
46622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46624   ac_status=$?
46625   grep -v '^ *+' conftest.er1 >conftest.err
46626   rm -f conftest.er1
46627   cat conftest.err >&5
46628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46629   (exit $ac_status); } >/dev/null; then
46630   if test -s conftest.err; then
46631     ac_cpp_err=$ac_c_preproc_warn_flag
46632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46633   else
46634     ac_cpp_err=
46635   fi
46636 else
46637   ac_cpp_err=yes
46638 fi
46639 if test -z "$ac_cpp_err"; then
46640   ac_header_preproc=yes
46641 else
46642   echo "$as_me: failed program was:" >&5
46643 sed 's/^/| /' conftest.$ac_ext >&5
46644
46645   ac_header_preproc=no
46646 fi
46647 rm -f conftest.err conftest.$ac_ext
46648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46649 echo "${ECHO_T}$ac_header_preproc" >&6
46650
46651 # So?  What about this header?
46652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46653   yes:no: )
46654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46658     ac_header_preproc=yes
46659     ;;
46660   no:yes:* )
46661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46673     (
46674       cat <<\_ASBOX
46675 ## ------------------------------------------ ##
46676 ## Report this to the AC_PACKAGE_NAME lists.  ##
46677 ## ------------------------------------------ ##
46678 _ASBOX
46679     ) |
46680       sed "s/^/$as_me: WARNING:     /" >&2
46681     ;;
46682 esac
46683 echo "$as_me:$LINENO: checking for $ac_header" >&5
46684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46686   echo $ECHO_N "(cached) $ECHO_C" >&6
46687 else
46688   eval "$as_ac_Header=\$ac_header_preproc"
46689 fi
46690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46692
46693 fi
46694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46695   cat >>confdefs.h <<_ACEOF
46696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46697 _ACEOF
46698
46699 fi
46700
46701 done
46702
46703
46704
46705 for ac_header in openssl/crypto.h crypto.h
46706 do
46707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46709   echo "$as_me:$LINENO: checking for $ac_header" >&5
46710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46712   echo $ECHO_N "(cached) $ECHO_C" >&6
46713 fi
46714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46716 else
46717   # Is the header compilable?
46718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46720 cat >conftest.$ac_ext <<_ACEOF
46721 /* confdefs.h.  */
46722 _ACEOF
46723 cat confdefs.h >>conftest.$ac_ext
46724 cat >>conftest.$ac_ext <<_ACEOF
46725 /* end confdefs.h.  */
46726 $ac_includes_default
46727 #include <$ac_header>
46728 _ACEOF
46729 rm -f conftest.$ac_objext
46730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46731   (eval $ac_compile) 2>conftest.er1
46732   ac_status=$?
46733   grep -v '^ *+' conftest.er1 >conftest.err
46734   rm -f conftest.er1
46735   cat conftest.err >&5
46736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737   (exit $ac_status); } &&
46738          { ac_try='test -z "$ac_c_werror_flag"
46739                          || test ! -s conftest.err'
46740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46741   (eval $ac_try) 2>&5
46742   ac_status=$?
46743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46744   (exit $ac_status); }; } &&
46745          { ac_try='test -s conftest.$ac_objext'
46746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46747   (eval $ac_try) 2>&5
46748   ac_status=$?
46749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46750   (exit $ac_status); }; }; then
46751   ac_header_compiler=yes
46752 else
46753   echo "$as_me: failed program was:" >&5
46754 sed 's/^/| /' conftest.$ac_ext >&5
46755
46756 ac_header_compiler=no
46757 fi
46758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46760 echo "${ECHO_T}$ac_header_compiler" >&6
46761
46762 # Is the header present?
46763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46765 cat >conftest.$ac_ext <<_ACEOF
46766 /* confdefs.h.  */
46767 _ACEOF
46768 cat confdefs.h >>conftest.$ac_ext
46769 cat >>conftest.$ac_ext <<_ACEOF
46770 /* end confdefs.h.  */
46771 #include <$ac_header>
46772 _ACEOF
46773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46775   ac_status=$?
46776   grep -v '^ *+' conftest.er1 >conftest.err
46777   rm -f conftest.er1
46778   cat conftest.err >&5
46779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46780   (exit $ac_status); } >/dev/null; then
46781   if test -s conftest.err; then
46782     ac_cpp_err=$ac_c_preproc_warn_flag
46783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46784   else
46785     ac_cpp_err=
46786   fi
46787 else
46788   ac_cpp_err=yes
46789 fi
46790 if test -z "$ac_cpp_err"; then
46791   ac_header_preproc=yes
46792 else
46793   echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46795
46796   ac_header_preproc=no
46797 fi
46798 rm -f conftest.err conftest.$ac_ext
46799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46800 echo "${ECHO_T}$ac_header_preproc" >&6
46801
46802 # So?  What about this header?
46803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46804   yes:no: )
46805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46809     ac_header_preproc=yes
46810     ;;
46811   no:yes:* )
46812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46824     (
46825       cat <<\_ASBOX
46826 ## ------------------------------------------ ##
46827 ## Report this to the AC_PACKAGE_NAME lists.  ##
46828 ## ------------------------------------------ ##
46829 _ASBOX
46830     ) |
46831       sed "s/^/$as_me: WARNING:     /" >&2
46832     ;;
46833 esac
46834 echo "$as_me:$LINENO: checking for $ac_header" >&5
46835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46837   echo $ECHO_N "(cached) $ECHO_C" >&6
46838 else
46839   eval "$as_ac_Header=\$ac_header_preproc"
46840 fi
46841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46843
46844 fi
46845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46846   cat >>confdefs.h <<_ACEOF
46847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46848 _ACEOF
46849
46850 fi
46851
46852 done
46853
46854
46855 for ac_header in gmp.h
46856 do
46857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46859   echo "$as_me:$LINENO: checking for $ac_header" >&5
46860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46862   echo $ECHO_N "(cached) $ECHO_C" >&6
46863 fi
46864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46866 else
46867   # Is the header compilable?
46868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46870 cat >conftest.$ac_ext <<_ACEOF
46871 /* confdefs.h.  */
46872 _ACEOF
46873 cat confdefs.h >>conftest.$ac_ext
46874 cat >>conftest.$ac_ext <<_ACEOF
46875 /* end confdefs.h.  */
46876 $ac_includes_default
46877 #include <$ac_header>
46878 _ACEOF
46879 rm -f conftest.$ac_objext
46880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46881   (eval $ac_compile) 2>conftest.er1
46882   ac_status=$?
46883   grep -v '^ *+' conftest.er1 >conftest.err
46884   rm -f conftest.er1
46885   cat conftest.err >&5
46886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46887   (exit $ac_status); } &&
46888          { ac_try='test -z "$ac_c_werror_flag"
46889                          || test ! -s conftest.err'
46890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46891   (eval $ac_try) 2>&5
46892   ac_status=$?
46893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46894   (exit $ac_status); }; } &&
46895          { ac_try='test -s conftest.$ac_objext'
46896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46897   (eval $ac_try) 2>&5
46898   ac_status=$?
46899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46900   (exit $ac_status); }; }; then
46901   ac_header_compiler=yes
46902 else
46903   echo "$as_me: failed program was:" >&5
46904 sed 's/^/| /' conftest.$ac_ext >&5
46905
46906 ac_header_compiler=no
46907 fi
46908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46910 echo "${ECHO_T}$ac_header_compiler" >&6
46911
46912 # Is the header present?
46913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46915 cat >conftest.$ac_ext <<_ACEOF
46916 /* confdefs.h.  */
46917 _ACEOF
46918 cat confdefs.h >>conftest.$ac_ext
46919 cat >>conftest.$ac_ext <<_ACEOF
46920 /* end confdefs.h.  */
46921 #include <$ac_header>
46922 _ACEOF
46923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46925   ac_status=$?
46926   grep -v '^ *+' conftest.er1 >conftest.err
46927   rm -f conftest.er1
46928   cat conftest.err >&5
46929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930   (exit $ac_status); } >/dev/null; then
46931   if test -s conftest.err; then
46932     ac_cpp_err=$ac_c_preproc_warn_flag
46933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46934   else
46935     ac_cpp_err=
46936   fi
46937 else
46938   ac_cpp_err=yes
46939 fi
46940 if test -z "$ac_cpp_err"; then
46941   ac_header_preproc=yes
46942 else
46943   echo "$as_me: failed program was:" >&5
46944 sed 's/^/| /' conftest.$ac_ext >&5
46945
46946   ac_header_preproc=no
46947 fi
46948 rm -f conftest.err conftest.$ac_ext
46949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46950 echo "${ECHO_T}$ac_header_preproc" >&6
46951
46952 # So?  What about this header?
46953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46954   yes:no: )
46955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46959     ac_header_preproc=yes
46960     ;;
46961   no:yes:* )
46962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46974     (
46975       cat <<\_ASBOX
46976 ## ------------------------------------------ ##
46977 ## Report this to the AC_PACKAGE_NAME lists.  ##
46978 ## ------------------------------------------ ##
46979 _ASBOX
46980     ) |
46981       sed "s/^/$as_me: WARNING:     /" >&2
46982     ;;
46983 esac
46984 echo "$as_me:$LINENO: checking for $ac_header" >&5
46985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46987   echo $ECHO_N "(cached) $ECHO_C" >&6
46988 else
46989   eval "$as_ac_Header=\$ac_header_preproc"
46990 fi
46991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46993
46994 fi
46995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46996   cat >>confdefs.h <<_ACEOF
46997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46998 _ACEOF
46999
47000 fi
47001
47002 done
47003
47004
47005         if test "$ol_with_tls" = "found" ; then
47006                 ol_have_bn_h=no
47007                 ol_have_crypto_h=no
47008
47009                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47010                                 -o "$ac_cv_header_bn_h" = "yes" ; then
47011                         ol_have_bn_h=yes
47012                 fi
47013
47014                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47015                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
47016                         ol_have_crypto_h=yes
47017                 fi
47018
47019                 if test "$ol_have_bn_h" = "yes" \
47020                                 -a "$ol_have_crypto_h" = "yes" ; then
47021                         ol_have_bignum=yes
47022                 fi
47023         fi
47024
47025         if test $ac_cv_header_gmp_h = yes ; then
47026                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47027 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47028 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47029   echo $ECHO_N "(cached) $ECHO_C" >&6
47030 else
47031   ac_check_lib_save_LIBS=$LIBS
47032 LIBS="-lgmp  $LIBS"
47033 cat >conftest.$ac_ext <<_ACEOF
47034 /* confdefs.h.  */
47035 _ACEOF
47036 cat confdefs.h >>conftest.$ac_ext
47037 cat >>conftest.$ac_ext <<_ACEOF
47038 /* end confdefs.h.  */
47039
47040 /* Override any gcc2 internal prototype to avoid an error.  */
47041 #ifdef __cplusplus
47042 extern "C"
47043 #endif
47044 /* We use char because int might match the return type of a gcc2
47045    builtin and then its argument prototype would still apply.  */
47046 char __gmpz_add_ui ();
47047 int
47048 main ()
47049 {
47050 __gmpz_add_ui ();
47051   ;
47052   return 0;
47053 }
47054 _ACEOF
47055 rm -f conftest.$ac_objext conftest$ac_exeext
47056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47057   (eval $ac_link) 2>conftest.er1
47058   ac_status=$?
47059   grep -v '^ *+' conftest.er1 >conftest.err
47060   rm -f conftest.er1
47061   cat conftest.err >&5
47062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47063   (exit $ac_status); } &&
47064          { ac_try='test -z "$ac_c_werror_flag"
47065                          || test ! -s conftest.err'
47066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067   (eval $ac_try) 2>&5
47068   ac_status=$?
47069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070   (exit $ac_status); }; } &&
47071          { ac_try='test -s conftest$ac_exeext'
47072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47073   (eval $ac_try) 2>&5
47074   ac_status=$?
47075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47076   (exit $ac_status); }; }; then
47077   ac_cv_lib_gmp___gmpz_add_ui=yes
47078 else
47079   echo "$as_me: failed program was:" >&5
47080 sed 's/^/| /' conftest.$ac_ext >&5
47081
47082 ac_cv_lib_gmp___gmpz_add_ui=no
47083 fi
47084 rm -f conftest.err conftest.$ac_objext \
47085       conftest$ac_exeext conftest.$ac_ext
47086 LIBS=$ac_check_lib_save_LIBS
47087 fi
47088 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47089 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47090 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47091   have_gmp=yes
47092 else
47093   have_gmp=no
47094 fi
47095
47096                 if test $have_gmp = yes ; then
47097                         ol_have_gmp=yes
47098                 fi
47099         fi
47100
47101         echo "$as_me:$LINENO: checking for multiple precision support" >&5
47102 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47103
47104         ol_mp_support="none"
47105         case "$ol_with_multiple_precision" in
47106         auto)
47107                                                                                 if test "$ol_have_bignum" = "yes" ; then
47108                         ol_mp_support="bignum"
47109                 else
47110                         if test "$ol_have_gmp" = "yes" ; then
47111                                 ol_mp_support="gmp"
47112                         fi
47113                 fi
47114                 ;;
47115         bignum)
47116                 if test "$ol_have_bignum" != "yes" ; then
47117                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47118 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47119    { (exit 1); exit 1; }; }
47120                 fi
47121                 ol_mp_support="bignum"
47122                 ;;
47123         gmp)
47124                 if test "$ol_have_gmp" != "yes" ; then
47125                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
47126 echo "$as_me: error: GMP not available" >&2;}
47127    { (exit 1); exit 1; }; }
47128                 fi
47129                 ol_mp_support="gmp"
47130                 ;;
47131         yes)
47132                 if test "$ol_have_bignum" = "yes" ; then
47133                         ol_mp_support="bignum"
47134                 elif test "$ol_have_gmp" = "yes" ; then
47135                         ol_mp_support="gmp"
47136                 else
47137                         { { echo "$as_me:$LINENO: error: not available" >&5
47138 echo "$as_me: error: not available" >&2;}
47139    { (exit 1); exit 1; }; }
47140                 fi
47141                 ;;
47142         esac
47143
47144         case "$ol_mp_support" in
47145         bignum)
47146
47147 cat >>confdefs.h <<\_ACEOF
47148 #define HAVE_BIGNUM 1
47149 _ACEOF
47150
47151                 ;;
47152         gmp)
47153
47154 cat >>confdefs.h <<\_ACEOF
47155 #define HAVE_GMP 1
47156 _ACEOF
47157
47158                 SLAPD_GMP_LIBS=-lgmp
47159                 ;;
47160         none)
47161                 ;;
47162         esac
47163
47164         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47165 echo "${ECHO_T}$ol_mp_support" >&6
47166 fi
47167
47168
47169 echo "$as_me:$LINENO: checking for mode_t" >&5
47170 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47171 if test "${ac_cv_type_mode_t+set}" = set; then
47172   echo $ECHO_N "(cached) $ECHO_C" >&6
47173 else
47174   cat >conftest.$ac_ext <<_ACEOF
47175 /* confdefs.h.  */
47176 _ACEOF
47177 cat confdefs.h >>conftest.$ac_ext
47178 cat >>conftest.$ac_ext <<_ACEOF
47179 /* end confdefs.h.  */
47180 $ac_includes_default
47181 int
47182 main ()
47183 {
47184 if ((mode_t *) 0)
47185   return 0;
47186 if (sizeof (mode_t))
47187   return 0;
47188   ;
47189   return 0;
47190 }
47191 _ACEOF
47192 rm -f conftest.$ac_objext
47193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47194   (eval $ac_compile) 2>conftest.er1
47195   ac_status=$?
47196   grep -v '^ *+' conftest.er1 >conftest.err
47197   rm -f conftest.er1
47198   cat conftest.err >&5
47199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47200   (exit $ac_status); } &&
47201          { ac_try='test -z "$ac_c_werror_flag"
47202                          || test ! -s conftest.err'
47203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47204   (eval $ac_try) 2>&5
47205   ac_status=$?
47206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47207   (exit $ac_status); }; } &&
47208          { ac_try='test -s conftest.$ac_objext'
47209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47210   (eval $ac_try) 2>&5
47211   ac_status=$?
47212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47213   (exit $ac_status); }; }; then
47214   ac_cv_type_mode_t=yes
47215 else
47216   echo "$as_me: failed program was:" >&5
47217 sed 's/^/| /' conftest.$ac_ext >&5
47218
47219 ac_cv_type_mode_t=no
47220 fi
47221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47222 fi
47223 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47224 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47225 if test $ac_cv_type_mode_t = yes; then
47226   :
47227 else
47228
47229 cat >>confdefs.h <<_ACEOF
47230 #define mode_t int
47231 _ACEOF
47232
47233 fi
47234
47235 echo "$as_me:$LINENO: checking for off_t" >&5
47236 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47237 if test "${ac_cv_type_off_t+set}" = set; then
47238   echo $ECHO_N "(cached) $ECHO_C" >&6
47239 else
47240   cat >conftest.$ac_ext <<_ACEOF
47241 /* confdefs.h.  */
47242 _ACEOF
47243 cat confdefs.h >>conftest.$ac_ext
47244 cat >>conftest.$ac_ext <<_ACEOF
47245 /* end confdefs.h.  */
47246 $ac_includes_default
47247 int
47248 main ()
47249 {
47250 if ((off_t *) 0)
47251   return 0;
47252 if (sizeof (off_t))
47253   return 0;
47254   ;
47255   return 0;
47256 }
47257 _ACEOF
47258 rm -f conftest.$ac_objext
47259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47260   (eval $ac_compile) 2>conftest.er1
47261   ac_status=$?
47262   grep -v '^ *+' conftest.er1 >conftest.err
47263   rm -f conftest.er1
47264   cat conftest.err >&5
47265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47266   (exit $ac_status); } &&
47267          { ac_try='test -z "$ac_c_werror_flag"
47268                          || test ! -s conftest.err'
47269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47270   (eval $ac_try) 2>&5
47271   ac_status=$?
47272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47273   (exit $ac_status); }; } &&
47274          { ac_try='test -s conftest.$ac_objext'
47275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47276   (eval $ac_try) 2>&5
47277   ac_status=$?
47278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279   (exit $ac_status); }; }; then
47280   ac_cv_type_off_t=yes
47281 else
47282   echo "$as_me: failed program was:" >&5
47283 sed 's/^/| /' conftest.$ac_ext >&5
47284
47285 ac_cv_type_off_t=no
47286 fi
47287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47288 fi
47289 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47290 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47291 if test $ac_cv_type_off_t = yes; then
47292   :
47293 else
47294
47295 cat >>confdefs.h <<_ACEOF
47296 #define off_t long
47297 _ACEOF
47298
47299 fi
47300
47301 echo "$as_me:$LINENO: checking for pid_t" >&5
47302 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47303 if test "${ac_cv_type_pid_t+set}" = set; then
47304   echo $ECHO_N "(cached) $ECHO_C" >&6
47305 else
47306   cat >conftest.$ac_ext <<_ACEOF
47307 /* confdefs.h.  */
47308 _ACEOF
47309 cat confdefs.h >>conftest.$ac_ext
47310 cat >>conftest.$ac_ext <<_ACEOF
47311 /* end confdefs.h.  */
47312 $ac_includes_default
47313 int
47314 main ()
47315 {
47316 if ((pid_t *) 0)
47317   return 0;
47318 if (sizeof (pid_t))
47319   return 0;
47320   ;
47321   return 0;
47322 }
47323 _ACEOF
47324 rm -f conftest.$ac_objext
47325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47326   (eval $ac_compile) 2>conftest.er1
47327   ac_status=$?
47328   grep -v '^ *+' conftest.er1 >conftest.err
47329   rm -f conftest.er1
47330   cat conftest.err >&5
47331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47332   (exit $ac_status); } &&
47333          { ac_try='test -z "$ac_c_werror_flag"
47334                          || test ! -s conftest.err'
47335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47336   (eval $ac_try) 2>&5
47337   ac_status=$?
47338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339   (exit $ac_status); }; } &&
47340          { ac_try='test -s conftest.$ac_objext'
47341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47342   (eval $ac_try) 2>&5
47343   ac_status=$?
47344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47345   (exit $ac_status); }; }; then
47346   ac_cv_type_pid_t=yes
47347 else
47348   echo "$as_me: failed program was:" >&5
47349 sed 's/^/| /' conftest.$ac_ext >&5
47350
47351 ac_cv_type_pid_t=no
47352 fi
47353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47354 fi
47355 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47356 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47357 if test $ac_cv_type_pid_t = yes; then
47358   :
47359 else
47360
47361 cat >>confdefs.h <<_ACEOF
47362 #define pid_t int
47363 _ACEOF
47364
47365 fi
47366
47367 echo "$as_me:$LINENO: checking for ssize_t" >&5
47368 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47369 if test "${ac_cv_type_ssize_t+set}" = set; then
47370   echo $ECHO_N "(cached) $ECHO_C" >&6
47371 else
47372   cat >conftest.$ac_ext <<_ACEOF
47373 /* confdefs.h.  */
47374 _ACEOF
47375 cat confdefs.h >>conftest.$ac_ext
47376 cat >>conftest.$ac_ext <<_ACEOF
47377 /* end confdefs.h.  */
47378 $ac_includes_default
47379 int
47380 main ()
47381 {
47382 if ((ssize_t *) 0)
47383   return 0;
47384 if (sizeof (ssize_t))
47385   return 0;
47386   ;
47387   return 0;
47388 }
47389 _ACEOF
47390 rm -f conftest.$ac_objext
47391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47392   (eval $ac_compile) 2>conftest.er1
47393   ac_status=$?
47394   grep -v '^ *+' conftest.er1 >conftest.err
47395   rm -f conftest.er1
47396   cat conftest.err >&5
47397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47398   (exit $ac_status); } &&
47399          { ac_try='test -z "$ac_c_werror_flag"
47400                          || test ! -s conftest.err'
47401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47402   (eval $ac_try) 2>&5
47403   ac_status=$?
47404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47405   (exit $ac_status); }; } &&
47406          { ac_try='test -s conftest.$ac_objext'
47407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47408   (eval $ac_try) 2>&5
47409   ac_status=$?
47410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411   (exit $ac_status); }; }; then
47412   ac_cv_type_ssize_t=yes
47413 else
47414   echo "$as_me: failed program was:" >&5
47415 sed 's/^/| /' conftest.$ac_ext >&5
47416
47417 ac_cv_type_ssize_t=no
47418 fi
47419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47420 fi
47421 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47422 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47423 if test $ac_cv_type_ssize_t = yes; then
47424   :
47425 else
47426
47427 cat >>confdefs.h <<_ACEOF
47428 #define ssize_t signed int
47429 _ACEOF
47430
47431 fi
47432
47433 echo "$as_me:$LINENO: checking for caddr_t" >&5
47434 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47435 if test "${ac_cv_type_caddr_t+set}" = set; then
47436   echo $ECHO_N "(cached) $ECHO_C" >&6
47437 else
47438   cat >conftest.$ac_ext <<_ACEOF
47439 /* confdefs.h.  */
47440 _ACEOF
47441 cat confdefs.h >>conftest.$ac_ext
47442 cat >>conftest.$ac_ext <<_ACEOF
47443 /* end confdefs.h.  */
47444 $ac_includes_default
47445 int
47446 main ()
47447 {
47448 if ((caddr_t *) 0)
47449   return 0;
47450 if (sizeof (caddr_t))
47451   return 0;
47452   ;
47453   return 0;
47454 }
47455 _ACEOF
47456 rm -f conftest.$ac_objext
47457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47458   (eval $ac_compile) 2>conftest.er1
47459   ac_status=$?
47460   grep -v '^ *+' conftest.er1 >conftest.err
47461   rm -f conftest.er1
47462   cat conftest.err >&5
47463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47464   (exit $ac_status); } &&
47465          { ac_try='test -z "$ac_c_werror_flag"
47466                          || test ! -s conftest.err'
47467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47468   (eval $ac_try) 2>&5
47469   ac_status=$?
47470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47471   (exit $ac_status); }; } &&
47472          { ac_try='test -s conftest.$ac_objext'
47473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47474   (eval $ac_try) 2>&5
47475   ac_status=$?
47476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47477   (exit $ac_status); }; }; then
47478   ac_cv_type_caddr_t=yes
47479 else
47480   echo "$as_me: failed program was:" >&5
47481 sed 's/^/| /' conftest.$ac_ext >&5
47482
47483 ac_cv_type_caddr_t=no
47484 fi
47485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47486 fi
47487 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47488 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47489 if test $ac_cv_type_caddr_t = yes; then
47490   :
47491 else
47492
47493 cat >>confdefs.h <<_ACEOF
47494 #define caddr_t char *
47495 _ACEOF
47496
47497 fi
47498
47499 echo "$as_me:$LINENO: checking for size_t" >&5
47500 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47501 if test "${ac_cv_type_size_t+set}" = set; then
47502   echo $ECHO_N "(cached) $ECHO_C" >&6
47503 else
47504   cat >conftest.$ac_ext <<_ACEOF
47505 /* confdefs.h.  */
47506 _ACEOF
47507 cat confdefs.h >>conftest.$ac_ext
47508 cat >>conftest.$ac_ext <<_ACEOF
47509 /* end confdefs.h.  */
47510 $ac_includes_default
47511 int
47512 main ()
47513 {
47514 if ((size_t *) 0)
47515   return 0;
47516 if (sizeof (size_t))
47517   return 0;
47518   ;
47519   return 0;
47520 }
47521 _ACEOF
47522 rm -f conftest.$ac_objext
47523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47524   (eval $ac_compile) 2>conftest.er1
47525   ac_status=$?
47526   grep -v '^ *+' conftest.er1 >conftest.err
47527   rm -f conftest.er1
47528   cat conftest.err >&5
47529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47530   (exit $ac_status); } &&
47531          { ac_try='test -z "$ac_c_werror_flag"
47532                          || test ! -s conftest.err'
47533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47534   (eval $ac_try) 2>&5
47535   ac_status=$?
47536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47537   (exit $ac_status); }; } &&
47538          { ac_try='test -s conftest.$ac_objext'
47539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47540   (eval $ac_try) 2>&5
47541   ac_status=$?
47542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543   (exit $ac_status); }; }; then
47544   ac_cv_type_size_t=yes
47545 else
47546   echo "$as_me: failed program was:" >&5
47547 sed 's/^/| /' conftest.$ac_ext >&5
47548
47549 ac_cv_type_size_t=no
47550 fi
47551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47552 fi
47553 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47554 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47555 if test $ac_cv_type_size_t = yes; then
47556   :
47557 else
47558
47559 cat >>confdefs.h <<_ACEOF
47560 #define size_t unsigned
47561 _ACEOF
47562
47563 fi
47564
47565
47566 echo "$as_me:$LINENO: checking for long long" >&5
47567 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47568 if test "${ac_cv_type_long_long+set}" = set; then
47569   echo $ECHO_N "(cached) $ECHO_C" >&6
47570 else
47571   cat >conftest.$ac_ext <<_ACEOF
47572 /* confdefs.h.  */
47573 _ACEOF
47574 cat confdefs.h >>conftest.$ac_ext
47575 cat >>conftest.$ac_ext <<_ACEOF
47576 /* end confdefs.h.  */
47577 $ac_includes_default
47578 int
47579 main ()
47580 {
47581 if ((long long *) 0)
47582   return 0;
47583 if (sizeof (long long))
47584   return 0;
47585   ;
47586   return 0;
47587 }
47588 _ACEOF
47589 rm -f conftest.$ac_objext
47590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47591   (eval $ac_compile) 2>conftest.er1
47592   ac_status=$?
47593   grep -v '^ *+' conftest.er1 >conftest.err
47594   rm -f conftest.er1
47595   cat conftest.err >&5
47596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597   (exit $ac_status); } &&
47598          { ac_try='test -z "$ac_c_werror_flag"
47599                          || test ! -s conftest.err'
47600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47601   (eval $ac_try) 2>&5
47602   ac_status=$?
47603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604   (exit $ac_status); }; } &&
47605          { ac_try='test -s conftest.$ac_objext'
47606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47607   (eval $ac_try) 2>&5
47608   ac_status=$?
47609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47610   (exit $ac_status); }; }; then
47611   ac_cv_type_long_long=yes
47612 else
47613   echo "$as_me: failed program was:" >&5
47614 sed 's/^/| /' conftest.$ac_ext >&5
47615
47616 ac_cv_type_long_long=no
47617 fi
47618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47619 fi
47620 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47621 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47622 if test $ac_cv_type_long_long = yes; then
47623
47624 cat >>confdefs.h <<_ACEOF
47625 #define HAVE_LONG_LONG 1
47626 _ACEOF
47627
47628
47629 fi
47630
47631 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47632 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47633 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47634   echo $ECHO_N "(cached) $ECHO_C" >&6
47635 else
47636   cat >conftest.$ac_ext <<_ACEOF
47637 /* confdefs.h.  */
47638 _ACEOF
47639 cat confdefs.h >>conftest.$ac_ext
47640 cat >>conftest.$ac_ext <<_ACEOF
47641 /* end confdefs.h.  */
47642 $ac_includes_default
47643 int
47644 main ()
47645 {
47646 if ((ptrdiff_t *) 0)
47647   return 0;
47648 if (sizeof (ptrdiff_t))
47649   return 0;
47650   ;
47651   return 0;
47652 }
47653 _ACEOF
47654 rm -f conftest.$ac_objext
47655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47656   (eval $ac_compile) 2>conftest.er1
47657   ac_status=$?
47658   grep -v '^ *+' conftest.er1 >conftest.err
47659   rm -f conftest.er1
47660   cat conftest.err >&5
47661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47662   (exit $ac_status); } &&
47663          { ac_try='test -z "$ac_c_werror_flag"
47664                          || test ! -s conftest.err'
47665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47666   (eval $ac_try) 2>&5
47667   ac_status=$?
47668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47669   (exit $ac_status); }; } &&
47670          { ac_try='test -s conftest.$ac_objext'
47671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47672   (eval $ac_try) 2>&5
47673   ac_status=$?
47674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675   (exit $ac_status); }; }; then
47676   ac_cv_type_ptrdiff_t=yes
47677 else
47678   echo "$as_me: failed program was:" >&5
47679 sed 's/^/| /' conftest.$ac_ext >&5
47680
47681 ac_cv_type_ptrdiff_t=no
47682 fi
47683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47684 fi
47685 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47686 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47687 if test $ac_cv_type_ptrdiff_t = yes; then
47688
47689 cat >>confdefs.h <<_ACEOF
47690 #define HAVE_PTRDIFF_T 1
47691 _ACEOF
47692
47693
47694 fi
47695
47696
47697 echo "$as_me:$LINENO: checking for socklen_t" >&5
47698 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47699 if test "${ac_cv_type_socklen_t+set}" = set; then
47700   echo $ECHO_N "(cached) $ECHO_C" >&6
47701 else
47702   cat >conftest.$ac_ext <<_ACEOF
47703 /* confdefs.h.  */
47704 _ACEOF
47705 cat confdefs.h >>conftest.$ac_ext
47706 cat >>conftest.$ac_ext <<_ACEOF
47707 /* end confdefs.h.  */
47708 $ac_includes_default
47709 #ifdef HAVE_SYS_SOCKET_H
47710 #include <sys/socket.h>
47711 #endif
47712
47713
47714 int
47715 main ()
47716 {
47717 if ((socklen_t *) 0)
47718   return 0;
47719 if (sizeof (socklen_t))
47720   return 0;
47721   ;
47722   return 0;
47723 }
47724 _ACEOF
47725 rm -f conftest.$ac_objext
47726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47727   (eval $ac_compile) 2>conftest.er1
47728   ac_status=$?
47729   grep -v '^ *+' conftest.er1 >conftest.err
47730   rm -f conftest.er1
47731   cat conftest.err >&5
47732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47733   (exit $ac_status); } &&
47734          { ac_try='test -z "$ac_c_werror_flag"
47735                          || test ! -s conftest.err'
47736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47737   (eval $ac_try) 2>&5
47738   ac_status=$?
47739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47740   (exit $ac_status); }; } &&
47741          { ac_try='test -s conftest.$ac_objext'
47742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47743   (eval $ac_try) 2>&5
47744   ac_status=$?
47745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47746   (exit $ac_status); }; }; then
47747   ac_cv_type_socklen_t=yes
47748 else
47749   echo "$as_me: failed program was:" >&5
47750 sed 's/^/| /' conftest.$ac_ext >&5
47751
47752 ac_cv_type_socklen_t=no
47753 fi
47754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47755 fi
47756 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47757 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47758 if test $ac_cv_type_socklen_t = yes; then
47759   :
47760 else
47761
47762 cat >>confdefs.h <<_ACEOF
47763 #define socklen_t int
47764 _ACEOF
47765
47766 fi
47767
47768
47769 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47770 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47771 if test "${ac_cv_type_signal+set}" = set; then
47772   echo $ECHO_N "(cached) $ECHO_C" >&6
47773 else
47774   cat >conftest.$ac_ext <<_ACEOF
47775 /* confdefs.h.  */
47776 _ACEOF
47777 cat confdefs.h >>conftest.$ac_ext
47778 cat >>conftest.$ac_ext <<_ACEOF
47779 /* end confdefs.h.  */
47780 #include <sys/types.h>
47781 #include <signal.h>
47782 #ifdef signal
47783 # undef signal
47784 #endif
47785 #ifdef __cplusplus
47786 extern "C" void (*signal (int, void (*)(int)))(int);
47787 #else
47788 void (*signal ()) ();
47789 #endif
47790
47791 int
47792 main ()
47793 {
47794 int i;
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_signal=void
47822 else
47823   echo "$as_me: failed program was:" >&5
47824 sed 's/^/| /' conftest.$ac_ext >&5
47825
47826 ac_cv_type_signal=int
47827 fi
47828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47829 fi
47830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47831 echo "${ECHO_T}$ac_cv_type_signal" >&6
47832
47833 cat >>confdefs.h <<_ACEOF
47834 #define RETSIGTYPE $ac_cv_type_signal
47835 _ACEOF
47836
47837
47838
47839 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47840 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47841 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47842   echo $ECHO_N "(cached) $ECHO_C" >&6
47843 else
47844   cat >conftest.$ac_ext <<_ACEOF
47845 /* confdefs.h.  */
47846 _ACEOF
47847 cat confdefs.h >>conftest.$ac_ext
47848 cat >>conftest.$ac_ext <<_ACEOF
47849 /* end confdefs.h.  */
47850 $ac_includes_default
47851 #include <signal.h>
47852
47853
47854 int
47855 main ()
47856 {
47857 if ((sig_atomic_t *) 0)
47858   return 0;
47859 if (sizeof (sig_atomic_t))
47860   return 0;
47861   ;
47862   return 0;
47863 }
47864 _ACEOF
47865 rm -f conftest.$ac_objext
47866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47867   (eval $ac_compile) 2>conftest.er1
47868   ac_status=$?
47869   grep -v '^ *+' conftest.er1 >conftest.err
47870   rm -f conftest.er1
47871   cat conftest.err >&5
47872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47873   (exit $ac_status); } &&
47874          { ac_try='test -z "$ac_c_werror_flag"
47875                          || test ! -s conftest.err'
47876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47877   (eval $ac_try) 2>&5
47878   ac_status=$?
47879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47880   (exit $ac_status); }; } &&
47881          { ac_try='test -s conftest.$ac_objext'
47882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47883   (eval $ac_try) 2>&5
47884   ac_status=$?
47885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886   (exit $ac_status); }; }; then
47887   ac_cv_type_sig_atomic_t=yes
47888 else
47889   echo "$as_me: failed program was:" >&5
47890 sed 's/^/| /' conftest.$ac_ext >&5
47891
47892 ac_cv_type_sig_atomic_t=no
47893 fi
47894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47895 fi
47896 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47897 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47898 if test $ac_cv_type_sig_atomic_t = yes; then
47899   :
47900 else
47901
47902 cat >>confdefs.h <<_ACEOF
47903 #define sig_atomic_t int
47904 _ACEOF
47905
47906 fi
47907
47908
47909 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47910 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47911 if test "${ac_cv_type_uid_t+set}" = set; then
47912   echo $ECHO_N "(cached) $ECHO_C" >&6
47913 else
47914   cat >conftest.$ac_ext <<_ACEOF
47915 /* confdefs.h.  */
47916 _ACEOF
47917 cat confdefs.h >>conftest.$ac_ext
47918 cat >>conftest.$ac_ext <<_ACEOF
47919 /* end confdefs.h.  */
47920 #include <sys/types.h>
47921
47922 _ACEOF
47923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47924   $EGREP "uid_t" >/dev/null 2>&1; then
47925   ac_cv_type_uid_t=yes
47926 else
47927   ac_cv_type_uid_t=no
47928 fi
47929 rm -f conftest*
47930
47931 fi
47932 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47933 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47934 if test $ac_cv_type_uid_t = no; then
47935
47936 cat >>confdefs.h <<\_ACEOF
47937 #define uid_t int
47938 _ACEOF
47939
47940
47941 cat >>confdefs.h <<\_ACEOF
47942 #define gid_t int
47943 _ACEOF
47944
47945 fi
47946
47947
47948 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47949 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47950 if test "${ac_cv_header_time+set}" = set; then
47951   echo $ECHO_N "(cached) $ECHO_C" >&6
47952 else
47953   cat >conftest.$ac_ext <<_ACEOF
47954 /* confdefs.h.  */
47955 _ACEOF
47956 cat confdefs.h >>conftest.$ac_ext
47957 cat >>conftest.$ac_ext <<_ACEOF
47958 /* end confdefs.h.  */
47959 #include <sys/types.h>
47960 #include <sys/time.h>
47961 #include <time.h>
47962
47963 int
47964 main ()
47965 {
47966 if ((struct tm *) 0)
47967 return 0;
47968   ;
47969   return 0;
47970 }
47971 _ACEOF
47972 rm -f conftest.$ac_objext
47973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47974   (eval $ac_compile) 2>conftest.er1
47975   ac_status=$?
47976   grep -v '^ *+' conftest.er1 >conftest.err
47977   rm -f conftest.er1
47978   cat conftest.err >&5
47979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47980   (exit $ac_status); } &&
47981          { ac_try='test -z "$ac_c_werror_flag"
47982                          || test ! -s conftest.err'
47983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47984   (eval $ac_try) 2>&5
47985   ac_status=$?
47986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47987   (exit $ac_status); }; } &&
47988          { ac_try='test -s conftest.$ac_objext'
47989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47990   (eval $ac_try) 2>&5
47991   ac_status=$?
47992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47993   (exit $ac_status); }; }; then
47994   ac_cv_header_time=yes
47995 else
47996   echo "$as_me: failed program was:" >&5
47997 sed 's/^/| /' conftest.$ac_ext >&5
47998
47999 ac_cv_header_time=no
48000 fi
48001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48002 fi
48003 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48004 echo "${ECHO_T}$ac_cv_header_time" >&6
48005 if test $ac_cv_header_time = yes; then
48006
48007 cat >>confdefs.h <<\_ACEOF
48008 #define TIME_WITH_SYS_TIME 1
48009 _ACEOF
48010
48011 fi
48012
48013 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48014 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48015 if test "${ac_cv_struct_tm+set}" = set; then
48016   echo $ECHO_N "(cached) $ECHO_C" >&6
48017 else
48018   cat >conftest.$ac_ext <<_ACEOF
48019 /* confdefs.h.  */
48020 _ACEOF
48021 cat confdefs.h >>conftest.$ac_ext
48022 cat >>conftest.$ac_ext <<_ACEOF
48023 /* end confdefs.h.  */
48024 #include <sys/types.h>
48025 #include <time.h>
48026
48027 int
48028 main ()
48029 {
48030 struct tm *tp; tp->tm_sec;
48031   ;
48032   return 0;
48033 }
48034 _ACEOF
48035 rm -f conftest.$ac_objext
48036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48037   (eval $ac_compile) 2>conftest.er1
48038   ac_status=$?
48039   grep -v '^ *+' conftest.er1 >conftest.err
48040   rm -f conftest.er1
48041   cat conftest.err >&5
48042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48043   (exit $ac_status); } &&
48044          { ac_try='test -z "$ac_c_werror_flag"
48045                          || test ! -s conftest.err'
48046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48047   (eval $ac_try) 2>&5
48048   ac_status=$?
48049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48050   (exit $ac_status); }; } &&
48051          { ac_try='test -s conftest.$ac_objext'
48052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48053   (eval $ac_try) 2>&5
48054   ac_status=$?
48055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48056   (exit $ac_status); }; }; then
48057   ac_cv_struct_tm=time.h
48058 else
48059   echo "$as_me: failed program was:" >&5
48060 sed 's/^/| /' conftest.$ac_ext >&5
48061
48062 ac_cv_struct_tm=sys/time.h
48063 fi
48064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48065 fi
48066 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48067 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48068 if test $ac_cv_struct_tm = sys/time.h; then
48069
48070 cat >>confdefs.h <<\_ACEOF
48071 #define TM_IN_SYS_TIME 1
48072 _ACEOF
48073
48074 fi
48075
48076 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48079   echo $ECHO_N "(cached) $ECHO_C" >&6
48080 else
48081   cat >conftest.$ac_ext <<_ACEOF
48082 /* confdefs.h.  */
48083 _ACEOF
48084 cat confdefs.h >>conftest.$ac_ext
48085 cat >>conftest.$ac_ext <<_ACEOF
48086 /* end confdefs.h.  */
48087 $ac_includes_default
48088 int
48089 main ()
48090 {
48091 static struct stat ac_aggr;
48092 if (ac_aggr.st_blksize)
48093 return 0;
48094   ;
48095   return 0;
48096 }
48097 _ACEOF
48098 rm -f conftest.$ac_objext
48099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48100   (eval $ac_compile) 2>conftest.er1
48101   ac_status=$?
48102   grep -v '^ *+' conftest.er1 >conftest.err
48103   rm -f conftest.er1
48104   cat conftest.err >&5
48105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48106   (exit $ac_status); } &&
48107          { ac_try='test -z "$ac_c_werror_flag"
48108                          || test ! -s conftest.err'
48109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48110   (eval $ac_try) 2>&5
48111   ac_status=$?
48112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48113   (exit $ac_status); }; } &&
48114          { ac_try='test -s conftest.$ac_objext'
48115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48116   (eval $ac_try) 2>&5
48117   ac_status=$?
48118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48119   (exit $ac_status); }; }; then
48120   ac_cv_member_struct_stat_st_blksize=yes
48121 else
48122   echo "$as_me: failed program was:" >&5
48123 sed 's/^/| /' conftest.$ac_ext >&5
48124
48125 cat >conftest.$ac_ext <<_ACEOF
48126 /* confdefs.h.  */
48127 _ACEOF
48128 cat confdefs.h >>conftest.$ac_ext
48129 cat >>conftest.$ac_ext <<_ACEOF
48130 /* end confdefs.h.  */
48131 $ac_includes_default
48132 int
48133 main ()
48134 {
48135 static struct stat ac_aggr;
48136 if (sizeof ac_aggr.st_blksize)
48137 return 0;
48138   ;
48139   return 0;
48140 }
48141 _ACEOF
48142 rm -f conftest.$ac_objext
48143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48144   (eval $ac_compile) 2>conftest.er1
48145   ac_status=$?
48146   grep -v '^ *+' conftest.er1 >conftest.err
48147   rm -f conftest.er1
48148   cat conftest.err >&5
48149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48150   (exit $ac_status); } &&
48151          { ac_try='test -z "$ac_c_werror_flag"
48152                          || test ! -s conftest.err'
48153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48154   (eval $ac_try) 2>&5
48155   ac_status=$?
48156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48157   (exit $ac_status); }; } &&
48158          { ac_try='test -s conftest.$ac_objext'
48159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48160   (eval $ac_try) 2>&5
48161   ac_status=$?
48162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48163   (exit $ac_status); }; }; then
48164   ac_cv_member_struct_stat_st_blksize=yes
48165 else
48166   echo "$as_me: failed program was:" >&5
48167 sed 's/^/| /' conftest.$ac_ext >&5
48168
48169 ac_cv_member_struct_stat_st_blksize=no
48170 fi
48171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48172 fi
48173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48174 fi
48175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48177 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48178
48179 cat >>confdefs.h <<_ACEOF
48180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48181 _ACEOF
48182
48183
48184 fi
48185
48186 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48187 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48188 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48189   echo $ECHO_N "(cached) $ECHO_C" >&6
48190 else
48191   cat >conftest.$ac_ext <<_ACEOF
48192 /* confdefs.h.  */
48193 _ACEOF
48194 cat confdefs.h >>conftest.$ac_ext
48195 cat >>conftest.$ac_ext <<_ACEOF
48196 /* end confdefs.h.  */
48197 $ac_includes_default
48198 #include <pwd.h>
48199
48200 int
48201 main ()
48202 {
48203 static struct passwd ac_aggr;
48204 if (ac_aggr.pw_gecos)
48205 return 0;
48206   ;
48207   return 0;
48208 }
48209 _ACEOF
48210 rm -f conftest.$ac_objext
48211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48212   (eval $ac_compile) 2>conftest.er1
48213   ac_status=$?
48214   grep -v '^ *+' conftest.er1 >conftest.err
48215   rm -f conftest.er1
48216   cat conftest.err >&5
48217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48218   (exit $ac_status); } &&
48219          { ac_try='test -z "$ac_c_werror_flag"
48220                          || test ! -s conftest.err'
48221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48222   (eval $ac_try) 2>&5
48223   ac_status=$?
48224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48225   (exit $ac_status); }; } &&
48226          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
48232   ac_cv_member_struct_passwd_pw_gecos=yes
48233 else
48234   echo "$as_me: failed program was:" >&5
48235 sed 's/^/| /' conftest.$ac_ext >&5
48236
48237 cat >conftest.$ac_ext <<_ACEOF
48238 /* confdefs.h.  */
48239 _ACEOF
48240 cat confdefs.h >>conftest.$ac_ext
48241 cat >>conftest.$ac_ext <<_ACEOF
48242 /* end confdefs.h.  */
48243 $ac_includes_default
48244 #include <pwd.h>
48245
48246 int
48247 main ()
48248 {
48249 static struct passwd ac_aggr;
48250 if (sizeof ac_aggr.pw_gecos)
48251 return 0;
48252   ;
48253   return 0;
48254 }
48255 _ACEOF
48256 rm -f conftest.$ac_objext
48257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48258   (eval $ac_compile) 2>conftest.er1
48259   ac_status=$?
48260   grep -v '^ *+' conftest.er1 >conftest.err
48261   rm -f conftest.er1
48262   cat conftest.err >&5
48263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48264   (exit $ac_status); } &&
48265          { ac_try='test -z "$ac_c_werror_flag"
48266                          || test ! -s conftest.err'
48267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48268   (eval $ac_try) 2>&5
48269   ac_status=$?
48270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48271   (exit $ac_status); }; } &&
48272          { ac_try='test -s conftest.$ac_objext'
48273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48274   (eval $ac_try) 2>&5
48275   ac_status=$?
48276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48277   (exit $ac_status); }; }; then
48278   ac_cv_member_struct_passwd_pw_gecos=yes
48279 else
48280   echo "$as_me: failed program was:" >&5
48281 sed 's/^/| /' conftest.$ac_ext >&5
48282
48283 ac_cv_member_struct_passwd_pw_gecos=no
48284 fi
48285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48286 fi
48287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48288 fi
48289 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48290 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48291 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48292
48293 cat >>confdefs.h <<_ACEOF
48294 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48295 _ACEOF
48296
48297
48298 fi
48299
48300 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48301 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48302 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48303   echo $ECHO_N "(cached) $ECHO_C" >&6
48304 else
48305   cat >conftest.$ac_ext <<_ACEOF
48306 /* confdefs.h.  */
48307 _ACEOF
48308 cat confdefs.h >>conftest.$ac_ext
48309 cat >>conftest.$ac_ext <<_ACEOF
48310 /* end confdefs.h.  */
48311 $ac_includes_default
48312 #include <pwd.h>
48313
48314 int
48315 main ()
48316 {
48317 static struct passwd ac_aggr;
48318 if (ac_aggr.pw_passwd)
48319 return 0;
48320   ;
48321   return 0;
48322 }
48323 _ACEOF
48324 rm -f conftest.$ac_objext
48325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48326   (eval $ac_compile) 2>conftest.er1
48327   ac_status=$?
48328   grep -v '^ *+' conftest.er1 >conftest.err
48329   rm -f conftest.er1
48330   cat conftest.err >&5
48331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48332   (exit $ac_status); } &&
48333          { ac_try='test -z "$ac_c_werror_flag"
48334                          || test ! -s conftest.err'
48335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48336   (eval $ac_try) 2>&5
48337   ac_status=$?
48338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48339   (exit $ac_status); }; } &&
48340          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
48346   ac_cv_member_struct_passwd_pw_passwd=yes
48347 else
48348   echo "$as_me: failed program was:" >&5
48349 sed 's/^/| /' conftest.$ac_ext >&5
48350
48351 cat >conftest.$ac_ext <<_ACEOF
48352 /* confdefs.h.  */
48353 _ACEOF
48354 cat confdefs.h >>conftest.$ac_ext
48355 cat >>conftest.$ac_ext <<_ACEOF
48356 /* end confdefs.h.  */
48357 $ac_includes_default
48358 #include <pwd.h>
48359
48360 int
48361 main ()
48362 {
48363 static struct passwd ac_aggr;
48364 if (sizeof ac_aggr.pw_passwd)
48365 return 0;
48366   ;
48367   return 0;
48368 }
48369 _ACEOF
48370 rm -f conftest.$ac_objext
48371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48372   (eval $ac_compile) 2>conftest.er1
48373   ac_status=$?
48374   grep -v '^ *+' conftest.er1 >conftest.err
48375   rm -f conftest.er1
48376   cat conftest.err >&5
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); } &&
48379          { ac_try='test -z "$ac_c_werror_flag"
48380                          || test ! -s conftest.err'
48381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48382   (eval $ac_try) 2>&5
48383   ac_status=$?
48384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385   (exit $ac_status); }; } &&
48386          { ac_try='test -s conftest.$ac_objext'
48387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48388   (eval $ac_try) 2>&5
48389   ac_status=$?
48390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48391   (exit $ac_status); }; }; then
48392   ac_cv_member_struct_passwd_pw_passwd=yes
48393 else
48394   echo "$as_me: failed program was:" >&5
48395 sed 's/^/| /' conftest.$ac_ext >&5
48396
48397 ac_cv_member_struct_passwd_pw_passwd=no
48398 fi
48399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48400 fi
48401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48402 fi
48403 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48404 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48405 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48406
48407 cat >>confdefs.h <<_ACEOF
48408 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48409 _ACEOF
48410
48411
48412 fi
48413
48414
48415 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48416 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48417 if test "${ol_cv_c_upper_lower+set}" = set; then
48418   echo $ECHO_N "(cached) $ECHO_C" >&6
48419 else
48420
48421         if test "$cross_compiling" = yes; then
48422   ol_cv_c_upper_lower=safe
48423 else
48424   cat >conftest.$ac_ext <<_ACEOF
48425 /* confdefs.h.  */
48426 _ACEOF
48427 cat confdefs.h >>conftest.$ac_ext
48428 cat >>conftest.$ac_ext <<_ACEOF
48429 /* end confdefs.h.  */
48430
48431 #include <ctype.h>
48432 main()
48433 {
48434         if ('C' == toupper('C'))
48435                 exit(0);
48436         else
48437                 exit(1);
48438 }
48439 _ACEOF
48440 rm -f conftest$ac_exeext
48441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48442   (eval $ac_link) 2>&5
48443   ac_status=$?
48444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48447   (eval $ac_try) 2>&5
48448   ac_status=$?
48449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48450   (exit $ac_status); }; }; then
48451   ol_cv_c_upper_lower=no
48452 else
48453   echo "$as_me: program exited with status $ac_status" >&5
48454 echo "$as_me: failed program was:" >&5
48455 sed 's/^/| /' conftest.$ac_ext >&5
48456
48457 ( exit $ac_status )
48458 ol_cv_c_upper_lower=yes
48459 fi
48460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48461 fi
48462 fi
48463 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48464 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48465 if test $ol_cv_c_upper_lower != no ; then
48466
48467 cat >>confdefs.h <<\_ACEOF
48468 #define C_UPPER_LOWER 1
48469 _ACEOF
48470
48471 fi
48472
48473 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48474 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48475 if test "${ac_cv_c_const+set}" = set; then
48476   echo $ECHO_N "(cached) $ECHO_C" >&6
48477 else
48478   cat >conftest.$ac_ext <<_ACEOF
48479 /* confdefs.h.  */
48480 _ACEOF
48481 cat confdefs.h >>conftest.$ac_ext
48482 cat >>conftest.$ac_ext <<_ACEOF
48483 /* end confdefs.h.  */
48484
48485 int
48486 main ()
48487 {
48488 /* FIXME: Include the comments suggested by Paul. */
48489 #ifndef __cplusplus
48490   /* Ultrix mips cc rejects this.  */
48491   typedef int charset[2];
48492   const charset x;
48493   /* SunOS 4.1.1 cc rejects this.  */
48494   char const *const *ccp;
48495   char **p;
48496   /* NEC SVR4.0.2 mips cc rejects this.  */
48497   struct point {int x, y;};
48498   static struct point const zero = {0,0};
48499   /* AIX XL C 1.02.0.0 rejects this.
48500      It does not let you subtract one const X* pointer from another in
48501      an arm of an if-expression whose if-part is not a constant
48502      expression */
48503   const char *g = "string";
48504   ccp = &g + (g ? g-g : 0);
48505   /* HPUX 7.0 cc rejects these. */
48506   ++ccp;
48507   p = (char**) ccp;
48508   ccp = (char const *const *) p;
48509   { /* SCO 3.2v4 cc rejects this.  */
48510     char *t;
48511     char const *s = 0 ? (char *) 0 : (char const *) 0;
48512
48513     *t++ = 0;
48514   }
48515   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48516     int x[] = {25, 17};
48517     const int *foo = &x[0];
48518     ++foo;
48519   }
48520   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48521     typedef const int *iptr;
48522     iptr p = 0;
48523     ++p;
48524   }
48525   { /* AIX XL C 1.02.0.0 rejects this saying
48526        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48527     struct s { int j; const int *ap[3]; };
48528     struct s *b; b->j = 5;
48529   }
48530   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48531     const int foo = 10;
48532   }
48533 #endif
48534
48535   ;
48536   return 0;
48537 }
48538 _ACEOF
48539 rm -f conftest.$ac_objext
48540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48541   (eval $ac_compile) 2>conftest.er1
48542   ac_status=$?
48543   grep -v '^ *+' conftest.er1 >conftest.err
48544   rm -f conftest.er1
48545   cat conftest.err >&5
48546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48547   (exit $ac_status); } &&
48548          { ac_try='test -z "$ac_c_werror_flag"
48549                          || test ! -s conftest.err'
48550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48551   (eval $ac_try) 2>&5
48552   ac_status=$?
48553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48554   (exit $ac_status); }; } &&
48555          { ac_try='test -s conftest.$ac_objext'
48556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48557   (eval $ac_try) 2>&5
48558   ac_status=$?
48559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48560   (exit $ac_status); }; }; then
48561   ac_cv_c_const=yes
48562 else
48563   echo "$as_me: failed program was:" >&5
48564 sed 's/^/| /' conftest.$ac_ext >&5
48565
48566 ac_cv_c_const=no
48567 fi
48568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48569 fi
48570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48571 echo "${ECHO_T}$ac_cv_c_const" >&6
48572 if test $ac_cv_c_const = no; then
48573
48574 cat >>confdefs.h <<\_ACEOF
48575 #define const
48576 _ACEOF
48577
48578 fi
48579
48580 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48581 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48582 if test "${ol_cv_c_volatile+set}" = set; then
48583   echo $ECHO_N "(cached) $ECHO_C" >&6
48584 else
48585   cat >conftest.$ac_ext <<_ACEOF
48586 /* confdefs.h.  */
48587 _ACEOF
48588 cat confdefs.h >>conftest.$ac_ext
48589 cat >>conftest.$ac_ext <<_ACEOF
48590 /* end confdefs.h.  */
48591 int x, y, z;
48592 int
48593 main ()
48594 {
48595 volatile int a; int * volatile b = x ? &y : &z;
48596       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48597       *b = 0;
48598   ;
48599   return 0;
48600 }
48601 _ACEOF
48602 rm -f conftest.$ac_objext
48603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48604   (eval $ac_compile) 2>conftest.er1
48605   ac_status=$?
48606   grep -v '^ *+' conftest.er1 >conftest.err
48607   rm -f conftest.er1
48608   cat conftest.err >&5
48609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48610   (exit $ac_status); } &&
48611          { ac_try='test -z "$ac_c_werror_flag"
48612                          || test ! -s conftest.err'
48613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48614   (eval $ac_try) 2>&5
48615   ac_status=$?
48616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48617   (exit $ac_status); }; } &&
48618          { ac_try='test -s conftest.$ac_objext'
48619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48620   (eval $ac_try) 2>&5
48621   ac_status=$?
48622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48623   (exit $ac_status); }; }; then
48624   ol_cv_c_volatile=yes
48625 else
48626   echo "$as_me: failed program was:" >&5
48627 sed 's/^/| /' conftest.$ac_ext >&5
48628
48629 ol_cv_c_volatile=no
48630 fi
48631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48632 fi
48633 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48634 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48635   if test $ol_cv_c_volatile = yes; then
48636     :
48637   else
48638
48639 cat >>confdefs.h <<\_ACEOF
48640 #define volatile
48641 _ACEOF
48642
48643   fi
48644
48645
48646 if test $cross_compiling = yes ; then
48647         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48648 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48649
48650 cat >>confdefs.h <<\_ACEOF
48651 #define CROSS_COMPILING 1
48652 _ACEOF
48653
48654 else
48655         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48656 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48657 if test "${ac_cv_c_bigendian+set}" = set; then
48658   echo $ECHO_N "(cached) $ECHO_C" >&6
48659 else
48660   # See if sys/param.h defines the BYTE_ORDER macro.
48661 cat >conftest.$ac_ext <<_ACEOF
48662 /* confdefs.h.  */
48663 _ACEOF
48664 cat confdefs.h >>conftest.$ac_ext
48665 cat >>conftest.$ac_ext <<_ACEOF
48666 /* end confdefs.h.  */
48667 #include <sys/types.h>
48668 #include <sys/param.h>
48669
48670 int
48671 main ()
48672 {
48673 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48674  bogus endian macros
48675 #endif
48676
48677   ;
48678   return 0;
48679 }
48680 _ACEOF
48681 rm -f conftest.$ac_objext
48682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48683   (eval $ac_compile) 2>conftest.er1
48684   ac_status=$?
48685   grep -v '^ *+' conftest.er1 >conftest.err
48686   rm -f conftest.er1
48687   cat conftest.err >&5
48688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48689   (exit $ac_status); } &&
48690          { ac_try='test -z "$ac_c_werror_flag"
48691                          || test ! -s conftest.err'
48692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48693   (eval $ac_try) 2>&5
48694   ac_status=$?
48695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696   (exit $ac_status); }; } &&
48697          { ac_try='test -s conftest.$ac_objext'
48698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48699   (eval $ac_try) 2>&5
48700   ac_status=$?
48701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48702   (exit $ac_status); }; }; then
48703   # It does; now see whether it defined to BIG_ENDIAN or not.
48704 cat >conftest.$ac_ext <<_ACEOF
48705 /* confdefs.h.  */
48706 _ACEOF
48707 cat confdefs.h >>conftest.$ac_ext
48708 cat >>conftest.$ac_ext <<_ACEOF
48709 /* end confdefs.h.  */
48710 #include <sys/types.h>
48711 #include <sys/param.h>
48712
48713 int
48714 main ()
48715 {
48716 #if BYTE_ORDER != BIG_ENDIAN
48717  not big endian
48718 #endif
48719
48720   ;
48721   return 0;
48722 }
48723 _ACEOF
48724 rm -f conftest.$ac_objext
48725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48726   (eval $ac_compile) 2>conftest.er1
48727   ac_status=$?
48728   grep -v '^ *+' conftest.er1 >conftest.err
48729   rm -f conftest.er1
48730   cat conftest.err >&5
48731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48732   (exit $ac_status); } &&
48733          { ac_try='test -z "$ac_c_werror_flag"
48734                          || test ! -s conftest.err'
48735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48736   (eval $ac_try) 2>&5
48737   ac_status=$?
48738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739   (exit $ac_status); }; } &&
48740          { ac_try='test -s conftest.$ac_objext'
48741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48742   (eval $ac_try) 2>&5
48743   ac_status=$?
48744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745   (exit $ac_status); }; }; then
48746   ac_cv_c_bigendian=yes
48747 else
48748   echo "$as_me: failed program was:" >&5
48749 sed 's/^/| /' conftest.$ac_ext >&5
48750
48751 ac_cv_c_bigendian=no
48752 fi
48753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48754 else
48755   echo "$as_me: failed program was:" >&5
48756 sed 's/^/| /' conftest.$ac_ext >&5
48757
48758 # It does not; compile a test program.
48759 if test "$cross_compiling" = yes; then
48760   # try to guess the endianness by grepping values into an object file
48761   ac_cv_c_bigendian=unknown
48762   cat >conftest.$ac_ext <<_ACEOF
48763 /* confdefs.h.  */
48764 _ACEOF
48765 cat confdefs.h >>conftest.$ac_ext
48766 cat >>conftest.$ac_ext <<_ACEOF
48767 /* end confdefs.h.  */
48768 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48769 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48770 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48771 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48772 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48773 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48774 int
48775 main ()
48776 {
48777  _ascii (); _ebcdic ();
48778   ;
48779   return 0;
48780 }
48781 _ACEOF
48782 rm -f conftest.$ac_objext
48783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48784   (eval $ac_compile) 2>conftest.er1
48785   ac_status=$?
48786   grep -v '^ *+' conftest.er1 >conftest.err
48787   rm -f conftest.er1
48788   cat conftest.err >&5
48789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48790   (exit $ac_status); } &&
48791          { ac_try='test -z "$ac_c_werror_flag"
48792                          || test ! -s conftest.err'
48793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48794   (eval $ac_try) 2>&5
48795   ac_status=$?
48796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797   (exit $ac_status); }; } &&
48798          { ac_try='test -s conftest.$ac_objext'
48799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48800   (eval $ac_try) 2>&5
48801   ac_status=$?
48802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48803   (exit $ac_status); }; }; then
48804   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48805   ac_cv_c_bigendian=yes
48806 fi
48807 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48808   if test "$ac_cv_c_bigendian" = unknown; then
48809     ac_cv_c_bigendian=no
48810   else
48811     # finding both strings is unlikely to happen, but who knows?
48812     ac_cv_c_bigendian=unknown
48813   fi
48814 fi
48815 else
48816   echo "$as_me: failed program was:" >&5
48817 sed 's/^/| /' conftest.$ac_ext >&5
48818
48819 fi
48820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48821 else
48822   cat >conftest.$ac_ext <<_ACEOF
48823 /* confdefs.h.  */
48824 _ACEOF
48825 cat confdefs.h >>conftest.$ac_ext
48826 cat >>conftest.$ac_ext <<_ACEOF
48827 /* end confdefs.h.  */
48828 int
48829 main ()
48830 {
48831   /* Are we little or big endian?  From Harbison&Steele.  */
48832   union
48833   {
48834     long l;
48835     char c[sizeof (long)];
48836   } u;
48837   u.l = 1;
48838   exit (u.c[sizeof (long) - 1] == 1);
48839 }
48840 _ACEOF
48841 rm -f conftest$ac_exeext
48842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48843   (eval $ac_link) 2>&5
48844   ac_status=$?
48845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48848   (eval $ac_try) 2>&5
48849   ac_status=$?
48850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851   (exit $ac_status); }; }; then
48852   ac_cv_c_bigendian=no
48853 else
48854   echo "$as_me: program exited with status $ac_status" >&5
48855 echo "$as_me: failed program was:" >&5
48856 sed 's/^/| /' conftest.$ac_ext >&5
48857
48858 ( exit $ac_status )
48859 ac_cv_c_bigendian=yes
48860 fi
48861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48862 fi
48863 fi
48864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48865 fi
48866 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48867 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48868 case $ac_cv_c_bigendian in
48869   yes)
48870
48871 cat >>confdefs.h <<\_ACEOF
48872 #define WORDS_BIGENDIAN 1
48873 _ACEOF
48874  ;;
48875   no)
48876      ;;
48877   *)
48878     { { echo "$as_me:$LINENO: error: unknown endianness
48879 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48880 echo "$as_me: error: unknown endianness
48881 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48882    { (exit 1); exit 1; }; } ;;
48883 esac
48884
48885 fi
48886
48887 echo "$as_me:$LINENO: checking for short" >&5
48888 echo $ECHO_N "checking for short... $ECHO_C" >&6
48889 if test "${ac_cv_type_short+set}" = set; then
48890   echo $ECHO_N "(cached) $ECHO_C" >&6
48891 else
48892   cat >conftest.$ac_ext <<_ACEOF
48893 /* confdefs.h.  */
48894 _ACEOF
48895 cat confdefs.h >>conftest.$ac_ext
48896 cat >>conftest.$ac_ext <<_ACEOF
48897 /* end confdefs.h.  */
48898 $ac_includes_default
48899 int
48900 main ()
48901 {
48902 if ((short *) 0)
48903   return 0;
48904 if (sizeof (short))
48905   return 0;
48906   ;
48907   return 0;
48908 }
48909 _ACEOF
48910 rm -f conftest.$ac_objext
48911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48912   (eval $ac_compile) 2>conftest.er1
48913   ac_status=$?
48914   grep -v '^ *+' conftest.er1 >conftest.err
48915   rm -f conftest.er1
48916   cat conftest.err >&5
48917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48918   (exit $ac_status); } &&
48919          { ac_try='test -z "$ac_c_werror_flag"
48920                          || test ! -s conftest.err'
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); }; } &&
48926          { ac_try='test -s conftest.$ac_objext'
48927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48928   (eval $ac_try) 2>&5
48929   ac_status=$?
48930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48931   (exit $ac_status); }; }; then
48932   ac_cv_type_short=yes
48933 else
48934   echo "$as_me: failed program was:" >&5
48935 sed 's/^/| /' conftest.$ac_ext >&5
48936
48937 ac_cv_type_short=no
48938 fi
48939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48940 fi
48941 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48942 echo "${ECHO_T}$ac_cv_type_short" >&6
48943
48944 echo "$as_me:$LINENO: checking size of short" >&5
48945 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48946 if test "${ac_cv_sizeof_short+set}" = set; then
48947   echo $ECHO_N "(cached) $ECHO_C" >&6
48948 else
48949   if test "$ac_cv_type_short" = yes; then
48950   # The cast to unsigned long works around a bug in the HP C Compiler
48951   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48952   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48953   # This bug is HP SR number 8606223364.
48954   if test "$cross_compiling" = yes; then
48955   # Depending upon the size, compute the lo and hi bounds.
48956 cat >conftest.$ac_ext <<_ACEOF
48957 /* confdefs.h.  */
48958 _ACEOF
48959 cat confdefs.h >>conftest.$ac_ext
48960 cat >>conftest.$ac_ext <<_ACEOF
48961 /* end confdefs.h.  */
48962 $ac_includes_default
48963 int
48964 main ()
48965 {
48966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48967 test_array [0] = 0
48968
48969   ;
48970   return 0;
48971 }
48972 _ACEOF
48973 rm -f conftest.$ac_objext
48974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48975   (eval $ac_compile) 2>conftest.er1
48976   ac_status=$?
48977   grep -v '^ *+' conftest.er1 >conftest.err
48978   rm -f conftest.er1
48979   cat conftest.err >&5
48980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981   (exit $ac_status); } &&
48982          { ac_try='test -z "$ac_c_werror_flag"
48983                          || test ! -s conftest.err'
48984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48985   (eval $ac_try) 2>&5
48986   ac_status=$?
48987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48988   (exit $ac_status); }; } &&
48989          { ac_try='test -s conftest.$ac_objext'
48990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48991   (eval $ac_try) 2>&5
48992   ac_status=$?
48993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48994   (exit $ac_status); }; }; then
48995   ac_lo=0 ac_mid=0
48996   while :; do
48997     cat >conftest.$ac_ext <<_ACEOF
48998 /* confdefs.h.  */
48999 _ACEOF
49000 cat confdefs.h >>conftest.$ac_ext
49001 cat >>conftest.$ac_ext <<_ACEOF
49002 /* end confdefs.h.  */
49003 $ac_includes_default
49004 int
49005 main ()
49006 {
49007 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49008 test_array [0] = 0
49009
49010   ;
49011   return 0;
49012 }
49013 _ACEOF
49014 rm -f conftest.$ac_objext
49015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49016   (eval $ac_compile) 2>conftest.er1
49017   ac_status=$?
49018   grep -v '^ *+' conftest.er1 >conftest.err
49019   rm -f conftest.er1
49020   cat conftest.err >&5
49021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49022   (exit $ac_status); } &&
49023          { ac_try='test -z "$ac_c_werror_flag"
49024                          || test ! -s conftest.err'
49025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49026   (eval $ac_try) 2>&5
49027   ac_status=$?
49028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49029   (exit $ac_status); }; } &&
49030          { ac_try='test -s conftest.$ac_objext'
49031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49032   (eval $ac_try) 2>&5
49033   ac_status=$?
49034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49035   (exit $ac_status); }; }; then
49036   ac_hi=$ac_mid; break
49037 else
49038   echo "$as_me: failed program was:" >&5
49039 sed 's/^/| /' conftest.$ac_ext >&5
49040
49041 ac_lo=`expr $ac_mid + 1`
49042                     if test $ac_lo -le $ac_mid; then
49043                       ac_lo= ac_hi=
49044                       break
49045                     fi
49046                     ac_mid=`expr 2 '*' $ac_mid + 1`
49047 fi
49048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49049   done
49050 else
49051   echo "$as_me: failed program was:" >&5
49052 sed 's/^/| /' conftest.$ac_ext >&5
49053
49054 cat >conftest.$ac_ext <<_ACEOF
49055 /* confdefs.h.  */
49056 _ACEOF
49057 cat confdefs.h >>conftest.$ac_ext
49058 cat >>conftest.$ac_ext <<_ACEOF
49059 /* end confdefs.h.  */
49060 $ac_includes_default
49061 int
49062 main ()
49063 {
49064 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49065 test_array [0] = 0
49066
49067   ;
49068   return 0;
49069 }
49070 _ACEOF
49071 rm -f conftest.$ac_objext
49072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49073   (eval $ac_compile) 2>conftest.er1
49074   ac_status=$?
49075   grep -v '^ *+' conftest.er1 >conftest.err
49076   rm -f conftest.er1
49077   cat conftest.err >&5
49078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49079   (exit $ac_status); } &&
49080          { ac_try='test -z "$ac_c_werror_flag"
49081                          || test ! -s conftest.err'
49082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49083   (eval $ac_try) 2>&5
49084   ac_status=$?
49085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49086   (exit $ac_status); }; } &&
49087          { ac_try='test -s conftest.$ac_objext'
49088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49089   (eval $ac_try) 2>&5
49090   ac_status=$?
49091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092   (exit $ac_status); }; }; then
49093   ac_hi=-1 ac_mid=-1
49094   while :; do
49095     cat >conftest.$ac_ext <<_ACEOF
49096 /* confdefs.h.  */
49097 _ACEOF
49098 cat confdefs.h >>conftest.$ac_ext
49099 cat >>conftest.$ac_ext <<_ACEOF
49100 /* end confdefs.h.  */
49101 $ac_includes_default
49102 int
49103 main ()
49104 {
49105 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49106 test_array [0] = 0
49107
49108   ;
49109   return 0;
49110 }
49111 _ACEOF
49112 rm -f conftest.$ac_objext
49113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49114   (eval $ac_compile) 2>conftest.er1
49115   ac_status=$?
49116   grep -v '^ *+' conftest.er1 >conftest.err
49117   rm -f conftest.er1
49118   cat conftest.err >&5
49119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49120   (exit $ac_status); } &&
49121          { ac_try='test -z "$ac_c_werror_flag"
49122                          || test ! -s conftest.err'
49123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49124   (eval $ac_try) 2>&5
49125   ac_status=$?
49126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49127   (exit $ac_status); }; } &&
49128          { ac_try='test -s conftest.$ac_objext'
49129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49130   (eval $ac_try) 2>&5
49131   ac_status=$?
49132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49133   (exit $ac_status); }; }; then
49134   ac_lo=$ac_mid; break
49135 else
49136   echo "$as_me: failed program was:" >&5
49137 sed 's/^/| /' conftest.$ac_ext >&5
49138
49139 ac_hi=`expr '(' $ac_mid ')' - 1`
49140                        if test $ac_mid -le $ac_hi; then
49141                          ac_lo= ac_hi=
49142                          break
49143                        fi
49144                        ac_mid=`expr 2 '*' $ac_mid`
49145 fi
49146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49147   done
49148 else
49149   echo "$as_me: failed program was:" >&5
49150 sed 's/^/| /' conftest.$ac_ext >&5
49151
49152 ac_lo= ac_hi=
49153 fi
49154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49155 fi
49156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49157 # Binary search between lo and hi bounds.
49158 while test "x$ac_lo" != "x$ac_hi"; do
49159   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49160   cat >conftest.$ac_ext <<_ACEOF
49161 /* confdefs.h.  */
49162 _ACEOF
49163 cat confdefs.h >>conftest.$ac_ext
49164 cat >>conftest.$ac_ext <<_ACEOF
49165 /* end confdefs.h.  */
49166 $ac_includes_default
49167 int
49168 main ()
49169 {
49170 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49171 test_array [0] = 0
49172
49173   ;
49174   return 0;
49175 }
49176 _ACEOF
49177 rm -f conftest.$ac_objext
49178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49179   (eval $ac_compile) 2>conftest.er1
49180   ac_status=$?
49181   grep -v '^ *+' conftest.er1 >conftest.err
49182   rm -f conftest.er1
49183   cat conftest.err >&5
49184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49185   (exit $ac_status); } &&
49186          { ac_try='test -z "$ac_c_werror_flag"
49187                          || test ! -s conftest.err'
49188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49189   (eval $ac_try) 2>&5
49190   ac_status=$?
49191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49192   (exit $ac_status); }; } &&
49193          { ac_try='test -s conftest.$ac_objext'
49194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49195   (eval $ac_try) 2>&5
49196   ac_status=$?
49197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49198   (exit $ac_status); }; }; then
49199   ac_hi=$ac_mid
49200 else
49201   echo "$as_me: failed program was:" >&5
49202 sed 's/^/| /' conftest.$ac_ext >&5
49203
49204 ac_lo=`expr '(' $ac_mid ')' + 1`
49205 fi
49206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49207 done
49208 case $ac_lo in
49209 ?*) ac_cv_sizeof_short=$ac_lo;;
49210 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49211 See \`config.log' for more details." >&5
49212 echo "$as_me: error: cannot compute sizeof (short), 77
49213 See \`config.log' for more details." >&2;}
49214    { (exit 1); exit 1; }; } ;;
49215 esac
49216 else
49217   if test "$cross_compiling" = yes; then
49218   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49219 See \`config.log' for more details." >&5
49220 echo "$as_me: error: cannot run test program while cross compiling
49221 See \`config.log' for more details." >&2;}
49222    { (exit 1); exit 1; }; }
49223 else
49224   cat >conftest.$ac_ext <<_ACEOF
49225 /* confdefs.h.  */
49226 _ACEOF
49227 cat confdefs.h >>conftest.$ac_ext
49228 cat >>conftest.$ac_ext <<_ACEOF
49229 /* end confdefs.h.  */
49230 $ac_includes_default
49231 long longval () { return (long) (sizeof (short)); }
49232 unsigned long ulongval () { return (long) (sizeof (short)); }
49233 #include <stdio.h>
49234 #include <stdlib.h>
49235 int
49236 main ()
49237 {
49238
49239   FILE *f = fopen ("conftest.val", "w");
49240   if (! f)
49241     exit (1);
49242   if (((long) (sizeof (short))) < 0)
49243     {
49244       long i = longval ();
49245       if (i != ((long) (sizeof (short))))
49246         exit (1);
49247       fprintf (f, "%ld\n", i);
49248     }
49249   else
49250     {
49251       unsigned long i = ulongval ();
49252       if (i != ((long) (sizeof (short))))
49253         exit (1);
49254       fprintf (f, "%lu\n", i);
49255     }
49256   exit (ferror (f) || fclose (f) != 0);
49257
49258   ;
49259   return 0;
49260 }
49261 _ACEOF
49262 rm -f conftest$ac_exeext
49263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49264   (eval $ac_link) 2>&5
49265   ac_status=$?
49266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_short=`cat conftest.val`
49274 else
49275   echo "$as_me: program exited with status $ac_status" >&5
49276 echo "$as_me: failed program was:" >&5
49277 sed 's/^/| /' conftest.$ac_ext >&5
49278
49279 ( exit $ac_status )
49280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49281 See \`config.log' for more details." >&5
49282 echo "$as_me: error: cannot compute sizeof (short), 77
49283 See \`config.log' for more details." >&2;}
49284    { (exit 1); exit 1; }; }
49285 fi
49286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49287 fi
49288 fi
49289 rm -f conftest.val
49290 else
49291   ac_cv_sizeof_short=0
49292 fi
49293 fi
49294 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49295 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49296 cat >>confdefs.h <<_ACEOF
49297 #define SIZEOF_SHORT $ac_cv_sizeof_short
49298 _ACEOF
49299
49300
49301 echo "$as_me:$LINENO: checking for int" >&5
49302 echo $ECHO_N "checking for int... $ECHO_C" >&6
49303 if test "${ac_cv_type_int+set}" = set; then
49304   echo $ECHO_N "(cached) $ECHO_C" >&6
49305 else
49306   cat >conftest.$ac_ext <<_ACEOF
49307 /* confdefs.h.  */
49308 _ACEOF
49309 cat confdefs.h >>conftest.$ac_ext
49310 cat >>conftest.$ac_ext <<_ACEOF
49311 /* end confdefs.h.  */
49312 $ac_includes_default
49313 int
49314 main ()
49315 {
49316 if ((int *) 0)
49317   return 0;
49318 if (sizeof (int))
49319   return 0;
49320   ;
49321   return 0;
49322 }
49323 _ACEOF
49324 rm -f conftest.$ac_objext
49325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49326   (eval $ac_compile) 2>conftest.er1
49327   ac_status=$?
49328   grep -v '^ *+' conftest.er1 >conftest.err
49329   rm -f conftest.er1
49330   cat conftest.err >&5
49331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49332   (exit $ac_status); } &&
49333          { ac_try='test -z "$ac_c_werror_flag"
49334                          || test ! -s conftest.err'
49335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49336   (eval $ac_try) 2>&5
49337   ac_status=$?
49338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49339   (exit $ac_status); }; } &&
49340          { ac_try='test -s conftest.$ac_objext'
49341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49342   (eval $ac_try) 2>&5
49343   ac_status=$?
49344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49345   (exit $ac_status); }; }; then
49346   ac_cv_type_int=yes
49347 else
49348   echo "$as_me: failed program was:" >&5
49349 sed 's/^/| /' conftest.$ac_ext >&5
49350
49351 ac_cv_type_int=no
49352 fi
49353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49354 fi
49355 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49356 echo "${ECHO_T}$ac_cv_type_int" >&6
49357
49358 echo "$as_me:$LINENO: checking size of int" >&5
49359 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49360 if test "${ac_cv_sizeof_int+set}" = set; then
49361   echo $ECHO_N "(cached) $ECHO_C" >&6
49362 else
49363   if test "$ac_cv_type_int" = yes; then
49364   # The cast to unsigned long works around a bug in the HP C Compiler
49365   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49366   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49367   # This bug is HP SR number 8606223364.
49368   if test "$cross_compiling" = yes; then
49369   # Depending upon the size, compute the lo and hi bounds.
49370 cat >conftest.$ac_ext <<_ACEOF
49371 /* confdefs.h.  */
49372 _ACEOF
49373 cat confdefs.h >>conftest.$ac_ext
49374 cat >>conftest.$ac_ext <<_ACEOF
49375 /* end confdefs.h.  */
49376 $ac_includes_default
49377 int
49378 main ()
49379 {
49380 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49381 test_array [0] = 0
49382
49383   ;
49384   return 0;
49385 }
49386 _ACEOF
49387 rm -f conftest.$ac_objext
49388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49389   (eval $ac_compile) 2>conftest.er1
49390   ac_status=$?
49391   grep -v '^ *+' conftest.er1 >conftest.err
49392   rm -f conftest.er1
49393   cat conftest.err >&5
49394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49395   (exit $ac_status); } &&
49396          { ac_try='test -z "$ac_c_werror_flag"
49397                          || test ! -s conftest.err'
49398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49399   (eval $ac_try) 2>&5
49400   ac_status=$?
49401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49402   (exit $ac_status); }; } &&
49403          { ac_try='test -s conftest.$ac_objext'
49404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49405   (eval $ac_try) 2>&5
49406   ac_status=$?
49407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49408   (exit $ac_status); }; }; then
49409   ac_lo=0 ac_mid=0
49410   while :; do
49411     cat >conftest.$ac_ext <<_ACEOF
49412 /* confdefs.h.  */
49413 _ACEOF
49414 cat confdefs.h >>conftest.$ac_ext
49415 cat >>conftest.$ac_ext <<_ACEOF
49416 /* end confdefs.h.  */
49417 $ac_includes_default
49418 int
49419 main ()
49420 {
49421 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49422 test_array [0] = 0
49423
49424   ;
49425   return 0;
49426 }
49427 _ACEOF
49428 rm -f conftest.$ac_objext
49429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49430   (eval $ac_compile) 2>conftest.er1
49431   ac_status=$?
49432   grep -v '^ *+' conftest.er1 >conftest.err
49433   rm -f conftest.er1
49434   cat conftest.err >&5
49435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49436   (exit $ac_status); } &&
49437          { ac_try='test -z "$ac_c_werror_flag"
49438                          || test ! -s conftest.err'
49439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49440   (eval $ac_try) 2>&5
49441   ac_status=$?
49442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49443   (exit $ac_status); }; } &&
49444          { ac_try='test -s conftest.$ac_objext'
49445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49446   (eval $ac_try) 2>&5
49447   ac_status=$?
49448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49449   (exit $ac_status); }; }; then
49450   ac_hi=$ac_mid; break
49451 else
49452   echo "$as_me: failed program was:" >&5
49453 sed 's/^/| /' conftest.$ac_ext >&5
49454
49455 ac_lo=`expr $ac_mid + 1`
49456                     if test $ac_lo -le $ac_mid; then
49457                       ac_lo= ac_hi=
49458                       break
49459                     fi
49460                     ac_mid=`expr 2 '*' $ac_mid + 1`
49461 fi
49462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49463   done
49464 else
49465   echo "$as_me: failed program was:" >&5
49466 sed 's/^/| /' conftest.$ac_ext >&5
49467
49468 cat >conftest.$ac_ext <<_ACEOF
49469 /* confdefs.h.  */
49470 _ACEOF
49471 cat confdefs.h >>conftest.$ac_ext
49472 cat >>conftest.$ac_ext <<_ACEOF
49473 /* end confdefs.h.  */
49474 $ac_includes_default
49475 int
49476 main ()
49477 {
49478 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49479 test_array [0] = 0
49480
49481   ;
49482   return 0;
49483 }
49484 _ACEOF
49485 rm -f conftest.$ac_objext
49486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49487   (eval $ac_compile) 2>conftest.er1
49488   ac_status=$?
49489   grep -v '^ *+' conftest.er1 >conftest.err
49490   rm -f conftest.er1
49491   cat conftest.err >&5
49492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493   (exit $ac_status); } &&
49494          { ac_try='test -z "$ac_c_werror_flag"
49495                          || test ! -s conftest.err'
49496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49497   (eval $ac_try) 2>&5
49498   ac_status=$?
49499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49500   (exit $ac_status); }; } &&
49501          { ac_try='test -s conftest.$ac_objext'
49502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49503   (eval $ac_try) 2>&5
49504   ac_status=$?
49505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49506   (exit $ac_status); }; }; then
49507   ac_hi=-1 ac_mid=-1
49508   while :; do
49509     cat >conftest.$ac_ext <<_ACEOF
49510 /* confdefs.h.  */
49511 _ACEOF
49512 cat confdefs.h >>conftest.$ac_ext
49513 cat >>conftest.$ac_ext <<_ACEOF
49514 /* end confdefs.h.  */
49515 $ac_includes_default
49516 int
49517 main ()
49518 {
49519 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49520 test_array [0] = 0
49521
49522   ;
49523   return 0;
49524 }
49525 _ACEOF
49526 rm -f conftest.$ac_objext
49527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49528   (eval $ac_compile) 2>conftest.er1
49529   ac_status=$?
49530   grep -v '^ *+' conftest.er1 >conftest.err
49531   rm -f conftest.er1
49532   cat conftest.err >&5
49533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49534   (exit $ac_status); } &&
49535          { ac_try='test -z "$ac_c_werror_flag"
49536                          || test ! -s conftest.err'
49537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49538   (eval $ac_try) 2>&5
49539   ac_status=$?
49540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49541   (exit $ac_status); }; } &&
49542          { ac_try='test -s conftest.$ac_objext'
49543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49544   (eval $ac_try) 2>&5
49545   ac_status=$?
49546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49547   (exit $ac_status); }; }; then
49548   ac_lo=$ac_mid; break
49549 else
49550   echo "$as_me: failed program was:" >&5
49551 sed 's/^/| /' conftest.$ac_ext >&5
49552
49553 ac_hi=`expr '(' $ac_mid ')' - 1`
49554                        if test $ac_mid -le $ac_hi; then
49555                          ac_lo= ac_hi=
49556                          break
49557                        fi
49558                        ac_mid=`expr 2 '*' $ac_mid`
49559 fi
49560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49561   done
49562 else
49563   echo "$as_me: failed program was:" >&5
49564 sed 's/^/| /' conftest.$ac_ext >&5
49565
49566 ac_lo= ac_hi=
49567 fi
49568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49569 fi
49570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49571 # Binary search between lo and hi bounds.
49572 while test "x$ac_lo" != "x$ac_hi"; do
49573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49574   cat >conftest.$ac_ext <<_ACEOF
49575 /* confdefs.h.  */
49576 _ACEOF
49577 cat confdefs.h >>conftest.$ac_ext
49578 cat >>conftest.$ac_ext <<_ACEOF
49579 /* end confdefs.h.  */
49580 $ac_includes_default
49581 int
49582 main ()
49583 {
49584 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49585 test_array [0] = 0
49586
49587   ;
49588   return 0;
49589 }
49590 _ACEOF
49591 rm -f conftest.$ac_objext
49592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49593   (eval $ac_compile) 2>conftest.er1
49594   ac_status=$?
49595   grep -v '^ *+' conftest.er1 >conftest.err
49596   rm -f conftest.er1
49597   cat conftest.err >&5
49598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599   (exit $ac_status); } &&
49600          { ac_try='test -z "$ac_c_werror_flag"
49601                          || test ! -s conftest.err'
49602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49603   (eval $ac_try) 2>&5
49604   ac_status=$?
49605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606   (exit $ac_status); }; } &&
49607          { ac_try='test -s conftest.$ac_objext'
49608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49609   (eval $ac_try) 2>&5
49610   ac_status=$?
49611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612   (exit $ac_status); }; }; then
49613   ac_hi=$ac_mid
49614 else
49615   echo "$as_me: failed program was:" >&5
49616 sed 's/^/| /' conftest.$ac_ext >&5
49617
49618 ac_lo=`expr '(' $ac_mid ')' + 1`
49619 fi
49620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49621 done
49622 case $ac_lo in
49623 ?*) ac_cv_sizeof_int=$ac_lo;;
49624 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49625 See \`config.log' for more details." >&5
49626 echo "$as_me: error: cannot compute sizeof (int), 77
49627 See \`config.log' for more details." >&2;}
49628    { (exit 1); exit 1; }; } ;;
49629 esac
49630 else
49631   if test "$cross_compiling" = yes; then
49632   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49633 See \`config.log' for more details." >&5
49634 echo "$as_me: error: cannot run test program while cross compiling
49635 See \`config.log' for more details." >&2;}
49636    { (exit 1); exit 1; }; }
49637 else
49638   cat >conftest.$ac_ext <<_ACEOF
49639 /* confdefs.h.  */
49640 _ACEOF
49641 cat confdefs.h >>conftest.$ac_ext
49642 cat >>conftest.$ac_ext <<_ACEOF
49643 /* end confdefs.h.  */
49644 $ac_includes_default
49645 long longval () { return (long) (sizeof (int)); }
49646 unsigned long ulongval () { return (long) (sizeof (int)); }
49647 #include <stdio.h>
49648 #include <stdlib.h>
49649 int
49650 main ()
49651 {
49652
49653   FILE *f = fopen ("conftest.val", "w");
49654   if (! f)
49655     exit (1);
49656   if (((long) (sizeof (int))) < 0)
49657     {
49658       long i = longval ();
49659       if (i != ((long) (sizeof (int))))
49660         exit (1);
49661       fprintf (f, "%ld\n", i);
49662     }
49663   else
49664     {
49665       unsigned long i = ulongval ();
49666       if (i != ((long) (sizeof (int))))
49667         exit (1);
49668       fprintf (f, "%lu\n", i);
49669     }
49670   exit (ferror (f) || fclose (f) != 0);
49671
49672   ;
49673   return 0;
49674 }
49675 _ACEOF
49676 rm -f conftest$ac_exeext
49677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49678   (eval $ac_link) 2>&5
49679   ac_status=$?
49680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
49688 else
49689   echo "$as_me: program exited with status $ac_status" >&5
49690 echo "$as_me: failed program was:" >&5
49691 sed 's/^/| /' conftest.$ac_ext >&5
49692
49693 ( exit $ac_status )
49694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49695 See \`config.log' for more details." >&5
49696 echo "$as_me: error: cannot compute sizeof (int), 77
49697 See \`config.log' for more details." >&2;}
49698    { (exit 1); exit 1; }; }
49699 fi
49700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49701 fi
49702 fi
49703 rm -f conftest.val
49704 else
49705   ac_cv_sizeof_int=0
49706 fi
49707 fi
49708 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49709 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49710 cat >>confdefs.h <<_ACEOF
49711 #define SIZEOF_INT $ac_cv_sizeof_int
49712 _ACEOF
49713
49714
49715 echo "$as_me:$LINENO: checking for long" >&5
49716 echo $ECHO_N "checking for long... $ECHO_C" >&6
49717 if test "${ac_cv_type_long+set}" = set; then
49718   echo $ECHO_N "(cached) $ECHO_C" >&6
49719 else
49720   cat >conftest.$ac_ext <<_ACEOF
49721 /* confdefs.h.  */
49722 _ACEOF
49723 cat confdefs.h >>conftest.$ac_ext
49724 cat >>conftest.$ac_ext <<_ACEOF
49725 /* end confdefs.h.  */
49726 $ac_includes_default
49727 int
49728 main ()
49729 {
49730 if ((long *) 0)
49731   return 0;
49732 if (sizeof (long))
49733   return 0;
49734   ;
49735   return 0;
49736 }
49737 _ACEOF
49738 rm -f conftest.$ac_objext
49739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49740   (eval $ac_compile) 2>conftest.er1
49741   ac_status=$?
49742   grep -v '^ *+' conftest.er1 >conftest.err
49743   rm -f conftest.er1
49744   cat conftest.err >&5
49745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49746   (exit $ac_status); } &&
49747          { ac_try='test -z "$ac_c_werror_flag"
49748                          || test ! -s conftest.err'
49749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49750   (eval $ac_try) 2>&5
49751   ac_status=$?
49752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753   (exit $ac_status); }; } &&
49754          { ac_try='test -s conftest.$ac_objext'
49755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756   (eval $ac_try) 2>&5
49757   ac_status=$?
49758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759   (exit $ac_status); }; }; then
49760   ac_cv_type_long=yes
49761 else
49762   echo "$as_me: failed program was:" >&5
49763 sed 's/^/| /' conftest.$ac_ext >&5
49764
49765 ac_cv_type_long=no
49766 fi
49767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49768 fi
49769 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49770 echo "${ECHO_T}$ac_cv_type_long" >&6
49771
49772 echo "$as_me:$LINENO: checking size of long" >&5
49773 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49774 if test "${ac_cv_sizeof_long+set}" = set; then
49775   echo $ECHO_N "(cached) $ECHO_C" >&6
49776 else
49777   if test "$ac_cv_type_long" = yes; then
49778   # The cast to unsigned long works around a bug in the HP C Compiler
49779   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49780   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49781   # This bug is HP SR number 8606223364.
49782   if test "$cross_compiling" = yes; then
49783   # Depending upon the size, compute the lo and hi bounds.
49784 cat >conftest.$ac_ext <<_ACEOF
49785 /* confdefs.h.  */
49786 _ACEOF
49787 cat confdefs.h >>conftest.$ac_ext
49788 cat >>conftest.$ac_ext <<_ACEOF
49789 /* end confdefs.h.  */
49790 $ac_includes_default
49791 int
49792 main ()
49793 {
49794 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49795 test_array [0] = 0
49796
49797   ;
49798   return 0;
49799 }
49800 _ACEOF
49801 rm -f conftest.$ac_objext
49802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49803   (eval $ac_compile) 2>conftest.er1
49804   ac_status=$?
49805   grep -v '^ *+' conftest.er1 >conftest.err
49806   rm -f conftest.er1
49807   cat conftest.err >&5
49808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49809   (exit $ac_status); } &&
49810          { ac_try='test -z "$ac_c_werror_flag"
49811                          || test ! -s conftest.err'
49812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49813   (eval $ac_try) 2>&5
49814   ac_status=$?
49815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49816   (exit $ac_status); }; } &&
49817          { ac_try='test -s conftest.$ac_objext'
49818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49819   (eval $ac_try) 2>&5
49820   ac_status=$?
49821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49822   (exit $ac_status); }; }; then
49823   ac_lo=0 ac_mid=0
49824   while :; do
49825     cat >conftest.$ac_ext <<_ACEOF
49826 /* confdefs.h.  */
49827 _ACEOF
49828 cat confdefs.h >>conftest.$ac_ext
49829 cat >>conftest.$ac_ext <<_ACEOF
49830 /* end confdefs.h.  */
49831 $ac_includes_default
49832 int
49833 main ()
49834 {
49835 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49836 test_array [0] = 0
49837
49838   ;
49839   return 0;
49840 }
49841 _ACEOF
49842 rm -f conftest.$ac_objext
49843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49844   (eval $ac_compile) 2>conftest.er1
49845   ac_status=$?
49846   grep -v '^ *+' conftest.er1 >conftest.err
49847   rm -f conftest.er1
49848   cat conftest.err >&5
49849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49850   (exit $ac_status); } &&
49851          { ac_try='test -z "$ac_c_werror_flag"
49852                          || test ! -s conftest.err'
49853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49854   (eval $ac_try) 2>&5
49855   ac_status=$?
49856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49857   (exit $ac_status); }; } &&
49858          { ac_try='test -s conftest.$ac_objext'
49859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49860   (eval $ac_try) 2>&5
49861   ac_status=$?
49862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49863   (exit $ac_status); }; }; then
49864   ac_hi=$ac_mid; break
49865 else
49866   echo "$as_me: failed program was:" >&5
49867 sed 's/^/| /' conftest.$ac_ext >&5
49868
49869 ac_lo=`expr $ac_mid + 1`
49870                     if test $ac_lo -le $ac_mid; then
49871                       ac_lo= ac_hi=
49872                       break
49873                     fi
49874                     ac_mid=`expr 2 '*' $ac_mid + 1`
49875 fi
49876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49877   done
49878 else
49879   echo "$as_me: failed program was:" >&5
49880 sed 's/^/| /' conftest.$ac_ext >&5
49881
49882 cat >conftest.$ac_ext <<_ACEOF
49883 /* confdefs.h.  */
49884 _ACEOF
49885 cat confdefs.h >>conftest.$ac_ext
49886 cat >>conftest.$ac_ext <<_ACEOF
49887 /* end confdefs.h.  */
49888 $ac_includes_default
49889 int
49890 main ()
49891 {
49892 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49893 test_array [0] = 0
49894
49895   ;
49896   return 0;
49897 }
49898 _ACEOF
49899 rm -f conftest.$ac_objext
49900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49901   (eval $ac_compile) 2>conftest.er1
49902   ac_status=$?
49903   grep -v '^ *+' conftest.er1 >conftest.err
49904   rm -f conftest.er1
49905   cat conftest.err >&5
49906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49907   (exit $ac_status); } &&
49908          { ac_try='test -z "$ac_c_werror_flag"
49909                          || test ! -s conftest.err'
49910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49911   (eval $ac_try) 2>&5
49912   ac_status=$?
49913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49914   (exit $ac_status); }; } &&
49915          { ac_try='test -s conftest.$ac_objext'
49916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49917   (eval $ac_try) 2>&5
49918   ac_status=$?
49919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920   (exit $ac_status); }; }; then
49921   ac_hi=-1 ac_mid=-1
49922   while :; do
49923     cat >conftest.$ac_ext <<_ACEOF
49924 /* confdefs.h.  */
49925 _ACEOF
49926 cat confdefs.h >>conftest.$ac_ext
49927 cat >>conftest.$ac_ext <<_ACEOF
49928 /* end confdefs.h.  */
49929 $ac_includes_default
49930 int
49931 main ()
49932 {
49933 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49934 test_array [0] = 0
49935
49936   ;
49937   return 0;
49938 }
49939 _ACEOF
49940 rm -f conftest.$ac_objext
49941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49942   (eval $ac_compile) 2>conftest.er1
49943   ac_status=$?
49944   grep -v '^ *+' conftest.er1 >conftest.err
49945   rm -f conftest.er1
49946   cat conftest.err >&5
49947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948   (exit $ac_status); } &&
49949          { ac_try='test -z "$ac_c_werror_flag"
49950                          || test ! -s conftest.err'
49951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49952   (eval $ac_try) 2>&5
49953   ac_status=$?
49954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49955   (exit $ac_status); }; } &&
49956          { ac_try='test -s conftest.$ac_objext'
49957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49958   (eval $ac_try) 2>&5
49959   ac_status=$?
49960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49961   (exit $ac_status); }; }; then
49962   ac_lo=$ac_mid; break
49963 else
49964   echo "$as_me: failed program was:" >&5
49965 sed 's/^/| /' conftest.$ac_ext >&5
49966
49967 ac_hi=`expr '(' $ac_mid ')' - 1`
49968                        if test $ac_mid -le $ac_hi; then
49969                          ac_lo= ac_hi=
49970                          break
49971                        fi
49972                        ac_mid=`expr 2 '*' $ac_mid`
49973 fi
49974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49975   done
49976 else
49977   echo "$as_me: failed program was:" >&5
49978 sed 's/^/| /' conftest.$ac_ext >&5
49979
49980 ac_lo= ac_hi=
49981 fi
49982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49983 fi
49984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49985 # Binary search between lo and hi bounds.
49986 while test "x$ac_lo" != "x$ac_hi"; do
49987   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49988   cat >conftest.$ac_ext <<_ACEOF
49989 /* confdefs.h.  */
49990 _ACEOF
49991 cat confdefs.h >>conftest.$ac_ext
49992 cat >>conftest.$ac_ext <<_ACEOF
49993 /* end confdefs.h.  */
49994 $ac_includes_default
49995 int
49996 main ()
49997 {
49998 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49999 test_array [0] = 0
50000
50001   ;
50002   return 0;
50003 }
50004 _ACEOF
50005 rm -f conftest.$ac_objext
50006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50007   (eval $ac_compile) 2>conftest.er1
50008   ac_status=$?
50009   grep -v '^ *+' conftest.er1 >conftest.err
50010   rm -f conftest.er1
50011   cat conftest.err >&5
50012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50013   (exit $ac_status); } &&
50014          { ac_try='test -z "$ac_c_werror_flag"
50015                          || test ! -s conftest.err'
50016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50017   (eval $ac_try) 2>&5
50018   ac_status=$?
50019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50020   (exit $ac_status); }; } &&
50021          { ac_try='test -s conftest.$ac_objext'
50022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50023   (eval $ac_try) 2>&5
50024   ac_status=$?
50025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50026   (exit $ac_status); }; }; then
50027   ac_hi=$ac_mid
50028 else
50029   echo "$as_me: failed program was:" >&5
50030 sed 's/^/| /' conftest.$ac_ext >&5
50031
50032 ac_lo=`expr '(' $ac_mid ')' + 1`
50033 fi
50034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50035 done
50036 case $ac_lo in
50037 ?*) ac_cv_sizeof_long=$ac_lo;;
50038 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50039 See \`config.log' for more details." >&5
50040 echo "$as_me: error: cannot compute sizeof (long), 77
50041 See \`config.log' for more details." >&2;}
50042    { (exit 1); exit 1; }; } ;;
50043 esac
50044 else
50045   if test "$cross_compiling" = yes; then
50046   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50047 See \`config.log' for more details." >&5
50048 echo "$as_me: error: cannot run test program while cross compiling
50049 See \`config.log' for more details." >&2;}
50050    { (exit 1); exit 1; }; }
50051 else
50052   cat >conftest.$ac_ext <<_ACEOF
50053 /* confdefs.h.  */
50054 _ACEOF
50055 cat confdefs.h >>conftest.$ac_ext
50056 cat >>conftest.$ac_ext <<_ACEOF
50057 /* end confdefs.h.  */
50058 $ac_includes_default
50059 long longval () { return (long) (sizeof (long)); }
50060 unsigned long ulongval () { return (long) (sizeof (long)); }
50061 #include <stdio.h>
50062 #include <stdlib.h>
50063 int
50064 main ()
50065 {
50066
50067   FILE *f = fopen ("conftest.val", "w");
50068   if (! f)
50069     exit (1);
50070   if (((long) (sizeof (long))) < 0)
50071     {
50072       long i = longval ();
50073       if (i != ((long) (sizeof (long))))
50074         exit (1);
50075       fprintf (f, "%ld\n", i);
50076     }
50077   else
50078     {
50079       unsigned long i = ulongval ();
50080       if (i != ((long) (sizeof (long))))
50081         exit (1);
50082       fprintf (f, "%lu\n", i);
50083     }
50084   exit (ferror (f) || fclose (f) != 0);
50085
50086   ;
50087   return 0;
50088 }
50089 _ACEOF
50090 rm -f conftest$ac_exeext
50091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50092   (eval $ac_link) 2>&5
50093   ac_status=$?
50094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
50102 else
50103   echo "$as_me: program exited with status $ac_status" >&5
50104 echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50106
50107 ( exit $ac_status )
50108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50109 See \`config.log' for more details." >&5
50110 echo "$as_me: error: cannot compute sizeof (long), 77
50111 See \`config.log' for more details." >&2;}
50112    { (exit 1); exit 1; }; }
50113 fi
50114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50115 fi
50116 fi
50117 rm -f conftest.val
50118 else
50119   ac_cv_sizeof_long=0
50120 fi
50121 fi
50122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50123 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50124 cat >>confdefs.h <<_ACEOF
50125 #define SIZEOF_LONG $ac_cv_sizeof_long
50126 _ACEOF
50127
50128
50129 echo "$as_me:$LINENO: checking for wchar_t" >&5
50130 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50131 if test "${ac_cv_type_wchar_t+set}" = set; then
50132   echo $ECHO_N "(cached) $ECHO_C" >&6
50133 else
50134   cat >conftest.$ac_ext <<_ACEOF
50135 /* confdefs.h.  */
50136 _ACEOF
50137 cat confdefs.h >>conftest.$ac_ext
50138 cat >>conftest.$ac_ext <<_ACEOF
50139 /* end confdefs.h.  */
50140 $ac_includes_default
50141 int
50142 main ()
50143 {
50144 if ((wchar_t *) 0)
50145   return 0;
50146 if (sizeof (wchar_t))
50147   return 0;
50148   ;
50149   return 0;
50150 }
50151 _ACEOF
50152 rm -f conftest.$ac_objext
50153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50154   (eval $ac_compile) 2>conftest.er1
50155   ac_status=$?
50156   grep -v '^ *+' conftest.er1 >conftest.err
50157   rm -f conftest.er1
50158   cat conftest.err >&5
50159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50160   (exit $ac_status); } &&
50161          { ac_try='test -z "$ac_c_werror_flag"
50162                          || test ! -s conftest.err'
50163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50164   (eval $ac_try) 2>&5
50165   ac_status=$?
50166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50167   (exit $ac_status); }; } &&
50168          { ac_try='test -s conftest.$ac_objext'
50169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50170   (eval $ac_try) 2>&5
50171   ac_status=$?
50172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50173   (exit $ac_status); }; }; then
50174   ac_cv_type_wchar_t=yes
50175 else
50176   echo "$as_me: failed program was:" >&5
50177 sed 's/^/| /' conftest.$ac_ext >&5
50178
50179 ac_cv_type_wchar_t=no
50180 fi
50181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50182 fi
50183 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50184 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50185
50186 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50187 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50188 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50189   echo $ECHO_N "(cached) $ECHO_C" >&6
50190 else
50191   if test "$ac_cv_type_wchar_t" = yes; then
50192   # The cast to unsigned long works around a bug in the HP C Compiler
50193   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50194   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50195   # This bug is HP SR number 8606223364.
50196   if test "$cross_compiling" = yes; then
50197   # Depending upon the size, compute the lo and hi bounds.
50198 cat >conftest.$ac_ext <<_ACEOF
50199 /* confdefs.h.  */
50200 _ACEOF
50201 cat confdefs.h >>conftest.$ac_ext
50202 cat >>conftest.$ac_ext <<_ACEOF
50203 /* end confdefs.h.  */
50204 $ac_includes_default
50205 int
50206 main ()
50207 {
50208 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50209 test_array [0] = 0
50210
50211   ;
50212   return 0;
50213 }
50214 _ACEOF
50215 rm -f conftest.$ac_objext
50216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50217   (eval $ac_compile) 2>conftest.er1
50218   ac_status=$?
50219   grep -v '^ *+' conftest.er1 >conftest.err
50220   rm -f conftest.er1
50221   cat conftest.err >&5
50222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50223   (exit $ac_status); } &&
50224          { ac_try='test -z "$ac_c_werror_flag"
50225                          || test ! -s conftest.err'
50226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50227   (eval $ac_try) 2>&5
50228   ac_status=$?
50229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50230   (exit $ac_status); }; } &&
50231          { ac_try='test -s conftest.$ac_objext'
50232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50233   (eval $ac_try) 2>&5
50234   ac_status=$?
50235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50236   (exit $ac_status); }; }; then
50237   ac_lo=0 ac_mid=0
50238   while :; do
50239     cat >conftest.$ac_ext <<_ACEOF
50240 /* confdefs.h.  */
50241 _ACEOF
50242 cat confdefs.h >>conftest.$ac_ext
50243 cat >>conftest.$ac_ext <<_ACEOF
50244 /* end confdefs.h.  */
50245 $ac_includes_default
50246 int
50247 main ()
50248 {
50249 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50250 test_array [0] = 0
50251
50252   ;
50253   return 0;
50254 }
50255 _ACEOF
50256 rm -f conftest.$ac_objext
50257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50258   (eval $ac_compile) 2>conftest.er1
50259   ac_status=$?
50260   grep -v '^ *+' conftest.er1 >conftest.err
50261   rm -f conftest.er1
50262   cat conftest.err >&5
50263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50264   (exit $ac_status); } &&
50265          { ac_try='test -z "$ac_c_werror_flag"
50266                          || test ! -s conftest.err'
50267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50268   (eval $ac_try) 2>&5
50269   ac_status=$?
50270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50271   (exit $ac_status); }; } &&
50272          { ac_try='test -s conftest.$ac_objext'
50273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50274   (eval $ac_try) 2>&5
50275   ac_status=$?
50276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50277   (exit $ac_status); }; }; then
50278   ac_hi=$ac_mid; break
50279 else
50280   echo "$as_me: failed program was:" >&5
50281 sed 's/^/| /' conftest.$ac_ext >&5
50282
50283 ac_lo=`expr $ac_mid + 1`
50284                     if test $ac_lo -le $ac_mid; then
50285                       ac_lo= ac_hi=
50286                       break
50287                     fi
50288                     ac_mid=`expr 2 '*' $ac_mid + 1`
50289 fi
50290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50291   done
50292 else
50293   echo "$as_me: failed program was:" >&5
50294 sed 's/^/| /' conftest.$ac_ext >&5
50295
50296 cat >conftest.$ac_ext <<_ACEOF
50297 /* confdefs.h.  */
50298 _ACEOF
50299 cat confdefs.h >>conftest.$ac_ext
50300 cat >>conftest.$ac_ext <<_ACEOF
50301 /* end confdefs.h.  */
50302 $ac_includes_default
50303 int
50304 main ()
50305 {
50306 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50307 test_array [0] = 0
50308
50309   ;
50310   return 0;
50311 }
50312 _ACEOF
50313 rm -f conftest.$ac_objext
50314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50315   (eval $ac_compile) 2>conftest.er1
50316   ac_status=$?
50317   grep -v '^ *+' conftest.er1 >conftest.err
50318   rm -f conftest.er1
50319   cat conftest.err >&5
50320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50321   (exit $ac_status); } &&
50322          { ac_try='test -z "$ac_c_werror_flag"
50323                          || test ! -s conftest.err'
50324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50325   (eval $ac_try) 2>&5
50326   ac_status=$?
50327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50328   (exit $ac_status); }; } &&
50329          { ac_try='test -s conftest.$ac_objext'
50330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50331   (eval $ac_try) 2>&5
50332   ac_status=$?
50333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50334   (exit $ac_status); }; }; then
50335   ac_hi=-1 ac_mid=-1
50336   while :; do
50337     cat >conftest.$ac_ext <<_ACEOF
50338 /* confdefs.h.  */
50339 _ACEOF
50340 cat confdefs.h >>conftest.$ac_ext
50341 cat >>conftest.$ac_ext <<_ACEOF
50342 /* end confdefs.h.  */
50343 $ac_includes_default
50344 int
50345 main ()
50346 {
50347 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50348 test_array [0] = 0
50349
50350   ;
50351   return 0;
50352 }
50353 _ACEOF
50354 rm -f conftest.$ac_objext
50355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50356   (eval $ac_compile) 2>conftest.er1
50357   ac_status=$?
50358   grep -v '^ *+' conftest.er1 >conftest.err
50359   rm -f conftest.er1
50360   cat conftest.err >&5
50361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50362   (exit $ac_status); } &&
50363          { ac_try='test -z "$ac_c_werror_flag"
50364                          || test ! -s conftest.err'
50365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50366   (eval $ac_try) 2>&5
50367   ac_status=$?
50368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50369   (exit $ac_status); }; } &&
50370          { ac_try='test -s conftest.$ac_objext'
50371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50372   (eval $ac_try) 2>&5
50373   ac_status=$?
50374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50375   (exit $ac_status); }; }; then
50376   ac_lo=$ac_mid; break
50377 else
50378   echo "$as_me: failed program was:" >&5
50379 sed 's/^/| /' conftest.$ac_ext >&5
50380
50381 ac_hi=`expr '(' $ac_mid ')' - 1`
50382                        if test $ac_mid -le $ac_hi; then
50383                          ac_lo= ac_hi=
50384                          break
50385                        fi
50386                        ac_mid=`expr 2 '*' $ac_mid`
50387 fi
50388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50389   done
50390 else
50391   echo "$as_me: failed program was:" >&5
50392 sed 's/^/| /' conftest.$ac_ext >&5
50393
50394 ac_lo= ac_hi=
50395 fi
50396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50397 fi
50398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50399 # Binary search between lo and hi bounds.
50400 while test "x$ac_lo" != "x$ac_hi"; do
50401   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50402   cat >conftest.$ac_ext <<_ACEOF
50403 /* confdefs.h.  */
50404 _ACEOF
50405 cat confdefs.h >>conftest.$ac_ext
50406 cat >>conftest.$ac_ext <<_ACEOF
50407 /* end confdefs.h.  */
50408 $ac_includes_default
50409 int
50410 main ()
50411 {
50412 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50413 test_array [0] = 0
50414
50415   ;
50416   return 0;
50417 }
50418 _ACEOF
50419 rm -f conftest.$ac_objext
50420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50421   (eval $ac_compile) 2>conftest.er1
50422   ac_status=$?
50423   grep -v '^ *+' conftest.er1 >conftest.err
50424   rm -f conftest.er1
50425   cat conftest.err >&5
50426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50427   (exit $ac_status); } &&
50428          { ac_try='test -z "$ac_c_werror_flag"
50429                          || test ! -s conftest.err'
50430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50431   (eval $ac_try) 2>&5
50432   ac_status=$?
50433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50434   (exit $ac_status); }; } &&
50435          { ac_try='test -s conftest.$ac_objext'
50436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50437   (eval $ac_try) 2>&5
50438   ac_status=$?
50439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50440   (exit $ac_status); }; }; then
50441   ac_hi=$ac_mid
50442 else
50443   echo "$as_me: failed program was:" >&5
50444 sed 's/^/| /' conftest.$ac_ext >&5
50445
50446 ac_lo=`expr '(' $ac_mid ')' + 1`
50447 fi
50448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50449 done
50450 case $ac_lo in
50451 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50452 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50453 See \`config.log' for more details." >&5
50454 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50455 See \`config.log' for more details." >&2;}
50456    { (exit 1); exit 1; }; } ;;
50457 esac
50458 else
50459   if test "$cross_compiling" = yes; then
50460   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50461 See \`config.log' for more details." >&5
50462 echo "$as_me: error: cannot run test program while cross compiling
50463 See \`config.log' for more details." >&2;}
50464    { (exit 1); exit 1; }; }
50465 else
50466   cat >conftest.$ac_ext <<_ACEOF
50467 /* confdefs.h.  */
50468 _ACEOF
50469 cat confdefs.h >>conftest.$ac_ext
50470 cat >>conftest.$ac_ext <<_ACEOF
50471 /* end confdefs.h.  */
50472 $ac_includes_default
50473 long longval () { return (long) (sizeof (wchar_t)); }
50474 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50475 #include <stdio.h>
50476 #include <stdlib.h>
50477 int
50478 main ()
50479 {
50480
50481   FILE *f = fopen ("conftest.val", "w");
50482   if (! f)
50483     exit (1);
50484   if (((long) (sizeof (wchar_t))) < 0)
50485     {
50486       long i = longval ();
50487       if (i != ((long) (sizeof (wchar_t))))
50488         exit (1);
50489       fprintf (f, "%ld\n", i);
50490     }
50491   else
50492     {
50493       unsigned long i = ulongval ();
50494       if (i != ((long) (sizeof (wchar_t))))
50495         exit (1);
50496       fprintf (f, "%lu\n", i);
50497     }
50498   exit (ferror (f) || fclose (f) != 0);
50499
50500   ;
50501   return 0;
50502 }
50503 _ACEOF
50504 rm -f conftest$ac_exeext
50505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50506   (eval $ac_link) 2>&5
50507   ac_status=$?
50508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_wchar_t=`cat conftest.val`
50516 else
50517   echo "$as_me: program exited with status $ac_status" >&5
50518 echo "$as_me: failed program was:" >&5
50519 sed 's/^/| /' conftest.$ac_ext >&5
50520
50521 ( exit $ac_status )
50522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50523 See \`config.log' for more details." >&5
50524 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50525 See \`config.log' for more details." >&2;}
50526    { (exit 1); exit 1; }; }
50527 fi
50528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50529 fi
50530 fi
50531 rm -f conftest.val
50532 else
50533   ac_cv_sizeof_wchar_t=0
50534 fi
50535 fi
50536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50537 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50538 cat >>confdefs.h <<_ACEOF
50539 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50540 _ACEOF
50541
50542
50543
50544 if test "$ac_cv_sizeof_int" -lt 4 ; then
50545         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50546 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50547
50548
50549 cat >>confdefs.h <<\_ACEOF
50550 #define LBER_INT_T long
50551 _ACEOF
50552
50553 else
50554
50555 cat >>confdefs.h <<\_ACEOF
50556 #define LBER_INT_T int
50557 _ACEOF
50558
50559 fi
50560
50561
50562 cat >>confdefs.h <<\_ACEOF
50563 #define LBER_LEN_T long
50564 _ACEOF
50565
50566
50567 cat >>confdefs.h <<\_ACEOF
50568 #define LBER_SOCKET_T int
50569 _ACEOF
50570
50571
50572 cat >>confdefs.h <<\_ACEOF
50573 #define LBER_TAG_T long
50574 _ACEOF
50575
50576
50577 echo "$as_me:$LINENO: checking for working memcmp" >&5
50578 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50579 if test "${ac_cv_func_memcmp_working+set}" = set; then
50580   echo $ECHO_N "(cached) $ECHO_C" >&6
50581 else
50582   if test "$cross_compiling" = yes; then
50583   ac_cv_func_memcmp_working=no
50584 else
50585   cat >conftest.$ac_ext <<_ACEOF
50586 /* confdefs.h.  */
50587 _ACEOF
50588 cat confdefs.h >>conftest.$ac_ext
50589 cat >>conftest.$ac_ext <<_ACEOF
50590 /* end confdefs.h.  */
50591 $ac_includes_default
50592 int
50593 main ()
50594 {
50595
50596   /* Some versions of memcmp are not 8-bit clean.  */
50597   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50598   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50599     exit (1);
50600
50601   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50602      or more and with at least one buffer not starting on a 4-byte boundary.
50603      William Lewis provided this test program.   */
50604   {
50605     char foo[21];
50606     char bar[21];
50607     int i;
50608     for (i = 0; i < 4; i++)
50609       {
50610         char *a = foo + i;
50611         char *b = bar + i;
50612         strcpy (a, "--------01111111");
50613         strcpy (b, "--------10000000");
50614         if (memcmp (a, b, 16) >= 0)
50615           exit (1);
50616       }
50617     exit (0);
50618   }
50619
50620   ;
50621   return 0;
50622 }
50623 _ACEOF
50624 rm -f conftest$ac_exeext
50625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50626   (eval $ac_link) 2>&5
50627   ac_status=$?
50628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50631   (eval $ac_try) 2>&5
50632   ac_status=$?
50633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50634   (exit $ac_status); }; }; then
50635   ac_cv_func_memcmp_working=yes
50636 else
50637   echo "$as_me: program exited with status $ac_status" >&5
50638 echo "$as_me: failed program was:" >&5
50639 sed 's/^/| /' conftest.$ac_ext >&5
50640
50641 ( exit $ac_status )
50642 ac_cv_func_memcmp_working=no
50643 fi
50644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50645 fi
50646 fi
50647 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50648 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50649 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50650     "memcmp.$ac_objext"   | \
50651   *" memcmp.$ac_objext"   | \
50652     "memcmp.$ac_objext "* | \
50653   *" memcmp.$ac_objext "* ) ;;
50654   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50655 esac
50656
50657
50658
50659 if test $ac_cv_func_memcmp_working = no ; then
50660
50661 cat >>confdefs.h <<\_ACEOF
50662 #define NEED_MEMCMP_REPLACEMENT 1
50663 _ACEOF
50664
50665 fi
50666
50667
50668 for ac_func in strftime
50669 do
50670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50671 echo "$as_me:$LINENO: checking for $ac_func" >&5
50672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50673 if eval "test \"\${$as_ac_var+set}\" = set"; then
50674   echo $ECHO_N "(cached) $ECHO_C" >&6
50675 else
50676   cat >conftest.$ac_ext <<_ACEOF
50677 /* confdefs.h.  */
50678 _ACEOF
50679 cat confdefs.h >>conftest.$ac_ext
50680 cat >>conftest.$ac_ext <<_ACEOF
50681 /* end confdefs.h.  */
50682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50684 #define $ac_func innocuous_$ac_func
50685
50686 /* System header to define __stub macros and hopefully few prototypes,
50687     which can conflict with char $ac_func (); below.
50688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50689     <limits.h> exists even on freestanding compilers.  */
50690
50691 #ifdef __STDC__
50692 # include <limits.h>
50693 #else
50694 # include <assert.h>
50695 #endif
50696
50697 #undef $ac_func
50698
50699 /* Override any gcc2 internal prototype to avoid an error.  */
50700 #ifdef __cplusplus
50701 extern "C"
50702 {
50703 #endif
50704 /* We use char because int might match the return type of a gcc2
50705    builtin and then its argument prototype would still apply.  */
50706 char $ac_func ();
50707 /* The GNU C library defines this for functions which it implements
50708     to always fail with ENOSYS.  Some functions are actually named
50709     something starting with __ and the normal name is an alias.  */
50710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50711 choke me
50712 #else
50713 char (*f) () = $ac_func;
50714 #endif
50715 #ifdef __cplusplus
50716 }
50717 #endif
50718
50719 int
50720 main ()
50721 {
50722 return f != $ac_func;
50723   ;
50724   return 0;
50725 }
50726 _ACEOF
50727 rm -f conftest.$ac_objext conftest$ac_exeext
50728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50729   (eval $ac_link) 2>conftest.er1
50730   ac_status=$?
50731   grep -v '^ *+' conftest.er1 >conftest.err
50732   rm -f conftest.er1
50733   cat conftest.err >&5
50734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50735   (exit $ac_status); } &&
50736          { ac_try='test -z "$ac_c_werror_flag"
50737                          || test ! -s conftest.err'
50738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50739   (eval $ac_try) 2>&5
50740   ac_status=$?
50741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50742   (exit $ac_status); }; } &&
50743          { ac_try='test -s conftest$ac_exeext'
50744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50745   (eval $ac_try) 2>&5
50746   ac_status=$?
50747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50748   (exit $ac_status); }; }; then
50749   eval "$as_ac_var=yes"
50750 else
50751   echo "$as_me: failed program was:" >&5
50752 sed 's/^/| /' conftest.$ac_ext >&5
50753
50754 eval "$as_ac_var=no"
50755 fi
50756 rm -f conftest.err conftest.$ac_objext \
50757       conftest$ac_exeext conftest.$ac_ext
50758 fi
50759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50761 if test `eval echo '${'$as_ac_var'}'` = yes; then
50762   cat >>confdefs.h <<_ACEOF
50763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50764 _ACEOF
50765
50766 else
50767   # strftime is in -lintl on SCO UNIX.
50768 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50769 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50770 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50771   echo $ECHO_N "(cached) $ECHO_C" >&6
50772 else
50773   ac_check_lib_save_LIBS=$LIBS
50774 LIBS="-lintl  $LIBS"
50775 cat >conftest.$ac_ext <<_ACEOF
50776 /* confdefs.h.  */
50777 _ACEOF
50778 cat confdefs.h >>conftest.$ac_ext
50779 cat >>conftest.$ac_ext <<_ACEOF
50780 /* end confdefs.h.  */
50781
50782 /* Override any gcc2 internal prototype to avoid an error.  */
50783 #ifdef __cplusplus
50784 extern "C"
50785 #endif
50786 /* We use char because int might match the return type of a gcc2
50787    builtin and then its argument prototype would still apply.  */
50788 char strftime ();
50789 int
50790 main ()
50791 {
50792 strftime ();
50793   ;
50794   return 0;
50795 }
50796 _ACEOF
50797 rm -f conftest.$ac_objext conftest$ac_exeext
50798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50799   (eval $ac_link) 2>conftest.er1
50800   ac_status=$?
50801   grep -v '^ *+' conftest.er1 >conftest.err
50802   rm -f conftest.er1
50803   cat conftest.err >&5
50804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50805   (exit $ac_status); } &&
50806          { ac_try='test -z "$ac_c_werror_flag"
50807                          || test ! -s conftest.err'
50808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50809   (eval $ac_try) 2>&5
50810   ac_status=$?
50811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50812   (exit $ac_status); }; } &&
50813          { ac_try='test -s conftest$ac_exeext'
50814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50815   (eval $ac_try) 2>&5
50816   ac_status=$?
50817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50818   (exit $ac_status); }; }; then
50819   ac_cv_lib_intl_strftime=yes
50820 else
50821   echo "$as_me: failed program was:" >&5
50822 sed 's/^/| /' conftest.$ac_ext >&5
50823
50824 ac_cv_lib_intl_strftime=no
50825 fi
50826 rm -f conftest.err conftest.$ac_objext \
50827       conftest$ac_exeext conftest.$ac_ext
50828 LIBS=$ac_check_lib_save_LIBS
50829 fi
50830 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50831 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50832 if test $ac_cv_lib_intl_strftime = yes; then
50833   cat >>confdefs.h <<\_ACEOF
50834 #define HAVE_STRFTIME 1
50835 _ACEOF
50836
50837 LIBS="-lintl $LIBS"
50838 fi
50839
50840 fi
50841 done
50842
50843
50844 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50845 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50846 if test "${ol_cv_func_inet_aton+set}" = set; then
50847   echo $ECHO_N "(cached) $ECHO_C" >&6
50848 else
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 #ifdef HAVE_SYS_TYPES_H
50857 #       include <sys/types.h>
50858 #endif
50859 #ifdef HAVE_SYS_SOCKET_H
50860 #       include <sys/socket.h>
50861 #       ifdef HAVE_SYS_SELECT_H
50862 #               include <sys/select.h>
50863 #       endif
50864 #       include <netinet/in.h>
50865 #       ifdef HAVE_ARPA_INET_H
50866 #               include <arpa/inet.h>
50867 #       endif
50868 #endif
50869
50870 int
50871 main ()
50872 {
50873 struct in_addr in;
50874 int rc = inet_aton( "255.255.255.255", &in );
50875   ;
50876   return 0;
50877 }
50878 _ACEOF
50879 rm -f conftest.$ac_objext conftest$ac_exeext
50880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50881   (eval $ac_link) 2>conftest.er1
50882   ac_status=$?
50883   grep -v '^ *+' conftest.er1 >conftest.err
50884   rm -f conftest.er1
50885   cat conftest.err >&5
50886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50887   (exit $ac_status); } &&
50888          { ac_try='test -z "$ac_c_werror_flag"
50889                          || test ! -s conftest.err'
50890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50891   (eval $ac_try) 2>&5
50892   ac_status=$?
50893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50894   (exit $ac_status); }; } &&
50895          { ac_try='test -s conftest$ac_exeext'
50896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50897   (eval $ac_try) 2>&5
50898   ac_status=$?
50899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50900   (exit $ac_status); }; }; then
50901   ol_cv_func_inet_aton=yes
50902 else
50903   echo "$as_me: failed program was:" >&5
50904 sed 's/^/| /' conftest.$ac_ext >&5
50905
50906 ol_cv_func_inet_aton=no
50907 fi
50908 rm -f conftest.err conftest.$ac_objext \
50909       conftest$ac_exeext conftest.$ac_ext
50910 fi
50911 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50912 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50913   if test $ol_cv_func_inet_aton != no; then
50914
50915 cat >>confdefs.h <<\_ACEOF
50916 #define HAVE_INET_ATON 1
50917 _ACEOF
50918
50919   fi
50920
50921
50922 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50923 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50924 if test "${ac_cv_func__spawnlp+set}" = set; then
50925   echo $ECHO_N "(cached) $ECHO_C" >&6
50926 else
50927   cat >conftest.$ac_ext <<_ACEOF
50928 /* confdefs.h.  */
50929 _ACEOF
50930 cat confdefs.h >>conftest.$ac_ext
50931 cat >>conftest.$ac_ext <<_ACEOF
50932 /* end confdefs.h.  */
50933 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50935 #define _spawnlp innocuous__spawnlp
50936
50937 /* System header to define __stub macros and hopefully few prototypes,
50938     which can conflict with char _spawnlp (); below.
50939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50940     <limits.h> exists even on freestanding compilers.  */
50941
50942 #ifdef __STDC__
50943 # include <limits.h>
50944 #else
50945 # include <assert.h>
50946 #endif
50947
50948 #undef _spawnlp
50949
50950 /* Override any gcc2 internal prototype to avoid an error.  */
50951 #ifdef __cplusplus
50952 extern "C"
50953 {
50954 #endif
50955 /* We use char because int might match the return type of a gcc2
50956    builtin and then its argument prototype would still apply.  */
50957 char _spawnlp ();
50958 /* The GNU C library defines this for functions which it implements
50959     to always fail with ENOSYS.  Some functions are actually named
50960     something starting with __ and the normal name is an alias.  */
50961 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50962 choke me
50963 #else
50964 char (*f) () = _spawnlp;
50965 #endif
50966 #ifdef __cplusplus
50967 }
50968 #endif
50969
50970 int
50971 main ()
50972 {
50973 return f != _spawnlp;
50974   ;
50975   return 0;
50976 }
50977 _ACEOF
50978 rm -f conftest.$ac_objext conftest$ac_exeext
50979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50980   (eval $ac_link) 2>conftest.er1
50981   ac_status=$?
50982   grep -v '^ *+' conftest.er1 >conftest.err
50983   rm -f conftest.er1
50984   cat conftest.err >&5
50985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50986   (exit $ac_status); } &&
50987          { ac_try='test -z "$ac_c_werror_flag"
50988                          || test ! -s conftest.err'
50989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50990   (eval $ac_try) 2>&5
50991   ac_status=$?
50992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50993   (exit $ac_status); }; } &&
50994          { ac_try='test -s conftest$ac_exeext'
50995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50996   (eval $ac_try) 2>&5
50997   ac_status=$?
50998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50999   (exit $ac_status); }; }; then
51000   ac_cv_func__spawnlp=yes
51001 else
51002   echo "$as_me: failed program was:" >&5
51003 sed 's/^/| /' conftest.$ac_ext >&5
51004
51005 ac_cv_func__spawnlp=no
51006 fi
51007 rm -f conftest.err conftest.$ac_objext \
51008       conftest$ac_exeext conftest.$ac_ext
51009 fi
51010 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51011 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51012 if test $ac_cv_func__spawnlp = yes; then
51013
51014 cat >>confdefs.h <<\_ACEOF
51015 #define HAVE_SPAWNLP 1
51016 _ACEOF
51017
51018 fi
51019
51020
51021 echo "$as_me:$LINENO: checking for _snprintf" >&5
51022 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51023 if test "${ac_cv_func__snprintf+set}" = set; then
51024   echo $ECHO_N "(cached) $ECHO_C" >&6
51025 else
51026   cat >conftest.$ac_ext <<_ACEOF
51027 /* confdefs.h.  */
51028 _ACEOF
51029 cat confdefs.h >>conftest.$ac_ext
51030 cat >>conftest.$ac_ext <<_ACEOF
51031 /* end confdefs.h.  */
51032 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51034 #define _snprintf innocuous__snprintf
51035
51036 /* System header to define __stub macros and hopefully few prototypes,
51037     which can conflict with char _snprintf (); below.
51038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51039     <limits.h> exists even on freestanding compilers.  */
51040
51041 #ifdef __STDC__
51042 # include <limits.h>
51043 #else
51044 # include <assert.h>
51045 #endif
51046
51047 #undef _snprintf
51048
51049 /* Override any gcc2 internal prototype to avoid an error.  */
51050 #ifdef __cplusplus
51051 extern "C"
51052 {
51053 #endif
51054 /* We use char because int might match the return type of a gcc2
51055    builtin and then its argument prototype would still apply.  */
51056 char _snprintf ();
51057 /* The GNU C library defines this for functions which it implements
51058     to always fail with ENOSYS.  Some functions are actually named
51059     something starting with __ and the normal name is an alias.  */
51060 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51061 choke me
51062 #else
51063 char (*f) () = _snprintf;
51064 #endif
51065 #ifdef __cplusplus
51066 }
51067 #endif
51068
51069 int
51070 main ()
51071 {
51072 return f != _snprintf;
51073   ;
51074   return 0;
51075 }
51076 _ACEOF
51077 rm -f conftest.$ac_objext conftest$ac_exeext
51078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51079   (eval $ac_link) 2>conftest.er1
51080   ac_status=$?
51081   grep -v '^ *+' conftest.er1 >conftest.err
51082   rm -f conftest.er1
51083   cat conftest.err >&5
51084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51085   (exit $ac_status); } &&
51086          { ac_try='test -z "$ac_c_werror_flag"
51087                          || test ! -s conftest.err'
51088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51089   (eval $ac_try) 2>&5
51090   ac_status=$?
51091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51092   (exit $ac_status); }; } &&
51093          { ac_try='test -s conftest$ac_exeext'
51094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51095   (eval $ac_try) 2>&5
51096   ac_status=$?
51097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51098   (exit $ac_status); }; }; then
51099   ac_cv_func__snprintf=yes
51100 else
51101   echo "$as_me: failed program was:" >&5
51102 sed 's/^/| /' conftest.$ac_ext >&5
51103
51104 ac_cv_func__snprintf=no
51105 fi
51106 rm -f conftest.err conftest.$ac_objext \
51107       conftest$ac_exeext conftest.$ac_ext
51108 fi
51109 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51110 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51111 if test $ac_cv_func__snprintf = yes; then
51112   ac_cv_func_snprintf=yes
51113
51114 cat >>confdefs.h <<\_ACEOF
51115 #define snprintf _snprintf
51116 _ACEOF
51117
51118
51119 fi
51120
51121
51122 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51123 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51124 if test "${ac_cv_func__vsnprintf+set}" = set; then
51125   echo $ECHO_N "(cached) $ECHO_C" >&6
51126 else
51127   cat >conftest.$ac_ext <<_ACEOF
51128 /* confdefs.h.  */
51129 _ACEOF
51130 cat confdefs.h >>conftest.$ac_ext
51131 cat >>conftest.$ac_ext <<_ACEOF
51132 /* end confdefs.h.  */
51133 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51135 #define _vsnprintf innocuous__vsnprintf
51136
51137 /* System header to define __stub macros and hopefully few prototypes,
51138     which can conflict with char _vsnprintf (); below.
51139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51140     <limits.h> exists even on freestanding compilers.  */
51141
51142 #ifdef __STDC__
51143 # include <limits.h>
51144 #else
51145 # include <assert.h>
51146 #endif
51147
51148 #undef _vsnprintf
51149
51150 /* Override any gcc2 internal prototype to avoid an error.  */
51151 #ifdef __cplusplus
51152 extern "C"
51153 {
51154 #endif
51155 /* We use char because int might match the return type of a gcc2
51156    builtin and then its argument prototype would still apply.  */
51157 char _vsnprintf ();
51158 /* The GNU C library defines this for functions which it implements
51159     to always fail with ENOSYS.  Some functions are actually named
51160     something starting with __ and the normal name is an alias.  */
51161 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51162 choke me
51163 #else
51164 char (*f) () = _vsnprintf;
51165 #endif
51166 #ifdef __cplusplus
51167 }
51168 #endif
51169
51170 int
51171 main ()
51172 {
51173 return f != _vsnprintf;
51174   ;
51175   return 0;
51176 }
51177 _ACEOF
51178 rm -f conftest.$ac_objext conftest$ac_exeext
51179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51180   (eval $ac_link) 2>conftest.er1
51181   ac_status=$?
51182   grep -v '^ *+' conftest.er1 >conftest.err
51183   rm -f conftest.er1
51184   cat conftest.err >&5
51185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51186   (exit $ac_status); } &&
51187          { ac_try='test -z "$ac_c_werror_flag"
51188                          || test ! -s conftest.err'
51189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51190   (eval $ac_try) 2>&5
51191   ac_status=$?
51192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51193   (exit $ac_status); }; } &&
51194          { ac_try='test -s conftest$ac_exeext'
51195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51196   (eval $ac_try) 2>&5
51197   ac_status=$?
51198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51199   (exit $ac_status); }; }; then
51200   ac_cv_func__vsnprintf=yes
51201 else
51202   echo "$as_me: failed program was:" >&5
51203 sed 's/^/| /' conftest.$ac_ext >&5
51204
51205 ac_cv_func__vsnprintf=no
51206 fi
51207 rm -f conftest.err conftest.$ac_objext \
51208       conftest$ac_exeext conftest.$ac_ext
51209 fi
51210 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51211 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51212 if test $ac_cv_func__vsnprintf = yes; then
51213   ac_cv_func_vsnprintf=yes
51214
51215 cat >>confdefs.h <<\_ACEOF
51216 #define vsnprintf _vsnprintf
51217 _ACEOF
51218
51219
51220 fi
51221
51222
51223
51224 for ac_func in vprintf
51225 do
51226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51227 echo "$as_me:$LINENO: checking for $ac_func" >&5
51228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51229 if eval "test \"\${$as_ac_var+set}\" = set"; then
51230   echo $ECHO_N "(cached) $ECHO_C" >&6
51231 else
51232   cat >conftest.$ac_ext <<_ACEOF
51233 /* confdefs.h.  */
51234 _ACEOF
51235 cat confdefs.h >>conftest.$ac_ext
51236 cat >>conftest.$ac_ext <<_ACEOF
51237 /* end confdefs.h.  */
51238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51240 #define $ac_func innocuous_$ac_func
51241
51242 /* System header to define __stub macros and hopefully few prototypes,
51243     which can conflict with char $ac_func (); below.
51244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51245     <limits.h> exists even on freestanding compilers.  */
51246
51247 #ifdef __STDC__
51248 # include <limits.h>
51249 #else
51250 # include <assert.h>
51251 #endif
51252
51253 #undef $ac_func
51254
51255 /* Override any gcc2 internal prototype to avoid an error.  */
51256 #ifdef __cplusplus
51257 extern "C"
51258 {
51259 #endif
51260 /* We use char because int might match the return type of a gcc2
51261    builtin and then its argument prototype would still apply.  */
51262 char $ac_func ();
51263 /* The GNU C library defines this for functions which it implements
51264     to always fail with ENOSYS.  Some functions are actually named
51265     something starting with __ and the normal name is an alias.  */
51266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51267 choke me
51268 #else
51269 char (*f) () = $ac_func;
51270 #endif
51271 #ifdef __cplusplus
51272 }
51273 #endif
51274
51275 int
51276 main ()
51277 {
51278 return f != $ac_func;
51279   ;
51280   return 0;
51281 }
51282 _ACEOF
51283 rm -f conftest.$ac_objext conftest$ac_exeext
51284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51285   (eval $ac_link) 2>conftest.er1
51286   ac_status=$?
51287   grep -v '^ *+' conftest.er1 >conftest.err
51288   rm -f conftest.er1
51289   cat conftest.err >&5
51290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51291   (exit $ac_status); } &&
51292          { ac_try='test -z "$ac_c_werror_flag"
51293                          || test ! -s conftest.err'
51294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51295   (eval $ac_try) 2>&5
51296   ac_status=$?
51297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51298   (exit $ac_status); }; } &&
51299          { ac_try='test -s conftest$ac_exeext'
51300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51301   (eval $ac_try) 2>&5
51302   ac_status=$?
51303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51304   (exit $ac_status); }; }; then
51305   eval "$as_ac_var=yes"
51306 else
51307   echo "$as_me: failed program was:" >&5
51308 sed 's/^/| /' conftest.$ac_ext >&5
51309
51310 eval "$as_ac_var=no"
51311 fi
51312 rm -f conftest.err conftest.$ac_objext \
51313       conftest$ac_exeext conftest.$ac_ext
51314 fi
51315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51317 if test `eval echo '${'$as_ac_var'}'` = yes; then
51318   cat >>confdefs.h <<_ACEOF
51319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51320 _ACEOF
51321
51322 echo "$as_me:$LINENO: checking for _doprnt" >&5
51323 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51324 if test "${ac_cv_func__doprnt+set}" = set; then
51325   echo $ECHO_N "(cached) $ECHO_C" >&6
51326 else
51327   cat >conftest.$ac_ext <<_ACEOF
51328 /* confdefs.h.  */
51329 _ACEOF
51330 cat confdefs.h >>conftest.$ac_ext
51331 cat >>conftest.$ac_ext <<_ACEOF
51332 /* end confdefs.h.  */
51333 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51335 #define _doprnt innocuous__doprnt
51336
51337 /* System header to define __stub macros and hopefully few prototypes,
51338     which can conflict with char _doprnt (); below.
51339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51340     <limits.h> exists even on freestanding compilers.  */
51341
51342 #ifdef __STDC__
51343 # include <limits.h>
51344 #else
51345 # include <assert.h>
51346 #endif
51347
51348 #undef _doprnt
51349
51350 /* Override any gcc2 internal prototype to avoid an error.  */
51351 #ifdef __cplusplus
51352 extern "C"
51353 {
51354 #endif
51355 /* We use char because int might match the return type of a gcc2
51356    builtin and then its argument prototype would still apply.  */
51357 char _doprnt ();
51358 /* The GNU C library defines this for functions which it implements
51359     to always fail with ENOSYS.  Some functions are actually named
51360     something starting with __ and the normal name is an alias.  */
51361 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51362 choke me
51363 #else
51364 char (*f) () = _doprnt;
51365 #endif
51366 #ifdef __cplusplus
51367 }
51368 #endif
51369
51370 int
51371 main ()
51372 {
51373 return f != _doprnt;
51374   ;
51375   return 0;
51376 }
51377 _ACEOF
51378 rm -f conftest.$ac_objext conftest$ac_exeext
51379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51380   (eval $ac_link) 2>conftest.er1
51381   ac_status=$?
51382   grep -v '^ *+' conftest.er1 >conftest.err
51383   rm -f conftest.er1
51384   cat conftest.err >&5
51385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51386   (exit $ac_status); } &&
51387          { ac_try='test -z "$ac_c_werror_flag"
51388                          || test ! -s conftest.err'
51389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51390   (eval $ac_try) 2>&5
51391   ac_status=$?
51392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51393   (exit $ac_status); }; } &&
51394          { ac_try='test -s conftest$ac_exeext'
51395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51396   (eval $ac_try) 2>&5
51397   ac_status=$?
51398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51399   (exit $ac_status); }; }; then
51400   ac_cv_func__doprnt=yes
51401 else
51402   echo "$as_me: failed program was:" >&5
51403 sed 's/^/| /' conftest.$ac_ext >&5
51404
51405 ac_cv_func__doprnt=no
51406 fi
51407 rm -f conftest.err conftest.$ac_objext \
51408       conftest$ac_exeext conftest.$ac_ext
51409 fi
51410 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51411 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51412 if test $ac_cv_func__doprnt = yes; then
51413
51414 cat >>confdefs.h <<\_ACEOF
51415 #define HAVE_DOPRNT 1
51416 _ACEOF
51417
51418 fi
51419
51420 fi
51421 done
51422
51423
51424
51425 if test $ac_cv_func_vprintf = yes ; then
51426
51427
51428 for ac_func in snprintf vsnprintf
51429 do
51430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51431 echo "$as_me:$LINENO: checking for $ac_func" >&5
51432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51433 if eval "test \"\${$as_ac_var+set}\" = set"; then
51434   echo $ECHO_N "(cached) $ECHO_C" >&6
51435 else
51436   cat >conftest.$ac_ext <<_ACEOF
51437 /* confdefs.h.  */
51438 _ACEOF
51439 cat confdefs.h >>conftest.$ac_ext
51440 cat >>conftest.$ac_ext <<_ACEOF
51441 /* end confdefs.h.  */
51442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51444 #define $ac_func innocuous_$ac_func
51445
51446 /* System header to define __stub macros and hopefully few prototypes,
51447     which can conflict with char $ac_func (); below.
51448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51449     <limits.h> exists even on freestanding compilers.  */
51450
51451 #ifdef __STDC__
51452 # include <limits.h>
51453 #else
51454 # include <assert.h>
51455 #endif
51456
51457 #undef $ac_func
51458
51459 /* Override any gcc2 internal prototype to avoid an error.  */
51460 #ifdef __cplusplus
51461 extern "C"
51462 {
51463 #endif
51464 /* We use char because int might match the return type of a gcc2
51465    builtin and then its argument prototype would still apply.  */
51466 char $ac_func ();
51467 /* The GNU C library defines this for functions which it implements
51468     to always fail with ENOSYS.  Some functions are actually named
51469     something starting with __ and the normal name is an alias.  */
51470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51471 choke me
51472 #else
51473 char (*f) () = $ac_func;
51474 #endif
51475 #ifdef __cplusplus
51476 }
51477 #endif
51478
51479 int
51480 main ()
51481 {
51482 return f != $ac_func;
51483   ;
51484   return 0;
51485 }
51486 _ACEOF
51487 rm -f conftest.$ac_objext conftest$ac_exeext
51488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51489   (eval $ac_link) 2>conftest.er1
51490   ac_status=$?
51491   grep -v '^ *+' conftest.er1 >conftest.err
51492   rm -f conftest.er1
51493   cat conftest.err >&5
51494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51495   (exit $ac_status); } &&
51496          { ac_try='test -z "$ac_c_werror_flag"
51497                          || test ! -s conftest.err'
51498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51499   (eval $ac_try) 2>&5
51500   ac_status=$?
51501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51502   (exit $ac_status); }; } &&
51503          { ac_try='test -s conftest$ac_exeext'
51504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51505   (eval $ac_try) 2>&5
51506   ac_status=$?
51507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51508   (exit $ac_status); }; }; then
51509   eval "$as_ac_var=yes"
51510 else
51511   echo "$as_me: failed program was:" >&5
51512 sed 's/^/| /' conftest.$ac_ext >&5
51513
51514 eval "$as_ac_var=no"
51515 fi
51516 rm -f conftest.err conftest.$ac_objext \
51517       conftest$ac_exeext conftest.$ac_ext
51518 fi
51519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51521 if test `eval echo '${'$as_ac_var'}'` = yes; then
51522   cat >>confdefs.h <<_ACEOF
51523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51524 _ACEOF
51525
51526 fi
51527 done
51528
51529 fi
51530
51531
51532
51533
51534
51535
51536
51537
51538
51539
51540
51541
51542
51543
51544
51545
51546
51547
51548
51549
51550
51551
51552
51553
51554
51555
51556
51557
51558
51559
51560
51561
51562
51563
51564
51565
51566
51567
51568
51569
51570
51571
51572
51573
51574
51575
51576
51577
51578
51579
51580
51581
51582
51583
51584 for ac_func in \
51585         bcopy                   \
51586         closesocket             \
51587         chroot                  \
51588         endgrent                \
51589         endpwent                \
51590         fcntl                   \
51591         flock                   \
51592         fstat                   \
51593         getdtablesize   \
51594         getgrgid                \
51595         gethostname             \
51596         getpass                 \
51597         getpassphrase   \
51598         getpwuid                \
51599         getpwnam                \
51600         getspnam                \
51601         gettimeofday    \
51602         initgroups              \
51603         lockf                   \
51604         memcpy                  \
51605         memmove                 \
51606         mkstemp                 \
51607         mktemp                  \
51608         pipe                    \
51609         read                    \
51610         recv                    \
51611         recvfrom                \
51612         setpwfile               \
51613         setgid                  \
51614         setegid                 \
51615         setsid                  \
51616         setuid                  \
51617         seteuid                 \
51618         signal                  \
51619         strdup                  \
51620         strpbrk                 \
51621         strrchr                 \
51622         strsep                  \
51623         strstr                  \
51624         strtol                  \
51625         strtoul                 \
51626         strtoq                  \
51627         strtouq                 \
51628         strtoll                 \
51629         strspn                  \
51630         sysconf                 \
51631         usleep                  \
51632         waitpid                 \
51633         wait4                   \
51634         write                   \
51635         send                    \
51636         sendmsg                 \
51637         sendto                  \
51638
51639 do
51640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51641 echo "$as_me:$LINENO: checking for $ac_func" >&5
51642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51643 if eval "test \"\${$as_ac_var+set}\" = set"; then
51644   echo $ECHO_N "(cached) $ECHO_C" >&6
51645 else
51646   cat >conftest.$ac_ext <<_ACEOF
51647 /* confdefs.h.  */
51648 _ACEOF
51649 cat confdefs.h >>conftest.$ac_ext
51650 cat >>conftest.$ac_ext <<_ACEOF
51651 /* end confdefs.h.  */
51652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51654 #define $ac_func innocuous_$ac_func
51655
51656 /* System header to define __stub macros and hopefully few prototypes,
51657     which can conflict with char $ac_func (); below.
51658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51659     <limits.h> exists even on freestanding compilers.  */
51660
51661 #ifdef __STDC__
51662 # include <limits.h>
51663 #else
51664 # include <assert.h>
51665 #endif
51666
51667 #undef $ac_func
51668
51669 /* Override any gcc2 internal prototype to avoid an error.  */
51670 #ifdef __cplusplus
51671 extern "C"
51672 {
51673 #endif
51674 /* We use char because int might match the return type of a gcc2
51675    builtin and then its argument prototype would still apply.  */
51676 char $ac_func ();
51677 /* The GNU C library defines this for functions which it implements
51678     to always fail with ENOSYS.  Some functions are actually named
51679     something starting with __ and the normal name is an alias.  */
51680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51681 choke me
51682 #else
51683 char (*f) () = $ac_func;
51684 #endif
51685 #ifdef __cplusplus
51686 }
51687 #endif
51688
51689 int
51690 main ()
51691 {
51692 return f != $ac_func;
51693   ;
51694   return 0;
51695 }
51696 _ACEOF
51697 rm -f conftest.$ac_objext conftest$ac_exeext
51698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51699   (eval $ac_link) 2>conftest.er1
51700   ac_status=$?
51701   grep -v '^ *+' conftest.er1 >conftest.err
51702   rm -f conftest.er1
51703   cat conftest.err >&5
51704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51705   (exit $ac_status); } &&
51706          { ac_try='test -z "$ac_c_werror_flag"
51707                          || test ! -s conftest.err'
51708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51709   (eval $ac_try) 2>&5
51710   ac_status=$?
51711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51712   (exit $ac_status); }; } &&
51713          { ac_try='test -s conftest$ac_exeext'
51714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51715   (eval $ac_try) 2>&5
51716   ac_status=$?
51717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51718   (exit $ac_status); }; }; then
51719   eval "$as_ac_var=yes"
51720 else
51721   echo "$as_me: failed program was:" >&5
51722 sed 's/^/| /' conftest.$ac_ext >&5
51723
51724 eval "$as_ac_var=no"
51725 fi
51726 rm -f conftest.err conftest.$ac_objext \
51727       conftest$ac_exeext conftest.$ac_ext
51728 fi
51729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51731 if test `eval echo '${'$as_ac_var'}'` = yes; then
51732   cat >>confdefs.h <<_ACEOF
51733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51734 _ACEOF
51735
51736 fi
51737 done
51738
51739
51740
51741
51742 for ac_func in getopt getpeereid
51743 do
51744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51745 echo "$as_me:$LINENO: checking for $ac_func" >&5
51746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51747 if eval "test \"\${$as_ac_var+set}\" = set"; then
51748   echo $ECHO_N "(cached) $ECHO_C" >&6
51749 else
51750   cat >conftest.$ac_ext <<_ACEOF
51751 /* confdefs.h.  */
51752 _ACEOF
51753 cat confdefs.h >>conftest.$ac_ext
51754 cat >>conftest.$ac_ext <<_ACEOF
51755 /* end confdefs.h.  */
51756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51758 #define $ac_func innocuous_$ac_func
51759
51760 /* System header to define __stub macros and hopefully few prototypes,
51761     which can conflict with char $ac_func (); below.
51762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51763     <limits.h> exists even on freestanding compilers.  */
51764
51765 #ifdef __STDC__
51766 # include <limits.h>
51767 #else
51768 # include <assert.h>
51769 #endif
51770
51771 #undef $ac_func
51772
51773 /* Override any gcc2 internal prototype to avoid an error.  */
51774 #ifdef __cplusplus
51775 extern "C"
51776 {
51777 #endif
51778 /* We use char because int might match the return type of a gcc2
51779    builtin and then its argument prototype would still apply.  */
51780 char $ac_func ();
51781 /* The GNU C library defines this for functions which it implements
51782     to always fail with ENOSYS.  Some functions are actually named
51783     something starting with __ and the normal name is an alias.  */
51784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51785 choke me
51786 #else
51787 char (*f) () = $ac_func;
51788 #endif
51789 #ifdef __cplusplus
51790 }
51791 #endif
51792
51793 int
51794 main ()
51795 {
51796 return f != $ac_func;
51797   ;
51798   return 0;
51799 }
51800 _ACEOF
51801 rm -f conftest.$ac_objext conftest$ac_exeext
51802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51803   (eval $ac_link) 2>conftest.er1
51804   ac_status=$?
51805   grep -v '^ *+' conftest.er1 >conftest.err
51806   rm -f conftest.er1
51807   cat conftest.err >&5
51808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51809   (exit $ac_status); } &&
51810          { ac_try='test -z "$ac_c_werror_flag"
51811                          || test ! -s conftest.err'
51812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51813   (eval $ac_try) 2>&5
51814   ac_status=$?
51815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51816   (exit $ac_status); }; } &&
51817          { ac_try='test -s conftest$ac_exeext'
51818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51819   (eval $ac_try) 2>&5
51820   ac_status=$?
51821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51822   (exit $ac_status); }; }; then
51823   eval "$as_ac_var=yes"
51824 else
51825   echo "$as_me: failed program was:" >&5
51826 sed 's/^/| /' conftest.$ac_ext >&5
51827
51828 eval "$as_ac_var=no"
51829 fi
51830 rm -f conftest.err conftest.$ac_objext \
51831       conftest$ac_exeext conftest.$ac_ext
51832 fi
51833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51835 if test `eval echo '${'$as_ac_var'}'` = yes; then
51836   cat >>confdefs.h <<_ACEOF
51837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51838 _ACEOF
51839
51840 else
51841   case $LIBOBJS in
51842     "$ac_func.$ac_objext"   | \
51843   *" $ac_func.$ac_objext"   | \
51844     "$ac_func.$ac_objext "* | \
51845   *" $ac_func.$ac_objext "* ) ;;
51846   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51847 esac
51848
51849 fi
51850 done
51851
51852
51853
51854 if test "$ac_cv_func_getopt" != yes; then
51855         LIBSRCS="$LIBSRCS getopt.c"
51856 fi
51857 if test "$ac_cv_func_getpeereid" != yes; then
51858         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51859 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51860 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51861   echo $ECHO_N "(cached) $ECHO_C" >&6
51862 else
51863   cat >conftest.$ac_ext <<_ACEOF
51864 /* confdefs.h.  */
51865 _ACEOF
51866 cat confdefs.h >>conftest.$ac_ext
51867 cat >>conftest.$ac_ext <<_ACEOF
51868 /* end confdefs.h.  */
51869 $ac_includes_default
51870 #ifdef HAVE_SYS_SOCKET_H
51871 #include <sys/socket.h>
51872 #endif
51873
51874 int
51875 main ()
51876 {
51877 static struct msghdr ac_aggr;
51878 if (ac_aggr.msg_accrightslen)
51879 return 0;
51880   ;
51881   return 0;
51882 }
51883 _ACEOF
51884 rm -f conftest.$ac_objext
51885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51886   (eval $ac_compile) 2>conftest.er1
51887   ac_status=$?
51888   grep -v '^ *+' conftest.er1 >conftest.err
51889   rm -f conftest.er1
51890   cat conftest.err >&5
51891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51892   (exit $ac_status); } &&
51893          { ac_try='test -z "$ac_c_werror_flag"
51894                          || test ! -s conftest.err'
51895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51896   (eval $ac_try) 2>&5
51897   ac_status=$?
51898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51899   (exit $ac_status); }; } &&
51900          { ac_try='test -s conftest.$ac_objext'
51901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51902   (eval $ac_try) 2>&5
51903   ac_status=$?
51904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51905   (exit $ac_status); }; }; then
51906   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51907 else
51908   echo "$as_me: failed program was:" >&5
51909 sed 's/^/| /' conftest.$ac_ext >&5
51910
51911 cat >conftest.$ac_ext <<_ACEOF
51912 /* confdefs.h.  */
51913 _ACEOF
51914 cat confdefs.h >>conftest.$ac_ext
51915 cat >>conftest.$ac_ext <<_ACEOF
51916 /* end confdefs.h.  */
51917 $ac_includes_default
51918 #ifdef HAVE_SYS_SOCKET_H
51919 #include <sys/socket.h>
51920 #endif
51921
51922 int
51923 main ()
51924 {
51925 static struct msghdr ac_aggr;
51926 if (sizeof ac_aggr.msg_accrightslen)
51927 return 0;
51928   ;
51929   return 0;
51930 }
51931 _ACEOF
51932 rm -f conftest.$ac_objext
51933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51934   (eval $ac_compile) 2>conftest.er1
51935   ac_status=$?
51936   grep -v '^ *+' conftest.er1 >conftest.err
51937   rm -f conftest.er1
51938   cat conftest.err >&5
51939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51940   (exit $ac_status); } &&
51941          { ac_try='test -z "$ac_c_werror_flag"
51942                          || test ! -s conftest.err'
51943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51944   (eval $ac_try) 2>&5
51945   ac_status=$?
51946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51947   (exit $ac_status); }; } &&
51948          { ac_try='test -s conftest.$ac_objext'
51949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51950   (eval $ac_try) 2>&5
51951   ac_status=$?
51952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51953   (exit $ac_status); }; }; then
51954   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51955 else
51956   echo "$as_me: failed program was:" >&5
51957 sed 's/^/| /' conftest.$ac_ext >&5
51958
51959 ac_cv_member_struct_msghdr_msg_accrightslen=no
51960 fi
51961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51962 fi
51963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51964 fi
51965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
51966 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
51967 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
51968
51969 cat >>confdefs.h <<_ACEOF
51970 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
51971 _ACEOF
51972
51973
51974 fi
51975
51976         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
51977                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
51978 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
51979 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
51980   echo $ECHO_N "(cached) $ECHO_C" >&6
51981 else
51982   cat >conftest.$ac_ext <<_ACEOF
51983 /* confdefs.h.  */
51984 _ACEOF
51985 cat confdefs.h >>conftest.$ac_ext
51986 cat >>conftest.$ac_ext <<_ACEOF
51987 /* end confdefs.h.  */
51988 $ac_includes_default
51989 #ifdef HAVE_SYS_SOCKET_H
51990 #include <sys/socket.h>
51991 #endif
51992
51993 int
51994 main ()
51995 {
51996 static struct msghdr ac_aggr;
51997 if (ac_aggr.msg_control)
51998 return 0;
51999   ;
52000   return 0;
52001 }
52002 _ACEOF
52003 rm -f conftest.$ac_objext
52004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52005   (eval $ac_compile) 2>conftest.er1
52006   ac_status=$?
52007   grep -v '^ *+' conftest.er1 >conftest.err
52008   rm -f conftest.er1
52009   cat conftest.err >&5
52010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52011   (exit $ac_status); } &&
52012          { ac_try='test -z "$ac_c_werror_flag"
52013                          || test ! -s conftest.err'
52014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52015   (eval $ac_try) 2>&5
52016   ac_status=$?
52017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52018   (exit $ac_status); }; } &&
52019          { ac_try='test -s conftest.$ac_objext'
52020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52021   (eval $ac_try) 2>&5
52022   ac_status=$?
52023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52024   (exit $ac_status); }; }; then
52025   ac_cv_member_struct_msghdr_msg_control=yes
52026 else
52027   echo "$as_me: failed program was:" >&5
52028 sed 's/^/| /' conftest.$ac_ext >&5
52029
52030 cat >conftest.$ac_ext <<_ACEOF
52031 /* confdefs.h.  */
52032 _ACEOF
52033 cat confdefs.h >>conftest.$ac_ext
52034 cat >>conftest.$ac_ext <<_ACEOF
52035 /* end confdefs.h.  */
52036 $ac_includes_default
52037 #ifdef HAVE_SYS_SOCKET_H
52038 #include <sys/socket.h>
52039 #endif
52040
52041 int
52042 main ()
52043 {
52044 static struct msghdr ac_aggr;
52045 if (sizeof ac_aggr.msg_control)
52046 return 0;
52047   ;
52048   return 0;
52049 }
52050 _ACEOF
52051 rm -f conftest.$ac_objext
52052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52053   (eval $ac_compile) 2>conftest.er1
52054   ac_status=$?
52055   grep -v '^ *+' conftest.er1 >conftest.err
52056   rm -f conftest.er1
52057   cat conftest.err >&5
52058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52059   (exit $ac_status); } &&
52060          { ac_try='test -z "$ac_c_werror_flag"
52061                          || test ! -s conftest.err'
52062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52063   (eval $ac_try) 2>&5
52064   ac_status=$?
52065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52066   (exit $ac_status); }; } &&
52067          { ac_try='test -s conftest.$ac_objext'
52068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52069   (eval $ac_try) 2>&5
52070   ac_status=$?
52071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52072   (exit $ac_status); }; }; then
52073   ac_cv_member_struct_msghdr_msg_control=yes
52074 else
52075   echo "$as_me: failed program was:" >&5
52076 sed 's/^/| /' conftest.$ac_ext >&5
52077
52078 ac_cv_member_struct_msghdr_msg_control=no
52079 fi
52080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52081 fi
52082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52083 fi
52084 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52085 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52086 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52087
52088 cat >>confdefs.h <<_ACEOF
52089 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52090 _ACEOF
52091
52092
52093 fi
52094
52095         fi
52096         LIBSRCS="$LIBSRCS getpeereid.c"
52097 fi
52098 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52099         if test "$ac_cv_func_snprintf" != yes; then
52100
52101 cat >>confdefs.h <<\_ACEOF
52102 #define snprintf ber_pvt_snprintf
52103 _ACEOF
52104
52105         fi
52106         if test "$ac_cv_func_vsnprintf" != yes; then
52107
52108 cat >>confdefs.h <<\_ACEOF
52109 #define vsnprintf ber_pvt_vsnprintf
52110 _ACEOF
52111
52112         fi
52113 fi
52114
52115
52116 if test "$ol_enable_slapi" != no ; then
52117
52118 for ac_header in ltdl.h
52119 do
52120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52122   echo "$as_me:$LINENO: checking for $ac_header" >&5
52123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52125   echo $ECHO_N "(cached) $ECHO_C" >&6
52126 fi
52127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52129 else
52130   # Is the header compilable?
52131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52133 cat >conftest.$ac_ext <<_ACEOF
52134 /* confdefs.h.  */
52135 _ACEOF
52136 cat confdefs.h >>conftest.$ac_ext
52137 cat >>conftest.$ac_ext <<_ACEOF
52138 /* end confdefs.h.  */
52139 $ac_includes_default
52140 #include <$ac_header>
52141 _ACEOF
52142 rm -f conftest.$ac_objext
52143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52144   (eval $ac_compile) 2>conftest.er1
52145   ac_status=$?
52146   grep -v '^ *+' conftest.er1 >conftest.err
52147   rm -f conftest.er1
52148   cat conftest.err >&5
52149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52150   (exit $ac_status); } &&
52151          { ac_try='test -z "$ac_c_werror_flag"
52152                          || test ! -s conftest.err'
52153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52154   (eval $ac_try) 2>&5
52155   ac_status=$?
52156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52157   (exit $ac_status); }; } &&
52158          { ac_try='test -s conftest.$ac_objext'
52159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52160   (eval $ac_try) 2>&5
52161   ac_status=$?
52162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52163   (exit $ac_status); }; }; then
52164   ac_header_compiler=yes
52165 else
52166   echo "$as_me: failed program was:" >&5
52167 sed 's/^/| /' conftest.$ac_ext >&5
52168
52169 ac_header_compiler=no
52170 fi
52171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52173 echo "${ECHO_T}$ac_header_compiler" >&6
52174
52175 # Is the header present?
52176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52178 cat >conftest.$ac_ext <<_ACEOF
52179 /* confdefs.h.  */
52180 _ACEOF
52181 cat confdefs.h >>conftest.$ac_ext
52182 cat >>conftest.$ac_ext <<_ACEOF
52183 /* end confdefs.h.  */
52184 #include <$ac_header>
52185 _ACEOF
52186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52188   ac_status=$?
52189   grep -v '^ *+' conftest.er1 >conftest.err
52190   rm -f conftest.er1
52191   cat conftest.err >&5
52192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52193   (exit $ac_status); } >/dev/null; then
52194   if test -s conftest.err; then
52195     ac_cpp_err=$ac_c_preproc_warn_flag
52196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52197   else
52198     ac_cpp_err=
52199   fi
52200 else
52201   ac_cpp_err=yes
52202 fi
52203 if test -z "$ac_cpp_err"; then
52204   ac_header_preproc=yes
52205 else
52206   echo "$as_me: failed program was:" >&5
52207 sed 's/^/| /' conftest.$ac_ext >&5
52208
52209   ac_header_preproc=no
52210 fi
52211 rm -f conftest.err conftest.$ac_ext
52212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52213 echo "${ECHO_T}$ac_header_preproc" >&6
52214
52215 # So?  What about this header?
52216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52217   yes:no: )
52218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52222     ac_header_preproc=yes
52223     ;;
52224   no:yes:* )
52225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52237     (
52238       cat <<\_ASBOX
52239 ## ------------------------------------------ ##
52240 ## Report this to the AC_PACKAGE_NAME lists.  ##
52241 ## ------------------------------------------ ##
52242 _ASBOX
52243     ) |
52244       sed "s/^/$as_me: WARNING:     /" >&2
52245     ;;
52246 esac
52247 echo "$as_me:$LINENO: checking for $ac_header" >&5
52248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52250   echo $ECHO_N "(cached) $ECHO_C" >&6
52251 else
52252   eval "$as_ac_Header=\$ac_header_preproc"
52253 fi
52254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52256
52257 fi
52258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52259   cat >>confdefs.h <<_ACEOF
52260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52261 _ACEOF
52262
52263 fi
52264
52265 done
52266
52267
52268         if test $ac_cv_header_ltdl_h != yes ; then
52269                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52270 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52271    { (exit 1); exit 1; }; }
52272         fi
52273         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52274 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52275 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52276   echo $ECHO_N "(cached) $ECHO_C" >&6
52277 else
52278   ac_check_lib_save_LIBS=$LIBS
52279 LIBS="-lltdl  $LIBS"
52280 cat >conftest.$ac_ext <<_ACEOF
52281 /* confdefs.h.  */
52282 _ACEOF
52283 cat confdefs.h >>conftest.$ac_ext
52284 cat >>conftest.$ac_ext <<_ACEOF
52285 /* end confdefs.h.  */
52286
52287 /* Override any gcc2 internal prototype to avoid an error.  */
52288 #ifdef __cplusplus
52289 extern "C"
52290 #endif
52291 /* We use char because int might match the return type of a gcc2
52292    builtin and then its argument prototype would still apply.  */
52293 char lt_dlinit ();
52294 int
52295 main ()
52296 {
52297 lt_dlinit ();
52298   ;
52299   return 0;
52300 }
52301 _ACEOF
52302 rm -f conftest.$ac_objext conftest$ac_exeext
52303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52304   (eval $ac_link) 2>conftest.er1
52305   ac_status=$?
52306   grep -v '^ *+' conftest.er1 >conftest.err
52307   rm -f conftest.er1
52308   cat conftest.err >&5
52309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52310   (exit $ac_status); } &&
52311          { ac_try='test -z "$ac_c_werror_flag"
52312                          || test ! -s conftest.err'
52313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314   (eval $ac_try) 2>&5
52315   ac_status=$?
52316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317   (exit $ac_status); }; } &&
52318          { ac_try='test -s conftest$ac_exeext'
52319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52320   (eval $ac_try) 2>&5
52321   ac_status=$?
52322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52323   (exit $ac_status); }; }; then
52324   ac_cv_lib_ltdl_lt_dlinit=yes
52325 else
52326   echo "$as_me: failed program was:" >&5
52327 sed 's/^/| /' conftest.$ac_ext >&5
52328
52329 ac_cv_lib_ltdl_lt_dlinit=no
52330 fi
52331 rm -f conftest.err conftest.$ac_objext \
52332       conftest$ac_exeext conftest.$ac_ext
52333 LIBS=$ac_check_lib_save_LIBS
52334 fi
52335 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52336 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52337 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52338
52339                 SLAPI_LIBS=-lltdl
52340                 LIBSLAPI=libslapi.a
52341                 LIBSLAPITOOLS=../libslapi.a
52342
52343 cat >>confdefs.h <<\_ACEOF
52344 #define HAVE_LIBLTDL 1
52345 _ACEOF
52346
52347
52348 else
52349   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52350 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52351    { (exit 1); exit 1; }; }
52352 fi
52353
52354
52355
52356 cat >>confdefs.h <<\_ACEOF
52357 #define LDAP_SLAPI 1
52358 _ACEOF
52359
52360 fi
52361
52362 if test "$ol_enable_debug" != no ; then
52363
52364 cat >>confdefs.h <<\_ACEOF
52365 #define LDAP_DEBUG 1
52366 _ACEOF
52367
52368 fi
52369 if test "$ol_enable_syslog" = yes ; then
52370
52371 cat >>confdefs.h <<\_ACEOF
52372 #define LDAP_SYSLOG 1
52373 _ACEOF
52374
52375 fi
52376 if test "$ol_link_kbind" != no ; then
52377
52378 cat >>confdefs.h <<\_ACEOF
52379 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52380 _ACEOF
52381
52382 fi
52383 if test "$ol_enable_proctitle" != no ; then
52384
52385 cat >>confdefs.h <<\_ACEOF
52386 #define LDAP_PROCTITLE 1
52387 _ACEOF
52388
52389 fi
52390 if test "$ol_enable_referrals" != no ; then
52391
52392 cat >>confdefs.h <<\_ACEOF
52393 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52394 _ACEOF
52395
52396 fi
52397 if test "$ol_enable_local" != no; then
52398
52399 cat >>confdefs.h <<\_ACEOF
52400 #define LDAP_PF_LOCAL 1
52401 _ACEOF
52402
52403 fi
52404 if test "$ol_link_ipv6" != no; then
52405
52406 cat >>confdefs.h <<\_ACEOF
52407 #define LDAP_PF_INET6 1
52408 _ACEOF
52409
52410 fi
52411 if test "$ol_enable_cleartext" != no ; then
52412
52413 cat >>confdefs.h <<\_ACEOF
52414 #define SLAPD_CLEARTEXT 1
52415 _ACEOF
52416
52417 fi
52418 if test "$ol_enable_crypt" != no ; then
52419
52420 cat >>confdefs.h <<\_ACEOF
52421 #define SLAPD_CRYPT 1
52422 _ACEOF
52423
52424 fi
52425 if test "$ol_link_spasswd" != no ; then
52426
52427 cat >>confdefs.h <<\_ACEOF
52428 #define SLAPD_SPASSWD 1
52429 _ACEOF
52430
52431 fi
52432 if test "$ol_enable_multimaster" != no ; then
52433
52434 cat >>confdefs.h <<\_ACEOF
52435 #define SLAPD_MULTIMASTER 1
52436 _ACEOF
52437
52438 fi
52439 if test "$ol_enable_rlookups" != no ; then
52440
52441 cat >>confdefs.h <<\_ACEOF
52442 #define SLAPD_RLOOKUPS 1
52443 _ACEOF
52444
52445 fi
52446 if test "$ol_enable_aci" != no ; then
52447
52448 cat >>confdefs.h <<\_ACEOF
52449 #define SLAPD_ACI_ENABLED 1
52450 _ACEOF
52451
52452 fi
52453
52454 if test "$ol_link_modules" != no ; then
52455
52456 cat >>confdefs.h <<\_ACEOF
52457 #define SLAPD_MODULES 1
52458 _ACEOF
52459
52460         BUILD_SLAPD=yes
52461         SLAPD_MODULES_LDFLAGS="-dlopen self"
52462 fi
52463
52464
52465 cat >>confdefs.h <<\_ACEOF
52466 #define SLAPD_MOD_STATIC 1
52467 _ACEOF
52468
52469
52470 cat >>confdefs.h <<\_ACEOF
52471 #define SLAPD_MOD_DYNAMIC 2
52472 _ACEOF
52473
52474
52475 if test "$ol_enable_bdb" != no ; then
52476         BUILD_SLAPD=yes
52477         BUILD_BDB=$ol_enable_bdb
52478         if test "$ol_enable_bdb" = mod ; then
52479                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52480                 MFLAG=SLAPD_MOD_DYNAMIC
52481         else
52482                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52483                 MFLAG=SLAPD_MOD_STATIC
52484         fi
52485
52486 cat >>confdefs.h <<_ACEOF
52487 #define SLAPD_BDB $MFLAG
52488 _ACEOF
52489
52490 fi
52491
52492 if test "$ol_enable_dnssrv" != no ; then
52493         BUILD_SLAPD=yes
52494         BUILD_DNSSRV=$ol_enable_dnssrv
52495         if test "$ol_enable_dnssrv" = mod ; then
52496                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52497                 MFLAG=SLAPD_MOD_DYNAMIC
52498         else
52499                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52500                 MFLAG=SLAPD_MOD_STATIC
52501         fi
52502
52503 cat >>confdefs.h <<_ACEOF
52504 #define SLAPD_DNSSRV $MFLAG
52505 _ACEOF
52506
52507 fi
52508
52509 if test "$ol_enable_hdb" != no ; then
52510         BUILD_SLAPD=yes
52511         BUILD_HDB=$ol_enable_hdb
52512         if test "$ol_enable_hdb" = mod ; then
52513                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52514                 MFLAG=SLAPD_MOD_DYNAMIC
52515         else
52516                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52517                 MFLAG=SLAPD_MOD_STATIC
52518         fi
52519
52520 cat >>confdefs.h <<_ACEOF
52521 #define SLAPD_HDB $MFLAG
52522 _ACEOF
52523
52524 fi
52525
52526 if test "$ol_enable_ldap" != no ; then
52527         BUILD_SLAPD=yes
52528         BUILD_LDAP=$ol_enable_ldap
52529         if test "$ol_enable_ldap" = mod ; then
52530                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52531                 MFLAG=SLAPD_MOD_DYNAMIC
52532         else
52533                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52534                 MFLAG=SLAPD_MOD_STATIC
52535         fi
52536
52537 cat >>confdefs.h <<_ACEOF
52538 #define SLAPD_LDAP $MFLAG
52539 _ACEOF
52540
52541 fi
52542
52543 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52544         BUILD_SLAPD=yes
52545         BUILD_LDBM=$ol_enable_ldbm
52546         if test "$ol_enable_ldbm" = mod ; then
52547                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52548                 MFLAG=SLAPD_MOD_DYNAMIC
52549         else
52550                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52551                 MFLAG=SLAPD_MOD_STATIC
52552         fi
52553
52554 cat >>confdefs.h <<_ACEOF
52555 #define SLAPD_LDBM $MFLAG
52556 _ACEOF
52557
52558 fi
52559
52560 if test "$ol_enable_meta" != no ; then
52561         BUILD_SLAPD=yes
52562         BUILD_META=$ol_enable_meta
52563         BUILD_REWRITE=yes
52564         if test "$ol_enable_meta" = mod ; then
52565                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52566                 MFLAG=SLAPD_MOD_DYNAMIC
52567         else
52568                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52569                 MFLAG=SLAPD_MOD_STATIC
52570         fi
52571
52572 cat >>confdefs.h <<_ACEOF
52573 #define SLAPD_META $MFLAG
52574 _ACEOF
52575
52576 fi
52577
52578 if test "$ol_enable_monitor" != no ; then
52579         BUILD_SLAPD=yes
52580         BUILD_MONITOR=$ol_enable_monitor
52581         if test "$ol_enable_monitor" = mod ; then
52582                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52583                 MFLAG=SLAPD_MOD_DYNAMIC
52584         else
52585                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52586                 MFLAG=SLAPD_MOD_STATIC
52587         fi
52588
52589 cat >>confdefs.h <<_ACEOF
52590 #define SLAPD_MONITOR $MFLAG
52591 _ACEOF
52592
52593 fi
52594
52595 if test "$ol_enable_null" != no ; then
52596         BUILD_SLAPD=yes
52597         BUILD_NULL=$ol_enable_null
52598         if test "$ol_enable_null" = mod ; then
52599                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52600                 MFLAG=SLAPD_MOD_DYNAMIC
52601         else
52602                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52603                 MFLAG=SLAPD_MOD_STATIC
52604         fi
52605
52606 cat >>confdefs.h <<_ACEOF
52607 #define SLAPD_NULL $MFLAG
52608 _ACEOF
52609
52610 fi
52611
52612 if test "$ol_enable_passwd" != no ; then
52613         BUILD_SLAPD=yes
52614         BUILD_PASSWD=$ol_enable_passwd
52615         if test "$ol_enable_passwd" = mod ; then
52616                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52617                 MFLAG=SLAPD_MOD_DYNAMIC
52618         else
52619                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52620                 MFLAG=SLAPD_MOD_STATIC
52621         fi
52622
52623 cat >>confdefs.h <<_ACEOF
52624 #define SLAPD_PASSWD $MFLAG
52625 _ACEOF
52626
52627 fi
52628
52629 if test "$ol_link_perl" != no ; then
52630         BUILD_SLAPD=yes
52631         BUILD_PERL=$ol_enable_perl
52632         if test "$ol_enable_perl" = mod ; then
52633                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52634                 MFLAG=SLAPD_MOD_DYNAMIC
52635         else
52636                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52637                 MFLAG=SLAPD_MOD_STATIC
52638         fi
52639
52640 cat >>confdefs.h <<_ACEOF
52641 #define SLAPD_PERL $MFLAG
52642 _ACEOF
52643
52644 fi
52645
52646 if test "$ol_enable_relay" != no ; then
52647         BUILD_SLAPD=yes
52648         BUILD_RELAY=$ol_enable_relay
52649         if test "$ol_enable_relay" = mod ; then
52650                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52651                 MFLAG=SLAPD_MOD_DYNAMIC
52652         else
52653                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52654                 MFLAG=SLAPD_MOD_STATIC
52655         fi
52656
52657 cat >>confdefs.h <<_ACEOF
52658 #define SLAPD_RELAY $MFLAG
52659 _ACEOF
52660
52661 fi
52662
52663 if test "$ol_enable_shell" != no ; then
52664         if test "$ol_link_thread" != no ; then
52665                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52666 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52667         fi
52668         BUILD_SLAPD=yes
52669         BUILD_SHELL=$ol_enable_shell
52670         if test "$ol_enable_shell" = mod ; then
52671                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52672                 MFLAG=SLAPD_MOD_DYNAMIC
52673         else
52674                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52675                 MFLAG=SLAPD_MOD_STATIC
52676         fi
52677
52678 cat >>confdefs.h <<_ACEOF
52679 #define SLAPD_SHELL $MFLAG
52680 _ACEOF
52681
52682 fi
52683
52684 if test "$ol_link_sql" != no ; then
52685         BUILD_SLAPD=yes
52686         BUILD_SQL=$ol_enable_sql
52687         if test "$ol_enable_sql" = mod; then
52688                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52689                 MFLAG=SLAPD_MOD_DYNAMIC
52690         else
52691                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52692                 MFLAG=SLAPD_MOD_STATIC
52693         fi
52694
52695 cat >>confdefs.h <<_ACEOF
52696 #define SLAPD_SQL $MFLAG
52697 _ACEOF
52698
52699 fi
52700
52701 if test "$ol_enable_accesslog" != no ; then
52702         BUILD_ACCESSLOG=$ol_enable_accesslog
52703         if test "$ol_enable_accesslog" = mod ; then
52704                 MFLAG=SLAPD_MOD_DYNAMIC
52705                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52706         else
52707                 MFLAG=SLAPD_MOD_STATIC
52708                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52709         fi
52710
52711 cat >>confdefs.h <<_ACEOF
52712 #define SLAPD_OVER_ACCESSLOG $MFLAG
52713 _ACEOF
52714
52715 fi
52716
52717 if test "$ol_enable_denyop" != no ; then
52718         BUILD_DENYOP=$ol_enable_denyop
52719         if test "$ol_enable_denyop" = mod ; then
52720                 MFLAG=SLAPD_MOD_DYNAMIC
52721                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52722         else
52723                 MFLAG=SLAPD_MOD_STATIC
52724                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52725         fi
52726
52727 cat >>confdefs.h <<_ACEOF
52728 #define SLAPD_OVER_DENYOP $MFLAG
52729 _ACEOF
52730
52731 fi
52732
52733 if test "$ol_enable_dyngroup" != no ; then
52734         BUILD_DYNGROUP=$ol_enable_dyngroup
52735         if test "$ol_enable_dyngroup" = mod ; then
52736                 MFLAG=SLAPD_MOD_DYNAMIC
52737                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52738         else
52739                 MFLAG=SLAPD_MOD_STATIC
52740                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52741         fi
52742
52743 cat >>confdefs.h <<_ACEOF
52744 #define SLAPD_OVER_DYNGROUP $MFLAG
52745 _ACEOF
52746
52747 fi
52748
52749 if test "$ol_enable_dynlist" != no ; then
52750         BUILD_DYNLIST=$ol_enable_dynlist
52751         if test "$ol_enable_dynlist" = mod ; then
52752                 MFLAG=SLAPD_MOD_DYNAMIC
52753                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52754         else
52755                 MFLAG=SLAPD_MOD_STATIC
52756                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52757         fi
52758
52759 cat >>confdefs.h <<_ACEOF
52760 #define SLAPD_OVER_DYNLIST $MFLAG
52761 _ACEOF
52762
52763 fi
52764
52765 if test "$ol_enable_glue" != no ; then
52766         BUILD_GLUE=$ol_enable_glue
52767         if test "$ol_enable_glue" = mod ; then
52768                 MFLAG=SLAPD_MOD_DYNAMIC
52769                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52770         else
52771                 MFLAG=SLAPD_MOD_STATIC
52772                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52773         fi
52774
52775 cat >>confdefs.h <<_ACEOF
52776 #define SLAPD_OVER_GLUE $MFLAG
52777 _ACEOF
52778
52779 fi
52780
52781 if test "$ol_enable_lastmod" != no ; then
52782         BUILD_LASTMOD=$ol_enable_lastmod
52783         if test "$ol_enable_lastmod" = mod ; then
52784                 MFLAG=SLAPD_MOD_DYNAMIC
52785                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52786         else
52787                 MFLAG=SLAPD_MOD_STATIC
52788                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52789         fi
52790
52791 cat >>confdefs.h <<_ACEOF
52792 #define SLAPD_OVER_LASTMOD $MFLAG
52793 _ACEOF
52794
52795 fi
52796
52797 if test "$ol_enable_ppolicy" != no ; then
52798         BUILD_PPOLICY=$ol_enable_ppolicy
52799         if test "$ol_enable_ppolicy" = mod ; then
52800                 MFLAG=SLAPD_MOD_DYNAMIC
52801                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52802         else
52803                 MFLAG=SLAPD_MOD_STATIC
52804                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52805         fi
52806
52807 cat >>confdefs.h <<_ACEOF
52808 #define SLAPD_OVER_PPOLICY $MFLAG
52809 _ACEOF
52810
52811 fi
52812
52813 if test "$ol_enable_proxycache" != no ; then
52814         BUILD_PROXYCACHE=$ol_enable_proxycache
52815         if test "$ol_enable_proxycache" = mod ; then
52816                 MFLAG=SLAPD_MOD_DYNAMIC
52817                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52818         else
52819                 MFLAG=SLAPD_MOD_STATIC
52820                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52821         fi
52822
52823 cat >>confdefs.h <<_ACEOF
52824 #define SLAPD_OVER_PROXYCACHE $MFLAG
52825 _ACEOF
52826
52827 fi
52828
52829 if test "$ol_enable_refint" != no ; then
52830         BUILD_REFINT=$ol_enable_refint
52831         if test "$ol_enable_refint" = mod ; then
52832                 MFLAG=SLAPD_MOD_DYNAMIC
52833                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52834         else
52835                 MFLAG=SLAPD_MOD_STATIC
52836                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52837         fi
52838
52839 cat >>confdefs.h <<_ACEOF
52840 #define SLAPD_OVER_REFINT $MFLAG
52841 _ACEOF
52842
52843 fi
52844
52845 if test "$ol_enable_retcode" != no ; then
52846         BUILD_RETCODE=$ol_enable_retcode
52847         if test "$ol_enable_retcode" = mod ; then
52848                 MFLAG=SLAPD_MOD_DYNAMIC
52849                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52850         else
52851                 MFLAG=SLAPD_MOD_STATIC
52852                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52853         fi
52854
52855 cat >>confdefs.h <<_ACEOF
52856 #define SLAPD_OVER_RETCODE $MFLAG
52857 _ACEOF
52858
52859 fi
52860
52861 if test "$ol_enable_rwm" != no ; then
52862         BUILD_REWRITE=yes
52863         BUILD_RWM=$ol_enable_rwm
52864         if test "$ol_enable_rwm" = mod ; then
52865                 MFLAG=SLAPD_MOD_DYNAMIC
52866                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52867         else
52868                 MFLAG=SLAPD_MOD_STATIC
52869                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52870         fi
52871
52872 cat >>confdefs.h <<_ACEOF
52873 #define SLAPD_OVER_RWM $MFLAG
52874 _ACEOF
52875
52876 fi
52877
52878 if test "$ol_enable_syncprov" != no ; then
52879         BUILD_SYNCPROV=$ol_enable_syncprov
52880         if test "$ol_enable_syncprov" = mod ; then
52881                 MFLAG=SLAPD_MOD_DYNAMIC
52882                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52883         else
52884                 MFLAG=SLAPD_MOD_STATIC
52885                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52886         fi
52887
52888 cat >>confdefs.h <<_ACEOF
52889 #define SLAPD_OVER_SYNCPROV $MFLAG
52890 _ACEOF
52891
52892 fi
52893
52894 if test "$ol_enable_translucent" != no ; then
52895         BUILD_TRANSLUCENT=$ol_enable_translucent
52896         if test "$ol_enable_translucent" = mod ; then
52897                 MFLAG=SLAPD_MOD_DYNAMIC
52898                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52899         else
52900                 MFLAG=SLAPD_MOD_STATIC
52901                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52902         fi
52903
52904 cat >>confdefs.h <<_ACEOF
52905 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52906 _ACEOF
52907
52908 fi
52909
52910 if test "$ol_enable_unique" != no ; then
52911         BUILD_UNIQUE=$ol_enable_unique
52912         if test "$ol_enable_unique" = mod ; then
52913                 MFLAG=SLAPD_MOD_DYNAMIC
52914                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52915         else
52916                 MFLAG=SLAPD_MOD_STATIC
52917                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52918         fi
52919
52920 cat >>confdefs.h <<_ACEOF
52921 #define SLAPD_OVER_UNIQUE $MFLAG
52922 _ACEOF
52923
52924 fi
52925
52926 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52927         $BUILD_SLAPD = yes ; then
52928         BUILD_SLURPD=yes
52929 fi
52930
52931 if test "$ol_enable_rewrite" != no ; then
52932
52933 cat >>confdefs.h <<\_ACEOF
52934 #define ENABLE_REWRITE 1
52935 _ACEOF
52936
52937         BUILD_REWRITE=yes
52938 fi
52939
52940 if test "$ol_enable_slapi" != no ; then
52941
52942 cat >>confdefs.h <<\_ACEOF
52943 #define ENABLE_SLAPI 1
52944 _ACEOF
52945
52946         BUILD_SLAPI=yes
52947         SLAPD_SLAPI_DEPEND=libslapi.a
52948 fi
52949
52950
52951
52952 if test "$ac_cv_mingw32" = yes ; then
52953         PLAT=NT
52954         SLAPD_MODULES_LDFLAGS=
52955 else
52956         PLAT=UNIX
52957 fi
52958
52959
52960
52961
52962
52963
52964
52965
52966
52967
52968
52969
52970
52971
52972
52973
52974
52975
52976
52977
52978
52979
52980
52981
52982
52983
52984
52985
52986
52987
52988
52989
52990
52991
52992
52993
52994
52995
52996
52997
52998
52999
53000
53001
53002
53003
53004
53005
53006
53007
53008
53009
53010
53011
53012
53013
53014
53015
53016
53017
53018
53019
53020
53021
53022
53023
53024
53025
53026
53027
53028
53029
53030
53031
53032
53033
53034
53035
53036
53037 # Check whether --with-xxinstall or --without-xxinstall was given.
53038 if test "${with_xxinstall+set}" = set; then
53039   withval="$with_xxinstall"
53040
53041 fi;
53042
53043
53044                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
53045
53046
53047           ac_config_commands="$ac_config_commands default"
53048
53049
53050
53051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53052 # Let make expand exec_prefix.
53053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53054
53055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53057 # trailing colons and then remove the whole line if VPATH becomes empty
53058 # (actually we leave an empty line to preserve line numbers).
53059 if test "x$srcdir" = x.; then
53060   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53061 s/:*\$(srcdir):*/:/;
53062 s/:*\${srcdir}:*/:/;
53063 s/:*@srcdir@:*/:/;
53064 s/^\([^=]*=[     ]*\):*/\1/;
53065 s/:*$//;
53066 s/^[^=]*=[       ]*$//;
53067 }'
53068 fi
53069
53070 DEFS=-DHAVE_CONFIG_H
53071
53072 ac_libobjs=
53073 ac_ltlibobjs=
53074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53075   # 1. Remove the extension, and $U if already installed.
53076   ac_i=`echo "$ac_i" |
53077          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53078   # 2. Add them.
53079   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53080   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53081 done
53082 LIBOBJS=$ac_libobjs
53083
53084 LTLIBOBJS=$ac_ltlibobjs
53085
53086
53087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53088   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53089 Usually this means the macro was only invoked conditionally." >&5
53090 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53091 Usually this means the macro was only invoked conditionally." >&2;}
53092    { (exit 1); exit 1; }; }
53093 fi
53094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53095   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53096 Usually this means the macro was only invoked conditionally." >&5
53097 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53098 Usually this means the macro was only invoked conditionally." >&2;}
53099    { (exit 1); exit 1; }; }
53100 fi
53101 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53102   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53103 Usually this means the macro was only invoked conditionally." >&5
53104 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53105 Usually this means the macro was only invoked conditionally." >&2;}
53106    { (exit 1); exit 1; }; }
53107 fi
53108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53109   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53110 Usually this means the macro was only invoked conditionally." >&5
53111 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53112 Usually this means the macro was only invoked conditionally." >&2;}
53113    { (exit 1); exit 1; }; }
53114 fi
53115
53116 : ${CONFIG_STATUS=./config.status}
53117 ac_clean_files_save=$ac_clean_files
53118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53119 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53120 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53121 cat >$CONFIG_STATUS <<_ACEOF
53122 #! $SHELL
53123 # Generated by $as_me.
53124 # Run this file to recreate the current configuration.
53125 # Compiler output produced by configure, useful for debugging
53126 # configure, is in config.log if it exists.
53127
53128 debug=false
53129 ac_cs_recheck=false
53130 ac_cs_silent=false
53131 SHELL=\${CONFIG_SHELL-$SHELL}
53132 _ACEOF
53133
53134 cat >>$CONFIG_STATUS <<\_ACEOF
53135 ## --------------------- ##
53136 ## M4sh Initialization.  ##
53137 ## --------------------- ##
53138
53139 # Be Bourne compatible
53140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53141   emulate sh
53142   NULLCMD=:
53143   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53144   # is contrary to our usage.  Disable this feature.
53145   alias -g '${1+"$@"}'='"$@"'
53146 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53147   set -o posix
53148 fi
53149 DUALCASE=1; export DUALCASE # for MKS sh
53150
53151 # Support unset when possible.
53152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53153   as_unset=unset
53154 else
53155   as_unset=false
53156 fi
53157
53158
53159 # Work around bugs in pre-3.0 UWIN ksh.
53160 $as_unset ENV MAIL MAILPATH
53161 PS1='$ '
53162 PS2='> '
53163 PS4='+ '
53164
53165 # NLS nuisances.
53166 for as_var in \
53167   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53168   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53169   LC_TELEPHONE LC_TIME
53170 do
53171   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53172     eval $as_var=C; export $as_var
53173   else
53174     $as_unset $as_var
53175   fi
53176 done
53177
53178 # Required to use basename.
53179 if expr a : '\(a\)' >/dev/null 2>&1; then
53180   as_expr=expr
53181 else
53182   as_expr=false
53183 fi
53184
53185 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53186   as_basename=basename
53187 else
53188   as_basename=false
53189 fi
53190
53191
53192 # Name of the executable.
53193 as_me=`$as_basename "$0" ||
53194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53195          X"$0" : 'X\(//\)$' \| \
53196          X"$0" : 'X\(/\)$' \| \
53197          .     : '\(.\)' 2>/dev/null ||
53198 echo X/"$0" |
53199     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53200           /^X\/\(\/\/\)$/{ s//\1/; q; }
53201           /^X\/\(\/\).*/{ s//\1/; q; }
53202           s/.*/./; q'`
53203
53204
53205 # PATH needs CR, and LINENO needs CR and PATH.
53206 # Avoid depending upon Character Ranges.
53207 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53210 as_cr_digits='0123456789'
53211 as_cr_alnum=$as_cr_Letters$as_cr_digits
53212
53213 # The user is always right.
53214 if test "${PATH_SEPARATOR+set}" != set; then
53215   echo "#! /bin/sh" >conf$$.sh
53216   echo  "exit 0"   >>conf$$.sh
53217   chmod +x conf$$.sh
53218   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53219     PATH_SEPARATOR=';'
53220   else
53221     PATH_SEPARATOR=:
53222   fi
53223   rm -f conf$$.sh
53224 fi
53225
53226
53227   as_lineno_1=$LINENO
53228   as_lineno_2=$LINENO
53229   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53230   test "x$as_lineno_1" != "x$as_lineno_2" &&
53231   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53232   # Find who we are.  Look in the path if we contain no path at all
53233   # relative or not.
53234   case $0 in
53235     *[\\/]* ) as_myself=$0 ;;
53236     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53237 for as_dir in $PATH
53238 do
53239   IFS=$as_save_IFS
53240   test -z "$as_dir" && as_dir=.
53241   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53242 done
53243
53244        ;;
53245   esac
53246   # We did not find ourselves, most probably we were run as `sh COMMAND'
53247   # in which case we are not to be found in the path.
53248   if test "x$as_myself" = x; then
53249     as_myself=$0
53250   fi
53251   if test ! -f "$as_myself"; then
53252     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53253 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53254    { (exit 1); exit 1; }; }
53255   fi
53256   case $CONFIG_SHELL in
53257   '')
53258     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53259 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53260 do
53261   IFS=$as_save_IFS
53262   test -z "$as_dir" && as_dir=.
53263   for as_base in sh bash ksh sh5; do
53264          case $as_dir in
53265          /*)
53266            if ("$as_dir/$as_base" -c '
53267   as_lineno_1=$LINENO
53268   as_lineno_2=$LINENO
53269   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53270   test "x$as_lineno_1" != "x$as_lineno_2" &&
53271   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53272              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53273              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53274              CONFIG_SHELL=$as_dir/$as_base
53275              export CONFIG_SHELL
53276              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53277            fi;;
53278          esac
53279        done
53280 done
53281 ;;
53282   esac
53283
53284   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53285   # uniformly replaced by the line number.  The first 'sed' inserts a
53286   # line-number line before each line; the second 'sed' does the real
53287   # work.  The second script uses 'N' to pair each line-number line
53288   # with the numbered line, and appends trailing '-' during
53289   # substitution so that $LINENO is not a special case at line end.
53290   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53291   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53292   sed '=' <$as_myself |
53293     sed '
53294       N
53295       s,$,-,
53296       : loop
53297       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53298       t loop
53299       s,-$,,
53300       s,^['$as_cr_digits']*\n,,
53301     ' >$as_me.lineno &&
53302   chmod +x $as_me.lineno ||
53303     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53304 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53305    { (exit 1); exit 1; }; }
53306
53307   # Don't try to exec as it changes $[0], causing all sort of problems
53308   # (the dirname of $[0] is not the place where we might find the
53309   # original and so on.  Autoconf is especially sensible to this).
53310   . ./$as_me.lineno
53311   # Exit status is that of the last command.
53312   exit
53313 }
53314
53315
53316 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53317   *c*,-n*) ECHO_N= ECHO_C='
53318 ' ECHO_T='      ' ;;
53319   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53320   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53321 esac
53322
53323 if expr a : '\(a\)' >/dev/null 2>&1; then
53324   as_expr=expr
53325 else
53326   as_expr=false
53327 fi
53328
53329 rm -f conf$$ conf$$.exe conf$$.file
53330 echo >conf$$.file
53331 if ln -s conf$$.file conf$$ 2>/dev/null; then
53332   # We could just check for DJGPP; but this test a) works b) is more generic
53333   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53334   if test -f conf$$.exe; then
53335     # Don't use ln at all; we don't have any links
53336     as_ln_s='cp -p'
53337   else
53338     as_ln_s='ln -s'
53339   fi
53340 elif ln conf$$.file conf$$ 2>/dev/null; then
53341   as_ln_s=ln
53342 else
53343   as_ln_s='cp -p'
53344 fi
53345 rm -f conf$$ conf$$.exe conf$$.file
53346
53347 if mkdir -p . 2>/dev/null; then
53348   as_mkdir_p=:
53349 else
53350   test -d ./-p && rmdir ./-p
53351   as_mkdir_p=false
53352 fi
53353
53354 as_executable_p="test -f"
53355
53356 # Sed expression to map a string onto a valid CPP name.
53357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53358
53359 # Sed expression to map a string onto a valid variable name.
53360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53361
53362
53363 # IFS
53364 # We need space, tab and new line, in precisely that order.
53365 as_nl='
53366 '
53367 IFS="   $as_nl"
53368
53369 # CDPATH.
53370 $as_unset CDPATH
53371
53372 exec 6>&1
53373
53374 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53375 # report actual input values of CONFIG_FILES etc. instead of their
53376 # values after options handling.  Logging --version etc. is OK.
53377 exec 5>>config.log
53378 {
53379   echo
53380   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53381 ## Running $as_me. ##
53382 _ASBOX
53383 } >&5
53384 cat >&5 <<_CSEOF
53385
53386 This file was extended by $as_me, which was
53387 generated by GNU Autoconf 2.59.  Invocation command line was
53388
53389   CONFIG_FILES    = $CONFIG_FILES
53390   CONFIG_HEADERS  = $CONFIG_HEADERS
53391   CONFIG_LINKS    = $CONFIG_LINKS
53392   CONFIG_COMMANDS = $CONFIG_COMMANDS
53393   $ $0 $@
53394
53395 _CSEOF
53396 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53397 echo >&5
53398 _ACEOF
53399
53400 # Files that config.status was made for.
53401 if test -n "$ac_config_files"; then
53402   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53403 fi
53404
53405 if test -n "$ac_config_headers"; then
53406   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53407 fi
53408
53409 if test -n "$ac_config_links"; then
53410   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53411 fi
53412
53413 if test -n "$ac_config_commands"; then
53414   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53415 fi
53416
53417 cat >>$CONFIG_STATUS <<\_ACEOF
53418
53419 ac_cs_usage="\
53420 \`$as_me' instantiates files from templates according to the
53421 current configuration.
53422
53423 Usage: $0 [OPTIONS] [FILE]...
53424
53425   -h, --help       print this help, then exit
53426   -V, --version    print version number, then exit
53427   -q, --quiet      do not print progress messages
53428   -d, --debug      don't remove temporary files
53429       --recheck    update $as_me by reconfiguring in the same conditions
53430   --file=FILE[:TEMPLATE]
53431                    instantiate the configuration file FILE
53432   --header=FILE[:TEMPLATE]
53433                    instantiate the configuration header FILE
53434
53435 Configuration files:
53436 $config_files
53437
53438 Configuration headers:
53439 $config_headers
53440
53441 Configuration commands:
53442 $config_commands
53443
53444 Report bugs to <bug-autoconf@gnu.org>."
53445 _ACEOF
53446
53447 cat >>$CONFIG_STATUS <<_ACEOF
53448 ac_cs_version="\\
53449 config.status
53450 configured by $0, generated by GNU Autoconf 2.59,
53451   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53452
53453 Copyright (C) 2003 Free Software Foundation, Inc.
53454 This config.status script is free software; the Free Software Foundation
53455 gives unlimited permission to copy, distribute and modify it."
53456 srcdir=$srcdir
53457 INSTALL="$INSTALL"
53458 _ACEOF
53459
53460 cat >>$CONFIG_STATUS <<\_ACEOF
53461 # If no file are specified by the user, then we need to provide default
53462 # value.  By we need to know if files were specified by the user.
53463 ac_need_defaults=:
53464 while test $# != 0
53465 do
53466   case $1 in
53467   --*=*)
53468     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53469     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53470     ac_shift=:
53471     ;;
53472   -*)
53473     ac_option=$1
53474     ac_optarg=$2
53475     ac_shift=shift
53476     ;;
53477   *) # This is not an option, so the user has probably given explicit
53478      # arguments.
53479      ac_option=$1
53480      ac_need_defaults=false;;
53481   esac
53482
53483   case $ac_option in
53484   # Handling of the options.
53485 _ACEOF
53486 cat >>$CONFIG_STATUS <<\_ACEOF
53487   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53488     ac_cs_recheck=: ;;
53489   --version | --vers* | -V )
53490     echo "$ac_cs_version"; exit 0 ;;
53491   --he | --h)
53492     # Conflict between --help and --header
53493     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53494 Try \`$0 --help' for more information." >&5
53495 echo "$as_me: error: ambiguous option: $1
53496 Try \`$0 --help' for more information." >&2;}
53497    { (exit 1); exit 1; }; };;
53498   --help | --hel | -h )
53499     echo "$ac_cs_usage"; exit 0 ;;
53500   --debug | --d* | -d )
53501     debug=: ;;
53502   --file | --fil | --fi | --f )
53503     $ac_shift
53504     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53505     ac_need_defaults=false;;
53506   --header | --heade | --head | --hea )
53507     $ac_shift
53508     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53509     ac_need_defaults=false;;
53510   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53511   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53512     ac_cs_silent=: ;;
53513
53514   # This is an error.
53515   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53516 Try \`$0 --help' for more information." >&5
53517 echo "$as_me: error: unrecognized option: $1
53518 Try \`$0 --help' for more information." >&2;}
53519    { (exit 1); exit 1; }; } ;;
53520
53521   *) ac_config_targets="$ac_config_targets $1" ;;
53522
53523   esac
53524   shift
53525 done
53526
53527 ac_configure_extra_args=
53528
53529 if $ac_cs_silent; then
53530   exec 6>/dev/null
53531   ac_configure_extra_args="$ac_configure_extra_args --silent"
53532 fi
53533
53534 _ACEOF
53535 cat >>$CONFIG_STATUS <<_ACEOF
53536 if \$ac_cs_recheck; then
53537   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53538   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53539 fi
53540
53541 _ACEOF
53542
53543 cat >>$CONFIG_STATUS <<_ACEOF
53544 #
53545 # INIT-COMMANDS section.
53546 #
53547
53548 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53549 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53550
53551 _ACEOF
53552
53553
53554
53555 cat >>$CONFIG_STATUS <<\_ACEOF
53556 for ac_config_target in $ac_config_targets
53557 do
53558   case "$ac_config_target" in
53559   # Handling of arguments.
53560   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53561   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53562   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53563   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53564   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53565   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53566   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53567   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53568   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53569   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53570   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53571   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53572   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53573   "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" ;;
53574   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53575   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53576   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53577   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53578   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53579   "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" ;;
53580   "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" ;;
53581   "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" ;;
53582   "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" ;;
53583   "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" ;;
53584   "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" ;;
53585   "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" ;;
53586   "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" ;;
53587   "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" ;;
53588   "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" ;;
53589   "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" ;;
53590   "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" ;;
53591   "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" ;;
53592   "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" ;;
53593   "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" ;;
53594   "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" ;;
53595   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53596   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53597   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53598   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53599   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53600   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53601   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53602   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53603   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53604   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53605   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53606 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53607    { (exit 1); exit 1; }; };;
53608   esac
53609 done
53610
53611 # If the user did not use the arguments to specify the items to instantiate,
53612 # then the envvar interface is used.  Set only those that are not.
53613 # We use the long form for the default assignment because of an extremely
53614 # bizarre bug on SunOS 4.1.3.
53615 if $ac_need_defaults; then
53616   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53617   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53618   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53619 fi
53620
53621 # Have a temporary directory for convenience.  Make it in the build tree
53622 # simply because there is no reason to put it here, and in addition,
53623 # creating and moving files from /tmp can sometimes cause problems.
53624 # Create a temporary directory, and hook for its removal unless debugging.
53625 $debug ||
53626 {
53627   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53628   trap '{ (exit 1); exit 1; }' 1 2 13 15
53629 }
53630
53631 # Create a (secure) tmp directory for tmp files.
53632
53633 {
53634   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53635   test -n "$tmp" && test -d "$tmp"
53636 }  ||
53637 {
53638   tmp=./confstat$$-$RANDOM
53639   (umask 077 && mkdir $tmp)
53640 } ||
53641 {
53642    echo "$me: cannot create a temporary directory in ." >&2
53643    { (exit 1); exit 1; }
53644 }
53645
53646 _ACEOF
53647
53648 cat >>$CONFIG_STATUS <<_ACEOF
53649
53650 #
53651 # CONFIG_FILES section.
53652 #
53653
53654 # No need to generate the scripts if there are no CONFIG_FILES.
53655 # This happens for instance when ./config.status config.h
53656 if test -n "\$CONFIG_FILES"; then
53657   # Protect against being on the right side of a sed subst in config.status.
53658   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53659    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53660 s,@SHELL@,$SHELL,;t t
53661 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53662 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53663 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53664 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53665 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53666 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53667 s,@exec_prefix@,$exec_prefix,;t t
53668 s,@prefix@,$prefix,;t t
53669 s,@program_transform_name@,$program_transform_name,;t t
53670 s,@bindir@,$bindir,;t t
53671 s,@sbindir@,$sbindir,;t t
53672 s,@libexecdir@,$libexecdir,;t t
53673 s,@datadir@,$datadir,;t t
53674 s,@sysconfdir@,$sysconfdir,;t t
53675 s,@sharedstatedir@,$sharedstatedir,;t t
53676 s,@localstatedir@,$localstatedir,;t t
53677 s,@libdir@,$libdir,;t t
53678 s,@includedir@,$includedir,;t t
53679 s,@oldincludedir@,$oldincludedir,;t t
53680 s,@infodir@,$infodir,;t t
53681 s,@mandir@,$mandir,;t t
53682 s,@build_alias@,$build_alias,;t t
53683 s,@host_alias@,$host_alias,;t t
53684 s,@target_alias@,$target_alias,;t t
53685 s,@DEFS@,$DEFS,;t t
53686 s,@ECHO_C@,$ECHO_C,;t t
53687 s,@ECHO_N@,$ECHO_N,;t t
53688 s,@ECHO_T@,$ECHO_T,;t t
53689 s,@LIBS@,$LIBS,;t t
53690 s,@build@,$build,;t t
53691 s,@build_cpu@,$build_cpu,;t t
53692 s,@build_vendor@,$build_vendor,;t t
53693 s,@build_os@,$build_os,;t t
53694 s,@host@,$host,;t t
53695 s,@host_cpu@,$host_cpu,;t t
53696 s,@host_vendor@,$host_vendor,;t t
53697 s,@host_os@,$host_os,;t t
53698 s,@target@,$target,;t t
53699 s,@target_cpu@,$target_cpu,;t t
53700 s,@target_vendor@,$target_vendor,;t t
53701 s,@target_os@,$target_os,;t t
53702 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53703 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53704 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53705 s,@CYGPATH_W@,$CYGPATH_W,;t t
53706 s,@PACKAGE@,$PACKAGE,;t t
53707 s,@VERSION@,$VERSION,;t t
53708 s,@ACLOCAL@,$ACLOCAL,;t t
53709 s,@AUTOCONF@,$AUTOCONF,;t t
53710 s,@AUTOMAKE@,$AUTOMAKE,;t t
53711 s,@AUTOHEADER@,$AUTOHEADER,;t t
53712 s,@MAKEINFO@,$MAKEINFO,;t t
53713 s,@install_sh@,$install_sh,;t t
53714 s,@STRIP@,$STRIP,;t t
53715 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53716 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53717 s,@mkdir_p@,$mkdir_p,;t t
53718 s,@AWK@,$AWK,;t t
53719 s,@SET_MAKE@,$SET_MAKE,;t t
53720 s,@am__leading_dot@,$am__leading_dot,;t t
53721 s,@AMTAR@,$AMTAR,;t t
53722 s,@am__tar@,$am__tar,;t t
53723 s,@am__untar@,$am__untar,;t t
53724 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53725 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53726 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53727 s,@top_builddir@,$top_builddir,;t t
53728 s,@ldap_subdir@,$ldap_subdir,;t t
53729 s,@CC@,$CC,;t t
53730 s,@AR@,$AR,;t t
53731 s,@CFLAGS@,$CFLAGS,;t t
53732 s,@LDFLAGS@,$LDFLAGS,;t t
53733 s,@CPPFLAGS@,$CPPFLAGS,;t t
53734 s,@ac_ct_CC@,$ac_ct_CC,;t t
53735 s,@EXEEXT@,$EXEEXT,;t t
53736 s,@OBJEXT@,$OBJEXT,;t t
53737 s,@DEPDIR@,$DEPDIR,;t t
53738 s,@am__include@,$am__include,;t t
53739 s,@am__quote@,$am__quote,;t t
53740 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53741 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53742 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53743 s,@CCDEPMODE@,$CCDEPMODE,;t t
53744 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53745 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53746 s,@EGREP@,$EGREP,;t t
53747 s,@LN_S@,$LN_S,;t t
53748 s,@ECHO@,$ECHO,;t t
53749 s,@ac_ct_AR@,$ac_ct_AR,;t t
53750 s,@RANLIB@,$RANLIB,;t t
53751 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53752 s,@DLLTOOL@,$DLLTOOL,;t t
53753 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53754 s,@AS@,$AS,;t t
53755 s,@ac_ct_AS@,$ac_ct_AS,;t t
53756 s,@OBJDUMP@,$OBJDUMP,;t t
53757 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53758 s,@CPP@,$CPP,;t t
53759 s,@CXX@,$CXX,;t t
53760 s,@CXXFLAGS@,$CXXFLAGS,;t t
53761 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53762 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53763 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53764 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53765 s,@CXXCPP@,$CXXCPP,;t t
53766 s,@F77@,$F77,;t t
53767 s,@FFLAGS@,$FFLAGS,;t t
53768 s,@ac_ct_F77@,$ac_ct_F77,;t t
53769 s,@LIBTOOL@,$LIBTOOL,;t t
53770 s,@PERLBIN@,$PERLBIN,;t t
53771 s,@OL_MKDEP@,$OL_MKDEP,;t t
53772 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53773 s,@LTSTATIC@,$LTSTATIC,;t t
53774 s,@LIBOBJS@,$LIBOBJS,;t t
53775 s,@LIBSRCS@,$LIBSRCS,;t t
53776 s,@PLAT@,$PLAT,;t t
53777 s,@WITH_SASL@,$WITH_SASL,;t t
53778 s,@WITH_TLS@,$WITH_TLS,;t t
53779 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53780 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53781 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53782 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53783 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53784 s,@BUILD_BDB@,$BUILD_BDB,;t t
53785 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53786 s,@BUILD_HDB@,$BUILD_HDB,;t t
53787 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53788 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53789 s,@BUILD_META@,$BUILD_META,;t t
53790 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53791 s,@BUILD_NULL@,$BUILD_NULL,;t t
53792 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53793 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53794 s,@BUILD_PERL@,$BUILD_PERL,;t t
53795 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53796 s,@BUILD_SQL@,$BUILD_SQL,;t t
53797 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53798 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53799 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53800 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53801 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53802 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53803 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53804 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53805 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53806 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53807 s,@BUILD_RWM@,$BUILD_RWM,;t t
53808 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53809 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53810 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53811 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53812 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53813 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53814 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53815 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53816 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53817 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53818 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53819 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53820 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53821 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53822 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53823 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53824 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53825 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53826 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53827 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53828 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53829 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53830 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53831 s,@SASL_LIBS@,$SASL_LIBS,;t t
53832 s,@TLS_LIBS@,$TLS_LIBS,;t t
53833 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53834 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53835 s,@LIBSLAPI@,$LIBSLAPI,;t t
53836 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53837 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53838 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53839 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53840 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53841 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53842 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53843 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53844 CEOF
53845
53846 _ACEOF
53847
53848   cat >>$CONFIG_STATUS <<\_ACEOF
53849   # Split the substitutions into bite-sized pieces for seds with
53850   # small command number limits, like on Digital OSF/1 and HP-UX.
53851   ac_max_sed_lines=48
53852   ac_sed_frag=1 # Number of current file.
53853   ac_beg=1 # First line for current file.
53854   ac_end=$ac_max_sed_lines # Line after last line for current file.
53855   ac_more_lines=:
53856   ac_sed_cmds=
53857   while $ac_more_lines; do
53858     if test $ac_beg -gt 1; then
53859       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53860     else
53861       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53862     fi
53863     if test ! -s $tmp/subs.frag; then
53864       ac_more_lines=false
53865     else
53866       # The purpose of the label and of the branching condition is to
53867       # speed up the sed processing (if there are no `@' at all, there
53868       # is no need to browse any of the substitutions).
53869       # These are the two extra sed commands mentioned above.
53870       (echo ':t
53871   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53872       if test -z "$ac_sed_cmds"; then
53873         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53874       else
53875         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53876       fi
53877       ac_sed_frag=`expr $ac_sed_frag + 1`
53878       ac_beg=$ac_end
53879       ac_end=`expr $ac_end + $ac_max_sed_lines`
53880     fi
53881   done
53882   if test -z "$ac_sed_cmds"; then
53883     ac_sed_cmds=cat
53884   fi
53885 fi # test -n "$CONFIG_FILES"
53886
53887 _ACEOF
53888 cat >>$CONFIG_STATUS <<\_ACEOF
53889 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53890   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53891   case $ac_file in
53892   - | *:- | *:-:* ) # input from stdin
53893         cat >$tmp/stdin
53894         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53895         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53896   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53897         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53898   * )   ac_file_in=$ac_file.in ;;
53899   esac
53900
53901   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53902   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53904          X"$ac_file" : 'X\(//\)[^/]' \| \
53905          X"$ac_file" : 'X\(//\)$' \| \
53906          X"$ac_file" : 'X\(/\)' \| \
53907          .     : '\(.\)' 2>/dev/null ||
53908 echo X"$ac_file" |
53909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53910           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53911           /^X\(\/\/\)$/{ s//\1/; q; }
53912           /^X\(\/\).*/{ s//\1/; q; }
53913           s/.*/./; q'`
53914   { if $as_mkdir_p; then
53915     mkdir -p "$ac_dir"
53916   else
53917     as_dir="$ac_dir"
53918     as_dirs=
53919     while test ! -d "$as_dir"; do
53920       as_dirs="$as_dir $as_dirs"
53921       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53923          X"$as_dir" : 'X\(//\)[^/]' \| \
53924          X"$as_dir" : 'X\(//\)$' \| \
53925          X"$as_dir" : 'X\(/\)' \| \
53926          .     : '\(.\)' 2>/dev/null ||
53927 echo X"$as_dir" |
53928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53929           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53930           /^X\(\/\/\)$/{ s//\1/; q; }
53931           /^X\(\/\).*/{ s//\1/; q; }
53932           s/.*/./; q'`
53933     done
53934     test ! -n "$as_dirs" || mkdir $as_dirs
53935   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53937    { (exit 1); exit 1; }; }; }
53938
53939   ac_builddir=.
53940
53941 if test "$ac_dir" != .; then
53942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53943   # A "../" for each directory in $ac_dir_suffix.
53944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53945 else
53946   ac_dir_suffix= ac_top_builddir=
53947 fi
53948
53949 case $srcdir in
53950   .)  # No --srcdir option.  We are building in place.
53951     ac_srcdir=.
53952     if test -z "$ac_top_builddir"; then
53953        ac_top_srcdir=.
53954     else
53955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53956     fi ;;
53957   [\\/]* | ?:[\\/]* )  # Absolute path.
53958     ac_srcdir=$srcdir$ac_dir_suffix;
53959     ac_top_srcdir=$srcdir ;;
53960   *) # Relative path.
53961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53963 esac
53964
53965 # Do not use `cd foo && pwd` to compute absolute paths, because
53966 # the directories may not exist.
53967 case `pwd` in
53968 .) ac_abs_builddir="$ac_dir";;
53969 *)
53970   case "$ac_dir" in
53971   .) ac_abs_builddir=`pwd`;;
53972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53974   esac;;
53975 esac
53976 case $ac_abs_builddir in
53977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53978 *)
53979   case ${ac_top_builddir}. in
53980   .) ac_abs_top_builddir=$ac_abs_builddir;;
53981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53983   esac;;
53984 esac
53985 case $ac_abs_builddir in
53986 .) ac_abs_srcdir=$ac_srcdir;;
53987 *)
53988   case $ac_srcdir in
53989   .) ac_abs_srcdir=$ac_abs_builddir;;
53990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53992   esac;;
53993 esac
53994 case $ac_abs_builddir in
53995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53996 *)
53997   case $ac_top_srcdir in
53998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54001   esac;;
54002 esac
54003
54004
54005   case $INSTALL in
54006   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54007   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54008   esac
54009
54010   if test x"$ac_file" != x-; then
54011     { echo "$as_me:$LINENO: creating $ac_file" >&5
54012 echo "$as_me: creating $ac_file" >&6;}
54013     rm -f "$ac_file"
54014   fi
54015   # Let's still pretend it is `configure' which instantiates (i.e., don't
54016   # use $as_me), people would be surprised to read:
54017   #    /* config.h.  Generated by config.status.  */
54018   if test x"$ac_file" = x-; then
54019     configure_input=
54020   else
54021     configure_input="$ac_file.  "
54022   fi
54023   configure_input=$configure_input"Generated from `echo $ac_file_in |
54024                                      sed 's,.*/,,'` by configure."
54025
54026   # First look for the input files in the build tree, otherwise in the
54027   # src tree.
54028   ac_file_inputs=`IFS=:
54029     for f in $ac_file_in; do
54030       case $f in
54031       -) echo $tmp/stdin ;;
54032       [\\/$]*)
54033          # Absolute (can't be DOS-style, as IFS=:)
54034          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54035 echo "$as_me: error: cannot find input file: $f" >&2;}
54036    { (exit 1); exit 1; }; }
54037          echo "$f";;
54038       *) # Relative
54039          if test -f "$f"; then
54040            # Build tree
54041            echo "$f"
54042          elif test -f "$srcdir/$f"; then
54043            # Source tree
54044            echo "$srcdir/$f"
54045          else
54046            # /dev/null tree
54047            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54048 echo "$as_me: error: cannot find input file: $f" >&2;}
54049    { (exit 1); exit 1; }; }
54050          fi;;
54051       esac
54052     done` || { (exit 1); exit 1; }
54053 _ACEOF
54054 cat >>$CONFIG_STATUS <<_ACEOF
54055   sed "$ac_vpsub
54056 $extrasub
54057 _ACEOF
54058 cat >>$CONFIG_STATUS <<\_ACEOF
54059 :t
54060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54061 s,@configure_input@,$configure_input,;t t
54062 s,@srcdir@,$ac_srcdir,;t t
54063 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54064 s,@top_srcdir@,$ac_top_srcdir,;t t
54065 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54066 s,@builddir@,$ac_builddir,;t t
54067 s,@abs_builddir@,$ac_abs_builddir,;t t
54068 s,@top_builddir@,$ac_top_builddir,;t t
54069 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54070 s,@INSTALL@,$ac_INSTALL,;t t
54071 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54072   rm -f $tmp/stdin
54073   if test x"$ac_file" != x-; then
54074     mv $tmp/out $ac_file
54075   else
54076     cat $tmp/out
54077     rm -f $tmp/out
54078   fi
54079
54080 done
54081 _ACEOF
54082 cat >>$CONFIG_STATUS <<\_ACEOF
54083
54084 #
54085 # CONFIG_HEADER section.
54086 #
54087
54088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54090 #
54091 # ac_d sets the value in "#define NAME VALUE" lines.
54092 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54093 ac_dB='[         ].*$,\1#\2'
54094 ac_dC=' '
54095 ac_dD=',;t'
54096 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54097 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54098 ac_uB='$,\1#\2define\3'
54099 ac_uC=' '
54100 ac_uD=',;t'
54101
54102 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54103   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54104   case $ac_file in
54105   - | *:- | *:-:* ) # input from stdin
54106         cat >$tmp/stdin
54107         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54108         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54109   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54110         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54111   * )   ac_file_in=$ac_file.in ;;
54112   esac
54113
54114   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54115 echo "$as_me: creating $ac_file" >&6;}
54116
54117   # First look for the input files in the build tree, otherwise in the
54118   # src tree.
54119   ac_file_inputs=`IFS=:
54120     for f in $ac_file_in; do
54121       case $f in
54122       -) echo $tmp/stdin ;;
54123       [\\/$]*)
54124          # Absolute (can't be DOS-style, as IFS=:)
54125          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54126 echo "$as_me: error: cannot find input file: $f" >&2;}
54127    { (exit 1); exit 1; }; }
54128          # Do quote $f, to prevent DOS paths from being IFS'd.
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   # Remove the trailing spaces.
54146   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54147
54148 _ACEOF
54149
54150 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54151 # `conftest.undefs', that substitutes the proper values into
54152 # config.h.in to produce config.h.  The first handles `#define'
54153 # templates, and the second `#undef' templates.
54154 # And first: Protect against being on the right side of a sed subst in
54155 # config.status.  Protect against being in an unquoted here document
54156 # in config.status.
54157 rm -f conftest.defines conftest.undefs
54158 # Using a here document instead of a string reduces the quoting nightmare.
54159 # Putting comments in sed scripts is not portable.
54160 #
54161 # `end' is used to avoid that the second main sed command (meant for
54162 # 0-ary CPP macros) applies to n-ary macro definitions.
54163 # See the Autoconf documentation for `clear'.
54164 cat >confdef2sed.sed <<\_ACEOF
54165 s/[\\&,]/\\&/g
54166 s,[\\$`],\\&,g
54167 t clear
54168 : clear
54169 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54170 t end
54171 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54172 : end
54173 _ACEOF
54174 # If some macros were called several times there might be several times
54175 # the same #defines, which is useless.  Nevertheless, we may not want to
54176 # sort them, since we want the *last* AC-DEFINE to be honored.
54177 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54178 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54179 rm -f confdef2sed.sed
54180
54181 # This sed command replaces #undef with comments.  This is necessary, for
54182 # example, in the case of _POSIX_SOURCE, which is predefined and required
54183 # on some systems where configure will not decide to define it.
54184 cat >>conftest.undefs <<\_ACEOF
54185 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54186 _ACEOF
54187
54188 # Break up conftest.defines because some shells have a limit on the size
54189 # of here documents, and old seds have small limits too (100 cmds).
54190 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54191 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54192 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54193 echo '  :' >>$CONFIG_STATUS
54194 rm -f conftest.tail
54195 while grep . conftest.defines >/dev/null
54196 do
54197   # Write a limited-size here document to $tmp/defines.sed.
54198   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54199   # Speed up: don't consider the non `#define' lines.
54200   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54201   # Work around the forget-to-reset-the-flag bug.
54202   echo 't clr' >>$CONFIG_STATUS
54203   echo ': clr' >>$CONFIG_STATUS
54204   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54205   echo 'CEOF
54206   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54207   rm -f $tmp/in
54208   mv $tmp/out $tmp/in
54209 ' >>$CONFIG_STATUS
54210   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54211   rm -f conftest.defines
54212   mv conftest.tail conftest.defines
54213 done
54214 rm -f conftest.defines
54215 echo '  fi # grep' >>$CONFIG_STATUS
54216 echo >>$CONFIG_STATUS
54217
54218 # Break up conftest.undefs because some shells have a limit on the size
54219 # of here documents, and old seds have small limits too (100 cmds).
54220 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54221 rm -f conftest.tail
54222 while grep . conftest.undefs >/dev/null
54223 do
54224   # Write a limited-size here document to $tmp/undefs.sed.
54225   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54226   # Speed up: don't consider the non `#undef'
54227   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54228   # Work around the forget-to-reset-the-flag bug.
54229   echo 't clr' >>$CONFIG_STATUS
54230   echo ': clr' >>$CONFIG_STATUS
54231   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54232   echo 'CEOF
54233   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54234   rm -f $tmp/in
54235   mv $tmp/out $tmp/in
54236 ' >>$CONFIG_STATUS
54237   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54238   rm -f conftest.undefs
54239   mv conftest.tail conftest.undefs
54240 done
54241 rm -f conftest.undefs
54242
54243 cat >>$CONFIG_STATUS <<\_ACEOF
54244   # Let's still pretend it is `configure' which instantiates (i.e., don't
54245   # use $as_me), people would be surprised to read:
54246   #    /* config.h.  Generated by config.status.  */
54247   if test x"$ac_file" = x-; then
54248     echo "/* Generated by configure.  */" >$tmp/config.h
54249   else
54250     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54251   fi
54252   cat $tmp/in >>$tmp/config.h
54253   rm -f $tmp/in
54254   if test x"$ac_file" != x-; then
54255     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54256       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54257 echo "$as_me: $ac_file is unchanged" >&6;}
54258     else
54259       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54261          X"$ac_file" : 'X\(//\)[^/]' \| \
54262          X"$ac_file" : 'X\(//\)$' \| \
54263          X"$ac_file" : 'X\(/\)' \| \
54264          .     : '\(.\)' 2>/dev/null ||
54265 echo X"$ac_file" |
54266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54268           /^X\(\/\/\)$/{ s//\1/; q; }
54269           /^X\(\/\).*/{ s//\1/; q; }
54270           s/.*/./; q'`
54271       { if $as_mkdir_p; then
54272     mkdir -p "$ac_dir"
54273   else
54274     as_dir="$ac_dir"
54275     as_dirs=
54276     while test ! -d "$as_dir"; do
54277       as_dirs="$as_dir $as_dirs"
54278       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54280          X"$as_dir" : 'X\(//\)[^/]' \| \
54281          X"$as_dir" : 'X\(//\)$' \| \
54282          X"$as_dir" : 'X\(/\)' \| \
54283          .     : '\(.\)' 2>/dev/null ||
54284 echo X"$as_dir" |
54285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54287           /^X\(\/\/\)$/{ s//\1/; q; }
54288           /^X\(\/\).*/{ s//\1/; q; }
54289           s/.*/./; q'`
54290     done
54291     test ! -n "$as_dirs" || mkdir $as_dirs
54292   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54294    { (exit 1); exit 1; }; }; }
54295
54296       rm -f $ac_file
54297       mv $tmp/config.h $ac_file
54298     fi
54299   else
54300     cat $tmp/config.h
54301     rm -f $tmp/config.h
54302   fi
54303 # Compute $ac_file's index in $config_headers.
54304 _am_stamp_count=1
54305 for _am_header in $config_headers :; do
54306   case $_am_header in
54307     $ac_file | $ac_file:* )
54308       break ;;
54309     * )
54310       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54311   esac
54312 done
54313 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54314 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54315          X$ac_file : 'X\(//\)[^/]' \| \
54316          X$ac_file : 'X\(//\)$' \| \
54317          X$ac_file : 'X\(/\)' \| \
54318          .     : '\(.\)' 2>/dev/null ||
54319 echo X$ac_file |
54320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54322           /^X\(\/\/\)$/{ s//\1/; q; }
54323           /^X\(\/\).*/{ s//\1/; q; }
54324           s/.*/./; q'`/stamp-h$_am_stamp_count
54325 done
54326 _ACEOF
54327 cat >>$CONFIG_STATUS <<\_ACEOF
54328
54329 #
54330 # CONFIG_COMMANDS section.
54331 #
54332 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54333   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54334   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54335   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54336 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54337          X"$ac_dest" : 'X\(//\)[^/]' \| \
54338          X"$ac_dest" : 'X\(//\)$' \| \
54339          X"$ac_dest" : 'X\(/\)' \| \
54340          .     : '\(.\)' 2>/dev/null ||
54341 echo X"$ac_dest" |
54342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54344           /^X\(\/\/\)$/{ s//\1/; q; }
54345           /^X\(\/\).*/{ s//\1/; q; }
54346           s/.*/./; q'`
54347   { if $as_mkdir_p; then
54348     mkdir -p "$ac_dir"
54349   else
54350     as_dir="$ac_dir"
54351     as_dirs=
54352     while test ! -d "$as_dir"; do
54353       as_dirs="$as_dir $as_dirs"
54354       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54356          X"$as_dir" : 'X\(//\)[^/]' \| \
54357          X"$as_dir" : 'X\(//\)$' \| \
54358          X"$as_dir" : 'X\(/\)' \| \
54359          .     : '\(.\)' 2>/dev/null ||
54360 echo X"$as_dir" |
54361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54362           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54363           /^X\(\/\/\)$/{ s//\1/; q; }
54364           /^X\(\/\).*/{ s//\1/; q; }
54365           s/.*/./; q'`
54366     done
54367     test ! -n "$as_dirs" || mkdir $as_dirs
54368   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54370    { (exit 1); exit 1; }; }; }
54371
54372   ac_builddir=.
54373
54374 if test "$ac_dir" != .; then
54375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54376   # A "../" for each directory in $ac_dir_suffix.
54377   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54378 else
54379   ac_dir_suffix= ac_top_builddir=
54380 fi
54381
54382 case $srcdir in
54383   .)  # No --srcdir option.  We are building in place.
54384     ac_srcdir=.
54385     if test -z "$ac_top_builddir"; then
54386        ac_top_srcdir=.
54387     else
54388        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54389     fi ;;
54390   [\\/]* | ?:[\\/]* )  # Absolute path.
54391     ac_srcdir=$srcdir$ac_dir_suffix;
54392     ac_top_srcdir=$srcdir ;;
54393   *) # Relative path.
54394     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54395     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54396 esac
54397
54398 # Do not use `cd foo && pwd` to compute absolute paths, because
54399 # the directories may not exist.
54400 case `pwd` in
54401 .) ac_abs_builddir="$ac_dir";;
54402 *)
54403   case "$ac_dir" in
54404   .) ac_abs_builddir=`pwd`;;
54405   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54406   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54407   esac;;
54408 esac
54409 case $ac_abs_builddir in
54410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54411 *)
54412   case ${ac_top_builddir}. in
54413   .) ac_abs_top_builddir=$ac_abs_builddir;;
54414   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54415   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54416   esac;;
54417 esac
54418 case $ac_abs_builddir in
54419 .) ac_abs_srcdir=$ac_srcdir;;
54420 *)
54421   case $ac_srcdir in
54422   .) ac_abs_srcdir=$ac_abs_builddir;;
54423   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54424   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54425   esac;;
54426 esac
54427 case $ac_abs_builddir in
54428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54429 *)
54430   case $ac_top_srcdir in
54431   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54432   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54433   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54434   esac;;
54435 esac
54436
54437
54438   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54439 echo "$as_me: executing $ac_dest commands" >&6;}
54440   case $ac_dest in
54441     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54442   # Strip MF so we end up with the name of the file.
54443   mf=`echo "$mf" | sed -e 's/:.*$//'`
54444   # Check whether this is an Automake generated Makefile or not.
54445   # We used to match only the files named `Makefile.in', but
54446   # some people rename them; so instead we look at the file content.
54447   # Grep'ing the first line is not enough: some people post-process
54448   # each Makefile.in and add a new line on top of each file to say so.
54449   # So let's grep whole file.
54450   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54451     dirpart=`(dirname "$mf") 2>/dev/null ||
54452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54453          X"$mf" : 'X\(//\)[^/]' \| \
54454          X"$mf" : 'X\(//\)$' \| \
54455          X"$mf" : 'X\(/\)' \| \
54456          .     : '\(.\)' 2>/dev/null ||
54457 echo X"$mf" |
54458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54460           /^X\(\/\/\)$/{ s//\1/; q; }
54461           /^X\(\/\).*/{ s//\1/; q; }
54462           s/.*/./; q'`
54463   else
54464     continue
54465   fi
54466   # Extract the definition of DEPDIR, am__include, and am__quote
54467   # from the Makefile without running `make'.
54468   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54469   test -z "$DEPDIR" && continue
54470   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54471   test -z "am__include" && continue
54472   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54473   # When using ansi2knr, U may be empty or an underscore; expand it
54474   U=`sed -n 's/^U = //p' < "$mf"`
54475   # Find all dependency output files, they are included files with
54476   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54477   # simplest approach to changing $(DEPDIR) to its actual value in the
54478   # expansion.
54479   for file in `sed -n "
54480     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54481        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54482     # Make sure the directory exists.
54483     test -f "$dirpart/$file" && continue
54484     fdir=`(dirname "$file") 2>/dev/null ||
54485 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54486          X"$file" : 'X\(//\)[^/]' \| \
54487          X"$file" : 'X\(//\)$' \| \
54488          X"$file" : 'X\(/\)' \| \
54489          .     : '\(.\)' 2>/dev/null ||
54490 echo X"$file" |
54491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54492           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54493           /^X\(\/\/\)$/{ s//\1/; q; }
54494           /^X\(\/\).*/{ s//\1/; q; }
54495           s/.*/./; q'`
54496     { if $as_mkdir_p; then
54497     mkdir -p $dirpart/$fdir
54498   else
54499     as_dir=$dirpart/$fdir
54500     as_dirs=
54501     while test ! -d "$as_dir"; do
54502       as_dirs="$as_dir $as_dirs"
54503       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54505          X"$as_dir" : 'X\(//\)[^/]' \| \
54506          X"$as_dir" : 'X\(//\)$' \| \
54507          X"$as_dir" : 'X\(/\)' \| \
54508          .     : '\(.\)' 2>/dev/null ||
54509 echo X"$as_dir" |
54510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54511           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54512           /^X\(\/\/\)$/{ s//\1/; q; }
54513           /^X\(\/\).*/{ s//\1/; q; }
54514           s/.*/./; q'`
54515     done
54516     test ! -n "$as_dirs" || mkdir $as_dirs
54517   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54518 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54519    { (exit 1); exit 1; }; }; }
54520
54521     # echo "creating $dirpart/$file"
54522     echo '# dummy' > "$dirpart/$file"
54523   done
54524 done
54525  ;;
54526     default )
54527 chmod +x tests/run
54528 date > stamp-h
54529 BACKENDSC="servers/slapd/backends.c"
54530 echo "Making $BACKENDSC"
54531 rm -f $BACKENDSC
54532 cat > $BACKENDSC << ENDX
54533 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54534  *
54535  * Copyright 1998-2005 The OpenLDAP Foundation.
54536  * All rights reserved.
54537  *
54538  * Redistribution and use in source and binary forms, with or without
54539  * modification, are permitted only as authorized by the OpenLDAP
54540  * Public License.
54541  *
54542  * A copy of this license is available in the file LICENSE in the
54543  * top-level directory of the distribution or, alternatively, at
54544  * <http://www.OpenLDAP.org/license.html>.
54545  */
54546 /* This file is automatically generated by configure; please do not edit. */
54547
54548 #include "portable.h"
54549 #include "slap.h"
54550
54551 ENDX
54552 if test "${STATIC_BACKENDS}"; then
54553         for b in config ${STATIC_BACKENDS}; do
54554                 bb=`echo "${b}" | sed -e 's/back-//'`
54555                 cat >> $BACKENDSC << ENDX
54556 extern BI_init ${bb}_back_initialize;
54557 ENDX
54558         done
54559
54560         cat >> $BACKENDSC << ENDX
54561
54562 BackendInfo slap_binfo[] = {
54563 ENDX
54564
54565         for b in config ${STATIC_BACKENDS}; do
54566                 bb=`echo "${b}" | sed -e 's/back-//'`
54567                 echo "    Add ${bb} ..."
54568                 cat >> $BACKENDSC << ENDX
54569         { "${bb}", ${bb}_back_initialize },
54570 ENDX
54571         done
54572
54573         cat >> $BACKENDSC << ENDX
54574         { NULL, NULL },
54575 };
54576
54577 /* end of generated file */
54578 ENDX
54579 fi
54580
54581 echo Please run \"make depend\" to build dependencies
54582  ;;
54583   esac
54584 done
54585 _ACEOF
54586
54587 cat >>$CONFIG_STATUS <<\_ACEOF
54588
54589 { (exit 0); exit 0; }
54590 _ACEOF
54591 chmod +x $CONFIG_STATUS
54592 ac_clean_files=$ac_clean_files_save
54593
54594
54595 # configure is writing to config.log, and then calls config.status.
54596 # config.status does its own redirection, appending to config.log.
54597 # Unfortunately, on DOS this fails, as config.log is still kept open
54598 # by configure, so config.status won't be able to write to it; its
54599 # output is simply discarded.  So we exec the FD to /dev/null,
54600 # effectively closing config.log, so it can be properly (re)opened and
54601 # appended to by config.status.  When coming back to configure, we
54602 # need to make the FD available again.
54603 if test "$no_create" != yes; then
54604   ac_cs_success=:
54605   ac_config_status_args=
54606   test "$silent" = yes &&
54607     ac_config_status_args="$ac_config_status_args --quiet"
54608   exec 5>/dev/null
54609   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54610   exec 5>>config.log
54611   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54612   # would make configure fail if this is the last instruction.
54613   $ac_cs_success || { (exit 1); exit 1; }
54614 fi
54615