1#! /bin/sh
2# From configure.in Id: e7e5a7e17ae6655fc0779de0ad978202c3a73699 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61.
5#
6# Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
7# Restrictions apply, see COPYRIGHT and LICENSE files.
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20  emulate sh
21  NULLCMD=:
22  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in
28  *posix*) set -o posix ;;
29esac
30
31fi
32
33
34
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44# The user is always right.
45if test "${PATH_SEPARATOR+set}" != set; then
46  echo "#! /bin/sh" >conf$$.sh
47  echo  "exit 0"   >>conf$$.sh
48  chmod +x conf$$.sh
49  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50    PATH_SEPARATOR=';'
51  else
52    PATH_SEPARATOR=:
53  fi
54  rm -f conf$$.sh
55fi
56
57# Support unset when possible.
58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59  as_unset=unset
60else
61  as_unset=false
62fi
63
64
65# IFS
66# We need space, tab and new line, in precisely that order.  Quoting is
67# there to prevent editors from complaining about space-tab.
68# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69# splitting by setting IFS to empty value.)
70as_nl='
71'
72IFS=" ""	$as_nl"
73
74# Find who we are.  Look in the path if we contain no directory separator.
75case $0 in
76  *[\\/]* ) as_myself=$0 ;;
77  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78for as_dir in $PATH
79do
80  IFS=$as_save_IFS
81  test -z "$as_dir" && as_dir=.
82  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83done
84IFS=$as_save_IFS
85
86     ;;
87esac
88# We did not find ourselves, most probably we were run as `sh COMMAND'
89# in which case we are not to be found in the path.
90if test "x$as_myself" = x; then
91  as_myself=$0
92fi
93if test ! -f "$as_myself"; then
94  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95  { (exit 1); exit 1; }
96fi
97
98# Work around bugs in pre-3.0 UWIN ksh.
99for as_var in ENV MAIL MAILPATH
100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101done
102PS1='$ '
103PS2='> '
104PS4='+ '
105
106# NLS nuisances.
107for as_var in \
108  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110  LC_TELEPHONE LC_TIME
111do
112  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113    eval $as_var=C; export $as_var
114  else
115    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116  fi
117done
118
119# Required to use basename.
120if expr a : '\(a\)' >/dev/null 2>&1 &&
121   test "X`expr 00001 : '.*\(...\)'`" = X001; then
122  as_expr=expr
123else
124  as_expr=false
125fi
126
127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128  as_basename=basename
129else
130  as_basename=false
131fi
132
133
134# Name of the executable.
135as_me=`$as_basename -- "$0" ||
136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137	 X"$0" : 'X\(//\)$' \| \
138	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139echo X/"$0" |
140    sed '/^.*\/\([^/][^/]*\)\/*$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\/\)$/{
145	    s//\1/
146	    q
147	  }
148	  /^X\/\(\/\).*/{
149	    s//\1/
150	    q
151	  }
152	  s/.*/./; q'`
153
154# CDPATH.
155$as_unset CDPATH
156
157
158if test "x$CONFIG_SHELL" = x; then
159  if (eval ":") 2>/dev/null; then
160  as_have_required=yes
161else
162  as_have_required=no
163fi
164
165  if test $as_have_required = yes && 	 (eval ":
166(as_func_return () {
167  (exit \$1)
168}
169as_func_success () {
170  as_func_return 0
171}
172as_func_failure () {
173  as_func_return 1
174}
175as_func_ret_success () {
176  return 0
177}
178as_func_ret_failure () {
179  return 1
180}
181
182exitcode=0
183if as_func_success; then
184  :
185else
186  exitcode=1
187  echo as_func_success failed.
188fi
189
190if as_func_failure; then
191  exitcode=1
192  echo as_func_failure succeeded.
193fi
194
195if as_func_ret_success; then
196  :
197else
198  exitcode=1
199  echo as_func_ret_success failed.
200fi
201
202if as_func_ret_failure; then
203  exitcode=1
204  echo as_func_ret_failure succeeded.
205fi
206
207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208  :
209else
210  exitcode=1
211  echo positional parameters were not saved.
212fi
213
214test \$exitcode = 0) || { (exit 1); exit 1; }
215
216(
217  as_lineno_1=\$LINENO
218  as_lineno_2=\$LINENO
219  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221") 2> /dev/null; then
222  :
223else
224  as_candidate_shells=
225    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227do
228  IFS=$as_save_IFS
229  test -z "$as_dir" && as_dir=.
230  case $as_dir in
231	 /*)
232	   for as_base in sh bash ksh sh5; do
233	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234	   done;;
235       esac
236done
237IFS=$as_save_IFS
238
239
240      for as_shell in $as_candidate_shells $SHELL; do
241	 # Try only shells that exist, to save several forks.
242	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243		{ ("$as_shell") 2> /dev/null <<\_ASEOF
244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245  emulate sh
246  NULLCMD=:
247  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248  # is contrary to our usage.  Disable this feature.
249  alias -g '${1+"$@"}'='"$@"'
250  setopt NO_GLOB_SUBST
251else
252  case `(set -o) 2>/dev/null` in
253  *posix*) set -o posix ;;
254esac
255
256fi
257
258
259:
260_ASEOF
261}; then
262  CONFIG_SHELL=$as_shell
263	       as_have_required=yes
264	       if { "$as_shell" 2> /dev/null <<\_ASEOF
265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266  emulate sh
267  NULLCMD=:
268  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269  # is contrary to our usage.  Disable this feature.
270  alias -g '${1+"$@"}'='"$@"'
271  setopt NO_GLOB_SUBST
272else
273  case `(set -o) 2>/dev/null` in
274  *posix*) set -o posix ;;
275esac
276
277fi
278
279
280:
281(as_func_return () {
282  (exit $1)
283}
284as_func_success () {
285  as_func_return 0
286}
287as_func_failure () {
288  as_func_return 1
289}
290as_func_ret_success () {
291  return 0
292}
293as_func_ret_failure () {
294  return 1
295}
296
297exitcode=0
298if as_func_success; then
299  :
300else
301  exitcode=1
302  echo as_func_success failed.
303fi
304
305if as_func_failure; then
306  exitcode=1
307  echo as_func_failure succeeded.
308fi
309
310if as_func_ret_success; then
311  :
312else
313  exitcode=1
314  echo as_func_ret_success failed.
315fi
316
317if as_func_ret_failure; then
318  exitcode=1
319  echo as_func_ret_failure succeeded.
320fi
321
322if ( set x; as_func_ret_success y && test x = "$1" ); then
323  :
324else
325  exitcode=1
326  echo positional parameters were not saved.
327fi
328
329test $exitcode = 0) || { (exit 1); exit 1; }
330
331(
332  as_lineno_1=$LINENO
333  as_lineno_2=$LINENO
334  test "x$as_lineno_1" != "x$as_lineno_2" &&
335  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337_ASEOF
338}; then
339  break
340fi
341
342fi
343
344      done
345
346      if test "x$CONFIG_SHELL" != x; then
347  for as_var in BASH_ENV ENV
348        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349        done
350        export CONFIG_SHELL
351        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352fi
353
354
355    if test $as_have_required = no; then
356  echo This script requires a shell more modern than all the
357      echo shells that I found on your system.  Please install a
358      echo modern shell, or manually run the script under such a
359      echo shell if you do have one.
360      { (exit 1); exit 1; }
361fi
362
363
364fi
365
366fi
367
368
369
370(eval "as_func_return () {
371  (exit \$1)
372}
373as_func_success () {
374  as_func_return 0
375}
376as_func_failure () {
377  as_func_return 1
378}
379as_func_ret_success () {
380  return 0
381}
382as_func_ret_failure () {
383  return 1
384}
385
386exitcode=0
387if as_func_success; then
388  :
389else
390  exitcode=1
391  echo as_func_success failed.
392fi
393
394if as_func_failure; then
395  exitcode=1
396  echo as_func_failure succeeded.
397fi
398
399if as_func_ret_success; then
400  :
401else
402  exitcode=1
403  echo as_func_ret_success failed.
404fi
405
406if as_func_ret_failure; then
407  exitcode=1
408  echo as_func_ret_failure succeeded.
409fi
410
411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412  :
413else
414  exitcode=1
415  echo positional parameters were not saved.
416fi
417
418test \$exitcode = 0") || {
419  echo No shell found that supports shell functions.
420  echo Please tell autoconf@gnu.org about your system,
421  echo including any error possibly output before this
422  echo message
423}
424
425
426
427  as_lineno_1=$LINENO
428  as_lineno_2=$LINENO
429  test "x$as_lineno_1" != "x$as_lineno_2" &&
430  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433  # uniformly replaced by the line number.  The first 'sed' inserts a
434  # line-number line after each line using $LINENO; the second 'sed'
435  # does the real work.  The second script uses 'N' to pair each
436  # line-number line with the line containing $LINENO, and appends
437  # trailing '-' during substitution so that $LINENO is not a special
438  # case at line end.
439  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440  # scripts with optimization help from Paolo Bonzini.  Blame Lee
441  # E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459   { (exit 1); exit 1; }; }
460
461  # Don't try to exec as it changes $[0], causing all sort of problems
462  # (the dirname of $[0] is not the place where we might find the
463  # original and so on.  Autoconf is especially sensitive to this).
464  . "./$as_me.lineno"
465  # Exit status is that of the last command.
466  exit
467}
468
469
470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471  as_dirname=dirname
472else
473  as_dirname=false
474fi
475
476ECHO_C= ECHO_N= ECHO_T=
477case `echo -n x` in
478-n*)
479  case `echo 'x\c'` in
480  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
481  *)   ECHO_C='\c';;
482  esac;;
483*)
484  ECHO_N='-n';;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1 &&
488   test "X`expr 00001 : '.*\(...\)'`" = X001; then
489  as_expr=expr
490else
491  as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
495if test -d conf$$.dir; then
496  rm -f conf$$.dir/conf$$.file
497else
498  rm -f conf$$.dir
499  mkdir conf$$.dir
500fi
501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s='ln -s'
504  # ... but there are two gotchas:
505  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507  # In both cases, we have to default to `cp -p'.
508  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509    as_ln_s='cp -p'
510elif ln conf$$.file conf$$ 2>/dev/null; then
511  as_ln_s=ln
512else
513  as_ln_s='cp -p'
514fi
515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
517
518if mkdir -p . 2>/dev/null; then
519  as_mkdir_p=:
520else
521  test -d ./-p && rmdir ./-p
522  as_mkdir_p=false
523fi
524
525if test -x / >/dev/null 2>&1; then
526  as_test_x='test -x'
527else
528  if ls -dL / >/dev/null 2>&1; then
529    as_ls_L_option=L
530  else
531    as_ls_L_option=
532  fi
533  as_test_x='
534    eval sh -c '\''
535      if test -d "$1"; then
536        test -d "$1/.";
537      else
538	case $1 in
539        -*)set "./$1";;
540	esac;
541	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542	???[sx]*):;;*)false;;esac;fi
543    '\'' sh
544  '
545fi
546as_executable_p=$as_test_x
547
548# Sed expression to map a string onto a valid CPP name.
549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551# Sed expression to map a string onto a valid variable name.
552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557# Check that we are running under the correct shell.
558SHELL=${CONFIG_SHELL-/bin/sh}
559
560case X$ECHO in
561X*--fallback-echo)
562  # Remove one level of quotation (which was required for Make).
563  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564  ;;
565esac
566
567echo=${ECHO-echo}
568if test "X$1" = X--no-reexec; then
569  # Discard the --no-reexec flag, and continue.
570  shift
571elif test "X$1" = X--fallback-echo; then
572  # Avoid inline document here, it may be left over
573  :
574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575  # Yippee, $echo works!
576  :
577else
578  # Restart under the correct shell.
579  exec $SHELL "$0" --no-reexec ${1+"$@"}
580fi
581
582if test "X$1" = X--fallback-echo; then
583  # used as fallback echo
584  shift
585  cat <<EOF
586$*
587EOF
588  exit 0
589fi
590
591# The HP-UX ksh and POSIX shell print the target directory to stdout
592# if CDPATH is set.
593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595if test -z "$ECHO"; then
596if test "X${echo_test_string+set}" != Xset; then
597# find a string as large as possible, as long as the shell can cope with it
598  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601       echo_test_string=`eval $cmd` &&
602       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603    then
604      break
605    fi
606  done
607fi
608
609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611   test "X$echo_testing_string" = "X$echo_test_string"; then
612  :
613else
614  # The Solaris, AIX, and Digital Unix default echo programs unquote
615  # backslashes.  This makes it impossible to quote backslashes using
616  #   echo "$something" | sed 's/\\/\\\\/g'
617  #
618  # So, first we look for a working echo in the user's PATH.
619
620  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621  for dir in $PATH /usr/ucb; do
622    IFS="$lt_save_ifs"
623    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626       test "X$echo_testing_string" = "X$echo_test_string"; then
627      echo="$dir/echo"
628      break
629    fi
630  done
631  IFS="$lt_save_ifs"
632
633  if test "X$echo" = Xecho; then
634    # We didn't find a better echo, so look for alternatives.
635    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637       test "X$echo_testing_string" = "X$echo_test_string"; then
638      # This shell has a builtin print -r that does the trick.
639      echo='print -r'
640    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641	 test "X$CONFIG_SHELL" != X/bin/ksh; then
642      # If we have ksh, try running configure again with it.
643      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644      export ORIGINAL_CONFIG_SHELL
645      CONFIG_SHELL=/bin/ksh
646      export CONFIG_SHELL
647      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648    else
649      # Try using printf.
650      echo='printf %s\n'
651      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653	 test "X$echo_testing_string" = "X$echo_test_string"; then
654	# Cool, printf works
655	:
656      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657	   test "X$echo_testing_string" = 'X\t' &&
658	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659	   test "X$echo_testing_string" = "X$echo_test_string"; then
660	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661	export CONFIG_SHELL
662	SHELL="$CONFIG_SHELL"
663	export SHELL
664	echo="$CONFIG_SHELL $0 --fallback-echo"
665      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666	   test "X$echo_testing_string" = 'X\t' &&
667	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668	   test "X$echo_testing_string" = "X$echo_test_string"; then
669	echo="$CONFIG_SHELL $0 --fallback-echo"
670      else
671	# maybe with a smaller string...
672	prev=:
673
674	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676	  then
677	    break
678	  fi
679	  prev="$cmd"
680	done
681
682	if test "$prev" != 'sed 50q "$0"'; then
683	  echo_test_string=`eval $prev`
684	  export echo_test_string
685	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686	else
687	  # Oops.  We lost completely, so just stick with echo.
688	  echo=echo
689	fi
690      fi
691    fi
692  fi
693fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698ECHO=$echo
699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="OpenLDAP"
734ac_unique_file="build/version.sh"
735ac_default_prefix=/usr/local
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809build
810build_cpu
811build_vendor
812build_os
813host
814host_cpu
815host_vendor
816host_os
817target
818target_cpu
819target_vendor
820target_os
821INSTALL_PROGRAM
822INSTALL_SCRIPT
823INSTALL_DATA
824CYGPATH_W
825PACKAGE
826VERSION
827ACLOCAL
828AUTOCONF
829AUTOMAKE
830AUTOHEADER
831MAKEINFO
832install_sh
833STRIP
834INSTALL_STRIP_PROGRAM
835mkdir_p
836AWK
837SET_MAKE
838am__leading_dot
839AMTAR
840am__tar
841am__untar
842OPENLDAP_LIBRELEASE
843OPENLDAP_LIBVERSION
844OPENLDAP_RELEASE_DATE
845top_builddir
846ldap_subdir
847CC
848AR
849CFLAGS
850LDFLAGS
851CPPFLAGS
852ac_ct_CC
853EXEEXT
854OBJEXT
855DEPDIR
856am__include
857am__quote
858AMDEP_TRUE
859AMDEP_FALSE
860AMDEPBACKSLASH
861CCDEPMODE
862am__fastdepCC_TRUE
863am__fastdepCC_FALSE
864GREP
865EGREP
866LN_S
867ECHO
868RANLIB
869DLLTOOL
870AS
871OBJDUMP
872CPP
873LIBTOOL
874PERLBIN
875OL_MKDEP
876OL_MKDEP_FLAGS
877LTSTATIC
878LIBOBJS
879LIBSRCS
880PLAT
881WITH_SASL
882WITH_TLS
883WITH_MODULES_ENABLED
884WITH_ACI_ENABLED
885BUILD_THREAD
886BUILD_LIBS_DYNAMIC
887BUILD_SLAPD
888BUILD_SLAPI
889SLAPD_SLAPI_DEPEND
890BUILD_BDB
891BUILD_DNSSRV
892BUILD_HDB
893BUILD_LDAP
894BUILD_META
895BUILD_MONITOR
896BUILD_NULL
897BUILD_PASSWD
898BUILD_RELAY
899BUILD_PERL
900BUILD_SHELL
901BUILD_SOCK
902BUILD_SQL
903BUILD_ACCESSLOG
904BUILD_DYNID
905BUILD_ODLOCALES
906BUILD_ODUSERS
907BUILD_AUDITLOG
908BUILD_CONSTRAINT
909BUILD_DDS
910BUILD_DENYOP
911BUILD_DEREF
912BUILD_DYNGROUP
913BUILD_DYNLIST
914BUILD_LASTMOD
915BUILD_MEMBEROF
916BUILD_PPOLICY
917BUILD_PROXYCACHE
918BUILD_REFINT
919BUILD_RETCODE
920BUILD_SEQMOD
921BUILD_SYNCPROV
922BUILD_TRANSLUCENT
923BUILD_UNIQUE
924BUILD_VALSORT
925LDAP_LIBS
926SLAPD_LIBS
927BDB_LIBS
928LTHREAD_LIBS
929LUTIL_LIBS
930WRAP_LIBS
931SLAPD_MODULES_CPPFLAGS
932SLAPD_MODULES_LDFLAGS
933SLAPD_NO_STATIC
934SLAPD_STATIC_BACKENDS
935SLAPD_DYNAMIC_BACKENDS
936SLAPD_STATIC_OVERLAYS
937SLAPD_DYNAMIC_OVERLAYS
938PERL_CPPFLAGS
939SLAPD_PERL_LDFLAGS
940MOD_PERL_LDFLAGS
941KRB4_LIBS
942KRB5_LIBS
943SASL_LIBS
944TLS_LIBS
945MODULES_LIBS
946SLAPI_LIBS
947LIBSLAPI
948LIBSLAPITOOLS
949AUTH_LIBS
950ICU_LIBS
951SLAPD_SLP_LIBS
952SLAPD_GMP_LIBS
953SLAPD_SQL_LDFLAGS
954SLAPD_SQL_LIBS
955SLAPD_SQL_INCLUDES
956LTLIBOBJS'
957ac_subst_files=''
958      ac_precious_vars='build_alias
959host_alias
960target_alias
961CC
962CFLAGS
963LDFLAGS
964LIBS
965CPPFLAGS
966CPP'
967
968
969# Initialize some variables set by options.
970ac_init_help=
971ac_init_version=false
972# The variables have the same names as the options, with
973# dashes changed to underlines.
974cache_file=/dev/null
975exec_prefix=NONE
976no_create=
977no_recursion=
978prefix=NONE
979program_prefix=NONE
980program_suffix=NONE
981program_transform_name=s,x,x,
982silent=
983site=
984srcdir=
985verbose=
986x_includes=NONE
987x_libraries=NONE
988
989# Installation directory options.
990# These are left unexpanded so users can "make install exec_prefix=/foo"
991# and all the variables that are supposed to be based on exec_prefix
992# by default will actually change.
993# Use braces instead of parens because sh, perl, etc. also accept them.
994# (The list follows the same order as the GNU Coding Standards.)
995bindir='${exec_prefix}/bin'
996sbindir='${exec_prefix}/sbin'
997libexecdir='${exec_prefix}/libexec'
998datarootdir='${prefix}/share'
999datadir='${datarootdir}'
1000sysconfdir='${prefix}/etc'
1001sharedstatedir='${prefix}/com'
1002localstatedir='${prefix}/var'
1003includedir='${prefix}/include'
1004oldincludedir='/usr/include'
1005docdir='${datarootdir}/doc/${PACKAGE}'
1006infodir='${datarootdir}/info'
1007htmldir='${docdir}'
1008dvidir='${docdir}'
1009pdfdir='${docdir}'
1010psdir='${docdir}'
1011libdir='${exec_prefix}/lib'
1012localedir='${datarootdir}/locale'
1013mandir='${datarootdir}/man'
1014
1015ac_prev=
1016ac_dashdash=
1017for ac_option
1018do
1019  # If the previous option needs an argument, assign it.
1020  if test -n "$ac_prev"; then
1021    eval $ac_prev=\$ac_option
1022    ac_prev=
1023    continue
1024  fi
1025
1026  case $ac_option in
1027  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028  *)	ac_optarg=yes ;;
1029  esac
1030
1031  # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033  case $ac_dashdash$ac_option in
1034  --)
1035    ac_dashdash=yes ;;
1036
1037  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038    ac_prev=bindir ;;
1039  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040    bindir=$ac_optarg ;;
1041
1042  -build | --build | --buil | --bui | --bu)
1043    ac_prev=build_alias ;;
1044  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045    build_alias=$ac_optarg ;;
1046
1047  -cache-file | --cache-file | --cache-fil | --cache-fi \
1048  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049    ac_prev=cache_file ;;
1050  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052    cache_file=$ac_optarg ;;
1053
1054  --config-cache | -C)
1055    cache_file=config.cache ;;
1056
1057  -datadir | --datadir | --datadi | --datad)
1058    ac_prev=datadir ;;
1059  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060    datadir=$ac_optarg ;;
1061
1062  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063  | --dataroo | --dataro | --datar)
1064    ac_prev=datarootdir ;;
1065  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067    datarootdir=$ac_optarg ;;
1068
1069  -disable-* | --disable-*)
1070    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074   { (exit 1); exit 1; }; }
1075    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076    eval enable_$ac_feature=no ;;
1077
1078  -docdir | --docdir | --docdi | --doc | --do)
1079    ac_prev=docdir ;;
1080  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081    docdir=$ac_optarg ;;
1082
1083  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084    ac_prev=dvidir ;;
1085  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086    dvidir=$ac_optarg ;;
1087
1088  -enable-* | --enable-*)
1089    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1093   { (exit 1); exit 1; }; }
1094    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1095    eval enable_$ac_feature=\$ac_optarg ;;
1096
1097  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099  | --exec | --exe | --ex)
1100    ac_prev=exec_prefix ;;
1101  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103  | --exec=* | --exe=* | --ex=*)
1104    exec_prefix=$ac_optarg ;;
1105
1106  -gas | --gas | --ga | --g)
1107    # Obsolete; use --with-gas.
1108    with_gas=yes ;;
1109
1110  -help | --help | --hel | --he | -h)
1111    ac_init_help=long ;;
1112  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113    ac_init_help=recursive ;;
1114  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115    ac_init_help=short ;;
1116
1117  -host | --host | --hos | --ho)
1118    ac_prev=host_alias ;;
1119  -host=* | --host=* | --hos=* | --ho=*)
1120    host_alias=$ac_optarg ;;
1121
1122  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123    ac_prev=htmldir ;;
1124  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125  | --ht=*)
1126    htmldir=$ac_optarg ;;
1127
1128  -includedir | --includedir | --includedi | --included | --include \
1129  | --includ | --inclu | --incl | --inc)
1130    ac_prev=includedir ;;
1131  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132  | --includ=* | --inclu=* | --incl=* | --inc=*)
1133    includedir=$ac_optarg ;;
1134
1135  -infodir | --infodir | --infodi | --infod | --info | --inf)
1136    ac_prev=infodir ;;
1137  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138    infodir=$ac_optarg ;;
1139
1140  -libdir | --libdir | --libdi | --libd)
1141    ac_prev=libdir ;;
1142  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143    libdir=$ac_optarg ;;
1144
1145  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146  | --libexe | --libex | --libe)
1147    ac_prev=libexecdir ;;
1148  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149  | --libexe=* | --libex=* | --libe=*)
1150    libexecdir=$ac_optarg ;;
1151
1152  -localedir | --localedir | --localedi | --localed | --locale)
1153    ac_prev=localedir ;;
1154  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155    localedir=$ac_optarg ;;
1156
1157  -localstatedir | --localstatedir | --localstatedi | --localstated \
1158  | --localstate | --localstat | --localsta | --localst | --locals)
1159    ac_prev=localstatedir ;;
1160  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162    localstatedir=$ac_optarg ;;
1163
1164  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165    ac_prev=mandir ;;
1166  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167    mandir=$ac_optarg ;;
1168
1169  -nfp | --nfp | --nf)
1170    # Obsolete; use --without-fp.
1171    with_fp=no ;;
1172
1173  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174  | --no-cr | --no-c | -n)
1175    no_create=yes ;;
1176
1177  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179    no_recursion=yes ;;
1180
1181  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183  | --oldin | --oldi | --old | --ol | --o)
1184    ac_prev=oldincludedir ;;
1185  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188    oldincludedir=$ac_optarg ;;
1189
1190  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191    ac_prev=prefix ;;
1192  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193    prefix=$ac_optarg ;;
1194
1195  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196  | --program-pre | --program-pr | --program-p)
1197    ac_prev=program_prefix ;;
1198  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200    program_prefix=$ac_optarg ;;
1201
1202  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203  | --program-suf | --program-su | --program-s)
1204    ac_prev=program_suffix ;;
1205  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207    program_suffix=$ac_optarg ;;
1208
1209  -program-transform-name | --program-transform-name \
1210  | --program-transform-nam | --program-transform-na \
1211  | --program-transform-n | --program-transform- \
1212  | --program-transform | --program-transfor \
1213  | --program-transfo | --program-transf \
1214  | --program-trans | --program-tran \
1215  | --progr-tra | --program-tr | --program-t)
1216    ac_prev=program_transform_name ;;
1217  -program-transform-name=* | --program-transform-name=* \
1218  | --program-transform-nam=* | --program-transform-na=* \
1219  | --program-transform-n=* | --program-transform-=* \
1220  | --program-transform=* | --program-transfor=* \
1221  | --program-transfo=* | --program-transf=* \
1222  | --program-trans=* | --program-tran=* \
1223  | --progr-tra=* | --program-tr=* | --program-t=*)
1224    program_transform_name=$ac_optarg ;;
1225
1226  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227    ac_prev=pdfdir ;;
1228  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229    pdfdir=$ac_optarg ;;
1230
1231  -psdir | --psdir | --psdi | --psd | --ps)
1232    ac_prev=psdir ;;
1233  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234    psdir=$ac_optarg ;;
1235
1236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237  | -silent | --silent | --silen | --sile | --sil)
1238    silent=yes ;;
1239
1240  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241    ac_prev=sbindir ;;
1242  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243  | --sbi=* | --sb=*)
1244    sbindir=$ac_optarg ;;
1245
1246  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248  | --sharedst | --shareds | --shared | --share | --shar \
1249  | --sha | --sh)
1250    ac_prev=sharedstatedir ;;
1251  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254  | --sha=* | --sh=*)
1255    sharedstatedir=$ac_optarg ;;
1256
1257  -site | --site | --sit)
1258    ac_prev=site ;;
1259  -site=* | --site=* | --sit=*)
1260    site=$ac_optarg ;;
1261
1262  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263    ac_prev=srcdir ;;
1264  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265    srcdir=$ac_optarg ;;
1266
1267  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268  | --syscon | --sysco | --sysc | --sys | --sy)
1269    ac_prev=sysconfdir ;;
1270  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272    sysconfdir=$ac_optarg ;;
1273
1274  -target | --target | --targe | --targ | --tar | --ta | --t)
1275    ac_prev=target_alias ;;
1276  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277    target_alias=$ac_optarg ;;
1278
1279  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280    verbose=yes ;;
1281
1282  -version | --version | --versio | --versi | --vers | -V)
1283    ac_init_version=: ;;
1284
1285  -with-* | --with-*)
1286    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289      { echo "$as_me: error: invalid package name: $ac_package" >&2
1290   { (exit 1); exit 1; }; }
1291    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1292    eval with_$ac_package=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298      { echo "$as_me: error: invalid package name: $ac_package" >&2
1299   { (exit 1); exit 1; }; }
1300    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1301    eval with_$ac_package=no ;;
1302
1303  --x)
1304    # Obsolete; use --with-x.
1305    with_x=yes ;;
1306
1307  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308  | --x-incl | --x-inc | --x-in | --x-i)
1309    ac_prev=x_includes ;;
1310  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312    x_includes=$ac_optarg ;;
1313
1314  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316    ac_prev=x_libraries ;;
1317  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319    x_libraries=$ac_optarg ;;
1320
1321  -*) { echo "$as_me: error: unrecognized option: $ac_option
1322Try \`$0 --help' for more information." >&2
1323   { (exit 1); exit 1; }; }
1324    ;;
1325
1326  *=*)
1327    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328    # Reject names that are not valid shell variable names.
1329    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1330      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1331   { (exit 1); exit 1; }; }
1332    eval $ac_envvar=\$ac_optarg
1333    export $ac_envvar ;;
1334
1335  *)
1336    # FIXME: should be removed in autoconf 3.0.
1337    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341    ;;
1342
1343  esac
1344done
1345
1346if test -n "$ac_prev"; then
1347  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348  { echo "$as_me: error: missing argument to $ac_option" >&2
1349   { (exit 1); exit 1; }; }
1350fi
1351
1352# Be sure to have absolute directory names.
1353for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354		datadir sysconfdir sharedstatedir localstatedir includedir \
1355		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356		libdir localedir mandir
1357do
1358  eval ac_val=\$$ac_var
1359  case $ac_val in
1360    [\\/$]* | ?:[\\/]* )  continue;;
1361    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362  esac
1363  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1364   { (exit 1); exit 1; }; }
1365done
1366
1367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
1369# FIXME: To remove some day.
1370build=$build_alias
1371host=$host_alias
1372target=$target_alias
1373
1374# FIXME: To remove some day.
1375if test "x$host_alias" != x; then
1376  if test "x$build_alias" = x; then
1377    cross_compiling=maybe
1378    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1379    If a cross compiler is detected then cross compile mode will be used." >&2
1380  elif test "x$build_alias" != "x$host_alias"; then
1381    cross_compiling=yes
1382  fi
1383fi
1384
1385ac_tool_prefix=
1386test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388test "$silent" = yes && exec 6>/dev/null
1389
1390
1391ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392ac_ls_di=`ls -di .` &&
1393ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394  { echo "$as_me: error: Working directory cannot be determined" >&2
1395   { (exit 1); exit 1; }; }
1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397  { echo "$as_me: error: pwd does not report name of working directory" >&2
1398   { (exit 1); exit 1; }; }
1399
1400
1401# Find the source files, if location was not specified.
1402if test -z "$srcdir"; then
1403  ac_srcdir_defaulted=yes
1404  # Try the directory containing this script, then the parent directory.
1405  ac_confdir=`$as_dirname -- "$0" ||
1406$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407	 X"$0" : 'X\(//\)[^/]' \| \
1408	 X"$0" : 'X\(//\)$' \| \
1409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1410echo X"$0" |
1411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\/\)[^/].*/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\/\)$/{
1420	    s//\1/
1421	    q
1422	  }
1423	  /^X\(\/\).*/{
1424	    s//\1/
1425	    q
1426	  }
1427	  s/.*/./; q'`
1428  srcdir=$ac_confdir
1429  if test ! -r "$srcdir/$ac_unique_file"; then
1430    srcdir=..
1431  fi
1432else
1433  ac_srcdir_defaulted=no
1434fi
1435if test ! -r "$srcdir/$ac_unique_file"; then
1436  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1438   { (exit 1); exit 1; }; }
1439fi
1440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441ac_abs_confdir=`(
1442	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1443   { (exit 1); exit 1; }; }
1444	pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447  srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457  eval ac_env_${ac_var}_value=\$${ac_var}
1458  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
1461
1462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466  # Omit some internal or obsolete options to make the list less imposing.
1467  # This message is too long to be a string in the A/UX 3.1 sh.
1468  cat <<_ACEOF
1469\`configure' configures this package to adapt to many kinds of systems.
1470
1471Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE.  See below for descriptions of some of the useful variables.
1475
1476Defaults for the options are specified in brackets.
1477
1478Configuration:
1479  -h, --help              display this help and exit
1480      --help=short        display options specific to this package
1481      --help=recursive    display the short help of all the included packages
1482  -V, --version           display version information and exit
1483  -q, --quiet, --silent   do not print \`checking...' messages
1484      --cache-file=FILE   cache test results in FILE [disabled]
1485  -C, --config-cache      alias for \`--cache-file=config.cache'
1486  -n, --no-create         do not create output files
1487      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1488
1489Installation directories:
1490  --prefix=PREFIX         install architecture-independent files in PREFIX
1491			  [$ac_default_prefix]
1492  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1493			  [PREFIX]
1494
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
1499
1500For better control, use the options below.
1501
1502Fine tuning of the installation directories:
1503  --bindir=DIR           user executables [EPREFIX/bin]
1504  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1505  --libexecdir=DIR       program executables [EPREFIX/libexec]
1506  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1507  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1508  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1509  --libdir=DIR           object code libraries [EPREFIX/lib]
1510  --includedir=DIR       C header files [PREFIX/include]
1511  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1512  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1513  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1514  --infodir=DIR          info documentation [DATAROOTDIR/info]
1515  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1516  --mandir=DIR           man documentation [DATAROOTDIR/man]
1517  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1518  --htmldir=DIR          html documentation [DOCDIR]
1519  --dvidir=DIR           dvi documentation [DOCDIR]
1520  --pdfdir=DIR           pdf documentation [DOCDIR]
1521  --psdir=DIR            ps documentation [DOCDIR]
1522_ACEOF
1523
1524  cat <<\_ACEOF
1525
1526Program names:
1527  --program-prefix=PREFIX            prepend PREFIX to installed program names
1528  --program-suffix=SUFFIX            append SUFFIX to installed program names
1529  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1530
1531System types:
1532  --build=BUILD     configure for building on BUILD [guessed]
1533  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534  --target=TARGET   configure for building compilers for TARGET [HOST]
1535_ACEOF
1536fi
1537
1538if test -n "$ac_init_help"; then
1539
1540  cat <<\_ACEOF
1541
1542Optional Features:
1543  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545  --enable-debug 	  enable debugging no|yes|traditional [yes]
1546  --enable-dynamic	  enable linking built binaries with dynamic libs [no]
1547  --enable-syslog	  enable syslog support [auto]
1548  --enable-proctitle	  enable proctitle support [yes]
1549  --enable-ipv6 	  enable IPv6 support [auto]
1550  --enable-local	  enable AF_LOCAL (AF_UNIX) socket support [auto]
1551
1552SLAPD (Standalone LDAP Daemon) Options:
1553  --enable-slapd	  enable building slapd [yes]
1554    --enable-dynacl	  enable run-time loadable ACL support (experimental) [no]
1555    --enable-aci	  enable per-object ACIs (experimental) no|yes|mod [no]
1556    --enable-cleartext	  enable cleartext passwords [yes]
1557    --enable-crypt	  enable crypt(3) passwords [no]
1558    --enable-lmpasswd	  enable LAN Manager passwords [no]
1559    --enable-spasswd	  enable (Cyrus) SASL password verification [no]
1560    --enable-modules	  enable dynamic module support [no]
1561    --enable-rlookups	  enable reverse lookups of client hostnames [no]
1562    --enable-slapi        enable SLAPI support (experimental) [no]
1563    --enable-slp          enable SLPv2 support [no]
1564    --enable-wrappers	  enable tcp wrapper support [no]
1565
1566SLAPD Backend Options:
1567    --enable-backends	  enable all available backends no|yes|mod
1568    --enable-bdb	  enable Berkeley DB backend no|yes|mod [yes]
1569    --enable-dnssrv	  enable dnssrv backend no|yes|mod [no]
1570    --enable-hdb	  enable Hierarchical DB backend no|yes|mod [yes]
1571    --enable-ldap	  enable ldap backend no|yes|mod [no]
1572    --enable-meta	  enable metadirectory backend no|yes|mod [no]
1573    --enable-monitor	  enable monitor backend no|yes|mod [yes]
1574    --enable-null	  enable null backend no|yes|mod [no]
1575    --enable-passwd	  enable passwd backend no|yes|mod [no]
1576    --enable-perl	  enable perl backend no|yes|mod [no]
1577    --enable-relay  	  enable relay backend no|yes|mod [yes]
1578    --enable-shell	  enable shell backend no|yes|mod [no]
1579    --enable-sock	  enable sock backend no|yes|mod [no]
1580    --enable-sql	  enable sql backend no|yes|mod [no]
1581
1582SLAPD Overlay Options:
1583    --enable-overlays	  enable all available overlays no|yes|mod
1584    --enable-accesslog	  In-Directory Access Logging overlay no|yes|mod [no]
1585    --enable-dynid	  Dynamic ID overlay no|yes|mod [no]
1586    --enable-odlocales	  enable LDAP ping for Locales no|yes|mod [no]
1587    --enable-odusers	  enable OD User management no|yes|mod [no]
1588    --enable-constraint	  Attribute Constraint overlay no|yes|mod [no]
1589    --enable-dds  	  Dynamic Directory Services overlay no|yes|mod [no]
1590    --enable-deref	  Dereference overlay no|yes|mod [no]
1591    --enable-dyngroup	  Dynamic Group overlay no|yes|mod [no]
1592    --enable-nestedgroup	  Nested Group overlay no|yes|mod [no]
1593    --enable-dynlist	  Dynamic List overlay no|yes|mod [no]
1594    --enable-memberof	  Reverse Group Membership overlay no|yes|mod [no]
1595    --enable-ppolicy	  Password Policy overlay no|yes|mod [no]
1596    --enable-proxycache	  Proxy Cache overlay no|yes|mod [no]
1597    --enable-refint	  Referential Integrity overlay no|yes|mod [no]
1598    --enable-retcode	  Return Code testing overlay no|yes|mod [no]
1599    --enable-seqmod	  Sequential Modify overlay no|yes|mod [yes]
1600    --enable-syncprov	  Syncrepl Provider overlay no|yes|mod [yes]
1601    --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1602    --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1603    --enable-valsort      Value Sorting overlay no|yes|mod [no]
1604
1605Library Generation & Linking Options
1606  --enable-static[=PKGS]  build static libraries [default=yes]
1607  --enable-shared[=PKGS]  build shared libraries [default=yes]
1608  --enable-fast-install[=PKGS]
1609                          optimize for fast installation [default=yes]
1610  --disable-dependency-tracking  speeds up one-time build
1611  --enable-dependency-tracking   do not reject slow dependency extractors
1612  --disable-libtool-lock  avoid locking (might break parallel builds)
1613
1614Optional Packages:
1615  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1616  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1617  --with-subdir=DIR       change default subdirectory used for installs
1618  --with-cyrus-sasl	  with Cyrus SASL support [auto]
1619  --with-fetch		  with fetch(3) URL support [auto]
1620  --with-threads	  with threads [auto]
1621  --with-tls		  with TLS/SSL support auto|secure-transport|openssl|gnutls|moznss [auto]
1622  --with-yielding-select  with implicitly yielding select [auto]
1623  --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1624  --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1625  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1626  --with-pic              try to use only PIC/non-PIC objects [default=use
1627                          both]
1628  --with-tags[=TAGS]      include additional configurations [automatic]
1629
1630See INSTALL file for further details.
1631
1632Some influential environment variables:
1633  CC          C compiler command
1634  CFLAGS      C compiler flags
1635  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1636              nonstandard directory <lib dir>
1637  LIBS        libraries to pass to the linker, e.g. -l<library>
1638  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1639              you have headers in a nonstandard directory <include dir>
1640  CPP         C preprocessor
1641
1642Use these variables to override the choices made by `configure' or to help
1643it to find libraries and programs with nonstandard names/locations.
1644
1645_ACEOF
1646ac_status=$?
1647fi
1648
1649if test "$ac_init_help" = "recursive"; then
1650  # If there are subdirs, report their specific --help.
1651  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652    test -d "$ac_dir" || continue
1653    ac_builddir=.
1654
1655case "$ac_dir" in
1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657*)
1658  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1659  # A ".." for each directory in $ac_dir_suffix.
1660  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1661  case $ac_top_builddir_sub in
1662  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664  esac ;;
1665esac
1666ac_abs_top_builddir=$ac_pwd
1667ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668# for backward compatibility:
1669ac_top_builddir=$ac_top_build_prefix
1670
1671case $srcdir in
1672  .)  # We are building in place.
1673    ac_srcdir=.
1674    ac_top_srcdir=$ac_top_builddir_sub
1675    ac_abs_top_srcdir=$ac_pwd ;;
1676  [\\/]* | ?:[\\/]* )  # Absolute name.
1677    ac_srcdir=$srcdir$ac_dir_suffix;
1678    ac_top_srcdir=$srcdir
1679    ac_abs_top_srcdir=$srcdir ;;
1680  *) # Relative name.
1681    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682    ac_top_srcdir=$ac_top_build_prefix$srcdir
1683    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684esac
1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687    cd "$ac_dir" || { ac_status=$?; continue; }
1688    # Check for guested configure.
1689    if test -f "$ac_srcdir/configure.gnu"; then
1690      echo &&
1691      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692    elif test -f "$ac_srcdir/configure"; then
1693      echo &&
1694      $SHELL "$ac_srcdir/configure" --help=recursive
1695    else
1696      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697    fi || ac_status=$?
1698    cd "$ac_pwd" || { ac_status=$?; break; }
1699  done
1700fi
1701
1702test -n "$ac_init_help" && exit $ac_status
1703if $ac_init_version; then
1704  cat <<\_ACEOF
1705configure
1706generated by GNU Autoconf 2.61
1707
1708Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17092002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712
1713Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1714Restrictions apply, see COPYRIGHT and LICENSE files.
1715_ACEOF
1716  exit
1717fi
1718cat >config.log <<_ACEOF
1719This file contains any messages produced by compilers while
1720running configure, to aid debugging if configure makes a mistake.
1721
1722It was created by $as_me, which was
1723generated by GNU Autoconf 2.61.  Invocation command line was
1724
1725  $ $0 $@
1726
1727_ACEOF
1728exec 5>>config.log
1729{
1730cat <<_ASUNAME
1731## --------- ##
1732## Platform. ##
1733## --------- ##
1734
1735hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1736uname -m = `(uname -m) 2>/dev/null || echo unknown`
1737uname -r = `(uname -r) 2>/dev/null || echo unknown`
1738uname -s = `(uname -s) 2>/dev/null || echo unknown`
1739uname -v = `(uname -v) 2>/dev/null || echo unknown`
1740
1741/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1742/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1743
1744/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1745/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1746/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1747/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1748/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1749/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1750/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1751
1752_ASUNAME
1753
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759  echo "PATH: $as_dir"
1760done
1761IFS=$as_save_IFS
1762
1763} >&5
1764
1765cat >&5 <<_ACEOF
1766
1767
1768## ----------- ##
1769## Core tests. ##
1770## ----------- ##
1771
1772_ACEOF
1773
1774
1775# Keep a trace of the command line.
1776# Strip out --no-create and --no-recursion so they do not pile up.
1777# Strip out --silent because we don't want to record it for future runs.
1778# Also quote any args containing shell meta-characters.
1779# Make two passes to allow for proper duplicate-argument suppression.
1780ac_configure_args=
1781ac_configure_args0=
1782ac_configure_args1=
1783ac_must_keep_next=false
1784for ac_pass in 1 2
1785do
1786  for ac_arg
1787  do
1788    case $ac_arg in
1789    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1790    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1791    | -silent | --silent | --silen | --sile | --sil)
1792      continue ;;
1793    *\'*)
1794      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795    esac
1796    case $ac_pass in
1797    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1798    2)
1799      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1800      if test $ac_must_keep_next = true; then
1801	ac_must_keep_next=false # Got value, back to normal.
1802      else
1803	case $ac_arg in
1804	  *=* | --config-cache | -C | -disable-* | --disable-* \
1805	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1806	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1807	  | -with-* | --with-* | -without-* | --without-* | --x)
1808	    case "$ac_configure_args0 " in
1809	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810	    esac
1811	    ;;
1812	  -* ) ac_must_keep_next=true ;;
1813	esac
1814      fi
1815      ac_configure_args="$ac_configure_args '$ac_arg'"
1816      ;;
1817    esac
1818  done
1819done
1820$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1821$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1822
1823# When interrupted or exit'd, cleanup temporary files, and complete
1824# config.log.  We remove comments because anyway the quotes in there
1825# would cause problems or look ugly.
1826# WARNING: Use '\'' to represent an apostrophe within the trap.
1827# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1828trap 'exit_status=$?
1829  # Save into config.log some information that might help in debugging.
1830  {
1831    echo
1832
1833    cat <<\_ASBOX
1834## ---------------- ##
1835## Cache variables. ##
1836## ---------------- ##
1837_ASBOX
1838    echo
1839    # The following way of writing the cache mishandles newlines in values,
1840(
1841  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1842    eval ac_val=\$$ac_var
1843    case $ac_val in #(
1844    *${as_nl}*)
1845      case $ac_var in #(
1846      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1847echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1848      esac
1849      case $ac_var in #(
1850      _ | IFS | as_nl) ;; #(
1851      *) $as_unset $ac_var ;;
1852      esac ;;
1853    esac
1854  done
1855  (set) 2>&1 |
1856    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1857    *${as_nl}ac_space=\ *)
1858      sed -n \
1859	"s/'\''/'\''\\\\'\'''\''/g;
1860	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1861      ;; #(
1862    *)
1863      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1864      ;;
1865    esac |
1866    sort
1867)
1868    echo
1869
1870    cat <<\_ASBOX
1871## ----------------- ##
1872## Output variables. ##
1873## ----------------- ##
1874_ASBOX
1875    echo
1876    for ac_var in $ac_subst_vars
1877    do
1878      eval ac_val=\$$ac_var
1879      case $ac_val in
1880      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881      esac
1882      echo "$ac_var='\''$ac_val'\''"
1883    done | sort
1884    echo
1885
1886    if test -n "$ac_subst_files"; then
1887      cat <<\_ASBOX
1888## ------------------- ##
1889## File substitutions. ##
1890## ------------------- ##
1891_ASBOX
1892      echo
1893      for ac_var in $ac_subst_files
1894      do
1895	eval ac_val=\$$ac_var
1896	case $ac_val in
1897	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898	esac
1899	echo "$ac_var='\''$ac_val'\''"
1900      done | sort
1901      echo
1902    fi
1903
1904    if test -s confdefs.h; then
1905      cat <<\_ASBOX
1906## ----------- ##
1907## confdefs.h. ##
1908## ----------- ##
1909_ASBOX
1910      echo
1911      cat confdefs.h
1912      echo
1913    fi
1914    test "$ac_signal" != 0 &&
1915      echo "$as_me: caught signal $ac_signal"
1916    echo "$as_me: exit $exit_status"
1917  } >&5
1918  rm -f core *.core core.conftest.* &&
1919    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1920    exit $exit_status
1921' 0
1922for ac_signal in 1 2 13 15; do
1923  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1924done
1925ac_signal=0
1926
1927# confdefs.h avoids OS command line length limits that DEFS can exceed.
1928rm -f -r conftest* confdefs.h
1929
1930# Predefined preprocessor variables.
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_NAME "$PACKAGE_NAME"
1934_ACEOF
1935
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1939_ACEOF
1940
1941
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_VERSION "$PACKAGE_VERSION"
1944_ACEOF
1945
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_STRING "$PACKAGE_STRING"
1949_ACEOF
1950
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1954_ACEOF
1955
1956
1957# Let the site file select an alternate cache file if it wants to.
1958# Prefer explicitly selected file to automatically selected ones.
1959if test -n "$CONFIG_SITE"; then
1960  set x "$CONFIG_SITE"
1961elif test "x$prefix" != xNONE; then
1962  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1963else
1964  set x "$ac_default_prefix/share/config.site" \
1965	"$ac_default_prefix/etc/config.site"
1966fi
1967shift
1968for ac_site_file
1969do
1970  if test -r "$ac_site_file"; then
1971    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1972echo "$as_me: loading site script $ac_site_file" >&6;}
1973    sed 's/^/| /' "$ac_site_file" >&5
1974    . "$ac_site_file"
1975  fi
1976done
1977
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
1982for ac_var in $ac_precious_vars; do
1983  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984  eval ac_new_set=\$ac_env_${ac_var}_set
1985  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986  eval ac_new_val=\$ac_env_${ac_var}_value
1987  case $ac_old_set,$ac_new_set in
1988    set,)
1989      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991      ac_cache_corrupted=: ;;
1992    ,set)
1993      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995      ac_cache_corrupted=: ;;
1996    ,);;
1997    *)
1998      if test "x$ac_old_val" != "x$ac_new_val"; then
1999	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2002echo "$as_me:   former value:  $ac_old_val" >&2;}
2003	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2004echo "$as_me:   current value: $ac_new_val" >&2;}
2005	ac_cache_corrupted=:
2006      fi;;
2007  esac
2008  # Pass precious variables to config.status.
2009  if test "$ac_new_set" = set; then
2010    case $ac_new_val in
2011    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012    *) ac_arg=$ac_var=$ac_new_val ;;
2013    esac
2014    case " $ac_configure_args " in
2015      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2016      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017    esac
2018  fi
2019done
2020if $ac_cache_corrupted; then
2021  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025   { (exit 1); exit 1; }; }
2026fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077ac_aux_dir=
2078for ac_dir in build "$srcdir"/build; do
2079  if test -f "$ac_dir/install-sh"; then
2080    ac_aux_dir=$ac_dir
2081    ac_install_sh="$ac_aux_dir/install-sh -c"
2082    break
2083  elif test -f "$ac_dir/install.sh"; then
2084    ac_aux_dir=$ac_dir
2085    ac_install_sh="$ac_aux_dir/install.sh -c"
2086    break
2087  elif test -f "$ac_dir/shtool"; then
2088    ac_aux_dir=$ac_dir
2089    ac_install_sh="$ac_aux_dir/shtool install -c"
2090    break
2091  fi
2092done
2093if test -z "$ac_aux_dir"; then
2094  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2095echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2096   { (exit 1); exit 1; }; }
2097fi
2098
2099# These three variables are undocumented and unsupported,
2100# and are intended to be withdrawn in a future Autoconf release.
2101# They can cause serious problems if a builder's source tree is in a directory
2102# whose full name contains unusual characters.
2103ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2104ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2105ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2106
2107
2108eval `$ac_aux_dir/version.sh`
2109if test -z "$OL_STRING"; then
2110	{ { echo "$as_me:$LINENO: error: could not determine version" >&5
2111echo "$as_me: error: could not determine version" >&2;}
2112   { (exit 1); exit 1; }; }
2113fi
2114
2115if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2116	ac_cv_shtool="$ac_aux_dir/shtool"
2117else
2118	{ { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2119echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2120   { (exit 1); exit 1; }; }
2121fi
2122
2123SHTOOL="$ac_cv_shtool"
2124
2125TB="" TN=""
2126if test -t 1; then
2127	TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2128	TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2129fi
2130
2131OPENLDAP_REPO=""
2132if test -d $ac_aux_dir/../.git; then
2133	OPENLDAP_REPO="(from Git clone) "
2134elif test -d $ac_aux_dir/CVS; then
2135	OPENLDAP_REPO="(from CVS checkout) "
2136fi
2137
2138echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2139
2140# Make sure we can run config.sub.
2141$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146{ echo "$as_me:$LINENO: checking build system type" >&5
2147echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148if test "${ac_cv_build+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  ac_build_alias=$build_alias
2152test "x$ac_build_alias" = x &&
2153  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154test "x$ac_build_alias" = x &&
2155  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157   { (exit 1); exit 1; }; }
2158ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161   { (exit 1); exit 1; }; }
2162
2163fi
2164{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165echo "${ECHO_T}$ac_cv_build" >&6; }
2166case $ac_cv_build in
2167*-*-*) ;;
2168*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169echo "$as_me: error: invalid value of canonical build" >&2;}
2170   { (exit 1); exit 1; }; };;
2171esac
2172build=$ac_cv_build
2173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_build
2175shift
2176build_cpu=$1
2177build_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181build_os=$*
2182IFS=$ac_save_IFS
2183case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2184
2185
2186{ echo "$as_me:$LINENO: checking host system type" >&5
2187echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188if test "${ac_cv_host+set}" = set; then
2189  echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
2191  if test "x$host_alias" = x; then
2192  ac_cv_host=$ac_cv_build
2193else
2194  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197   { (exit 1); exit 1; }; }
2198fi
2199
2200fi
2201{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202echo "${ECHO_T}$ac_cv_host" >&6; }
2203case $ac_cv_host in
2204*-*-*) ;;
2205*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206echo "$as_me: error: invalid value of canonical host" >&2;}
2207   { (exit 1); exit 1; }; };;
2208esac
2209host=$ac_cv_host
2210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_host
2212shift
2213host_cpu=$1
2214host_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218host_os=$*
2219IFS=$ac_save_IFS
2220case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2221
2222
2223{ echo "$as_me:$LINENO: checking target system type" >&5
2224echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2225if test "${ac_cv_target+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  if test "x$target_alias" = x; then
2229  ac_cv_target=$ac_cv_host
2230else
2231  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2234   { (exit 1); exit 1; }; }
2235fi
2236
2237fi
2238{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239echo "${ECHO_T}$ac_cv_target" >&6; }
2240case $ac_cv_target in
2241*-*-*) ;;
2242*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243echo "$as_me: error: invalid value of canonical target" >&2;}
2244   { (exit 1); exit 1; }; };;
2245esac
2246target=$ac_cv_target
2247ac_save_IFS=$IFS; IFS='-'
2248set x $ac_cv_target
2249shift
2250target_cpu=$1
2251target_vendor=$2
2252shift; shift
2253# Remember, the first character of IFS is used to create $*,
2254# except with old shells:
2255target_os=$*
2256IFS=$ac_save_IFS
2257case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2258
2259
2260# The aliases save the names the user supplied, while $host etc.
2261# will get canonicalized.
2262test -n "$target_alias" &&
2263  test "$program_prefix$program_suffix$program_transform_name" = \
2264    NONENONEs,x,x, &&
2265  program_prefix=${target_alias}-
2266
2267am__api_version="1.9"
2268# Find a good install program.  We prefer a C program (faster),
2269# so one script is as good as another.  But avoid the broken or
2270# incompatible versions:
2271# SysV /etc/install, /usr/sbin/install
2272# SunOS /usr/etc/install
2273# IRIX /sbin/install
2274# AIX /bin/install
2275# AmigaOS /C/install, which installs bootblocks on floppy discs
2276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279# OS/2's system install, which has a completely different semantic
2280# ./install, which can be erroneously created by make from ./install.sh.
2281{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2282echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2283if test -z "$INSTALL"; then
2284if test "${ac_cv_path_install+set}" = set; then
2285  echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  # Account for people who put trailing slashes in PATH elements.
2293case $as_dir/ in
2294  ./ | .// | /cC/* | \
2295  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2297  /usr/ucb/* ) ;;
2298  *)
2299    # OSF1 and SCO ODT 3.0 have their own names for install.
2300    # Don't use installbsd from OSF since it installs stuff as root
2301    # by default.
2302    for ac_prog in ginstall scoinst install; do
2303      for ac_exec_ext in '' $ac_executable_extensions; do
2304	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2305	  if test $ac_prog = install &&
2306	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307	    # AIX install.  It has an incompatible calling convention.
2308	    :
2309	  elif test $ac_prog = install &&
2310	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311	    # program-specific install script used by HP pwplus--don't use.
2312	    :
2313	  else
2314	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2315	    break 3
2316	  fi
2317	fi
2318      done
2319    done
2320    ;;
2321esac
2322done
2323IFS=$as_save_IFS
2324
2325
2326fi
2327  if test "${ac_cv_path_install+set}" = set; then
2328    INSTALL=$ac_cv_path_install
2329  else
2330    # As a last resort, use the slow shell script.  Don't cache a
2331    # value for INSTALL within a source directory, because that will
2332    # break other packages using the cache if that directory is
2333    # removed, or if the value is a relative name.
2334    INSTALL=$ac_install_sh
2335  fi
2336fi
2337{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2338echo "${ECHO_T}$INSTALL" >&6; }
2339
2340# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341# It thinks the first close brace ends the variable substitution.
2342test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2343
2344test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2345
2346test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347
2348{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2349echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2350# Just in case
2351sleep 1
2352echo timestamp > conftest.file
2353# Do `set' in a subshell so we don't clobber the current shell's
2354# arguments.  Must try -L first in case configure is actually a
2355# symlink; some systems play weird games with the mod time of symlinks
2356# (eg FreeBSD returns the mod time of the symlink's containing
2357# directory).
2358if (
2359   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2360   if test "$*" = "X"; then
2361      # -L didn't work.
2362      set X `ls -t $srcdir/configure conftest.file`
2363   fi
2364   rm -f conftest.file
2365   if test "$*" != "X $srcdir/configure conftest.file" \
2366      && test "$*" != "X conftest.file $srcdir/configure"; then
2367
2368      # If neither matched, then we have a broken ls.  This can happen
2369      # if, for instance, CONFIG_SHELL is bash and it inherits a
2370      # broken ls alias from the environment.  This has actually
2371      # happened.  Such a system could not be considered "sane".
2372      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2373alias in your environment" >&5
2374echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2375alias in your environment" >&2;}
2376   { (exit 1); exit 1; }; }
2377   fi
2378
2379   test "$2" = conftest.file
2380   )
2381then
2382   # Ok.
2383   :
2384else
2385   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2386Check your system clock" >&5
2387echo "$as_me: error: newly created file is older than distributed files!
2388Check your system clock" >&2;}
2389   { (exit 1); exit 1; }; }
2390fi
2391{ echo "$as_me:$LINENO: result: yes" >&5
2392echo "${ECHO_T}yes" >&6; }
2393test "$program_prefix" != NONE &&
2394  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2395# Use a double $ so make ignores it.
2396test "$program_suffix" != NONE &&
2397  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2398# Double any \ or $.  echo might interpret backslashes.
2399# By default was `s,x,x', remove it if useless.
2400cat <<\_ACEOF >conftest.sed
2401s/[\\$]/&&/g;s/;s,x,x,$//
2402_ACEOF
2403program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2404rm -f conftest.sed
2405
2406# expand $ac_aux_dir to an absolute path
2407am_aux_dir=`cd $ac_aux_dir && pwd`
2408
2409test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2410# Use eval to expand $SHELL
2411if eval "$MISSING --run true"; then
2412  am_missing_run="$MISSING --run "
2413else
2414  am_missing_run=
2415  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2416echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2417fi
2418
2419if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2420  # We used to keeping the `.' as first argument, in order to
2421  # allow $(mkdir_p) to be used without argument.  As in
2422  #   $(mkdir_p) $(somedir)
2423  # where $(somedir) is conditionally defined.  However this is wrong
2424  # for two reasons:
2425  #  1. if the package is installed by a user who cannot write `.'
2426  #     make install will fail,
2427  #  2. the above comment should most certainly read
2428  #     $(mkdir_p) $(DESTDIR)$(somedir)
2429  #     so it does not work when $(somedir) is undefined and
2430  #     $(DESTDIR) is not.
2431  #  To support the latter case, we have to write
2432  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2433  #  so the `.' trick is pointless.
2434  mkdir_p='mkdir -p --'
2435else
2436  # On NextStep and OpenStep, the `mkdir' command does not
2437  # recognize any option.  It will interpret all options as
2438  # directories to create, and then abort because `.' already
2439  # exists.
2440  for d in ./-p ./--version;
2441  do
2442    test -d $d && rmdir $d
2443  done
2444  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2445  if test -f "$ac_aux_dir/mkinstalldirs"; then
2446    mkdir_p='$(mkinstalldirs)'
2447  else
2448    mkdir_p='$(install_sh) -d'
2449  fi
2450fi
2451
2452for ac_prog in gawk mawk nawk awk
2453do
2454  # Extract the first word of "$ac_prog", so it can be a program name with args.
2455set dummy $ac_prog; ac_word=$2
2456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458if test "${ac_cv_prog_AWK+set}" = set; then
2459  echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461  if test -n "$AWK"; then
2462  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469  for ac_exec_ext in '' $ac_executable_extensions; do
2470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471    ac_cv_prog_AWK="$ac_prog"
2472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481AWK=$ac_cv_prog_AWK
2482if test -n "$AWK"; then
2483  { echo "$as_me:$LINENO: result: $AWK" >&5
2484echo "${ECHO_T}$AWK" >&6; }
2485else
2486  { echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6; }
2488fi
2489
2490
2491  test -n "$AWK" && break
2492done
2493
2494{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2495echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2496set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2497if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  cat >conftest.make <<\_ACEOF
2501SHELL = /bin/sh
2502all:
2503	@echo '@@@%%%=$(MAKE)=@@@%%%'
2504_ACEOF
2505# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2506case `${MAKE-make} -f conftest.make 2>/dev/null` in
2507  *@@@%%%=?*=@@@%%%*)
2508    eval ac_cv_prog_make_${ac_make}_set=yes;;
2509  *)
2510    eval ac_cv_prog_make_${ac_make}_set=no;;
2511esac
2512rm -f conftest.make
2513fi
2514if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2515  { echo "$as_me:$LINENO: result: yes" >&5
2516echo "${ECHO_T}yes" >&6; }
2517  SET_MAKE=
2518else
2519  { echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6; }
2521  SET_MAKE="MAKE=${MAKE-make}"
2522fi
2523
2524rm -rf .tst 2>/dev/null
2525mkdir .tst 2>/dev/null
2526if test -d .tst; then
2527  am__leading_dot=.
2528else
2529  am__leading_dot=_
2530fi
2531rmdir .tst 2>/dev/null
2532
2533# test to see if srcdir already configured
2534if test "`cd $srcdir && pwd`" != "`pwd`" &&
2535   test -f $srcdir/config.status; then
2536  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2537echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2538   { (exit 1); exit 1; }; }
2539fi
2540
2541# test whether we have cygpath
2542if test -z "$CYGPATH_W"; then
2543  if (cygpath --version) >/dev/null 2>/dev/null; then
2544    CYGPATH_W='cygpath -w'
2545  else
2546    CYGPATH_W=echo
2547  fi
2548fi
2549
2550
2551# Define the identity of the package.
2552 PACKAGE=$OL_PACKAGE
2553 VERSION=$OL_VERSION
2554
2555
2556# Some tools Automake needs.
2557
2558ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2559
2560
2561AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2562
2563
2564AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2565
2566
2567AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2568
2569
2570MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2571
2572install_sh=${install_sh-"$am_aux_dir/install-sh"}
2573
2574# Installed binaries are usually stripped using `strip' when the user
2575# run `make install-strip'.  However `strip' might not be the right
2576# tool to use in cross-compilation environments, therefore Automake
2577# will honor the `STRIP' environment variable to overrule this program.
2578if test "$cross_compiling" != no; then
2579  if test -n "$ac_tool_prefix"; then
2580  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581set dummy ${ac_tool_prefix}strip; ac_word=$2
2582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584if test "${ac_cv_prog_STRIP+set}" = set; then
2585  echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
2587  if test -n "$STRIP"; then
2588  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593  IFS=$as_save_IFS
2594  test -z "$as_dir" && as_dir=.
2595  for ac_exec_ext in '' $ac_executable_extensions; do
2596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599    break 2
2600  fi
2601done
2602done
2603IFS=$as_save_IFS
2604
2605fi
2606fi
2607STRIP=$ac_cv_prog_STRIP
2608if test -n "$STRIP"; then
2609  { echo "$as_me:$LINENO: result: $STRIP" >&5
2610echo "${ECHO_T}$STRIP" >&6; }
2611else
2612  { echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6; }
2614fi
2615
2616
2617fi
2618if test -z "$ac_cv_prog_STRIP"; then
2619  ac_ct_STRIP=$STRIP
2620  # Extract the first word of "strip", so it can be a program name with args.
2621set dummy strip; ac_word=$2
2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2625  echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627  if test -n "$ac_ct_STRIP"; then
2628  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635  for ac_exec_ext in '' $ac_executable_extensions; do
2636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637    ac_cv_prog_ac_ct_STRIP="strip"
2638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648if test -n "$ac_ct_STRIP"; then
2649  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2650echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2651else
2652  { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
2654fi
2655
2656  if test "x$ac_ct_STRIP" = x; then
2657    STRIP=":"
2658  else
2659    case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet.  If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&5
2664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665whose name does not start with the host triplet.  If you think this
2666configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669    STRIP=$ac_ct_STRIP
2670  fi
2671else
2672  STRIP="$ac_cv_prog_STRIP"
2673fi
2674
2675fi
2676INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2677
2678# We need awk for the "check" target.  The system "awk" is bad on
2679# some platforms.
2680# Always define AMTAR for backward compatibility.
2681
2682AMTAR=${AMTAR-"${am_missing_run}tar"}
2683
2684am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2685
2686
2687
2688
2689
2690cat >>confdefs.h <<_ACEOF
2691#define OPENLDAP_PACKAGE "$PACKAGE"
2692_ACEOF
2693
2694
2695cat >>confdefs.h <<_ACEOF
2696#define OPENLDAP_VERSION "$VERSION"
2697_ACEOF
2698
2699
2700
2701cat >>confdefs.h <<_ACEOF
2702#define LDAP_VENDOR_VERSION $OL_API_INC
2703_ACEOF
2704
2705
2706cat >>confdefs.h <<_ACEOF
2707#define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2708_ACEOF
2709
2710
2711cat >>confdefs.h <<_ACEOF
2712#define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2713_ACEOF
2714
2715
2716cat >>confdefs.h <<_ACEOF
2717#define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2718_ACEOF
2719
2720
2721OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2722
2723OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2724
2725OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2726
2727
2728
2729
2730
2731
2732
2733ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2734
2735ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2736
2737ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2738
2739
2740{ echo "$as_me:$LINENO: checking configure arguments" >&5
2741echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2742
2743
2744top_builddir=`pwd`
2745
2746ldap_subdir="/openldap"
2747
2748
2749# Check whether --with-subdir was given.
2750if test "${with_subdir+set}" = set; then
2751  withval=$with_subdir; case "$withval" in
2752	no) ldap_subdir=""
2753		;;
2754	yes)
2755		;;
2756	/*|\\*)
2757		ldap_subdir="$withval"
2758		;;
2759	*)
2760		ldap_subdir="/$withval"
2761		;;
2762esac
2763
2764fi
2765
2766
2767# OpenLDAP --enable-debug
2768
2769	# Check whether --enable-debug was given.
2770if test "${enable_debug+set}" = set; then
2771  enableval=$enable_debug;
2772	ol_arg=invalid
2773	for ol_val in no yes traditional ; do
2774		if test "$enableval" = "$ol_val" ; then
2775			ol_arg="$ol_val"
2776		fi
2777	done
2778	if test "$ol_arg" = "invalid" ; then
2779		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2780echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2781   { (exit 1); exit 1; }; }
2782	fi
2783	ol_enable_debug="$ol_arg"
2784
2785else
2786  	ol_enable_debug=yes
2787fi
2788
2789# end --enable-debug
2790# OpenLDAP --enable-dynamic
2791
2792	# Check whether --enable-dynamic was given.
2793if test "${enable_dynamic+set}" = set; then
2794  enableval=$enable_dynamic;
2795	ol_arg=invalid
2796	for ol_val in auto yes no ; do
2797		if test "$enableval" = "$ol_val" ; then
2798			ol_arg="$ol_val"
2799		fi
2800	done
2801	if test "$ol_arg" = "invalid" ; then
2802		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2803echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2804   { (exit 1); exit 1; }; }
2805	fi
2806	ol_enable_dynamic="$ol_arg"
2807
2808else
2809  	ol_enable_dynamic=no
2810fi
2811
2812# end --enable-dynamic
2813# OpenLDAP --enable-syslog
2814
2815	# Check whether --enable-syslog was given.
2816if test "${enable_syslog+set}" = set; then
2817  enableval=$enable_syslog;
2818	ol_arg=invalid
2819	for ol_val in auto yes no ; do
2820		if test "$enableval" = "$ol_val" ; then
2821			ol_arg="$ol_val"
2822		fi
2823	done
2824	if test "$ol_arg" = "invalid" ; then
2825		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2826echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2827   { (exit 1); exit 1; }; }
2828	fi
2829	ol_enable_syslog="$ol_arg"
2830
2831else
2832  	ol_enable_syslog=auto
2833fi
2834
2835# end --enable-syslog
2836# OpenLDAP --enable-proctitle
2837
2838	# Check whether --enable-proctitle was given.
2839if test "${enable_proctitle+set}" = set; then
2840  enableval=$enable_proctitle;
2841	ol_arg=invalid
2842	for ol_val in auto yes no ; do
2843		if test "$enableval" = "$ol_val" ; then
2844			ol_arg="$ol_val"
2845		fi
2846	done
2847	if test "$ol_arg" = "invalid" ; then
2848		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2849echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2850   { (exit 1); exit 1; }; }
2851	fi
2852	ol_enable_proctitle="$ol_arg"
2853
2854else
2855  	ol_enable_proctitle=yes
2856fi
2857
2858# end --enable-proctitle
2859ol_enable_referrals=${ol_enable_referrals-no}
2860# OpenLDAP --enable-ipv6
2861
2862	# Check whether --enable-ipv6 was given.
2863if test "${enable_ipv6+set}" = set; then
2864  enableval=$enable_ipv6;
2865	ol_arg=invalid
2866	for ol_val in auto yes no ; do
2867		if test "$enableval" = "$ol_val" ; then
2868			ol_arg="$ol_val"
2869		fi
2870	done
2871	if test "$ol_arg" = "invalid" ; then
2872		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2873echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2874   { (exit 1); exit 1; }; }
2875	fi
2876	ol_enable_ipv6="$ol_arg"
2877
2878else
2879  	ol_enable_ipv6=auto
2880fi
2881
2882# end --enable-ipv6
2883# OpenLDAP --enable-local
2884
2885	# Check whether --enable-local was given.
2886if test "${enable_local+set}" = set; then
2887  enableval=$enable_local;
2888	ol_arg=invalid
2889	for ol_val in auto yes no ; do
2890		if test "$enableval" = "$ol_val" ; then
2891			ol_arg="$ol_val"
2892		fi
2893	done
2894	if test "$ol_arg" = "invalid" ; then
2895		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2896echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2897   { (exit 1); exit 1; }; }
2898	fi
2899	ol_enable_local="$ol_arg"
2900
2901else
2902  	ol_enable_local=auto
2903fi
2904
2905# end --enable-local
2906
2907# OpenLDAP --with-cyrus_sasl
2908
2909# Check whether --with-cyrus_sasl was given.
2910if test "${with_cyrus_sasl+set}" = set; then
2911  withval=$with_cyrus_sasl;
2912	ol_arg=invalid
2913	for ol_val in auto yes no  ; do
2914		if test "$withval" = "$ol_val" ; then
2915			ol_arg="$ol_val"
2916		fi
2917	done
2918	if test "$ol_arg" = "invalid" ; then
2919		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2920echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2921   { (exit 1); exit 1; }; }
2922	fi
2923	ol_with_cyrus_sasl="$ol_arg"
2924
2925else
2926  	ol_with_cyrus_sasl="auto"
2927fi
2928# end --with-cyrus_sasl
2929
2930# OpenLDAP --with-fetch
2931
2932# Check whether --with-fetch was given.
2933if test "${with_fetch+set}" = set; then
2934  withval=$with_fetch;
2935	ol_arg=invalid
2936	for ol_val in auto yes no  ; do
2937		if test "$withval" = "$ol_val" ; then
2938			ol_arg="$ol_val"
2939		fi
2940	done
2941	if test "$ol_arg" = "invalid" ; then
2942		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2943echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2944   { (exit 1); exit 1; }; }
2945	fi
2946	ol_with_fetch="$ol_arg"
2947
2948else
2949  	ol_with_fetch="auto"
2950fi
2951# end --with-fetch
2952
2953# OpenLDAP --with-threads
2954
2955# Check whether --with-threads was given.
2956if test "${with_threads+set}" = set; then
2957  withval=$with_threads;
2958	ol_arg=invalid
2959	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2960		if test "$withval" = "$ol_val" ; then
2961			ol_arg="$ol_val"
2962		fi
2963	done
2964	if test "$ol_arg" = "invalid" ; then
2965		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2966echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2967   { (exit 1); exit 1; }; }
2968	fi
2969	ol_with_threads="$ol_arg"
2970
2971else
2972  	ol_with_threads="auto"
2973fi
2974# end --with-threads
2975
2976# OpenLDAP --with-tls
2977
2978# Check whether --with-tls was given.
2979if test "${with_tls+set}" = set; then
2980  withval=$with_tls;
2981	ol_arg=invalid
2982	for ol_val in auto secure-transport openssl gnutls moznss yes no  ; do
2983		if test "$withval" = "$ol_val" ; then
2984			ol_arg="$ol_val"
2985		fi
2986	done
2987	if test "$ol_arg" = "invalid" ; then
2988		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2989echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2990   { (exit 1); exit 1; }; }
2991	fi
2992	ol_with_tls="$ol_arg"
2993
2994else
2995  	ol_with_tls="auto"
2996fi
2997# end --with-tls
2998
2999# OpenLDAP --with-yielding_select
3000
3001# Check whether --with-yielding_select was given.
3002if test "${with_yielding_select+set}" = set; then
3003  withval=$with_yielding_select;
3004	ol_arg=invalid
3005	for ol_val in auto yes no manual  ; do
3006		if test "$withval" = "$ol_val" ; then
3007			ol_arg="$ol_val"
3008		fi
3009	done
3010	if test "$ol_arg" = "invalid" ; then
3011		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3012echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3013   { (exit 1); exit 1; }; }
3014	fi
3015	ol_with_yielding_select="$ol_arg"
3016
3017else
3018  	ol_with_yielding_select="auto"
3019fi
3020# end --with-yielding_select
3021
3022# OpenLDAP --with-mp
3023
3024# Check whether --with-mp was given.
3025if test "${with_mp+set}" = set; then
3026  withval=$with_mp;
3027	ol_arg=invalid
3028	for ol_val in auto longlong long bignum gmp yes no ; do
3029		if test "$withval" = "$ol_val" ; then
3030			ol_arg="$ol_val"
3031		fi
3032	done
3033	if test "$ol_arg" = "invalid" ; then
3034		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3035echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3036   { (exit 1); exit 1; }; }
3037	fi
3038	ol_with_mp="$ol_arg"
3039
3040else
3041  	ol_with_mp="auto"
3042fi
3043# end --with-mp
3044
3045# OpenLDAP --with-odbc
3046
3047# Check whether --with-odbc was given.
3048if test "${with_odbc+set}" = set; then
3049  withval=$with_odbc;
3050	ol_arg=invalid
3051	for ol_val in auto iodbc unixodbc odbc32  ; do
3052		if test "$withval" = "$ol_val" ; then
3053			ol_arg="$ol_val"
3054		fi
3055	done
3056	if test "$ol_arg" = "invalid" ; then
3057		{ { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3058echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3059   { (exit 1); exit 1; }; }
3060	fi
3061	ol_with_odbc="$ol_arg"
3062
3063else
3064  	ol_with_odbc="auto"
3065fi
3066# end --with-odbc
3067
3068
3069
3070# Check whether --enable-xxslapdoptions was given.
3071if test "${enable_xxslapdoptions+set}" = set; then
3072  enableval=$enable_xxslapdoptions;
3073fi
3074
3075# OpenLDAP --enable-slapd
3076
3077	# Check whether --enable-slapd was given.
3078if test "${enable_slapd+set}" = set; then
3079  enableval=$enable_slapd;
3080	ol_arg=invalid
3081	for ol_val in auto yes no ; do
3082		if test "$enableval" = "$ol_val" ; then
3083			ol_arg="$ol_val"
3084		fi
3085	done
3086	if test "$ol_arg" = "invalid" ; then
3087		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3088echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3089   { (exit 1); exit 1; }; }
3090	fi
3091	ol_enable_slapd="$ol_arg"
3092
3093else
3094  	ol_enable_slapd=yes
3095fi
3096
3097# end --enable-slapd
3098# OpenLDAP --enable-dynacl
3099
3100	# Check whether --enable-dynacl was given.
3101if test "${enable_dynacl+set}" = set; then
3102  enableval=$enable_dynacl;
3103	ol_arg=invalid
3104	for ol_val in auto yes no ; do
3105		if test "$enableval" = "$ol_val" ; then
3106			ol_arg="$ol_val"
3107		fi
3108	done
3109	if test "$ol_arg" = "invalid" ; then
3110		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3111echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3112   { (exit 1); exit 1; }; }
3113	fi
3114	ol_enable_dynacl="$ol_arg"
3115
3116else
3117  	ol_enable_dynacl=no
3118fi
3119
3120# end --enable-dynacl
3121# OpenLDAP --enable-aci
3122
3123	# Check whether --enable-aci was given.
3124if test "${enable_aci+set}" = set; then
3125  enableval=$enable_aci;
3126	ol_arg=invalid
3127	for ol_val in no yes mod ; do
3128		if test "$enableval" = "$ol_val" ; then
3129			ol_arg="$ol_val"
3130		fi
3131	done
3132	if test "$ol_arg" = "invalid" ; then
3133		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3134echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3135   { (exit 1); exit 1; }; }
3136	fi
3137	ol_enable_aci="$ol_arg"
3138
3139else
3140  	ol_enable_aci=no
3141fi
3142
3143# end --enable-aci
3144# OpenLDAP --enable-cleartext
3145
3146	# Check whether --enable-cleartext was given.
3147if test "${enable_cleartext+set}" = set; then
3148  enableval=$enable_cleartext;
3149	ol_arg=invalid
3150	for ol_val in auto yes no ; do
3151		if test "$enableval" = "$ol_val" ; then
3152			ol_arg="$ol_val"
3153		fi
3154	done
3155	if test "$ol_arg" = "invalid" ; then
3156		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3157echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3158   { (exit 1); exit 1; }; }
3159	fi
3160	ol_enable_cleartext="$ol_arg"
3161
3162else
3163  	ol_enable_cleartext=yes
3164fi
3165
3166# end --enable-cleartext
3167# OpenLDAP --enable-crypt
3168
3169	# Check whether --enable-crypt was given.
3170if test "${enable_crypt+set}" = set; then
3171  enableval=$enable_crypt;
3172	ol_arg=invalid
3173	for ol_val in auto yes no ; do
3174		if test "$enableval" = "$ol_val" ; then
3175			ol_arg="$ol_val"
3176		fi
3177	done
3178	if test "$ol_arg" = "invalid" ; then
3179		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3180echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3181   { (exit 1); exit 1; }; }
3182	fi
3183	ol_enable_crypt="$ol_arg"
3184
3185else
3186  	ol_enable_crypt=no
3187fi
3188
3189# end --enable-crypt
3190# OpenLDAP --enable-lmpasswd
3191
3192	# Check whether --enable-lmpasswd was given.
3193if test "${enable_lmpasswd+set}" = set; then
3194  enableval=$enable_lmpasswd;
3195	ol_arg=invalid
3196	for ol_val in auto yes no ; do
3197		if test "$enableval" = "$ol_val" ; then
3198			ol_arg="$ol_val"
3199		fi
3200	done
3201	if test "$ol_arg" = "invalid" ; then
3202		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3203echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3204   { (exit 1); exit 1; }; }
3205	fi
3206	ol_enable_lmpasswd="$ol_arg"
3207
3208else
3209  	ol_enable_lmpasswd=no
3210fi
3211
3212# end --enable-lmpasswd
3213# OpenLDAP --enable-spasswd
3214
3215	# Check whether --enable-spasswd was given.
3216if test "${enable_spasswd+set}" = set; then
3217  enableval=$enable_spasswd;
3218	ol_arg=invalid
3219	for ol_val in auto yes no ; do
3220		if test "$enableval" = "$ol_val" ; then
3221			ol_arg="$ol_val"
3222		fi
3223	done
3224	if test "$ol_arg" = "invalid" ; then
3225		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3226echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3227   { (exit 1); exit 1; }; }
3228	fi
3229	ol_enable_spasswd="$ol_arg"
3230
3231else
3232  	ol_enable_spasswd=no
3233fi
3234
3235# end --enable-spasswd
3236# OpenLDAP --enable-modules
3237
3238	# Check whether --enable-modules was given.
3239if test "${enable_modules+set}" = set; then
3240  enableval=$enable_modules;
3241	ol_arg=invalid
3242	for ol_val in auto yes no ; do
3243		if test "$enableval" = "$ol_val" ; then
3244			ol_arg="$ol_val"
3245		fi
3246	done
3247	if test "$ol_arg" = "invalid" ; then
3248		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3249echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3250   { (exit 1); exit 1; }; }
3251	fi
3252	ol_enable_modules="$ol_arg"
3253
3254else
3255  	ol_enable_modules=no
3256fi
3257
3258# end --enable-modules
3259# OpenLDAP --enable-rlookups
3260
3261	# Check whether --enable-rlookups was given.
3262if test "${enable_rlookups+set}" = set; then
3263  enableval=$enable_rlookups;
3264	ol_arg=invalid
3265	for ol_val in auto yes no ; do
3266		if test "$enableval" = "$ol_val" ; then
3267			ol_arg="$ol_val"
3268		fi
3269	done
3270	if test "$ol_arg" = "invalid" ; then
3271		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3272echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3273   { (exit 1); exit 1; }; }
3274	fi
3275	ol_enable_rlookups="$ol_arg"
3276
3277else
3278  	ol_enable_rlookups=no
3279fi
3280
3281# end --enable-rlookups
3282# OpenLDAP --enable-slapi
3283
3284	# Check whether --enable-slapi was given.
3285if test "${enable_slapi+set}" = set; then
3286  enableval=$enable_slapi;
3287	ol_arg=invalid
3288	for ol_val in auto yes no ; do
3289		if test "$enableval" = "$ol_val" ; then
3290			ol_arg="$ol_val"
3291		fi
3292	done
3293	if test "$ol_arg" = "invalid" ; then
3294		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3295echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3296   { (exit 1); exit 1; }; }
3297	fi
3298	ol_enable_slapi="$ol_arg"
3299
3300else
3301  	ol_enable_slapi=no
3302fi
3303
3304# end --enable-slapi
3305# OpenLDAP --enable-slp
3306
3307	# Check whether --enable-slp was given.
3308if test "${enable_slp+set}" = set; then
3309  enableval=$enable_slp;
3310	ol_arg=invalid
3311	for ol_val in auto yes no ; do
3312		if test "$enableval" = "$ol_val" ; then
3313			ol_arg="$ol_val"
3314		fi
3315	done
3316	if test "$ol_arg" = "invalid" ; then
3317		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3318echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3319   { (exit 1); exit 1; }; }
3320	fi
3321	ol_enable_slp="$ol_arg"
3322
3323else
3324  	ol_enable_slp=no
3325fi
3326
3327# end --enable-slp
3328# OpenLDAP --enable-wrappers
3329
3330	# Check whether --enable-wrappers was given.
3331if test "${enable_wrappers+set}" = set; then
3332  enableval=$enable_wrappers;
3333	ol_arg=invalid
3334	for ol_val in auto yes no ; do
3335		if test "$enableval" = "$ol_val" ; then
3336			ol_arg="$ol_val"
3337		fi
3338	done
3339	if test "$ol_arg" = "invalid" ; then
3340		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3341echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3342   { (exit 1); exit 1; }; }
3343	fi
3344	ol_enable_wrappers="$ol_arg"
3345
3346else
3347  	ol_enable_wrappers=no
3348fi
3349
3350# end --enable-wrappers
3351
3352Backends="bdb \
3353	dnssrv \
3354	hdb \
3355	ldap \
3356	meta \
3357	monitor \
3358	null \
3359	passwd \
3360	perl \
3361	relay \
3362	shell \
3363	sock \
3364	sql"
3365
3366# Check whether --enable-xxslapbackends was given.
3367if test "${enable_xxslapbackends+set}" = set; then
3368  enableval=$enable_xxslapbackends;
3369fi
3370
3371
3372# OpenLDAP --enable-backends
3373
3374	# Check whether --enable-backends was given.
3375if test "${enable_backends+set}" = set; then
3376  enableval=$enable_backends;
3377	ol_arg=invalid
3378	for ol_val in no yes mod ; do
3379		if test "$enableval" = "$ol_val" ; then
3380			ol_arg="$ol_val"
3381		fi
3382	done
3383	if test "$ol_arg" = "invalid" ; then
3384		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3385echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3386   { (exit 1); exit 1; }; }
3387	fi
3388	ol_enable_backends="$ol_arg"
3389
3390fi
3391
3392# end --enable-backends
3393# OpenLDAP --enable-bdb
3394
3395	# Check whether --enable-bdb was given.
3396if test "${enable_bdb+set}" = set; then
3397  enableval=$enable_bdb;
3398	ol_arg=invalid
3399	for ol_val in no yes mod ; do
3400		if test "$enableval" = "$ol_val" ; then
3401			ol_arg="$ol_val"
3402		fi
3403	done
3404	if test "$ol_arg" = "invalid" ; then
3405		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3406echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3407   { (exit 1); exit 1; }; }
3408	fi
3409	ol_enable_bdb="$ol_arg"
3410
3411else
3412  	ol_enable_bdb=${ol_enable_backends:-yes}
3413fi
3414
3415# end --enable-bdb
3416# OpenLDAP --enable-dnssrv
3417
3418	# Check whether --enable-dnssrv was given.
3419if test "${enable_dnssrv+set}" = set; then
3420  enableval=$enable_dnssrv;
3421	ol_arg=invalid
3422	for ol_val in no yes mod ; do
3423		if test "$enableval" = "$ol_val" ; then
3424			ol_arg="$ol_val"
3425		fi
3426	done
3427	if test "$ol_arg" = "invalid" ; then
3428		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3429echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3430   { (exit 1); exit 1; }; }
3431	fi
3432	ol_enable_dnssrv="$ol_arg"
3433
3434else
3435  	ol_enable_dnssrv=${ol_enable_backends:-no}
3436fi
3437
3438# end --enable-dnssrv
3439# OpenLDAP --enable-hdb
3440
3441	# Check whether --enable-hdb was given.
3442if test "${enable_hdb+set}" = set; then
3443  enableval=$enable_hdb;
3444	ol_arg=invalid
3445	for ol_val in no yes mod ; do
3446		if test "$enableval" = "$ol_val" ; then
3447			ol_arg="$ol_val"
3448		fi
3449	done
3450	if test "$ol_arg" = "invalid" ; then
3451		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3452echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3453   { (exit 1); exit 1; }; }
3454	fi
3455	ol_enable_hdb="$ol_arg"
3456
3457else
3458  	ol_enable_hdb=${ol_enable_backends:-yes}
3459fi
3460
3461# end --enable-hdb
3462# OpenLDAP --enable-ldap
3463
3464	# Check whether --enable-ldap was given.
3465if test "${enable_ldap+set}" = set; then
3466  enableval=$enable_ldap;
3467	ol_arg=invalid
3468	for ol_val in no yes mod ; do
3469		if test "$enableval" = "$ol_val" ; then
3470			ol_arg="$ol_val"
3471		fi
3472	done
3473	if test "$ol_arg" = "invalid" ; then
3474		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3475echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3476   { (exit 1); exit 1; }; }
3477	fi
3478	ol_enable_ldap="$ol_arg"
3479
3480else
3481  	ol_enable_ldap=${ol_enable_backends:-no}
3482fi
3483
3484# end --enable-ldap
3485# OpenLDAP --enable-meta
3486
3487	# Check whether --enable-meta was given.
3488if test "${enable_meta+set}" = set; then
3489  enableval=$enable_meta;
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-meta" >&5
3498echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3499   { (exit 1); exit 1; }; }
3500	fi
3501	ol_enable_meta="$ol_arg"
3502
3503else
3504  	ol_enable_meta=${ol_enable_backends:-no}
3505fi
3506
3507# end --enable-meta
3508# OpenLDAP --enable-monitor
3509
3510	# Check whether --enable-monitor was given.
3511if test "${enable_monitor+set}" = set; then
3512  enableval=$enable_monitor;
3513	ol_arg=invalid
3514	for ol_val in no yes mod ; do
3515		if test "$enableval" = "$ol_val" ; then
3516			ol_arg="$ol_val"
3517		fi
3518	done
3519	if test "$ol_arg" = "invalid" ; then
3520		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3521echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3522   { (exit 1); exit 1; }; }
3523	fi
3524	ol_enable_monitor="$ol_arg"
3525
3526else
3527  	ol_enable_monitor=${ol_enable_backends:-yes}
3528fi
3529
3530# end --enable-monitor
3531# OpenLDAP --enable-null
3532
3533	# Check whether --enable-null was given.
3534if test "${enable_null+set}" = set; then
3535  enableval=$enable_null;
3536	ol_arg=invalid
3537	for ol_val in no yes mod ; do
3538		if test "$enableval" = "$ol_val" ; then
3539			ol_arg="$ol_val"
3540		fi
3541	done
3542	if test "$ol_arg" = "invalid" ; then
3543		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3544echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3545   { (exit 1); exit 1; }; }
3546	fi
3547	ol_enable_null="$ol_arg"
3548
3549else
3550  	ol_enable_null=${ol_enable_backends:-no}
3551fi
3552
3553# end --enable-null
3554# OpenLDAP --enable-passwd
3555
3556	# Check whether --enable-passwd was given.
3557if test "${enable_passwd+set}" = set; then
3558  enableval=$enable_passwd;
3559	ol_arg=invalid
3560	for ol_val in no yes mod ; do
3561		if test "$enableval" = "$ol_val" ; then
3562			ol_arg="$ol_val"
3563		fi
3564	done
3565	if test "$ol_arg" = "invalid" ; then
3566		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3567echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3568   { (exit 1); exit 1; }; }
3569	fi
3570	ol_enable_passwd="$ol_arg"
3571
3572else
3573  	ol_enable_passwd=${ol_enable_backends:-no}
3574fi
3575
3576# end --enable-passwd
3577# OpenLDAP --enable-perl
3578
3579	# Check whether --enable-perl was given.
3580if test "${enable_perl+set}" = set; then
3581  enableval=$enable_perl;
3582	ol_arg=invalid
3583	for ol_val in no yes mod ; do
3584		if test "$enableval" = "$ol_val" ; then
3585			ol_arg="$ol_val"
3586		fi
3587	done
3588	if test "$ol_arg" = "invalid" ; then
3589		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3590echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3591   { (exit 1); exit 1; }; }
3592	fi
3593	ol_enable_perl="$ol_arg"
3594
3595else
3596  	ol_enable_perl=${ol_enable_backends:-no}
3597fi
3598
3599# end --enable-perl
3600# OpenLDAP --enable-relay
3601
3602	# Check whether --enable-relay was given.
3603if test "${enable_relay+set}" = set; then
3604  enableval=$enable_relay;
3605	ol_arg=invalid
3606	for ol_val in no yes mod ; do
3607		if test "$enableval" = "$ol_val" ; then
3608			ol_arg="$ol_val"
3609		fi
3610	done
3611	if test "$ol_arg" = "invalid" ; then
3612		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3613echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3614   { (exit 1); exit 1; }; }
3615	fi
3616	ol_enable_relay="$ol_arg"
3617
3618else
3619  	ol_enable_relay=${ol_enable_backends:-yes}
3620fi
3621
3622# end --enable-relay
3623# OpenLDAP --enable-shell
3624
3625	# Check whether --enable-shell was given.
3626if test "${enable_shell+set}" = set; then
3627  enableval=$enable_shell;
3628	ol_arg=invalid
3629	for ol_val in no yes mod ; do
3630		if test "$enableval" = "$ol_val" ; then
3631			ol_arg="$ol_val"
3632		fi
3633	done
3634	if test "$ol_arg" = "invalid" ; then
3635		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3636echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3637   { (exit 1); exit 1; }; }
3638	fi
3639	ol_enable_shell="$ol_arg"
3640
3641else
3642  	ol_enable_shell=${ol_enable_backends:-no}
3643fi
3644
3645# end --enable-shell
3646# OpenLDAP --enable-sock
3647
3648	# Check whether --enable-sock was given.
3649if test "${enable_sock+set}" = set; then
3650  enableval=$enable_sock;
3651	ol_arg=invalid
3652	for ol_val in no yes mod ; do
3653		if test "$enableval" = "$ol_val" ; then
3654			ol_arg="$ol_val"
3655		fi
3656	done
3657	if test "$ol_arg" = "invalid" ; then
3658		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3659echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3660   { (exit 1); exit 1; }; }
3661	fi
3662	ol_enable_sock="$ol_arg"
3663
3664else
3665  	ol_enable_sock=${ol_enable_backends:-no}
3666fi
3667
3668# end --enable-sock
3669# OpenLDAP --enable-sql
3670
3671	# Check whether --enable-sql was given.
3672if test "${enable_sql+set}" = set; then
3673  enableval=$enable_sql;
3674	ol_arg=invalid
3675	for ol_val in no yes mod ; do
3676		if test "$enableval" = "$ol_val" ; then
3677			ol_arg="$ol_val"
3678		fi
3679	done
3680	if test "$ol_arg" = "invalid" ; then
3681		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3682echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3683   { (exit 1); exit 1; }; }
3684	fi
3685	ol_enable_sql="$ol_arg"
3686
3687else
3688  	ol_enable_sql=${ol_enable_backends:-no}
3689fi
3690
3691# end --enable-sql
3692
3693Overlays="accesslog \
3694	dynid \
3695	odlocales \
3696	odusers \
3697	auditlog \
3698	constraint \
3699	dds \
3700	deref \
3701	dyngroup \
3702	nestedgroup \
3703	dynlist \
3704	memberof \
3705	ppolicy \
3706	proxycache \
3707	refint \
3708	retcode \
3709	seqmod \
3710	syncprov \
3711	translucent \
3712	unique \
3713	valsort"
3714
3715# Check whether --enable-xxslapoverlays was given.
3716if test "${enable_xxslapoverlays+set}" = set; then
3717  enableval=$enable_xxslapoverlays;
3718fi
3719
3720
3721# OpenLDAP --enable-overlays
3722
3723	# Check whether --enable-overlays was given.
3724if test "${enable_overlays+set}" = set; then
3725  enableval=$enable_overlays;
3726	ol_arg=invalid
3727	for ol_val in no yes mod ; do
3728		if test "$enableval" = "$ol_val" ; then
3729			ol_arg="$ol_val"
3730		fi
3731	done
3732	if test "$ol_arg" = "invalid" ; then
3733		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3734echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3735   { (exit 1); exit 1; }; }
3736	fi
3737	ol_enable_overlays="$ol_arg"
3738
3739fi
3740
3741# end --enable-overlays
3742# OpenLDAP --enable-accesslog
3743
3744	# Check whether --enable-accesslog was given.
3745if test "${enable_accesslog+set}" = set; then
3746  enableval=$enable_accesslog;
3747	ol_arg=invalid
3748	for ol_val in no yes mod ; do
3749		if test "$enableval" = "$ol_val" ; then
3750			ol_arg="$ol_val"
3751		fi
3752	done
3753	if test "$ol_arg" = "invalid" ; then
3754		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3755echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3756   { (exit 1); exit 1; }; }
3757	fi
3758	ol_enable_accesslog="$ol_arg"
3759
3760else
3761  	ol_enable_accesslog=${ol_enable_overlays:-no}
3762fi
3763
3764# end --enable-accesslog
3765
3766# OpenLDAP --enable-dynid
3767
3768	# Check whether --enable-dynid was given.
3769if test "${enable_dynid+set}" = set; then
3770  enableval=$enable_dynid;
3771	ol_arg=invalid
3772	for ol_val in no yes mod ; do
3773		if test "$enableval" = "$ol_val" ; then
3774			ol_arg="$ol_val"
3775		fi
3776	done
3777	if test "$ol_arg" = "invalid" ; then
3778		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynid" >&5
3779echo "$as_me: error: bad value $enableval for --enable-dynid" >&2;}
3780   { (exit 1); exit 1; }; }
3781	fi
3782	ol_enable_dynid="$ol_arg"
3783
3784else
3785  	ol_enable_dynid=${ol_enable_overlays:-no}
3786fi
3787
3788# end --enable-dynid
3789
3790# OpenLDAP --enable-odlocales
3791
3792	# Check whether --enable-odlocales was given.
3793if test "${enable_odlocales+set}" = set; then
3794  enableval=$enable_odlocales;
3795	ol_arg=invalid
3796	for ol_val in no yes mod ; do
3797		if test "$enableval" = "$ol_val" ; then
3798			ol_arg="$ol_val"
3799		fi
3800	done
3801	if test "$ol_arg" = "invalid" ; then
3802		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-odlocales" >&5
3803echo "$as_me: error: bad value $enableval for --enable-odlocales" >&2;}
3804   { (exit 1); exit 1; }; }
3805	fi
3806	ol_enable_odlocales="$ol_arg"
3807
3808else
3809  	ol_enable_odlocales=${ol_enable_overlays:-no}
3810fi
3811
3812# end --enable-odlocales
3813
3814# OpenLDAP --enable-odusers
3815
3816	# Check whether --enable-odusers was given.
3817if test "${enable_odusers+set}" = set; then
3818  enableval=$enable_odusers;
3819	ol_arg=invalid
3820	for ol_val in no yes mod ; do
3821		if test "$enableval" = "$ol_val" ; then
3822			ol_arg="$ol_val"
3823		fi
3824	done
3825	if test "$ol_arg" = "invalid" ; then
3826		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-odusers" >&5
3827echo "$as_me: error: bad value $enableval for --enable-odusers" >&2;}
3828   { (exit 1); exit 1; }; }
3829	fi
3830	ol_enable_odusers="$ol_arg"
3831
3832else
3833  	ol_enable_odusers=${ol_enable_overlays:-no}
3834fi
3835
3836# end --enable-odusers
3837
3838# OpenLDAP --enable-constraint
3839
3840	# Check whether --enable-constraint was given.
3841if test "${enable_constraint+set}" = set; then
3842  enableval=$enable_constraint;
3843	ol_arg=invalid
3844	for ol_val in no yes mod ; do
3845		if test "$enableval" = "$ol_val" ; then
3846			ol_arg="$ol_val"
3847		fi
3848	done
3849	if test "$ol_arg" = "invalid" ; then
3850		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3851echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3852   { (exit 1); exit 1; }; }
3853	fi
3854	ol_enable_constraint="$ol_arg"
3855
3856else
3857  	ol_enable_constraint=${ol_enable_overlays:-no}
3858fi
3859
3860# end --enable-constraint
3861
3862# OpenLDAP --enable-dds
3863
3864	# Check whether --enable-dds was given.
3865if test "${enable_dds+set}" = set; then
3866  enableval=$enable_dds;
3867	ol_arg=invalid
3868	for ol_val in no yes mod ; do
3869		if test "$enableval" = "$ol_val" ; then
3870			ol_arg="$ol_val"
3871		fi
3872	done
3873	if test "$ol_arg" = "invalid" ; then
3874		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3875echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3876   { (exit 1); exit 1; }; }
3877	fi
3878	ol_enable_dds="$ol_arg"
3879
3880else
3881  	ol_enable_dds=${ol_enable_overlays:-no}
3882fi
3883
3884# end --enable-dds
3885
3886# OpenLDAP --enable-deref
3887
3888	# Check whether --enable-deref was given.
3889if test "${enable_deref+set}" = set; then
3890  enableval=$enable_deref;
3891	ol_arg=invalid
3892	for ol_val in no yes mod ; do
3893		if test "$enableval" = "$ol_val" ; then
3894			ol_arg="$ol_val"
3895		fi
3896	done
3897	if test "$ol_arg" = "invalid" ; then
3898		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3899echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3900   { (exit 1); exit 1; }; }
3901	fi
3902	ol_enable_deref="$ol_arg"
3903
3904else
3905  	ol_enable_deref=${ol_enable_overlays:-no}
3906fi
3907
3908# end --enable-deref
3909
3910# OpenLDAP --enable-dyngroup
3911
3912	# Check whether --enable-dyngroup was given.
3913if test "${enable_dyngroup+set}" = set; then
3914  enableval=$enable_dyngroup;
3915	ol_arg=invalid
3916	for ol_val in no yes mod ; do
3917		if test "$enableval" = "$ol_val" ; then
3918			ol_arg="$ol_val"
3919		fi
3920	done
3921	if test "$ol_arg" = "invalid" ; then
3922		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3923echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3924   { (exit 1); exit 1; }; }
3925	fi
3926	ol_enable_dyngroup="$ol_arg"
3927
3928else
3929  	ol_enable_dyngroup=${ol_enable_overlays:-no}
3930fi
3931
3932# end --enable-dyngroup
3933
3934# OpenLDAP --enable-nestedgroup
3935
3936	# Check whether --enable-nestedgroup was given.
3937if test "${enable_nestedgroup+set}" = set; then
3938  enableval=$enable_nestedgroup;
3939	ol_arg=invalid
3940	for ol_val in no yes mod ; do
3941		if test "$enableval" = "$ol_val" ; then
3942			ol_arg="$ol_val"
3943		fi
3944	done
3945	if test "$ol_arg" = "invalid" ; then
3946		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nestedgroup" >&5
3947echo "$as_me: error: bad value $enableval for --enable-nestedgroup" >&2;}
3948   { (exit 1); exit 1; }; }
3949	fi
3950	ol_enable_nestedgroup="$ol_arg"
3951
3952else
3953  	ol_enable_nestedgroup=${ol_enable_overlays:-no}
3954fi
3955
3956# end --enable-nestedgroup
3957
3958# OpenLDAP --enable-dynlist
3959
3960	# Check whether --enable-dynlist was given.
3961if test "${enable_dynlist+set}" = set; then
3962  enableval=$enable_dynlist;
3963	ol_arg=invalid
3964	for ol_val in no yes mod ; do
3965		if test "$enableval" = "$ol_val" ; then
3966			ol_arg="$ol_val"
3967		fi
3968	done
3969	if test "$ol_arg" = "invalid" ; then
3970		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3971echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3972   { (exit 1); exit 1; }; }
3973	fi
3974	ol_enable_dynlist="$ol_arg"
3975
3976else
3977  	ol_enable_dynlist=${ol_enable_overlays:-no}
3978fi
3979
3980# end --enable-dynlist
3981
3982# OpenLDAP --enable-memberof
3983
3984	# Check whether --enable-memberof was given.
3985if test "${enable_memberof+set}" = set; then
3986  enableval=$enable_memberof;
3987	ol_arg=invalid
3988	for ol_val in no yes mod ; do
3989		if test "$enableval" = "$ol_val" ; then
3990			ol_arg="$ol_val"
3991		fi
3992	done
3993	if test "$ol_arg" = "invalid" ; then
3994		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3995echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3996   { (exit 1); exit 1; }; }
3997	fi
3998	ol_enable_memberof="$ol_arg"
3999
4000else
4001  	ol_enable_memberof=${ol_enable_overlays:-no}
4002fi
4003
4004# end --enable-memberof
4005
4006# OpenLDAP --enable-ppolicy
4007
4008	# Check whether --enable-ppolicy was given.
4009if test "${enable_ppolicy+set}" = set; then
4010  enableval=$enable_ppolicy;
4011	ol_arg=invalid
4012	for ol_val in no yes mod ; do
4013		if test "$enableval" = "$ol_val" ; then
4014			ol_arg="$ol_val"
4015		fi
4016	done
4017	if test "$ol_arg" = "invalid" ; then
4018		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4019echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4020   { (exit 1); exit 1; }; }
4021	fi
4022	ol_enable_ppolicy="$ol_arg"
4023
4024else
4025  	ol_enable_ppolicy=${ol_enable_overlays:-no}
4026fi
4027
4028# end --enable-ppolicy
4029
4030# OpenLDAP --enable-proxycache
4031
4032	# Check whether --enable-proxycache was given.
4033if test "${enable_proxycache+set}" = set; then
4034  enableval=$enable_proxycache;
4035	ol_arg=invalid
4036	for ol_val in no yes mod ; do
4037		if test "$enableval" = "$ol_val" ; then
4038			ol_arg="$ol_val"
4039		fi
4040	done
4041	if test "$ol_arg" = "invalid" ; then
4042		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4043echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4044   { (exit 1); exit 1; }; }
4045	fi
4046	ol_enable_proxycache="$ol_arg"
4047
4048else
4049  	ol_enable_proxycache=${ol_enable_overlays:-no}
4050fi
4051
4052# end --enable-proxycache
4053
4054# OpenLDAP --enable-refint
4055
4056	# Check whether --enable-refint was given.
4057if test "${enable_refint+set}" = set; then
4058  enableval=$enable_refint;
4059	ol_arg=invalid
4060	for ol_val in no yes mod ; do
4061		if test "$enableval" = "$ol_val" ; then
4062			ol_arg="$ol_val"
4063		fi
4064	done
4065	if test "$ol_arg" = "invalid" ; then
4066		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4067echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4068   { (exit 1); exit 1; }; }
4069	fi
4070	ol_enable_refint="$ol_arg"
4071
4072else
4073  	ol_enable_refint=${ol_enable_overlays:-no}
4074fi
4075
4076# end --enable-refint
4077
4078# OpenLDAP --enable-retcode
4079
4080	# Check whether --enable-retcode was given.
4081if test "${enable_retcode+set}" = set; then
4082  enableval=$enable_retcode;
4083	ol_arg=invalid
4084	for ol_val in no yes mod ; do
4085		if test "$enableval" = "$ol_val" ; then
4086			ol_arg="$ol_val"
4087		fi
4088	done
4089	if test "$ol_arg" = "invalid" ; then
4090		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4091echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4092   { (exit 1); exit 1; }; }
4093	fi
4094	ol_enable_retcode="$ol_arg"
4095
4096else
4097  	ol_enable_retcode=${ol_enable_overlays:-no}
4098fi
4099
4100# end --enable-retcode
4101
4102# OpenLDAP --enable-seqmod
4103
4104	# Check whether --enable-seqmod was given.
4105if test "${enable_seqmod+set}" = set; then
4106  enableval=$enable_seqmod;
4107	ol_arg=invalid
4108	for ol_val in no yes mod ; do
4109		if test "$enableval" = "$ol_val" ; then
4110			ol_arg="$ol_val"
4111		fi
4112	done
4113	if test "$ol_arg" = "invalid" ; then
4114		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4115echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4116   { (exit 1); exit 1; }; }
4117	fi
4118	ol_enable_seqmod="$ol_arg"
4119
4120else
4121  	ol_enable_seqmod=${ol_enable_overlays:-yes}
4122fi
4123
4124# end --enable-seqmod
4125
4126# OpenLDAP --enable-syncprov
4127
4128	# Check whether --enable-syncprov was given.
4129if test "${enable_syncprov+set}" = set; then
4130  enableval=$enable_syncprov;
4131	ol_arg=invalid
4132	for ol_val in no yes mod ; do
4133		if test "$enableval" = "$ol_val" ; then
4134			ol_arg="$ol_val"
4135		fi
4136	done
4137	if test "$ol_arg" = "invalid" ; then
4138		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4139echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4140   { (exit 1); exit 1; }; }
4141	fi
4142	ol_enable_syncprov="$ol_arg"
4143
4144else
4145  	ol_enable_syncprov=${ol_enable_overlays:-yes}
4146fi
4147
4148# end --enable-syncprov
4149
4150# OpenLDAP --enable-translucent
4151
4152	# Check whether --enable-translucent was given.
4153if test "${enable_translucent+set}" = set; then
4154  enableval=$enable_translucent;
4155	ol_arg=invalid
4156	for ol_val in no yes mod ; do
4157		if test "$enableval" = "$ol_val" ; then
4158			ol_arg="$ol_val"
4159		fi
4160	done
4161	if test "$ol_arg" = "invalid" ; then
4162		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4163echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4164   { (exit 1); exit 1; }; }
4165	fi
4166	ol_enable_translucent="$ol_arg"
4167
4168else
4169  	ol_enable_translucent=${ol_enable_overlays:-no}
4170fi
4171
4172# end --enable-translucent
4173
4174# OpenLDAP --enable-unique
4175
4176	# Check whether --enable-unique was given.
4177if test "${enable_unique+set}" = set; then
4178  enableval=$enable_unique;
4179	ol_arg=invalid
4180	for ol_val in no yes mod ; do
4181		if test "$enableval" = "$ol_val" ; then
4182			ol_arg="$ol_val"
4183		fi
4184	done
4185	if test "$ol_arg" = "invalid" ; then
4186		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4187echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4188   { (exit 1); exit 1; }; }
4189	fi
4190	ol_enable_unique="$ol_arg"
4191
4192else
4193  	ol_enable_unique=${ol_enable_overlays:-no}
4194fi
4195
4196# end --enable-unique
4197
4198# OpenLDAP --enable-valsort
4199
4200	# Check whether --enable-valsort was given.
4201if test "${enable_valsort+set}" = set; then
4202  enableval=$enable_valsort;
4203	ol_arg=invalid
4204	for ol_val in no yes mod ; do
4205		if test "$enableval" = "$ol_val" ; then
4206			ol_arg="$ol_val"
4207		fi
4208	done
4209	if test "$ol_arg" = "invalid" ; then
4210		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4211echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4212   { (exit 1); exit 1; }; }
4213	fi
4214	ol_enable_valsort="$ol_arg"
4215
4216else
4217  	ol_enable_valsort=${ol_enable_overlays:-no}
4218fi
4219
4220# end --enable-valsort
4221
4222
4223# Check whether --enable-xxliboptions was given.
4224if test "${enable_xxliboptions+set}" = set; then
4225  enableval=$enable_xxliboptions;
4226fi
4227
4228# Check whether --enable-static was given.
4229if test "${enable_static+set}" = set; then
4230  enableval=$enable_static; p=${PACKAGE-default}
4231    case $enableval in
4232    yes) enable_static=yes ;;
4233    no) enable_static=no ;;
4234    *)
4235     enable_static=no
4236      # Look at the argument we got.  We use all the common list separators.
4237      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4238      for pkg in $enableval; do
4239	IFS="$lt_save_ifs"
4240	if test "X$pkg" = "X$p"; then
4241	  enable_static=yes
4242	fi
4243      done
4244      IFS="$lt_save_ifs"
4245      ;;
4246    esac
4247else
4248  enable_static=yes
4249fi
4250
4251
4252# Check whether --enable-shared was given.
4253if test "${enable_shared+set}" = set; then
4254  enableval=$enable_shared; p=${PACKAGE-default}
4255    case $enableval in
4256    yes) enable_shared=yes ;;
4257    no) enable_shared=no ;;
4258    *)
4259      enable_shared=no
4260      # Look at the argument we got.  We use all the common list separators.
4261      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4262      for pkg in $enableval; do
4263	IFS="$lt_save_ifs"
4264	if test "X$pkg" = "X$p"; then
4265	  enable_shared=yes
4266	fi
4267      done
4268      IFS="$lt_save_ifs"
4269      ;;
4270    esac
4271else
4272  enable_shared=yes
4273fi
4274
4275
4276
4277
4278# validate options
4279if test $ol_enable_slapd = no ; then
4280		if test $ol_enable_slapi = yes ; then
4281		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4282echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4283	fi
4284	case "$ol_enable_backends" in yes | mod)
4285		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4286echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4287	esac
4288	for i in $Backends; do
4289		eval "ol_tmp=\$ol_enable_$i"
4290		if test $ol_tmp != no ; then
4291			{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4292echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4293			eval "ol_enable_$i=no"
4294		fi
4295	done
4296	if test $ol_enable_modules = yes ; then
4297		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4298echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4299	fi
4300	if test $ol_enable_wrappers = yes ; then
4301		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4302echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4303	fi
4304	if test $ol_enable_rlookups = yes ; then
4305		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4306echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4307	fi
4308	if test $ol_enable_dynacl = yes ; then
4309		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4310echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4311	fi
4312	if test $ol_enable_aci != no ; then
4313		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4314echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4315	fi
4316	if test $ol_enable_rewrite = yes ; then
4317		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4318echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4319	fi
4320		case "$ol_enable_overlays" in yes | mod)
4321		{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4322echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4323	esac
4324	for i in $Overlays; do
4325		eval "ol_tmp=\$ol_enable_$i"
4326		if test $ol_tmp != no ; then
4327			{ echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4328echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4329			eval "ol_enable_$i=no"
4330		fi
4331	done
4332
4333	# force settings to no
4334	ol_enable_slapi=no
4335
4336	ol_enable_backends=
4337	ol_enable_overlays=
4338	ol_enable_modules=no
4339	ol_enable_rlookups=no
4340	ol_enable_dynacl=no
4341	ol_enable_aci=no
4342	ol_enable_wrappers=no
4343
4344	ol_enable_rewrite=no
4345
4346elif test $ol_enable_modules != yes &&
4347	test $ol_enable_bdb = no &&
4348	test $ol_enable_dnssrv = no &&
4349	test $ol_enable_hdb = no &&
4350	test $ol_enable_ldap = no &&
4351	test $ol_enable_meta = no &&
4352	test $ol_enable_monitor = no &&
4353	test $ol_enable_null = no &&
4354	test $ol_enable_passwd = no &&
4355	test $ol_enable_perl = no &&
4356	test $ol_enable_relay = no &&
4357	test $ol_enable_shell = no &&
4358	test $ol_enable_sock = no &&
4359	test $ol_enable_sql = no ; then
4360
4361	if test $ol_enable_slapd = yes ; then
4362		{ { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4363echo "$as_me: error: slapd requires a backend" >&2;}
4364   { (exit 1); exit 1; }; }
4365	else
4366		{ echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4367echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4368		ol_enable_slapd=no
4369	fi
4370fi
4371
4372if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4373	{ { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4374echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4375   { (exit 1); exit 1; }; }
4376fi
4377
4378if test $ol_enable_lmpasswd = yes ; then
4379	if test $ol_with_tls = no ; then
4380		{ { echo "$as_me:$LINENO: error: LAN Manager passwords require TLS" >&5
4381echo "$as_me: error: LAN Manager passwords require TLS" >&2;}
4382   { (exit 1); exit 1; }; }
4383	fi
4384fi
4385
4386if test $ol_enable_spasswd = yes ; then
4387	if test $ol_with_cyrus_sasl = no ; then
4388		{ { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4389echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4390   { (exit 1); exit 1; }; }
4391	fi
4392	ol_with_cyrus_sasl=yes
4393fi
4394
4395{ echo "$as_me:$LINENO: result: done" >&5
4396echo "${ECHO_T}done" >&6; }
4397
4398LDAP_LIBS=
4399BDB_LIBS=
4400LTHREAD_LIBS=
4401LUTIL_LIBS=
4402
4403SLAPD_LIBS=
4404
4405BUILD_SLAPD=no
4406
4407BUILD_THREAD=no
4408
4409BUILD_SLAPI=no
4410SLAPD_SLAPI_DEPEND=
4411
4412BUILD_BDB=no
4413BUILD_DNSSRV=no
4414BUILD_HDB=no
4415BUILD_LDAP=no
4416BUILD_META=no
4417BUILD_MONITOR=no
4418BUILD_NULL=no
4419BUILD_PASSWD=no
4420BUILD_PERL=no
4421BUILD_RELAY=no
4422BUILD_SHELL=no
4423BUILD_SOCK=no
4424BUILD_SQL=no
4425
4426BUILD_ACCESSLOG=no
4427BUILD_DYNID=no
4428BUILD_ODLOCALES=no
4429BUILD_ODUSERS=no
4430BUILD_AUDITLOG=no
4431BUILD_CONSTRAINT=no
4432BUILD_DDS=no
4433BUILD_DENYOP=no
4434BUILD_DEREF=no
4435BUILD_DYNGROUP=no
4436BUILD_DYNLIST=no
4437BUILD_LASTMOD=no
4438BUILD_MEMBEROF=no
4439BUILD_PPOLICY=no
4440BUILD_PROXYCACHE=no
4441BUILD_REFINT=no
4442BUILD_RETCODE=no
4443BUILD_SEQMOD=no
4444BUILD_SYNCPROV=no
4445BUILD_TRANSLUCENT=no
4446BUILD_UNIQUE=no
4447BUILD_VALSORT=no
4448
4449SLAPD_STATIC_OVERLAYS=
4450SLAPD_DYNAMIC_OVERLAYS=
4451
4452SLAPD_MODULES_LDFLAGS=
4453SLAPD_MODULES_CPPFLAGS=
4454
4455SLAPD_STATIC_BACKENDS=back-ldif
4456SLAPD_DYNAMIC_BACKENDS=
4457
4458SLAPD_PERL_LDFLAGS=
4459MOD_PERL_LDFLAGS=
4460PERL_CPPFLAGS=
4461
4462SLAPD_SQL_LDFLAGS=
4463SLAPD_SQL_LIBS=
4464SLAPD_SQL_INCLUDES=
4465
4466KRB4_LIBS=
4467KRB5_LIBS=
4468SASL_LIBS=
4469TLS_LIBS=
4470MODULES_LIBS=
4471SLAPI_LIBS=
4472LIBSLAPI=
4473LIBSLAPITOOLS=
4474AUTH_LIBS=
4475ICU_LIBS=
4476
4477SLAPD_SLP_LIBS=
4478SLAPD_GMP_LIBS=
4479
4480
4481
4482cat >>confdefs.h <<\_ACEOF
4483#define HAVE_MKVERSION 1
4484_ACEOF
4485
4486
4487
4488
4489ol_aix_threads=no
4490case "$target" in
4491*-*-aix*) 	if test -z "$CC" ; then
4492		case "$ol_with_threads" in
4493		auto | yes |  posix) ol_aix_threads=yes ;;
4494		esac
4495	fi
4496;;
4497esac
4498
4499if test $ol_aix_threads = yes ; then
4500	if test -z "${CC}" ; then
4501		for ac_prog in cc_r xlc_r cc
4502do
4503  # Extract the first word of "$ac_prog", so it can be a program name with args.
4504set dummy $ac_prog; ac_word=$2
4505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507if test "${ac_cv_prog_CC+set}" = set; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510  if test -n "$CC"; then
4511  ac_cv_prog_CC="$CC" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518  for ac_exec_ext in '' $ac_executable_extensions; do
4519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520    ac_cv_prog_CC="$ac_prog"
4521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522    break 2
4523  fi
4524done
4525done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530CC=$ac_cv_prog_CC
4531if test -n "$CC"; then
4532  { echo "$as_me:$LINENO: result: $CC" >&5
4533echo "${ECHO_T}$CC" >&6; }
4534else
4535  { echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; }
4537fi
4538
4539
4540  test -n "$CC" && break
4541done
4542
4543
4544		if test "$CC" = cc ; then
4545						if test $ol_with_threads != auto ; then
4546				{ { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4547echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4548   { (exit 1); exit 1; }; }
4549			else
4550				{ echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4551echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4552			fi
4553			ol_with_threads=no
4554  		fi
4555	fi
4556
4557	case ${CC} in cc_r | xlc_r)
4558		ol_with_threads=posix
4559		ol_cv_pthread_create=yes
4560		;;
4561	esac
4562fi
4563
4564if test -z "${CC}"; then
4565	for ac_prog in cc gcc
4566do
4567  # Extract the first word of "$ac_prog", so it can be a program name with args.
4568set dummy $ac_prog; ac_word=$2
4569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571if test "${ac_cv_prog_CC+set}" = set; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  if test -n "$CC"; then
4575  ac_cv_prog_CC="$CC" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580  IFS=$as_save_IFS
4581  test -z "$as_dir" && as_dir=.
4582  for ac_exec_ext in '' $ac_executable_extensions; do
4583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584    ac_cv_prog_CC="$ac_prog"
4585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586    break 2
4587  fi
4588done
4589done
4590IFS=$as_save_IFS
4591
4592fi
4593fi
4594CC=$ac_cv_prog_CC
4595if test -n "$CC"; then
4596  { echo "$as_me:$LINENO: result: $CC" >&5
4597echo "${ECHO_T}$CC" >&6; }
4598else
4599  { echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6; }
4601fi
4602
4603
4604  test -n "$CC" && break
4605done
4606test -n "$CC" || CC="missing"
4607
4608
4609	if test "${CC}" = "missing" ; then
4610		{ { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4611echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4612   { (exit 1); exit 1; }; }
4613	fi
4614fi
4615
4616if test -z "${AR}"; then
4617	for ac_prog in ar gar
4618do
4619  # Extract the first word of "$ac_prog", so it can be a program name with args.
4620set dummy $ac_prog; ac_word=$2
4621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623if test "${ac_cv_prog_AR+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  if test -n "$AR"; then
4627  ac_cv_prog_AR="$AR" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for ac_exec_ext in '' $ac_executable_extensions; do
4635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636    ac_cv_prog_AR="$ac_prog"
4637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638    break 2
4639  fi
4640done
4641done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646AR=$ac_cv_prog_AR
4647if test -n "$AR"; then
4648  { echo "$as_me:$LINENO: result: $AR" >&5
4649echo "${ECHO_T}$AR" >&6; }
4650else
4651  { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653fi
4654
4655
4656  test -n "$AR" && break
4657done
4658test -n "$AR" || AR="missing"
4659
4660
4661	if test "${AR}" = "missing" ; then
4662		{ { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4663echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4664   { (exit 1); exit 1; }; }
4665	fi
4666fi
4667
4668
4669
4670
4671
4672# Check whether --enable-fast-install was given.
4673if test "${enable_fast_install+set}" = set; then
4674  enableval=$enable_fast_install; p=${PACKAGE-default}
4675    case $enableval in
4676    yes) enable_fast_install=yes ;;
4677    no) enable_fast_install=no ;;
4678    *)
4679      enable_fast_install=no
4680      # Look at the argument we got.  We use all the common list separators.
4681      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4682      for pkg in $enableval; do
4683	IFS="$lt_save_ifs"
4684	if test "X$pkg" = "X$p"; then
4685	  enable_fast_install=yes
4686	fi
4687      done
4688      IFS="$lt_save_ifs"
4689      ;;
4690    esac
4691else
4692  enable_fast_install=yes
4693fi
4694
4695
4696DEPDIR="${am__leading_dot}deps"
4697
4698ac_config_commands="$ac_config_commands depfiles"
4699
4700
4701am_make=${MAKE-make}
4702cat > confinc << 'END'
4703am__doit:
4704	@echo done
4705.PHONY: am__doit
4706END
4707# If we don't find an include directive, just comment out the code.
4708{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4709echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4710am__include="#"
4711am__quote=
4712_am_result=none
4713# First try GNU make style include.
4714echo "include confinc" > confmf
4715# We grep out `Entering directory' and `Leaving directory'
4716# messages which can occur if `w' ends up in MAKEFLAGS.
4717# In particular we don't look at `^make:' because GNU make might
4718# be invoked under some other name (usually "gmake"), in which
4719# case it prints its new name instead of `make'.
4720if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4721   am__include=include
4722   am__quote=
4723   _am_result=GNU
4724fi
4725# Now try BSD make style include.
4726if test "$am__include" = "#"; then
4727   echo '.include "confinc"' > confmf
4728   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4729      am__include=.include
4730      am__quote="\""
4731      _am_result=BSD
4732   fi
4733fi
4734
4735
4736{ echo "$as_me:$LINENO: result: $_am_result" >&5
4737echo "${ECHO_T}$_am_result" >&6; }
4738rm -f confinc confmf
4739
4740# Check whether --enable-dependency-tracking was given.
4741if test "${enable_dependency_tracking+set}" = set; then
4742  enableval=$enable_dependency_tracking;
4743fi
4744
4745if test "x$enable_dependency_tracking" != xno; then
4746  am_depcomp="$ac_aux_dir/depcomp"
4747  AMDEPBACKSLASH='\'
4748fi
4749
4750
4751if test "x$enable_dependency_tracking" != xno; then
4752  AMDEP_TRUE=
4753  AMDEP_FALSE='#'
4754else
4755  AMDEP_TRUE='#'
4756  AMDEP_FALSE=
4757fi
4758
4759
4760
4761ac_ext=c
4762ac_cpp='$CPP $CPPFLAGS'
4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766if test -n "$ac_tool_prefix"; then
4767  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4768set dummy ${ac_tool_prefix}gcc; ac_word=$2
4769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771if test "${ac_cv_prog_CC+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  if test -n "$CC"; then
4775  ac_cv_prog_CC="$CC" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782  for ac_exec_ext in '' $ac_executable_extensions; do
4783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786    break 2
4787  fi
4788done
4789done
4790IFS=$as_save_IFS
4791
4792fi
4793fi
4794CC=$ac_cv_prog_CC
4795if test -n "$CC"; then
4796  { echo "$as_me:$LINENO: result: $CC" >&5
4797echo "${ECHO_T}$CC" >&6; }
4798else
4799  { echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6; }
4801fi
4802
4803
4804fi
4805if test -z "$ac_cv_prog_CC"; then
4806  ac_ct_CC=$CC
4807  # Extract the first word of "gcc", so it can be a program name with args.
4808set dummy gcc; ac_word=$2
4809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4812  echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814  if test -n "$ac_ct_CC"; then
4815  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822  for ac_exec_ext in '' $ac_executable_extensions; do
4823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824    ac_cv_prog_ac_ct_CC="gcc"
4825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829done
4830IFS=$as_save_IFS
4831
4832fi
4833fi
4834ac_ct_CC=$ac_cv_prog_ac_ct_CC
4835if test -n "$ac_ct_CC"; then
4836  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4837echo "${ECHO_T}$ac_ct_CC" >&6; }
4838else
4839  { echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6; }
4841fi
4842
4843  if test "x$ac_ct_CC" = x; then
4844    CC=""
4845  else
4846    case $cross_compiling:$ac_tool_warned in
4847yes:)
4848{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4849whose name does not start with the host triplet.  If you think this
4850configuration is useful to you, please write to autoconf@gnu.org." >&5
4851echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4852whose name does not start with the host triplet.  If you think this
4853configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4854ac_tool_warned=yes ;;
4855esac
4856    CC=$ac_ct_CC
4857  fi
4858else
4859  CC="$ac_cv_prog_CC"
4860fi
4861
4862if test -z "$CC"; then
4863          if test -n "$ac_tool_prefix"; then
4864    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4865set dummy ${ac_tool_prefix}cc; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_prog_CC+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -n "$CC"; then
4872  ac_cv_prog_CC="$CC" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879  for ac_exec_ext in '' $ac_executable_extensions; do
4880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881    ac_cv_prog_CC="${ac_tool_prefix}cc"
4882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883    break 2
4884  fi
4885done
4886done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
4891CC=$ac_cv_prog_CC
4892if test -n "$CC"; then
4893  { echo "$as_me:$LINENO: result: $CC" >&5
4894echo "${ECHO_T}$CC" >&6; }
4895else
4896  { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
4898fi
4899
4900
4901  fi
4902fi
4903if test -z "$CC"; then
4904  # Extract the first word of "cc", so it can be a program name with args.
4905set dummy cc; ac_word=$2
4906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908if test "${ac_cv_prog_CC+set}" = set; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  if test -n "$CC"; then
4912  ac_cv_prog_CC="$CC" # Let the user override the test.
4913else
4914  ac_prog_rejected=no
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  test -z "$as_dir" && as_dir=.
4920  for ac_exec_ext in '' $ac_executable_extensions; do
4921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4923       ac_prog_rejected=yes
4924       continue
4925     fi
4926    ac_cv_prog_CC="cc"
4927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931done
4932IFS=$as_save_IFS
4933
4934if test $ac_prog_rejected = yes; then
4935  # We found a bogon in the path, so make sure we never use it.
4936  set dummy $ac_cv_prog_CC
4937  shift
4938  if test $# != 0; then
4939    # We chose a different compiler from the bogus one.
4940    # However, it has the same basename, so the bogon will be chosen
4941    # first if we set CC to just the basename; use the full file name.
4942    shift
4943    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4944  fi
4945fi
4946fi
4947fi
4948CC=$ac_cv_prog_CC
4949if test -n "$CC"; then
4950  { echo "$as_me:$LINENO: result: $CC" >&5
4951echo "${ECHO_T}$CC" >&6; }
4952else
4953  { echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6; }
4955fi
4956
4957
4958fi
4959if test -z "$CC"; then
4960  if test -n "$ac_tool_prefix"; then
4961  for ac_prog in cl.exe
4962  do
4963    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4964set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967if test "${ac_cv_prog_CC+set}" = set; then
4968  echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970  if test -n "$CC"; then
4971  ac_cv_prog_CC="$CC" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978  for ac_exec_ext in '' $ac_executable_extensions; do
4979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982    break 2
4983  fi
4984done
4985done
4986IFS=$as_save_IFS
4987
4988fi
4989fi
4990CC=$ac_cv_prog_CC
4991if test -n "$CC"; then
4992  { echo "$as_me:$LINENO: result: $CC" >&5
4993echo "${ECHO_T}$CC" >&6; }
4994else
4995  { echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6; }
4997fi
4998
4999
5000    test -n "$CC" && break
5001  done
5002fi
5003if test -z "$CC"; then
5004  ac_ct_CC=$CC
5005  for ac_prog in cl.exe
5006do
5007  # Extract the first word of "$ac_prog", so it can be a program name with args.
5008set dummy $ac_prog; ac_word=$2
5009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5012  echo $ECHO_N "(cached) $ECHO_C" >&6
5013else
5014  if test -n "$ac_ct_CC"; then
5015  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022  for ac_exec_ext in '' $ac_executable_extensions; do
5023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024    ac_cv_prog_ac_ct_CC="$ac_prog"
5025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029done
5030IFS=$as_save_IFS
5031
5032fi
5033fi
5034ac_ct_CC=$ac_cv_prog_ac_ct_CC
5035if test -n "$ac_ct_CC"; then
5036  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5037echo "${ECHO_T}$ac_ct_CC" >&6; }
5038else
5039  { echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6; }
5041fi
5042
5043
5044  test -n "$ac_ct_CC" && break
5045done
5046
5047  if test "x$ac_ct_CC" = x; then
5048    CC=""
5049  else
5050    case $cross_compiling:$ac_tool_warned in
5051yes:)
5052{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5053whose name does not start with the host triplet.  If you think this
5054configuration is useful to you, please write to autoconf@gnu.org." >&5
5055echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5056whose name does not start with the host triplet.  If you think this
5057configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5058ac_tool_warned=yes ;;
5059esac
5060    CC=$ac_ct_CC
5061  fi
5062fi
5063
5064fi
5065
5066
5067test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5068See \`config.log' for more details." >&5
5069echo "$as_me: error: no acceptable C compiler found in \$PATH
5070See \`config.log' for more details." >&2;}
5071   { (exit 1); exit 1; }; }
5072
5073# Provide some information about the compiler.
5074echo "$as_me:$LINENO: checking for C compiler version" >&5
5075ac_compiler=`set X $ac_compile; echo $2`
5076{ (ac_try="$ac_compiler --version >&5"
5077case "(($ac_try" in
5078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079  *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082  (eval "$ac_compiler --version >&5") 2>&5
5083  ac_status=$?
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); }
5086{ (ac_try="$ac_compiler -v >&5"
5087case "(($ac_try" in
5088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089  *) ac_try_echo=$ac_try;;
5090esac
5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092  (eval "$ac_compiler -v >&5") 2>&5
5093  ac_status=$?
5094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095  (exit $ac_status); }
5096{ (ac_try="$ac_compiler -V >&5"
5097case "(($ac_try" in
5098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099  *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102  (eval "$ac_compiler -V >&5") 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }
5106
5107cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h.  */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h.  */
5113
5114int
5115main ()
5116{
5117
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122ac_clean_files_save=$ac_clean_files
5123ac_clean_files="$ac_clean_files a.out a.exe b.out"
5124# Try to create an executable without -o first, disregard a.out.
5125# It will help us diagnose broken compilers, and finding out an intuition
5126# of exeext.
5127{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5128echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5129ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5130#
5131# List of possible output files, starting from the most likely.
5132# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5133# only as a last resort.  b.out is created by i960 compilers.
5134ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5135#
5136# The IRIX 6 linker writes into existing files which may not be
5137# executable, retaining their permissions.  Remove them first so a
5138# subsequent execution test works.
5139ac_rmfiles=
5140for ac_file in $ac_files
5141do
5142  case $ac_file in
5143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5144    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5145  esac
5146done
5147rm -f $ac_rmfiles
5148
5149if { (ac_try="$ac_link_default"
5150case "(($ac_try" in
5151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152  *) ac_try_echo=$ac_try;;
5153esac
5154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155  (eval "$ac_link_default") 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); }; then
5159  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5160# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5161# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5162# so that the user can short-circuit this test for compilers unknown to
5163# Autoconf.
5164for ac_file in $ac_files ''
5165do
5166  test -f "$ac_file" || continue
5167  case $ac_file in
5168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5169	;;
5170    [ab].out )
5171	# We found the default executable, but exeext='' is most
5172	# certainly right.
5173	break;;
5174    *.* )
5175        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5176	then :; else
5177	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5178	fi
5179	# We set ac_cv_exeext here because the later test for it is not
5180	# safe: cross compilers may not add the suffix if given an `-o'
5181	# argument, so we may need to know it at that point already.
5182	# Even if this section looks crufty: it has the advantage of
5183	# actually working.
5184	break;;
5185    * )
5186	break;;
5187  esac
5188done
5189test "$ac_cv_exeext" = no && ac_cv_exeext=
5190
5191else
5192  ac_file=''
5193fi
5194
5195{ echo "$as_me:$LINENO: result: $ac_file" >&5
5196echo "${ECHO_T}$ac_file" >&6; }
5197if test -z "$ac_file"; then
5198  echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
5202See \`config.log' for more details." >&5
5203echo "$as_me: error: C compiler cannot create executables
5204See \`config.log' for more details." >&2;}
5205   { (exit 77); exit 77; }; }
5206fi
5207
5208ac_exeext=$ac_cv_exeext
5209
5210# Check that the compiler produces executables we can run.  If not, either
5211# the compiler is broken, or we cross compile.
5212{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5213echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5215# If not cross compiling, check that we can run a simple program.
5216if test "$cross_compiling" != yes; then
5217  if { ac_try='./$ac_file'
5218  { (case "(($ac_try" in
5219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220  *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223  (eval "$ac_try") 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); }; }; then
5227    cross_compiling=no
5228  else
5229    if test "$cross_compiling" = maybe; then
5230	cross_compiling=yes
5231    else
5232	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5233If you meant to cross compile, use \`--host'.
5234See \`config.log' for more details." >&5
5235echo "$as_me: error: cannot run C compiled programs.
5236If you meant to cross compile, use \`--host'.
5237See \`config.log' for more details." >&2;}
5238   { (exit 1); exit 1; }; }
5239    fi
5240  fi
5241fi
5242{ echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6; }
5244
5245rm -f a.out a.exe conftest$ac_cv_exeext b.out
5246ac_clean_files=$ac_clean_files_save
5247# Check that the compiler produces executables we can run.  If not, either
5248# the compiler is broken, or we cross compile.
5249{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5250echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5251{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
5252echo "${ECHO_T}$cross_compiling" >&6; }
5253
5254{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
5255echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259  *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262  (eval "$ac_link") 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }; then
5266  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5267# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5268# work properly (i.e., refer to `conftest.exe'), while it won't with
5269# `rm'.
5270for ac_file in conftest.exe conftest conftest.*; do
5271  test -f "$ac_file" || continue
5272  case $ac_file in
5273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5274    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5275	  break;;
5276    * ) break;;
5277  esac
5278done
5279else
5280  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5281See \`config.log' for more details." >&5
5282echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5283See \`config.log' for more details." >&2;}
5284   { (exit 1); exit 1; }; }
5285fi
5286
5287rm -f conftest$ac_cv_exeext
5288{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5289echo "${ECHO_T}$ac_cv_exeext" >&6; }
5290
5291rm -f conftest.$ac_ext
5292EXEEXT=$ac_cv_exeext
5293ac_exeext=$EXEEXT
5294{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
5295echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5296if test "${ac_cv_objext+set}" = set; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299  cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h.  */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h.  */
5305
5306int
5307main ()
5308{
5309
5310  ;
5311  return 0;
5312}
5313_ACEOF
5314rm -f conftest.o conftest.obj
5315if { (ac_try="$ac_compile"
5316case "(($ac_try" in
5317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318  *) ac_try_echo=$ac_try;;
5319esac
5320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321  (eval "$ac_compile") 2>&5
5322  ac_status=$?
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); }; then
5325  for ac_file in conftest.o conftest.obj conftest.*; do
5326  test -f "$ac_file" || continue;
5327  case $ac_file in
5328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5330       break;;
5331  esac
5332done
5333else
5334  echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5338See \`config.log' for more details." >&5
5339echo "$as_me: error: cannot compute suffix of object files: cannot compile
5340See \`config.log' for more details." >&2;}
5341   { (exit 1); exit 1; }; }
5342fi
5343
5344rm -f conftest.$ac_cv_objext conftest.$ac_ext
5345fi
5346{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5347echo "${ECHO_T}$ac_cv_objext" >&6; }
5348OBJEXT=$ac_cv_objext
5349ac_objext=$OBJEXT
5350{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5352if test "${ac_cv_c_compiler_gnu+set}" = set; then
5353  echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355  cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h.  */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h.  */
5361
5362int
5363main ()
5364{
5365#ifndef __GNUC__
5366       choke me
5367#endif
5368
5369  ;
5370  return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (ac_try="$ac_compile"
5375case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380  (eval "$ac_compile") 2>conftest.er1
5381  ac_status=$?
5382  grep -v '^ *+' conftest.er1 >conftest.err
5383  rm -f conftest.er1
5384  cat conftest.err >&5
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); } && {
5387	 test -z "$ac_c_werror_flag" ||
5388	 test ! -s conftest.err
5389       } && test -s conftest.$ac_objext; then
5390  ac_compiler_gnu=yes
5391else
5392  echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395	ac_compiler_gnu=no
5396fi
5397
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399ac_cv_c_compiler_gnu=$ac_compiler_gnu
5400
5401fi
5402{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5404GCC=`test $ac_compiler_gnu = yes && echo yes`
5405ac_test_CFLAGS=${CFLAGS+set}
5406ac_save_CFLAGS=$CFLAGS
5407{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_cc_g+set}" = set; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  ac_save_c_werror_flag=$ac_c_werror_flag
5413   ac_c_werror_flag=yes
5414   ac_cv_prog_cc_g=no
5415   CFLAGS="-g"
5416   cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422
5423int
5424main ()
5425{
5426
5427  ;
5428  return 0;
5429}
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (ac_try="$ac_compile"
5433case "(($ac_try" in
5434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435  *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438  (eval "$ac_compile") 2>conftest.er1
5439  ac_status=$?
5440  grep -v '^ *+' conftest.er1 >conftest.err
5441  rm -f conftest.er1
5442  cat conftest.err >&5
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); } && {
5445	 test -z "$ac_c_werror_flag" ||
5446	 test ! -s conftest.err
5447       } && test -s conftest.$ac_objext; then
5448  ac_cv_prog_cc_g=yes
5449else
5450  echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453	CFLAGS=""
5454      cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h.  */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h.  */
5460
5461int
5462main ()
5463{
5464
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (ac_try="$ac_compile"
5471case "(($ac_try" in
5472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473  *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476  (eval "$ac_compile") 2>conftest.er1
5477  ac_status=$?
5478  grep -v '^ *+' conftest.er1 >conftest.err
5479  rm -f conftest.er1
5480  cat conftest.err >&5
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); } && {
5483	 test -z "$ac_c_werror_flag" ||
5484	 test ! -s conftest.err
5485       } && test -s conftest.$ac_objext; then
5486  :
5487else
5488  echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491	ac_c_werror_flag=$ac_save_c_werror_flag
5492	 CFLAGS="-g"
5493	 cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499
5500int
5501main ()
5502{
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508rm -f conftest.$ac_objext
5509if { (ac_try="$ac_compile"
5510case "(($ac_try" in
5511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512  *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515  (eval "$ac_compile") 2>conftest.er1
5516  ac_status=$?
5517  grep -v '^ *+' conftest.er1 >conftest.err
5518  rm -f conftest.er1
5519  cat conftest.err >&5
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); } && {
5522	 test -z "$ac_c_werror_flag" ||
5523	 test ! -s conftest.err
5524       } && test -s conftest.$ac_objext; then
5525  ac_cv_prog_cc_g=yes
5526else
5527  echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530
5531fi
5532
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537fi
5538
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540   ac_c_werror_flag=$ac_save_c_werror_flag
5541fi
5542{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5544if test "$ac_test_CFLAGS" = set; then
5545  CFLAGS=$ac_save_CFLAGS
5546elif test $ac_cv_prog_cc_g = yes; then
5547  if test "$GCC" = yes; then
5548    CFLAGS="-g -O2"
5549  else
5550    CFLAGS="-g"
5551  fi
5552else
5553  if test "$GCC" = yes; then
5554    CFLAGS="-O2"
5555  else
5556    CFLAGS=
5557  fi
5558fi
5559{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5560echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5561if test "${ac_cv_prog_cc_c89+set}" = set; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564  ac_cv_prog_cc_c89=no
5565ac_save_CC=$CC
5566cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572#include <stdarg.h>
5573#include <stdio.h>
5574#include <sys/types.h>
5575#include <sys/stat.h>
5576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5577struct buf { int x; };
5578FILE * (*rcsopen) (struct buf *, struct stat *, int);
5579static char *e (p, i)
5580     char **p;
5581     int i;
5582{
5583  return p[i];
5584}
5585static char *f (char * (*g) (char **, int), char **p, ...)
5586{
5587  char *s;
5588  va_list v;
5589  va_start (v,p);
5590  s = g (p, va_arg (v,int));
5591  va_end (v);
5592  return s;
5593}
5594
5595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5596   function prototypes and stuff, but not '\xHH' hex character constants.
5597   These don't provoke an error unfortunately, instead are silently treated
5598   as 'x'.  The following induces an error, until -std is added to get
5599   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5600   array size at least.  It's necessary to write '\x00'==0 to get something
5601   that's true only with -std.  */
5602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5603
5604/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5605   inside strings and character constants.  */
5606#define FOO(x) 'x'
5607int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5608
5609int test (int i, double x);
5610struct s1 {int (*f) (int a);};
5611struct s2 {int (*f) (double a);};
5612int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5613int argc;
5614char **argv;
5615int
5616main ()
5617{
5618return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5624	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5625do
5626  CC="$ac_save_CC $ac_arg"
5627  rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631  *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634  (eval "$ac_compile") 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } && {
5641	 test -z "$ac_c_werror_flag" ||
5642	 test ! -s conftest.err
5643       } && test -s conftest.$ac_objext; then
5644  ac_cv_prog_cc_c89=$ac_arg
5645else
5646  echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext
5653  test "x$ac_cv_prog_cc_c89" != "xno" && break
5654done
5655rm -f conftest.$ac_ext
5656CC=$ac_save_CC
5657
5658fi
5659# AC_CACHE_VAL
5660case "x$ac_cv_prog_cc_c89" in
5661  x)
5662    { echo "$as_me:$LINENO: result: none needed" >&5
5663echo "${ECHO_T}none needed" >&6; } ;;
5664  xno)
5665    { echo "$as_me:$LINENO: result: unsupported" >&5
5666echo "${ECHO_T}unsupported" >&6; } ;;
5667  *)
5668    CC="$CC $ac_cv_prog_cc_c89"
5669    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5670echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5671esac
5672
5673
5674ac_ext=c
5675ac_cpp='$CPP $CPPFLAGS'
5676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679
5680depcc="$CC"   am_compiler_list=
5681
5682{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5683echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5684if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5688  # We make a subdir and do the tests there.  Otherwise we can end up
5689  # making bogus files that we don't know about and never remove.  For
5690  # instance it was reported that on HP-UX the gcc test will end up
5691  # making a dummy file named `D' -- because `-MD' means `put the output
5692  # in D'.
5693  mkdir conftest.dir
5694  # Copy depcomp to subdir because otherwise we won't find it if we're
5695  # using a relative directory.
5696  cp "$am_depcomp" conftest.dir
5697  cd conftest.dir
5698  # We will build objects and dependencies in a subdirectory because
5699  # it helps to detect inapplicable dependency modes.  For instance
5700  # both Tru64's cc and ICC support -MD to output dependencies as a
5701  # side effect of compilation, but ICC will put the dependencies in
5702  # the current directory while Tru64 will put them in the object
5703  # directory.
5704  mkdir sub
5705
5706  am_cv_CC_dependencies_compiler_type=none
5707  if test "$am_compiler_list" = ""; then
5708     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5709  fi
5710  for depmode in $am_compiler_list; do
5711    # Setup a source with many dependencies, because some compilers
5712    # like to wrap large dependency lists on column 80 (with \), and
5713    # we should not choose a depcomp mode which is confused by this.
5714    #
5715    # We need to recreate these files for each test, as the compiler may
5716    # overwrite some of them when testing with obscure command lines.
5717    # This happens at least with the AIX C compiler.
5718    : > sub/conftest.c
5719    for i in 1 2 3 4 5 6; do
5720      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5721      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5722      # Solaris 8's {/usr,}/bin/sh.
5723      touch sub/conftst$i.h
5724    done
5725    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5726
5727    case $depmode in
5728    nosideeffect)
5729      # after this tag, mechanisms are not by side-effect, so they'll
5730      # only be used when explicitly requested
5731      if test "x$enable_dependency_tracking" = xyes; then
5732	continue
5733      else
5734	break
5735      fi
5736      ;;
5737    none) break ;;
5738    esac
5739    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5740    # mode.  It turns out that the SunPro C++ compiler does not properly
5741    # handle `-M -o', and we need to detect this.
5742    if depmode=$depmode \
5743       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5744       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5746         >/dev/null 2>conftest.err &&
5747       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5748       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5749       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5750      # icc doesn't choke on unknown options, it will just issue warnings
5751      # or remarks (even with -Werror).  So we grep stderr for any message
5752      # that says an option was ignored or not supported.
5753      # When given -MP, icc 7.0 and 7.1 complain thusly:
5754      #   icc: Command line warning: ignoring option '-M'; no argument required
5755      # The diagnosis changed in icc 8.0:
5756      #   icc: Command line remark: option '-MP' not supported
5757      if (grep 'ignoring option' conftest.err ||
5758          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5759        am_cv_CC_dependencies_compiler_type=$depmode
5760        break
5761      fi
5762    fi
5763  done
5764
5765  cd ..
5766  rm -rf conftest.dir
5767else
5768  am_cv_CC_dependencies_compiler_type=none
5769fi
5770
5771fi
5772{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5773echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5774CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5775
5776
5777
5778if
5779  test "x$enable_dependency_tracking" != xno \
5780  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5781  am__fastdepCC_TRUE=
5782  am__fastdepCC_FALSE='#'
5783else
5784  am__fastdepCC_TRUE='#'
5785  am__fastdepCC_FALSE=
5786fi
5787
5788
5789{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5790echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5791if test "${lt_cv_path_SED+set}" = set; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  # Loop through the user's path and test for sed and gsed.
5795# Then use that list of sed's as ones to test for truncation.
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799  IFS=$as_save_IFS
5800  test -z "$as_dir" && as_dir=.
5801  for lt_ac_prog in sed gsed; do
5802    for ac_exec_ext in '' $ac_executable_extensions; do
5803      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5804        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5805      fi
5806    done
5807  done
5808done
5809lt_ac_max=0
5810lt_ac_count=0
5811# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5812# along with /bin/sed that truncates output.
5813for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5814  test ! -f $lt_ac_sed && continue
5815  cat /dev/null > conftest.in
5816  lt_ac_count=0
5817  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5818  # Check for GNU sed and select it if it is found.
5819  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5820    lt_cv_path_SED=$lt_ac_sed
5821    break
5822  fi
5823  while true; do
5824    cat conftest.in conftest.in >conftest.tmp
5825    mv conftest.tmp conftest.in
5826    cp conftest.in conftest.nl
5827    echo >>conftest.nl
5828    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5829    cmp -s conftest.out conftest.nl || break
5830    # 10000 chars as input seems more than enough
5831    test $lt_ac_count -gt 10 && break
5832    lt_ac_count=`expr $lt_ac_count + 1`
5833    if test $lt_ac_count -gt $lt_ac_max; then
5834      lt_ac_max=$lt_ac_count
5835      lt_cv_path_SED=$lt_ac_sed
5836    fi
5837  done
5838done
5839
5840fi
5841
5842SED=$lt_cv_path_SED
5843{ echo "$as_me:$LINENO: result: $SED" >&5
5844echo "${ECHO_T}$SED" >&6; }
5845
5846{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5847echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5848if test "${ac_cv_path_GREP+set}" = set; then
5849  echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851  # Extract the first word of "grep ggrep" to use in msg output
5852if test -z "$GREP"; then
5853set dummy grep ggrep; ac_prog_name=$2
5854if test "${ac_cv_path_GREP+set}" = set; then
5855  echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857  ac_path_GREP_found=false
5858# Loop through the user's path and test for each of PROGNAME-LIST
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864  for ac_prog in grep ggrep; do
5865  for ac_exec_ext in '' $ac_executable_extensions; do
5866    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5867    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5868    # Check for GNU ac_path_GREP and select it if it is found.
5869  # Check for GNU $ac_path_GREP
5870case `"$ac_path_GREP" --version 2>&1` in
5871*GNU*)
5872  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5873*)
5874  ac_count=0
5875  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5876  while :
5877  do
5878    cat "conftest.in" "conftest.in" >"conftest.tmp"
5879    mv "conftest.tmp" "conftest.in"
5880    cp "conftest.in" "conftest.nl"
5881    echo 'GREP' >> "conftest.nl"
5882    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5883    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5884    ac_count=`expr $ac_count + 1`
5885    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5886      # Best one so far, save it but keep looking for a better one
5887      ac_cv_path_GREP="$ac_path_GREP"
5888      ac_path_GREP_max=$ac_count
5889    fi
5890    # 10*(2^10) chars as input seems more than enough
5891    test $ac_count -gt 10 && break
5892  done
5893  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5894esac
5895
5896
5897    $ac_path_GREP_found && break 3
5898  done
5899done
5900
5901done
5902IFS=$as_save_IFS
5903
5904
5905fi
5906
5907GREP="$ac_cv_path_GREP"
5908if test -z "$GREP"; then
5909  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5910echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5911   { (exit 1); exit 1; }; }
5912fi
5913
5914else
5915  ac_cv_path_GREP=$GREP
5916fi
5917
5918
5919fi
5920{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5921echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5922 GREP="$ac_cv_path_GREP"
5923
5924
5925{ echo "$as_me:$LINENO: checking for egrep" >&5
5926echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5927if test "${ac_cv_path_EGREP+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5931   then ac_cv_path_EGREP="$GREP -E"
5932   else
5933     # Extract the first word of "egrep" to use in msg output
5934if test -z "$EGREP"; then
5935set dummy egrep; ac_prog_name=$2
5936if test "${ac_cv_path_EGREP+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  ac_path_EGREP_found=false
5940# Loop through the user's path and test for each of PROGNAME-LIST
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5943do
5944  IFS=$as_save_IFS
5945  test -z "$as_dir" && as_dir=.
5946  for ac_prog in egrep; do
5947  for ac_exec_ext in '' $ac_executable_extensions; do
5948    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5949    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5950    # Check for GNU ac_path_EGREP and select it if it is found.
5951  # Check for GNU $ac_path_EGREP
5952case `"$ac_path_EGREP" --version 2>&1` in
5953*GNU*)
5954  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5955*)
5956  ac_count=0
5957  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5958  while :
5959  do
5960    cat "conftest.in" "conftest.in" >"conftest.tmp"
5961    mv "conftest.tmp" "conftest.in"
5962    cp "conftest.in" "conftest.nl"
5963    echo 'EGREP' >> "conftest.nl"
5964    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966    ac_count=`expr $ac_count + 1`
5967    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5968      # Best one so far, save it but keep looking for a better one
5969      ac_cv_path_EGREP="$ac_path_EGREP"
5970      ac_path_EGREP_max=$ac_count
5971    fi
5972    # 10*(2^10) chars as input seems more than enough
5973    test $ac_count -gt 10 && break
5974  done
5975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976esac
5977
5978
5979    $ac_path_EGREP_found && break 3
5980  done
5981done
5982
5983done
5984IFS=$as_save_IFS
5985
5986
5987fi
5988
5989EGREP="$ac_cv_path_EGREP"
5990if test -z "$EGREP"; then
5991  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5992echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5993   { (exit 1); exit 1; }; }
5994fi
5995
5996else
5997  ac_cv_path_EGREP=$EGREP
5998fi
5999
6000
6001   fi
6002fi
6003{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6004echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6005 EGREP="$ac_cv_path_EGREP"
6006
6007
6008
6009# Check whether --with-gnu-ld was given.
6010if test "${with_gnu_ld+set}" = set; then
6011  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6012else
6013  with_gnu_ld=no
6014fi
6015
6016ac_prog=ld
6017if test "$GCC" = yes; then
6018  # Check if gcc -print-prog-name=ld gives a path.
6019  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6020echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6021  case $host in
6022  *-*-mingw*)
6023    # gcc leaves a trailing carriage return which upsets mingw
6024    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6025  *)
6026    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6027  esac
6028  case $ac_prog in
6029    # Accept absolute paths.
6030    [\\/]* | ?:[\\/]*)
6031      re_direlt='/[^/][^/]*/\.\./'
6032      # Canonicalize the pathname of ld
6033      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6034      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6035	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6036      done
6037      test -z "$LD" && LD="$ac_prog"
6038      ;;
6039  "")
6040    # If it fails, then pretend we aren't using GCC.
6041    ac_prog=ld
6042    ;;
6043  *)
6044    # If it is relative, then search for the first ld in PATH.
6045    with_gnu_ld=unknown
6046    ;;
6047  esac
6048elif test "$with_gnu_ld" = yes; then
6049  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6050echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6051else
6052  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6053echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6054fi
6055if test "${lt_cv_path_LD+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  if test -z "$LD"; then
6059  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6060  for ac_dir in $PATH; do
6061    IFS="$lt_save_ifs"
6062    test -z "$ac_dir" && ac_dir=.
6063    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6064      lt_cv_path_LD="$ac_dir/$ac_prog"
6065      # Check to see if the program is GNU ld.  I'd rather use --version,
6066      # but apparently some variants of GNU ld only accept -v.
6067      # Break only if it was the GNU/non-GNU ld that we prefer.
6068      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6069      *GNU* | *'with BFD'*)
6070	test "$with_gnu_ld" != no && break
6071	;;
6072      *)
6073	test "$with_gnu_ld" != yes && break
6074	;;
6075      esac
6076    fi
6077  done
6078  IFS="$lt_save_ifs"
6079else
6080  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6081fi
6082fi
6083
6084LD="$lt_cv_path_LD"
6085if test -n "$LD"; then
6086  { echo "$as_me:$LINENO: result: $LD" >&5
6087echo "${ECHO_T}$LD" >&6; }
6088else
6089  { echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6; }
6091fi
6092test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6093echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6094   { (exit 1); exit 1; }; }
6095{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6096echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6097if test "${lt_cv_prog_gnu_ld+set}" = set; then
6098  echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6101case `$LD -v 2>&1 </dev/null` in
6102*GNU* | *'with BFD'*)
6103  lt_cv_prog_gnu_ld=yes
6104  ;;
6105*)
6106  lt_cv_prog_gnu_ld=no
6107  ;;
6108esac
6109fi
6110{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6111echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6112with_gnu_ld=$lt_cv_prog_gnu_ld
6113
6114
6115{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6116echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6117if test "${lt_cv_ld_reload_flag+set}" = set; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120  lt_cv_ld_reload_flag='-r'
6121fi
6122{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6123echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6124reload_flag=$lt_cv_ld_reload_flag
6125case $reload_flag in
6126"" | " "*) ;;
6127*) reload_flag=" $reload_flag" ;;
6128esac
6129reload_cmds='$LD$reload_flag -o $output$reload_objs'
6130case $host_os in
6131  darwin*)
6132    if test "$GCC" = yes; then
6133      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6134    else
6135      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6136    fi
6137    ;;
6138esac
6139
6140{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6141echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6142if test "${lt_cv_path_NM+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  if test -n "$NM"; then
6146  # Let the user override the test.
6147  lt_cv_path_NM="$NM"
6148else
6149  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6150  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6151    IFS="$lt_save_ifs"
6152    test -z "$ac_dir" && ac_dir=.
6153    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6154    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6155      # Check to see if the nm accepts a BSD-compat flag.
6156      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6157      #   nm: unknown option "B" ignored
6158      # Tru64's nm complains that /dev/null is an invalid object file
6159      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6160      */dev/null* | *'Invalid file or object type'*)
6161	lt_cv_path_NM="$tmp_nm -B"
6162	break
6163        ;;
6164      *)
6165	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6166	*/dev/null*)
6167	  lt_cv_path_NM="$tmp_nm -p"
6168	  break
6169	  ;;
6170	*)
6171	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6172	  continue # so that we can try to find one that supports BSD flags
6173	  ;;
6174	esac
6175      esac
6176    fi
6177  done
6178  IFS="$lt_save_ifs"
6179  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6180fi
6181fi
6182{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6183echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6184NM="$lt_cv_path_NM"
6185
6186{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6187echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6188LN_S=$as_ln_s
6189if test "$LN_S" = "ln -s"; then
6190  { echo "$as_me:$LINENO: result: yes" >&5
6191echo "${ECHO_T}yes" >&6; }
6192else
6193  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6194echo "${ECHO_T}no, using $LN_S" >&6; }
6195fi
6196
6197{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6198echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6199if test "${lt_cv_deplibs_check_method+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  lt_cv_file_magic_cmd='$MAGIC_CMD'
6203lt_cv_file_magic_test_file=
6204lt_cv_deplibs_check_method='unknown'
6205# Need to set the preceding variable on all platforms that support
6206# interlibrary dependencies.
6207# 'none' -- dependencies not supported.
6208# `unknown' -- same as none, but documents that we really don't know.
6209# 'pass_all' -- all dependencies passed with no checks.
6210# 'test_compile' -- check by making test program.
6211# 'file_magic [[regex]]' -- check by looking for files in library path
6212# which responds to the $file_magic_cmd with a given extended regex.
6213# If you have `file' or equivalent on your system and you're not sure
6214# whether `pass_all' will *always* work, you probably want this one.
6215
6216case $host_os in
6217aix4* | aix5*)
6218  lt_cv_deplibs_check_method=pass_all
6219  ;;
6220
6221beos*)
6222  lt_cv_deplibs_check_method=pass_all
6223  ;;
6224
6225bsdi[45]*)
6226  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6227  lt_cv_file_magic_cmd='/usr/bin/file -L'
6228  lt_cv_file_magic_test_file=/shlib/libc.so
6229  ;;
6230
6231cygwin*)
6232  # func_win32_libid is a shell function defined in ltmain.sh
6233  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234  lt_cv_file_magic_cmd='func_win32_libid'
6235  ;;
6236
6237mingw* | pw32*)
6238  # Base MSYS/MinGW do not provide the 'file' command needed by
6239  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6240  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6241  lt_cv_file_magic_cmd='$OBJDUMP -f'
6242  ;;
6243
6244darwin* | rhapsody*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248freebsd* | kfreebsd*-gnu | dragonfly*)
6249  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6250    case $host_cpu in
6251    i*86 )
6252      # Not sure whether the presence of OpenBSD here was a mistake.
6253      # Let's accept both of them until this is cleared up.
6254      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6255      lt_cv_file_magic_cmd=/usr/bin/file
6256      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6257      ;;
6258    esac
6259  else
6260    lt_cv_deplibs_check_method=pass_all
6261  fi
6262  ;;
6263
6264gnu*)
6265  lt_cv_deplibs_check_method=pass_all
6266  ;;
6267
6268hpux10.20* | hpux11*)
6269  lt_cv_file_magic_cmd=/usr/bin/file
6270  case $host_cpu in
6271  ia64*)
6272    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6273    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6274    ;;
6275  hppa*64*)
6276    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]'
6277    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6278    ;;
6279  *)
6280    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6281    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6282    ;;
6283  esac
6284  ;;
6285
6286irix5* | irix6* | nonstopux*)
6287  case $LD in
6288  *-32|*"-32 ") libmagic=32-bit;;
6289  *-n32|*"-n32 ") libmagic=N32;;
6290  *-64|*"-64 ") libmagic=64-bit;;
6291  *) libmagic=never-match;;
6292  esac
6293  lt_cv_deplibs_check_method=pass_all
6294  ;;
6295
6296# This must be Linux ELF.
6297linux*)
6298  lt_cv_deplibs_check_method=pass_all
6299  ;;
6300
6301netbsd*)
6302  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304  else
6305    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6306  fi
6307  ;;
6308
6309newos6*)
6310  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6311  lt_cv_file_magic_cmd=/usr/bin/file
6312  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6313  ;;
6314
6315nto-qnx*)
6316  lt_cv_deplibs_check_method=unknown
6317  ;;
6318
6319openbsd*)
6320  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6322  else
6323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6324  fi
6325  ;;
6326
6327osf3* | osf4* | osf5*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331sco3.2v5*)
6332  lt_cv_deplibs_check_method=pass_all
6333  ;;
6334
6335solaris*)
6336  lt_cv_deplibs_check_method=pass_all
6337  ;;
6338
6339sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6340  case $host_vendor in
6341  motorola)
6342    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]'
6343    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6344    ;;
6345  ncr)
6346    lt_cv_deplibs_check_method=pass_all
6347    ;;
6348  sequent)
6349    lt_cv_file_magic_cmd='/bin/file'
6350    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6351    ;;
6352  sni)
6353    lt_cv_file_magic_cmd='/bin/file'
6354    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6355    lt_cv_file_magic_test_file=/lib/libc.so
6356    ;;
6357  siemens)
6358    lt_cv_deplibs_check_method=pass_all
6359    ;;
6360  esac
6361  ;;
6362
6363sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6364  lt_cv_deplibs_check_method=pass_all
6365  ;;
6366esac
6367
6368fi
6369{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6370echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6371file_magic_cmd=$lt_cv_file_magic_cmd
6372deplibs_check_method=$lt_cv_deplibs_check_method
6373test -z "$deplibs_check_method" && deplibs_check_method=unknown
6374
6375
6376
6377
6378# If no C compiler was specified, use CC.
6379LTCC=${LTCC-"$CC"}
6380
6381# Allow CC to be a program name with arguments.
6382compiler=$CC
6383
6384
6385# Check whether --enable-libtool-lock was given.
6386if test "${enable_libtool_lock+set}" = set; then
6387  enableval=$enable_libtool_lock;
6388fi
6389
6390test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6391
6392# Some flags need to be propagated to the compiler or linker for good
6393# libtool support.
6394case $host in
6395ia64-*-hpux*)
6396  # Find out which ABI we are using.
6397  echo 'int i;' > conftest.$ac_ext
6398  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399  (eval $ac_compile) 2>&5
6400  ac_status=$?
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); }; then
6403    case `/usr/bin/file conftest.$ac_objext` in
6404    *ELF-32*)
6405      HPUX_IA64_MODE="32"
6406      ;;
6407    *ELF-64*)
6408      HPUX_IA64_MODE="64"
6409      ;;
6410    esac
6411  fi
6412  rm -rf conftest*
6413  ;;
6414*-*-irix6*)
6415  # Find out which ABI we are using.
6416  echo '#line 6416 "configure"' > conftest.$ac_ext
6417  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418  (eval $ac_compile) 2>&5
6419  ac_status=$?
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); }; then
6422   if test "$lt_cv_prog_gnu_ld" = yes; then
6423    case `/usr/bin/file conftest.$ac_objext` in
6424    *32-bit*)
6425      LD="${LD-ld} -melf32bsmip"
6426      ;;
6427    *N32*)
6428      LD="${LD-ld} -melf32bmipn32"
6429      ;;
6430    *64-bit*)
6431      LD="${LD-ld} -melf64bmip"
6432      ;;
6433    esac
6434   else
6435    case `/usr/bin/file conftest.$ac_objext` in
6436    *32-bit*)
6437      LD="${LD-ld} -32"
6438      ;;
6439    *N32*)
6440      LD="${LD-ld} -n32"
6441      ;;
6442    *64-bit*)
6443      LD="${LD-ld} -64"
6444      ;;
6445    esac
6446   fi
6447  fi
6448  rm -rf conftest*
6449  ;;
6450
6451x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6452  # Find out which ABI we are using.
6453  echo 'int i;' > conftest.$ac_ext
6454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455  (eval $ac_compile) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; then
6459    case `/usr/bin/file conftest.o` in
6460    *32-bit*)
6461      case $host in
6462        x86_64-*linux*)
6463          LD="${LD-ld} -m elf_i386"
6464          ;;
6465        ppc64-*linux*|powerpc64-*linux*)
6466          LD="${LD-ld} -m elf32ppclinux"
6467          ;;
6468        s390x-*linux*)
6469          LD="${LD-ld} -m elf_s390"
6470          ;;
6471        sparc64-*linux*)
6472          LD="${LD-ld} -m elf32_sparc"
6473          ;;
6474      esac
6475      ;;
6476    *64-bit*)
6477      case $host in
6478        x86_64-*linux*)
6479          LD="${LD-ld} -m elf_x86_64"
6480          ;;
6481        ppc*-*linux*|powerpc*-*linux*)
6482          LD="${LD-ld} -m elf64ppc"
6483          ;;
6484        s390*-*linux*)
6485          LD="${LD-ld} -m elf64_s390"
6486          ;;
6487        sparc*-*linux*)
6488          LD="${LD-ld} -m elf64_sparc"
6489          ;;
6490      esac
6491      ;;
6492    esac
6493  fi
6494  rm -rf conftest*
6495  ;;
6496
6497*-*-sco3.2v5*)
6498  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499  SAVE_CFLAGS="$CFLAGS"
6500  CFLAGS="$CFLAGS -belf"
6501  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6502echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6503if test "${lt_cv_cc_needs_belf+set}" = set; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  ac_ext=c
6507ac_cpp='$CPP $CPPFLAGS'
6508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512     cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527rm -f conftest.$ac_objext conftest$ac_exeext
6528if { (ac_try="$ac_link"
6529case "(($ac_try" in
6530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531  *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534  (eval "$ac_link") 2>conftest.er1
6535  ac_status=$?
6536  grep -v '^ *+' conftest.er1 >conftest.err
6537  rm -f conftest.er1
6538  cat conftest.err >&5
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); } && {
6541	 test -z "$ac_c_werror_flag" ||
6542	 test ! -s conftest.err
6543       } && test -s conftest$ac_exeext &&
6544       $as_test_x conftest$ac_exeext; then
6545  lt_cv_cc_needs_belf=yes
6546else
6547  echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550	lt_cv_cc_needs_belf=no
6551fi
6552
6553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554      conftest$ac_exeext conftest.$ac_ext
6555     ac_ext=c
6556ac_cpp='$CPP $CPPFLAGS'
6557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561fi
6562{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6563echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6564  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6565    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6566    CFLAGS="$SAVE_CFLAGS"
6567  fi
6568  ;;
6569*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6570  if test -n "$ac_tool_prefix"; then
6571  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6576  echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578  if test -n "$DLLTOOL"; then
6579  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586  for ac_exec_ext in '' $ac_executable_extensions; do
6587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598DLLTOOL=$ac_cv_prog_DLLTOOL
6599if test -n "$DLLTOOL"; then
6600  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6601echo "${ECHO_T}$DLLTOOL" >&6; }
6602else
6603  { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_DLLTOOL"; then
6610  ac_ct_DLLTOOL=$DLLTOOL
6611  # Extract the first word of "dlltool", so it can be a program name with args.
6612set dummy dlltool; ac_word=$2
6613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6616  echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618  if test -n "$ac_ct_DLLTOOL"; then
6619  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626  for ac_exec_ext in '' $ac_executable_extensions; do
6627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6639if test -n "$ac_ct_DLLTOOL"; then
6640  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6641echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6642else
6643  { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
6645fi
6646
6647  if test "x$ac_ct_DLLTOOL" = x; then
6648    DLLTOOL="false"
6649  else
6650    case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653whose name does not start with the host triplet.  If you think this
6654configuration is useful to you, please write to autoconf@gnu.org." >&5
6655echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656whose name does not start with the host triplet.  If you think this
6657configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658ac_tool_warned=yes ;;
6659esac
6660    DLLTOOL=$ac_ct_DLLTOOL
6661  fi
6662else
6663  DLLTOOL="$ac_cv_prog_DLLTOOL"
6664fi
6665
6666  if test -n "$ac_tool_prefix"; then
6667  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6668set dummy ${ac_tool_prefix}as; ac_word=$2
6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_prog_AS+set}" = set; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674  if test -n "$AS"; then
6675  ac_cv_prog_AS="$AS" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682  for ac_exec_ext in '' $ac_executable_extensions; do
6683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684    ac_cv_prog_AS="${ac_tool_prefix}as"
6685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694AS=$ac_cv_prog_AS
6695if test -n "$AS"; then
6696  { echo "$as_me:$LINENO: result: $AS" >&5
6697echo "${ECHO_T}$AS" >&6; }
6698else
6699  { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704fi
6705if test -z "$ac_cv_prog_AS"; then
6706  ac_ct_AS=$AS
6707  # Extract the first word of "as", so it can be a program name with args.
6708set dummy as; ac_word=$2
6709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6712  echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714  if test -n "$ac_ct_AS"; then
6715  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722  for ac_exec_ext in '' $ac_executable_extensions; do
6723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724    ac_cv_prog_ac_ct_AS="as"
6725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726    break 2
6727  fi
6728done
6729done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734ac_ct_AS=$ac_cv_prog_ac_ct_AS
6735if test -n "$ac_ct_AS"; then
6736  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6737echo "${ECHO_T}$ac_ct_AS" >&6; }
6738else
6739  { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
6741fi
6742
6743  if test "x$ac_ct_AS" = x; then
6744    AS="false"
6745  else
6746    case $cross_compiling:$ac_tool_warned in
6747yes:)
6748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6749whose name does not start with the host triplet.  If you think this
6750configuration is useful to you, please write to autoconf@gnu.org." >&5
6751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6752whose name does not start with the host triplet.  If you think this
6753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6754ac_tool_warned=yes ;;
6755esac
6756    AS=$ac_ct_AS
6757  fi
6758else
6759  AS="$ac_cv_prog_AS"
6760fi
6761
6762  if test -n "$ac_tool_prefix"; then
6763  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6764set dummy ${ac_tool_prefix}objdump; ac_word=$2
6765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770  if test -n "$OBJDUMP"; then
6771  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776  IFS=$as_save_IFS
6777  test -z "$as_dir" && as_dir=.
6778  for ac_exec_ext in '' $ac_executable_extensions; do
6779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782    break 2
6783  fi
6784done
6785done
6786IFS=$as_save_IFS
6787
6788fi
6789fi
6790OBJDUMP=$ac_cv_prog_OBJDUMP
6791if test -n "$OBJDUMP"; then
6792  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6793echo "${ECHO_T}$OBJDUMP" >&6; }
6794else
6795  { echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6; }
6797fi
6798
6799
6800fi
6801if test -z "$ac_cv_prog_OBJDUMP"; then
6802  ac_ct_OBJDUMP=$OBJDUMP
6803  # Extract the first word of "objdump", so it can be a program name with args.
6804set dummy objdump; ac_word=$2
6805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6808  echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810  if test -n "$ac_ct_OBJDUMP"; then
6811  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816  IFS=$as_save_IFS
6817  test -z "$as_dir" && as_dir=.
6818  for ac_exec_ext in '' $ac_executable_extensions; do
6819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822    break 2
6823  fi
6824done
6825done
6826IFS=$as_save_IFS
6827
6828fi
6829fi
6830ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6831if test -n "$ac_ct_OBJDUMP"; then
6832  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6833echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6834else
6835  { echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6; }
6837fi
6838
6839  if test "x$ac_ct_OBJDUMP" = x; then
6840    OBJDUMP="false"
6841  else
6842    case $cross_compiling:$ac_tool_warned in
6843yes:)
6844{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6845whose name does not start with the host triplet.  If you think this
6846configuration is useful to you, please write to autoconf@gnu.org." >&5
6847echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6848whose name does not start with the host triplet.  If you think this
6849configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852    OBJDUMP=$ac_ct_OBJDUMP
6853  fi
6854else
6855  OBJDUMP="$ac_cv_prog_OBJDUMP"
6856fi
6857
6858  ;;
6859
6860esac
6861
6862need_locks="$enable_libtool_lock"
6863
6864
6865ac_ext=c
6866ac_cpp='$CPP $CPPFLAGS'
6867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6871echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6872# On Suns, sometimes $CPP names a directory.
6873if test -n "$CPP" && test -d "$CPP"; then
6874  CPP=
6875fi
6876if test -z "$CPP"; then
6877  if test "${ac_cv_prog_CPP+set}" = set; then
6878  echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880      # Double quotes because CPP needs to be expanded
6881    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6882    do
6883      ac_preproc_ok=false
6884for ac_c_preproc_warn_flag in '' yes
6885do
6886  # Use a header file that comes with gcc, so configuring glibc
6887  # with a fresh cross-compiler works.
6888  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889  # <limits.h> exists even on freestanding compilers.
6890  # On the NeXT, cc -E runs the code through the compiler's parser,
6891  # not just through cpp. "Syntax error" is here to catch this case.
6892  cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h.  */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h.  */
6898#ifdef __STDC__
6899# include <limits.h>
6900#else
6901# include <assert.h>
6902#endif
6903		     Syntax error
6904_ACEOF
6905if { (ac_try="$ac_cpp conftest.$ac_ext"
6906case "(($ac_try" in
6907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908  *) ac_try_echo=$ac_try;;
6909esac
6910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6912  ac_status=$?
6913  grep -v '^ *+' conftest.er1 >conftest.err
6914  rm -f conftest.er1
6915  cat conftest.err >&5
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); } >/dev/null && {
6918	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6919	 test ! -s conftest.err
6920       }; then
6921  :
6922else
6923  echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926  # Broken: fails on valid input.
6927continue
6928fi
6929
6930rm -f conftest.err conftest.$ac_ext
6931
6932  # OK, works on sane cases.  Now check whether nonexistent headers
6933  # can be detected and how.
6934  cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h.  */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h.  */
6940#include <ac_nonexistent.h>
6941_ACEOF
6942if { (ac_try="$ac_cpp conftest.$ac_ext"
6943case "(($ac_try" in
6944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945  *) ac_try_echo=$ac_try;;
6946esac
6947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } >/dev/null && {
6955	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6956	 test ! -s conftest.err
6957       }; then
6958  # Broken: success on invalid input.
6959continue
6960else
6961  echo "$as_me: failed program was:" >&5
6962sed 's/^/| /' conftest.$ac_ext >&5
6963
6964  # Passes both tests.
6965ac_preproc_ok=:
6966break
6967fi
6968
6969rm -f conftest.err conftest.$ac_ext
6970
6971done
6972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973rm -f conftest.err conftest.$ac_ext
6974if $ac_preproc_ok; then
6975  break
6976fi
6977
6978    done
6979    ac_cv_prog_CPP=$CPP
6980
6981fi
6982  CPP=$ac_cv_prog_CPP
6983else
6984  ac_cv_prog_CPP=$CPP
6985fi
6986{ echo "$as_me:$LINENO: result: $CPP" >&5
6987echo "${ECHO_T}$CPP" >&6; }
6988ac_preproc_ok=false
6989for ac_c_preproc_warn_flag in '' yes
6990do
6991  # Use a header file that comes with gcc, so configuring glibc
6992  # with a fresh cross-compiler works.
6993  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994  # <limits.h> exists even on freestanding compilers.
6995  # On the NeXT, cc -E runs the code through the compiler's parser,
6996  # not just through cpp. "Syntax error" is here to catch this case.
6997  cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003#ifdef __STDC__
7004# include <limits.h>
7005#else
7006# include <assert.h>
7007#endif
7008		     Syntax error
7009_ACEOF
7010if { (ac_try="$ac_cpp conftest.$ac_ext"
7011case "(($ac_try" in
7012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013  *) ac_try_echo=$ac_try;;
7014esac
7015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016  (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null && {
7023	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7024	 test ! -s conftest.err
7025       }; then
7026  :
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031  # Broken: fails on valid input.
7032continue
7033fi
7034
7035rm -f conftest.err conftest.$ac_ext
7036
7037  # OK, works on sane cases.  Now check whether nonexistent headers
7038  # can be detected and how.
7039  cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h.  */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h.  */
7045#include <ac_nonexistent.h>
7046_ACEOF
7047if { (ac_try="$ac_cpp conftest.$ac_ext"
7048case "(($ac_try" in
7049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050  *) ac_try_echo=$ac_try;;
7051esac
7052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7054  ac_status=$?
7055  grep -v '^ *+' conftest.er1 >conftest.err
7056  rm -f conftest.er1
7057  cat conftest.err >&5
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } >/dev/null && {
7060	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7061	 test ! -s conftest.err
7062       }; then
7063  # Broken: success on invalid input.
7064continue
7065else
7066  echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069  # Passes both tests.
7070ac_preproc_ok=:
7071break
7072fi
7073
7074rm -f conftest.err conftest.$ac_ext
7075
7076done
7077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7078rm -f conftest.err conftest.$ac_ext
7079if $ac_preproc_ok; then
7080  :
7081else
7082  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7083See \`config.log' for more details." >&5
7084echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7085See \`config.log' for more details." >&2;}
7086   { (exit 1); exit 1; }; }
7087fi
7088
7089ac_ext=c
7090ac_cpp='$CPP $CPPFLAGS'
7091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093ac_compiler_gnu=$ac_cv_c_compiler_gnu
7094
7095
7096{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7097echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7098if test "${ac_cv_header_stdc+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101  cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107#include <stdlib.h>
7108#include <stdarg.h>
7109#include <string.h>
7110#include <float.h>
7111
7112int
7113main ()
7114{
7115
7116  ;
7117  return 0;
7118}
7119_ACEOF
7120rm -f conftest.$ac_objext
7121if { (ac_try="$ac_compile"
7122case "(($ac_try" in
7123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124  *) ac_try_echo=$ac_try;;
7125esac
7126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127  (eval "$ac_compile") 2>conftest.er1
7128  ac_status=$?
7129  grep -v '^ *+' conftest.er1 >conftest.err
7130  rm -f conftest.er1
7131  cat conftest.err >&5
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); } && {
7134	 test -z "$ac_c_werror_flag" ||
7135	 test ! -s conftest.err
7136       } && test -s conftest.$ac_objext; then
7137  ac_cv_header_stdc=yes
7138else
7139  echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142	ac_cv_header_stdc=no
7143fi
7144
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146
7147if test $ac_cv_header_stdc = yes; then
7148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7149  cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h.  */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h.  */
7155#include <string.h>
7156
7157_ACEOF
7158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159  $EGREP "memchr" >/dev/null 2>&1; then
7160  :
7161else
7162  ac_cv_header_stdc=no
7163fi
7164rm -f -r conftest*
7165
7166fi
7167
7168if test $ac_cv_header_stdc = yes; then
7169  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7170  cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176#include <stdlib.h>
7177
7178_ACEOF
7179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180  $EGREP "free" >/dev/null 2>&1; then
7181  :
7182else
7183  ac_cv_header_stdc=no
7184fi
7185rm -f -r conftest*
7186
7187fi
7188
7189if test $ac_cv_header_stdc = yes; then
7190  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7191  if test "$cross_compiling" = yes; then
7192  :
7193else
7194  cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h.  */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h.  */
7200#include <ctype.h>
7201#include <stdlib.h>
7202#if ((' ' & 0x0FF) == 0x020)
7203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7205#else
7206# define ISLOWER(c) \
7207		   (('a' <= (c) && (c) <= 'i') \
7208		     || ('j' <= (c) && (c) <= 'r') \
7209		     || ('s' <= (c) && (c) <= 'z'))
7210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7211#endif
7212
7213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7214int
7215main ()
7216{
7217  int i;
7218  for (i = 0; i < 256; i++)
7219    if (XOR (islower (i), ISLOWER (i))
7220	|| toupper (i) != TOUPPER (i))
7221      return 2;
7222  return 0;
7223}
7224_ACEOF
7225rm -f conftest$ac_exeext
7226if { (ac_try="$ac_link"
7227case "(($ac_try" in
7228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229  *) ac_try_echo=$ac_try;;
7230esac
7231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232  (eval "$ac_link") 2>&5
7233  ac_status=$?
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7236  { (case "(($ac_try" in
7237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238  *) ac_try_echo=$ac_try;;
7239esac
7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241  (eval "$ac_try") 2>&5
7242  ac_status=$?
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); }; }; then
7245  :
7246else
7247  echo "$as_me: program exited with status $ac_status" >&5
7248echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251( exit $ac_status )
7252ac_cv_header_stdc=no
7253fi
7254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7255fi
7256
7257
7258fi
7259fi
7260{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7261echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7262if test $ac_cv_header_stdc = yes; then
7263
7264cat >>confdefs.h <<\_ACEOF
7265#define STDC_HEADERS 1
7266_ACEOF
7267
7268fi
7269
7270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7281		  inttypes.h stdint.h unistd.h
7282do
7283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7287  echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289  cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h.  */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h.  */
7295$ac_includes_default
7296
7297#include <$ac_header>
7298_ACEOF
7299rm -f conftest.$ac_objext
7300if { (ac_try="$ac_compile"
7301case "(($ac_try" in
7302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303  *) ac_try_echo=$ac_try;;
7304esac
7305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306  (eval "$ac_compile") 2>conftest.er1
7307  ac_status=$?
7308  grep -v '^ *+' conftest.er1 >conftest.err
7309  rm -f conftest.er1
7310  cat conftest.err >&5
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); } && {
7313	 test -z "$ac_c_werror_flag" ||
7314	 test ! -s conftest.err
7315       } && test -s conftest.$ac_objext; then
7316  eval "$as_ac_Header=yes"
7317else
7318  echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321	eval "$as_ac_Header=no"
7322fi
7323
7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325fi
7326ac_res=`eval echo '${'$as_ac_Header'}'`
7327	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7328echo "${ECHO_T}$ac_res" >&6; }
7329if test `eval echo '${'$as_ac_Header'}'` = yes; then
7330  cat >>confdefs.h <<_ACEOF
7331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7332_ACEOF
7333
7334fi
7335
7336done
7337
7338
7339
7340for ac_header in dlfcn.h
7341do
7342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7344  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348fi
7349ac_res=`eval echo '${'$as_ac_Header'}'`
7350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7351echo "${ECHO_T}$ac_res" >&6; }
7352else
7353  # Is the header compilable?
7354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7356cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h.  */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h.  */
7362$ac_includes_default
7363#include <$ac_header>
7364_ACEOF
7365rm -f conftest.$ac_objext
7366if { (ac_try="$ac_compile"
7367case "(($ac_try" in
7368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369  *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372  (eval "$ac_compile") 2>conftest.er1
7373  ac_status=$?
7374  grep -v '^ *+' conftest.er1 >conftest.err
7375  rm -f conftest.er1
7376  cat conftest.err >&5
7377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); } && {
7379	 test -z "$ac_c_werror_flag" ||
7380	 test ! -s conftest.err
7381       } && test -s conftest.$ac_objext; then
7382  ac_header_compiler=yes
7383else
7384  echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387	ac_header_compiler=no
7388fi
7389
7390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392echo "${ECHO_T}$ac_header_compiler" >&6; }
7393
7394# Is the header present?
7395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7397cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h.  */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h.  */
7403#include <$ac_header>
7404_ACEOF
7405if { (ac_try="$ac_cpp conftest.$ac_ext"
7406case "(($ac_try" in
7407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408  *) ac_try_echo=$ac_try;;
7409esac
7410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7412  ac_status=$?
7413  grep -v '^ *+' conftest.er1 >conftest.err
7414  rm -f conftest.er1
7415  cat conftest.err >&5
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); } >/dev/null && {
7418	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7419	 test ! -s conftest.err
7420       }; then
7421  ac_header_preproc=yes
7422else
7423  echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426  ac_header_preproc=no
7427fi
7428
7429rm -f conftest.err conftest.$ac_ext
7430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7431echo "${ECHO_T}$ac_header_preproc" >&6; }
7432
7433# So?  What about this header?
7434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7435  yes:no: )
7436    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7438    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7440    ac_header_preproc=yes
7441    ;;
7442  no:yes:* )
7443    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7445    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7446echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7447    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7449    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7450echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7453    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7455    ( cat <<\_ASBOX
7456## --------------------------------------------- ##
7457## Report this to <http://www.openldap.org/its/> ##
7458## --------------------------------------------- ##
7459_ASBOX
7460     ) | sed "s/^/$as_me: WARNING:     /" >&2
7461    ;;
7462esac
7463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468  eval "$as_ac_Header=\$ac_header_preproc"
7469fi
7470ac_res=`eval echo '${'$as_ac_Header'}'`
7471	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7472echo "${ECHO_T}$ac_res" >&6; }
7473
7474fi
7475if test `eval echo '${'$as_ac_Header'}'` = yes; then
7476  cat >>confdefs.h <<_ACEOF
7477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7478_ACEOF
7479
7480fi
7481
7482done
7483
7484
7485# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7486
7487# find the maximum length of command line arguments
7488{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7489echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7490if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493    i=0
7494  teststring="ABCD"
7495
7496  case $build_os in
7497  msdosdjgpp*)
7498    # On DJGPP, this test can blow up pretty badly due to problems in libc
7499    # (any single argument exceeding 2000 bytes causes a buffer overrun
7500    # during glob expansion).  Even if it were fixed, the result of this
7501    # check would be larger than it should be.
7502    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7503    ;;
7504
7505  gnu*)
7506    # Under GNU Hurd, this test is not required because there is
7507    # no limit to the length of command line arguments.
7508    # Libtool will interpret -1 as no limit whatsoever
7509    lt_cv_sys_max_cmd_len=-1;
7510    ;;
7511
7512  cygwin* | mingw*)
7513    # On Win9x/ME, this test blows up -- it succeeds, but takes
7514    # about 5 minutes as the teststring grows exponentially.
7515    # Worse, since 9x/ME are not pre-emptively multitasking,
7516    # you end up with a "frozen" computer, even though with patience
7517    # the test eventually succeeds (with a max line length of 256k).
7518    # Instead, let's just punt: use the minimum linelength reported by
7519    # all of the supported platforms: 8192 (on NT/2K/XP).
7520    lt_cv_sys_max_cmd_len=8192;
7521    ;;
7522
7523  amigaos*)
7524    # On AmigaOS with pdksh, this test takes hours, literally.
7525    # So we just punt and use a minimum line length of 8192.
7526    lt_cv_sys_max_cmd_len=8192;
7527    ;;
7528
7529  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7530    # This has been around since 386BSD, at least.  Likely further.
7531    if test -x /sbin/sysctl; then
7532      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7533    elif test -x /usr/sbin/sysctl; then
7534      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7535    else
7536      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7537    fi
7538    # And add a safety zone
7539    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7540    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7541    ;;
7542  osf*)
7543    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7544    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7545    # nice to cause kernel panics so lets avoid the loop below.
7546    # First set a reasonable default.
7547    lt_cv_sys_max_cmd_len=16384
7548    #
7549    if test -x /sbin/sysconfig; then
7550      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7551        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7552      esac
7553    fi
7554    ;;
7555  *)
7556    # If test is not a shell built-in, we'll probably end up computing a
7557    # maximum length that is only half of the actual maximum length, but
7558    # we can't tell.
7559    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7560    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7561	       = "XX$teststring") >/dev/null 2>&1 &&
7562	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7563	    lt_cv_sys_max_cmd_len=$new_result &&
7564	    test $i != 17 # 1/2 MB should be enough
7565    do
7566      i=`expr $i + 1`
7567      teststring=$teststring$teststring
7568    done
7569    teststring=
7570    # Add a significant safety factor because C++ compilers can tack on massive
7571    # amounts of additional arguments before passing them to the linker.
7572    # It appears as though 1/2 is a usable value.
7573    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7574    ;;
7575  esac
7576
7577fi
7578
7579if test -n $lt_cv_sys_max_cmd_len ; then
7580  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7581echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7582else
7583  { echo "$as_me:$LINENO: result: none" >&5
7584echo "${ECHO_T}none" >&6; }
7585fi
7586
7587
7588
7589
7590# Check for command to grab the raw symbol name followed by C symbol from nm.
7591{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7592echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7593if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7594  echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596
7597# These are sane defaults that work on at least a few old systems.
7598# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7599
7600# Character class describing NM global symbol codes.
7601symcode='[BCDEGRST]'
7602
7603# Regexp to match symbols that can be accessed directly from C.
7604sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7605
7606# Transform an extracted symbol line into a proper C declaration
7607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7608
7609# Transform an extracted symbol line into symbol name and symbol address
7610lt_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'"
7611
7612# Define system-specific variables.
7613case $host_os in
7614aix*)
7615  symcode='[BCDT]'
7616  ;;
7617cygwin* | mingw* | pw32*)
7618  symcode='[ABCDGISTW]'
7619  ;;
7620hpux*) # Its linker distinguishes data from code symbols
7621  if test "$host_cpu" = ia64; then
7622    symcode='[ABCDEGRST]'
7623  fi
7624  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7625  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'"
7626  ;;
7627linux*)
7628  if test "$host_cpu" = ia64; then
7629    symcode='[ABCDGIRSTW]'
7630    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7631    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'"
7632  fi
7633  ;;
7634irix* | nonstopux*)
7635  symcode='[BCDEGRST]'
7636  ;;
7637osf*)
7638  symcode='[BCDEGQRST]'
7639  ;;
7640solaris* | sysv5*)
7641  symcode='[BDRT]'
7642  ;;
7643sysv4)
7644  symcode='[DFNSTU]'
7645  ;;
7646esac
7647
7648# Handle CRLF in mingw tool chain
7649opt_cr=
7650case $build_os in
7651mingw*)
7652  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7653  ;;
7654esac
7655
7656# If we're using GNU nm, then use its standard symbol codes.
7657case `$NM -V 2>&1` in
7658*GNU* | *'with BFD'*)
7659  symcode='[ABCDGIRSTW]' ;;
7660esac
7661
7662# Try without a prefix undercore, then with it.
7663for ac_symprfx in "" "_"; do
7664
7665  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7666  symxfrm="\\1 $ac_symprfx\\2 \\2"
7667
7668  # Write the raw and C identifiers.
7669  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7670
7671  # Check to see that the pipe works correctly.
7672  pipe_works=no
7673
7674  rm -f conftest*
7675  cat > conftest.$ac_ext <<EOF
7676#ifdef __cplusplus
7677extern "C" {
7678#endif
7679char nm_test_var;
7680void nm_test_func(){}
7681#ifdef __cplusplus
7682}
7683#endif
7684int main(){nm_test_var='a';nm_test_func();return(0);}
7685EOF
7686
7687  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688  (eval $ac_compile) 2>&5
7689  ac_status=$?
7690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691  (exit $ac_status); }; then
7692    # Now try to grab the symbols.
7693    nlist=conftest.nm
7694    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7695  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7696  ac_status=$?
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); } && test -s "$nlist"; then
7699      # Try sorting and uniquifying the output.
7700      if sort "$nlist" | uniq > "$nlist"T; then
7701	mv -f "$nlist"T "$nlist"
7702      else
7703	rm -f "$nlist"T
7704      fi
7705
7706      # Make sure that we snagged all the symbols we need.
7707      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7708	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7709	  cat <<EOF > conftest.$ac_ext
7710#ifdef __cplusplus
7711extern "C" {
7712#endif
7713
7714EOF
7715	  # Now generate the symbol file.
7716	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7717
7718	  cat <<EOF >> conftest.$ac_ext
7719#if defined (__STDC__) && __STDC__
7720# define lt_ptr_t void *
7721#else
7722# define lt_ptr_t char *
7723# define const
7724#endif
7725
7726/* The mapping between symbol names and symbols. */
7727const struct {
7728  const char *name;
7729  lt_ptr_t address;
7730}
7731lt_preloaded_symbols[] =
7732{
7733EOF
7734	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7735	  cat <<\EOF >> conftest.$ac_ext
7736  {0, (lt_ptr_t) 0}
7737};
7738
7739#ifdef __cplusplus
7740}
7741#endif
7742EOF
7743	  # Now try linking the two files.
7744	  mv conftest.$ac_objext conftstm.$ac_objext
7745	  lt_save_LIBS="$LIBS"
7746	  lt_save_CFLAGS="$CFLAGS"
7747	  LIBS="conftstm.$ac_objext"
7748	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7749	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750  (eval $ac_link) 2>&5
7751  ac_status=$?
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7754	    pipe_works=yes
7755	  fi
7756	  LIBS="$lt_save_LIBS"
7757	  CFLAGS="$lt_save_CFLAGS"
7758	else
7759	  echo "cannot find nm_test_func in $nlist" >&5
7760	fi
7761      else
7762	echo "cannot find nm_test_var in $nlist" >&5
7763      fi
7764    else
7765      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7766    fi
7767  else
7768    echo "$progname: failed program was:" >&5
7769    cat conftest.$ac_ext >&5
7770  fi
7771  rm -f conftest* conftst*
7772
7773  # Do not use the global_symbol_pipe unless it works.
7774  if test "$pipe_works" = yes; then
7775    break
7776  else
7777    lt_cv_sys_global_symbol_pipe=
7778  fi
7779done
7780
7781fi
7782
7783if test -z "$lt_cv_sys_global_symbol_pipe"; then
7784  lt_cv_sys_global_symbol_to_cdecl=
7785fi
7786if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7787  { echo "$as_me:$LINENO: result: failed" >&5
7788echo "${ECHO_T}failed" >&6; }
7789else
7790  { echo "$as_me:$LINENO: result: ok" >&5
7791echo "${ECHO_T}ok" >&6; }
7792fi
7793
7794{ echo "$as_me:$LINENO: checking for objdir" >&5
7795echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7796if test "${lt_cv_objdir+set}" = set; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  rm -f .libs 2>/dev/null
7800mkdir .libs 2>/dev/null
7801if test -d .libs; then
7802  lt_cv_objdir=.libs
7803else
7804  # MS-DOS does not allow filenames that begin with a dot.
7805  lt_cv_objdir=_libs
7806fi
7807rmdir .libs 2>/dev/null
7808fi
7809{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7810echo "${ECHO_T}$lt_cv_objdir" >&6; }
7811objdir=$lt_cv_objdir
7812
7813
7814
7815
7816
7817case $host_os in
7818aix3*)
7819  # AIX sometimes has problems with the GCC collect2 program.  For some
7820  # reason, if we set the COLLECT_NAMES environment variable, the problems
7821  # vanish in a puff of smoke.
7822  if test "X${COLLECT_NAMES+set}" != Xset; then
7823    COLLECT_NAMES=
7824    export COLLECT_NAMES
7825  fi
7826  ;;
7827esac
7828
7829# Sed substitution that helps us do robust quoting.  It backslashifies
7830# metacharacters that are still active within double-quoted strings.
7831Xsed='sed -e 1s/^X//'
7832sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7833
7834# Same as above, but do not quote variable references.
7835double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7836
7837# Sed substitution to delay expansion of an escaped shell variable in a
7838# double_quote_subst'ed string.
7839delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7840
7841# Sed substitution to avoid accidental globbing in evaled expressions
7842no_glob_subst='s/\*/\\\*/g'
7843
7844# Constants:
7845rm="rm -f"
7846
7847# Global variables:
7848default_ofile=libtool
7849can_build_shared=yes
7850
7851# All known linkers require a `.a' archive for static linking (except MSVC,
7852# which needs '.lib').
7853libext=a
7854ltmain="$ac_aux_dir/ltmain.sh"
7855ofile="$default_ofile"
7856with_gnu_ld="$lt_cv_prog_gnu_ld"
7857
7858if test -n "$ac_tool_prefix"; then
7859  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7860set dummy ${ac_tool_prefix}ar; ac_word=$2
7861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_prog_AR+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  if test -n "$AR"; then
7867  ac_cv_prog_AR="$AR" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872  IFS=$as_save_IFS
7873  test -z "$as_dir" && as_dir=.
7874  for ac_exec_ext in '' $ac_executable_extensions; do
7875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876    ac_cv_prog_AR="${ac_tool_prefix}ar"
7877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878    break 2
7879  fi
7880done
7881done
7882IFS=$as_save_IFS
7883
7884fi
7885fi
7886AR=$ac_cv_prog_AR
7887if test -n "$AR"; then
7888  { echo "$as_me:$LINENO: result: $AR" >&5
7889echo "${ECHO_T}$AR" >&6; }
7890else
7891  { echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6; }
7893fi
7894
7895
7896fi
7897if test -z "$ac_cv_prog_AR"; then
7898  ac_ct_AR=$AR
7899  # Extract the first word of "ar", so it can be a program name with args.
7900set dummy ar; ac_word=$2
7901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7903if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7904  echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906  if test -n "$ac_ct_AR"; then
7907  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912  IFS=$as_save_IFS
7913  test -z "$as_dir" && as_dir=.
7914  for ac_exec_ext in '' $ac_executable_extensions; do
7915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916    ac_cv_prog_ac_ct_AR="ar"
7917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918    break 2
7919  fi
7920done
7921done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926ac_ct_AR=$ac_cv_prog_ac_ct_AR
7927if test -n "$ac_ct_AR"; then
7928  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7929echo "${ECHO_T}$ac_ct_AR" >&6; }
7930else
7931  { echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6; }
7933fi
7934
7935  if test "x$ac_ct_AR" = x; then
7936    AR="false"
7937  else
7938    case $cross_compiling:$ac_tool_warned in
7939yes:)
7940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7941whose name does not start with the host triplet.  If you think this
7942configuration is useful to you, please write to autoconf@gnu.org." >&5
7943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7944whose name does not start with the host triplet.  If you think this
7945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7946ac_tool_warned=yes ;;
7947esac
7948    AR=$ac_ct_AR
7949  fi
7950else
7951  AR="$ac_cv_prog_AR"
7952fi
7953
7954if test -n "$ac_tool_prefix"; then
7955  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7959if test "${ac_cv_prog_RANLIB+set}" = set; then
7960  echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962  if test -n "$RANLIB"; then
7963  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964else
7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968  IFS=$as_save_IFS
7969  test -z "$as_dir" && as_dir=.
7970  for ac_exec_ext in '' $ac_executable_extensions; do
7971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974    break 2
7975  fi
7976done
7977done
7978IFS=$as_save_IFS
7979
7980fi
7981fi
7982RANLIB=$ac_cv_prog_RANLIB
7983if test -n "$RANLIB"; then
7984  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7985echo "${ECHO_T}$RANLIB" >&6; }
7986else
7987  { echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6; }
7989fi
7990
7991
7992fi
7993if test -z "$ac_cv_prog_RANLIB"; then
7994  ac_ct_RANLIB=$RANLIB
7995  # Extract the first word of "ranlib", so it can be a program name with args.
7996set dummy ranlib; ac_word=$2
7997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8000  echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002  if test -n "$ac_ct_RANLIB"; then
8003  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8004else
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008  IFS=$as_save_IFS
8009  test -z "$as_dir" && as_dir=.
8010  for ac_exec_ext in '' $ac_executable_extensions; do
8011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012    ac_cv_prog_ac_ct_RANLIB="ranlib"
8013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014    break 2
8015  fi
8016done
8017done
8018IFS=$as_save_IFS
8019
8020fi
8021fi
8022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8023if test -n "$ac_ct_RANLIB"; then
8024  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8025echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8026else
8027  { echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6; }
8029fi
8030
8031  if test "x$ac_ct_RANLIB" = x; then
8032    RANLIB=":"
8033  else
8034    case $cross_compiling:$ac_tool_warned in
8035yes:)
8036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8037whose name does not start with the host triplet.  If you think this
8038configuration is useful to you, please write to autoconf@gnu.org." >&5
8039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8040whose name does not start with the host triplet.  If you think this
8041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8042ac_tool_warned=yes ;;
8043esac
8044    RANLIB=$ac_ct_RANLIB
8045  fi
8046else
8047  RANLIB="$ac_cv_prog_RANLIB"
8048fi
8049
8050if test -n "$ac_tool_prefix"; then
8051  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8052set dummy ${ac_tool_prefix}strip; ac_word=$2
8053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8055if test "${ac_cv_prog_STRIP+set}" = set; then
8056  echo $ECHO_N "(cached) $ECHO_C" >&6
8057else
8058  if test -n "$STRIP"; then
8059  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8060else
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064  IFS=$as_save_IFS
8065  test -z "$as_dir" && as_dir=.
8066  for ac_exec_ext in '' $ac_executable_extensions; do
8067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070    break 2
8071  fi
8072done
8073done
8074IFS=$as_save_IFS
8075
8076fi
8077fi
8078STRIP=$ac_cv_prog_STRIP
8079if test -n "$STRIP"; then
8080  { echo "$as_me:$LINENO: result: $STRIP" >&5
8081echo "${ECHO_T}$STRIP" >&6; }
8082else
8083  { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
8088fi
8089if test -z "$ac_cv_prog_STRIP"; then
8090  ac_ct_STRIP=$STRIP
8091  # Extract the first word of "strip", so it can be a program name with args.
8092set dummy strip; ac_word=$2
8093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8095if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8096  echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098  if test -n "$ac_ct_STRIP"; then
8099  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8100else
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104  IFS=$as_save_IFS
8105  test -z "$as_dir" && as_dir=.
8106  for ac_exec_ext in '' $ac_executable_extensions; do
8107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108    ac_cv_prog_ac_ct_STRIP="strip"
8109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110    break 2
8111  fi
8112done
8113done
8114IFS=$as_save_IFS
8115
8116fi
8117fi
8118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8119if test -n "$ac_ct_STRIP"; then
8120  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8121echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8122else
8123  { echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; }
8125fi
8126
8127  if test "x$ac_ct_STRIP" = x; then
8128    STRIP=":"
8129  else
8130    case $cross_compiling:$ac_tool_warned in
8131yes:)
8132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8133whose name does not start with the host triplet.  If you think this
8134configuration is useful to you, please write to autoconf@gnu.org." >&5
8135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8136whose name does not start with the host triplet.  If you think this
8137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8138ac_tool_warned=yes ;;
8139esac
8140    STRIP=$ac_ct_STRIP
8141  fi
8142else
8143  STRIP="$ac_cv_prog_STRIP"
8144fi
8145
8146
8147old_CC="$CC"
8148old_CFLAGS="$CFLAGS"
8149
8150# Set sane defaults for various variables
8151test -z "$AR" && AR=ar
8152test -z "$AR_FLAGS" && AR_FLAGS=cru
8153test -z "$AS" && AS=as
8154test -z "$CC" && CC=cc
8155test -z "$LTCC" && LTCC=$CC
8156test -z "$DLLTOOL" && DLLTOOL=dlltool
8157test -z "$LD" && LD=ld
8158test -z "$LN_S" && LN_S="ln -s"
8159test -z "$MAGIC_CMD" && MAGIC_CMD=file
8160test -z "$NM" && NM=nm
8161test -z "$SED" && SED=sed
8162test -z "$OBJDUMP" && OBJDUMP=objdump
8163test -z "$RANLIB" && RANLIB=:
8164test -z "$STRIP" && STRIP=:
8165test -z "$ac_objext" && ac_objext=o
8166
8167# Determine commands to create old-style static archives.
8168old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8169old_postinstall_cmds='chmod 644 $oldlib'
8170old_postuninstall_cmds=
8171
8172if test -n "$RANLIB"; then
8173  case $host_os in
8174  openbsd*)
8175    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8176    ;;
8177  *)
8178    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8179    ;;
8180  esac
8181  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8182fi
8183
8184for cc_temp in $compiler""; do
8185  case $cc_temp in
8186    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8187    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8188    \-*) ;;
8189    *) break;;
8190  esac
8191done
8192cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8193
8194
8195# Only perform the check for file, if the check method requires it
8196case $deplibs_check_method in
8197file_magic*)
8198  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8199    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8200echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8201if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8202  echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204  case $MAGIC_CMD in
8205[\\/*] |  ?:[\\/]*)
8206  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207  ;;
8208*)
8209  lt_save_MAGIC_CMD="$MAGIC_CMD"
8210  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212  for ac_dir in $ac_dummy; do
8213    IFS="$lt_save_ifs"
8214    test -z "$ac_dir" && ac_dir=.
8215    if test -f $ac_dir/${ac_tool_prefix}file; then
8216      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8217      if test -n "$file_magic_test_file"; then
8218	case $deplibs_check_method in
8219	"file_magic "*)
8220	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8221	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223	    $EGREP "$file_magic_regex" > /dev/null; then
8224	    :
8225	  else
8226	    cat <<EOF 1>&2
8227
8228*** Warning: the command libtool uses to detect shared libraries,
8229*** $file_magic_cmd, produces output that libtool cannot recognize.
8230*** The result is that libtool may fail to recognize shared libraries
8231*** as such.  This will affect the creation of libtool libraries that
8232*** depend on shared libraries, but programs linked with such libtool
8233*** libraries will work regardless of this problem.  Nevertheless, you
8234*** may want to report the problem to your system manager and/or to
8235*** bug-libtool@gnu.org
8236
8237EOF
8238	  fi ;;
8239	esac
8240      fi
8241      break
8242    fi
8243  done
8244  IFS="$lt_save_ifs"
8245  MAGIC_CMD="$lt_save_MAGIC_CMD"
8246  ;;
8247esac
8248fi
8249
8250MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251if test -n "$MAGIC_CMD"; then
8252  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8253echo "${ECHO_T}$MAGIC_CMD" >&6; }
8254else
8255  { echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6; }
8257fi
8258
8259if test -z "$lt_cv_path_MAGIC_CMD"; then
8260  if test -n "$ac_tool_prefix"; then
8261    { echo "$as_me:$LINENO: checking for file" >&5
8262echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8263if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8264  echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266  case $MAGIC_CMD in
8267[\\/*] |  ?:[\\/]*)
8268  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8269  ;;
8270*)
8271  lt_save_MAGIC_CMD="$MAGIC_CMD"
8272  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8273  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8274  for ac_dir in $ac_dummy; do
8275    IFS="$lt_save_ifs"
8276    test -z "$ac_dir" && ac_dir=.
8277    if test -f $ac_dir/file; then
8278      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8279      if test -n "$file_magic_test_file"; then
8280	case $deplibs_check_method in
8281	"file_magic "*)
8282	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8283	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8285	    $EGREP "$file_magic_regex" > /dev/null; then
8286	    :
8287	  else
8288	    cat <<EOF 1>&2
8289
8290*** Warning: the command libtool uses to detect shared libraries,
8291*** $file_magic_cmd, produces output that libtool cannot recognize.
8292*** The result is that libtool may fail to recognize shared libraries
8293*** as such.  This will affect the creation of libtool libraries that
8294*** depend on shared libraries, but programs linked with such libtool
8295*** libraries will work regardless of this problem.  Nevertheless, you
8296*** may want to report the problem to your system manager and/or to
8297*** bug-libtool@gnu.org
8298
8299EOF
8300	  fi ;;
8301	esac
8302      fi
8303      break
8304    fi
8305  done
8306  IFS="$lt_save_ifs"
8307  MAGIC_CMD="$lt_save_MAGIC_CMD"
8308  ;;
8309esac
8310fi
8311
8312MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313if test -n "$MAGIC_CMD"; then
8314  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8315echo "${ECHO_T}$MAGIC_CMD" >&6; }
8316else
8317  { echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6; }
8319fi
8320
8321  else
8322    MAGIC_CMD=:
8323  fi
8324fi
8325
8326  fi
8327  ;;
8328esac
8329
8330enable_dlopen=yes
8331enable_win32_dll=yes
8332
8333# Check whether --enable-libtool-lock was given.
8334if test "${enable_libtool_lock+set}" = set; then
8335  enableval=$enable_libtool_lock;
8336fi
8337
8338test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8339
8340
8341# Check whether --with-pic was given.
8342if test "${with_pic+set}" = set; then
8343  withval=$with_pic; pic_mode="$withval"
8344else
8345  pic_mode=default
8346fi
8347
8348test -z "$pic_mode" && pic_mode=default
8349
8350# Use C for the default configuration in the libtool script
8351tagname=
8352lt_save_CC="$CC"
8353ac_ext=c
8354ac_cpp='$CPP $CPPFLAGS'
8355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360# Source file extension for C test sources.
8361ac_ext=c
8362
8363# Object file extension for compiled C test sources.
8364objext=o
8365objext=$objext
8366
8367# Code to be used in simple compile tests
8368lt_simple_compile_test_code="int some_variable = 0;\n"
8369
8370# Code to be used in simple link tests
8371lt_simple_link_test_code='int main(){return(0);}\n'
8372
8373
8374# If no C compiler was specified, use CC.
8375LTCC=${LTCC-"$CC"}
8376
8377# Allow CC to be a program name with arguments.
8378compiler=$CC
8379
8380
8381# save warnings/boilerplate of simple test code
8382ac_outfile=conftest.$ac_objext
8383printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8384eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8385_lt_compiler_boilerplate=`cat conftest.err`
8386$rm conftest*
8387
8388ac_outfile=conftest.$ac_objext
8389printf "$lt_simple_link_test_code" >conftest.$ac_ext
8390eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8391_lt_linker_boilerplate=`cat conftest.err`
8392$rm conftest*
8393
8394
8395#
8396# Check for any special shared library compilation flags.
8397#
8398lt_prog_cc_shlib=
8399if test "$GCC" = no; then
8400  case $host_os in
8401  sco3.2v5*)
8402    lt_prog_cc_shlib='-belf'
8403    ;;
8404  esac
8405fi
8406if test -n "$lt_prog_cc_shlib"; then
8407  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8408echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8409  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
8410  else
8411    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8412echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8413    lt_cv_prog_cc_can_build_shared=no
8414  fi
8415fi
8416
8417
8418#
8419# Check to make sure the static flag actually works.
8420#
8421{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8422echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8423if test "${lt_prog_compiler_static_works+set}" = set; then
8424  echo $ECHO_N "(cached) $ECHO_C" >&6
8425else
8426  lt_prog_compiler_static_works=no
8427   save_LDFLAGS="$LDFLAGS"
8428   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8429   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8430   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8431     # The linker can only warn and ignore the option if not recognized
8432     # So say no if there are warnings
8433     if test -s conftest.err; then
8434       # Append any errors to the config.log.
8435       cat conftest.err 1>&5
8436       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8437       $SED '/^$/d' conftest.err >conftest.er2
8438       if diff conftest.exp conftest.er2 >/dev/null; then
8439         lt_prog_compiler_static_works=yes
8440       fi
8441     else
8442       lt_prog_compiler_static_works=yes
8443     fi
8444   fi
8445   $rm conftest*
8446   LDFLAGS="$save_LDFLAGS"
8447
8448fi
8449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8450echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8451
8452if test x"$lt_prog_compiler_static_works" = xyes; then
8453    :
8454else
8455    lt_prog_compiler_static=
8456fi
8457
8458
8459
8460
8461lt_prog_compiler_no_builtin_flag=
8462
8463if test "$GCC" = yes; then
8464  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8465
8466
8467{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8469if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8470  echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472  lt_cv_prog_compiler_rtti_exceptions=no
8473  ac_outfile=conftest.$ac_objext
8474   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8475   lt_compiler_flag="-fno-rtti -fno-exceptions"
8476   # Insert the option either (1) after the last *FLAGS variable, or
8477   # (2) before a word containing "conftest.", or (3) at the end.
8478   # Note that $ac_compile itself does not contain backslashes and begins
8479   # with a dollar sign (not a hyphen), so the echo should work correctly.
8480   # The option is referenced via a variable to avoid confusing sed.
8481   lt_compile=`echo "$ac_compile" | $SED \
8482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484   -e 's:$: $lt_compiler_flag:'`
8485   (eval echo "\"\$as_me:8485: $lt_compile\"" >&5)
8486   (eval "$lt_compile" 2>conftest.err)
8487   ac_status=$?
8488   cat conftest.err >&5
8489   echo "$as_me:8489: \$? = $ac_status" >&5
8490   if (exit $ac_status) && test -s "$ac_outfile"; then
8491     # The compiler can only warn and ignore the option if not recognized
8492     # So say no if there are warnings other than the usual output.
8493     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8494     $SED '/^$/d' conftest.err >conftest.er2
8495     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8496       lt_cv_prog_compiler_rtti_exceptions=yes
8497     fi
8498   fi
8499   $rm conftest*
8500
8501fi
8502{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8504
8505if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507else
8508    :
8509fi
8510
8511fi
8512
8513lt_prog_compiler_wl=
8514lt_prog_compiler_pic=
8515lt_prog_compiler_static=
8516
8517{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8518echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8519
8520  if test "$GCC" = yes; then
8521    lt_prog_compiler_wl='-Wl,'
8522    lt_prog_compiler_static='-static'
8523
8524    case $host_os in
8525      aix*)
8526      # All AIX code is PIC.
8527      if test "$host_cpu" = ia64; then
8528	# AIX 5 now supports IA64 processor
8529	lt_prog_compiler_static='-Bstatic'
8530      fi
8531      ;;
8532
8533    amigaos*)
8534      # FIXME: we need at least 68020 code to build shared libraries, but
8535      # adding the `-m68020' flag to GCC prevents building anything better,
8536      # like `-m68040'.
8537      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8538      ;;
8539
8540    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8541      # PIC is the default for these OSes.
8542      ;;
8543
8544    mingw* | pw32* | os2*)
8545      # This hack is so that the source file can tell whether it is being
8546      # built for inclusion in a dll (and should export symbols for example).
8547      lt_prog_compiler_pic='-DDLL_EXPORT'
8548      ;;
8549
8550    darwin* | rhapsody*)
8551      # PIC is the default on this platform
8552      # Common symbols not allowed in MH_DYLIB files
8553      lt_prog_compiler_pic='-fno-common'
8554      ;;
8555
8556    msdosdjgpp*)
8557      # Just because we use GCC doesn't mean we suddenly get shared libraries
8558      # on systems that don't support them.
8559      lt_prog_compiler_can_build_shared=no
8560      enable_shared=no
8561      ;;
8562
8563    sysv4*MP*)
8564      if test -d /usr/nec; then
8565	lt_prog_compiler_pic=-Kconform_pic
8566      fi
8567      ;;
8568
8569    hpux*)
8570      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8571      # not for PA HP-UX.
8572      case $host_cpu in
8573      hppa*64*|ia64*)
8574	# +Z the default
8575	;;
8576      *)
8577	lt_prog_compiler_pic='-fPIC'
8578	;;
8579      esac
8580      ;;
8581
8582    *)
8583      lt_prog_compiler_pic='-fPIC'
8584      ;;
8585    esac
8586  else
8587    # PORTME Check for flag to pass linker flags through the system compiler.
8588    case $host_os in
8589    aix*)
8590      lt_prog_compiler_wl='-Wl,'
8591      if test "$host_cpu" = ia64; then
8592	# AIX 5 now supports IA64 processor
8593	lt_prog_compiler_static='-Bstatic'
8594      else
8595	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8596      fi
8597      ;;
8598      darwin*)
8599        # PIC is the default on this platform
8600        # Common symbols not allowed in MH_DYLIB files
8601       case $cc_basename in
8602         xlc*)
8603         lt_prog_compiler_pic='-qnocommon'
8604         lt_prog_compiler_wl='-Wl,'
8605         ;;
8606       esac
8607       ;;
8608
8609    mingw* | pw32* | os2*)
8610      # This hack is so that the source file can tell whether it is being
8611      # built for inclusion in a dll (and should export symbols for example).
8612      lt_prog_compiler_pic='-DDLL_EXPORT'
8613      ;;
8614
8615    hpux9* | hpux10* | hpux11*)
8616      lt_prog_compiler_wl='-Wl,'
8617      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8618      # not for PA HP-UX.
8619      case $host_cpu in
8620      hppa*64*|ia64*)
8621	# +Z the default
8622	;;
8623      *)
8624	lt_prog_compiler_pic='+Z'
8625	;;
8626      esac
8627      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8628      lt_prog_compiler_static='${wl}-a ${wl}archive'
8629      ;;
8630
8631    irix5* | irix6* | nonstopux*)
8632      lt_prog_compiler_wl='-Wl,'
8633      # PIC (with -KPIC) is the default.
8634      lt_prog_compiler_static='-non_shared'
8635      ;;
8636
8637    newsos6)
8638      lt_prog_compiler_pic='-KPIC'
8639      lt_prog_compiler_static='-Bstatic'
8640      ;;
8641
8642    linux*)
8643      case $cc_basename in
8644      icc* | ecc*)
8645	lt_prog_compiler_wl='-Wl,'
8646	lt_prog_compiler_pic='-KPIC'
8647	lt_prog_compiler_static='-static'
8648        ;;
8649      pgcc* | pgf77* | pgf90* | pgf95*)
8650        # Portland Group compilers (*not* the Pentium gcc compiler,
8651	# which looks to be a dead project)
8652	lt_prog_compiler_wl='-Wl,'
8653	lt_prog_compiler_pic='-fpic'
8654	lt_prog_compiler_static='-Bstatic'
8655        ;;
8656      ccc*)
8657        lt_prog_compiler_wl='-Wl,'
8658        # All Alpha code is PIC.
8659        lt_prog_compiler_static='-non_shared'
8660        ;;
8661      esac
8662      ;;
8663
8664    osf3* | osf4* | osf5*)
8665      lt_prog_compiler_wl='-Wl,'
8666      # All OSF/1 code is PIC.
8667      lt_prog_compiler_static='-non_shared'
8668      ;;
8669
8670    sco3.2v5*)
8671      lt_prog_compiler_pic='-Kpic'
8672      lt_prog_compiler_static='-dn'
8673      ;;
8674
8675    solaris*)
8676      lt_prog_compiler_pic='-KPIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      case $cc_basename in
8679      f77* | f90* | f95*)
8680	lt_prog_compiler_wl='-Qoption ld ';;
8681      *)
8682	lt_prog_compiler_wl='-Wl,';;
8683      esac
8684      ;;
8685
8686    sunos4*)
8687      lt_prog_compiler_wl='-Qoption ld '
8688      lt_prog_compiler_pic='-PIC'
8689      lt_prog_compiler_static='-Bstatic'
8690      ;;
8691
8692    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8693      lt_prog_compiler_wl='-Wl,'
8694      lt_prog_compiler_pic='-KPIC'
8695      lt_prog_compiler_static='-Bstatic'
8696      ;;
8697
8698    sysv4*MP*)
8699      if test -d /usr/nec ;then
8700	lt_prog_compiler_pic='-Kconform_pic'
8701	lt_prog_compiler_static='-Bstatic'
8702      fi
8703      ;;
8704
8705    unicos*)
8706      lt_prog_compiler_wl='-Wl,'
8707      lt_prog_compiler_can_build_shared=no
8708      ;;
8709
8710    uts4*)
8711      lt_prog_compiler_pic='-pic'
8712      lt_prog_compiler_static='-Bstatic'
8713      ;;
8714
8715    *)
8716      lt_prog_compiler_can_build_shared=no
8717      ;;
8718    esac
8719  fi
8720
8721{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8722echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8723
8724#
8725# Check to make sure the PIC flag actually works.
8726#
8727if test -n "$lt_prog_compiler_pic"; then
8728
8729{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8730echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8731if test "${lt_prog_compiler_pic_works+set}" = set; then
8732  echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734  lt_prog_compiler_pic_works=no
8735  ac_outfile=conftest.$ac_objext
8736   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8738   # Insert the option either (1) after the last *FLAGS variable, or
8739   # (2) before a word containing "conftest.", or (3) at the end.
8740   # Note that $ac_compile itself does not contain backslashes and begins
8741   # with a dollar sign (not a hyphen), so the echo should work correctly.
8742   # The option is referenced via a variable to avoid confusing sed.
8743   lt_compile=`echo "$ac_compile" | $SED \
8744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746   -e 's:$: $lt_compiler_flag:'`
8747   (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
8748   (eval "$lt_compile" 2>conftest.err)
8749   ac_status=$?
8750   cat conftest.err >&5
8751   echo "$as_me:8751: \$? = $ac_status" >&5
8752   if (exit $ac_status) && test -s "$ac_outfile"; then
8753     # The compiler can only warn and ignore the option if not recognized
8754     # So say no if there are warnings other than the usual output.
8755     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8756     $SED '/^$/d' conftest.err >conftest.er2
8757     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8758       lt_prog_compiler_pic_works=yes
8759     fi
8760   fi
8761   $rm conftest*
8762
8763fi
8764{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8765echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8766
8767if test x"$lt_prog_compiler_pic_works" = xyes; then
8768    case $lt_prog_compiler_pic in
8769     "" | " "*) ;;
8770     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8771     esac
8772else
8773    lt_prog_compiler_pic=
8774     lt_prog_compiler_can_build_shared=no
8775fi
8776
8777fi
8778case $host_os in
8779  # For platforms which do not support PIC, -DPIC is meaningless:
8780  *djgpp*)
8781    lt_prog_compiler_pic=
8782    ;;
8783  *)
8784    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8785    ;;
8786esac
8787
8788{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8789echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8790if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  lt_cv_prog_compiler_c_o=no
8794   $rm -r conftest 2>/dev/null
8795   mkdir conftest
8796   cd conftest
8797   mkdir out
8798   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8799
8800   lt_compiler_flag="-o out/conftest2.$ac_objext"
8801   # Insert the option either (1) after the last *FLAGS variable, or
8802   # (2) before a word containing "conftest.", or (3) at the end.
8803   # Note that $ac_compile itself does not contain backslashes and begins
8804   # with a dollar sign (not a hyphen), so the echo should work correctly.
8805   lt_compile=`echo "$ac_compile" | $SED \
8806   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8807   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808   -e 's:$: $lt_compiler_flag:'`
8809   (eval echo "\"\$as_me:8809: $lt_compile\"" >&5)
8810   (eval "$lt_compile" 2>out/conftest.err)
8811   ac_status=$?
8812   cat out/conftest.err >&5
8813   echo "$as_me:8813: \$? = $ac_status" >&5
8814   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8815   then
8816     # The compiler can only warn and ignore the option if not recognized
8817     # So say no if there are warnings
8818     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8819     $SED '/^$/d' out/conftest.err >out/conftest.er2
8820     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8821       lt_cv_prog_compiler_c_o=yes
8822     fi
8823   fi
8824   chmod u+w . 2>&5
8825   $rm conftest*
8826   # SGI C++ compiler will create directory out/ii_files/ for
8827   # template instantiation
8828   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8829   $rm out/* && rmdir out
8830   cd ..
8831   rmdir conftest
8832   $rm conftest*
8833
8834fi
8835{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8836echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8837
8838
8839hard_links="nottested"
8840if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8841  # do not overwrite the value of need_locks provided by the user
8842  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8843echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8844  hard_links=yes
8845  $rm conftest*
8846  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8847  touch conftest.a
8848  ln conftest.a conftest.b 2>&5 || hard_links=no
8849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850  { echo "$as_me:$LINENO: result: $hard_links" >&5
8851echo "${ECHO_T}$hard_links" >&6; }
8852  if test "$hard_links" = no; then
8853    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8854echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8855    need_locks=warn
8856  fi
8857else
8858  need_locks=no
8859fi
8860
8861{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8862echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8863
8864  runpath_var=
8865  allow_undefined_flag=
8866  enable_shared_with_static_runtimes=no
8867  archive_cmds=
8868  archive_expsym_cmds=
8869  old_archive_From_new_cmds=
8870  old_archive_from_expsyms_cmds=
8871  export_dynamic_flag_spec=
8872  whole_archive_flag_spec=
8873  thread_safe_flag_spec=
8874  hardcode_libdir_flag_spec=
8875  hardcode_libdir_flag_spec_ld=
8876  hardcode_libdir_separator=
8877  hardcode_direct=no
8878  hardcode_minus_L=no
8879  hardcode_shlibpath_var=unsupported
8880  link_all_deplibs=unknown
8881  hardcode_automatic=no
8882  module_cmds=
8883  module_expsym_cmds=
8884  always_export_symbols=no
8885  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8886  # include_expsyms should be a list of space-separated symbols to be *always*
8887  # included in the symbol list
8888  include_expsyms=
8889  # exclude_expsyms can be an extended regexp of symbols to exclude
8890  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892  # as well as any symbol that contains `d'.
8893  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8894  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895  # platforms (ab)use it in PIC code, but their linkers get confused if
8896  # the symbol is explicitly referenced.  Since portable code cannot
8897  # rely on this symbol name, it's probably fine to never include it in
8898  # preloaded symbol tables.
8899  extract_expsyms_cmds=
8900  # Just being paranoid about ensuring that cc_basename is set.
8901  for cc_temp in $compiler""; do
8902  case $cc_temp in
8903    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8904    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8905    \-*) ;;
8906    *) break;;
8907  esac
8908done
8909cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8910
8911  case $host_os in
8912  cygwin* | mingw* | pw32*)
8913    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8914    # When not using gcc, we currently assume that we are using
8915    # Microsoft Visual C++.
8916    if test "$GCC" != yes; then
8917      with_gnu_ld=no
8918    fi
8919    ;;
8920  openbsd*)
8921    with_gnu_ld=no
8922    ;;
8923  esac
8924
8925  ld_shlibs=yes
8926  if test "$with_gnu_ld" = yes; then
8927    # If archive_cmds runs LD, not CC, wlarc should be empty
8928    wlarc='${wl}'
8929
8930    # Set some defaults for GNU ld with shared library support. These
8931    # are reset later if shared libraries are not supported. Putting them
8932    # here allows them to be overridden if necessary.
8933    runpath_var=LD_RUN_PATH
8934    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8935    export_dynamic_flag_spec='${wl}--export-dynamic'
8936    # ancient GNU ld didn't support --whole-archive et. al.
8937    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8938	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8939      else
8940  	whole_archive_flag_spec=
8941    fi
8942    supports_anon_versioning=no
8943    case `$LD -v 2>/dev/null` in
8944      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8945      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8946      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8947      *\ 2.11.*) ;; # other 2.11 versions
8948      *) supports_anon_versioning=yes ;;
8949    esac
8950
8951    # See if GNU ld supports shared libraries.
8952    case $host_os in
8953    aix3* | aix4* | aix5*)
8954      # On AIX/PPC, the GNU linker is very broken
8955      if test "$host_cpu" != ia64; then
8956	ld_shlibs=no
8957	cat <<EOF 1>&2
8958
8959*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8960*** to be unable to reliably create shared libraries on AIX.
8961*** Therefore, libtool is disabling shared libraries support.  If you
8962*** really care for shared libraries, you may want to modify your PATH
8963*** so that a non-GNU linker is found, and then restart.
8964
8965EOF
8966      fi
8967      ;;
8968
8969    amigaos*)
8970      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)'
8971      hardcode_libdir_flag_spec='-L$libdir'
8972      hardcode_minus_L=yes
8973
8974      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8975      # that the semantics of dynamic libraries on AmigaOS, at least up
8976      # to version 4, is to share data among multiple programs linked
8977      # with the same dynamic library.  Since this doesn't match the
8978      # behavior of shared libraries on other platforms, we can't use
8979      # them.
8980      ld_shlibs=no
8981      ;;
8982
8983    beos*)
8984      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8985	allow_undefined_flag=unsupported
8986	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987	# support --undefined.  This deserves some investigation.  FIXME
8988	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989      else
8990	ld_shlibs=no
8991      fi
8992      ;;
8993
8994    cygwin* | mingw* | pw32*)
8995      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8996      # as there is no search path for DLLs.
8997      hardcode_libdir_flag_spec='-L$libdir'
8998      allow_undefined_flag=unsupported
8999      always_export_symbols=no
9000      enable_shared_with_static_runtimes=yes
9001      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9002
9003      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9004        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9005	# If the export-symbols file already is a .def file (1st line
9006	# is EXPORTS), use it as is; otherwise, prepend...
9007	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008	  cp $export_symbols $output_objdir/$soname.def;
9009	else
9010	  echo EXPORTS > $output_objdir/$soname.def;
9011	  cat $export_symbols >> $output_objdir/$soname.def;
9012	fi~
9013	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9014      else
9015	ld_shlibs=no
9016      fi
9017      ;;
9018
9019    linux*)
9020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9021	tmp_addflag=
9022	case $cc_basename,$host_cpu in
9023	pgcc*)				# Portland Group C compiler
9024	  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'
9025	  tmp_addflag=' $pic_flag'
9026	  ;;
9027	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9028	  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'
9029	  tmp_addflag=' $pic_flag -Mnomain' ;;
9030	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9031	  tmp_addflag=' -i_dynamic' ;;
9032	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9033	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9034	ifc* | ifort*)			# Intel Fortran compiler
9035	  tmp_addflag=' -nofor_main' ;;
9036	esac
9037	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038
9039	if test $supports_anon_versioning = yes; then
9040	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9041  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9042  $echo "local: *; };" >> $output_objdir/$libname.ver~
9043	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9044	fi
9045      else
9046	ld_shlibs=no
9047      fi
9048      ;;
9049
9050    netbsd*)
9051      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053	wlarc=
9054      else
9055	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057      fi
9058      ;;
9059
9060    solaris* | sysv5*)
9061      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9062	ld_shlibs=no
9063	cat <<EOF 1>&2
9064
9065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066*** create shared libraries on Solaris systems.  Therefore, libtool
9067*** is disabling shared libraries support.  We urge you to upgrade GNU
9068*** binutils to release 2.9.1 or newer.  Another option is to modify
9069*** your PATH or compiler configuration so that the native linker is
9070*** used, and then restart.
9071
9072EOF
9073      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076      else
9077	ld_shlibs=no
9078      fi
9079      ;;
9080
9081    sunos4*)
9082      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083      wlarc=
9084      hardcode_direct=yes
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    *)
9089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092      else
9093	ld_shlibs=no
9094      fi
9095      ;;
9096    esac
9097
9098    if test "$ld_shlibs" = no; then
9099      runpath_var=
9100      hardcode_libdir_flag_spec=
9101      export_dynamic_flag_spec=
9102      whole_archive_flag_spec=
9103    fi
9104  else
9105    # PORTME fill in a description of your system's linker (not GNU ld)
9106    case $host_os in
9107    aix3*)
9108      allow_undefined_flag=unsupported
9109      always_export_symbols=yes
9110      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'
9111      # Note: this linker hardcodes the directories in LIBPATH if there
9112      # are no directories specified by -L.
9113      hardcode_minus_L=yes
9114      if test "$GCC" = yes && test -z "$link_static_flag"; then
9115	# Neither direct hardcoding nor static linking is supported with a
9116	# broken collect2.
9117	hardcode_direct=unsupported
9118      fi
9119      ;;
9120
9121    aix4* | aix5*)
9122      if test "$host_cpu" = ia64; then
9123	# On IA64, the linker does run time linking by default, so we don't
9124	# have to do anything special.
9125	aix_use_runtimelinking=no
9126	exp_sym_flag='-Bexport'
9127	no_entry_flag=""
9128      else
9129	# If we're using GNU nm, then we don't want the "-C" option.
9130	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9131	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9132	  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'
9133	else
9134	  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'
9135	fi
9136	aix_use_runtimelinking=no
9137
9138	# Test if we are trying to use run time linking or normal
9139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9140	# need to do runtime linking.
9141	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9142	  for ld_flag in $LDFLAGS; do
9143  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9144  	    aix_use_runtimelinking=yes
9145  	    break
9146  	  fi
9147	  done
9148	esac
9149
9150	exp_sym_flag='-bexport'
9151	no_entry_flag='-bnoentry'
9152      fi
9153
9154      # When large executables or shared objects are built, AIX ld can
9155      # have problems creating the table of contents.  If linking a library
9156      # or program results in "error TOC overflow" add -mminimal-toc to
9157      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9158      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159
9160      archive_cmds=''
9161      hardcode_direct=yes
9162      hardcode_libdir_separator=':'
9163      link_all_deplibs=yes
9164
9165      if test "$GCC" = yes; then
9166	case $host_os in aix4.[012]|aix4.[012].*)
9167	# We only want to do this on AIX 4.2 and lower, the check
9168	# below for broken collect2 doesn't work under 4.3+
9169	  collect2name=`${CC} -print-prog-name=collect2`
9170	  if test -f "$collect2name" && \
9171  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9172	  then
9173  	  # We have reworked collect2
9174  	  hardcode_direct=yes
9175	  else
9176  	  # We have old collect2
9177  	  hardcode_direct=unsupported
9178  	  # It fails to find uninstalled libraries when the uninstalled
9179  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9180  	  # to unsupported forces relinking
9181  	  hardcode_minus_L=yes
9182  	  hardcode_libdir_flag_spec='-L$libdir'
9183  	  hardcode_libdir_separator=
9184	  fi
9185	esac
9186	shared_flag='-shared'
9187	if test "$aix_use_runtimelinking" = yes; then
9188	  shared_flag="$shared_flag "'${wl}-G'
9189	fi
9190      else
9191	# not using gcc
9192	if test "$host_cpu" = ia64; then
9193  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9194  	# chokes on -Wl,-G. The following line is correct:
9195	  shared_flag='-G'
9196	else
9197  	if test "$aix_use_runtimelinking" = yes; then
9198	    shared_flag='${wl}-G'
9199	  else
9200	    shared_flag='${wl}-bM:SRE'
9201  	fi
9202	fi
9203      fi
9204
9205      # It seems that -bexpall does not export symbols beginning with
9206      # underscore (_), so it is better to generate a list of symbols to export.
9207      always_export_symbols=yes
9208      if test "$aix_use_runtimelinking" = yes; then
9209	# Warning - without using the other runtime loading flags (-brtl),
9210	# -berok will link without error, but may produce a broken library.
9211	allow_undefined_flag='-berok'
9212       # Determine the default libpath from the value encoded in an empty executable.
9213       cat >conftest.$ac_ext <<_ACEOF
9214/* confdefs.h.  */
9215_ACEOF
9216cat confdefs.h >>conftest.$ac_ext
9217cat >>conftest.$ac_ext <<_ACEOF
9218/* end confdefs.h.  */
9219
9220int
9221main ()
9222{
9223
9224  ;
9225  return 0;
9226}
9227_ACEOF
9228rm -f conftest.$ac_objext conftest$ac_exeext
9229if { (ac_try="$ac_link"
9230case "(($ac_try" in
9231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232  *) ac_try_echo=$ac_try;;
9233esac
9234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235  (eval "$ac_link") 2>conftest.er1
9236  ac_status=$?
9237  grep -v '^ *+' conftest.er1 >conftest.err
9238  rm -f conftest.er1
9239  cat conftest.err >&5
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); } && {
9242	 test -z "$ac_c_werror_flag" ||
9243	 test ! -s conftest.err
9244       } && test -s conftest$ac_exeext &&
9245       $as_test_x conftest$ac_exeext; then
9246
9247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9248}'`
9249# Check for a 64-bit object if we didn't find anything.
9250if 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; }
9251}'`; fi
9252else
9253  echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256
9257fi
9258
9259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260      conftest$ac_exeext conftest.$ac_ext
9261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9262
9263       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9264	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"
9265       else
9266	if test "$host_cpu" = ia64; then
9267	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9268	  allow_undefined_flag="-z nodefs"
9269	  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"
9270	else
9271	 # Determine the default libpath from the value encoded in an empty executable.
9272	 cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h.  */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h.  */
9278
9279int
9280main ()
9281{
9282
9283  ;
9284  return 0;
9285}
9286_ACEOF
9287rm -f conftest.$ac_objext conftest$ac_exeext
9288if { (ac_try="$ac_link"
9289case "(($ac_try" in
9290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291  *) ac_try_echo=$ac_try;;
9292esac
9293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294  (eval "$ac_link") 2>conftest.er1
9295  ac_status=$?
9296  grep -v '^ *+' conftest.er1 >conftest.err
9297  rm -f conftest.er1
9298  cat conftest.err >&5
9299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300  (exit $ac_status); } && {
9301	 test -z "$ac_c_werror_flag" ||
9302	 test ! -s conftest.err
9303       } && test -s conftest$ac_exeext &&
9304       $as_test_x conftest$ac_exeext; then
9305
9306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9307}'`
9308# Check for a 64-bit object if we didn't find anything.
9309if 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; }
9310}'`; fi
9311else
9312  echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315
9316fi
9317
9318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319      conftest$ac_exeext conftest.$ac_ext
9320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321
9322	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323	  # Warning - without using the other run time loading flags,
9324	  # -berok will link without error, but may produce a broken library.
9325	  no_undefined_flag=' ${wl}-bernotok'
9326	  allow_undefined_flag=' ${wl}-berok'
9327	  # -bexpall does not export symbols beginning with underscore (_)
9328	  always_export_symbols=yes
9329	  # Exported symbols can be pulled into shared objects from archives
9330	  whole_archive_flag_spec=' '
9331	  archive_cmds_need_lc=yes
9332	  # This is similar to how AIX traditionally builds its shared libraries.
9333	  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'
9334	fi
9335      fi
9336      ;;
9337
9338    amigaos*)
9339      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)'
9340      hardcode_libdir_flag_spec='-L$libdir'
9341      hardcode_minus_L=yes
9342      # see comment about different semantics on the GNU ld section
9343      ld_shlibs=no
9344      ;;
9345
9346    bsdi[45]*)
9347      export_dynamic_flag_spec=-rdynamic
9348      ;;
9349
9350    cygwin* | mingw* | pw32*)
9351      # When not using gcc, we currently assume that we are using
9352      # Microsoft Visual C++.
9353      # hardcode_libdir_flag_spec is actually meaningless, as there is
9354      # no search path for DLLs.
9355      hardcode_libdir_flag_spec=' '
9356      allow_undefined_flag=unsupported
9357      # Tell ltmain to make .lib files, not .a files.
9358      libext=lib
9359      # Tell ltmain to make .dll files, not .so files.
9360      shrext_cmds=".dll"
9361      # FIXME: Setting linknames here is a bad hack.
9362      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9363      # The linker will automatically build a .lib file if we build a DLL.
9364      old_archive_From_new_cmds='true'
9365      # FIXME: Should let the user specify the lib program.
9366      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9367      fix_srcfile_path='`cygpath -w "$srcfile"`'
9368      enable_shared_with_static_runtimes=yes
9369      ;;
9370
9371    darwin* | rhapsody*)
9372      case $host_os in
9373        rhapsody* | darwin1.[012])
9374         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9375         ;;
9376       *) # Darwin 1.3 on
9377         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9378           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9379         else
9380           case ${MACOSX_DEPLOYMENT_TARGET} in
9381             10.[012])
9382               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9383               ;;
9384             10.*)
9385               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9386               ;;
9387           esac
9388         fi
9389         ;;
9390      esac
9391      archive_cmds_need_lc=no
9392      hardcode_direct=no
9393      hardcode_automatic=yes
9394      hardcode_shlibpath_var=unsupported
9395      whole_archive_flag_spec=''
9396      link_all_deplibs=yes
9397    if test "$GCC" = yes ; then
9398    	output_verbose_link_cmd='echo'
9399        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9400      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9401      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9402      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}'
9403      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}'
9404    else
9405      case $cc_basename in
9406        xlc*)
9407         output_verbose_link_cmd='echo'
9408         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9409         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9410          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9411         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}'
9412          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}'
9413          ;;
9414       *)
9415         ld_shlibs=no
9416          ;;
9417      esac
9418    fi
9419      ;;
9420
9421    dgux*)
9422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423      hardcode_libdir_flag_spec='-L$libdir'
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    freebsd1*)
9428      ld_shlibs=no
9429      ;;
9430
9431    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9432    # support.  Future versions do this automatically, but an explicit c++rt0.o
9433    # does not break anything, and helps significantly (at the cost of a little
9434    # extra space).
9435    freebsd2.2*)
9436      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9437      hardcode_libdir_flag_spec='-R$libdir'
9438      hardcode_direct=yes
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9443    freebsd2*)
9444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9445      hardcode_direct=yes
9446      hardcode_minus_L=yes
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9451    freebsd* | kfreebsd*-gnu | dragonfly*)
9452      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9453      hardcode_libdir_flag_spec='-R$libdir'
9454      hardcode_direct=yes
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    hpux9*)
9459      if test "$GCC" = yes; then
9460	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'
9461      else
9462	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'
9463      fi
9464      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465      hardcode_libdir_separator=:
9466      hardcode_direct=yes
9467
9468      # hardcode_minus_L: Not really in the search PATH,
9469      # but as the default location of the library.
9470      hardcode_minus_L=yes
9471      export_dynamic_flag_spec='${wl}-E'
9472      ;;
9473
9474    hpux10* | hpux11*)
9475      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9476	case $host_cpu in
9477	hppa*64*|ia64*)
9478	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479	  ;;
9480	*)
9481	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482	  ;;
9483	esac
9484      else
9485	case $host_cpu in
9486	hppa*64*|ia64*)
9487	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9488	  ;;
9489	*)
9490	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9491	  ;;
9492	esac
9493      fi
9494      if test "$with_gnu_ld" = no; then
9495	case $host_cpu in
9496	hppa*64*)
9497	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9498	  hardcode_libdir_flag_spec_ld='+b $libdir'
9499	  hardcode_libdir_separator=:
9500	  hardcode_direct=no
9501	  hardcode_shlibpath_var=no
9502	  ;;
9503	ia64*)
9504	  hardcode_libdir_flag_spec='-L$libdir'
9505	  hardcode_direct=no
9506	  hardcode_shlibpath_var=no
9507
9508	  # hardcode_minus_L: Not really in the search PATH,
9509	  # but as the default location of the library.
9510	  hardcode_minus_L=yes
9511	  ;;
9512	*)
9513	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514	  hardcode_libdir_separator=:
9515	  hardcode_direct=yes
9516	  export_dynamic_flag_spec='${wl}-E'
9517
9518	  # hardcode_minus_L: Not really in the search PATH,
9519	  # but as the default location of the library.
9520	  hardcode_minus_L=yes
9521	  ;;
9522	esac
9523      fi
9524      ;;
9525
9526    irix5* | irix6* | nonstopux*)
9527      if test "$GCC" = yes; then
9528	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'
9529      else
9530	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'
9531	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9532      fi
9533      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534      hardcode_libdir_separator=:
9535      link_all_deplibs=yes
9536      ;;
9537
9538    netbsd*)
9539      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9540	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9541      else
9542	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9543      fi
9544      hardcode_libdir_flag_spec='-R$libdir'
9545      hardcode_direct=yes
9546      hardcode_shlibpath_var=no
9547      ;;
9548
9549    newsos6)
9550      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551      hardcode_direct=yes
9552      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553      hardcode_libdir_separator=:
9554      hardcode_shlibpath_var=no
9555      ;;
9556
9557    openbsd*)
9558      hardcode_direct=yes
9559      hardcode_shlibpath_var=no
9560      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9561	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9562	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9563	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9564	export_dynamic_flag_spec='${wl}-E'
9565      else
9566       case $host_os in
9567	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9568	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569	   hardcode_libdir_flag_spec='-R$libdir'
9570	   ;;
9571	 *)
9572	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9573	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9574	   ;;
9575       esac
9576      fi
9577      ;;
9578
9579    os2*)
9580      hardcode_libdir_flag_spec='-L$libdir'
9581      hardcode_minus_L=yes
9582      allow_undefined_flag=unsupported
9583      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'
9584      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9585      ;;
9586
9587    osf3*)
9588      if test "$GCC" = yes; then
9589	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590	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'
9591      else
9592	allow_undefined_flag=' -expect_unresolved \*'
9593	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'
9594      fi
9595      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596      hardcode_libdir_separator=:
9597      ;;
9598
9599    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9600      if test "$GCC" = yes; then
9601	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9602	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'
9603	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604      else
9605	allow_undefined_flag=' -expect_unresolved \*'
9606	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'
9607	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9608	$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'
9609
9610	# Both c and cxx compiler support -rpath directly
9611	hardcode_libdir_flag_spec='-rpath $libdir'
9612      fi
9613      hardcode_libdir_separator=:
9614      ;;
9615
9616    sco3.2v5*)
9617      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618      hardcode_shlibpath_var=no
9619      export_dynamic_flag_spec='${wl}-Bexport'
9620      runpath_var=LD_RUN_PATH
9621      hardcode_runpath_var=yes
9622      ;;
9623
9624    solaris*)
9625      no_undefined_flag=' -z text'
9626      if test "$GCC" = yes; then
9627	wlarc='${wl}'
9628	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9629	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9630	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9631      else
9632	wlarc=''
9633	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9635  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9636      fi
9637      hardcode_libdir_flag_spec='-R$libdir'
9638      hardcode_shlibpath_var=no
9639      case $host_os in
9640      solaris2.[0-5] | solaris2.[0-5].*) ;;
9641      *)
9642 	# The compiler driver will combine linker options so we
9643 	# cannot just pass the convience library names through
9644 	# without $wl, iff we do not link with $LD.
9645 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9646 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9647 	case $wlarc in
9648 	'')
9649 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9650 	*)
9651 	  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' ;;
9652 	esac ;;
9653      esac
9654      link_all_deplibs=yes
9655      ;;
9656
9657    sunos4*)
9658      if test "x$host_vendor" = xsequent; then
9659	# Use $CC to link under sequent, because it throws in some extra .o
9660	# files that make .init and .fini sections work.
9661	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662      else
9663	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9664      fi
9665      hardcode_libdir_flag_spec='-L$libdir'
9666      hardcode_direct=yes
9667      hardcode_minus_L=yes
9668      hardcode_shlibpath_var=no
9669      ;;
9670
9671    sysv4)
9672      case $host_vendor in
9673	sni)
9674	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675	  hardcode_direct=yes # is this really true???
9676	;;
9677	siemens)
9678	  ## LD is ld it makes a PLAMLIB
9679	  ## CC just makes a GrossModule.
9680	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9681	  reload_cmds='$CC -r -o $output$reload_objs'
9682	  hardcode_direct=no
9683        ;;
9684	motorola)
9685	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9687	;;
9688      esac
9689      runpath_var='LD_RUN_PATH'
9690      hardcode_shlibpath_var=no
9691      ;;
9692
9693    sysv4.3*)
9694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695      hardcode_shlibpath_var=no
9696      export_dynamic_flag_spec='-Bexport'
9697      ;;
9698
9699    sysv4*MP*)
9700      if test -d /usr/nec; then
9701	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702	hardcode_shlibpath_var=no
9703	runpath_var=LD_RUN_PATH
9704	hardcode_runpath_var=yes
9705	ld_shlibs=yes
9706      fi
9707      ;;
9708
9709    sysv4.2uw2*)
9710      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9711      hardcode_direct=yes
9712      hardcode_minus_L=no
9713      hardcode_shlibpath_var=no
9714      hardcode_runpath_var=yes
9715      runpath_var=LD_RUN_PATH
9716      ;;
9717
9718   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9719      no_undefined_flag='${wl}-z ${wl}text'
9720      if test "$GCC" = yes; then
9721	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722      else
9723	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724      fi
9725      runpath_var='LD_RUN_PATH'
9726      hardcode_shlibpath_var=no
9727      ;;
9728
9729    sysv5*)
9730      no_undefined_flag=' -z text'
9731      # $CC -shared without GNU ld will not create a library from C++
9732      # object files and a static libstdc++, better avoid it by now
9733      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9735  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9736      hardcode_libdir_flag_spec=
9737      hardcode_shlibpath_var=no
9738      runpath_var='LD_RUN_PATH'
9739      ;;
9740
9741    uts4*)
9742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743      hardcode_libdir_flag_spec='-L$libdir'
9744      hardcode_shlibpath_var=no
9745      ;;
9746
9747    *)
9748      ld_shlibs=no
9749      ;;
9750    esac
9751  fi
9752
9753{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9754echo "${ECHO_T}$ld_shlibs" >&6; }
9755test "$ld_shlibs" = no && can_build_shared=no
9756
9757variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9758if test "$GCC" = yes; then
9759  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9760fi
9761
9762#
9763# Do we need to explicitly link libc?
9764#
9765case "x$archive_cmds_need_lc" in
9766x|xyes)
9767  # Assume -lc should be added
9768  archive_cmds_need_lc=yes
9769
9770  if test "$enable_shared" = yes && test "$GCC" = yes; then
9771    case $archive_cmds in
9772    *'~'*)
9773      # FIXME: we may have to deal with multi-command sequences.
9774      ;;
9775    '$CC '*)
9776      # Test whether the compiler implicitly links with -lc since on some
9777      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9778      # to ld, don't add -lc before -lgcc.
9779      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9781      $rm conftest*
9782      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9783
9784      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785  (eval $ac_compile) 2>&5
9786  ac_status=$?
9787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788  (exit $ac_status); } 2>conftest.err; then
9789        soname=conftest
9790        lib=conftest
9791        libobjs=conftest.$ac_objext
9792        deplibs=
9793        wl=$lt_prog_compiler_wl
9794        compiler_flags=-v
9795        linker_flags=-v
9796        verstring=
9797        output_objdir=.
9798        libname=conftest
9799        lt_save_allow_undefined_flag=$allow_undefined_flag
9800        allow_undefined_flag=
9801        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9802  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9803  ac_status=$?
9804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805  (exit $ac_status); }
9806        then
9807	  archive_cmds_need_lc=no
9808        else
9809	  archive_cmds_need_lc=yes
9810        fi
9811        allow_undefined_flag=$lt_save_allow_undefined_flag
9812      else
9813        cat conftest.err 1>&5
9814      fi
9815      $rm conftest*
9816      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9817echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9818      ;;
9819    esac
9820  fi
9821  ;;
9822esac
9823
9824{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9825echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9826library_names_spec=
9827libname_spec='lib$name'
9828soname_spec=
9829shrext_cmds=".so"
9830postinstall_cmds=
9831postuninstall_cmds=
9832finish_cmds=
9833finish_eval=
9834shlibpath_var=
9835shlibpath_overrides_runpath=unknown
9836version_type=none
9837dynamic_linker="$host_os ld.so"
9838sys_lib_dlsearch_path_spec="/lib /usr/lib"
9839if test "$GCC" = yes; then
9840  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9842    # if the path contains ";" then we assume it to be the separator
9843    # otherwise default to the standard path separator (i.e. ":") - it is
9844    # assumed that no part of a normal pathname contains ";" but that should
9845    # okay in the real world where ";" in dirpaths is itself problematic.
9846    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9847  else
9848    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9849  fi
9850else
9851  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9852fi
9853need_lib_prefix=unknown
9854hardcode_into_libs=no
9855
9856# when you set need_version to no, make sure it does not cause -set_version
9857# flags to be left without arguments
9858need_version=unknown
9859
9860case $host_os in
9861aix3*)
9862  version_type=linux
9863  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9864  shlibpath_var=LIBPATH
9865
9866  # AIX 3 has no versioning support, so we append a major version to the name.
9867  soname_spec='${libname}${release}${shared_ext}$major'
9868  ;;
9869
9870aix4* | aix5*)
9871  version_type=linux
9872  need_lib_prefix=no
9873  need_version=no
9874  hardcode_into_libs=yes
9875  if test "$host_cpu" = ia64; then
9876    # AIX 5 supports IA64
9877    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9878    shlibpath_var=LD_LIBRARY_PATH
9879  else
9880    # With GCC up to 2.95.x, collect2 would create an import file
9881    # for dependence libraries.  The import file would start with
9882    # the line `#! .'.  This would cause the generated library to
9883    # depend on `.', always an invalid library.  This was fixed in
9884    # development snapshots of GCC prior to 3.0.
9885    case $host_os in
9886      aix4 | aix4.[01] | aix4.[01].*)
9887      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9888	   echo ' yes '
9889	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9890	:
9891      else
9892	can_build_shared=no
9893      fi
9894      ;;
9895    esac
9896    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9897    # soname into executable. Probably we can add versioning support to
9898    # collect2, so additional links can be useful in future.
9899    if test "$aix_use_runtimelinking" = yes; then
9900      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9901      # instead of lib<name>.a to let people know that these are not
9902      # typical AIX shared libraries.
9903      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904    else
9905      # We preserve .a as extension for shared libraries through AIX4.2
9906      # and later when we are not doing run time linking.
9907      library_names_spec='${libname}${release}.a $libname.a'
9908      soname_spec='${libname}${release}${shared_ext}$major'
9909    fi
9910    shlibpath_var=LIBPATH
9911  fi
9912  ;;
9913
9914amigaos*)
9915  library_names_spec='$libname.ixlibrary $libname.a'
9916  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9917  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'
9918  ;;
9919
9920beos*)
9921  library_names_spec='${libname}${shared_ext}'
9922  dynamic_linker="$host_os ld.so"
9923  shlibpath_var=LIBRARY_PATH
9924  ;;
9925
9926bsdi[45]*)
9927  version_type=linux
9928  need_version=no
9929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930  soname_spec='${libname}${release}${shared_ext}$major'
9931  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9932  shlibpath_var=LD_LIBRARY_PATH
9933  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9934  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9935  # the default ld.so.conf also contains /usr/contrib/lib and
9936  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9937  # libtool to hard-code these into programs
9938  ;;
9939
9940cygwin* | mingw* | pw32*)
9941  version_type=windows
9942  shrext_cmds=".dll"
9943  need_version=no
9944  need_lib_prefix=no
9945
9946  case $GCC,$host_os in
9947  yes,cygwin* | yes,mingw* | yes,pw32*)
9948    library_names_spec='$libname.dll.a'
9949    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9950    postinstall_cmds='base_file=`basename \${file}`~
9951      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9952      dldir=$destdir/`dirname \$dlpath`~
9953      test -d \$dldir || mkdir -p \$dldir~
9954      $install_prog $dir/$dlname \$dldir/$dlname~
9955      chmod a+x \$dldir/$dlname'
9956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9957      dlpath=$dir/\$dldll~
9958       $rm \$dlpath'
9959    shlibpath_overrides_runpath=yes
9960
9961    case $host_os in
9962    cygwin*)
9963      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9964      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9966      ;;
9967    mingw*)
9968      # MinGW DLLs use traditional 'lib' prefix
9969      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9971      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9972        # It is most probably a Windows format PATH printed by
9973        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9974        # path with ; separators, and with drive letters. We can handle the
9975        # drive letters (cygwin fileutils understands them), so leave them,
9976        # especially as we might pass files found there to a mingw objdump,
9977        # which wouldn't understand a cygwinified path. Ahh.
9978        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9979      else
9980        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9981      fi
9982      ;;
9983    pw32*)
9984      # pw32 DLLs use 'pw' prefix rather than 'lib'
9985      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986      ;;
9987    esac
9988    ;;
9989
9990  *)
9991    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9992    ;;
9993  esac
9994  dynamic_linker='Win32 ld.exe'
9995  # FIXME: first we should search . and the directory the executable is in
9996  shlibpath_var=PATH
9997  ;;
9998
9999darwin* | rhapsody*)
10000  dynamic_linker="$host_os dyld"
10001  version_type=darwin
10002  need_lib_prefix=no
10003  need_version=no
10004  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10005  soname_spec='${libname}${release}${major}$shared_ext'
10006  shlibpath_overrides_runpath=yes
10007  shlibpath_var=DYLD_LIBRARY_PATH
10008  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10009  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10010  if test "$GCC" = yes; then
10011    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"`
10012  else
10013    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10014  fi
10015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016  ;;
10017
10018dgux*)
10019  version_type=linux
10020  need_lib_prefix=no
10021  need_version=no
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023  soname_spec='${libname}${release}${shared_ext}$major'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  ;;
10026
10027freebsd1*)
10028  dynamic_linker=no
10029  ;;
10030
10031kfreebsd*-gnu)
10032  version_type=linux
10033  need_lib_prefix=no
10034  need_version=no
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036  soname_spec='${libname}${release}${shared_ext}$major'
10037  shlibpath_var=LD_LIBRARY_PATH
10038  shlibpath_overrides_runpath=no
10039  hardcode_into_libs=yes
10040  dynamic_linker='GNU ld.so'
10041  ;;
10042
10043freebsd* | dragonfly*)
10044  # DragonFly does not have aout.  When/if they implement a new
10045  # versioning mechanism, adjust this.
10046  if test -x /usr/bin/objformat; then
10047    objformat=`/usr/bin/objformat`
10048  else
10049    case $host_os in
10050    freebsd[123]*) objformat=aout ;;
10051    *) objformat=elf ;;
10052    esac
10053  fi
10054  version_type=freebsd-$objformat
10055  case $version_type in
10056    freebsd-elf*)
10057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10058      need_version=no
10059      need_lib_prefix=no
10060      ;;
10061    freebsd-*)
10062      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10063      need_version=yes
10064      ;;
10065  esac
10066  shlibpath_var=LD_LIBRARY_PATH
10067  case $host_os in
10068  freebsd2*)
10069    shlibpath_overrides_runpath=yes
10070    ;;
10071  freebsd3.[01]* | freebsdelf3.[01]*)
10072    shlibpath_overrides_runpath=yes
10073    hardcode_into_libs=yes
10074    ;;
10075  *) # from 3.2 on
10076    shlibpath_overrides_runpath=no
10077    hardcode_into_libs=yes
10078    ;;
10079  esac
10080  ;;
10081
10082gnu*)
10083  version_type=linux
10084  need_lib_prefix=no
10085  need_version=no
10086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10087  soname_spec='${libname}${release}${shared_ext}$major'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  hardcode_into_libs=yes
10090  ;;
10091
10092hpux9* | hpux10* | hpux11*)
10093  # Give a soname corresponding to the major version so that dld.sl refuses to
10094  # link against other versions.
10095  version_type=sunos
10096  need_lib_prefix=no
10097  need_version=no
10098  case $host_cpu in
10099  ia64*)
10100    shrext_cmds='.so'
10101    hardcode_into_libs=yes
10102    dynamic_linker="$host_os dld.so"
10103    shlibpath_var=LD_LIBRARY_PATH
10104    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106    soname_spec='${libname}${release}${shared_ext}$major'
10107    if test "X$HPUX_IA64_MODE" = X32; then
10108      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10109    else
10110      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10111    fi
10112    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113    ;;
10114   hppa*64*)
10115     shrext_cmds='.sl'
10116     hardcode_into_libs=yes
10117     dynamic_linker="$host_os dld.sl"
10118     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124     ;;
10125   *)
10126    shrext_cmds='.sl'
10127    dynamic_linker="$host_os dld.sl"
10128    shlibpath_var=SHLIB_PATH
10129    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131    soname_spec='${libname}${release}${shared_ext}$major'
10132    ;;
10133  esac
10134  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10135  postinstall_cmds='chmod 555 $lib'
10136  ;;
10137
10138irix5* | irix6* | nonstopux*)
10139  case $host_os in
10140    nonstopux*) version_type=nonstopux ;;
10141    *)
10142	if test "$lt_cv_prog_gnu_ld" = yes; then
10143		version_type=linux
10144	else
10145		version_type=irix
10146	fi ;;
10147  esac
10148  need_lib_prefix=no
10149  need_version=no
10150  soname_spec='${libname}${release}${shared_ext}$major'
10151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10152  case $host_os in
10153  irix5* | nonstopux*)
10154    libsuff= shlibsuff=
10155    ;;
10156  *)
10157    case $LD in # libtool.m4 will add one of these switches to LD
10158    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10159      libsuff= shlibsuff= libmagic=32-bit;;
10160    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10161      libsuff=32 shlibsuff=N32 libmagic=N32;;
10162    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10163      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10164    *) libsuff= shlibsuff= libmagic=never-match;;
10165    esac
10166    ;;
10167  esac
10168  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10169  shlibpath_overrides_runpath=no
10170  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10171  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10172  hardcode_into_libs=yes
10173  ;;
10174
10175# No shared lib support for Linux oldld, aout, or coff.
10176linux*oldld* | linux*aout* | linux*coff*)
10177  dynamic_linker=no
10178  ;;
10179
10180# This must be Linux ELF.
10181linux*)
10182  version_type=linux
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10188  shlibpath_var=LD_LIBRARY_PATH
10189  shlibpath_overrides_runpath=no
10190  # This implies no fast_install, which is unacceptable.
10191  # Some rework will be needed to allow for fast_install
10192  # before this can be enabled.
10193  hardcode_into_libs=yes
10194
10195  # Append ld.so.conf contents to the search path
10196  if test -f /etc/ld.so.conf; then
10197    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' ' '`
10198    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10199  fi
10200
10201  # We used to test for /lib/ld.so.1 and disable shared libraries on
10202  # powerpc, because MkLinux only supported shared libraries with the
10203  # GNU dynamic linker.  Since this was broken with cross compilers,
10204  # most powerpc-linux boxes support dynamic linking these days and
10205  # people can always --disable-shared, the test was removed, and we
10206  # assume the GNU/Linux dynamic linker is in use.
10207  dynamic_linker='GNU/Linux ld.so'
10208  ;;
10209
10210knetbsd*-gnu)
10211  version_type=linux
10212  need_lib_prefix=no
10213  need_version=no
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LD_LIBRARY_PATH
10217  shlibpath_overrides_runpath=no
10218  hardcode_into_libs=yes
10219  dynamic_linker='GNU ld.so'
10220  ;;
10221
10222netbsd*)
10223  version_type=sunos
10224  need_lib_prefix=no
10225  need_version=no
10226  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10229    dynamic_linker='NetBSD (a.out) ld.so'
10230  else
10231    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232    soname_spec='${libname}${release}${shared_ext}$major'
10233    dynamic_linker='NetBSD ld.elf_so'
10234  fi
10235  shlibpath_var=LD_LIBRARY_PATH
10236  shlibpath_overrides_runpath=yes
10237  hardcode_into_libs=yes
10238  ;;
10239
10240newsos6)
10241  version_type=linux
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243  shlibpath_var=LD_LIBRARY_PATH
10244  shlibpath_overrides_runpath=yes
10245  ;;
10246
10247nto-qnx*)
10248  version_type=linux
10249  need_lib_prefix=no
10250  need_version=no
10251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252  soname_spec='${libname}${release}${shared_ext}$major'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=yes
10255  ;;
10256
10257openbsd*)
10258  version_type=sunos
10259  need_lib_prefix=no
10260  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10261  case $host_os in
10262    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10263    *)                         need_version=no  ;;
10264  esac
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267  shlibpath_var=LD_LIBRARY_PATH
10268  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269    case $host_os in
10270      openbsd2.[89] | openbsd2.[89].*)
10271	shlibpath_overrides_runpath=no
10272	;;
10273      *)
10274	shlibpath_overrides_runpath=yes
10275	;;
10276      esac
10277  else
10278    shlibpath_overrides_runpath=yes
10279  fi
10280  ;;
10281
10282os2*)
10283  libname_spec='$name'
10284  shrext_cmds=".dll"
10285  need_lib_prefix=no
10286  library_names_spec='$libname${shared_ext} $libname.a'
10287  dynamic_linker='OS/2 ld.exe'
10288  shlibpath_var=LIBPATH
10289  ;;
10290
10291osf3* | osf4* | osf5*)
10292  version_type=osf
10293  need_lib_prefix=no
10294  need_version=no
10295  soname_spec='${libname}${release}${shared_ext}$major'
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297  shlibpath_var=LD_LIBRARY_PATH
10298  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10300  ;;
10301
10302sco3.2v5*)
10303  version_type=osf
10304  soname_spec='${libname}${release}${shared_ext}$major'
10305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  ;;
10308
10309solaris*)
10310  version_type=linux
10311  need_lib_prefix=no
10312  need_version=no
10313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314  soname_spec='${libname}${release}${shared_ext}$major'
10315  shlibpath_var=LD_LIBRARY_PATH
10316  shlibpath_overrides_runpath=yes
10317  hardcode_into_libs=yes
10318  # ldd complains unless libraries are executable
10319  postinstall_cmds='chmod +x $lib'
10320  ;;
10321
10322sunos4*)
10323  version_type=sunos
10324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10326  shlibpath_var=LD_LIBRARY_PATH
10327  shlibpath_overrides_runpath=yes
10328  if test "$with_gnu_ld" = yes; then
10329    need_lib_prefix=no
10330  fi
10331  need_version=yes
10332  ;;
10333
10334sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10335  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
10339  case $host_vendor in
10340    sni)
10341      shlibpath_overrides_runpath=no
10342      need_lib_prefix=no
10343      export_dynamic_flag_spec='${wl}-Blargedynsym'
10344      runpath_var=LD_RUN_PATH
10345      ;;
10346    siemens)
10347      need_lib_prefix=no
10348      ;;
10349    motorola)
10350      need_lib_prefix=no
10351      need_version=no
10352      shlibpath_overrides_runpath=no
10353      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10354      ;;
10355  esac
10356  ;;
10357
10358sysv4*MP*)
10359  if test -d /usr/nec ;then
10360    version_type=linux
10361    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10362    soname_spec='$libname${shared_ext}.$major'
10363    shlibpath_var=LD_LIBRARY_PATH
10364  fi
10365  ;;
10366
10367uts4*)
10368  version_type=linux
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370  soname_spec='${libname}${release}${shared_ext}$major'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  ;;
10373
10374*)
10375  dynamic_linker=no
10376  ;;
10377esac
10378{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10379echo "${ECHO_T}$dynamic_linker" >&6; }
10380test "$dynamic_linker" = no && can_build_shared=no
10381
10382{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10383echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10384hardcode_action=
10385if test -n "$hardcode_libdir_flag_spec" || \
10386   test -n "$runpath_var" || \
10387   test "X$hardcode_automatic" = "Xyes" ; then
10388
10389  # We can hardcode non-existant directories.
10390  if test "$hardcode_direct" != no &&
10391     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10392     # have to relink, otherwise we might link with an installed library
10393     # when we should be linking with a yet-to-be-installed one
10394     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10395     test "$hardcode_minus_L" != no; then
10396    # Linking always hardcodes the temporary library directory.
10397    hardcode_action=relink
10398  else
10399    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10400    hardcode_action=immediate
10401  fi
10402else
10403  # We cannot hardcode anything, or else we can only hardcode existing
10404  # directories.
10405  hardcode_action=unsupported
10406fi
10407{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10408echo "${ECHO_T}$hardcode_action" >&6; }
10409
10410if test "$hardcode_action" = relink; then
10411  # Fast installation is not supported
10412  enable_fast_install=no
10413elif test "$shlibpath_overrides_runpath" = yes ||
10414     test "$enable_shared" = no; then
10415  # Fast installation is not necessary
10416  enable_fast_install=needless
10417fi
10418
10419striplib=
10420old_striplib=
10421{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10422echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10423if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10424  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10425  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10426  { echo "$as_me:$LINENO: result: yes" >&5
10427echo "${ECHO_T}yes" >&6; }
10428else
10429# FIXME - insert some real tests, host_os isn't really good enough
10430  case $host_os in
10431   darwin*)
10432       if test -n "$STRIP" ; then
10433         striplib="$STRIP -x"
10434         { echo "$as_me:$LINENO: result: yes" >&5
10435echo "${ECHO_T}yes" >&6; }
10436       else
10437  { echo "$as_me:$LINENO: result: no" >&5
10438echo "${ECHO_T}no" >&6; }
10439fi
10440       ;;
10441   *)
10442  { echo "$as_me:$LINENO: result: no" >&5
10443echo "${ECHO_T}no" >&6; }
10444    ;;
10445  esac
10446fi
10447
10448if test "x$enable_dlopen" != xyes; then
10449  enable_dlopen=unknown
10450  enable_dlopen_self=unknown
10451  enable_dlopen_self_static=unknown
10452else
10453  lt_cv_dlopen=no
10454  lt_cv_dlopen_libs=
10455
10456  case $host_os in
10457  beos*)
10458    lt_cv_dlopen="load_add_on"
10459    lt_cv_dlopen_libs=
10460    lt_cv_dlopen_self=yes
10461    ;;
10462
10463  mingw* | pw32*)
10464    lt_cv_dlopen="LoadLibrary"
10465    lt_cv_dlopen_libs=
10466   ;;
10467
10468  cygwin*)
10469    lt_cv_dlopen="dlopen"
10470    lt_cv_dlopen_libs=
10471   ;;
10472
10473  darwin*)
10474  # if libdl is installed we need to link against it
10475    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10477if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10478  echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480  ac_check_lib_save_LIBS=$LIBS
10481LIBS="-ldl  $LIBS"
10482cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h.  */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h.  */
10488
10489/* Override any GCC internal prototype to avoid an error.
10490   Use char because int might match the return type of a GCC
10491   builtin and then its argument prototype would still apply.  */
10492#ifdef __cplusplus
10493extern "C"
10494#endif
10495char dlopen ();
10496int
10497main ()
10498{
10499return dlopen ();
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
10505if { (ac_try="$ac_link"
10506case "(($ac_try" in
10507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508  *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511  (eval "$ac_link") 2>conftest.er1
10512  ac_status=$?
10513  grep -v '^ *+' conftest.er1 >conftest.err
10514  rm -f conftest.er1
10515  cat conftest.err >&5
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); } && {
10518	 test -z "$ac_c_werror_flag" ||
10519	 test ! -s conftest.err
10520       } && test -s conftest$ac_exeext &&
10521       $as_test_x conftest$ac_exeext; then
10522  ac_cv_lib_dl_dlopen=yes
10523else
10524  echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527	ac_cv_lib_dl_dlopen=no
10528fi
10529
10530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531      conftest$ac_exeext conftest.$ac_ext
10532LIBS=$ac_check_lib_save_LIBS
10533fi
10534{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10535echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10536if test $ac_cv_lib_dl_dlopen = yes; then
10537  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10538else
10539
10540    lt_cv_dlopen="dyld"
10541    lt_cv_dlopen_libs=
10542    lt_cv_dlopen_self=yes
10543
10544fi
10545
10546   ;;
10547
10548  *)
10549    { echo "$as_me:$LINENO: checking for shl_load" >&5
10550echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10551if test "${ac_cv_func_shl_load+set}" = set; then
10552  echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554  cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h.  */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h.  */
10560/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10561   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10562#define shl_load innocuous_shl_load
10563
10564/* System header to define __stub macros and hopefully few prototypes,
10565    which can conflict with char shl_load (); below.
10566    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10567    <limits.h> exists even on freestanding compilers.  */
10568
10569#ifdef __STDC__
10570# include <limits.h>
10571#else
10572# include <assert.h>
10573#endif
10574
10575#undef shl_load
10576
10577/* Override any GCC internal prototype to avoid an error.
10578   Use char because int might match the return type of a GCC
10579   builtin and then its argument prototype would still apply.  */
10580#ifdef __cplusplus
10581extern "C"
10582#endif
10583char shl_load ();
10584/* The GNU C library defines this for functions which it implements
10585    to always fail with ENOSYS.  Some functions are actually named
10586    something starting with __ and the normal name is an alias.  */
10587#if defined __stub_shl_load || defined __stub___shl_load
10588choke me
10589#endif
10590
10591int
10592main ()
10593{
10594return shl_load ();
10595  ;
10596  return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext conftest$ac_exeext
10600if { (ac_try="$ac_link"
10601case "(($ac_try" in
10602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603  *) ac_try_echo=$ac_try;;
10604esac
10605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606  (eval "$ac_link") 2>conftest.er1
10607  ac_status=$?
10608  grep -v '^ *+' conftest.er1 >conftest.err
10609  rm -f conftest.er1
10610  cat conftest.err >&5
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); } && {
10613	 test -z "$ac_c_werror_flag" ||
10614	 test ! -s conftest.err
10615       } && test -s conftest$ac_exeext &&
10616       $as_test_x conftest$ac_exeext; then
10617  ac_cv_func_shl_load=yes
10618else
10619  echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622	ac_cv_func_shl_load=no
10623fi
10624
10625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626      conftest$ac_exeext conftest.$ac_ext
10627fi
10628{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10629echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10630if test $ac_cv_func_shl_load = yes; then
10631  lt_cv_dlopen="shl_load"
10632else
10633  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10634echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10635if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10636  echo $ECHO_N "(cached) $ECHO_C" >&6
10637else
10638  ac_check_lib_save_LIBS=$LIBS
10639LIBS="-ldld  $LIBS"
10640cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h.  */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h.  */
10646
10647/* Override any GCC internal prototype to avoid an error.
10648   Use char because int might match the return type of a GCC
10649   builtin and then its argument prototype would still apply.  */
10650#ifdef __cplusplus
10651extern "C"
10652#endif
10653char shl_load ();
10654int
10655main ()
10656{
10657return shl_load ();
10658  ;
10659  return 0;
10660}
10661_ACEOF
10662rm -f conftest.$ac_objext conftest$ac_exeext
10663if { (ac_try="$ac_link"
10664case "(($ac_try" in
10665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666  *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669  (eval "$ac_link") 2>conftest.er1
10670  ac_status=$?
10671  grep -v '^ *+' conftest.er1 >conftest.err
10672  rm -f conftest.er1
10673  cat conftest.err >&5
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); } && {
10676	 test -z "$ac_c_werror_flag" ||
10677	 test ! -s conftest.err
10678       } && test -s conftest$ac_exeext &&
10679       $as_test_x conftest$ac_exeext; then
10680  ac_cv_lib_dld_shl_load=yes
10681else
10682  echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685	ac_cv_lib_dld_shl_load=no
10686fi
10687
10688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689      conftest$ac_exeext conftest.$ac_ext
10690LIBS=$ac_check_lib_save_LIBS
10691fi
10692{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10693echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10694if test $ac_cv_lib_dld_shl_load = yes; then
10695  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10696else
10697  { echo "$as_me:$LINENO: checking for dlopen" >&5
10698echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10699if test "${ac_cv_func_dlopen+set}" = set; then
10700  echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702  cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h.  */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h.  */
10708/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10709   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10710#define dlopen innocuous_dlopen
10711
10712/* System header to define __stub macros and hopefully few prototypes,
10713    which can conflict with char dlopen (); below.
10714    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715    <limits.h> exists even on freestanding compilers.  */
10716
10717#ifdef __STDC__
10718# include <limits.h>
10719#else
10720# include <assert.h>
10721#endif
10722
10723#undef dlopen
10724
10725/* Override any GCC internal prototype to avoid an error.
10726   Use char because int might match the return type of a GCC
10727   builtin and then its argument prototype would still apply.  */
10728#ifdef __cplusplus
10729extern "C"
10730#endif
10731char dlopen ();
10732/* The GNU C library defines this for functions which it implements
10733    to always fail with ENOSYS.  Some functions are actually named
10734    something starting with __ and the normal name is an alias.  */
10735#if defined __stub_dlopen || defined __stub___dlopen
10736choke me
10737#endif
10738
10739int
10740main ()
10741{
10742return dlopen ();
10743  ;
10744  return 0;
10745}
10746_ACEOF
10747rm -f conftest.$ac_objext conftest$ac_exeext
10748if { (ac_try="$ac_link"
10749case "(($ac_try" in
10750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751  *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754  (eval "$ac_link") 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } && {
10761	 test -z "$ac_c_werror_flag" ||
10762	 test ! -s conftest.err
10763       } && test -s conftest$ac_exeext &&
10764       $as_test_x conftest$ac_exeext; then
10765  ac_cv_func_dlopen=yes
10766else
10767  echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770	ac_cv_func_dlopen=no
10771fi
10772
10773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774      conftest$ac_exeext conftest.$ac_ext
10775fi
10776{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10777echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10778if test $ac_cv_func_dlopen = yes; then
10779  lt_cv_dlopen="dlopen"
10780else
10781  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10782echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10784  echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786  ac_check_lib_save_LIBS=$LIBS
10787LIBS="-ldl  $LIBS"
10788cat >conftest.$ac_ext <<_ACEOF
10789/* confdefs.h.  */
10790_ACEOF
10791cat confdefs.h >>conftest.$ac_ext
10792cat >>conftest.$ac_ext <<_ACEOF
10793/* end confdefs.h.  */
10794
10795/* Override any GCC internal prototype to avoid an error.
10796   Use char because int might match the return type of a GCC
10797   builtin and then its argument prototype would still apply.  */
10798#ifdef __cplusplus
10799extern "C"
10800#endif
10801char dlopen ();
10802int
10803main ()
10804{
10805return dlopen ();
10806  ;
10807  return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext conftest$ac_exeext
10811if { (ac_try="$ac_link"
10812case "(($ac_try" in
10813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814  *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817  (eval "$ac_link") 2>conftest.er1
10818  ac_status=$?
10819  grep -v '^ *+' conftest.er1 >conftest.err
10820  rm -f conftest.er1
10821  cat conftest.err >&5
10822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823  (exit $ac_status); } && {
10824	 test -z "$ac_c_werror_flag" ||
10825	 test ! -s conftest.err
10826       } && test -s conftest$ac_exeext &&
10827       $as_test_x conftest$ac_exeext; then
10828  ac_cv_lib_dl_dlopen=yes
10829else
10830  echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833	ac_cv_lib_dl_dlopen=no
10834fi
10835
10836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837      conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10842if test $ac_cv_lib_dl_dlopen = yes; then
10843  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10844else
10845  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10846echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10847if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10848  echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850  ac_check_lib_save_LIBS=$LIBS
10851LIBS="-lsvld  $LIBS"
10852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h.  */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h.  */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dlopen ();
10866int
10867main ()
10868{
10869return dlopen ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext conftest$ac_exeext
10875if { (ac_try="$ac_link"
10876case "(($ac_try" in
10877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878  *) ac_try_echo=$ac_try;;
10879esac
10880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881  (eval "$ac_link") 2>conftest.er1
10882  ac_status=$?
10883  grep -v '^ *+' conftest.er1 >conftest.err
10884  rm -f conftest.er1
10885  cat conftest.err >&5
10886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887  (exit $ac_status); } && {
10888	 test -z "$ac_c_werror_flag" ||
10889	 test ! -s conftest.err
10890       } && test -s conftest$ac_exeext &&
10891       $as_test_x conftest$ac_exeext; then
10892  ac_cv_lib_svld_dlopen=yes
10893else
10894  echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897	ac_cv_lib_svld_dlopen=no
10898fi
10899
10900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901      conftest$ac_exeext conftest.$ac_ext
10902LIBS=$ac_check_lib_save_LIBS
10903fi
10904{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10905echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10906if test $ac_cv_lib_svld_dlopen = yes; then
10907  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10908else
10909  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10910echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10911if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10912  echo $ECHO_N "(cached) $ECHO_C" >&6
10913else
10914  ac_check_lib_save_LIBS=$LIBS
10915LIBS="-ldld  $LIBS"
10916cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h.  */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h.  */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924   Use char because int might match the return type of a GCC
10925   builtin and then its argument prototype would still apply.  */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char dld_link ();
10930int
10931main ()
10932{
10933return dld_link ();
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext conftest$ac_exeext
10939if { (ac_try="$ac_link"
10940case "(($ac_try" in
10941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942  *) ac_try_echo=$ac_try;;
10943esac
10944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945  (eval "$ac_link") 2>conftest.er1
10946  ac_status=$?
10947  grep -v '^ *+' conftest.er1 >conftest.err
10948  rm -f conftest.er1
10949  cat conftest.err >&5
10950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951  (exit $ac_status); } && {
10952	 test -z "$ac_c_werror_flag" ||
10953	 test ! -s conftest.err
10954       } && test -s conftest$ac_exeext &&
10955       $as_test_x conftest$ac_exeext; then
10956  ac_cv_lib_dld_dld_link=yes
10957else
10958  echo "$as_me: failed program was:" >&5
10959sed 's/^/| /' conftest.$ac_ext >&5
10960
10961	ac_cv_lib_dld_dld_link=no
10962fi
10963
10964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10965      conftest$ac_exeext conftest.$ac_ext
10966LIBS=$ac_check_lib_save_LIBS
10967fi
10968{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10969echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10970if test $ac_cv_lib_dld_dld_link = yes; then
10971  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10972fi
10973
10974
10975fi
10976
10977
10978fi
10979
10980
10981fi
10982
10983
10984fi
10985
10986
10987fi
10988
10989    ;;
10990  esac
10991
10992  if test "x$lt_cv_dlopen" != xno; then
10993    enable_dlopen=yes
10994  else
10995    enable_dlopen=no
10996  fi
10997
10998  case $lt_cv_dlopen in
10999  dlopen)
11000    save_CPPFLAGS="$CPPFLAGS"
11001    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11002
11003    save_LDFLAGS="$LDFLAGS"
11004    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11005
11006    save_LIBS="$LIBS"
11007    LIBS="$lt_cv_dlopen_libs $LIBS"
11008
11009    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11010echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11011if test "${lt_cv_dlopen_self+set}" = set; then
11012  echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014  	  if test "$cross_compiling" = yes; then :
11015  lt_cv_dlopen_self=cross
11016else
11017  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11018  lt_status=$lt_dlunknown
11019  cat > conftest.$ac_ext <<EOF
11020#line 11020 "configure"
11021#include "confdefs.h"
11022
11023#if HAVE_DLFCN_H
11024#include <dlfcn.h>
11025#endif
11026
11027#include <stdio.h>
11028
11029#ifdef RTLD_GLOBAL
11030#  define LT_DLGLOBAL		RTLD_GLOBAL
11031#else
11032#  ifdef DL_GLOBAL
11033#    define LT_DLGLOBAL		DL_GLOBAL
11034#  else
11035#    define LT_DLGLOBAL		0
11036#  endif
11037#endif
11038
11039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11040   find out it does not work in some platform. */
11041#ifndef LT_DLLAZY_OR_NOW
11042#  ifdef RTLD_LAZY
11043#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11044#  else
11045#    ifdef DL_LAZY
11046#      define LT_DLLAZY_OR_NOW		DL_LAZY
11047#    else
11048#      ifdef RTLD_NOW
11049#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11050#      else
11051#        ifdef DL_NOW
11052#          define LT_DLLAZY_OR_NOW	DL_NOW
11053#        else
11054#          define LT_DLLAZY_OR_NOW	0
11055#        endif
11056#      endif
11057#    endif
11058#  endif
11059#endif
11060
11061#ifdef __cplusplus
11062extern "C" void exit (int);
11063#endif
11064
11065void fnord() { int i=42;}
11066int main ()
11067{
11068  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11069  int status = $lt_dlunknown;
11070
11071  if (self)
11072    {
11073      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11074      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11075      /* dlclose (self); */
11076    }
11077
11078    exit (status);
11079}
11080EOF
11081  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082  (eval $ac_link) 2>&5
11083  ac_status=$?
11084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11086    (./conftest; exit; ) >&5 2>/dev/null
11087    lt_status=$?
11088    case x$lt_status in
11089      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11090      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11091      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11092    esac
11093  else :
11094    # compilation failed
11095    lt_cv_dlopen_self=no
11096  fi
11097fi
11098rm -fr conftest*
11099
11100
11101fi
11102{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11103echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11104
11105    if test "x$lt_cv_dlopen_self" = xyes; then
11106      LDFLAGS="$LDFLAGS $link_static_flag"
11107      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11108echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11109if test "${lt_cv_dlopen_self_static+set}" = set; then
11110  echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112  	  if test "$cross_compiling" = yes; then :
11113  lt_cv_dlopen_self_static=cross
11114else
11115  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11116  lt_status=$lt_dlunknown
11117  cat > conftest.$ac_ext <<EOF
11118#line 11118 "configure"
11119#include "confdefs.h"
11120
11121#if HAVE_DLFCN_H
11122#include <dlfcn.h>
11123#endif
11124
11125#include <stdio.h>
11126
11127#ifdef RTLD_GLOBAL
11128#  define LT_DLGLOBAL		RTLD_GLOBAL
11129#else
11130#  ifdef DL_GLOBAL
11131#    define LT_DLGLOBAL		DL_GLOBAL
11132#  else
11133#    define LT_DLGLOBAL		0
11134#  endif
11135#endif
11136
11137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11138   find out it does not work in some platform. */
11139#ifndef LT_DLLAZY_OR_NOW
11140#  ifdef RTLD_LAZY
11141#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11142#  else
11143#    ifdef DL_LAZY
11144#      define LT_DLLAZY_OR_NOW		DL_LAZY
11145#    else
11146#      ifdef RTLD_NOW
11147#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11148#      else
11149#        ifdef DL_NOW
11150#          define LT_DLLAZY_OR_NOW	DL_NOW
11151#        else
11152#          define LT_DLLAZY_OR_NOW	0
11153#        endif
11154#      endif
11155#    endif
11156#  endif
11157#endif
11158
11159#ifdef __cplusplus
11160extern "C" void exit (int);
11161#endif
11162
11163void fnord() { int i=42;}
11164int main ()
11165{
11166  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11167  int status = $lt_dlunknown;
11168
11169  if (self)
11170    {
11171      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11172      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173      /* dlclose (self); */
11174    }
11175
11176    exit (status);
11177}
11178EOF
11179  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180  (eval $ac_link) 2>&5
11181  ac_status=$?
11182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11184    (./conftest; exit; ) >&5 2>/dev/null
11185    lt_status=$?
11186    case x$lt_status in
11187      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11188      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11189      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11190    esac
11191  else :
11192    # compilation failed
11193    lt_cv_dlopen_self_static=no
11194  fi
11195fi
11196rm -fr conftest*
11197
11198
11199fi
11200{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11201echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11202    fi
11203
11204    CPPFLAGS="$save_CPPFLAGS"
11205    LDFLAGS="$save_LDFLAGS"
11206    LIBS="$save_LIBS"
11207    ;;
11208  esac
11209
11210  case $lt_cv_dlopen_self in
11211  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11212  *) enable_dlopen_self=unknown ;;
11213  esac
11214
11215  case $lt_cv_dlopen_self_static in
11216  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11217  *) enable_dlopen_self_static=unknown ;;
11218  esac
11219fi
11220
11221
11222# Report which librarie types wil actually be built
11223{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11224echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11225{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11226echo "${ECHO_T}$can_build_shared" >&6; }
11227
11228{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11229echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11230test "$can_build_shared" = "no" && enable_shared=no
11231
11232# On AIX, shared libraries and static libraries use the same namespace, and
11233# are all built from PIC.
11234case $host_os in
11235aix3*)
11236  test "$enable_shared" = yes && enable_static=no
11237  if test -n "$RANLIB"; then
11238    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11239    postinstall_cmds='$RANLIB $lib'
11240  fi
11241  ;;
11242
11243aix4* | aix5*)
11244  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11245    test "$enable_shared" = yes && enable_static=no
11246  fi
11247    ;;
11248esac
11249{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11250echo "${ECHO_T}$enable_shared" >&6; }
11251
11252{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11253echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11254# Make sure either enable_shared or enable_static is yes.
11255test "$enable_shared" = yes || enable_static=yes
11256{ echo "$as_me:$LINENO: result: $enable_static" >&5
11257echo "${ECHO_T}$enable_static" >&6; }
11258
11259# The else clause should only fire when bootstrapping the
11260# libtool distribution, otherwise you forgot to ship ltmain.sh
11261# with your package, and you will get complaints that there are
11262# no rules to generate ltmain.sh.
11263if test -f "$ltmain"; then
11264  # See if we are running on zsh, and set the options which allow our commands through
11265  # without removal of \ escapes.
11266  if test -n "${ZSH_VERSION+set}" ; then
11267    setopt NO_GLOB_SUBST
11268  fi
11269  # Now quote all the things that may contain metacharacters while being
11270  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11271  # variables and quote the copies for generation of the libtool script.
11272  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11273    SED SHELL STRIP \
11274    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11275    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11276    deplibs_check_method reload_flag reload_cmds need_locks \
11277    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11278    lt_cv_sys_global_symbol_to_c_name_address \
11279    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11280    old_postinstall_cmds old_postuninstall_cmds \
11281    compiler \
11282    CC \
11283    LD \
11284    lt_prog_compiler_wl \
11285    lt_prog_compiler_pic \
11286    lt_prog_compiler_static \
11287    lt_prog_compiler_no_builtin_flag \
11288    export_dynamic_flag_spec \
11289    thread_safe_flag_spec \
11290    whole_archive_flag_spec \
11291    enable_shared_with_static_runtimes \
11292    old_archive_cmds \
11293    old_archive_from_new_cmds \
11294    predep_objects \
11295    postdep_objects \
11296    predeps \
11297    postdeps \
11298    compiler_lib_search_path \
11299    archive_cmds \
11300    archive_expsym_cmds \
11301    postinstall_cmds \
11302    postuninstall_cmds \
11303    old_archive_from_expsyms_cmds \
11304    allow_undefined_flag \
11305    no_undefined_flag \
11306    export_symbols_cmds \
11307    hardcode_libdir_flag_spec \
11308    hardcode_libdir_flag_spec_ld \
11309    hardcode_libdir_separator \
11310    hardcode_automatic \
11311    module_cmds \
11312    module_expsym_cmds \
11313    lt_cv_prog_compiler_c_o \
11314    exclude_expsyms \
11315    include_expsyms; do
11316
11317    case $var in
11318    old_archive_cmds | \
11319    old_archive_from_new_cmds | \
11320    archive_cmds | \
11321    archive_expsym_cmds | \
11322    module_cmds | \
11323    module_expsym_cmds | \
11324    old_archive_from_expsyms_cmds | \
11325    export_symbols_cmds | \
11326    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11327    postinstall_cmds | postuninstall_cmds | \
11328    old_postinstall_cmds | old_postuninstall_cmds | \
11329    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11330      # Double-quote double-evaled strings.
11331      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11332      ;;
11333    *)
11334      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11335      ;;
11336    esac
11337  done
11338
11339  case $lt_echo in
11340  *'\$0 --fallback-echo"')
11341    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11342    ;;
11343  esac
11344
11345cfgfile="${ofile}T"
11346  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11347  $rm -f "$cfgfile"
11348  { echo "$as_me:$LINENO: creating $ofile" >&5
11349echo "$as_me: creating $ofile" >&6;}
11350
11351  cat <<__EOF__ >> "$cfgfile"
11352#! $SHELL
11353
11354# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11355# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11356# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11357#
11358# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11359# Free Software Foundation, Inc.
11360#
11361# This file is part of GNU Libtool:
11362# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11363#
11364# This program is free software; you can redistribute it and/or modify
11365# it under the terms of the GNU General Public License as published by
11366# the Free Software Foundation; either version 2 of the License, or
11367# (at your option) any later version.
11368#
11369# This program is distributed in the hope that it will be useful, but
11370# WITHOUT ANY WARRANTY; without even the implied warranty of
11371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11372# General Public License for more details.
11373#
11374# You should have received a copy of the GNU General Public License
11375# along with this program; if not, write to the Free Software
11376# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11377#
11378# As a special exception to the GNU General Public License, if you
11379# distribute this file as part of a program that contains a
11380# configuration script generated by Autoconf, you may include it under
11381# the same distribution terms that you use for the rest of that program.
11382
11383# A sed program that does not truncate output.
11384SED=$lt_SED
11385
11386# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11387Xsed="$SED -e 1s/^X//"
11388
11389# The HP-UX ksh and POSIX shell print the target directory to stdout
11390# if CDPATH is set.
11391(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11392
11393# The names of the tagged configurations supported by this script.
11394available_tags=
11395
11396# ### BEGIN LIBTOOL CONFIG
11397
11398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11399
11400# Shell to use when invoking shell scripts.
11401SHELL=$lt_SHELL
11402
11403# Whether or not to build shared libraries.
11404build_libtool_libs=$enable_shared
11405
11406# Whether or not to build static libraries.
11407build_old_libs=$enable_static
11408
11409# Whether or not to add -lc for building shared libraries.
11410build_libtool_need_lc=$archive_cmds_need_lc
11411
11412# Whether or not to disallow shared libs when runtime libs are static
11413allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11414
11415# Whether or not to optimize for fast installation.
11416fast_install=$enable_fast_install
11417
11418# The host system.
11419host_alias=$host_alias
11420host=$host
11421host_os=$host_os
11422
11423# The build system.
11424build_alias=$build_alias
11425build=$build
11426build_os=$build_os
11427
11428# An echo program that does not interpret backslashes.
11429echo=$lt_echo
11430
11431# The archiver.
11432AR=$lt_AR
11433AR_FLAGS=$lt_AR_FLAGS
11434
11435# A C compiler.
11436LTCC=$lt_LTCC
11437
11438# A language-specific compiler.
11439CC=$lt_compiler
11440
11441# Is the compiler the GNU C compiler?
11442with_gcc=$GCC
11443
11444# An ERE matcher.
11445EGREP=$lt_EGREP
11446
11447# The linker used to build libraries.
11448LD=$lt_LD
11449
11450# Whether we need hard or soft links.
11451LN_S=$lt_LN_S
11452
11453# A BSD-compatible nm program.
11454NM=$lt_NM
11455
11456# A symbol stripping program
11457STRIP=$lt_STRIP
11458
11459# Used to examine libraries when file_magic_cmd begins "file"
11460MAGIC_CMD=$MAGIC_CMD
11461
11462# Used on cygwin: DLL creation program.
11463DLLTOOL="$DLLTOOL"
11464
11465# Used on cygwin: object dumper.
11466OBJDUMP="$OBJDUMP"
11467
11468# Used on cygwin: assembler.
11469AS="$AS"
11470
11471# The name of the directory that contains temporary libtool files.
11472objdir=$objdir
11473
11474# How to create reloadable object files.
11475reload_flag=$lt_reload_flag
11476reload_cmds=$lt_reload_cmds
11477
11478# How to pass a linker flag through the compiler.
11479wl=$lt_lt_prog_compiler_wl
11480
11481# Object file suffix (normally "o").
11482objext="$ac_objext"
11483
11484# Old archive suffix (normally "a").
11485libext="$libext"
11486
11487# Shared library suffix (normally ".so").
11488shrext_cmds='$shrext_cmds'
11489
11490# Executable file suffix (normally "").
11491exeext="$exeext"
11492
11493# Additional compiler flags for building library objects.
11494pic_flag=$lt_lt_prog_compiler_pic
11495pic_mode=$pic_mode
11496
11497# What is the maximum length of a command?
11498max_cmd_len=$lt_cv_sys_max_cmd_len
11499
11500# Does compiler simultaneously support -c and -o options?
11501compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11502
11503# Must we lock files when doing compilation?
11504need_locks=$lt_need_locks
11505
11506# Do we need the lib prefix for modules?
11507need_lib_prefix=$need_lib_prefix
11508
11509# Do we need a version for libraries?
11510need_version=$need_version
11511
11512# Whether dlopen is supported.
11513dlopen_support=$enable_dlopen
11514
11515# Whether dlopen of programs is supported.
11516dlopen_self=$enable_dlopen_self
11517
11518# Whether dlopen of statically linked programs is supported.
11519dlopen_self_static=$enable_dlopen_self_static
11520
11521# Compiler flag to prevent dynamic linking.
11522link_static_flag=$lt_lt_prog_compiler_static
11523
11524# Compiler flag to turn off builtin functions.
11525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11526
11527# Compiler flag to allow reflexive dlopens.
11528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11529
11530# Compiler flag to generate shared objects directly from archives.
11531whole_archive_flag_spec=$lt_whole_archive_flag_spec
11532
11533# Compiler flag to generate thread-safe objects.
11534thread_safe_flag_spec=$lt_thread_safe_flag_spec
11535
11536# Library versioning type.
11537version_type=$version_type
11538
11539# Format of library name prefix.
11540libname_spec=$lt_libname_spec
11541
11542# List of archive names.  First name is the real one, the rest are links.
11543# The last name is the one that the linker finds with -lNAME.
11544library_names_spec=$lt_library_names_spec
11545
11546# The coded name of the library, if different from the real name.
11547soname_spec=$lt_soname_spec
11548
11549# Commands used to build and install an old-style archive.
11550RANLIB=$lt_RANLIB
11551old_archive_cmds=$lt_old_archive_cmds
11552old_postinstall_cmds=$lt_old_postinstall_cmds
11553old_postuninstall_cmds=$lt_old_postuninstall_cmds
11554
11555# Create an old-style archive from a shared archive.
11556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11557
11558# Create a temporary old-style archive to link instead of a shared archive.
11559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11560
11561# Commands used to build and install a shared archive.
11562archive_cmds=$lt_archive_cmds
11563archive_expsym_cmds=$lt_archive_expsym_cmds
11564postinstall_cmds=$lt_postinstall_cmds
11565postuninstall_cmds=$lt_postuninstall_cmds
11566
11567# Commands used to build a loadable module (assumed same as above if empty)
11568module_cmds=$lt_module_cmds
11569module_expsym_cmds=$lt_module_expsym_cmds
11570
11571# Commands to strip libraries.
11572old_striplib=$lt_old_striplib
11573striplib=$lt_striplib
11574
11575# Dependencies to place before the objects being linked to create a
11576# shared library.
11577predep_objects=$lt_predep_objects
11578
11579# Dependencies to place after the objects being linked to create a
11580# shared library.
11581postdep_objects=$lt_postdep_objects
11582
11583# Dependencies to place before the objects being linked to create a
11584# shared library.
11585predeps=$lt_predeps
11586
11587# Dependencies to place after the objects being linked to create a
11588# shared library.
11589postdeps=$lt_postdeps
11590
11591# The library search path used internally by the compiler when linking
11592# a shared library.
11593compiler_lib_search_path=$lt_compiler_lib_search_path
11594
11595# Method to check whether dependent libraries are shared objects.
11596deplibs_check_method=$lt_deplibs_check_method
11597
11598# Command to use when deplibs_check_method == file_magic.
11599file_magic_cmd=$lt_file_magic_cmd
11600
11601# Flag that allows shared libraries with undefined symbols to be built.
11602allow_undefined_flag=$lt_allow_undefined_flag
11603
11604# Flag that forces no undefined symbols.
11605no_undefined_flag=$lt_no_undefined_flag
11606
11607# Commands used to finish a libtool library installation in a directory.
11608finish_cmds=$lt_finish_cmds
11609
11610# Same as above, but a single script fragment to be evaled but not shown.
11611finish_eval=$lt_finish_eval
11612
11613# Take the output of nm and produce a listing of raw symbols and C names.
11614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11615
11616# Transform the output of nm in a proper C declaration
11617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11618
11619# Transform the output of nm in a C name address pair
11620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11621
11622# This is the shared library runtime path variable.
11623runpath_var=$runpath_var
11624
11625# This is the shared library path variable.
11626shlibpath_var=$shlibpath_var
11627
11628# Is shlibpath searched before the hard-coded library search path?
11629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11630
11631# How to hardcode a shared library path into an executable.
11632hardcode_action=$hardcode_action
11633
11634# Whether we should hardcode library paths into libraries.
11635hardcode_into_libs=$hardcode_into_libs
11636
11637# Flag to hardcode \$libdir into a binary during linking.
11638# This must work even if \$libdir does not exist.
11639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11640
11641# If ld is used when linking, flag to hardcode \$libdir into
11642# a binary during linking. This must work even if \$libdir does
11643# not exist.
11644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11645
11646# Whether we need a single -rpath flag with a separated argument.
11647hardcode_libdir_separator=$lt_hardcode_libdir_separator
11648
11649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11650# resulting binary.
11651hardcode_direct=$hardcode_direct
11652
11653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11654# resulting binary.
11655hardcode_minus_L=$hardcode_minus_L
11656
11657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11658# the resulting binary.
11659hardcode_shlibpath_var=$hardcode_shlibpath_var
11660
11661# Set to yes if building a shared library automatically hardcodes DIR into the library
11662# and all subsequent libraries and executables linked against it.
11663hardcode_automatic=$hardcode_automatic
11664
11665# Variables whose values should be saved in libtool wrapper scripts and
11666# restored at relink time.
11667variables_saved_for_relink="$variables_saved_for_relink"
11668
11669# Whether libtool must link a program against all its dependency libraries.
11670link_all_deplibs=$link_all_deplibs
11671
11672# Compile-time system search path for libraries
11673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11674
11675# Run-time system search path for libraries
11676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11677
11678# Fix the shell variable \$srcfile for the compiler.
11679fix_srcfile_path="$fix_srcfile_path"
11680
11681# Set to yes if exported symbols are required.
11682always_export_symbols=$always_export_symbols
11683
11684# The commands to list exported symbols.
11685export_symbols_cmds=$lt_export_symbols_cmds
11686
11687# The commands to extract the exported symbol list from a shared archive.
11688extract_expsyms_cmds=$lt_extract_expsyms_cmds
11689
11690# Symbols that should not be listed in the preloaded symbols.
11691exclude_expsyms=$lt_exclude_expsyms
11692
11693# Symbols that must always be exported.
11694include_expsyms=$lt_include_expsyms
11695
11696# ### END LIBTOOL CONFIG
11697
11698__EOF__
11699
11700
11701  case $host_os in
11702  aix3*)
11703    cat <<\EOF >> "$cfgfile"
11704
11705# AIX sometimes has problems with the GCC collect2 program.  For some
11706# reason, if we set the COLLECT_NAMES environment variable, the problems
11707# vanish in a puff of smoke.
11708if test "X${COLLECT_NAMES+set}" != Xset; then
11709  COLLECT_NAMES=
11710  export COLLECT_NAMES
11711fi
11712EOF
11713    ;;
11714  esac
11715
11716  # We use sed instead of cat because bash on DJGPP gets confused if
11717  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11718  # text mode, it properly converts lines to CR/LF.  This bash problem
11719  # is reportedly fixed, but why not run on old versions too?
11720  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11721
11722  mv -f "$cfgfile" "$ofile" || \
11723    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11724  chmod +x "$ofile"
11725
11726else
11727  # If there is no Makefile yet, we rely on a make rule to execute
11728  # `config.status --recheck' to rerun these tests and create the
11729  # libtool script then.
11730  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11731  if test -f "$ltmain_in"; then
11732    test -f Makefile && make "$ltmain"
11733  fi
11734fi
11735
11736
11737ac_ext=c
11738ac_cpp='$CPP $CPPFLAGS'
11739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11741ac_compiler_gnu=$ac_cv_c_compiler_gnu
11742
11743CC="$lt_save_CC"
11744
11745
11746# Check whether --with-tags was given.
11747if test "${with_tags+set}" = set; then
11748  withval=$with_tags; tagnames="$withval"
11749fi
11750
11751
11752if test -f "$ltmain" && test -n "$tagnames"; then
11753  if test ! -f "${ofile}"; then
11754    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11755echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11756  fi
11757
11758  if test -z "$LTCC"; then
11759    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11760    if test -z "$LTCC"; then
11761      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11762echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11763    else
11764      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11765echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11766    fi
11767  fi
11768
11769  # Extract list of available tagged configurations in $ofile.
11770  # Note that this assumes the entire list is on one line.
11771  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11772
11773  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11774  for tagname in $tagnames; do
11775    IFS="$lt_save_ifs"
11776    # Check whether tagname contains only valid characters
11777    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11778    "") ;;
11779    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11780echo "$as_me: error: invalid tag name: $tagname" >&2;}
11781   { (exit 1); exit 1; }; }
11782	;;
11783    esac
11784
11785    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11786    then
11787      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11788echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11789   { (exit 1); exit 1; }; }
11790    fi
11791
11792    # Update the list of available tags.
11793    if test -n "$tagname"; then
11794      echo appending configuration tag \"$tagname\" to $ofile
11795
11796      case $tagname in
11797      CXX)
11798	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11799	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11800	    (test "X$CXX" != "Xg++"))) ; then
11801	  :
11802	else
11803	  tagname=""
11804	fi
11805	;;
11806
11807      F77)
11808	if test -n "$F77" && test "X$F77" != "Xno"; then
11809	  :
11810	else
11811	  tagname=""
11812	fi
11813	;;
11814
11815      GCJ)
11816	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11817	  :
11818	else
11819	  tagname=""
11820	fi
11821	;;
11822
11823      RC)
11824
11825
11826# Source file extension for RC test sources.
11827ac_ext=rc
11828
11829# Object file extension for compiled RC test sources.
11830objext=o
11831objext_RC=$objext
11832
11833# Code to be used in simple compile tests
11834lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11835
11836# Code to be used in simple link tests
11837lt_simple_link_test_code="$lt_simple_compile_test_code"
11838
11839# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11840
11841# If no C compiler was specified, use CC.
11842LTCC=${LTCC-"$CC"}
11843
11844# Allow CC to be a program name with arguments.
11845compiler=$CC
11846
11847
11848# save warnings/boilerplate of simple test code
11849ac_outfile=conftest.$ac_objext
11850printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11851eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11852_lt_compiler_boilerplate=`cat conftest.err`
11853$rm conftest*
11854
11855ac_outfile=conftest.$ac_objext
11856printf "$lt_simple_link_test_code" >conftest.$ac_ext
11857eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11858_lt_linker_boilerplate=`cat conftest.err`
11859$rm conftest*
11860
11861
11862# Allow CC to be a program name with arguments.
11863lt_save_CC="$CC"
11864CC=${RC-"windres"}
11865compiler=$CC
11866compiler_RC=$CC
11867for cc_temp in $compiler""; do
11868  case $cc_temp in
11869    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11870    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11871    \-*) ;;
11872    *) break;;
11873  esac
11874done
11875cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11876
11877lt_cv_prog_compiler_c_o_RC=yes
11878
11879# The else clause should only fire when bootstrapping the
11880# libtool distribution, otherwise you forgot to ship ltmain.sh
11881# with your package, and you will get complaints that there are
11882# no rules to generate ltmain.sh.
11883if test -f "$ltmain"; then
11884  # See if we are running on zsh, and set the options which allow our commands through
11885  # without removal of \ escapes.
11886  if test -n "${ZSH_VERSION+set}" ; then
11887    setopt NO_GLOB_SUBST
11888  fi
11889  # Now quote all the things that may contain metacharacters while being
11890  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11891  # variables and quote the copies for generation of the libtool script.
11892  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11893    SED SHELL STRIP \
11894    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11895    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11896    deplibs_check_method reload_flag reload_cmds need_locks \
11897    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11898    lt_cv_sys_global_symbol_to_c_name_address \
11899    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11900    old_postinstall_cmds old_postuninstall_cmds \
11901    compiler_RC \
11902    CC_RC \
11903    LD_RC \
11904    lt_prog_compiler_wl_RC \
11905    lt_prog_compiler_pic_RC \
11906    lt_prog_compiler_static_RC \
11907    lt_prog_compiler_no_builtin_flag_RC \
11908    export_dynamic_flag_spec_RC \
11909    thread_safe_flag_spec_RC \
11910    whole_archive_flag_spec_RC \
11911    enable_shared_with_static_runtimes_RC \
11912    old_archive_cmds_RC \
11913    old_archive_from_new_cmds_RC \
11914    predep_objects_RC \
11915    postdep_objects_RC \
11916    predeps_RC \
11917    postdeps_RC \
11918    compiler_lib_search_path_RC \
11919    archive_cmds_RC \
11920    archive_expsym_cmds_RC \
11921    postinstall_cmds_RC \
11922    postuninstall_cmds_RC \
11923    old_archive_from_expsyms_cmds_RC \
11924    allow_undefined_flag_RC \
11925    no_undefined_flag_RC \
11926    export_symbols_cmds_RC \
11927    hardcode_libdir_flag_spec_RC \
11928    hardcode_libdir_flag_spec_ld_RC \
11929    hardcode_libdir_separator_RC \
11930    hardcode_automatic_RC \
11931    module_cmds_RC \
11932    module_expsym_cmds_RC \
11933    lt_cv_prog_compiler_c_o_RC \
11934    exclude_expsyms_RC \
11935    include_expsyms_RC; do
11936
11937    case $var in
11938    old_archive_cmds_RC | \
11939    old_archive_from_new_cmds_RC | \
11940    archive_cmds_RC | \
11941    archive_expsym_cmds_RC | \
11942    module_cmds_RC | \
11943    module_expsym_cmds_RC | \
11944    old_archive_from_expsyms_cmds_RC | \
11945    export_symbols_cmds_RC | \
11946    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11947    postinstall_cmds | postuninstall_cmds | \
11948    old_postinstall_cmds | old_postuninstall_cmds | \
11949    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11950      # Double-quote double-evaled strings.
11951      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11952      ;;
11953    *)
11954      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11955      ;;
11956    esac
11957  done
11958
11959  case $lt_echo in
11960  *'\$0 --fallback-echo"')
11961    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11962    ;;
11963  esac
11964
11965cfgfile="$ofile"
11966
11967  cat <<__EOF__ >> "$cfgfile"
11968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11969
11970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11971
11972# Shell to use when invoking shell scripts.
11973SHELL=$lt_SHELL
11974
11975# Whether or not to build shared libraries.
11976build_libtool_libs=$enable_shared
11977
11978# Whether or not to build static libraries.
11979build_old_libs=$enable_static
11980
11981# Whether or not to add -lc for building shared libraries.
11982build_libtool_need_lc=$archive_cmds_need_lc_RC
11983
11984# Whether or not to disallow shared libs when runtime libs are static
11985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11986
11987# Whether or not to optimize for fast installation.
11988fast_install=$enable_fast_install
11989
11990# The host system.
11991host_alias=$host_alias
11992host=$host
11993host_os=$host_os
11994
11995# The build system.
11996build_alias=$build_alias
11997build=$build
11998build_os=$build_os
11999
12000# An echo program that does not interpret backslashes.
12001echo=$lt_echo
12002
12003# The archiver.
12004AR=$lt_AR
12005AR_FLAGS=$lt_AR_FLAGS
12006
12007# A C compiler.
12008LTCC=$lt_LTCC
12009
12010# A language-specific compiler.
12011CC=$lt_compiler_RC
12012
12013# Is the compiler the GNU C compiler?
12014with_gcc=$GCC_RC
12015
12016# An ERE matcher.
12017EGREP=$lt_EGREP
12018
12019# The linker used to build libraries.
12020LD=$lt_LD_RC
12021
12022# Whether we need hard or soft links.
12023LN_S=$lt_LN_S
12024
12025# A BSD-compatible nm program.
12026NM=$lt_NM
12027
12028# A symbol stripping program
12029STRIP=$lt_STRIP
12030
12031# Used to examine libraries when file_magic_cmd begins "file"
12032MAGIC_CMD=$MAGIC_CMD
12033
12034# Used on cygwin: DLL creation program.
12035DLLTOOL="$DLLTOOL"
12036
12037# Used on cygwin: object dumper.
12038OBJDUMP="$OBJDUMP"
12039
12040# Used on cygwin: assembler.
12041AS="$AS"
12042
12043# The name of the directory that contains temporary libtool files.
12044objdir=$objdir
12045
12046# How to create reloadable object files.
12047reload_flag=$lt_reload_flag
12048reload_cmds=$lt_reload_cmds
12049
12050# How to pass a linker flag through the compiler.
12051wl=$lt_lt_prog_compiler_wl_RC
12052
12053# Object file suffix (normally "o").
12054objext="$ac_objext"
12055
12056# Old archive suffix (normally "a").
12057libext="$libext"
12058
12059# Shared library suffix (normally ".so").
12060shrext_cmds='$shrext_cmds'
12061
12062# Executable file suffix (normally "").
12063exeext="$exeext"
12064
12065# Additional compiler flags for building library objects.
12066pic_flag=$lt_lt_prog_compiler_pic_RC
12067pic_mode=$pic_mode
12068
12069# What is the maximum length of a command?
12070max_cmd_len=$lt_cv_sys_max_cmd_len
12071
12072# Does compiler simultaneously support -c and -o options?
12073compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12074
12075# Must we lock files when doing compilation?
12076need_locks=$lt_need_locks
12077
12078# Do we need the lib prefix for modules?
12079need_lib_prefix=$need_lib_prefix
12080
12081# Do we need a version for libraries?
12082need_version=$need_version
12083
12084# Whether dlopen is supported.
12085dlopen_support=$enable_dlopen
12086
12087# Whether dlopen of programs is supported.
12088dlopen_self=$enable_dlopen_self
12089
12090# Whether dlopen of statically linked programs is supported.
12091dlopen_self_static=$enable_dlopen_self_static
12092
12093# Compiler flag to prevent dynamic linking.
12094link_static_flag=$lt_lt_prog_compiler_static_RC
12095
12096# Compiler flag to turn off builtin functions.
12097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12098
12099# Compiler flag to allow reflexive dlopens.
12100export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12101
12102# Compiler flag to generate shared objects directly from archives.
12103whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12104
12105# Compiler flag to generate thread-safe objects.
12106thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12107
12108# Library versioning type.
12109version_type=$version_type
12110
12111# Format of library name prefix.
12112libname_spec=$lt_libname_spec
12113
12114# List of archive names.  First name is the real one, the rest are links.
12115# The last name is the one that the linker finds with -lNAME.
12116library_names_spec=$lt_library_names_spec
12117
12118# The coded name of the library, if different from the real name.
12119soname_spec=$lt_soname_spec
12120
12121# Commands used to build and install an old-style archive.
12122RANLIB=$lt_RANLIB
12123old_archive_cmds=$lt_old_archive_cmds_RC
12124old_postinstall_cmds=$lt_old_postinstall_cmds
12125old_postuninstall_cmds=$lt_old_postuninstall_cmds
12126
12127# Create an old-style archive from a shared archive.
12128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12129
12130# Create a temporary old-style archive to link instead of a shared archive.
12131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12132
12133# Commands used to build and install a shared archive.
12134archive_cmds=$lt_archive_cmds_RC
12135archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12136postinstall_cmds=$lt_postinstall_cmds
12137postuninstall_cmds=$lt_postuninstall_cmds
12138
12139# Commands used to build a loadable module (assumed same as above if empty)
12140module_cmds=$lt_module_cmds_RC
12141module_expsym_cmds=$lt_module_expsym_cmds_RC
12142
12143# Commands to strip libraries.
12144old_striplib=$lt_old_striplib
12145striplib=$lt_striplib
12146
12147# Dependencies to place before the objects being linked to create a
12148# shared library.
12149predep_objects=$lt_predep_objects_RC
12150
12151# Dependencies to place after the objects being linked to create a
12152# shared library.
12153postdep_objects=$lt_postdep_objects_RC
12154
12155# Dependencies to place before the objects being linked to create a
12156# shared library.
12157predeps=$lt_predeps_RC
12158
12159# Dependencies to place after the objects being linked to create a
12160# shared library.
12161postdeps=$lt_postdeps_RC
12162
12163# The library search path used internally by the compiler when linking
12164# a shared library.
12165compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12166
12167# Method to check whether dependent libraries are shared objects.
12168deplibs_check_method=$lt_deplibs_check_method
12169
12170# Command to use when deplibs_check_method == file_magic.
12171file_magic_cmd=$lt_file_magic_cmd
12172
12173# Flag that allows shared libraries with undefined symbols to be built.
12174allow_undefined_flag=$lt_allow_undefined_flag_RC
12175
12176# Flag that forces no undefined symbols.
12177no_undefined_flag=$lt_no_undefined_flag_RC
12178
12179# Commands used to finish a libtool library installation in a directory.
12180finish_cmds=$lt_finish_cmds
12181
12182# Same as above, but a single script fragment to be evaled but not shown.
12183finish_eval=$lt_finish_eval
12184
12185# Take the output of nm and produce a listing of raw symbols and C names.
12186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12187
12188# Transform the output of nm in a proper C declaration
12189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12190
12191# Transform the output of nm in a C name address pair
12192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12193
12194# This is the shared library runtime path variable.
12195runpath_var=$runpath_var
12196
12197# This is the shared library path variable.
12198shlibpath_var=$shlibpath_var
12199
12200# Is shlibpath searched before the hard-coded library search path?
12201shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12202
12203# How to hardcode a shared library path into an executable.
12204hardcode_action=$hardcode_action_RC
12205
12206# Whether we should hardcode library paths into libraries.
12207hardcode_into_libs=$hardcode_into_libs
12208
12209# Flag to hardcode \$libdir into a binary during linking.
12210# This must work even if \$libdir does not exist.
12211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12212
12213# If ld is used when linking, flag to hardcode \$libdir into
12214# a binary during linking. This must work even if \$libdir does
12215# not exist.
12216hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12217
12218# Whether we need a single -rpath flag with a separated argument.
12219hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12220
12221# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12222# resulting binary.
12223hardcode_direct=$hardcode_direct_RC
12224
12225# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12226# resulting binary.
12227hardcode_minus_L=$hardcode_minus_L_RC
12228
12229# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12230# the resulting binary.
12231hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12232
12233# Set to yes if building a shared library automatically hardcodes DIR into the library
12234# and all subsequent libraries and executables linked against it.
12235hardcode_automatic=$hardcode_automatic_RC
12236
12237# Variables whose values should be saved in libtool wrapper scripts and
12238# restored at relink time.
12239variables_saved_for_relink="$variables_saved_for_relink"
12240
12241# Whether libtool must link a program against all its dependency libraries.
12242link_all_deplibs=$link_all_deplibs_RC
12243
12244# Compile-time system search path for libraries
12245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12246
12247# Run-time system search path for libraries
12248sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12249
12250# Fix the shell variable \$srcfile for the compiler.
12251fix_srcfile_path="$fix_srcfile_path_RC"
12252
12253# Set to yes if exported symbols are required.
12254always_export_symbols=$always_export_symbols_RC
12255
12256# The commands to list exported symbols.
12257export_symbols_cmds=$lt_export_symbols_cmds_RC
12258
12259# The commands to extract the exported symbol list from a shared archive.
12260extract_expsyms_cmds=$lt_extract_expsyms_cmds
12261
12262# Symbols that should not be listed in the preloaded symbols.
12263exclude_expsyms=$lt_exclude_expsyms_RC
12264
12265# Symbols that must always be exported.
12266include_expsyms=$lt_include_expsyms_RC
12267
12268# ### END LIBTOOL TAG CONFIG: $tagname
12269
12270__EOF__
12271
12272
12273else
12274  # If there is no Makefile yet, we rely on a make rule to execute
12275  # `config.status --recheck' to rerun these tests and create the
12276  # libtool script then.
12277  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12278  if test -f "$ltmain_in"; then
12279    test -f Makefile && make "$ltmain"
12280  fi
12281fi
12282
12283
12284ac_ext=c
12285ac_cpp='$CPP $CPPFLAGS'
12286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12288ac_compiler_gnu=$ac_cv_c_compiler_gnu
12289
12290CC="$lt_save_CC"
12291
12292	;;
12293
12294      *)
12295	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12296echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12297   { (exit 1); exit 1; }; }
12298	;;
12299      esac
12300
12301      # Append the new tag name to the list of available tags.
12302      if test -n "$tagname" ; then
12303      available_tags="$available_tags $tagname"
12304    fi
12305    fi
12306  done
12307  IFS="$lt_save_ifs"
12308
12309  # Now substitute the updated list of available tags.
12310  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12311    mv "${ofile}T" "$ofile"
12312    chmod +x "$ofile"
12313  else
12314    rm -f "${ofile}T"
12315    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12316echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12317   { (exit 1); exit 1; }; }
12318  fi
12319fi
12320
12321
12322
12323# This can be used to rebuild libtool when needed
12324LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12325
12326# Always use our own libtool.
12327LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12328
12329# Prevent multiple expansion
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340ol_link_perl=no
12341if test $ol_enable_perl != no ; then
12342	# Extract the first word of "perl", so it can be a program name with args.
12343set dummy perl; ac_word=$2
12344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12346if test "${ac_cv_path_PERLBIN+set}" = set; then
12347  echo $ECHO_N "(cached) $ECHO_C" >&6
12348else
12349  case $PERLBIN in
12350  [\\/]* | ?:[\\/]*)
12351  ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12352  ;;
12353  *)
12354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357  IFS=$as_save_IFS
12358  test -z "$as_dir" && as_dir=.
12359  for ac_exec_ext in '' $ac_executable_extensions; do
12360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361    ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363    break 2
12364  fi
12365done
12366done
12367IFS=$as_save_IFS
12368
12369  test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12370  ;;
12371esac
12372fi
12373PERLBIN=$ac_cv_path_PERLBIN
12374if test -n "$PERLBIN"; then
12375  { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12376echo "${ECHO_T}$PERLBIN" >&6; }
12377else
12378  { echo "$as_me:$LINENO: result: no" >&5
12379echo "${ECHO_T}no" >&6; }
12380fi
12381
12382
12383
12384	if test "no$PERLBIN" = "no" ; then
12385		if test $ol_enable_perl = yes ; then
12386			{ { echo "$as_me:$LINENO: error: could not locate perl" >&5
12387echo "$as_me: error: could not locate perl" >&2;}
12388   { (exit 1); exit 1; }; }
12389		fi
12390
12391	else
12392		PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12393		PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12394
12395		if test x"$ol_enable_perl" = "xyes" ; then
12396			SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12397		else
12398			MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12399		fi
12400				ol_link_perl=yes
12401	fi
12402fi
12403
12404ac_ext=c
12405ac_cpp='$CPP $CPPFLAGS'
12406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12408ac_compiler_gnu=$ac_cv_c_compiler_gnu
12409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12411# On Suns, sometimes $CPP names a directory.
12412if test -n "$CPP" && test -d "$CPP"; then
12413  CPP=
12414fi
12415if test -z "$CPP"; then
12416  if test "${ac_cv_prog_CPP+set}" = set; then
12417  echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419      # Double quotes because CPP needs to be expanded
12420    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12421    do
12422      ac_preproc_ok=false
12423for ac_c_preproc_warn_flag in '' yes
12424do
12425  # Use a header file that comes with gcc, so configuring glibc
12426  # with a fresh cross-compiler works.
12427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428  # <limits.h> exists even on freestanding compilers.
12429  # On the NeXT, cc -E runs the code through the compiler's parser,
12430  # not just through cpp. "Syntax error" is here to catch this case.
12431  cat >conftest.$ac_ext <<_ACEOF
12432/* confdefs.h.  */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h.  */
12437#ifdef __STDC__
12438# include <limits.h>
12439#else
12440# include <assert.h>
12441#endif
12442		     Syntax error
12443_ACEOF
12444if { (ac_try="$ac_cpp conftest.$ac_ext"
12445case "(($ac_try" in
12446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447  *) ac_try_echo=$ac_try;;
12448esac
12449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12451  ac_status=$?
12452  grep -v '^ *+' conftest.er1 >conftest.err
12453  rm -f conftest.er1
12454  cat conftest.err >&5
12455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456  (exit $ac_status); } >/dev/null && {
12457	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12458	 test ! -s conftest.err
12459       }; then
12460  :
12461else
12462  echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465  # Broken: fails on valid input.
12466continue
12467fi
12468
12469rm -f conftest.err conftest.$ac_ext
12470
12471  # OK, works on sane cases.  Now check whether nonexistent headers
12472  # can be detected and how.
12473  cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h.  */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h.  */
12479#include <ac_nonexistent.h>
12480_ACEOF
12481if { (ac_try="$ac_cpp conftest.$ac_ext"
12482case "(($ac_try" in
12483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484  *) ac_try_echo=$ac_try;;
12485esac
12486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12488  ac_status=$?
12489  grep -v '^ *+' conftest.er1 >conftest.err
12490  rm -f conftest.er1
12491  cat conftest.err >&5
12492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493  (exit $ac_status); } >/dev/null && {
12494	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12495	 test ! -s conftest.err
12496       }; then
12497  # Broken: success on invalid input.
12498continue
12499else
12500  echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503  # Passes both tests.
12504ac_preproc_ok=:
12505break
12506fi
12507
12508rm -f conftest.err conftest.$ac_ext
12509
12510done
12511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12512rm -f conftest.err conftest.$ac_ext
12513if $ac_preproc_ok; then
12514  break
12515fi
12516
12517    done
12518    ac_cv_prog_CPP=$CPP
12519
12520fi
12521  CPP=$ac_cv_prog_CPP
12522else
12523  ac_cv_prog_CPP=$CPP
12524fi
12525{ echo "$as_me:$LINENO: result: $CPP" >&5
12526echo "${ECHO_T}$CPP" >&6; }
12527ac_preproc_ok=false
12528for ac_c_preproc_warn_flag in '' yes
12529do
12530  # Use a header file that comes with gcc, so configuring glibc
12531  # with a fresh cross-compiler works.
12532  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12533  # <limits.h> exists even on freestanding compilers.
12534  # On the NeXT, cc -E runs the code through the compiler's parser,
12535  # not just through cpp. "Syntax error" is here to catch this case.
12536  cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h.  */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h.  */
12542#ifdef __STDC__
12543# include <limits.h>
12544#else
12545# include <assert.h>
12546#endif
12547		     Syntax error
12548_ACEOF
12549if { (ac_try="$ac_cpp conftest.$ac_ext"
12550case "(($ac_try" in
12551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552  *) ac_try_echo=$ac_try;;
12553esac
12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12556  ac_status=$?
12557  grep -v '^ *+' conftest.er1 >conftest.err
12558  rm -f conftest.er1
12559  cat conftest.err >&5
12560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561  (exit $ac_status); } >/dev/null && {
12562	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12563	 test ! -s conftest.err
12564       }; then
12565  :
12566else
12567  echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570  # Broken: fails on valid input.
12571continue
12572fi
12573
12574rm -f conftest.err conftest.$ac_ext
12575
12576  # OK, works on sane cases.  Now check whether nonexistent headers
12577  # can be detected and how.
12578  cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h.  */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h.  */
12584#include <ac_nonexistent.h>
12585_ACEOF
12586if { (ac_try="$ac_cpp conftest.$ac_ext"
12587case "(($ac_try" in
12588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589  *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12593  ac_status=$?
12594  grep -v '^ *+' conftest.er1 >conftest.err
12595  rm -f conftest.er1
12596  cat conftest.err >&5
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); } >/dev/null && {
12599	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12600	 test ! -s conftest.err
12601       }; then
12602  # Broken: success on invalid input.
12603continue
12604else
12605  echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608  # Passes both tests.
12609ac_preproc_ok=:
12610break
12611fi
12612
12613rm -f conftest.err conftest.$ac_ext
12614
12615done
12616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12617rm -f conftest.err conftest.$ac_ext
12618if $ac_preproc_ok; then
12619  :
12620else
12621  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12622See \`config.log' for more details." >&5
12623echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12624See \`config.log' for more details." >&2;}
12625   { (exit 1); exit 1; }; }
12626fi
12627
12628ac_ext=c
12629ac_cpp='$CPP $CPPFLAGS'
12630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633
12634{ echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12635echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12636if test "${ol_cv_msvc+set}" = set; then
12637  echo $ECHO_N "(cached) $ECHO_C" >&6
12638else
12639  cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h.  */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h.  */
12645
12646#ifndef _MSC_VER
12647#include <__FOO__/generate_error.h>
12648#endif
12649
12650_ACEOF
12651if { (ac_try="$ac_cpp conftest.$ac_ext"
12652case "(($ac_try" in
12653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654  *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12658  ac_status=$?
12659  grep -v '^ *+' conftest.er1 >conftest.err
12660  rm -f conftest.er1
12661  cat conftest.err >&5
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); } >/dev/null && {
12664	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12665	 test ! -s conftest.err
12666       }; then
12667  ol_cv_msvc=yes
12668else
12669  echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672  ol_cv_msvc=no
12673fi
12674
12675rm -f conftest.err conftest.$ac_ext
12676fi
12677{ echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12678echo "${ECHO_T}$ol_cv_msvc" >&6; }
12679
12680case $host_os in
12681  *mingw32* ) ac_cv_mingw32=yes ;;
12682  *cygwin* ) ac_cv_cygwin=yes ;;
12683  *interix* ) ac_cv_interix=yes ;;
12684esac
12685
12686
12687
12688
12689cat >>confdefs.h <<_ACEOF
12690#define EXEEXT "${EXEEXT}"
12691_ACEOF
12692
12693
12694{ echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12695echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12696if test "${ac_cv_lib_be_be_app+set}" = set; then
12697  echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699  ac_check_lib_save_LIBS=$LIBS
12700LIBS="-lbe -lroot -lnet $LIBS"
12701cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h.  */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h.  */
12707
12708/* Override any GCC internal prototype to avoid an error.
12709   Use char because int might match the return type of a GCC
12710   builtin and then its argument prototype would still apply.  */
12711#ifdef __cplusplus
12712extern "C"
12713#endif
12714char be_app ();
12715int
12716main ()
12717{
12718return be_app ();
12719  ;
12720  return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext conftest$ac_exeext
12724if { (ac_try="$ac_link"
12725case "(($ac_try" in
12726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727  *) ac_try_echo=$ac_try;;
12728esac
12729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730  (eval "$ac_link") 2>conftest.er1
12731  ac_status=$?
12732  grep -v '^ *+' conftest.er1 >conftest.err
12733  rm -f conftest.er1
12734  cat conftest.err >&5
12735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736  (exit $ac_status); } && {
12737	 test -z "$ac_c_werror_flag" ||
12738	 test ! -s conftest.err
12739       } && test -s conftest$ac_exeext &&
12740       $as_test_x conftest$ac_exeext; then
12741  ac_cv_lib_be_be_app=yes
12742else
12743  echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746	ac_cv_lib_be_be_app=no
12747fi
12748
12749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750      conftest$ac_exeext conftest.$ac_ext
12751LIBS=$ac_check_lib_save_LIBS
12752fi
12753{ echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12754echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12755if test $ac_cv_lib_be_be_app = yes; then
12756  LIBS="$LIBS -lbe -lroot -lnet"
12757else
12758  :
12759fi
12760
12761
12762ac_ext=c
12763ac_cpp='$CPP $CPPFLAGS'
12764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12766ac_compiler_gnu=$ac_cv_c_compiler_gnu
12767if test -n "$ac_tool_prefix"; then
12768  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12769set dummy ${ac_tool_prefix}gcc; ac_word=$2
12770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12772if test "${ac_cv_prog_CC+set}" = set; then
12773  echo $ECHO_N "(cached) $ECHO_C" >&6
12774else
12775  if test -n "$CC"; then
12776  ac_cv_prog_CC="$CC" # Let the user override the test.
12777else
12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781  IFS=$as_save_IFS
12782  test -z "$as_dir" && as_dir=.
12783  for ac_exec_ext in '' $ac_executable_extensions; do
12784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12787    break 2
12788  fi
12789done
12790done
12791IFS=$as_save_IFS
12792
12793fi
12794fi
12795CC=$ac_cv_prog_CC
12796if test -n "$CC"; then
12797  { echo "$as_me:$LINENO: result: $CC" >&5
12798echo "${ECHO_T}$CC" >&6; }
12799else
12800  { echo "$as_me:$LINENO: result: no" >&5
12801echo "${ECHO_T}no" >&6; }
12802fi
12803
12804
12805fi
12806if test -z "$ac_cv_prog_CC"; then
12807  ac_ct_CC=$CC
12808  # Extract the first word of "gcc", so it can be a program name with args.
12809set dummy gcc; ac_word=$2
12810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12812if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12813  echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815  if test -n "$ac_ct_CC"; then
12816  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12817else
12818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821  IFS=$as_save_IFS
12822  test -z "$as_dir" && as_dir=.
12823  for ac_exec_ext in '' $ac_executable_extensions; do
12824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825    ac_cv_prog_ac_ct_CC="gcc"
12826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12827    break 2
12828  fi
12829done
12830done
12831IFS=$as_save_IFS
12832
12833fi
12834fi
12835ac_ct_CC=$ac_cv_prog_ac_ct_CC
12836if test -n "$ac_ct_CC"; then
12837  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12838echo "${ECHO_T}$ac_ct_CC" >&6; }
12839else
12840  { echo "$as_me:$LINENO: result: no" >&5
12841echo "${ECHO_T}no" >&6; }
12842fi
12843
12844  if test "x$ac_ct_CC" = x; then
12845    CC=""
12846  else
12847    case $cross_compiling:$ac_tool_warned in
12848yes:)
12849{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12850whose name does not start with the host triplet.  If you think this
12851configuration is useful to you, please write to autoconf@gnu.org." >&5
12852echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12853whose name does not start with the host triplet.  If you think this
12854configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12855ac_tool_warned=yes ;;
12856esac
12857    CC=$ac_ct_CC
12858  fi
12859else
12860  CC="$ac_cv_prog_CC"
12861fi
12862
12863if test -z "$CC"; then
12864          if test -n "$ac_tool_prefix"; then
12865    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12866set dummy ${ac_tool_prefix}cc; ac_word=$2
12867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12869if test "${ac_cv_prog_CC+set}" = set; then
12870  echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
12872  if test -n "$CC"; then
12873  ac_cv_prog_CC="$CC" # Let the user override the test.
12874else
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878  IFS=$as_save_IFS
12879  test -z "$as_dir" && as_dir=.
12880  for ac_exec_ext in '' $ac_executable_extensions; do
12881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882    ac_cv_prog_CC="${ac_tool_prefix}cc"
12883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884    break 2
12885  fi
12886done
12887done
12888IFS=$as_save_IFS
12889
12890fi
12891fi
12892CC=$ac_cv_prog_CC
12893if test -n "$CC"; then
12894  { echo "$as_me:$LINENO: result: $CC" >&5
12895echo "${ECHO_T}$CC" >&6; }
12896else
12897  { echo "$as_me:$LINENO: result: no" >&5
12898echo "${ECHO_T}no" >&6; }
12899fi
12900
12901
12902  fi
12903fi
12904if test -z "$CC"; then
12905  # Extract the first word of "cc", so it can be a program name with args.
12906set dummy cc; ac_word=$2
12907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12909if test "${ac_cv_prog_CC+set}" = set; then
12910  echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912  if test -n "$CC"; then
12913  ac_cv_prog_CC="$CC" # Let the user override the test.
12914else
12915  ac_prog_rejected=no
12916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $PATH
12918do
12919  IFS=$as_save_IFS
12920  test -z "$as_dir" && as_dir=.
12921  for ac_exec_ext in '' $ac_executable_extensions; do
12922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12923    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12924       ac_prog_rejected=yes
12925       continue
12926     fi
12927    ac_cv_prog_CC="cc"
12928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929    break 2
12930  fi
12931done
12932done
12933IFS=$as_save_IFS
12934
12935if test $ac_prog_rejected = yes; then
12936  # We found a bogon in the path, so make sure we never use it.
12937  set dummy $ac_cv_prog_CC
12938  shift
12939  if test $# != 0; then
12940    # We chose a different compiler from the bogus one.
12941    # However, it has the same basename, so the bogon will be chosen
12942    # first if we set CC to just the basename; use the full file name.
12943    shift
12944    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12945  fi
12946fi
12947fi
12948fi
12949CC=$ac_cv_prog_CC
12950if test -n "$CC"; then
12951  { echo "$as_me:$LINENO: result: $CC" >&5
12952echo "${ECHO_T}$CC" >&6; }
12953else
12954  { echo "$as_me:$LINENO: result: no" >&5
12955echo "${ECHO_T}no" >&6; }
12956fi
12957
12958
12959fi
12960if test -z "$CC"; then
12961  if test -n "$ac_tool_prefix"; then
12962  for ac_prog in cl.exe
12963  do
12964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12968if test "${ac_cv_prog_CC+set}" = set; then
12969  echo $ECHO_N "(cached) $ECHO_C" >&6
12970else
12971  if test -n "$CC"; then
12972  ac_cv_prog_CC="$CC" # Let the user override the test.
12973else
12974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975for as_dir in $PATH
12976do
12977  IFS=$as_save_IFS
12978  test -z "$as_dir" && as_dir=.
12979  for ac_exec_ext in '' $ac_executable_extensions; do
12980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12983    break 2
12984  fi
12985done
12986done
12987IFS=$as_save_IFS
12988
12989fi
12990fi
12991CC=$ac_cv_prog_CC
12992if test -n "$CC"; then
12993  { echo "$as_me:$LINENO: result: $CC" >&5
12994echo "${ECHO_T}$CC" >&6; }
12995else
12996  { echo "$as_me:$LINENO: result: no" >&5
12997echo "${ECHO_T}no" >&6; }
12998fi
12999
13000
13001    test -n "$CC" && break
13002  done
13003fi
13004if test -z "$CC"; then
13005  ac_ct_CC=$CC
13006  for ac_prog in cl.exe
13007do
13008  # Extract the first word of "$ac_prog", so it can be a program name with args.
13009set dummy $ac_prog; ac_word=$2
13010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13013  echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015  if test -n "$ac_ct_CC"; then
13016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  test -z "$as_dir" && as_dir=.
13023  for ac_exec_ext in '' $ac_executable_extensions; do
13024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025    ac_cv_prog_ac_ct_CC="$ac_prog"
13026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035ac_ct_CC=$ac_cv_prog_ac_ct_CC
13036if test -n "$ac_ct_CC"; then
13037  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13038echo "${ECHO_T}$ac_ct_CC" >&6; }
13039else
13040  { echo "$as_me:$LINENO: result: no" >&5
13041echo "${ECHO_T}no" >&6; }
13042fi
13043
13044
13045  test -n "$ac_ct_CC" && break
13046done
13047
13048  if test "x$ac_ct_CC" = x; then
13049    CC=""
13050  else
13051    case $cross_compiling:$ac_tool_warned in
13052yes:)
13053{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13054whose name does not start with the host triplet.  If you think this
13055configuration is useful to you, please write to autoconf@gnu.org." >&5
13056echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13057whose name does not start with the host triplet.  If you think this
13058configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13059ac_tool_warned=yes ;;
13060esac
13061    CC=$ac_ct_CC
13062  fi
13063fi
13064
13065fi
13066
13067
13068test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13069See \`config.log' for more details." >&5
13070echo "$as_me: error: no acceptable C compiler found in \$PATH
13071See \`config.log' for more details." >&2;}
13072   { (exit 1); exit 1; }; }
13073
13074# Provide some information about the compiler.
13075echo "$as_me:$LINENO: checking for C compiler version" >&5
13076ac_compiler=`set X $ac_compile; echo $2`
13077{ (ac_try="$ac_compiler --version >&5"
13078case "(($ac_try" in
13079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080  *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083  (eval "$ac_compiler --version >&5") 2>&5
13084  ac_status=$?
13085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086  (exit $ac_status); }
13087{ (ac_try="$ac_compiler -v >&5"
13088case "(($ac_try" in
13089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090  *) ac_try_echo=$ac_try;;
13091esac
13092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093  (eval "$ac_compiler -v >&5") 2>&5
13094  ac_status=$?
13095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096  (exit $ac_status); }
13097{ (ac_try="$ac_compiler -V >&5"
13098case "(($ac_try" in
13099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100  *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103  (eval "$ac_compiler -V >&5") 2>&5
13104  ac_status=$?
13105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106  (exit $ac_status); }
13107
13108{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13109echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13110if test "${ac_cv_c_compiler_gnu+set}" = set; then
13111  echo $ECHO_N "(cached) $ECHO_C" >&6
13112else
13113  cat >conftest.$ac_ext <<_ACEOF
13114/* confdefs.h.  */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h.  */
13119
13120int
13121main ()
13122{
13123#ifndef __GNUC__
13124       choke me
13125#endif
13126
13127  ;
13128  return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext
13132if { (ac_try="$ac_compile"
13133case "(($ac_try" in
13134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135  *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138  (eval "$ac_compile") 2>conftest.er1
13139  ac_status=$?
13140  grep -v '^ *+' conftest.er1 >conftest.err
13141  rm -f conftest.er1
13142  cat conftest.err >&5
13143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144  (exit $ac_status); } && {
13145	 test -z "$ac_c_werror_flag" ||
13146	 test ! -s conftest.err
13147       } && test -s conftest.$ac_objext; then
13148  ac_compiler_gnu=yes
13149else
13150  echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153	ac_compiler_gnu=no
13154fi
13155
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157ac_cv_c_compiler_gnu=$ac_compiler_gnu
13158
13159fi
13160{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13161echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13162GCC=`test $ac_compiler_gnu = yes && echo yes`
13163ac_test_CFLAGS=${CFLAGS+set}
13164ac_save_CFLAGS=$CFLAGS
13165{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13166echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13167if test "${ac_cv_prog_cc_g+set}" = set; then
13168  echo $ECHO_N "(cached) $ECHO_C" >&6
13169else
13170  ac_save_c_werror_flag=$ac_c_werror_flag
13171   ac_c_werror_flag=yes
13172   ac_cv_prog_cc_g=no
13173   CFLAGS="-g"
13174   cat >conftest.$ac_ext <<_ACEOF
13175/* confdefs.h.  */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h.  */
13180
13181int
13182main ()
13183{
13184
13185  ;
13186  return 0;
13187}
13188_ACEOF
13189rm -f conftest.$ac_objext
13190if { (ac_try="$ac_compile"
13191case "(($ac_try" in
13192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193  *) ac_try_echo=$ac_try;;
13194esac
13195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196  (eval "$ac_compile") 2>conftest.er1
13197  ac_status=$?
13198  grep -v '^ *+' conftest.er1 >conftest.err
13199  rm -f conftest.er1
13200  cat conftest.err >&5
13201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202  (exit $ac_status); } && {
13203	 test -z "$ac_c_werror_flag" ||
13204	 test ! -s conftest.err
13205       } && test -s conftest.$ac_objext; then
13206  ac_cv_prog_cc_g=yes
13207else
13208  echo "$as_me: failed program was:" >&5
13209sed 's/^/| /' conftest.$ac_ext >&5
13210
13211	CFLAGS=""
13212      cat >conftest.$ac_ext <<_ACEOF
13213/* confdefs.h.  */
13214_ACEOF
13215cat confdefs.h >>conftest.$ac_ext
13216cat >>conftest.$ac_ext <<_ACEOF
13217/* end confdefs.h.  */
13218
13219int
13220main ()
13221{
13222
13223  ;
13224  return 0;
13225}
13226_ACEOF
13227rm -f conftest.$ac_objext
13228if { (ac_try="$ac_compile"
13229case "(($ac_try" in
13230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231  *) ac_try_echo=$ac_try;;
13232esac
13233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234  (eval "$ac_compile") 2>conftest.er1
13235  ac_status=$?
13236  grep -v '^ *+' conftest.er1 >conftest.err
13237  rm -f conftest.er1
13238  cat conftest.err >&5
13239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240  (exit $ac_status); } && {
13241	 test -z "$ac_c_werror_flag" ||
13242	 test ! -s conftest.err
13243       } && test -s conftest.$ac_objext; then
13244  :
13245else
13246  echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249	ac_c_werror_flag=$ac_save_c_werror_flag
13250	 CFLAGS="-g"
13251	 cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h.  */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h.  */
13257
13258int
13259main ()
13260{
13261
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext
13267if { (ac_try="$ac_compile"
13268case "(($ac_try" in
13269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270  *) ac_try_echo=$ac_try;;
13271esac
13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273  (eval "$ac_compile") 2>conftest.er1
13274  ac_status=$?
13275  grep -v '^ *+' conftest.er1 >conftest.err
13276  rm -f conftest.er1
13277  cat conftest.err >&5
13278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279  (exit $ac_status); } && {
13280	 test -z "$ac_c_werror_flag" ||
13281	 test ! -s conftest.err
13282       } && test -s conftest.$ac_objext; then
13283  ac_cv_prog_cc_g=yes
13284else
13285  echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288
13289fi
13290
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292fi
13293
13294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295fi
13296
13297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298   ac_c_werror_flag=$ac_save_c_werror_flag
13299fi
13300{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13301echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13302if test "$ac_test_CFLAGS" = set; then
13303  CFLAGS=$ac_save_CFLAGS
13304elif test $ac_cv_prog_cc_g = yes; then
13305  if test "$GCC" = yes; then
13306    CFLAGS="-g -O2"
13307  else
13308    CFLAGS="-g"
13309  fi
13310else
13311  if test "$GCC" = yes; then
13312    CFLAGS="-O2"
13313  else
13314    CFLAGS=
13315  fi
13316fi
13317{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13318echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13319if test "${ac_cv_prog_cc_c89+set}" = set; then
13320  echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
13322  ac_cv_prog_cc_c89=no
13323ac_save_CC=$CC
13324cat >conftest.$ac_ext <<_ACEOF
13325/* confdefs.h.  */
13326_ACEOF
13327cat confdefs.h >>conftest.$ac_ext
13328cat >>conftest.$ac_ext <<_ACEOF
13329/* end confdefs.h.  */
13330#include <stdarg.h>
13331#include <stdio.h>
13332#include <sys/types.h>
13333#include <sys/stat.h>
13334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13335struct buf { int x; };
13336FILE * (*rcsopen) (struct buf *, struct stat *, int);
13337static char *e (p, i)
13338     char **p;
13339     int i;
13340{
13341  return p[i];
13342}
13343static char *f (char * (*g) (char **, int), char **p, ...)
13344{
13345  char *s;
13346  va_list v;
13347  va_start (v,p);
13348  s = g (p, va_arg (v,int));
13349  va_end (v);
13350  return s;
13351}
13352
13353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13354   function prototypes and stuff, but not '\xHH' hex character constants.
13355   These don't provoke an error unfortunately, instead are silently treated
13356   as 'x'.  The following induces an error, until -std is added to get
13357   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13358   array size at least.  It's necessary to write '\x00'==0 to get something
13359   that's true only with -std.  */
13360int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13361
13362/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13363   inside strings and character constants.  */
13364#define FOO(x) 'x'
13365int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13366
13367int test (int i, double x);
13368struct s1 {int (*f) (int a);};
13369struct s2 {int (*f) (double a);};
13370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13371int argc;
13372char **argv;
13373int
13374main ()
13375{
13376return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13377  ;
13378  return 0;
13379}
13380_ACEOF
13381for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13382	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13383do
13384  CC="$ac_save_CC $ac_arg"
13385  rm -f conftest.$ac_objext
13386if { (ac_try="$ac_compile"
13387case "(($ac_try" in
13388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389  *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392  (eval "$ac_compile") 2>conftest.er1
13393  ac_status=$?
13394  grep -v '^ *+' conftest.er1 >conftest.err
13395  rm -f conftest.er1
13396  cat conftest.err >&5
13397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398  (exit $ac_status); } && {
13399	 test -z "$ac_c_werror_flag" ||
13400	 test ! -s conftest.err
13401       } && test -s conftest.$ac_objext; then
13402  ac_cv_prog_cc_c89=$ac_arg
13403else
13404  echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407
13408fi
13409
13410rm -f core conftest.err conftest.$ac_objext
13411  test "x$ac_cv_prog_cc_c89" != "xno" && break
13412done
13413rm -f conftest.$ac_ext
13414CC=$ac_save_CC
13415
13416fi
13417# AC_CACHE_VAL
13418case "x$ac_cv_prog_cc_c89" in
13419  x)
13420    { echo "$as_me:$LINENO: result: none needed" >&5
13421echo "${ECHO_T}none needed" >&6; } ;;
13422  xno)
13423    { echo "$as_me:$LINENO: result: unsupported" >&5
13424echo "${ECHO_T}unsupported" >&6; } ;;
13425  *)
13426    CC="$CC $ac_cv_prog_cc_c89"
13427    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13428echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13429esac
13430
13431
13432ac_ext=c
13433ac_cpp='$CPP $CPPFLAGS'
13434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13436ac_compiler_gnu=$ac_cv_c_compiler_gnu
13437
13438depcc="$CC"   am_compiler_list=
13439
13440{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13442if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13443  echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13446  # We make a subdir and do the tests there.  Otherwise we can end up
13447  # making bogus files that we don't know about and never remove.  For
13448  # instance it was reported that on HP-UX the gcc test will end up
13449  # making a dummy file named `D' -- because `-MD' means `put the output
13450  # in D'.
13451  mkdir conftest.dir
13452  # Copy depcomp to subdir because otherwise we won't find it if we're
13453  # using a relative directory.
13454  cp "$am_depcomp" conftest.dir
13455  cd conftest.dir
13456  # We will build objects and dependencies in a subdirectory because
13457  # it helps to detect inapplicable dependency modes.  For instance
13458  # both Tru64's cc and ICC support -MD to output dependencies as a
13459  # side effect of compilation, but ICC will put the dependencies in
13460  # the current directory while Tru64 will put them in the object
13461  # directory.
13462  mkdir sub
13463
13464  am_cv_CC_dependencies_compiler_type=none
13465  if test "$am_compiler_list" = ""; then
13466     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13467  fi
13468  for depmode in $am_compiler_list; do
13469    # Setup a source with many dependencies, because some compilers
13470    # like to wrap large dependency lists on column 80 (with \), and
13471    # we should not choose a depcomp mode which is confused by this.
13472    #
13473    # We need to recreate these files for each test, as the compiler may
13474    # overwrite some of them when testing with obscure command lines.
13475    # This happens at least with the AIX C compiler.
13476    : > sub/conftest.c
13477    for i in 1 2 3 4 5 6; do
13478      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13479      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13480      # Solaris 8's {/usr,}/bin/sh.
13481      touch sub/conftst$i.h
13482    done
13483    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13484
13485    case $depmode in
13486    nosideeffect)
13487      # after this tag, mechanisms are not by side-effect, so they'll
13488      # only be used when explicitly requested
13489      if test "x$enable_dependency_tracking" = xyes; then
13490	continue
13491      else
13492	break
13493      fi
13494      ;;
13495    none) break ;;
13496    esac
13497    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13498    # mode.  It turns out that the SunPro C++ compiler does not properly
13499    # handle `-M -o', and we need to detect this.
13500    if depmode=$depmode \
13501       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13502       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13503       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13504         >/dev/null 2>conftest.err &&
13505       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13506       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13507       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13508      # icc doesn't choke on unknown options, it will just issue warnings
13509      # or remarks (even with -Werror).  So we grep stderr for any message
13510      # that says an option was ignored or not supported.
13511      # When given -MP, icc 7.0 and 7.1 complain thusly:
13512      #   icc: Command line warning: ignoring option '-M'; no argument required
13513      # The diagnosis changed in icc 8.0:
13514      #   icc: Command line remark: option '-MP' not supported
13515      if (grep 'ignoring option' conftest.err ||
13516          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13517        am_cv_CC_dependencies_compiler_type=$depmode
13518        break
13519      fi
13520    fi
13521  done
13522
13523  cd ..
13524  rm -rf conftest.dir
13525else
13526  am_cv_CC_dependencies_compiler_type=none
13527fi
13528
13529fi
13530{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13531echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13532CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13533
13534
13535
13536if
13537  test "x$enable_dependency_tracking" != xno \
13538  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13539  am__fastdepCC_TRUE=
13540  am__fastdepCC_FALSE='#'
13541else
13542  am__fastdepCC_TRUE='#'
13543  am__fastdepCC_FALSE=
13544fi
13545
13546
13547if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13548	{ { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13549echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13550   { (exit 1); exit 1; }; }
13551fi
13552
13553# test for make depend flag
13554OL_MKDEP=
13555OL_MKDEP_FLAGS=
13556if test -z "${MKDEP}"; then
13557	OL_MKDEP="${CC-cc}"
13558	if test -z "${MKDEP_FLAGS}"; then
13559		{ echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13560echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13561if test "${ol_cv_mkdep+set}" = set; then
13562  echo $ECHO_N "(cached) $ECHO_C" >&6
13563else
13564
13565			ol_cv_mkdep=no
13566			for flag in "-M" "-xM"; do
13567				cat > conftest.c <<EOF
13568 noCode;
13569EOF
13570				if { ac_try='$OL_MKDEP $flag conftest.c'
13571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572  (eval $ac_try) 2>&5
13573  ac_status=$?
13574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575  (exit $ac_status); }; } \
13576					| grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13577				then
13578					if test ! -f conftest."${ac_object}" ; then
13579						ol_cv_mkdep=$flag
13580						OL_MKDEP_FLAGS="$flag"
13581						break
13582					fi
13583				fi
13584			done
13585			rm -f conftest*
13586
13587fi
13588{ echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13589echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13590		test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13591	else
13592		cc_cv_mkdep=yes
13593		OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13594	fi
13595else
13596	cc_cv_mkdep=yes
13597	OL_MKDEP="${MKDEP}"
13598	OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13599fi
13600
13601
13602
13603if test "${ol_cv_mkdep}" = no ; then
13604	# this will soon become an error
13605	{ echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13606echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13607fi
13608
13609{ echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13610echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13611if test "${ac_cv_lib_s_afopen+set}" = set; then
13612  echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614  ac_check_lib_save_LIBS=$LIBS
13615LIBS="-ls  $LIBS"
13616cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h.  */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h.  */
13622
13623/* Override any GCC internal prototype to avoid an error.
13624   Use char because int might match the return type of a GCC
13625   builtin and then its argument prototype would still apply.  */
13626#ifdef __cplusplus
13627extern "C"
13628#endif
13629char afopen ();
13630int
13631main ()
13632{
13633return afopen ();
13634  ;
13635  return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext conftest$ac_exeext
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642  *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645  (eval "$ac_link") 2>conftest.er1
13646  ac_status=$?
13647  grep -v '^ *+' conftest.er1 >conftest.err
13648  rm -f conftest.er1
13649  cat conftest.err >&5
13650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651  (exit $ac_status); } && {
13652	 test -z "$ac_c_werror_flag" ||
13653	 test ! -s conftest.err
13654       } && test -s conftest$ac_exeext &&
13655       $as_test_x conftest$ac_exeext; then
13656  ac_cv_lib_s_afopen=yes
13657else
13658  echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
13661	ac_cv_lib_s_afopen=no
13662fi
13663
13664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665      conftest$ac_exeext conftest.$ac_ext
13666LIBS=$ac_check_lib_save_LIBS
13667fi
13668{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13669echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13670if test $ac_cv_lib_s_afopen = yes; then
13671
13672	AUTH_LIBS=-ls
13673
13674cat >>confdefs.h <<\_ACEOF
13675#define HAVE_AIX_SECURITY 1
13676_ACEOF
13677
13678
13679fi
13680
13681
13682case "$target" in
13683*-ibm-openedition)
13684	ac_cv_func_getopt=no
13685
13686cat >>confdefs.h <<\_ACEOF
13687#define BOTH_STRINGS_H 1
13688_ACEOF
13689
13690	;;
13691esac
13692
13693ol_link_modules=no
13694WITH_MODULES_ENABLED=no
13695if test $ol_enable_modules != no ; then
13696
13697for ac_header in ltdl.h
13698do
13699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13701  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704  echo $ECHO_N "(cached) $ECHO_C" >&6
13705fi
13706ac_res=`eval echo '${'$as_ac_Header'}'`
13707	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13708echo "${ECHO_T}$ac_res" >&6; }
13709else
13710  # Is the header compilable?
13711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13713cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h.  */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h.  */
13719$ac_includes_default
13720#include <$ac_header>
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726  *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729  (eval "$ac_compile") 2>conftest.er1
13730  ac_status=$?
13731  grep -v '^ *+' conftest.er1 >conftest.err
13732  rm -f conftest.er1
13733  cat conftest.err >&5
13734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735  (exit $ac_status); } && {
13736	 test -z "$ac_c_werror_flag" ||
13737	 test ! -s conftest.err
13738       } && test -s conftest.$ac_objext; then
13739  ac_header_compiler=yes
13740else
13741  echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744	ac_header_compiler=no
13745fi
13746
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13749echo "${ECHO_T}$ac_header_compiler" >&6; }
13750
13751# Is the header present?
13752{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13754cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h.  */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h.  */
13760#include <$ac_header>
13761_ACEOF
13762if { (ac_try="$ac_cpp conftest.$ac_ext"
13763case "(($ac_try" in
13764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765  *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13769  ac_status=$?
13770  grep -v '^ *+' conftest.er1 >conftest.err
13771  rm -f conftest.er1
13772  cat conftest.err >&5
13773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774  (exit $ac_status); } >/dev/null && {
13775	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13776	 test ! -s conftest.err
13777       }; then
13778  ac_header_preproc=yes
13779else
13780  echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783  ac_header_preproc=no
13784fi
13785
13786rm -f conftest.err conftest.$ac_ext
13787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13788echo "${ECHO_T}$ac_header_preproc" >&6; }
13789
13790# So?  What about this header?
13791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13792  yes:no: )
13793    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13797    ac_header_preproc=yes
13798    ;;
13799  no:yes:* )
13800    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13802    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13803echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13804    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13806    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13807echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13808    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13810    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13812    ( cat <<\_ASBOX
13813## --------------------------------------------- ##
13814## Report this to <http://www.openldap.org/its/> ##
13815## --------------------------------------------- ##
13816_ASBOX
13817     ) | sed "s/^/$as_me: WARNING:     /" >&2
13818    ;;
13819esac
13820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13823  echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
13825  eval "$as_ac_Header=\$ac_header_preproc"
13826fi
13827ac_res=`eval echo '${'$as_ac_Header'}'`
13828	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13829echo "${ECHO_T}$ac_res" >&6; }
13830
13831fi
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833  cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842	if test $ac_cv_header_ltdl_h = no ; then
13843		{ { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13844echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13845   { (exit 1); exit 1; }; }
13846	fi
13847
13848	{ echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13849echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13850if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13851  echo $ECHO_N "(cached) $ECHO_C" >&6
13852else
13853  ac_check_lib_save_LIBS=$LIBS
13854LIBS="-lltdl  $LIBS"
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h.  */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h.  */
13861
13862/* Override any GCC internal prototype to avoid an error.
13863   Use char because int might match the return type of a GCC
13864   builtin and then its argument prototype would still apply.  */
13865#ifdef __cplusplus
13866extern "C"
13867#endif
13868char lt_dlinit ();
13869int
13870main ()
13871{
13872return lt_dlinit ();
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (ac_try="$ac_link"
13879case "(($ac_try" in
13880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881  *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884  (eval "$ac_link") 2>conftest.er1
13885  ac_status=$?
13886  grep -v '^ *+' conftest.er1 >conftest.err
13887  rm -f conftest.er1
13888  cat conftest.err >&5
13889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890  (exit $ac_status); } && {
13891	 test -z "$ac_c_werror_flag" ||
13892	 test ! -s conftest.err
13893       } && test -s conftest$ac_exeext &&
13894       $as_test_x conftest$ac_exeext; then
13895  ac_cv_lib_ltdl_lt_dlinit=yes
13896else
13897  echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900	ac_cv_lib_ltdl_lt_dlinit=no
13901fi
13902
13903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13904      conftest$ac_exeext conftest.$ac_ext
13905LIBS=$ac_check_lib_save_LIBS
13906fi
13907{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13908echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13909if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13910
13911		MODULES_LIBS=-lltdl
13912
13913cat >>confdefs.h <<\_ACEOF
13914#define HAVE_LIBLTDL 1
13915_ACEOF
13916
13917
13918fi
13919
13920
13921	if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13922		{ { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13923echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13924   { (exit 1); exit 1; }; }
13925	fi
13926	ol_link_modules=yes
13927	WITH_MODULES_ENABLED=yes
13928
13929else
13930	for i in $Backends; do
13931		eval "ol_tmp=\$ol_enable_$i"
13932		if test $ol_tmp = mod ; then
13933			{ echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13934echo "$as_me: WARNING: building static $i backend" >&2;}
13935			eval "ol_enable_$i=yes"
13936		fi
13937	done
13938	for i in $Overlays; do
13939		eval "ol_tmp=\$ol_enable_$i"
13940		if test $ol_tmp = mod ; then
13941			{ echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13942echo "$as_me: WARNING: building static $i overlay" >&2;}
13943			eval "ol_enable_$i=yes"
13944		fi
13945	done
13946fi
13947
13948# test for EBCDIC
13949{ echo "$as_me:$LINENO: checking for EBCDIC" >&5
13950echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13951if test "${ol_cv_cpp_ebcdic+set}" = set; then
13952  echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954
13955	cat >conftest.$ac_ext <<_ACEOF
13956/* confdefs.h.  */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h.  */
13961
13962#if !('M' == 0xd4)
13963#include <__ASCII__/generate_error.h>
13964#endif
13965
13966_ACEOF
13967if { (ac_try="$ac_cpp conftest.$ac_ext"
13968case "(($ac_try" in
13969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970  *) ac_try_echo=$ac_try;;
13971esac
13972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13974  ac_status=$?
13975  grep -v '^ *+' conftest.er1 >conftest.err
13976  rm -f conftest.er1
13977  cat conftest.err >&5
13978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979  (exit $ac_status); } >/dev/null && {
13980	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13981	 test ! -s conftest.err
13982       }; then
13983  ol_cv_cpp_ebcdic=yes
13984else
13985  echo "$as_me: failed program was:" >&5
13986sed 's/^/| /' conftest.$ac_ext >&5
13987
13988  ol_cv_cpp_ebcdic=no
13989fi
13990
13991rm -f conftest.err conftest.$ac_ext
13992fi
13993{ echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13994echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
13995if test $ol_cv_cpp_ebcdic = yes ; then
13996
13997cat >>confdefs.h <<\_ACEOF
13998#define HAVE_EBCDIC 1
13999_ACEOF
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14004echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14005if test "${ol_cv_header_stdc+set}" = set; then
14006  echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008  cat >conftest.$ac_ext <<_ACEOF
14009/* confdefs.h.  */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h.  */
14014#include <stdlib.h>
14015#include <stdarg.h>
14016#include <string.h>
14017#include <float.h>
14018_ACEOF
14019if { (ac_try="$ac_cpp conftest.$ac_ext"
14020case "(($ac_try" in
14021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022  *) ac_try_echo=$ac_try;;
14023esac
14024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14026  ac_status=$?
14027  grep -v '^ *+' conftest.er1 >conftest.err
14028  rm -f conftest.er1
14029  cat conftest.err >&5
14030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031  (exit $ac_status); } >/dev/null && {
14032	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14033	 test ! -s conftest.err
14034       }; then
14035  ol_cv_header_stdc=yes
14036else
14037  echo "$as_me: failed program was:" >&5
14038sed 's/^/| /' conftest.$ac_ext >&5
14039
14040  ol_cv_header_stdc=no
14041fi
14042
14043rm -f conftest.err conftest.$ac_ext
14044
14045if test $ol_cv_header_stdc = yes; then
14046  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h.  */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h.  */
14053#include <string.h>
14054
14055_ACEOF
14056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14057  $EGREP "memchr" >/dev/null 2>&1; then
14058  :
14059else
14060  ol_cv_header_stdc=no
14061fi
14062rm -f -r conftest*
14063
14064fi
14065
14066if test $ol_cv_header_stdc = yes; then
14067  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14068cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h.  */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h.  */
14074#include <stdlib.h>
14075
14076_ACEOF
14077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14078  $EGREP "free" >/dev/null 2>&1; then
14079  :
14080else
14081  ol_cv_header_stdc=no
14082fi
14083rm -f -r conftest*
14084
14085fi
14086
14087if test $ol_cv_header_stdc = yes; then
14088  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14089if test "$cross_compiling" = yes; then
14090  :
14091else
14092  cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h.  */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h.  */
14098#include <ctype.h>
14099#ifndef HAVE_EBCDIC
14100#	define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14101#	define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14102#else
14103#	define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14104		|| ('j' <= (c) && (c) <= 'r') \
14105		|| ('s' <= (c) && (c) <= 'z'))
14106#	define TOUPPER(c)	(ISLOWER(c) ? ((c) | 0x40) : (c))
14107#endif
14108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14109int main () { int i; for (i = 0; i < 256; i++)
14110if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14111exit (0); }
14112
14113_ACEOF
14114rm -f conftest$ac_exeext
14115if { (ac_try="$ac_link"
14116case "(($ac_try" in
14117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118  *) ac_try_echo=$ac_try;;
14119esac
14120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121  (eval "$ac_link") 2>&5
14122  ac_status=$?
14123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14125  { (case "(($ac_try" in
14126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127  *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130  (eval "$ac_try") 2>&5
14131  ac_status=$?
14132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133  (exit $ac_status); }; }; then
14134  :
14135else
14136  echo "$as_me: program exited with status $ac_status" >&5
14137echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140( exit $ac_status )
14141ol_cv_header_stdc=no
14142fi
14143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14144fi
14145
14146
14147fi
14148fi
14149{ echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14150echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14151if test $ol_cv_header_stdc = yes; then
14152  cat >>confdefs.h <<\_ACEOF
14153#define STDC_HEADERS 1
14154_ACEOF
14155
14156fi
14157ac_cv_header_stdc=disable
14158
14159
14160if test $ol_cv_header_stdc != yes; then
14161	{ echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14162echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14163fi
14164
14165
14166
14167
14168
14169
14170ac_header_dirent=no
14171for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14172  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14173{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14174echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176  echo $ECHO_N "(cached) $ECHO_C" >&6
14177else
14178  cat >conftest.$ac_ext <<_ACEOF
14179/* confdefs.h.  */
14180_ACEOF
14181cat confdefs.h >>conftest.$ac_ext
14182cat >>conftest.$ac_ext <<_ACEOF
14183/* end confdefs.h.  */
14184#include <sys/types.h>
14185#include <$ac_hdr>
14186
14187int
14188main ()
14189{
14190if ((DIR *) 0)
14191return 0;
14192  ;
14193  return 0;
14194}
14195_ACEOF
14196rm -f conftest.$ac_objext
14197if { (ac_try="$ac_compile"
14198case "(($ac_try" in
14199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200  *) ac_try_echo=$ac_try;;
14201esac
14202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203  (eval "$ac_compile") 2>conftest.er1
14204  ac_status=$?
14205  grep -v '^ *+' conftest.er1 >conftest.err
14206  rm -f conftest.er1
14207  cat conftest.err >&5
14208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209  (exit $ac_status); } && {
14210	 test -z "$ac_c_werror_flag" ||
14211	 test ! -s conftest.err
14212       } && test -s conftest.$ac_objext; then
14213  eval "$as_ac_Header=yes"
14214else
14215  echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218	eval "$as_ac_Header=no"
14219fi
14220
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
14223ac_res=`eval echo '${'$as_ac_Header'}'`
14224	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14225echo "${ECHO_T}$ac_res" >&6; }
14226if test `eval echo '${'$as_ac_Header'}'` = yes; then
14227  cat >>confdefs.h <<_ACEOF
14228#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14229_ACEOF
14230
14231ac_header_dirent=$ac_hdr; break
14232fi
14233
14234done
14235# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14236if test $ac_header_dirent = dirent.h; then
14237  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14238echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14239if test "${ac_cv_search_opendir+set}" = set; then
14240  echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242  ac_func_search_save_LIBS=$LIBS
14243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h.  */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h.  */
14249
14250/* Override any GCC internal prototype to avoid an error.
14251   Use char because int might match the return type of a GCC
14252   builtin and then its argument prototype would still apply.  */
14253#ifdef __cplusplus
14254extern "C"
14255#endif
14256char opendir ();
14257int
14258main ()
14259{
14260return opendir ();
14261  ;
14262  return 0;
14263}
14264_ACEOF
14265for ac_lib in '' dir; do
14266  if test -z "$ac_lib"; then
14267    ac_res="none required"
14268  else
14269    ac_res=-l$ac_lib
14270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14271  fi
14272  rm -f conftest.$ac_objext conftest$ac_exeext
14273if { (ac_try="$ac_link"
14274case "(($ac_try" in
14275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276  *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279  (eval "$ac_link") 2>conftest.er1
14280  ac_status=$?
14281  grep -v '^ *+' conftest.er1 >conftest.err
14282  rm -f conftest.er1
14283  cat conftest.err >&5
14284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285  (exit $ac_status); } && {
14286	 test -z "$ac_c_werror_flag" ||
14287	 test ! -s conftest.err
14288       } && test -s conftest$ac_exeext &&
14289       $as_test_x conftest$ac_exeext; then
14290  ac_cv_search_opendir=$ac_res
14291else
14292  echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295
14296fi
14297
14298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14299      conftest$ac_exeext
14300  if test "${ac_cv_search_opendir+set}" = set; then
14301  break
14302fi
14303done
14304if test "${ac_cv_search_opendir+set}" = set; then
14305  :
14306else
14307  ac_cv_search_opendir=no
14308fi
14309rm conftest.$ac_ext
14310LIBS=$ac_func_search_save_LIBS
14311fi
14312{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14313echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14314ac_res=$ac_cv_search_opendir
14315if test "$ac_res" != no; then
14316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14317
14318fi
14319
14320else
14321  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14322echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14323if test "${ac_cv_search_opendir+set}" = set; then
14324  echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326  ac_func_search_save_LIBS=$LIBS
14327cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h.  */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h.  */
14333
14334/* Override any GCC internal prototype to avoid an error.
14335   Use char because int might match the return type of a GCC
14336   builtin and then its argument prototype would still apply.  */
14337#ifdef __cplusplus
14338extern "C"
14339#endif
14340char opendir ();
14341int
14342main ()
14343{
14344return opendir ();
14345  ;
14346  return 0;
14347}
14348_ACEOF
14349for ac_lib in '' x; do
14350  if test -z "$ac_lib"; then
14351    ac_res="none required"
14352  else
14353    ac_res=-l$ac_lib
14354    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14355  fi
14356  rm -f conftest.$ac_objext conftest$ac_exeext
14357if { (ac_try="$ac_link"
14358case "(($ac_try" in
14359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360  *) ac_try_echo=$ac_try;;
14361esac
14362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363  (eval "$ac_link") 2>conftest.er1
14364  ac_status=$?
14365  grep -v '^ *+' conftest.er1 >conftest.err
14366  rm -f conftest.er1
14367  cat conftest.err >&5
14368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369  (exit $ac_status); } && {
14370	 test -z "$ac_c_werror_flag" ||
14371	 test ! -s conftest.err
14372       } && test -s conftest$ac_exeext &&
14373       $as_test_x conftest$ac_exeext; then
14374  ac_cv_search_opendir=$ac_res
14375else
14376  echo "$as_me: failed program was:" >&5
14377sed 's/^/| /' conftest.$ac_ext >&5
14378
14379
14380fi
14381
14382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14383      conftest$ac_exeext
14384  if test "${ac_cv_search_opendir+set}" = set; then
14385  break
14386fi
14387done
14388if test "${ac_cv_search_opendir+set}" = set; then
14389  :
14390else
14391  ac_cv_search_opendir=no
14392fi
14393rm conftest.$ac_ext
14394LIBS=$ac_func_search_save_LIBS
14395fi
14396{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14397echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14398ac_res=$ac_cv_search_opendir
14399if test "$ac_res" != no; then
14400  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14401
14402fi
14403
14404fi
14405
14406{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14407echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14408if test "${ac_cv_header_sys_wait_h+set}" = set; then
14409  echo $ECHO_N "(cached) $ECHO_C" >&6
14410else
14411  cat >conftest.$ac_ext <<_ACEOF
14412/* confdefs.h.  */
14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h.  */
14417#include <sys/types.h>
14418#include <sys/wait.h>
14419#ifndef WEXITSTATUS
14420# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14421#endif
14422#ifndef WIFEXITED
14423# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14424#endif
14425
14426int
14427main ()
14428{
14429  int s;
14430  wait (&s);
14431  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14432  ;
14433  return 0;
14434}
14435_ACEOF
14436rm -f conftest.$ac_objext
14437if { (ac_try="$ac_compile"
14438case "(($ac_try" in
14439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440  *) ac_try_echo=$ac_try;;
14441esac
14442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443  (eval "$ac_compile") 2>conftest.er1
14444  ac_status=$?
14445  grep -v '^ *+' conftest.er1 >conftest.err
14446  rm -f conftest.er1
14447  cat conftest.err >&5
14448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449  (exit $ac_status); } && {
14450	 test -z "$ac_c_werror_flag" ||
14451	 test ! -s conftest.err
14452       } && test -s conftest.$ac_objext; then
14453  ac_cv_header_sys_wait_h=yes
14454else
14455  echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458	ac_cv_header_sys_wait_h=no
14459fi
14460
14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462fi
14463{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14464echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14465if test $ac_cv_header_sys_wait_h = yes; then
14466
14467cat >>confdefs.h <<\_ACEOF
14468#define HAVE_SYS_WAIT_H 1
14469_ACEOF
14470
14471fi
14472
14473{ echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14474echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14475if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14476  echo $ECHO_N "(cached) $ECHO_C" >&6
14477else
14478  cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h.  */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h.  */
14484#include <sys/types.h>
14485#include <termios.h>
14486#ifdef TIOCGWINSZ
14487  yes
14488#endif
14489
14490_ACEOF
14491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14492  $EGREP "yes" >/dev/null 2>&1; then
14493  ac_cv_sys_tiocgwinsz_in_termios_h=yes
14494else
14495  ac_cv_sys_tiocgwinsz_in_termios_h=no
14496fi
14497rm -f -r conftest*
14498
14499fi
14500{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14501echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14502
14503if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14504  { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14505echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14506if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14507  echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509  cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h.  */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
14514/* end confdefs.h.  */
14515#include <sys/types.h>
14516#include <sys/ioctl.h>
14517#ifdef TIOCGWINSZ
14518  yes
14519#endif
14520
14521_ACEOF
14522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14523  $EGREP "yes" >/dev/null 2>&1; then
14524  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14525else
14526  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14527fi
14528rm -f -r conftest*
14529
14530fi
14531{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14532echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14533
14534  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14535
14536cat >>confdefs.h <<\_ACEOF
14537#define GWINSZ_IN_SYS_IOCTL 1
14538_ACEOF
14539
14540  fi
14541fi
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591for ac_header in \
14592	arpa/inet.h		\
14593	arpa/nameser.h	\
14594	assert.h		\
14595	bits/types.h	\
14596	conio.h			\
14597	crypt.h			\
14598	direct.h		\
14599	errno.h			\
14600	fcntl.h			\
14601	filio.h			\
14602	getopt.h		\
14603	grp.h			\
14604	io.h			\
14605	libutil.h		\
14606	limits.h		\
14607	locale.h		\
14608	malloc.h		\
14609	memory.h		\
14610	psap.h			\
14611	pwd.h			\
14612	process.h		\
14613	sgtty.h			\
14614	shadow.h		\
14615	stddef.h		\
14616	string.h		\
14617	strings.h		\
14618	sysexits.h		\
14619	sys/file.h		\
14620	sys/filio.h		\
14621	sys/fstyp.h		\
14622	sys/errno.h		\
14623	sys/ioctl.h		\
14624	sys/param.h		\
14625	sys/privgrp.h	\
14626	sys/resource.h	\
14627	sys/select.h	\
14628	sys/socket.h	\
14629	sys/stat.h		\
14630	sys/syslog.h	\
14631	sys/time.h		\
14632	sys/types.h		\
14633	sys/uio.h		\
14634	sys/vmount.h	\
14635	syslog.h		\
14636	termios.h		\
14637	unistd.h		\
14638	utime.h			\
14639
14640do
14641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14643  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14646  echo $ECHO_N "(cached) $ECHO_C" >&6
14647fi
14648ac_res=`eval echo '${'$as_ac_Header'}'`
14649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14650echo "${ECHO_T}$ac_res" >&6; }
14651else
14652  # Is the header compilable?
14653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14655cat >conftest.$ac_ext <<_ACEOF
14656/* confdefs.h.  */
14657_ACEOF
14658cat confdefs.h >>conftest.$ac_ext
14659cat >>conftest.$ac_ext <<_ACEOF
14660/* end confdefs.h.  */
14661$ac_includes_default
14662#include <$ac_header>
14663_ACEOF
14664rm -f conftest.$ac_objext
14665if { (ac_try="$ac_compile"
14666case "(($ac_try" in
14667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668  *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671  (eval "$ac_compile") 2>conftest.er1
14672  ac_status=$?
14673  grep -v '^ *+' conftest.er1 >conftest.err
14674  rm -f conftest.er1
14675  cat conftest.err >&5
14676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677  (exit $ac_status); } && {
14678	 test -z "$ac_c_werror_flag" ||
14679	 test ! -s conftest.err
14680       } && test -s conftest.$ac_objext; then
14681  ac_header_compiler=yes
14682else
14683  echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
14686	ac_header_compiler=no
14687fi
14688
14689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14691echo "${ECHO_T}$ac_header_compiler" >&6; }
14692
14693# Is the header present?
14694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h.  */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h.  */
14702#include <$ac_header>
14703_ACEOF
14704if { (ac_try="$ac_cpp conftest.$ac_ext"
14705case "(($ac_try" in
14706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707  *) ac_try_echo=$ac_try;;
14708esac
14709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14711  ac_status=$?
14712  grep -v '^ *+' conftest.er1 >conftest.err
14713  rm -f conftest.er1
14714  cat conftest.err >&5
14715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716  (exit $ac_status); } >/dev/null && {
14717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14718	 test ! -s conftest.err
14719       }; then
14720  ac_header_preproc=yes
14721else
14722  echo "$as_me: failed program was:" >&5
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
14725  ac_header_preproc=no
14726fi
14727
14728rm -f conftest.err conftest.$ac_ext
14729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14730echo "${ECHO_T}$ac_header_preproc" >&6; }
14731
14732# So?  What about this header?
14733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14734  yes:no: )
14735    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14737    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14739    ac_header_preproc=yes
14740    ;;
14741  no:yes:* )
14742    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14744    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14745echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14746    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14748    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14749echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14752    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14754    ( cat <<\_ASBOX
14755## --------------------------------------------- ##
14756## Report this to <http://www.openldap.org/its/> ##
14757## --------------------------------------------- ##
14758_ASBOX
14759     ) | sed "s/^/$as_me: WARNING:     /" >&2
14760    ;;
14761esac
14762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765  echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767  eval "$as_ac_Header=\$ac_header_preproc"
14768fi
14769ac_res=`eval echo '${'$as_ac_Header'}'`
14770	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14771echo "${ECHO_T}$ac_res" >&6; }
14772
14773fi
14774if test `eval echo '${'$as_ac_Header'}'` = yes; then
14775  cat >>confdefs.h <<_ACEOF
14776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14777_ACEOF
14778
14779fi
14780
14781done
14782
14783
14784if test "$ac_cv_mingw32" = yes \
14785	-o "$ac_cv_interix" = yes \
14786	-o "$ol_cv_msvc" = yes
14787then
14788
14789
14790for ac_header in winsock.h winsock2.h
14791do
14792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797  echo $ECHO_N "(cached) $ECHO_C" >&6
14798fi
14799ac_res=`eval echo '${'$as_ac_Header'}'`
14800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14801echo "${ECHO_T}$ac_res" >&6; }
14802else
14803  # Is the header compilable?
14804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h.  */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h.  */
14812$ac_includes_default
14813#include <$ac_header>
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (ac_try="$ac_compile"
14817case "(($ac_try" in
14818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819  *) ac_try_echo=$ac_try;;
14820esac
14821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822  (eval "$ac_compile") 2>conftest.er1
14823  ac_status=$?
14824  grep -v '^ *+' conftest.er1 >conftest.err
14825  rm -f conftest.er1
14826  cat conftest.err >&5
14827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828  (exit $ac_status); } && {
14829	 test -z "$ac_c_werror_flag" ||
14830	 test ! -s conftest.err
14831       } && test -s conftest.$ac_objext; then
14832  ac_header_compiler=yes
14833else
14834  echo "$as_me: failed program was:" >&5
14835sed 's/^/| /' conftest.$ac_ext >&5
14836
14837	ac_header_compiler=no
14838fi
14839
14840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14842echo "${ECHO_T}$ac_header_compiler" >&6; }
14843
14844# Is the header present?
14845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14847cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h.  */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h.  */
14853#include <$ac_header>
14854_ACEOF
14855if { (ac_try="$ac_cpp conftest.$ac_ext"
14856case "(($ac_try" in
14857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858  *) ac_try_echo=$ac_try;;
14859esac
14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14862  ac_status=$?
14863  grep -v '^ *+' conftest.er1 >conftest.err
14864  rm -f conftest.er1
14865  cat conftest.err >&5
14866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867  (exit $ac_status); } >/dev/null && {
14868	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14869	 test ! -s conftest.err
14870       }; then
14871  ac_header_preproc=yes
14872else
14873  echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876  ac_header_preproc=no
14877fi
14878
14879rm -f conftest.err conftest.$ac_ext
14880{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881echo "${ECHO_T}$ac_header_preproc" >&6; }
14882
14883# So?  What about this header?
14884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885  yes:no: )
14886    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890    ac_header_preproc=yes
14891    ;;
14892  no:yes:* )
14893    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14896echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14897    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14900echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905    ( cat <<\_ASBOX
14906## --------------------------------------------- ##
14907## Report this to <http://www.openldap.org/its/> ##
14908## --------------------------------------------- ##
14909_ASBOX
14910     ) | sed "s/^/$as_me: WARNING:     /" >&2
14911    ;;
14912esac
14913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14916  echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918  eval "$as_ac_Header=\$ac_header_preproc"
14919fi
14920ac_res=`eval echo '${'$as_ac_Header'}'`
14921	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14922echo "${ECHO_T}$ac_res" >&6; }
14923
14924fi
14925if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926  cat >>confdefs.h <<_ACEOF
14927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14928_ACEOF
14929
14930fi
14931
14932done
14933
14934fi
14935
14936
14937for ac_header in resolv.h
14938do
14939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943  echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945  cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h.  */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h.  */
14951$ac_includes_default
14952#include <netinet/in.h>
14953
14954
14955#include <$ac_header>
14956_ACEOF
14957rm -f conftest.$ac_objext
14958if { (ac_try="$ac_compile"
14959case "(($ac_try" in
14960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961  *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964  (eval "$ac_compile") 2>conftest.er1
14965  ac_status=$?
14966  grep -v '^ *+' conftest.er1 >conftest.err
14967  rm -f conftest.er1
14968  cat conftest.err >&5
14969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970  (exit $ac_status); } && {
14971	 test -z "$ac_c_werror_flag" ||
14972	 test ! -s conftest.err
14973       } && test -s conftest.$ac_objext; then
14974  eval "$as_ac_Header=yes"
14975else
14976  echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979	eval "$as_ac_Header=no"
14980fi
14981
14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983fi
14984ac_res=`eval echo '${'$as_ac_Header'}'`
14985	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14986echo "${ECHO_T}$ac_res" >&6; }
14987if test `eval echo '${'$as_ac_Header'}'` = yes; then
14988  cat >>confdefs.h <<_ACEOF
14989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14990_ACEOF
14991
14992fi
14993
14994done
14995
14996
14997
14998for ac_header in netinet/tcp.h
14999do
15000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15004  echo $ECHO_N "(cached) $ECHO_C" >&6
15005else
15006  cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h.  */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h.  */
15012$ac_includes_default
15013#include <netinet/in.h>
15014
15015
15016#include <$ac_header>
15017_ACEOF
15018rm -f conftest.$ac_objext
15019if { (ac_try="$ac_compile"
15020case "(($ac_try" in
15021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022  *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025  (eval "$ac_compile") 2>conftest.er1
15026  ac_status=$?
15027  grep -v '^ *+' conftest.er1 >conftest.err
15028  rm -f conftest.er1
15029  cat conftest.err >&5
15030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031  (exit $ac_status); } && {
15032	 test -z "$ac_c_werror_flag" ||
15033	 test ! -s conftest.err
15034       } && test -s conftest.$ac_objext; then
15035  eval "$as_ac_Header=yes"
15036else
15037  echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040	eval "$as_ac_Header=no"
15041fi
15042
15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044fi
15045ac_res=`eval echo '${'$as_ac_Header'}'`
15046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15047echo "${ECHO_T}$ac_res" >&6; }
15048if test `eval echo '${'$as_ac_Header'}'` = yes; then
15049  cat >>confdefs.h <<_ACEOF
15050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051_ACEOF
15052
15053fi
15054
15055done
15056
15057
15058
15059for ac_header in sys/ucred.h
15060do
15061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065  echo $ECHO_N "(cached) $ECHO_C" >&6
15066else
15067  cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h.  */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h.  */
15073$ac_includes_default
15074#ifdef HAVE_SYS_PARAM_H
15075#include <sys/param.h>
15076#endif
15077
15078
15079#include <$ac_header>
15080_ACEOF
15081rm -f conftest.$ac_objext
15082if { (ac_try="$ac_compile"
15083case "(($ac_try" in
15084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085  *) ac_try_echo=$ac_try;;
15086esac
15087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088  (eval "$ac_compile") 2>conftest.er1
15089  ac_status=$?
15090  grep -v '^ *+' conftest.er1 >conftest.err
15091  rm -f conftest.er1
15092  cat conftest.err >&5
15093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094  (exit $ac_status); } && {
15095	 test -z "$ac_c_werror_flag" ||
15096	 test ! -s conftest.err
15097       } && test -s conftest.$ac_objext; then
15098  eval "$as_ac_Header=yes"
15099else
15100  echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
15102
15103	eval "$as_ac_Header=no"
15104fi
15105
15106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107fi
15108ac_res=`eval echo '${'$as_ac_Header'}'`
15109	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15110echo "${ECHO_T}$ac_res" >&6; }
15111if test `eval echo '${'$as_ac_Header'}'` = yes; then
15112  cat >>confdefs.h <<_ACEOF
15113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15114_ACEOF
15115
15116fi
15117
15118done
15119
15120
15121
15122
15123
15124for ac_func in sigaction sigset
15125do
15126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15127{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15129if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15130  echo $ECHO_N "(cached) $ECHO_C" >&6
15131else
15132  cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h.  */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h.  */
15138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15139   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15140#define $ac_func innocuous_$ac_func
15141
15142/* System header to define __stub macros and hopefully few prototypes,
15143    which can conflict with char $ac_func (); below.
15144    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15145    <limits.h> exists even on freestanding compilers.  */
15146
15147#ifdef __STDC__
15148# include <limits.h>
15149#else
15150# include <assert.h>
15151#endif
15152
15153#undef $ac_func
15154
15155/* Override any GCC internal prototype to avoid an error.
15156   Use char because int might match the return type of a GCC
15157   builtin and then its argument prototype would still apply.  */
15158#ifdef __cplusplus
15159extern "C"
15160#endif
15161char $ac_func ();
15162/* The GNU C library defines this for functions which it implements
15163    to always fail with ENOSYS.  Some functions are actually named
15164    something starting with __ and the normal name is an alias.  */
15165#if defined __stub_$ac_func || defined __stub___$ac_func
15166choke me
15167#endif
15168
15169int
15170main ()
15171{
15172return $ac_func ();
15173  ;
15174  return 0;
15175}
15176_ACEOF
15177rm -f conftest.$ac_objext conftest$ac_exeext
15178if { (ac_try="$ac_link"
15179case "(($ac_try" in
15180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181  *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184  (eval "$ac_link") 2>conftest.er1
15185  ac_status=$?
15186  grep -v '^ *+' conftest.er1 >conftest.err
15187  rm -f conftest.er1
15188  cat conftest.err >&5
15189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190  (exit $ac_status); } && {
15191	 test -z "$ac_c_werror_flag" ||
15192	 test ! -s conftest.err
15193       } && test -s conftest$ac_exeext &&
15194       $as_test_x conftest$ac_exeext; then
15195  eval "$as_ac_var=yes"
15196else
15197  echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200	eval "$as_ac_var=no"
15201fi
15202
15203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15204      conftest$ac_exeext conftest.$ac_ext
15205fi
15206ac_res=`eval echo '${'$as_ac_var'}'`
15207	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15208echo "${ECHO_T}$ac_res" >&6; }
15209if test `eval echo '${'$as_ac_var'}'` = yes; then
15210  cat >>confdefs.h <<_ACEOF
15211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15212_ACEOF
15213
15214fi
15215done
15216
15217
15218if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15219
15220{ echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15221echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15222if test "${ac_cv_lib_V3_sigset+set}" = set; then
15223  echo $ECHO_N "(cached) $ECHO_C" >&6
15224else
15225  ac_check_lib_save_LIBS=$LIBS
15226LIBS="-lV3  $LIBS"
15227cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h.  */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h.  */
15233
15234/* Override any GCC internal prototype to avoid an error.
15235   Use char because int might match the return type of a GCC
15236   builtin and then its argument prototype would still apply.  */
15237#ifdef __cplusplus
15238extern "C"
15239#endif
15240char sigset ();
15241int
15242main ()
15243{
15244return sigset ();
15245  ;
15246  return 0;
15247}
15248_ACEOF
15249rm -f conftest.$ac_objext conftest$ac_exeext
15250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253  *) ac_try_echo=$ac_try;;
15254esac
15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256  (eval "$ac_link") 2>conftest.er1
15257  ac_status=$?
15258  grep -v '^ *+' conftest.er1 >conftest.err
15259  rm -f conftest.er1
15260  cat conftest.err >&5
15261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262  (exit $ac_status); } && {
15263	 test -z "$ac_c_werror_flag" ||
15264	 test ! -s conftest.err
15265       } && test -s conftest$ac_exeext &&
15266       $as_test_x conftest$ac_exeext; then
15267  ac_cv_lib_V3_sigset=yes
15268else
15269  echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272	ac_cv_lib_V3_sigset=no
15273fi
15274
15275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15276      conftest$ac_exeext conftest.$ac_ext
15277LIBS=$ac_check_lib_save_LIBS
15278fi
15279{ echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15280echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15281if test $ac_cv_lib_V3_sigset = yes; then
15282  cat >>confdefs.h <<_ACEOF
15283#define HAVE_LIBV3 1
15284_ACEOF
15285
15286  LIBS="-lV3 $LIBS"
15287
15288fi
15289
15290fi
15291
15292if test $ol_cv_msvc = yes ; then
15293   ol_cv_winsock=yes
15294fi
15295
15296if test "$ac_cv_header_winsock_h" = yes; then
15297	{ echo "$as_me:$LINENO: checking for winsock" >&5
15298echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15299if test "${ol_cv_winsock+set}" = set; then
15300  echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302
15303	save_LIBS="$LIBS"
15304	for curlib in none ws2_32 wsock32; do
15305		if test $curlib != none ; then
15306	    	LIBS="$save_LIBS -l$curlib"
15307		fi
15308		cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h.  */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h.  */
15314#include <winsock.h>
15315
15316int
15317main ()
15318{
15319
15320			socket(0,0,0);
15321			select(0,NULL,NULL,NULL,NULL);
15322			closesocket(0);
15323			gethostname(NULL,0);
15324
15325  ;
15326  return 0;
15327}
15328_ACEOF
15329rm -f conftest.$ac_objext conftest$ac_exeext
15330if { (ac_try="$ac_link"
15331case "(($ac_try" in
15332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333  *) ac_try_echo=$ac_try;;
15334esac
15335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336  (eval "$ac_link") 2>conftest.er1
15337  ac_status=$?
15338  grep -v '^ *+' conftest.er1 >conftest.err
15339  rm -f conftest.er1
15340  cat conftest.err >&5
15341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342  (exit $ac_status); } && {
15343	 test -z "$ac_c_werror_flag" ||
15344	 test ! -s conftest.err
15345       } && test -s conftest$ac_exeext &&
15346       $as_test_x conftest$ac_exeext; then
15347  ol_cv_winsock=$curlib
15348else
15349  echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352	ol_cv_winsock=no
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15356      conftest$ac_exeext conftest.$ac_ext
15357
15358		test "$ol_cv_winsock" != no && break
15359	done
15360	LIBS="$save_LIBS"
15361
15362fi
15363{ echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15364echo "${ECHO_T}$ol_cv_winsock" >&6; }
15365
15366	if test $ol_cv_winsock != no ; then
15367
15368cat >>confdefs.h <<\_ACEOF
15369#define HAVE_WINSOCK 1
15370_ACEOF
15371
15372    	ac_cv_func_socket=yes
15373    	ac_cv_func_select=yes
15374    	ac_cv_func_closesocket=yes
15375    	ac_cv_func_gethostname=yes
15376
15377		if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15378        	LIBS="$LIBS -l$ol_cv_winsock"
15379		fi
15380
15381    	if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15382
15383cat >>confdefs.h <<\_ACEOF
15384#define HAVE_WINSOCK2 1
15385_ACEOF
15386
15387    	fi
15388	fi
15389fi
15390
15391
15392{ echo "$as_me:$LINENO: checking for socket" >&5
15393echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15394if test "${ac_cv_func_socket+set}" = set; then
15395  echo $ECHO_N "(cached) $ECHO_C" >&6
15396else
15397  cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h.  */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h.  */
15403/* Define socket to an innocuous variant, in case <limits.h> declares socket.
15404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15405#define socket innocuous_socket
15406
15407/* System header to define __stub macros and hopefully few prototypes,
15408    which can conflict with char socket (); below.
15409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15410    <limits.h> exists even on freestanding compilers.  */
15411
15412#ifdef __STDC__
15413# include <limits.h>
15414#else
15415# include <assert.h>
15416#endif
15417
15418#undef socket
15419
15420/* Override any GCC internal prototype to avoid an error.
15421   Use char because int might match the return type of a GCC
15422   builtin and then its argument prototype would still apply.  */
15423#ifdef __cplusplus
15424extern "C"
15425#endif
15426char socket ();
15427/* The GNU C library defines this for functions which it implements
15428    to always fail with ENOSYS.  Some functions are actually named
15429    something starting with __ and the normal name is an alias.  */
15430#if defined __stub_socket || defined __stub___socket
15431choke me
15432#endif
15433
15434int
15435main ()
15436{
15437return socket ();
15438  ;
15439  return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext conftest$ac_exeext
15443if { (ac_try="$ac_link"
15444case "(($ac_try" in
15445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446  *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449  (eval "$ac_link") 2>conftest.er1
15450  ac_status=$?
15451  grep -v '^ *+' conftest.er1 >conftest.err
15452  rm -f conftest.er1
15453  cat conftest.err >&5
15454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455  (exit $ac_status); } && {
15456	 test -z "$ac_c_werror_flag" ||
15457	 test ! -s conftest.err
15458       } && test -s conftest$ac_exeext &&
15459       $as_test_x conftest$ac_exeext; then
15460  ac_cv_func_socket=yes
15461else
15462  echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465	ac_cv_func_socket=no
15466fi
15467
15468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15469      conftest$ac_exeext conftest.$ac_ext
15470fi
15471{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15472echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15473if test $ac_cv_func_socket = yes; then
15474  :
15475else
15476
15477
15478{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15479echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15480if test "${ac_cv_lib_socket_main+set}" = set; then
15481  echo $ECHO_N "(cached) $ECHO_C" >&6
15482else
15483  ac_check_lib_save_LIBS=$LIBS
15484LIBS="-lsocket  $LIBS"
15485cat >conftest.$ac_ext <<_ACEOF
15486/* confdefs.h.  */
15487_ACEOF
15488cat confdefs.h >>conftest.$ac_ext
15489cat >>conftest.$ac_ext <<_ACEOF
15490/* end confdefs.h.  */
15491
15492
15493int
15494main ()
15495{
15496return main ();
15497  ;
15498  return 0;
15499}
15500_ACEOF
15501rm -f conftest.$ac_objext conftest$ac_exeext
15502if { (ac_try="$ac_link"
15503case "(($ac_try" in
15504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505  *) ac_try_echo=$ac_try;;
15506esac
15507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508  (eval "$ac_link") 2>conftest.er1
15509  ac_status=$?
15510  grep -v '^ *+' conftest.er1 >conftest.err
15511  rm -f conftest.er1
15512  cat conftest.err >&5
15513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514  (exit $ac_status); } && {
15515	 test -z "$ac_c_werror_flag" ||
15516	 test ! -s conftest.err
15517       } && test -s conftest$ac_exeext &&
15518       $as_test_x conftest$ac_exeext; then
15519  ac_cv_lib_socket_main=yes
15520else
15521  echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524	ac_cv_lib_socket_main=no
15525fi
15526
15527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15528      conftest$ac_exeext conftest.$ac_ext
15529LIBS=$ac_check_lib_save_LIBS
15530fi
15531{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15532echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15533if test $ac_cv_lib_socket_main = yes; then
15534  cat >>confdefs.h <<_ACEOF
15535#define HAVE_LIBSOCKET 1
15536_ACEOF
15537
15538  LIBS="-lsocket $LIBS"
15539
15540fi
15541
15542
15543{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15544echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15545if test "${ac_cv_lib_net_socket+set}" = set; then
15546  echo $ECHO_N "(cached) $ECHO_C" >&6
15547else
15548  ac_check_lib_save_LIBS=$LIBS
15549LIBS="-lnet  $LIBS"
15550cat >conftest.$ac_ext <<_ACEOF
15551/* confdefs.h.  */
15552_ACEOF
15553cat confdefs.h >>conftest.$ac_ext
15554cat >>conftest.$ac_ext <<_ACEOF
15555/* end confdefs.h.  */
15556
15557/* Override any GCC internal prototype to avoid an error.
15558   Use char because int might match the return type of a GCC
15559   builtin and then its argument prototype would still apply.  */
15560#ifdef __cplusplus
15561extern "C"
15562#endif
15563char socket ();
15564int
15565main ()
15566{
15567return socket ();
15568  ;
15569  return 0;
15570}
15571_ACEOF
15572rm -f conftest.$ac_objext conftest$ac_exeext
15573if { (ac_try="$ac_link"
15574case "(($ac_try" in
15575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576  *) ac_try_echo=$ac_try;;
15577esac
15578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579  (eval "$ac_link") 2>conftest.er1
15580  ac_status=$?
15581  grep -v '^ *+' conftest.er1 >conftest.err
15582  rm -f conftest.er1
15583  cat conftest.err >&5
15584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585  (exit $ac_status); } && {
15586	 test -z "$ac_c_werror_flag" ||
15587	 test ! -s conftest.err
15588       } && test -s conftest$ac_exeext &&
15589       $as_test_x conftest$ac_exeext; then
15590  ac_cv_lib_net_socket=yes
15591else
15592  echo "$as_me: failed program was:" >&5
15593sed 's/^/| /' conftest.$ac_ext >&5
15594
15595	ac_cv_lib_net_socket=no
15596fi
15597
15598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15599      conftest$ac_exeext conftest.$ac_ext
15600LIBS=$ac_check_lib_save_LIBS
15601fi
15602{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15603echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15604if test $ac_cv_lib_net_socket = yes; then
15605  cat >>confdefs.h <<_ACEOF
15606#define HAVE_LIBNET 1
15607_ACEOF
15608
15609  LIBS="-lnet $LIBS"
15610
15611fi
15612
15613
15614{ echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15615echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15616if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15617  echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619  ac_check_lib_save_LIBS=$LIBS
15620LIBS="-lnsl_s  $LIBS"
15621cat >conftest.$ac_ext <<_ACEOF
15622/* confdefs.h.  */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h.  */
15627
15628
15629int
15630main ()
15631{
15632return main ();
15633  ;
15634  return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext conftest$ac_exeext
15638if { (ac_try="$ac_link"
15639case "(($ac_try" in
15640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641  *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644  (eval "$ac_link") 2>conftest.er1
15645  ac_status=$?
15646  grep -v '^ *+' conftest.er1 >conftest.err
15647  rm -f conftest.er1
15648  cat conftest.err >&5
15649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650  (exit $ac_status); } && {
15651	 test -z "$ac_c_werror_flag" ||
15652	 test ! -s conftest.err
15653       } && test -s conftest$ac_exeext &&
15654       $as_test_x conftest$ac_exeext; then
15655  ac_cv_lib_nsl_s_main=yes
15656else
15657  echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659
15660	ac_cv_lib_nsl_s_main=no
15661fi
15662
15663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15664      conftest$ac_exeext conftest.$ac_ext
15665LIBS=$ac_check_lib_save_LIBS
15666fi
15667{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15668echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15669if test $ac_cv_lib_nsl_s_main = yes; then
15670  cat >>confdefs.h <<_ACEOF
15671#define HAVE_LIBNSL_S 1
15672_ACEOF
15673
15674  LIBS="-lnsl_s $LIBS"
15675
15676fi
15677
15678
15679{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15680echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15681if test "${ac_cv_lib_nsl_main+set}" = set; then
15682  echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684  ac_check_lib_save_LIBS=$LIBS
15685LIBS="-lnsl  $LIBS"
15686cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h.  */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h.  */
15692
15693
15694int
15695main ()
15696{
15697return main ();
15698  ;
15699  return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext conftest$ac_exeext
15703if { (ac_try="$ac_link"
15704case "(($ac_try" in
15705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706  *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709  (eval "$ac_link") 2>conftest.er1
15710  ac_status=$?
15711  grep -v '^ *+' conftest.er1 >conftest.err
15712  rm -f conftest.er1
15713  cat conftest.err >&5
15714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715  (exit $ac_status); } && {
15716	 test -z "$ac_c_werror_flag" ||
15717	 test ! -s conftest.err
15718       } && test -s conftest$ac_exeext &&
15719       $as_test_x conftest$ac_exeext; then
15720  ac_cv_lib_nsl_main=yes
15721else
15722  echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725	ac_cv_lib_nsl_main=no
15726fi
15727
15728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15729      conftest$ac_exeext conftest.$ac_ext
15730LIBS=$ac_check_lib_save_LIBS
15731fi
15732{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15733echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15734if test $ac_cv_lib_nsl_main = yes; then
15735  cat >>confdefs.h <<_ACEOF
15736#define HAVE_LIBNSL 1
15737_ACEOF
15738
15739  LIBS="-lnsl $LIBS"
15740
15741fi
15742
15743
15744{ echo "$as_me:$LINENO: checking for socket in -linet" >&5
15745echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15746if test "${ac_cv_lib_inet_socket+set}" = set; then
15747  echo $ECHO_N "(cached) $ECHO_C" >&6
15748else
15749  ac_check_lib_save_LIBS=$LIBS
15750LIBS="-linet  $LIBS"
15751cat >conftest.$ac_ext <<_ACEOF
15752/* confdefs.h.  */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h.  */
15757
15758/* Override any GCC internal prototype to avoid an error.
15759   Use char because int might match the return type of a GCC
15760   builtin and then its argument prototype would still apply.  */
15761#ifdef __cplusplus
15762extern "C"
15763#endif
15764char socket ();
15765int
15766main ()
15767{
15768return socket ();
15769  ;
15770  return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext conftest$ac_exeext
15774if { (ac_try="$ac_link"
15775case "(($ac_try" in
15776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777  *) ac_try_echo=$ac_try;;
15778esac
15779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780  (eval "$ac_link") 2>conftest.er1
15781  ac_status=$?
15782  grep -v '^ *+' conftest.er1 >conftest.err
15783  rm -f conftest.er1
15784  cat conftest.err >&5
15785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786  (exit $ac_status); } && {
15787	 test -z "$ac_c_werror_flag" ||
15788	 test ! -s conftest.err
15789       } && test -s conftest$ac_exeext &&
15790       $as_test_x conftest$ac_exeext; then
15791  ac_cv_lib_inet_socket=yes
15792else
15793  echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796	ac_cv_lib_inet_socket=no
15797fi
15798
15799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15800      conftest$ac_exeext conftest.$ac_ext
15801LIBS=$ac_check_lib_save_LIBS
15802fi
15803{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15804echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15805if test $ac_cv_lib_inet_socket = yes; then
15806  cat >>confdefs.h <<_ACEOF
15807#define HAVE_LIBINET 1
15808_ACEOF
15809
15810  LIBS="-linet $LIBS"
15811
15812fi
15813
15814
15815{ echo "$as_me:$LINENO: checking for main in -lgen" >&5
15816echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15817if test "${ac_cv_lib_gen_main+set}" = set; then
15818  echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820  ac_check_lib_save_LIBS=$LIBS
15821LIBS="-lgen  $LIBS"
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h.  */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h.  */
15828
15829
15830int
15831main ()
15832{
15833return main ();
15834  ;
15835  return 0;
15836}
15837_ACEOF
15838rm -f conftest.$ac_objext conftest$ac_exeext
15839if { (ac_try="$ac_link"
15840case "(($ac_try" in
15841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842  *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845  (eval "$ac_link") 2>conftest.er1
15846  ac_status=$?
15847  grep -v '^ *+' conftest.er1 >conftest.err
15848  rm -f conftest.er1
15849  cat conftest.err >&5
15850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851  (exit $ac_status); } && {
15852	 test -z "$ac_c_werror_flag" ||
15853	 test ! -s conftest.err
15854       } && test -s conftest$ac_exeext &&
15855       $as_test_x conftest$ac_exeext; then
15856  ac_cv_lib_gen_main=yes
15857else
15858  echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861	ac_cv_lib_gen_main=no
15862fi
15863
15864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15865      conftest$ac_exeext conftest.$ac_ext
15866LIBS=$ac_check_lib_save_LIBS
15867fi
15868{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15869echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15870if test $ac_cv_lib_gen_main = yes; then
15871  cat >>confdefs.h <<_ACEOF
15872#define HAVE_LIBGEN 1
15873_ACEOF
15874
15875  LIBS="-lgen $LIBS"
15876
15877fi
15878
15879
15880fi
15881
15882
15883{ echo "$as_me:$LINENO: checking for select" >&5
15884echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15885if test "${ac_cv_func_select+set}" = set; then
15886  echo $ECHO_N "(cached) $ECHO_C" >&6
15887else
15888  cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h.  */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h.  */
15894/* Define select to an innocuous variant, in case <limits.h> declares select.
15895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15896#define select innocuous_select
15897
15898/* System header to define __stub macros and hopefully few prototypes,
15899    which can conflict with char select (); below.
15900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15901    <limits.h> exists even on freestanding compilers.  */
15902
15903#ifdef __STDC__
15904# include <limits.h>
15905#else
15906# include <assert.h>
15907#endif
15908
15909#undef select
15910
15911/* Override any GCC internal prototype to avoid an error.
15912   Use char because int might match the return type of a GCC
15913   builtin and then its argument prototype would still apply.  */
15914#ifdef __cplusplus
15915extern "C"
15916#endif
15917char select ();
15918/* The GNU C library defines this for functions which it implements
15919    to always fail with ENOSYS.  Some functions are actually named
15920    something starting with __ and the normal name is an alias.  */
15921#if defined __stub_select || defined __stub___select
15922choke me
15923#endif
15924
15925int
15926main ()
15927{
15928return select ();
15929  ;
15930  return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext conftest$ac_exeext
15934if { (ac_try="$ac_link"
15935case "(($ac_try" in
15936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937  *) ac_try_echo=$ac_try;;
15938esac
15939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940  (eval "$ac_link") 2>conftest.er1
15941  ac_status=$?
15942  grep -v '^ *+' conftest.er1 >conftest.err
15943  rm -f conftest.er1
15944  cat conftest.err >&5
15945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946  (exit $ac_status); } && {
15947	 test -z "$ac_c_werror_flag" ||
15948	 test ! -s conftest.err
15949       } && test -s conftest$ac_exeext &&
15950       $as_test_x conftest$ac_exeext; then
15951  ac_cv_func_select=yes
15952else
15953  echo "$as_me: failed program was:" >&5
15954sed 's/^/| /' conftest.$ac_ext >&5
15955
15956	ac_cv_func_select=no
15957fi
15958
15959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15960      conftest$ac_exeext conftest.$ac_ext
15961fi
15962{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15963echo "${ECHO_T}$ac_cv_func_select" >&6; }
15964if test $ac_cv_func_select = yes; then
15965  :
15966else
15967  { { echo "$as_me:$LINENO: error: select() required." >&5
15968echo "$as_me: error: select() required." >&2;}
15969   { (exit 1); exit 1; }; }
15970fi
15971
15972
15973if test "${ac_cv_header_winsock_h}" != yes; then
15974
15975
15976for ac_header in sys/select.h sys/socket.h
15977do
15978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983  echo $ECHO_N "(cached) $ECHO_C" >&6
15984fi
15985ac_res=`eval echo '${'$as_ac_Header'}'`
15986	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15987echo "${ECHO_T}$ac_res" >&6; }
15988else
15989  # Is the header compilable?
15990{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h.  */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h.  */
15998$ac_includes_default
15999#include <$ac_header>
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (ac_try="$ac_compile"
16003case "(($ac_try" in
16004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005  *) ac_try_echo=$ac_try;;
16006esac
16007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008  (eval "$ac_compile") 2>conftest.er1
16009  ac_status=$?
16010  grep -v '^ *+' conftest.er1 >conftest.err
16011  rm -f conftest.er1
16012  cat conftest.err >&5
16013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014  (exit $ac_status); } && {
16015	 test -z "$ac_c_werror_flag" ||
16016	 test ! -s conftest.err
16017       } && test -s conftest.$ac_objext; then
16018  ac_header_compiler=yes
16019else
16020  echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023	ac_header_compiler=no
16024fi
16025
16026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028echo "${ECHO_T}$ac_header_compiler" >&6; }
16029
16030# Is the header present?
16031{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h.  */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h.  */
16039#include <$ac_header>
16040_ACEOF
16041if { (ac_try="$ac_cpp conftest.$ac_ext"
16042case "(($ac_try" in
16043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044  *) ac_try_echo=$ac_try;;
16045esac
16046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16048  ac_status=$?
16049  grep -v '^ *+' conftest.er1 >conftest.err
16050  rm -f conftest.er1
16051  cat conftest.err >&5
16052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053  (exit $ac_status); } >/dev/null && {
16054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16055	 test ! -s conftest.err
16056       }; then
16057  ac_header_preproc=yes
16058else
16059  echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062  ac_header_preproc=no
16063fi
16064
16065rm -f conftest.err conftest.$ac_ext
16066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069# So?  What about this header?
16070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071  yes:no: )
16072    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076    ac_header_preproc=yes
16077    ;;
16078  no:yes:* )
16079    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16082echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16083    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16086echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091    ( cat <<\_ASBOX
16092## --------------------------------------------- ##
16093## Report this to <http://www.openldap.org/its/> ##
16094## --------------------------------------------- ##
16095_ASBOX
16096     ) | sed "s/^/$as_me: WARNING:     /" >&2
16097    ;;
16098esac
16099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102  echo $ECHO_N "(cached) $ECHO_C" >&6
16103else
16104  eval "$as_ac_Header=\$ac_header_preproc"
16105fi
16106ac_res=`eval echo '${'$as_ac_Header'}'`
16107	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16108echo "${ECHO_T}$ac_res" >&6; }
16109
16110fi
16111if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112  cat >>confdefs.h <<_ACEOF
16113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16114_ACEOF
16115
16116fi
16117
16118done
16119
16120{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
16121echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16122if test "${ac_cv_func_select_args+set}" = set; then
16123  echo $ECHO_N "(cached) $ECHO_C" >&6
16124else
16125  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16126 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16127  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16128   cat >conftest.$ac_ext <<_ACEOF
16129/* confdefs.h.  */
16130_ACEOF
16131cat confdefs.h >>conftest.$ac_ext
16132cat >>conftest.$ac_ext <<_ACEOF
16133/* end confdefs.h.  */
16134$ac_includes_default
16135#ifdef HAVE_SYS_SELECT_H
16136# include <sys/select.h>
16137#endif
16138#ifdef HAVE_SYS_SOCKET_H
16139# include <sys/socket.h>
16140#endif
16141
16142int
16143main ()
16144{
16145extern int select ($ac_arg1,
16146					    $ac_arg234, $ac_arg234, $ac_arg234,
16147					    $ac_arg5);
16148  ;
16149  return 0;
16150}
16151_ACEOF
16152rm -f conftest.$ac_objext
16153if { (ac_try="$ac_compile"
16154case "(($ac_try" in
16155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156  *) ac_try_echo=$ac_try;;
16157esac
16158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159  (eval "$ac_compile") 2>conftest.er1
16160  ac_status=$?
16161  grep -v '^ *+' conftest.er1 >conftest.err
16162  rm -f conftest.er1
16163  cat conftest.err >&5
16164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165  (exit $ac_status); } && {
16166	 test -z "$ac_c_werror_flag" ||
16167	 test ! -s conftest.err
16168       } && test -s conftest.$ac_objext; then
16169  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16170else
16171  echo "$as_me: failed program was:" >&5
16172sed 's/^/| /' conftest.$ac_ext >&5
16173
16174
16175fi
16176
16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178  done
16179 done
16180done
16181# Provide a safe default value.
16182: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16183
16184fi
16185{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16186echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16187ac_save_IFS=$IFS; IFS=','
16188set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16189IFS=$ac_save_IFS
16190shift
16191
16192cat >>confdefs.h <<_ACEOF
16193#define SELECT_TYPE_ARG1 $1
16194_ACEOF
16195
16196
16197cat >>confdefs.h <<_ACEOF
16198#define SELECT_TYPE_ARG234 ($2)
16199_ACEOF
16200
16201
16202cat >>confdefs.h <<_ACEOF
16203#define SELECT_TYPE_ARG5 ($3)
16204_ACEOF
16205
16206rm -f -r conftest*
16207
16208fi
16209
16210
16211
16212for ac_func in poll
16213do
16214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16218  echo $ECHO_N "(cached) $ECHO_C" >&6
16219else
16220  cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h.  */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h.  */
16226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16228#define $ac_func innocuous_$ac_func
16229
16230/* System header to define __stub macros and hopefully few prototypes,
16231    which can conflict with char $ac_func (); below.
16232    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233    <limits.h> exists even on freestanding compilers.  */
16234
16235#ifdef __STDC__
16236# include <limits.h>
16237#else
16238# include <assert.h>
16239#endif
16240
16241#undef $ac_func
16242
16243/* Override any GCC internal prototype to avoid an error.
16244   Use char because int might match the return type of a GCC
16245   builtin and then its argument prototype would still apply.  */
16246#ifdef __cplusplus
16247extern "C"
16248#endif
16249char $ac_func ();
16250/* The GNU C library defines this for functions which it implements
16251    to always fail with ENOSYS.  Some functions are actually named
16252    something starting with __ and the normal name is an alias.  */
16253#if defined __stub_$ac_func || defined __stub___$ac_func
16254choke me
16255#endif
16256
16257int
16258main ()
16259{
16260return $ac_func ();
16261  ;
16262  return 0;
16263}
16264_ACEOF
16265rm -f conftest.$ac_objext conftest$ac_exeext
16266if { (ac_try="$ac_link"
16267case "(($ac_try" in
16268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269  *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272  (eval "$ac_link") 2>conftest.er1
16273  ac_status=$?
16274  grep -v '^ *+' conftest.er1 >conftest.err
16275  rm -f conftest.er1
16276  cat conftest.err >&5
16277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278  (exit $ac_status); } && {
16279	 test -z "$ac_c_werror_flag" ||
16280	 test ! -s conftest.err
16281       } && test -s conftest$ac_exeext &&
16282       $as_test_x conftest$ac_exeext; then
16283  eval "$as_ac_var=yes"
16284else
16285  echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288	eval "$as_ac_var=no"
16289fi
16290
16291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292      conftest$ac_exeext conftest.$ac_ext
16293fi
16294ac_res=`eval echo '${'$as_ac_var'}'`
16295	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16296echo "${ECHO_T}$ac_res" >&6; }
16297if test `eval echo '${'$as_ac_var'}'` = yes; then
16298  cat >>confdefs.h <<_ACEOF
16299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16300_ACEOF
16301
16302fi
16303done
16304
16305if test $ac_cv_func_poll = yes; then
16306
16307
16308for ac_header in poll.h sys/poll.h
16309do
16310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16312  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315  echo $ECHO_N "(cached) $ECHO_C" >&6
16316fi
16317ac_res=`eval echo '${'$as_ac_Header'}'`
16318	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16319echo "${ECHO_T}$ac_res" >&6; }
16320else
16321  # Is the header compilable?
16322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16324cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h.  */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h.  */
16330$ac_includes_default
16331#include <$ac_header>
16332_ACEOF
16333rm -f conftest.$ac_objext
16334if { (ac_try="$ac_compile"
16335case "(($ac_try" in
16336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337  *) ac_try_echo=$ac_try;;
16338esac
16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340  (eval "$ac_compile") 2>conftest.er1
16341  ac_status=$?
16342  grep -v '^ *+' conftest.er1 >conftest.err
16343  rm -f conftest.er1
16344  cat conftest.err >&5
16345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346  (exit $ac_status); } && {
16347	 test -z "$ac_c_werror_flag" ||
16348	 test ! -s conftest.err
16349       } && test -s conftest.$ac_objext; then
16350  ac_header_compiler=yes
16351else
16352  echo "$as_me: failed program was:" >&5
16353sed 's/^/| /' conftest.$ac_ext >&5
16354
16355	ac_header_compiler=no
16356fi
16357
16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16360echo "${ECHO_T}$ac_header_compiler" >&6; }
16361
16362# Is the header present?
16363{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16365cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h.  */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h.  */
16371#include <$ac_header>
16372_ACEOF
16373if { (ac_try="$ac_cpp conftest.$ac_ext"
16374case "(($ac_try" in
16375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376  *) ac_try_echo=$ac_try;;
16377esac
16378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16380  ac_status=$?
16381  grep -v '^ *+' conftest.er1 >conftest.err
16382  rm -f conftest.er1
16383  cat conftest.err >&5
16384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385  (exit $ac_status); } >/dev/null && {
16386	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16387	 test ! -s conftest.err
16388       }; then
16389  ac_header_preproc=yes
16390else
16391  echo "$as_me: failed program was:" >&5
16392sed 's/^/| /' conftest.$ac_ext >&5
16393
16394  ac_header_preproc=no
16395fi
16396
16397rm -f conftest.err conftest.$ac_ext
16398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16399echo "${ECHO_T}$ac_header_preproc" >&6; }
16400
16401# So?  What about this header?
16402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16403  yes:no: )
16404    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16408    ac_header_preproc=yes
16409    ;;
16410  no:yes:* )
16411    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16413    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16414echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16415    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16417    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16418echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16421    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16423    ( cat <<\_ASBOX
16424## --------------------------------------------- ##
16425## Report this to <http://www.openldap.org/its/> ##
16426## --------------------------------------------- ##
16427_ASBOX
16428     ) | sed "s/^/$as_me: WARNING:     /" >&2
16429    ;;
16430esac
16431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16434  echo $ECHO_N "(cached) $ECHO_C" >&6
16435else
16436  eval "$as_ac_Header=\$ac_header_preproc"
16437fi
16438ac_res=`eval echo '${'$as_ac_Header'}'`
16439	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16440echo "${ECHO_T}$ac_res" >&6; }
16441
16442fi
16443if test `eval echo '${'$as_ac_Header'}'` = yes; then
16444  cat >>confdefs.h <<_ACEOF
16445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16446_ACEOF
16447
16448fi
16449
16450done
16451
16452fi
16453
16454
16455for ac_header in sys/epoll.h
16456do
16457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16459  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462  echo $ECHO_N "(cached) $ECHO_C" >&6
16463fi
16464ac_res=`eval echo '${'$as_ac_Header'}'`
16465	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16466echo "${ECHO_T}$ac_res" >&6; }
16467else
16468  # Is the header compilable?
16469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16471cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h.  */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h.  */
16477$ac_includes_default
16478#include <$ac_header>
16479_ACEOF
16480rm -f conftest.$ac_objext
16481if { (ac_try="$ac_compile"
16482case "(($ac_try" in
16483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484  *) ac_try_echo=$ac_try;;
16485esac
16486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487  (eval "$ac_compile") 2>conftest.er1
16488  ac_status=$?
16489  grep -v '^ *+' conftest.er1 >conftest.err
16490  rm -f conftest.er1
16491  cat conftest.err >&5
16492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493  (exit $ac_status); } && {
16494	 test -z "$ac_c_werror_flag" ||
16495	 test ! -s conftest.err
16496       } && test -s conftest.$ac_objext; then
16497  ac_header_compiler=yes
16498else
16499  echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502	ac_header_compiler=no
16503fi
16504
16505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507echo "${ECHO_T}$ac_header_compiler" >&6; }
16508
16509# Is the header present?
16510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16512cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h.  */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h.  */
16518#include <$ac_header>
16519_ACEOF
16520if { (ac_try="$ac_cpp conftest.$ac_ext"
16521case "(($ac_try" in
16522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523  *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527  ac_status=$?
16528  grep -v '^ *+' conftest.er1 >conftest.err
16529  rm -f conftest.er1
16530  cat conftest.err >&5
16531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532  (exit $ac_status); } >/dev/null && {
16533	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16534	 test ! -s conftest.err
16535       }; then
16536  ac_header_preproc=yes
16537else
16538  echo "$as_me: failed program was:" >&5
16539sed 's/^/| /' conftest.$ac_ext >&5
16540
16541  ac_header_preproc=no
16542fi
16543
16544rm -f conftest.err conftest.$ac_ext
16545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16546echo "${ECHO_T}$ac_header_preproc" >&6; }
16547
16548# So?  What about this header?
16549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16550  yes:no: )
16551    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16555    ac_header_preproc=yes
16556    ;;
16557  no:yes:* )
16558    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16560    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16561echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16562    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16564    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16565echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16568    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16570    ( cat <<\_ASBOX
16571## --------------------------------------------- ##
16572## Report this to <http://www.openldap.org/its/> ##
16573## --------------------------------------------- ##
16574_ASBOX
16575     ) | sed "s/^/$as_me: WARNING:     /" >&2
16576    ;;
16577esac
16578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16581  echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583  eval "$as_ac_Header=\$ac_header_preproc"
16584fi
16585ac_res=`eval echo '${'$as_ac_Header'}'`
16586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16587echo "${ECHO_T}$ac_res" >&6; }
16588
16589fi
16590if test `eval echo '${'$as_ac_Header'}'` = yes; then
16591  cat >>confdefs.h <<_ACEOF
16592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16593_ACEOF
16594
16595fi
16596
16597done
16598
16599if test "${ac_cv_header_sys_epoll_h}" = yes; then
16600	{ echo "$as_me:$LINENO: checking for epoll system call" >&5
16601echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16602	if test "$cross_compiling" = yes; then
16603  { echo "$as_me:$LINENO: result: no" >&5
16604echo "${ECHO_T}no" >&6; }
16605else
16606  cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h.  */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h.  */
16612int main(int argc, char **argv)
16613{
16614	int epfd = epoll_create(256);
16615	exit (epfd == -1 ? 1 : 0);
16616}
16617_ACEOF
16618rm -f conftest$ac_exeext
16619if { (ac_try="$ac_link"
16620case "(($ac_try" in
16621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622  *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625  (eval "$ac_link") 2>&5
16626  ac_status=$?
16627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16629  { (case "(($ac_try" in
16630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631  *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634  (eval "$ac_try") 2>&5
16635  ac_status=$?
16636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637  (exit $ac_status); }; }; then
16638  { echo "$as_me:$LINENO: result: yes" >&5
16639echo "${ECHO_T}yes" >&6; }
16640
16641cat >>confdefs.h <<\_ACEOF
16642#define HAVE_EPOLL 1
16643_ACEOF
16644
16645else
16646  echo "$as_me: program exited with status $ac_status" >&5
16647echo "$as_me: failed program was:" >&5
16648sed 's/^/| /' conftest.$ac_ext >&5
16649
16650( exit $ac_status )
16651{ echo "$as_me:$LINENO: result: no" >&5
16652echo "${ECHO_T}no" >&6; }
16653fi
16654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16655fi
16656
16657
16658fi
16659
16660
16661for ac_header in sys/event.h
16662do
16663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16665  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668  echo $ECHO_N "(cached) $ECHO_C" >&6
16669fi
16670ac_res=`eval echo '${'$as_ac_Header'}'`
16671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16672echo "${ECHO_T}$ac_res" >&6; }
16673else
16674  # Is the header compilable?
16675{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16677cat >conftest.$ac_ext <<_ACEOF
16678/* confdefs.h.  */
16679_ACEOF
16680cat confdefs.h >>conftest.$ac_ext
16681cat >>conftest.$ac_ext <<_ACEOF
16682/* end confdefs.h.  */
16683$ac_includes_default
16684#include <$ac_header>
16685_ACEOF
16686rm -f conftest.$ac_objext
16687if { (ac_try="$ac_compile"
16688case "(($ac_try" in
16689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690  *) ac_try_echo=$ac_try;;
16691esac
16692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693  (eval "$ac_compile") 2>conftest.er1
16694  ac_status=$?
16695  grep -v '^ *+' conftest.er1 >conftest.err
16696  rm -f conftest.er1
16697  cat conftest.err >&5
16698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699  (exit $ac_status); } && {
16700	 test -z "$ac_c_werror_flag" ||
16701	 test ! -s conftest.err
16702       } && test -s conftest.$ac_objext; then
16703  ac_header_compiler=yes
16704else
16705  echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708	ac_header_compiler=no
16709fi
16710
16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16713echo "${ECHO_T}$ac_header_compiler" >&6; }
16714
16715# Is the header present?
16716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16718cat >conftest.$ac_ext <<_ACEOF
16719/* confdefs.h.  */
16720_ACEOF
16721cat confdefs.h >>conftest.$ac_ext
16722cat >>conftest.$ac_ext <<_ACEOF
16723/* end confdefs.h.  */
16724#include <$ac_header>
16725_ACEOF
16726if { (ac_try="$ac_cpp conftest.$ac_ext"
16727case "(($ac_try" in
16728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729  *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16733  ac_status=$?
16734  grep -v '^ *+' conftest.er1 >conftest.err
16735  rm -f conftest.er1
16736  cat conftest.err >&5
16737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738  (exit $ac_status); } >/dev/null && {
16739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16740	 test ! -s conftest.err
16741       }; then
16742  ac_header_preproc=yes
16743else
16744  echo "$as_me: failed program was:" >&5
16745sed 's/^/| /' conftest.$ac_ext >&5
16746
16747  ac_header_preproc=no
16748fi
16749
16750rm -f conftest.err conftest.$ac_ext
16751{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752echo "${ECHO_T}$ac_header_preproc" >&6; }
16753
16754# So?  What about this header?
16755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16756  yes:no: )
16757    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16759    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16761    ac_header_preproc=yes
16762    ;;
16763  no:yes:* )
16764    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16766    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16767echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16768    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16770    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16771echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16772    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16774    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16776    ( cat <<\_ASBOX
16777## --------------------------------------------- ##
16778## Report this to <http://www.openldap.org/its/> ##
16779## --------------------------------------------- ##
16780_ASBOX
16781     ) | sed "s/^/$as_me: WARNING:     /" >&2
16782    ;;
16783esac
16784{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16787  echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789  eval "$as_ac_Header=\$ac_header_preproc"
16790fi
16791ac_res=`eval echo '${'$as_ac_Header'}'`
16792	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16793echo "${ECHO_T}$ac_res" >&6; }
16794
16795fi
16796if test `eval echo '${'$as_ac_Header'}'` = yes; then
16797  cat >>confdefs.h <<_ACEOF
16798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16799_ACEOF
16800
16801fi
16802
16803done
16804
16805if test "${ac_cv_header_sys_event_h}" = yes; then
16806{ echo "$as_me:$LINENO: checking for kqueue system call" >&5
16807echo $ECHO_N "checking for kqueue system call... $ECHO_C" >&6; }
16808if test "$cross_compiling" = yes; then
16809  { echo "$as_me:$LINENO: result: no" >&5
16810echo "${ECHO_T}no" >&6; }
16811else
16812  cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h.  */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h.  */
16818int main(int argc, char **argv)
16819{
16820	int kqfd = kqueue();
16821	exit (kqfd == -1 ? 1 : 0);
16822}
16823_ACEOF
16824rm -f conftest$ac_exeext
16825if { (ac_try="$ac_link"
16826case "(($ac_try" in
16827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828  *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831  (eval "$ac_link") 2>&5
16832  ac_status=$?
16833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16835  { (case "(($ac_try" in
16836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837  *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840  (eval "$ac_try") 2>&5
16841  ac_status=$?
16842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843  (exit $ac_status); }; }; then
16844  { echo "$as_me:$LINENO: result: yes" >&5
16845echo "${ECHO_T}yes" >&6; }
16846
16847cat >>confdefs.h <<\_ACEOF
16848#define HAVE_KQUEUE 1
16849_ACEOF
16850
16851else
16852  echo "$as_me: program exited with status $ac_status" >&5
16853echo "$as_me: failed program was:" >&5
16854sed 's/^/| /' conftest.$ac_ext >&5
16855
16856( exit $ac_status )
16857{ echo "$as_me:$LINENO: result: no" >&5
16858echo "${ECHO_T}no" >&6; }
16859fi
16860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16861fi
16862
16863
16864fi
16865
16866
16867for ac_header in sys/devpoll.h
16868do
16869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16871  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874  echo $ECHO_N "(cached) $ECHO_C" >&6
16875fi
16876ac_res=`eval echo '${'$as_ac_Header'}'`
16877	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16878echo "${ECHO_T}$ac_res" >&6; }
16879else
16880  # Is the header compilable?
16881{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16883cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h.  */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h.  */
16889$ac_includes_default
16890#include <$ac_header>
16891_ACEOF
16892rm -f conftest.$ac_objext
16893if { (ac_try="$ac_compile"
16894case "(($ac_try" in
16895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896  *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899  (eval "$ac_compile") 2>conftest.er1
16900  ac_status=$?
16901  grep -v '^ *+' conftest.er1 >conftest.err
16902  rm -f conftest.er1
16903  cat conftest.err >&5
16904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905  (exit $ac_status); } && {
16906	 test -z "$ac_c_werror_flag" ||
16907	 test ! -s conftest.err
16908       } && test -s conftest.$ac_objext; then
16909  ac_header_compiler=yes
16910else
16911  echo "$as_me: failed program was:" >&5
16912sed 's/^/| /' conftest.$ac_ext >&5
16913
16914	ac_header_compiler=no
16915fi
16916
16917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919echo "${ECHO_T}$ac_header_compiler" >&6; }
16920
16921# Is the header present?
16922{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924cat >conftest.$ac_ext <<_ACEOF
16925/* confdefs.h.  */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h.  */
16930#include <$ac_header>
16931_ACEOF
16932if { (ac_try="$ac_cpp conftest.$ac_ext"
16933case "(($ac_try" in
16934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935  *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16939  ac_status=$?
16940  grep -v '^ *+' conftest.er1 >conftest.err
16941  rm -f conftest.er1
16942  cat conftest.err >&5
16943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944  (exit $ac_status); } >/dev/null && {
16945	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16946	 test ! -s conftest.err
16947       }; then
16948  ac_header_preproc=yes
16949else
16950  echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953  ac_header_preproc=no
16954fi
16955
16956rm -f conftest.err conftest.$ac_ext
16957{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16958echo "${ECHO_T}$ac_header_preproc" >&6; }
16959
16960# So?  What about this header?
16961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16962  yes:no: )
16963    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16965    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16967    ac_header_preproc=yes
16968    ;;
16969  no:yes:* )
16970    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16972    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16973echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16974    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16976    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16977echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16978    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16980    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16982    ( cat <<\_ASBOX
16983## --------------------------------------------- ##
16984## Report this to <http://www.openldap.org/its/> ##
16985## --------------------------------------------- ##
16986_ASBOX
16987     ) | sed "s/^/$as_me: WARNING:     /" >&2
16988    ;;
16989esac
16990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993  echo $ECHO_N "(cached) $ECHO_C" >&6
16994else
16995  eval "$as_ac_Header=\$ac_header_preproc"
16996fi
16997ac_res=`eval echo '${'$as_ac_Header'}'`
16998	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16999echo "${ECHO_T}$ac_res" >&6; }
17000
17001fi
17002if test `eval echo '${'$as_ac_Header'}'` = yes; then
17003  cat >>confdefs.h <<_ACEOF
17004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17005_ACEOF
17006
17007fi
17008
17009done
17010
17011if test "${ac_cv_header_sys_devpoll_h}" = yes \
17012		-a "${ac_cv_header_poll_h}" = yes ; \
17013then
17014	{ echo "$as_me:$LINENO: checking for /dev/poll" >&5
17015echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17016	if test "$cross_compiling" = yes; then
17017  { echo "$as_me:$LINENO: result: no" >&5
17018echo "${ECHO_T}no" >&6; }
17019else
17020  cat >conftest.$ac_ext <<_ACEOF
17021/* confdefs.h.  */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h.  */
17026int main(int argc, char **argv)
17027{
17028	int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17029	exit (devpollfd == -1 ? 1 : 0);
17030}
17031_ACEOF
17032rm -f conftest$ac_exeext
17033if { (ac_try="$ac_link"
17034case "(($ac_try" in
17035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036  *) ac_try_echo=$ac_try;;
17037esac
17038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039  (eval "$ac_link") 2>&5
17040  ac_status=$?
17041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17043  { (case "(($ac_try" in
17044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045  *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048  (eval "$ac_try") 2>&5
17049  ac_status=$?
17050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051  (exit $ac_status); }; }; then
17052  { echo "$as_me:$LINENO: result: yes" >&5
17053echo "${ECHO_T}yes" >&6; }
17054
17055cat >>confdefs.h <<\_ACEOF
17056#define HAVE_DEVPOLL 1
17057_ACEOF
17058
17059else
17060  echo "$as_me: program exited with status $ac_status" >&5
17061echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
17064( exit $ac_status )
17065{ echo "$as_me:$LINENO: result: no" >&5
17066echo "${ECHO_T}no" >&6; }
17067fi
17068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17069fi
17070
17071
17072fi
17073
17074# strerror checks
17075{ echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17076echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17077if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17078  echo $ECHO_N "(cached) $ECHO_C" >&6
17079else
17080
17081	cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h.  */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h.  */
17087
17088#include <stdio.h>
17089#include <sys/types.h>
17090#include <errno.h>
17091#ifdef _WIN32
17092#include <stdlib.h>
17093#endif
17094int
17095main ()
17096{
17097char *c = (char *) *sys_errlist
17098  ;
17099  return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (ac_try="$ac_compile"
17104case "(($ac_try" in
17105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106  *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109  (eval "$ac_compile") 2>conftest.er1
17110  ac_status=$?
17111  grep -v '^ *+' conftest.er1 >conftest.err
17112  rm -f conftest.er1
17113  cat conftest.err >&5
17114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115  (exit $ac_status); } && {
17116	 test -z "$ac_c_werror_flag" ||
17117	 test ! -s conftest.err
17118       } && test -s conftest.$ac_objext; then
17119  ol_cv_dcl_sys_errlist=yes
17120	ol_cv_have_sys_errlist=yes
17121else
17122  echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125	ol_cv_dcl_sys_errlist=no
17126fi
17127
17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129fi
17130{ echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17131echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17132#
17133# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17134if test $ol_cv_dcl_sys_errlist = no ; then
17135
17136cat >>confdefs.h <<\_ACEOF
17137#define DECL_SYS_ERRLIST 1
17138_ACEOF
17139
17140
17141	{ echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17142echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17143if test "${ol_cv_have_sys_errlist+set}" = set; then
17144  echo $ECHO_N "(cached) $ECHO_C" >&6
17145else
17146
17147		cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h.  */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h.  */
17153#include <errno.h>
17154int
17155main ()
17156{
17157char *c = (char *) *sys_errlist
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162rm -f conftest.$ac_objext conftest$ac_exeext
17163if { (ac_try="$ac_link"
17164case "(($ac_try" in
17165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166  *) ac_try_echo=$ac_try;;
17167esac
17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169  (eval "$ac_link") 2>conftest.er1
17170  ac_status=$?
17171  grep -v '^ *+' conftest.er1 >conftest.err
17172  rm -f conftest.er1
17173  cat conftest.err >&5
17174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175  (exit $ac_status); } && {
17176	 test -z "$ac_c_werror_flag" ||
17177	 test ! -s conftest.err
17178       } && test -s conftest$ac_exeext &&
17179       $as_test_x conftest$ac_exeext; then
17180  ol_cv_have_sys_errlist=yes
17181else
17182  echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185	ol_cv_have_sys_errlist=no
17186fi
17187
17188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189      conftest$ac_exeext conftest.$ac_ext
17190fi
17191{ echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17192echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17193fi
17194if test $ol_cv_have_sys_errlist = yes ; then
17195
17196cat >>confdefs.h <<\_ACEOF
17197#define HAVE_SYS_ERRLIST 1
17198_ACEOF
17199
17200fi
17201
17202
17203for ac_func in strerror strerror_r
17204do
17205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17209  echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211  cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h.  */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h.  */
17217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17218   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17219#define $ac_func innocuous_$ac_func
17220
17221/* System header to define __stub macros and hopefully few prototypes,
17222    which can conflict with char $ac_func (); below.
17223    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224    <limits.h> exists even on freestanding compilers.  */
17225
17226#ifdef __STDC__
17227# include <limits.h>
17228#else
17229# include <assert.h>
17230#endif
17231
17232#undef $ac_func
17233
17234/* Override any GCC internal prototype to avoid an error.
17235   Use char because int might match the return type of a GCC
17236   builtin and then its argument prototype would still apply.  */
17237#ifdef __cplusplus
17238extern "C"
17239#endif
17240char $ac_func ();
17241/* The GNU C library defines this for functions which it implements
17242    to always fail with ENOSYS.  Some functions are actually named
17243    something starting with __ and the normal name is an alias.  */
17244#if defined __stub_$ac_func || defined __stub___$ac_func
17245choke me
17246#endif
17247
17248int
17249main ()
17250{
17251return $ac_func ();
17252  ;
17253  return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext conftest$ac_exeext
17257if { (ac_try="$ac_link"
17258case "(($ac_try" in
17259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260  *) ac_try_echo=$ac_try;;
17261esac
17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263  (eval "$ac_link") 2>conftest.er1
17264  ac_status=$?
17265  grep -v '^ *+' conftest.er1 >conftest.err
17266  rm -f conftest.er1
17267  cat conftest.err >&5
17268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269  (exit $ac_status); } && {
17270	 test -z "$ac_c_werror_flag" ||
17271	 test ! -s conftest.err
17272       } && test -s conftest$ac_exeext &&
17273       $as_test_x conftest$ac_exeext; then
17274  eval "$as_ac_var=yes"
17275else
17276  echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279	eval "$as_ac_var=no"
17280fi
17281
17282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283      conftest$ac_exeext conftest.$ac_ext
17284fi
17285ac_res=`eval echo '${'$as_ac_var'}'`
17286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17287echo "${ECHO_T}$ac_res" >&6; }
17288if test `eval echo '${'$as_ac_var'}'` = yes; then
17289  cat >>confdefs.h <<_ACEOF
17290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17291_ACEOF
17292
17293fi
17294done
17295
17296ol_cv_func_strerror_r=no
17297if test "${ac_cv_func_strerror_r}" = yes ; then
17298	{ echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17299echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17300if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17301  echo $ECHO_N "(cached) $ECHO_C" >&6
17302else
17303
17304	cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h.  */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h.  */
17310#include <string.h>
17311_ACEOF
17312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17313  $EGREP "strerror_r" >/dev/null 2>&1; then
17314  ol_decl_strerror_r=yes
17315else
17316  ol_decl_strerror_r=no
17317fi
17318rm -f -r conftest*
17319
17320	if test $ol_decl_strerror_r = yes ; then
17321		cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h.  */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h.  */
17327#include <string.h>
17328int
17329main ()
17330{
17331   /* from autoconf 2.59 */
17332				char buf[100];
17333				char x = *strerror_r (0, buf, sizeof buf);
17334				char *p = strerror_r (0, buf, sizeof buf);
17335
17336  ;
17337  return 0;
17338}
17339_ACEOF
17340rm -f conftest.$ac_objext
17341if { (ac_try="$ac_compile"
17342case "(($ac_try" in
17343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344  *) ac_try_echo=$ac_try;;
17345esac
17346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347  (eval "$ac_compile") 2>conftest.er1
17348  ac_status=$?
17349  grep -v '^ *+' conftest.er1 >conftest.err
17350  rm -f conftest.er1
17351  cat conftest.err >&5
17352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353  (exit $ac_status); } && {
17354	 test -z "$ac_c_werror_flag" ||
17355	 test ! -s conftest.err
17356       } && test -s conftest.$ac_objext; then
17357  ol_cv_nonposix_strerror_r=yes
17358else
17359  echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362	ol_cv_nonposix_strerror_r=no
17363fi
17364
17365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366	else
17367		if test "$cross_compiling" = yes; then
17368  ol_cv_nonposix_strerror=no
17369else
17370  cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h.  */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h.  */
17376
17377			main() {
17378				char buf[100];
17379				buf[0] = 0;
17380				strerror_r( 1, buf, sizeof buf );
17381				exit( buf[0] == 0 );
17382			}
17383
17384_ACEOF
17385rm -f conftest$ac_exeext
17386if { (ac_try="$ac_link"
17387case "(($ac_try" in
17388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389  *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392  (eval "$ac_link") 2>&5
17393  ac_status=$?
17394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17396  { (case "(($ac_try" in
17397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398  *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401  (eval "$ac_try") 2>&5
17402  ac_status=$?
17403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404  (exit $ac_status); }; }; then
17405  ol_cv_nonposix_strerror_r=yes
17406else
17407  echo "$as_me: program exited with status $ac_status" >&5
17408echo "$as_me: failed program was:" >&5
17409sed 's/^/| /' conftest.$ac_ext >&5
17410
17411( exit $ac_status )
17412ol_cv_nonposix_strerror=no
17413fi
17414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17415fi
17416
17417
17418	fi
17419
17420fi
17421{ echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17422echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17423if test $ol_cv_nonposix_strerror_r = yes ; then
17424
17425cat >>confdefs.h <<\_ACEOF
17426#define HAVE_NONPOSIX_STRERROR_R 1
17427_ACEOF
17428
17429fi
17430
17431elif test "${ac_cv_func_strerror}" = no ; then
17432	{ echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17433echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17434if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17435  echo $ECHO_N "(cached) $ECHO_C" >&6
17436else
17437
17438	cat >conftest.$ac_ext <<_ACEOF
17439/* confdefs.h.  */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h.  */
17444
17445#include <stdio.h>
17446#include <sys/types.h>
17447#include <errno.h>
17448#ifdef _WIN32
17449#include <stdlib.h>
17450#endif
17451int
17452main ()
17453{
17454char *c = (char *) *sys_errlist
17455  ;
17456  return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (ac_try="$ac_compile"
17461case "(($ac_try" in
17462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463  *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466  (eval "$ac_compile") 2>conftest.er1
17467  ac_status=$?
17468  grep -v '^ *+' conftest.er1 >conftest.err
17469  rm -f conftest.er1
17470  cat conftest.err >&5
17471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472  (exit $ac_status); } && {
17473	 test -z "$ac_c_werror_flag" ||
17474	 test ! -s conftest.err
17475       } && test -s conftest.$ac_objext; then
17476  ol_cv_dcl_sys_errlist=yes
17477	ol_cv_have_sys_errlist=yes
17478else
17479  echo "$as_me: failed program was:" >&5
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
17482	ol_cv_dcl_sys_errlist=no
17483fi
17484
17485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486fi
17487{ echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17488echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17489#
17490# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17491if test $ol_cv_dcl_sys_errlist = no ; then
17492
17493cat >>confdefs.h <<\_ACEOF
17494#define DECL_SYS_ERRLIST 1
17495_ACEOF
17496
17497
17498	{ echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17499echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17500if test "${ol_cv_have_sys_errlist+set}" = set; then
17501  echo $ECHO_N "(cached) $ECHO_C" >&6
17502else
17503
17504		cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h.  */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h.  */
17510#include <errno.h>
17511int
17512main ()
17513{
17514char *c = (char *) *sys_errlist
17515  ;
17516  return 0;
17517}
17518_ACEOF
17519rm -f conftest.$ac_objext conftest$ac_exeext
17520if { (ac_try="$ac_link"
17521case "(($ac_try" in
17522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523  *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526  (eval "$ac_link") 2>conftest.er1
17527  ac_status=$?
17528  grep -v '^ *+' conftest.er1 >conftest.err
17529  rm -f conftest.er1
17530  cat conftest.err >&5
17531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532  (exit $ac_status); } && {
17533	 test -z "$ac_c_werror_flag" ||
17534	 test ! -s conftest.err
17535       } && test -s conftest$ac_exeext &&
17536       $as_test_x conftest$ac_exeext; then
17537  ol_cv_have_sys_errlist=yes
17538else
17539  echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542	ol_cv_have_sys_errlist=no
17543fi
17544
17545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546      conftest$ac_exeext conftest.$ac_ext
17547fi
17548{ echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17549echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17550fi
17551if test $ol_cv_have_sys_errlist = yes ; then
17552
17553cat >>confdefs.h <<\_ACEOF
17554#define HAVE_SYS_ERRLIST 1
17555_ACEOF
17556
17557fi
17558
17559fi
17560
17561
17562
17563for ac_header in regex.h
17564do
17565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17569  echo $ECHO_N "(cached) $ECHO_C" >&6
17570else
17571  cat >conftest.$ac_ext <<_ACEOF
17572/* confdefs.h.  */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h.  */
17577$ac_includes_default
17578#ifdef HAVE_SYS_TYPES_H
17579#include <sys/types.h>
17580#endif
17581
17582
17583#include <$ac_header>
17584_ACEOF
17585rm -f conftest.$ac_objext
17586if { (ac_try="$ac_compile"
17587case "(($ac_try" in
17588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589  *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592  (eval "$ac_compile") 2>conftest.er1
17593  ac_status=$?
17594  grep -v '^ *+' conftest.er1 >conftest.err
17595  rm -f conftest.er1
17596  cat conftest.err >&5
17597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598  (exit $ac_status); } && {
17599	 test -z "$ac_c_werror_flag" ||
17600	 test ! -s conftest.err
17601       } && test -s conftest.$ac_objext; then
17602  eval "$as_ac_Header=yes"
17603else
17604  echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607	eval "$as_ac_Header=no"
17608fi
17609
17610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611fi
17612ac_res=`eval echo '${'$as_ac_Header'}'`
17613	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17614echo "${ECHO_T}$ac_res" >&6; }
17615if test `eval echo '${'$as_ac_Header'}'` = yes; then
17616  cat >>confdefs.h <<_ACEOF
17617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17618_ACEOF
17619
17620fi
17621
17622done
17623
17624
17625if test "$ac_cv_header_regex_h" != yes ; then
17626	{ { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17627echo "$as_me: error: POSIX regex.h required." >&2;}
17628   { (exit 1); exit 1; }; }
17629fi
17630{ echo "$as_me:$LINENO: checking for library containing regfree" >&5
17631echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17632if test "${ac_cv_search_regfree+set}" = set; then
17633  echo $ECHO_N "(cached) $ECHO_C" >&6
17634else
17635  ac_func_search_save_LIBS=$LIBS
17636cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h.  */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h.  */
17642
17643/* Override any GCC internal prototype to avoid an error.
17644   Use char because int might match the return type of a GCC
17645   builtin and then its argument prototype would still apply.  */
17646#ifdef __cplusplus
17647extern "C"
17648#endif
17649char regfree ();
17650int
17651main ()
17652{
17653return regfree ();
17654  ;
17655  return 0;
17656}
17657_ACEOF
17658for ac_lib in '' regex gnuregex; do
17659  if test -z "$ac_lib"; then
17660    ac_res="none required"
17661  else
17662    ac_res=-l$ac_lib
17663    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17664  fi
17665  rm -f conftest.$ac_objext conftest$ac_exeext
17666if { (ac_try="$ac_link"
17667case "(($ac_try" in
17668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669  *) ac_try_echo=$ac_try;;
17670esac
17671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672  (eval "$ac_link") 2>conftest.er1
17673  ac_status=$?
17674  grep -v '^ *+' conftest.er1 >conftest.err
17675  rm -f conftest.er1
17676  cat conftest.err >&5
17677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678  (exit $ac_status); } && {
17679	 test -z "$ac_c_werror_flag" ||
17680	 test ! -s conftest.err
17681       } && test -s conftest$ac_exeext &&
17682       $as_test_x conftest$ac_exeext; then
17683  ac_cv_search_regfree=$ac_res
17684else
17685  echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688
17689fi
17690
17691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692      conftest$ac_exeext
17693  if test "${ac_cv_search_regfree+set}" = set; then
17694  break
17695fi
17696done
17697if test "${ac_cv_search_regfree+set}" = set; then
17698  :
17699else
17700  ac_cv_search_regfree=no
17701fi
17702rm conftest.$ac_ext
17703LIBS=$ac_func_search_save_LIBS
17704fi
17705{ echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17706echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17707ac_res=$ac_cv_search_regfree
17708if test "$ac_res" != no; then
17709  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17710  :
17711else
17712  { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17713echo "$as_me: error: POSIX regex required." >&2;}
17714   { (exit 1); exit 1; }; }
17715fi
17716
17717
17718
17719{ echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17720echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17721if test "${ol_cv_c_posix_regex+set}" = set; then
17722  echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724
17725	if test "$cross_compiling" = yes; then
17726  ol_cv_c_posix_regex=cross
17727else
17728  cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h.  */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h.  */
17734
17735#include <sys/types.h>
17736#include <regex.h>
17737static char *pattern, *string;
17738main()
17739{
17740	int rc;
17741	regex_t re;
17742
17743	pattern = "^A";
17744
17745	if(regcomp(&re, pattern, 0)) {
17746		return -1;
17747	}
17748
17749	string = "ALL MATCH";
17750
17751	rc = regexec(&re, string, 0, (void*)0, 0);
17752
17753	regfree(&re);
17754
17755	return rc;
17756}
17757_ACEOF
17758rm -f conftest$ac_exeext
17759if { (ac_try="$ac_link"
17760case "(($ac_try" in
17761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762  *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765  (eval "$ac_link") 2>&5
17766  ac_status=$?
17767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17769  { (case "(($ac_try" in
17770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771  *) ac_try_echo=$ac_try;;
17772esac
17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774  (eval "$ac_try") 2>&5
17775  ac_status=$?
17776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777  (exit $ac_status); }; }; then
17778  ol_cv_c_posix_regex=yes
17779else
17780  echo "$as_me: program exited with status $ac_status" >&5
17781echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784( exit $ac_status )
17785ol_cv_c_posix_regex=no
17786fi
17787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17788fi
17789
17790
17791fi
17792{ echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17793echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17794
17795if test "$ol_cv_c_posix_regex" = no ; then
17796	{ { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17797echo "$as_me: error: broken POSIX regex!" >&2;}
17798   { (exit 1); exit 1; }; }
17799fi
17800
17801
17802have_uuid=no
17803
17804for ac_header in sys/uuid.h
17805do
17806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17808  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17811  echo $ECHO_N "(cached) $ECHO_C" >&6
17812fi
17813ac_res=`eval echo '${'$as_ac_Header'}'`
17814	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17815echo "${ECHO_T}$ac_res" >&6; }
17816else
17817  # Is the header compilable?
17818{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17820cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h.  */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h.  */
17826$ac_includes_default
17827#include <$ac_header>
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (ac_try="$ac_compile"
17831case "(($ac_try" in
17832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833  *) ac_try_echo=$ac_try;;
17834esac
17835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836  (eval "$ac_compile") 2>conftest.er1
17837  ac_status=$?
17838  grep -v '^ *+' conftest.er1 >conftest.err
17839  rm -f conftest.er1
17840  cat conftest.err >&5
17841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842  (exit $ac_status); } && {
17843	 test -z "$ac_c_werror_flag" ||
17844	 test ! -s conftest.err
17845       } && test -s conftest.$ac_objext; then
17846  ac_header_compiler=yes
17847else
17848  echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851	ac_header_compiler=no
17852fi
17853
17854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17856echo "${ECHO_T}$ac_header_compiler" >&6; }
17857
17858# Is the header present?
17859{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17861cat >conftest.$ac_ext <<_ACEOF
17862/* confdefs.h.  */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h.  */
17867#include <$ac_header>
17868_ACEOF
17869if { (ac_try="$ac_cpp conftest.$ac_ext"
17870case "(($ac_try" in
17871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872  *) ac_try_echo=$ac_try;;
17873esac
17874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17876  ac_status=$?
17877  grep -v '^ *+' conftest.er1 >conftest.err
17878  rm -f conftest.er1
17879  cat conftest.err >&5
17880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881  (exit $ac_status); } >/dev/null && {
17882	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17883	 test ! -s conftest.err
17884       }; then
17885  ac_header_preproc=yes
17886else
17887  echo "$as_me: failed program was:" >&5
17888sed 's/^/| /' conftest.$ac_ext >&5
17889
17890  ac_header_preproc=no
17891fi
17892
17893rm -f conftest.err conftest.$ac_ext
17894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17895echo "${ECHO_T}$ac_header_preproc" >&6; }
17896
17897# So?  What about this header?
17898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17899  yes:no: )
17900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17904    ac_header_preproc=yes
17905    ;;
17906  no:yes:* )
17907    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17909    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17910echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17911    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17913    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17914echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17917    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17919    ( cat <<\_ASBOX
17920## --------------------------------------------- ##
17921## Report this to <http://www.openldap.org/its/> ##
17922## --------------------------------------------- ##
17923_ASBOX
17924     ) | sed "s/^/$as_me: WARNING:     /" >&2
17925    ;;
17926esac
17927{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17930  echo $ECHO_N "(cached) $ECHO_C" >&6
17931else
17932  eval "$as_ac_Header=\$ac_header_preproc"
17933fi
17934ac_res=`eval echo '${'$as_ac_Header'}'`
17935	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17936echo "${ECHO_T}$ac_res" >&6; }
17937
17938fi
17939if test `eval echo '${'$as_ac_Header'}'` = yes; then
17940  cat >>confdefs.h <<_ACEOF
17941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17942_ACEOF
17943
17944fi
17945
17946done
17947
17948if test $ac_cv_header_sys_uuid_h = yes ; then
17949	save_LIBS="$LIBS"
17950	{ echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17951echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17952if test "${ac_cv_search_uuid_to_str+set}" = set; then
17953  echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955  ac_func_search_save_LIBS=$LIBS
17956cat >conftest.$ac_ext <<_ACEOF
17957/* confdefs.h.  */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h.  */
17962
17963/* Override any GCC internal prototype to avoid an error.
17964   Use char because int might match the return type of a GCC
17965   builtin and then its argument prototype would still apply.  */
17966#ifdef __cplusplus
17967extern "C"
17968#endif
17969char uuid_to_str ();
17970int
17971main ()
17972{
17973return uuid_to_str ();
17974  ;
17975  return 0;
17976}
17977_ACEOF
17978for ac_lib in '' uuid; do
17979  if test -z "$ac_lib"; then
17980    ac_res="none required"
17981  else
17982    ac_res=-l$ac_lib
17983    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17984  fi
17985  rm -f conftest.$ac_objext conftest$ac_exeext
17986if { (ac_try="$ac_link"
17987case "(($ac_try" in
17988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989  *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992  (eval "$ac_link") 2>conftest.er1
17993  ac_status=$?
17994  grep -v '^ *+' conftest.er1 >conftest.err
17995  rm -f conftest.er1
17996  cat conftest.err >&5
17997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998  (exit $ac_status); } && {
17999	 test -z "$ac_c_werror_flag" ||
18000	 test ! -s conftest.err
18001       } && test -s conftest$ac_exeext &&
18002       $as_test_x conftest$ac_exeext; then
18003  ac_cv_search_uuid_to_str=$ac_res
18004else
18005  echo "$as_me: failed program was:" >&5
18006sed 's/^/| /' conftest.$ac_ext >&5
18007
18008
18009fi
18010
18011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18012      conftest$ac_exeext
18013  if test "${ac_cv_search_uuid_to_str+set}" = set; then
18014  break
18015fi
18016done
18017if test "${ac_cv_search_uuid_to_str+set}" = set; then
18018  :
18019else
18020  ac_cv_search_uuid_to_str=no
18021fi
18022rm conftest.$ac_ext
18023LIBS=$ac_func_search_save_LIBS
18024fi
18025{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18026echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18027ac_res=$ac_cv_search_uuid_to_str
18028if test "$ac_res" != no; then
18029  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18030  have_uuid=yes
18031else
18032  :
18033fi
18034
18035	{ echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18036echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18037if test "${ac_cv_search_uuid_create+set}" = set; then
18038  echo $ECHO_N "(cached) $ECHO_C" >&6
18039else
18040  ac_func_search_save_LIBS=$LIBS
18041cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h.  */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h.  */
18047
18048/* Override any GCC internal prototype to avoid an error.
18049   Use char because int might match the return type of a GCC
18050   builtin and then its argument prototype would still apply.  */
18051#ifdef __cplusplus
18052extern "C"
18053#endif
18054char uuid_create ();
18055int
18056main ()
18057{
18058return uuid_create ();
18059  ;
18060  return 0;
18061}
18062_ACEOF
18063for ac_lib in '' uuid; do
18064  if test -z "$ac_lib"; then
18065    ac_res="none required"
18066  else
18067    ac_res=-l$ac_lib
18068    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18069  fi
18070  rm -f conftest.$ac_objext conftest$ac_exeext
18071if { (ac_try="$ac_link"
18072case "(($ac_try" in
18073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074  *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077  (eval "$ac_link") 2>conftest.er1
18078  ac_status=$?
18079  grep -v '^ *+' conftest.er1 >conftest.err
18080  rm -f conftest.er1
18081  cat conftest.err >&5
18082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083  (exit $ac_status); } && {
18084	 test -z "$ac_c_werror_flag" ||
18085	 test ! -s conftest.err
18086       } && test -s conftest$ac_exeext &&
18087       $as_test_x conftest$ac_exeext; then
18088  ac_cv_search_uuid_create=$ac_res
18089else
18090  echo "$as_me: failed program was:" >&5
18091sed 's/^/| /' conftest.$ac_ext >&5
18092
18093
18094fi
18095
18096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18097      conftest$ac_exeext
18098  if test "${ac_cv_search_uuid_create+set}" = set; then
18099  break
18100fi
18101done
18102if test "${ac_cv_search_uuid_create+set}" = set; then
18103  :
18104else
18105  ac_cv_search_uuid_create=no
18106fi
18107rm conftest.$ac_ext
18108LIBS=$ac_func_search_save_LIBS
18109fi
18110{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18111echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18112ac_res=$ac_cv_search_uuid_create
18113if test "$ac_res" != no; then
18114  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18115  :
18116else
18117  have_uuid=no
18118fi
18119
18120	LIBS="$save_LIBS"
18121
18122	if test $have_uuid = yes ; then
18123
18124cat >>confdefs.h <<\_ACEOF
18125#define HAVE_UUID_TO_STR 1
18126_ACEOF
18127
18128
18129		test "$ac_cv_search_uuid_to_str" = "none required" || \
18130			SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18131	fi
18132fi
18133
18134if test $have_uuid = no ; then
18135
18136for ac_header in uuid/uuid.h
18137do
18138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18140  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18143  echo $ECHO_N "(cached) $ECHO_C" >&6
18144fi
18145ac_res=`eval echo '${'$as_ac_Header'}'`
18146	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18147echo "${ECHO_T}$ac_res" >&6; }
18148else
18149  # Is the header compilable?
18150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18152cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h.  */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h.  */
18158$ac_includes_default
18159#include <$ac_header>
18160_ACEOF
18161rm -f conftest.$ac_objext
18162if { (ac_try="$ac_compile"
18163case "(($ac_try" in
18164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165  *) ac_try_echo=$ac_try;;
18166esac
18167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168  (eval "$ac_compile") 2>conftest.er1
18169  ac_status=$?
18170  grep -v '^ *+' conftest.er1 >conftest.err
18171  rm -f conftest.er1
18172  cat conftest.err >&5
18173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174  (exit $ac_status); } && {
18175	 test -z "$ac_c_werror_flag" ||
18176	 test ! -s conftest.err
18177       } && test -s conftest.$ac_objext; then
18178  ac_header_compiler=yes
18179else
18180  echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183	ac_header_compiler=no
18184fi
18185
18186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18188echo "${ECHO_T}$ac_header_compiler" >&6; }
18189
18190# Is the header present?
18191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18193cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h.  */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h.  */
18199#include <$ac_header>
18200_ACEOF
18201if { (ac_try="$ac_cpp conftest.$ac_ext"
18202case "(($ac_try" in
18203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204  *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18208  ac_status=$?
18209  grep -v '^ *+' conftest.er1 >conftest.err
18210  rm -f conftest.er1
18211  cat conftest.err >&5
18212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213  (exit $ac_status); } >/dev/null && {
18214	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18215	 test ! -s conftest.err
18216       }; then
18217  ac_header_preproc=yes
18218else
18219  echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222  ac_header_preproc=no
18223fi
18224
18225rm -f conftest.err conftest.$ac_ext
18226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18227echo "${ECHO_T}$ac_header_preproc" >&6; }
18228
18229# So?  What about this header?
18230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18231  yes:no: )
18232    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18234    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18236    ac_header_preproc=yes
18237    ;;
18238  no:yes:* )
18239    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18241    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18242echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18243    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18245    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18246echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18247    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18249    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18251    ( cat <<\_ASBOX
18252## --------------------------------------------- ##
18253## Report this to <http://www.openldap.org/its/> ##
18254## --------------------------------------------- ##
18255_ASBOX
18256     ) | sed "s/^/$as_me: WARNING:     /" >&2
18257    ;;
18258esac
18259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262  echo $ECHO_N "(cached) $ECHO_C" >&6
18263else
18264  eval "$as_ac_Header=\$ac_header_preproc"
18265fi
18266ac_res=`eval echo '${'$as_ac_Header'}'`
18267	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18268echo "${ECHO_T}$ac_res" >&6; }
18269
18270fi
18271if test `eval echo '${'$as_ac_Header'}'` = yes; then
18272  cat >>confdefs.h <<_ACEOF
18273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18274_ACEOF
18275
18276fi
18277
18278done
18279
18280	if test $ac_cv_header_uuid_uuid_h = yes ; then
18281		save_LIBS="$LIBS"
18282		{ echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18283echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18284if test "${ac_cv_search_uuid_generate+set}" = set; then
18285  echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287  ac_func_search_save_LIBS=$LIBS
18288cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h.  */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h.  */
18294
18295/* Override any GCC internal prototype to avoid an error.
18296   Use char because int might match the return type of a GCC
18297   builtin and then its argument prototype would still apply.  */
18298#ifdef __cplusplus
18299extern "C"
18300#endif
18301char uuid_generate ();
18302int
18303main ()
18304{
18305return uuid_generate ();
18306  ;
18307  return 0;
18308}
18309_ACEOF
18310for ac_lib in '' uuid; do
18311  if test -z "$ac_lib"; then
18312    ac_res="none required"
18313  else
18314    ac_res=-l$ac_lib
18315    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18316  fi
18317  rm -f conftest.$ac_objext conftest$ac_exeext
18318if { (ac_try="$ac_link"
18319case "(($ac_try" in
18320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321  *) ac_try_echo=$ac_try;;
18322esac
18323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324  (eval "$ac_link") 2>conftest.er1
18325  ac_status=$?
18326  grep -v '^ *+' conftest.er1 >conftest.err
18327  rm -f conftest.er1
18328  cat conftest.err >&5
18329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330  (exit $ac_status); } && {
18331	 test -z "$ac_c_werror_flag" ||
18332	 test ! -s conftest.err
18333       } && test -s conftest$ac_exeext &&
18334       $as_test_x conftest$ac_exeext; then
18335  ac_cv_search_uuid_generate=$ac_res
18336else
18337  echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340
18341fi
18342
18343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18344      conftest$ac_exeext
18345  if test "${ac_cv_search_uuid_generate+set}" = set; then
18346  break
18347fi
18348done
18349if test "${ac_cv_search_uuid_generate+set}" = set; then
18350  :
18351else
18352  ac_cv_search_uuid_generate=no
18353fi
18354rm conftest.$ac_ext
18355LIBS=$ac_func_search_save_LIBS
18356fi
18357{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18358echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18359ac_res=$ac_cv_search_uuid_generate
18360if test "$ac_res" != no; then
18361  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18362  have_uuid=yes
18363else
18364  :
18365fi
18366
18367		{ echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18368echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18369if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18370  echo $ECHO_N "(cached) $ECHO_C" >&6
18371else
18372  ac_func_search_save_LIBS=$LIBS
18373cat >conftest.$ac_ext <<_ACEOF
18374/* confdefs.h.  */
18375_ACEOF
18376cat confdefs.h >>conftest.$ac_ext
18377cat >>conftest.$ac_ext <<_ACEOF
18378/* end confdefs.h.  */
18379
18380/* Override any GCC internal prototype to avoid an error.
18381   Use char because int might match the return type of a GCC
18382   builtin and then its argument prototype would still apply.  */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char uuid_unparse_lower ();
18387int
18388main ()
18389{
18390return uuid_unparse_lower ();
18391  ;
18392  return 0;
18393}
18394_ACEOF
18395for ac_lib in '' uuid; do
18396  if test -z "$ac_lib"; then
18397    ac_res="none required"
18398  else
18399    ac_res=-l$ac_lib
18400    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18401  fi
18402  rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (ac_try="$ac_link"
18404case "(($ac_try" in
18405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406  *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409  (eval "$ac_link") 2>conftest.er1
18410  ac_status=$?
18411  grep -v '^ *+' conftest.er1 >conftest.err
18412  rm -f conftest.er1
18413  cat conftest.err >&5
18414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415  (exit $ac_status); } && {
18416	 test -z "$ac_c_werror_flag" ||
18417	 test ! -s conftest.err
18418       } && test -s conftest$ac_exeext &&
18419       $as_test_x conftest$ac_exeext; then
18420  ac_cv_search_uuid_unparse_lower=$ac_res
18421else
18422  echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425
18426fi
18427
18428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18429      conftest$ac_exeext
18430  if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18431  break
18432fi
18433done
18434if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18435  :
18436else
18437  ac_cv_search_uuid_unparse_lower=no
18438fi
18439rm conftest.$ac_ext
18440LIBS=$ac_func_search_save_LIBS
18441fi
18442{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18443echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18444ac_res=$ac_cv_search_uuid_unparse_lower
18445if test "$ac_res" != no; then
18446  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18447  :
18448else
18449  have_uuid=no
18450fi
18451
18452		LIBS="$save_LIBS"
18453
18454		if test $have_uuid = yes ; then
18455
18456cat >>confdefs.h <<\_ACEOF
18457#define HAVE_UUID_GENERATE 1
18458_ACEOF
18459
18460
18461			test "$ac_cv_search_uuid_generate" = "none required" || \
18462				SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18463		fi
18464	fi
18465fi
18466
18467if test $have_uuid = no ; then
18468	{ echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18469echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18470	save_LIBS="$LIBS"
18471	LIBS="$LIBS -lrpcrt4"
18472	cat >conftest.$ac_ext <<_ACEOF
18473/* confdefs.h.  */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h.  */
18478
18479		int __stdcall UuidCreate(void *);
18480		int __stdcall UuidToStringA(void *,void **);
18481
18482int
18483main ()
18484{
18485
18486		UuidCreate(0);
18487		UuidToStringA(0,0);
18488
18489  ;
18490  return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (ac_try="$ac_link"
18495case "(($ac_try" in
18496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497  *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500  (eval "$ac_link") 2>conftest.er1
18501  ac_status=$?
18502  grep -v '^ *+' conftest.er1 >conftest.err
18503  rm -f conftest.er1
18504  cat conftest.err >&5
18505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506  (exit $ac_status); } && {
18507	 test -z "$ac_c_werror_flag" ||
18508	 test ! -s conftest.err
18509       } && test -s conftest$ac_exeext &&
18510       $as_test_x conftest$ac_exeext; then
18511  need_rpcrt=yes
18512else
18513  echo "$as_me: failed program was:" >&5
18514sed 's/^/| /' conftest.$ac_ext >&5
18515
18516	need_rpcrt=no
18517fi
18518
18519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18520      conftest$ac_exeext conftest.$ac_ext
18521	if test $need_rpcrt = yes; then
18522		SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18523	fi
18524	LIBS="$save_LIBS"
18525	{ echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18526echo "${ECHO_T}$need_rpcrt" >&6; }
18527fi
18528
18529ol_cv_lib_resolver=no
18530if test $ol_cv_lib_resolver = no ; then
18531	{ echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18532echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18533if test "${ol_cv_resolver_none+set}" = set; then
18534  echo $ECHO_N "(cached) $ECHO_C" >&6
18535else
18536
18537	ol_RESOLVER_LIB=
18538	ol_LIBS=$LIBS
18539	LIBS="$ol_RESOLVER_LIB $LIBS"
18540
18541	cat >conftest.$ac_ext <<_ACEOF
18542/* confdefs.h.  */
18543_ACEOF
18544cat confdefs.h >>conftest.$ac_ext
18545cat >>conftest.$ac_ext <<_ACEOF
18546/* end confdefs.h.  */
18547
18548#ifdef HAVE_SYS_TYPES_H
18549#	include <sys/types.h>
18550#endif
18551#include <netinet/in.h>
18552#ifdef HAVE_ARPA_NAMESER_H
18553#	include <arpa/nameser.h>
18554#endif
18555#ifdef HAVE_RESOLV_H
18556#	include <resolv.h>
18557#endif
18558
18559int
18560main ()
18561{
18562{
18563	int len, status;
18564	char *request = NULL;
18565	unsigned char reply[64*1024];
18566	unsigned char host[64*1024];
18567	unsigned char *p;
18568
18569#ifdef NS_HFIXEDSZ
18570	/* Bind 8/9 interface */
18571	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18572#else
18573	/* Bind 4 interface */
18574# ifndef T_SRV
18575#  define T_SRV 33
18576# endif
18577	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18578#endif
18579	p = reply;
18580#ifdef NS_HFIXEDSZ
18581	/* Bind 8/9 interface */
18582	p += NS_HFIXEDSZ;
18583#elif defined(HFIXEDSZ)
18584	/* Bind 4 interface w/ HFIXEDSZ */
18585	p += HFIXEDSZ;
18586#else
18587	/* Bind 4 interface w/o HFIXEDSZ */
18588	p += sizeof(HEADER);
18589#endif
18590	status = dn_expand( reply, reply+len, p, host, sizeof(host));
18591}
18592  ;
18593  return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext conftest$ac_exeext
18597if { (ac_try="$ac_link"
18598case "(($ac_try" in
18599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600  *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603  (eval "$ac_link") 2>conftest.er1
18604  ac_status=$?
18605  grep -v '^ *+' conftest.er1 >conftest.err
18606  rm -f conftest.er1
18607  cat conftest.err >&5
18608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609  (exit $ac_status); } && {
18610	 test -z "$ac_c_werror_flag" ||
18611	 test ! -s conftest.err
18612       } && test -s conftest$ac_exeext &&
18613       $as_test_x conftest$ac_exeext; then
18614  ol_cv_resolver_none=yes
18615else
18616  echo "$as_me: failed program was:" >&5
18617sed 's/^/| /' conftest.$ac_ext >&5
18618
18619	ol_cv_resolver_none=no
18620fi
18621
18622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623      conftest$ac_exeext conftest.$ac_ext
18624
18625	LIBS="$ol_LIBS"
18626
18627fi
18628{ echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18629echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18630
18631	if test $ol_cv_resolver_none = yes ; then
18632		ol_cv_lib_resolver=yes
18633	fi
18634fi
18635
18636if test $ol_cv_lib_resolver = no ; then
18637	{ echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18638echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18639if test "${ol_cv_resolver_resolv+set}" = set; then
18640  echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642
18643	ol_RESOLVER_LIB=-lresolv
18644	ol_LIBS=$LIBS
18645	LIBS="$ol_RESOLVER_LIB $LIBS"
18646
18647	cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h.  */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h.  */
18653
18654#ifdef HAVE_SYS_TYPES_H
18655#	include <sys/types.h>
18656#endif
18657#include <netinet/in.h>
18658#ifdef HAVE_ARPA_NAMESER_H
18659#	include <arpa/nameser.h>
18660#endif
18661#ifdef HAVE_RESOLV_H
18662#	include <resolv.h>
18663#endif
18664
18665int
18666main ()
18667{
18668{
18669	int len, status;
18670	char *request = NULL;
18671	unsigned char reply[64*1024];
18672	unsigned char host[64*1024];
18673	unsigned char *p;
18674
18675#ifdef NS_HFIXEDSZ
18676	/* Bind 8/9 interface */
18677	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18678#else
18679	/* Bind 4 interface */
18680# ifndef T_SRV
18681#  define T_SRV 33
18682# endif
18683	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18684#endif
18685	p = reply;
18686#ifdef NS_HFIXEDSZ
18687	/* Bind 8/9 interface */
18688	p += NS_HFIXEDSZ;
18689#elif defined(HFIXEDSZ)
18690	/* Bind 4 interface w/ HFIXEDSZ */
18691	p += HFIXEDSZ;
18692#else
18693	/* Bind 4 interface w/o HFIXEDSZ */
18694	p += sizeof(HEADER);
18695#endif
18696	status = dn_expand( reply, reply+len, p, host, sizeof(host));
18697}
18698  ;
18699  return 0;
18700}
18701_ACEOF
18702rm -f conftest.$ac_objext conftest$ac_exeext
18703if { (ac_try="$ac_link"
18704case "(($ac_try" in
18705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706  *) ac_try_echo=$ac_try;;
18707esac
18708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709  (eval "$ac_link") 2>conftest.er1
18710  ac_status=$?
18711  grep -v '^ *+' conftest.er1 >conftest.err
18712  rm -f conftest.er1
18713  cat conftest.err >&5
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); } && {
18716	 test -z "$ac_c_werror_flag" ||
18717	 test ! -s conftest.err
18718       } && test -s conftest$ac_exeext &&
18719       $as_test_x conftest$ac_exeext; then
18720  ol_cv_resolver_resolv=yes
18721else
18722  echo "$as_me: failed program was:" >&5
18723sed 's/^/| /' conftest.$ac_ext >&5
18724
18725	ol_cv_resolver_resolv=no
18726fi
18727
18728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18729      conftest$ac_exeext conftest.$ac_ext
18730
18731	LIBS="$ol_LIBS"
18732
18733fi
18734{ echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18735echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18736
18737	if test $ol_cv_resolver_resolv = yes ; then
18738		ol_cv_lib_resolver=-lresolv
18739	fi
18740fi
18741
18742if test $ol_cv_lib_resolver = no ; then
18743	{ echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18744echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18745if test "${ol_cv_resolver_bind+set}" = set; then
18746  echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748
18749	ol_RESOLVER_LIB=-lbind
18750	ol_LIBS=$LIBS
18751	LIBS="$ol_RESOLVER_LIB $LIBS"
18752
18753	cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h.  */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h.  */
18759
18760#ifdef HAVE_SYS_TYPES_H
18761#	include <sys/types.h>
18762#endif
18763#include <netinet/in.h>
18764#ifdef HAVE_ARPA_NAMESER_H
18765#	include <arpa/nameser.h>
18766#endif
18767#ifdef HAVE_RESOLV_H
18768#	include <resolv.h>
18769#endif
18770
18771int
18772main ()
18773{
18774{
18775	int len, status;
18776	char *request = NULL;
18777	unsigned char reply[64*1024];
18778	unsigned char host[64*1024];
18779	unsigned char *p;
18780
18781#ifdef NS_HFIXEDSZ
18782	/* Bind 8/9 interface */
18783	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18784#else
18785	/* Bind 4 interface */
18786# ifndef T_SRV
18787#  define T_SRV 33
18788# endif
18789	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18790#endif
18791	p = reply;
18792#ifdef NS_HFIXEDSZ
18793	/* Bind 8/9 interface */
18794	p += NS_HFIXEDSZ;
18795#elif defined(HFIXEDSZ)
18796	/* Bind 4 interface w/ HFIXEDSZ */
18797	p += HFIXEDSZ;
18798#else
18799	/* Bind 4 interface w/o HFIXEDSZ */
18800	p += sizeof(HEADER);
18801#endif
18802	status = dn_expand( reply, reply+len, p, host, sizeof(host));
18803}
18804  ;
18805  return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext conftest$ac_exeext
18809if { (ac_try="$ac_link"
18810case "(($ac_try" in
18811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812  *) ac_try_echo=$ac_try;;
18813esac
18814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815  (eval "$ac_link") 2>conftest.er1
18816  ac_status=$?
18817  grep -v '^ *+' conftest.er1 >conftest.err
18818  rm -f conftest.er1
18819  cat conftest.err >&5
18820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821  (exit $ac_status); } && {
18822	 test -z "$ac_c_werror_flag" ||
18823	 test ! -s conftest.err
18824       } && test -s conftest$ac_exeext &&
18825       $as_test_x conftest$ac_exeext; then
18826  ol_cv_resolver_bind=yes
18827else
18828  echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831	ol_cv_resolver_bind=no
18832fi
18833
18834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18835      conftest$ac_exeext conftest.$ac_ext
18836
18837	LIBS="$ol_LIBS"
18838
18839fi
18840{ echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18841echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18842
18843	if test $ol_cv_resolver_bind = yes ; then
18844		ol_cv_lib_resolver=-lbind
18845	fi
18846fi
18847
18848
18849
18850ol_link_dnssrv=no
18851if test "$ol_cv_lib_resolver" != no ; then
18852
18853cat >>confdefs.h <<\_ACEOF
18854#define HAVE_RES_QUERY 1
18855_ACEOF
18856
18857
18858	if test "$ol_enable_dnssrv" != no ; then
18859		ol_link_dnssrv=yes
18860	fi
18861
18862	if test "$ol_cv_lib_resolver" != yes ; then
18863		LIBS="$ol_cv_lib_resolver $LIBS"
18864	fi
18865fi
18866
18867if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18868	if test "$ol_link_dnssrv" = no ; then
18869		{ { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18870echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18871   { (exit 1); exit 1; }; }
18872	fi
18873else
18874	ol_enable_dnssrv=no
18875fi
18876
18877
18878for ac_func in hstrerror
18879do
18880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18884  echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886  cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h.  */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h.  */
18892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18894#define $ac_func innocuous_$ac_func
18895
18896/* System header to define __stub macros and hopefully few prototypes,
18897    which can conflict with char $ac_func (); below.
18898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18899    <limits.h> exists even on freestanding compilers.  */
18900
18901#ifdef __STDC__
18902# include <limits.h>
18903#else
18904# include <assert.h>
18905#endif
18906
18907#undef $ac_func
18908
18909/* Override any GCC internal prototype to avoid an error.
18910   Use char because int might match the return type of a GCC
18911   builtin and then its argument prototype would still apply.  */
18912#ifdef __cplusplus
18913extern "C"
18914#endif
18915char $ac_func ();
18916/* The GNU C library defines this for functions which it implements
18917    to always fail with ENOSYS.  Some functions are actually named
18918    something starting with __ and the normal name is an alias.  */
18919#if defined __stub_$ac_func || defined __stub___$ac_func
18920choke me
18921#endif
18922
18923int
18924main ()
18925{
18926return $ac_func ();
18927  ;
18928  return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext conftest$ac_exeext
18932if { (ac_try="$ac_link"
18933case "(($ac_try" in
18934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935  *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938  (eval "$ac_link") 2>conftest.er1
18939  ac_status=$?
18940  grep -v '^ *+' conftest.er1 >conftest.err
18941  rm -f conftest.er1
18942  cat conftest.err >&5
18943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944  (exit $ac_status); } && {
18945	 test -z "$ac_c_werror_flag" ||
18946	 test ! -s conftest.err
18947       } && test -s conftest$ac_exeext &&
18948       $as_test_x conftest$ac_exeext; then
18949  eval "$as_ac_var=yes"
18950else
18951  echo "$as_me: failed program was:" >&5
18952sed 's/^/| /' conftest.$ac_ext >&5
18953
18954	eval "$as_ac_var=no"
18955fi
18956
18957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18958      conftest$ac_exeext conftest.$ac_ext
18959fi
18960ac_res=`eval echo '${'$as_ac_var'}'`
18961	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18962echo "${ECHO_T}$ac_res" >&6; }
18963if test `eval echo '${'$as_ac_var'}'` = yes; then
18964  cat >>confdefs.h <<_ACEOF
18965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18966_ACEOF
18967
18968fi
18969done
18970
18971
18972
18973
18974
18975
18976for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18977do
18978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18982  echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984  cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h.  */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h.  */
18990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18991   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18992#define $ac_func innocuous_$ac_func
18993
18994/* System header to define __stub macros and hopefully few prototypes,
18995    which can conflict with char $ac_func (); below.
18996    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18997    <limits.h> exists even on freestanding compilers.  */
18998
18999#ifdef __STDC__
19000# include <limits.h>
19001#else
19002# include <assert.h>
19003#endif
19004
19005#undef $ac_func
19006
19007/* Override any GCC internal prototype to avoid an error.
19008   Use char because int might match the return type of a GCC
19009   builtin and then its argument prototype would still apply.  */
19010#ifdef __cplusplus
19011extern "C"
19012#endif
19013char $ac_func ();
19014/* The GNU C library defines this for functions which it implements
19015    to always fail with ENOSYS.  Some functions are actually named
19016    something starting with __ and the normal name is an alias.  */
19017#if defined __stub_$ac_func || defined __stub___$ac_func
19018choke me
19019#endif
19020
19021int
19022main ()
19023{
19024return $ac_func ();
19025  ;
19026  return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext conftest$ac_exeext
19030if { (ac_try="$ac_link"
19031case "(($ac_try" in
19032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033  *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036  (eval "$ac_link") 2>conftest.er1
19037  ac_status=$?
19038  grep -v '^ *+' conftest.er1 >conftest.err
19039  rm -f conftest.er1
19040  cat conftest.err >&5
19041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042  (exit $ac_status); } && {
19043	 test -z "$ac_c_werror_flag" ||
19044	 test ! -s conftest.err
19045       } && test -s conftest$ac_exeext &&
19046       $as_test_x conftest$ac_exeext; then
19047  eval "$as_ac_var=yes"
19048else
19049  echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052	eval "$as_ac_var=no"
19053fi
19054
19055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056      conftest$ac_exeext conftest.$ac_ext
19057fi
19058ac_res=`eval echo '${'$as_ac_var'}'`
19059	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19060echo "${ECHO_T}$ac_res" >&6; }
19061if test `eval echo '${'$as_ac_var'}'` = yes; then
19062  cat >>confdefs.h <<_ACEOF
19063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19064_ACEOF
19065
19066fi
19067done
19068
19069
19070ol_link_ipv6=no
19071if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19072	if test $ol_enable_ipv6 = yes ; then
19073		{ { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19074echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19075   { (exit 1); exit 1; }; }
19076	fi
19077elif test $ol_enable_ipv6 != no ; then
19078	{ echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19079echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19080if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19081  echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083
19084		cat >conftest.$ac_ext <<_ACEOF
19085/* confdefs.h.  */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h.  */
19090
19091#			include <netinet/in.h>
19092#			ifdef INET6_ADDRSTRLEN
19093				__has_inet6_addrstrlen__;
19094#			endif
19095
19096_ACEOF
19097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19098  $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19099  ol_cv_inet6_addrstrlen=yes
19100else
19101  ol_cv_inet6_addrstrlen=no
19102fi
19103rm -f -r conftest*
19104
19105fi
19106{ echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19107echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19108
19109
19110	{ echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19111echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19112if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19113  echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115
19116		cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h.  */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h.  */
19122
19123#include <sys/types.h>
19124#include <sys/socket.h>
19125
19126int
19127main ()
19128{
19129
19130			struct sockaddr_storage ss;
19131
19132  ;
19133  return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (ac_try="$ac_compile"
19138case "(($ac_try" in
19139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140  *) ac_try_echo=$ac_try;;
19141esac
19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143  (eval "$ac_compile") 2>conftest.er1
19144  ac_status=$?
19145  grep -v '^ *+' conftest.er1 >conftest.err
19146  rm -f conftest.er1
19147  cat conftest.err >&5
19148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149  (exit $ac_status); } && {
19150	 test -z "$ac_c_werror_flag" ||
19151	 test ! -s conftest.err
19152       } && test -s conftest.$ac_objext; then
19153  ol_cv_struct_sockaddr_storage=yes
19154else
19155  echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158	ol_cv_struct_sockaddr_storage=no
19159fi
19160
19161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162fi
19163{ echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19164echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19165
19166	if test $ol_cv_inet6_addrstrlen = yes &&
19167	   test $ol_cv_struct_sockaddr_storage = yes ; then
19168		ol_link_ipv6=yes
19169	elif test $ol_enable_ipv6 = yes &&
19170	     test $ol_cv_inet6_addrstrlen = no ; then
19171		{ { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19172echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19173   { (exit 1); exit 1; }; }
19174	elif test $ol_enable_ipv6 = yes &&
19175	     test $ol_cv_struct_sockaddr_storage = no ; then
19176		{ { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19177echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19178   { (exit 1); exit 1; }; }
19179	fi
19180fi
19181
19182if test $ol_enable_local != no ; then
19183
19184for ac_header in sys/un.h
19185do
19186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191  echo $ECHO_N "(cached) $ECHO_C" >&6
19192fi
19193ac_res=`eval echo '${'$as_ac_Header'}'`
19194	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19195echo "${ECHO_T}$ac_res" >&6; }
19196else
19197  # Is the header compilable?
19198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200cat >conftest.$ac_ext <<_ACEOF
19201/* confdefs.h.  */
19202_ACEOF
19203cat confdefs.h >>conftest.$ac_ext
19204cat >>conftest.$ac_ext <<_ACEOF
19205/* end confdefs.h.  */
19206$ac_includes_default
19207#include <$ac_header>
19208_ACEOF
19209rm -f conftest.$ac_objext
19210if { (ac_try="$ac_compile"
19211case "(($ac_try" in
19212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213  *) ac_try_echo=$ac_try;;
19214esac
19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216  (eval "$ac_compile") 2>conftest.er1
19217  ac_status=$?
19218  grep -v '^ *+' conftest.er1 >conftest.err
19219  rm -f conftest.er1
19220  cat conftest.err >&5
19221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222  (exit $ac_status); } && {
19223	 test -z "$ac_c_werror_flag" ||
19224	 test ! -s conftest.err
19225       } && test -s conftest.$ac_objext; then
19226  ac_header_compiler=yes
19227else
19228  echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231	ac_header_compiler=no
19232fi
19233
19234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236echo "${ECHO_T}$ac_header_compiler" >&6; }
19237
19238# Is the header present?
19239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h.  */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h.  */
19247#include <$ac_header>
19248_ACEOF
19249if { (ac_try="$ac_cpp conftest.$ac_ext"
19250case "(($ac_try" in
19251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252  *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19256  ac_status=$?
19257  grep -v '^ *+' conftest.er1 >conftest.err
19258  rm -f conftest.er1
19259  cat conftest.err >&5
19260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261  (exit $ac_status); } >/dev/null && {
19262	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263	 test ! -s conftest.err
19264       }; then
19265  ac_header_preproc=yes
19266else
19267  echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270  ac_header_preproc=no
19271fi
19272
19273rm -f conftest.err conftest.$ac_ext
19274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275echo "${ECHO_T}$ac_header_preproc" >&6; }
19276
19277# So?  What about this header?
19278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19279  yes:no: )
19280    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284    ac_header_preproc=yes
19285    ;;
19286  no:yes:* )
19287    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19290echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19291    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19294echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19299    ( cat <<\_ASBOX
19300## --------------------------------------------- ##
19301## Report this to <http://www.openldap.org/its/> ##
19302## --------------------------------------------- ##
19303_ASBOX
19304     ) | sed "s/^/$as_me: WARNING:     /" >&2
19305    ;;
19306esac
19307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310  echo $ECHO_N "(cached) $ECHO_C" >&6
19311else
19312  eval "$as_ac_Header=\$ac_header_preproc"
19313fi
19314ac_res=`eval echo '${'$as_ac_Header'}'`
19315	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19316echo "${ECHO_T}$ac_res" >&6; }
19317
19318fi
19319if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320  cat >>confdefs.h <<_ACEOF
19321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322_ACEOF
19323
19324fi
19325
19326done
19327
19328
19329	if test $ol_enable_local = auto ; then
19330		ol_enable_local=$ac_cv_header_sys_un_h
19331	elif test $ac_cv_header_sys_un_h = no ; then
19332		{ { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19333echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19334   { (exit 1); exit 1; }; }
19335	fi
19336fi
19337
19338
19339if test $ol_with_tls = yes ; then
19340	ol_with_tls=auto
19341fi
19342
19343ol_link_tls=no
19344if test $ol_with_tls = secure-transport || test $ol_with_tls = auto ; then
19345	save_CPPFLAGS="$CPPFLAGS"
19346	CPPFLAGS="$CPPFLAGS -F/System/Library/PrivateFrameworks"
19347
19348
19349
19350for ac_header in Security/SecureTransport.h CoreDaemon/XSCipher.h
19351do
19352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19354  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19357  echo $ECHO_N "(cached) $ECHO_C" >&6
19358fi
19359ac_res=`eval echo '${'$as_ac_Header'}'`
19360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19361echo "${ECHO_T}$ac_res" >&6; }
19362else
19363  # Is the header compilable?
19364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19366cat >conftest.$ac_ext <<_ACEOF
19367/* confdefs.h.  */
19368_ACEOF
19369cat confdefs.h >>conftest.$ac_ext
19370cat >>conftest.$ac_ext <<_ACEOF
19371/* end confdefs.h.  */
19372$ac_includes_default
19373#include <$ac_header>
19374_ACEOF
19375rm -f conftest.$ac_objext
19376if { (ac_try="$ac_compile"
19377case "(($ac_try" in
19378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379  *) ac_try_echo=$ac_try;;
19380esac
19381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382  (eval "$ac_compile") 2>conftest.er1
19383  ac_status=$?
19384  grep -v '^ *+' conftest.er1 >conftest.err
19385  rm -f conftest.er1
19386  cat conftest.err >&5
19387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388  (exit $ac_status); } && {
19389	 test -z "$ac_c_werror_flag" ||
19390	 test ! -s conftest.err
19391       } && test -s conftest.$ac_objext; then
19392  ac_header_compiler=yes
19393else
19394  echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397	ac_header_compiler=no
19398fi
19399
19400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19402echo "${ECHO_T}$ac_header_compiler" >&6; }
19403
19404# Is the header present?
19405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19407cat >conftest.$ac_ext <<_ACEOF
19408/* confdefs.h.  */
19409_ACEOF
19410cat confdefs.h >>conftest.$ac_ext
19411cat >>conftest.$ac_ext <<_ACEOF
19412/* end confdefs.h.  */
19413#include <$ac_header>
19414_ACEOF
19415if { (ac_try="$ac_cpp conftest.$ac_ext"
19416case "(($ac_try" in
19417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418  *) ac_try_echo=$ac_try;;
19419esac
19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19422  ac_status=$?
19423  grep -v '^ *+' conftest.er1 >conftest.err
19424  rm -f conftest.er1
19425  cat conftest.err >&5
19426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427  (exit $ac_status); } >/dev/null && {
19428	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19429	 test ! -s conftest.err
19430       }; then
19431  ac_header_preproc=yes
19432else
19433  echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
19435
19436  ac_header_preproc=no
19437fi
19438
19439rm -f conftest.err conftest.$ac_ext
19440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19441echo "${ECHO_T}$ac_header_preproc" >&6; }
19442
19443# So?  What about this header?
19444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19445  yes:no: )
19446    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19450    ac_header_preproc=yes
19451    ;;
19452  no:yes:* )
19453    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19455    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19456echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19457    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19459    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19460echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19463    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19465    ( cat <<\_ASBOX
19466## --------------------------------------------- ##
19467## Report this to <http://www.openldap.org/its/> ##
19468## --------------------------------------------- ##
19469_ASBOX
19470     ) | sed "s/^/$as_me: WARNING:     /" >&2
19471    ;;
19472esac
19473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19476  echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478  eval "$as_ac_Header=\$ac_header_preproc"
19479fi
19480ac_res=`eval echo '${'$as_ac_Header'}'`
19481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19482echo "${ECHO_T}$ac_res" >&6; }
19483
19484fi
19485if test `eval echo '${'$as_ac_Header'}'` = yes; then
19486  cat >>confdefs.h <<_ACEOF
19487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19488_ACEOF
19489
19490fi
19491
19492done
19493
19494	CPPFLAGS="$save_CPPFLAGS"
19495	if test $ac_cv_header_Security_SecureTransport_h = yes &&
19496	   test $ac_cv_header_CoreDaemon_XSCipher_h = yes ; then
19497		ol_with_tls=secure-transport
19498		ol_link_tls=yes
19499
19500cat >>confdefs.h <<\_ACEOF
19501#define HAVE_SECURE_TRANSPORT 1
19502_ACEOF
19503
19504		TLS_LIBS="-framework Security -framework CoreDaemon"
19505	elif test $ol_with_tls = secure-transport ; then
19506		{ { echo "$as_me:$LINENO: error: Can't build with SecureTransport: required header not found" >&5
19507echo "$as_me: error: Can't build with SecureTransport: required header not found" >&2;}
19508   { (exit 1); exit 1; }; }
19509	fi
19510fi
19511
19512if test $ol_link_tls = no ; then
19513	if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19514
19515for ac_header in openssl/ssl.h
19516do
19517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19519  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19522  echo $ECHO_N "(cached) $ECHO_C" >&6
19523fi
19524ac_res=`eval echo '${'$as_ac_Header'}'`
19525	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19526echo "${ECHO_T}$ac_res" >&6; }
19527else
19528  # Is the header compilable?
19529{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19531cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h.  */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h.  */
19537$ac_includes_default
19538#include <$ac_header>
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (ac_try="$ac_compile"
19542case "(($ac_try" in
19543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544  *) ac_try_echo=$ac_try;;
19545esac
19546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547  (eval "$ac_compile") 2>conftest.er1
19548  ac_status=$?
19549  grep -v '^ *+' conftest.er1 >conftest.err
19550  rm -f conftest.er1
19551  cat conftest.err >&5
19552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553  (exit $ac_status); } && {
19554	 test -z "$ac_c_werror_flag" ||
19555	 test ! -s conftest.err
19556       } && test -s conftest.$ac_objext; then
19557  ac_header_compiler=yes
19558else
19559  echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562	ac_header_compiler=no
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19567echo "${ECHO_T}$ac_header_compiler" >&6; }
19568
19569# Is the header present?
19570{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19572cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h.  */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h.  */
19578#include <$ac_header>
19579_ACEOF
19580if { (ac_try="$ac_cpp conftest.$ac_ext"
19581case "(($ac_try" in
19582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583  *) ac_try_echo=$ac_try;;
19584esac
19585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19587  ac_status=$?
19588  grep -v '^ *+' conftest.er1 >conftest.err
19589  rm -f conftest.er1
19590  cat conftest.err >&5
19591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592  (exit $ac_status); } >/dev/null && {
19593	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19594	 test ! -s conftest.err
19595       }; then
19596  ac_header_preproc=yes
19597else
19598  echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601  ac_header_preproc=no
19602fi
19603
19604rm -f conftest.err conftest.$ac_ext
19605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19606echo "${ECHO_T}$ac_header_preproc" >&6; }
19607
19608# So?  What about this header?
19609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19610  yes:no: )
19611    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19613    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19615    ac_header_preproc=yes
19616    ;;
19617  no:yes:* )
19618    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19620    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19621echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19622    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19624    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19625echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19626    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19628    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19630    ( cat <<\_ASBOX
19631## --------------------------------------------- ##
19632## Report this to <http://www.openldap.org/its/> ##
19633## --------------------------------------------- ##
19634_ASBOX
19635     ) | sed "s/^/$as_me: WARNING:     /" >&2
19636    ;;
19637esac
19638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641  echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
19643  eval "$as_ac_Header=\$ac_header_preproc"
19644fi
19645ac_res=`eval echo '${'$as_ac_Header'}'`
19646	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19647echo "${ECHO_T}$ac_res" >&6; }
19648
19649fi
19650if test `eval echo '${'$as_ac_Header'}'` = yes; then
19651  cat >>confdefs.h <<_ACEOF
19652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19653_ACEOF
19654
19655fi
19656
19657done
19658
19659
19660		if test $ac_cv_header_openssl_ssl_h = yes ; then
19661			{ echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19662echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19663if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19664  echo $ECHO_N "(cached) $ECHO_C" >&6
19665else
19666  ac_check_lib_save_LIBS=$LIBS
19667LIBS="-lssl -lcrypto $LIBS"
19668cat >conftest.$ac_ext <<_ACEOF
19669/* confdefs.h.  */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h.  */
19674
19675/* Override any GCC internal prototype to avoid an error.
19676   Use char because int might match the return type of a GCC
19677   builtin and then its argument prototype would still apply.  */
19678#ifdef __cplusplus
19679extern "C"
19680#endif
19681char SSL_library_init ();
19682int
19683main ()
19684{
19685return SSL_library_init ();
19686  ;
19687  return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext conftest$ac_exeext
19691if { (ac_try="$ac_link"
19692case "(($ac_try" in
19693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694  *) ac_try_echo=$ac_try;;
19695esac
19696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697  (eval "$ac_link") 2>conftest.er1
19698  ac_status=$?
19699  grep -v '^ *+' conftest.er1 >conftest.err
19700  rm -f conftest.er1
19701  cat conftest.err >&5
19702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703  (exit $ac_status); } && {
19704	 test -z "$ac_c_werror_flag" ||
19705	 test ! -s conftest.err
19706       } && test -s conftest$ac_exeext &&
19707       $as_test_x conftest$ac_exeext; then
19708  ac_cv_lib_ssl_SSL_library_init=yes
19709else
19710  echo "$as_me: failed program was:" >&5
19711sed 's/^/| /' conftest.$ac_ext >&5
19712
19713	ac_cv_lib_ssl_SSL_library_init=no
19714fi
19715
19716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19717      conftest$ac_exeext conftest.$ac_ext
19718LIBS=$ac_check_lib_save_LIBS
19719fi
19720{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19721echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19722if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19723  have_openssl=yes
19724				need_rsaref=no
19725else
19726  have_openssl=no
19727fi
19728
19729
19730			if test $have_openssl = no ; then
19731				{ echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19732echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19733if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19734  echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736  ac_check_lib_save_LIBS=$LIBS
19737LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19738cat >conftest.$ac_ext <<_ACEOF
19739/* confdefs.h.  */
19740_ACEOF
19741cat confdefs.h >>conftest.$ac_ext
19742cat >>conftest.$ac_ext <<_ACEOF
19743/* end confdefs.h.  */
19744
19745/* Override any GCC internal prototype to avoid an error.
19746   Use char because int might match the return type of a GCC
19747   builtin and then its argument prototype would still apply.  */
19748#ifdef __cplusplus
19749extern "C"
19750#endif
19751char ssl3_accept ();
19752int
19753main ()
19754{
19755return ssl3_accept ();
19756  ;
19757  return 0;
19758}
19759_ACEOF
19760rm -f conftest.$ac_objext conftest$ac_exeext
19761if { (ac_try="$ac_link"
19762case "(($ac_try" in
19763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764  *) ac_try_echo=$ac_try;;
19765esac
19766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767  (eval "$ac_link") 2>conftest.er1
19768  ac_status=$?
19769  grep -v '^ *+' conftest.er1 >conftest.err
19770  rm -f conftest.er1
19771  cat conftest.err >&5
19772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773  (exit $ac_status); } && {
19774	 test -z "$ac_c_werror_flag" ||
19775	 test ! -s conftest.err
19776       } && test -s conftest$ac_exeext &&
19777       $as_test_x conftest$ac_exeext; then
19778  ac_cv_lib_ssl_ssl3_accept=yes
19779else
19780  echo "$as_me: failed program was:" >&5
19781sed 's/^/| /' conftest.$ac_ext >&5
19782
19783	ac_cv_lib_ssl_ssl3_accept=no
19784fi
19785
19786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19787      conftest$ac_exeext conftest.$ac_ext
19788LIBS=$ac_check_lib_save_LIBS
19789fi
19790{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19791echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19792if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19793  have_openssl=yes
19794					need_rsaref=yes
19795else
19796  have_openssl=no
19797fi
19798
19799			fi
19800
19801			if test $have_openssl = yes ; then
19802				ol_with_tls=openssl
19803				ol_link_tls=yes
19804
19805
19806cat >>confdefs.h <<\_ACEOF
19807#define HAVE_OPENSSL 1
19808_ACEOF
19809
19810
19811				if test $need_rsaref = yes; then
19812
19813cat >>confdefs.h <<\_ACEOF
19814#define HAVE_RSAREF 1
19815_ACEOF
19816
19817
19818					TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19819				else
19820					TLS_LIBS="-lssl -lcrypto"
19821				fi
19822
19823				{ echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19824echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19825if test "${ol_cv_ssl_crl_compat+set}" = set; then
19826  echo $ECHO_N "(cached) $ECHO_C" >&6
19827else
19828
19829		cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h.  */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h.  */
19835
19836#ifdef HAVE_OPENSSL_SSL_H
19837#include <openssl/ssl.h>
19838#endif
19839
19840/* Require 0.9.7d+ */
19841#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19842	char *__ssl_compat = "0.9.7d";
19843#endif
19844
19845_ACEOF
19846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19847  $EGREP "__ssl_compat" >/dev/null 2>&1; then
19848  ol_cv_ssl_crl_compat=yes
19849else
19850  ol_cv_ssl_crl_compat=no
19851fi
19852rm -f -r conftest*
19853
19854fi
19855{ echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19856echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19857
19858				if test $ol_cv_ssl_crl_compat = yes ; then
19859
19860cat >>confdefs.h <<\_ACEOF
19861#define HAVE_OPENSSL_CRL 1
19862_ACEOF
19863
19864				fi
19865			fi
19866		fi
19867	fi
19868fi
19869
19870if test $ol_link_tls = no ; then
19871	if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19872
19873for ac_header in gnutls/gnutls.h
19874do
19875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19877  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19880  echo $ECHO_N "(cached) $ECHO_C" >&6
19881fi
19882ac_res=`eval echo '${'$as_ac_Header'}'`
19883	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19884echo "${ECHO_T}$ac_res" >&6; }
19885else
19886  # Is the header compilable?
19887{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19889cat >conftest.$ac_ext <<_ACEOF
19890/* confdefs.h.  */
19891_ACEOF
19892cat confdefs.h >>conftest.$ac_ext
19893cat >>conftest.$ac_ext <<_ACEOF
19894/* end confdefs.h.  */
19895$ac_includes_default
19896#include <$ac_header>
19897_ACEOF
19898rm -f conftest.$ac_objext
19899if { (ac_try="$ac_compile"
19900case "(($ac_try" in
19901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902  *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905  (eval "$ac_compile") 2>conftest.er1
19906  ac_status=$?
19907  grep -v '^ *+' conftest.er1 >conftest.err
19908  rm -f conftest.er1
19909  cat conftest.err >&5
19910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911  (exit $ac_status); } && {
19912	 test -z "$ac_c_werror_flag" ||
19913	 test ! -s conftest.err
19914       } && test -s conftest.$ac_objext; then
19915  ac_header_compiler=yes
19916else
19917  echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920	ac_header_compiler=no
19921fi
19922
19923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19925echo "${ECHO_T}$ac_header_compiler" >&6; }
19926
19927# Is the header present?
19928{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19930cat >conftest.$ac_ext <<_ACEOF
19931/* confdefs.h.  */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h.  */
19936#include <$ac_header>
19937_ACEOF
19938if { (ac_try="$ac_cpp conftest.$ac_ext"
19939case "(($ac_try" in
19940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941  *) ac_try_echo=$ac_try;;
19942esac
19943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19945  ac_status=$?
19946  grep -v '^ *+' conftest.er1 >conftest.err
19947  rm -f conftest.er1
19948  cat conftest.err >&5
19949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950  (exit $ac_status); } >/dev/null && {
19951	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19952	 test ! -s conftest.err
19953       }; then
19954  ac_header_preproc=yes
19955else
19956  echo "$as_me: failed program was:" >&5
19957sed 's/^/| /' conftest.$ac_ext >&5
19958
19959  ac_header_preproc=no
19960fi
19961
19962rm -f conftest.err conftest.$ac_ext
19963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19964echo "${ECHO_T}$ac_header_preproc" >&6; }
19965
19966# So?  What about this header?
19967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19968  yes:no: )
19969    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19971    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19973    ac_header_preproc=yes
19974    ;;
19975  no:yes:* )
19976    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19978    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19979echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19980    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19982    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19983echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19984    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19986    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19988    ( cat <<\_ASBOX
19989## --------------------------------------------- ##
19990## Report this to <http://www.openldap.org/its/> ##
19991## --------------------------------------------- ##
19992_ASBOX
19993     ) | sed "s/^/$as_me: WARNING:     /" >&2
19994    ;;
19995esac
19996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19999  echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001  eval "$as_ac_Header=\$ac_header_preproc"
20002fi
20003ac_res=`eval echo '${'$as_ac_Header'}'`
20004	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20005echo "${ECHO_T}$ac_res" >&6; }
20006
20007fi
20008if test `eval echo '${'$as_ac_Header'}'` = yes; then
20009  cat >>confdefs.h <<_ACEOF
20010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20011_ACEOF
20012
20013fi
20014
20015done
20016
20017
20018		if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20019			{ echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20020echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20021if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20022  echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024  ac_check_lib_save_LIBS=$LIBS
20025LIBS="-lgnutls  $LIBS"
20026cat >conftest.$ac_ext <<_ACEOF
20027/* confdefs.h.  */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h.  */
20032
20033/* Override any GCC internal prototype to avoid an error.
20034   Use char because int might match the return type of a GCC
20035   builtin and then its argument prototype would still apply.  */
20036#ifdef __cplusplus
20037extern "C"
20038#endif
20039char gnutls_init ();
20040int
20041main ()
20042{
20043return gnutls_init ();
20044  ;
20045  return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext conftest$ac_exeext
20049if { (ac_try="$ac_link"
20050case "(($ac_try" in
20051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052  *) ac_try_echo=$ac_try;;
20053esac
20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055  (eval "$ac_link") 2>conftest.er1
20056  ac_status=$?
20057  grep -v '^ *+' conftest.er1 >conftest.err
20058  rm -f conftest.er1
20059  cat conftest.err >&5
20060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061  (exit $ac_status); } && {
20062	 test -z "$ac_c_werror_flag" ||
20063	 test ! -s conftest.err
20064       } && test -s conftest$ac_exeext &&
20065       $as_test_x conftest$ac_exeext; then
20066  ac_cv_lib_gnutls_gnutls_init=yes
20067else
20068  echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071	ac_cv_lib_gnutls_gnutls_init=no
20072fi
20073
20074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20075      conftest$ac_exeext conftest.$ac_ext
20076LIBS=$ac_check_lib_save_LIBS
20077fi
20078{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20079echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20080if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20081  have_gnutls=yes
20082else
20083  have_gnutls=no
20084fi
20085
20086
20087			if test $have_gnutls = yes ; then
20088				ol_with_tls=gnutls
20089				ol_link_tls=yes
20090
20091				TLS_LIBS="-lgnutls"
20092
20093
20094cat >>confdefs.h <<\_ACEOF
20095#define HAVE_GNUTLS 1
20096_ACEOF
20097
20098			fi
20099		fi
20100	fi
20101fi
20102
20103WITH_TLS=no
20104if test $ol_link_tls = yes ; then
20105
20106cat >>confdefs.h <<\_ACEOF
20107#define HAVE_TLS 1
20108_ACEOF
20109
20110	WITH_TLS=yes
20111elif test $ol_with_tls = auto ; then
20112	{ echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20113echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20114	{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20115echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20116elif test $ol_with_tls != no ; then
20117	{ { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20118echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20119   { (exit 1); exit 1; }; }
20120else
20121	{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20122echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20123fi
20124
20125if test $ol_enable_lmpasswd != no; then
20126	if test $ol_link_tls != yes ; then
20127		{ { echo "$as_me:$LINENO: error: LAN Manager passwords require TLS" >&5
20128echo "$as_me: error: LAN Manager passwords require TLS" >&2;}
20129   { (exit 1); exit 1; }; }
20130	fi
20131
20132
20133cat >>confdefs.h <<\_ACEOF
20134#define SLAPD_LMHASH 1
20135_ACEOF
20136
20137fi
20138
20139ol_link_threads=no
20140
20141case $ol_with_threads in auto | yes | nt)
20142
20143
20144	{ echo "$as_me:$LINENO: checking for _beginthread" >&5
20145echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20146if test "${ac_cv_func__beginthread+set}" = set; then
20147  echo $ECHO_N "(cached) $ECHO_C" >&6
20148else
20149  cat >conftest.$ac_ext <<_ACEOF
20150/* confdefs.h.  */
20151_ACEOF
20152cat confdefs.h >>conftest.$ac_ext
20153cat >>conftest.$ac_ext <<_ACEOF
20154/* end confdefs.h.  */
20155/* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20156   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20157#define _beginthread innocuous__beginthread
20158
20159/* System header to define __stub macros and hopefully few prototypes,
20160    which can conflict with char _beginthread (); below.
20161    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20162    <limits.h> exists even on freestanding compilers.  */
20163
20164#ifdef __STDC__
20165# include <limits.h>
20166#else
20167# include <assert.h>
20168#endif
20169
20170#undef _beginthread
20171
20172/* Override any GCC internal prototype to avoid an error.
20173   Use char because int might match the return type of a GCC
20174   builtin and then its argument prototype would still apply.  */
20175#ifdef __cplusplus
20176extern "C"
20177#endif
20178char _beginthread ();
20179/* The GNU C library defines this for functions which it implements
20180    to always fail with ENOSYS.  Some functions are actually named
20181    something starting with __ and the normal name is an alias.  */
20182#if defined __stub__beginthread || defined __stub____beginthread
20183choke me
20184#endif
20185
20186int
20187main ()
20188{
20189return _beginthread ();
20190  ;
20191  return 0;
20192}
20193_ACEOF
20194rm -f conftest.$ac_objext conftest$ac_exeext
20195if { (ac_try="$ac_link"
20196case "(($ac_try" in
20197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198  *) ac_try_echo=$ac_try;;
20199esac
20200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201  (eval "$ac_link") 2>conftest.er1
20202  ac_status=$?
20203  grep -v '^ *+' conftest.er1 >conftest.err
20204  rm -f conftest.er1
20205  cat conftest.err >&5
20206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207  (exit $ac_status); } && {
20208	 test -z "$ac_c_werror_flag" ||
20209	 test ! -s conftest.err
20210       } && test -s conftest$ac_exeext &&
20211       $as_test_x conftest$ac_exeext; then
20212  ac_cv_func__beginthread=yes
20213else
20214  echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217	ac_cv_func__beginthread=no
20218fi
20219
20220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20221      conftest$ac_exeext conftest.$ac_ext
20222fi
20223{ echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20224echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20225
20226
20227	if test $ac_cv_func__beginthread = yes ; then
20228
20229cat >>confdefs.h <<\_ACEOF
20230#define HAVE_NT_THREADS 1
20231_ACEOF
20232
20233		ol_cv_nt_threads=yes
20234	fi
20235
20236
20237	if test "$ol_cv_nt_threads" = yes ; then
20238		ol_link_threads=nt
20239		ol_with_threads=found
20240		ol_with_yielding_select=yes
20241
20242
20243cat >>confdefs.h <<\_ACEOF
20244#define HAVE_NT_SERVICE_MANAGER 1
20245_ACEOF
20246
20247
20248cat >>confdefs.h <<\_ACEOF
20249#define HAVE_NT_EVENT_LOG 1
20250_ACEOF
20251
20252	fi
20253
20254	if test $ol_with_threads = nt ; then
20255		{ { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20256echo "$as_me: error: could not locate NT Threads" >&2;}
20257   { (exit 1); exit 1; }; }
20258	fi
20259	;;
20260esac
20261
20262case $ol_with_threads in auto | yes | posix)
20263
20264
20265for ac_header in pthread.h
20266do
20267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20269  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20272  echo $ECHO_N "(cached) $ECHO_C" >&6
20273fi
20274ac_res=`eval echo '${'$as_ac_Header'}'`
20275	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20276echo "${ECHO_T}$ac_res" >&6; }
20277else
20278  # Is the header compilable?
20279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20281cat >conftest.$ac_ext <<_ACEOF
20282/* confdefs.h.  */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h.  */
20287$ac_includes_default
20288#include <$ac_header>
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (ac_try="$ac_compile"
20292case "(($ac_try" in
20293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294  *) ac_try_echo=$ac_try;;
20295esac
20296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297  (eval "$ac_compile") 2>conftest.er1
20298  ac_status=$?
20299  grep -v '^ *+' conftest.er1 >conftest.err
20300  rm -f conftest.er1
20301  cat conftest.err >&5
20302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303  (exit $ac_status); } && {
20304	 test -z "$ac_c_werror_flag" ||
20305	 test ! -s conftest.err
20306       } && test -s conftest.$ac_objext; then
20307  ac_header_compiler=yes
20308else
20309  echo "$as_me: failed program was:" >&5
20310sed 's/^/| /' conftest.$ac_ext >&5
20311
20312	ac_header_compiler=no
20313fi
20314
20315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20317echo "${ECHO_T}$ac_header_compiler" >&6; }
20318
20319# Is the header present?
20320{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20321echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20322cat >conftest.$ac_ext <<_ACEOF
20323/* confdefs.h.  */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h.  */
20328#include <$ac_header>
20329_ACEOF
20330if { (ac_try="$ac_cpp conftest.$ac_ext"
20331case "(($ac_try" in
20332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333  *) ac_try_echo=$ac_try;;
20334esac
20335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20337  ac_status=$?
20338  grep -v '^ *+' conftest.er1 >conftest.err
20339  rm -f conftest.er1
20340  cat conftest.err >&5
20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342  (exit $ac_status); } >/dev/null && {
20343	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20344	 test ! -s conftest.err
20345       }; then
20346  ac_header_preproc=yes
20347else
20348  echo "$as_me: failed program was:" >&5
20349sed 's/^/| /' conftest.$ac_ext >&5
20350
20351  ac_header_preproc=no
20352fi
20353
20354rm -f conftest.err conftest.$ac_ext
20355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20356echo "${ECHO_T}$ac_header_preproc" >&6; }
20357
20358# So?  What about this header?
20359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20360  yes:no: )
20361    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20363    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20365    ac_header_preproc=yes
20366    ;;
20367  no:yes:* )
20368    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20370    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20371echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20372    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20374    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20375echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20376    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20378    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20380    ( cat <<\_ASBOX
20381## --------------------------------------------- ##
20382## Report this to <http://www.openldap.org/its/> ##
20383## --------------------------------------------- ##
20384_ASBOX
20385     ) | sed "s/^/$as_me: WARNING:     /" >&2
20386    ;;
20387esac
20388{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20391  echo $ECHO_N "(cached) $ECHO_C" >&6
20392else
20393  eval "$as_ac_Header=\$ac_header_preproc"
20394fi
20395ac_res=`eval echo '${'$as_ac_Header'}'`
20396	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20397echo "${ECHO_T}$ac_res" >&6; }
20398
20399fi
20400if test `eval echo '${'$as_ac_Header'}'` = yes; then
20401  cat >>confdefs.h <<_ACEOF
20402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20403_ACEOF
20404
20405fi
20406
20407done
20408
20409
20410	if test $ac_cv_header_pthread_h = yes ; then
20411		{ echo "$as_me:$LINENO: checking POSIX thread version" >&5
20412echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20413if test "${ol_cv_pthread_version+set}" = set; then
20414  echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
20416
20417	cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h.  */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h.  */
20423
20424#		include <pthread.h>
20425
20426int
20427main ()
20428{
20429
20430		int i = PTHREAD_CREATE_JOINABLE;
20431
20432  ;
20433  return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (ac_try="$ac_compile"
20438case "(($ac_try" in
20439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440  *) ac_try_echo=$ac_try;;
20441esac
20442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443  (eval "$ac_compile") 2>conftest.er1
20444  ac_status=$?
20445  grep -v '^ *+' conftest.er1 >conftest.err
20446  rm -f conftest.er1
20447  cat conftest.err >&5
20448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449  (exit $ac_status); } && {
20450	 test -z "$ac_c_werror_flag" ||
20451	 test ! -s conftest.err
20452       } && test -s conftest.$ac_objext; then
20453
20454	cat >conftest.$ac_ext <<_ACEOF
20455/* confdefs.h.  */
20456_ACEOF
20457cat confdefs.h >>conftest.$ac_ext
20458cat >>conftest.$ac_ext <<_ACEOF
20459/* end confdefs.h.  */
20460#include <pthread.h>
20461
20462_ACEOF
20463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20464  $EGREP "pthread_detach" >/dev/null 2>&1; then
20465  ol_cv_pthread_version=10
20466else
20467  ol_cv_pthread_version=8
20468fi
20469rm -f -r conftest*
20470
20471else
20472  echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475
20476	cat >conftest.$ac_ext <<_ACEOF
20477/* confdefs.h.  */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h.  */
20482
20483#		include <pthread.h>
20484#		ifdef PTHREAD_CREATE_UNDETACHED
20485		draft7
20486#		endif
20487
20488_ACEOF
20489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20490  $EGREP "draft7" >/dev/null 2>&1; then
20491  ol_cv_pthread_version=7
20492else
20493
20494	cat >conftest.$ac_ext <<_ACEOF
20495/* confdefs.h.  */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h.  */
20500#include <pthread.h>
20501
20502_ACEOF
20503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20504  $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20505  ol_cv_pthread_version=6
20506else
20507
20508	cat >conftest.$ac_ext <<_ACEOF
20509/* confdefs.h.  */
20510_ACEOF
20511cat confdefs.h >>conftest.$ac_ext
20512cat >>conftest.$ac_ext <<_ACEOF
20513/* end confdefs.h.  */
20514
20515#		include <pthread.h>
20516#ifdef		PTHREAD_MUTEX_INITIALIZER
20517		draft5
20518#endif
20519
20520_ACEOF
20521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20522  $EGREP "draft5" >/dev/null 2>&1; then
20523  ol_cv_pthread_version=5
20524else
20525  ol_cv_pthread_version=4
20526fi
20527rm -f -r conftest*
20528
20529fi
20530rm -f -r conftest*
20531
20532fi
20533rm -f -r conftest*
20534
20535fi
20536
20537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538
20539fi
20540{ echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20541echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20542
20543
20544		if test $ol_cv_pthread_version != 0 ; then
20545
20546cat >>confdefs.h <<_ACEOF
20547#define HAVE_PTHREADS $ol_cv_pthread_version
20548_ACEOF
20549
20550		else
20551			{ { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20552echo "$as_me: error: unknown pthread version" >&2;}
20553   { (exit 1); exit 1; }; }
20554		fi
20555
20556		# consider threads found
20557		ol_with_threads=found
20558
20559
20560	{ echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20561echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20562if test "${ol_cv_header_linux_threads+set}" = set; then
20563  echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
20565  cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h.  */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h.  */
20571#include <pthread.h>
20572_ACEOF
20573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20574  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20575  ol_cv_header_linux_threads=yes
20576else
20577  ol_cv_header_linux_threads=no
20578fi
20579rm -f -r conftest*
20580
20581
20582fi
20583{ echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20584echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20585	if test $ol_cv_header_linux_threads = yes; then
20586
20587cat >>confdefs.h <<\_ACEOF
20588#define HAVE_LINUX_THREADS 1
20589_ACEOF
20590
20591	fi
20592
20593
20594	{ echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20595echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20596if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20597  echo $ECHO_N "(cached) $ECHO_C" >&6
20598else
20599  cat >conftest.$ac_ext <<_ACEOF
20600/* confdefs.h.  */
20601_ACEOF
20602cat confdefs.h >>conftest.$ac_ext
20603cat >>conftest.$ac_ext <<_ACEOF
20604/* end confdefs.h.  */
20605#include <pthread.h>
20606#ifdef _POSIX_THREAD_IS_GNU_PTH
20607	__gnu_pth__;
20608#endif
20609
20610_ACEOF
20611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20612  $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20613  ol_cv_header_gnu_pth_pthread_h=yes
20614else
20615  ol_cv_header_gnu_pth_pthread_h=no
20616fi
20617rm -f -r conftest*
20618
20619
20620fi
20621{ echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20622echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20623
20624
20625		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20626
20627for ac_header in sched.h
20628do
20629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20631  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20634  echo $ECHO_N "(cached) $ECHO_C" >&6
20635fi
20636ac_res=`eval echo '${'$as_ac_Header'}'`
20637	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20638echo "${ECHO_T}$ac_res" >&6; }
20639else
20640  # Is the header compilable?
20641{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20643cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h.  */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h.  */
20649$ac_includes_default
20650#include <$ac_header>
20651_ACEOF
20652rm -f conftest.$ac_objext
20653if { (ac_try="$ac_compile"
20654case "(($ac_try" in
20655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656  *) ac_try_echo=$ac_try;;
20657esac
20658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659  (eval "$ac_compile") 2>conftest.er1
20660  ac_status=$?
20661  grep -v '^ *+' conftest.er1 >conftest.err
20662  rm -f conftest.er1
20663  cat conftest.err >&5
20664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665  (exit $ac_status); } && {
20666	 test -z "$ac_c_werror_flag" ||
20667	 test ! -s conftest.err
20668       } && test -s conftest.$ac_objext; then
20669  ac_header_compiler=yes
20670else
20671  echo "$as_me: failed program was:" >&5
20672sed 's/^/| /' conftest.$ac_ext >&5
20673
20674	ac_header_compiler=no
20675fi
20676
20677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20678{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20679echo "${ECHO_T}$ac_header_compiler" >&6; }
20680
20681# Is the header present?
20682{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20684cat >conftest.$ac_ext <<_ACEOF
20685/* confdefs.h.  */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h.  */
20690#include <$ac_header>
20691_ACEOF
20692if { (ac_try="$ac_cpp conftest.$ac_ext"
20693case "(($ac_try" in
20694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695  *) ac_try_echo=$ac_try;;
20696esac
20697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20699  ac_status=$?
20700  grep -v '^ *+' conftest.er1 >conftest.err
20701  rm -f conftest.er1
20702  cat conftest.err >&5
20703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704  (exit $ac_status); } >/dev/null && {
20705	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20706	 test ! -s conftest.err
20707       }; then
20708  ac_header_preproc=yes
20709else
20710  echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713  ac_header_preproc=no
20714fi
20715
20716rm -f conftest.err conftest.$ac_ext
20717{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20718echo "${ECHO_T}$ac_header_preproc" >&6; }
20719
20720# So?  What about this header?
20721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20722  yes:no: )
20723    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20725    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20727    ac_header_preproc=yes
20728    ;;
20729  no:yes:* )
20730    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20732    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20733echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20734    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20736    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20737echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20740    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20742    ( cat <<\_ASBOX
20743## --------------------------------------------- ##
20744## Report this to <http://www.openldap.org/its/> ##
20745## --------------------------------------------- ##
20746_ASBOX
20747     ) | sed "s/^/$as_me: WARNING:     /" >&2
20748    ;;
20749esac
20750{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20753  echo $ECHO_N "(cached) $ECHO_C" >&6
20754else
20755  eval "$as_ac_Header=\$ac_header_preproc"
20756fi
20757ac_res=`eval echo '${'$as_ac_Header'}'`
20758	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20759echo "${ECHO_T}$ac_res" >&6; }
20760
20761fi
20762if test `eval echo '${'$as_ac_Header'}'` = yes; then
20763  cat >>confdefs.h <<_ACEOF
20764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20765_ACEOF
20766
20767fi
20768
20769done
20770
20771		fi
20772
20773
20774				{ echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20775echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20776if test "${ol_cv_pthread_create+set}" = set; then
20777  echo $ECHO_N "(cached) $ECHO_C" >&6
20778else
20779
20780			if test "$cross_compiling" = yes; then
20781  cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h.  */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h.  */
20787
20788/* pthread test headers */
20789#include <pthread.h>
20790#if HAVE_PTHREADS < 7
20791#include <errno.h>
20792#endif
20793#ifndef NULL
20794#define NULL (void*)0
20795#endif
20796
20797static void *task(p)
20798	void *p;
20799{
20800	return (void *) (p == NULL);
20801}
20802
20803int
20804main ()
20805{
20806
20807	/* pthread test function */
20808#ifndef PTHREAD_CREATE_DETACHED
20809#define	PTHREAD_CREATE_DETACHED	1
20810#endif
20811	pthread_t t;
20812	int status;
20813	int detach = PTHREAD_CREATE_DETACHED;
20814
20815#if HAVE_PTHREADS > 4
20816	/* Final pthreads */
20817	pthread_attr_t attr;
20818
20819	status = pthread_attr_init(&attr);
20820	if( status ) return status;
20821
20822#if HAVE_PTHREADS < 7
20823	status = pthread_attr_setdetachstate(&attr, &detach);
20824	if( status < 0 ) status = errno;
20825#else
20826	status = pthread_attr_setdetachstate(&attr, detach);
20827#endif
20828	if( status ) return status;
20829	status = pthread_create( &t, &attr, task, NULL );
20830#if HAVE_PTHREADS < 7
20831	if( status < 0 ) status = errno;
20832#endif
20833	if( status ) return status;
20834#else
20835	/* Draft 4 pthreads */
20836	status = pthread_create( &t, pthread_attr_default, task, NULL );
20837	if( status ) return errno;
20838
20839	/* give thread a chance to complete */
20840	/* it should remain joinable and hence detachable */
20841	sleep( 1 );
20842
20843	status = pthread_detach( &t );
20844	if( status ) return errno;
20845#endif
20846
20847#ifdef HAVE_LINUX_THREADS
20848	pthread_kill_other_threads_np();
20849#endif
20850
20851	return 0;
20852
20853  ;
20854  return 0;
20855}
20856_ACEOF
20857rm -f conftest.$ac_objext conftest$ac_exeext
20858if { (ac_try="$ac_link"
20859case "(($ac_try" in
20860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861  *) ac_try_echo=$ac_try;;
20862esac
20863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864  (eval "$ac_link") 2>conftest.er1
20865  ac_status=$?
20866  grep -v '^ *+' conftest.er1 >conftest.err
20867  rm -f conftest.er1
20868  cat conftest.err >&5
20869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870  (exit $ac_status); } && {
20871	 test -z "$ac_c_werror_flag" ||
20872	 test ! -s conftest.err
20873       } && test -s conftest$ac_exeext &&
20874       $as_test_x conftest$ac_exeext; then
20875  ol_cv_pthread_create=yes
20876else
20877  echo "$as_me: failed program was:" >&5
20878sed 's/^/| /' conftest.$ac_ext >&5
20879
20880	ol_cv_pthread_create=no
20881fi
20882
20883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884      conftest$ac_exeext conftest.$ac_ext
20885else
20886  cat >conftest.$ac_ext <<_ACEOF
20887/* confdefs.h.  */
20888_ACEOF
20889cat confdefs.h >>conftest.$ac_ext
20890cat >>conftest.$ac_ext <<_ACEOF
20891/* end confdefs.h.  */
20892
20893/* pthread test headers */
20894#include <pthread.h>
20895#if HAVE_PTHREADS < 7
20896#include <errno.h>
20897#endif
20898#ifndef NULL
20899#define NULL (void*)0
20900#endif
20901
20902static void *task(p)
20903	void *p;
20904{
20905	return (void *) (p == NULL);
20906}
20907
20908
20909int main(argc, argv)
20910	int argc;
20911	char **argv;
20912{
20913
20914	/* pthread test function */
20915#ifndef PTHREAD_CREATE_DETACHED
20916#define	PTHREAD_CREATE_DETACHED	1
20917#endif
20918	pthread_t t;
20919	int status;
20920	int detach = PTHREAD_CREATE_DETACHED;
20921
20922#if HAVE_PTHREADS > 4
20923	/* Final pthreads */
20924	pthread_attr_t attr;
20925
20926	status = pthread_attr_init(&attr);
20927	if( status ) return status;
20928
20929#if HAVE_PTHREADS < 7
20930	status = pthread_attr_setdetachstate(&attr, &detach);
20931	if( status < 0 ) status = errno;
20932#else
20933	status = pthread_attr_setdetachstate(&attr, detach);
20934#endif
20935	if( status ) return status;
20936	status = pthread_create( &t, &attr, task, NULL );
20937#if HAVE_PTHREADS < 7
20938	if( status < 0 ) status = errno;
20939#endif
20940	if( status ) return status;
20941#else
20942	/* Draft 4 pthreads */
20943	status = pthread_create( &t, pthread_attr_default, task, NULL );
20944	if( status ) return errno;
20945
20946	/* give thread a chance to complete */
20947	/* it should remain joinable and hence detachable */
20948	sleep( 1 );
20949
20950	status = pthread_detach( &t );
20951	if( status ) return errno;
20952#endif
20953
20954#ifdef HAVE_LINUX_THREADS
20955	pthread_kill_other_threads_np();
20956#endif
20957
20958	return 0;
20959
20960}
20961
20962_ACEOF
20963rm -f conftest$ac_exeext
20964if { (ac_try="$ac_link"
20965case "(($ac_try" in
20966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967  *) ac_try_echo=$ac_try;;
20968esac
20969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970  (eval "$ac_link") 2>&5
20971  ac_status=$?
20972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974  { (case "(($ac_try" in
20975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976  *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979  (eval "$ac_try") 2>&5
20980  ac_status=$?
20981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982  (exit $ac_status); }; }; then
20983  ol_cv_pthread_create=yes
20984else
20985  echo "$as_me: program exited with status $ac_status" >&5
20986echo "$as_me: failed program was:" >&5
20987sed 's/^/| /' conftest.$ac_ext >&5
20988
20989( exit $ac_status )
20990ol_cv_pthread_create=no
20991fi
20992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20993fi
20994
20995
20996fi
20997{ echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20998echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20999
21000		if test $ol_cv_pthread_create != no ; then
21001			ol_link_threads=posix
21002			ol_link_pthreads=""
21003		fi
21004
21005		# Pthread try link: -kthread (ol_cv_pthread_kthread)
21006if test "$ol_link_threads" = no ; then
21007	# try -kthread
21008	{ echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21009echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21010if test "${ol_cv_pthread_kthread+set}" = set; then
21011  echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013
21014		# save the flags
21015		ol_LIBS="$LIBS"
21016		LIBS="-kthread $LIBS"
21017
21018		if test "$cross_compiling" = yes; then
21019  cat >conftest.$ac_ext <<_ACEOF
21020/* confdefs.h.  */
21021_ACEOF
21022cat confdefs.h >>conftest.$ac_ext
21023cat >>conftest.$ac_ext <<_ACEOF
21024/* end confdefs.h.  */
21025
21026/* pthread test headers */
21027#include <pthread.h>
21028#if HAVE_PTHREADS < 7
21029#include <errno.h>
21030#endif
21031#ifndef NULL
21032#define NULL (void*)0
21033#endif
21034
21035static void *task(p)
21036	void *p;
21037{
21038	return (void *) (p == NULL);
21039}
21040
21041int
21042main ()
21043{
21044
21045	/* pthread test function */
21046#ifndef PTHREAD_CREATE_DETACHED
21047#define	PTHREAD_CREATE_DETACHED	1
21048#endif
21049	pthread_t t;
21050	int status;
21051	int detach = PTHREAD_CREATE_DETACHED;
21052
21053#if HAVE_PTHREADS > 4
21054	/* Final pthreads */
21055	pthread_attr_t attr;
21056
21057	status = pthread_attr_init(&attr);
21058	if( status ) return status;
21059
21060#if HAVE_PTHREADS < 7
21061	status = pthread_attr_setdetachstate(&attr, &detach);
21062	if( status < 0 ) status = errno;
21063#else
21064	status = pthread_attr_setdetachstate(&attr, detach);
21065#endif
21066	if( status ) return status;
21067	status = pthread_create( &t, &attr, task, NULL );
21068#if HAVE_PTHREADS < 7
21069	if( status < 0 ) status = errno;
21070#endif
21071	if( status ) return status;
21072#else
21073	/* Draft 4 pthreads */
21074	status = pthread_create( &t, pthread_attr_default, task, NULL );
21075	if( status ) return errno;
21076
21077	/* give thread a chance to complete */
21078	/* it should remain joinable and hence detachable */
21079	sleep( 1 );
21080
21081	status = pthread_detach( &t );
21082	if( status ) return errno;
21083#endif
21084
21085#ifdef HAVE_LINUX_THREADS
21086	pthread_kill_other_threads_np();
21087#endif
21088
21089	return 0;
21090
21091  ;
21092  return 0;
21093}
21094_ACEOF
21095rm -f conftest.$ac_objext conftest$ac_exeext
21096if { (ac_try="$ac_link"
21097case "(($ac_try" in
21098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099  *) ac_try_echo=$ac_try;;
21100esac
21101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102  (eval "$ac_link") 2>conftest.er1
21103  ac_status=$?
21104  grep -v '^ *+' conftest.er1 >conftest.err
21105  rm -f conftest.er1
21106  cat conftest.err >&5
21107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108  (exit $ac_status); } && {
21109	 test -z "$ac_c_werror_flag" ||
21110	 test ! -s conftest.err
21111       } && test -s conftest$ac_exeext &&
21112       $as_test_x conftest$ac_exeext; then
21113  ol_cv_pthread_kthread=yes
21114else
21115  echo "$as_me: failed program was:" >&5
21116sed 's/^/| /' conftest.$ac_ext >&5
21117
21118	ol_cv_pthread_kthread=no
21119fi
21120
21121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21122      conftest$ac_exeext conftest.$ac_ext
21123else
21124  cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h.  */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h.  */
21130
21131/* pthread test headers */
21132#include <pthread.h>
21133#if HAVE_PTHREADS < 7
21134#include <errno.h>
21135#endif
21136#ifndef NULL
21137#define NULL (void*)0
21138#endif
21139
21140static void *task(p)
21141	void *p;
21142{
21143	return (void *) (p == NULL);
21144}
21145
21146
21147int main(argc, argv)
21148	int argc;
21149	char **argv;
21150{
21151
21152	/* pthread test function */
21153#ifndef PTHREAD_CREATE_DETACHED
21154#define	PTHREAD_CREATE_DETACHED	1
21155#endif
21156	pthread_t t;
21157	int status;
21158	int detach = PTHREAD_CREATE_DETACHED;
21159
21160#if HAVE_PTHREADS > 4
21161	/* Final pthreads */
21162	pthread_attr_t attr;
21163
21164	status = pthread_attr_init(&attr);
21165	if( status ) return status;
21166
21167#if HAVE_PTHREADS < 7
21168	status = pthread_attr_setdetachstate(&attr, &detach);
21169	if( status < 0 ) status = errno;
21170#else
21171	status = pthread_attr_setdetachstate(&attr, detach);
21172#endif
21173	if( status ) return status;
21174	status = pthread_create( &t, &attr, task, NULL );
21175#if HAVE_PTHREADS < 7
21176	if( status < 0 ) status = errno;
21177#endif
21178	if( status ) return status;
21179#else
21180	/* Draft 4 pthreads */
21181	status = pthread_create( &t, pthread_attr_default, task, NULL );
21182	if( status ) return errno;
21183
21184	/* give thread a chance to complete */
21185	/* it should remain joinable and hence detachable */
21186	sleep( 1 );
21187
21188	status = pthread_detach( &t );
21189	if( status ) return errno;
21190#endif
21191
21192#ifdef HAVE_LINUX_THREADS
21193	pthread_kill_other_threads_np();
21194#endif
21195
21196	return 0;
21197
21198}
21199
21200_ACEOF
21201rm -f conftest$ac_exeext
21202if { (ac_try="$ac_link"
21203case "(($ac_try" in
21204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205  *) ac_try_echo=$ac_try;;
21206esac
21207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208  (eval "$ac_link") 2>&5
21209  ac_status=$?
21210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21212  { (case "(($ac_try" in
21213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214  *) ac_try_echo=$ac_try;;
21215esac
21216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217  (eval "$ac_try") 2>&5
21218  ac_status=$?
21219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220  (exit $ac_status); }; }; then
21221  ol_cv_pthread_kthread=yes
21222else
21223  echo "$as_me: program exited with status $ac_status" >&5
21224echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227( exit $ac_status )
21228ol_cv_pthread_kthread=no
21229fi
21230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21231fi
21232
21233
21234
21235		# restore the LIBS
21236		LIBS="$ol_LIBS"
21237
21238fi
21239{ echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21240echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21241
21242	if test $ol_cv_pthread_kthread = yes ; then
21243		ol_link_pthreads="-kthread"
21244		ol_link_threads=posix
21245	fi
21246fi
21247
21248		# Pthread try link: -pthread (ol_cv_pthread_pthread)
21249if test "$ol_link_threads" = no ; then
21250	# try -pthread
21251	{ echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21252echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21253if test "${ol_cv_pthread_pthread+set}" = set; then
21254  echo $ECHO_N "(cached) $ECHO_C" >&6
21255else
21256
21257		# save the flags
21258		ol_LIBS="$LIBS"
21259		LIBS="-pthread $LIBS"
21260
21261		if test "$cross_compiling" = yes; then
21262  cat >conftest.$ac_ext <<_ACEOF
21263/* confdefs.h.  */
21264_ACEOF
21265cat confdefs.h >>conftest.$ac_ext
21266cat >>conftest.$ac_ext <<_ACEOF
21267/* end confdefs.h.  */
21268
21269/* pthread test headers */
21270#include <pthread.h>
21271#if HAVE_PTHREADS < 7
21272#include <errno.h>
21273#endif
21274#ifndef NULL
21275#define NULL (void*)0
21276#endif
21277
21278static void *task(p)
21279	void *p;
21280{
21281	return (void *) (p == NULL);
21282}
21283
21284int
21285main ()
21286{
21287
21288	/* pthread test function */
21289#ifndef PTHREAD_CREATE_DETACHED
21290#define	PTHREAD_CREATE_DETACHED	1
21291#endif
21292	pthread_t t;
21293	int status;
21294	int detach = PTHREAD_CREATE_DETACHED;
21295
21296#if HAVE_PTHREADS > 4
21297	/* Final pthreads */
21298	pthread_attr_t attr;
21299
21300	status = pthread_attr_init(&attr);
21301	if( status ) return status;
21302
21303#if HAVE_PTHREADS < 7
21304	status = pthread_attr_setdetachstate(&attr, &detach);
21305	if( status < 0 ) status = errno;
21306#else
21307	status = pthread_attr_setdetachstate(&attr, detach);
21308#endif
21309	if( status ) return status;
21310	status = pthread_create( &t, &attr, task, NULL );
21311#if HAVE_PTHREADS < 7
21312	if( status < 0 ) status = errno;
21313#endif
21314	if( status ) return status;
21315#else
21316	/* Draft 4 pthreads */
21317	status = pthread_create( &t, pthread_attr_default, task, NULL );
21318	if( status ) return errno;
21319
21320	/* give thread a chance to complete */
21321	/* it should remain joinable and hence detachable */
21322	sleep( 1 );
21323
21324	status = pthread_detach( &t );
21325	if( status ) return errno;
21326#endif
21327
21328#ifdef HAVE_LINUX_THREADS
21329	pthread_kill_other_threads_np();
21330#endif
21331
21332	return 0;
21333
21334  ;
21335  return 0;
21336}
21337_ACEOF
21338rm -f conftest.$ac_objext conftest$ac_exeext
21339if { (ac_try="$ac_link"
21340case "(($ac_try" in
21341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342  *) ac_try_echo=$ac_try;;
21343esac
21344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345  (eval "$ac_link") 2>conftest.er1
21346  ac_status=$?
21347  grep -v '^ *+' conftest.er1 >conftest.err
21348  rm -f conftest.er1
21349  cat conftest.err >&5
21350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351  (exit $ac_status); } && {
21352	 test -z "$ac_c_werror_flag" ||
21353	 test ! -s conftest.err
21354       } && test -s conftest$ac_exeext &&
21355       $as_test_x conftest$ac_exeext; then
21356  ol_cv_pthread_pthread=yes
21357else
21358  echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361	ol_cv_pthread_pthread=no
21362fi
21363
21364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21365      conftest$ac_exeext conftest.$ac_ext
21366else
21367  cat >conftest.$ac_ext <<_ACEOF
21368/* confdefs.h.  */
21369_ACEOF
21370cat confdefs.h >>conftest.$ac_ext
21371cat >>conftest.$ac_ext <<_ACEOF
21372/* end confdefs.h.  */
21373
21374/* pthread test headers */
21375#include <pthread.h>
21376#if HAVE_PTHREADS < 7
21377#include <errno.h>
21378#endif
21379#ifndef NULL
21380#define NULL (void*)0
21381#endif
21382
21383static void *task(p)
21384	void *p;
21385{
21386	return (void *) (p == NULL);
21387}
21388
21389
21390int main(argc, argv)
21391	int argc;
21392	char **argv;
21393{
21394
21395	/* pthread test function */
21396#ifndef PTHREAD_CREATE_DETACHED
21397#define	PTHREAD_CREATE_DETACHED	1
21398#endif
21399	pthread_t t;
21400	int status;
21401	int detach = PTHREAD_CREATE_DETACHED;
21402
21403#if HAVE_PTHREADS > 4
21404	/* Final pthreads */
21405	pthread_attr_t attr;
21406
21407	status = pthread_attr_init(&attr);
21408	if( status ) return status;
21409
21410#if HAVE_PTHREADS < 7
21411	status = pthread_attr_setdetachstate(&attr, &detach);
21412	if( status < 0 ) status = errno;
21413#else
21414	status = pthread_attr_setdetachstate(&attr, detach);
21415#endif
21416	if( status ) return status;
21417	status = pthread_create( &t, &attr, task, NULL );
21418#if HAVE_PTHREADS < 7
21419	if( status < 0 ) status = errno;
21420#endif
21421	if( status ) return status;
21422#else
21423	/* Draft 4 pthreads */
21424	status = pthread_create( &t, pthread_attr_default, task, NULL );
21425	if( status ) return errno;
21426
21427	/* give thread a chance to complete */
21428	/* it should remain joinable and hence detachable */
21429	sleep( 1 );
21430
21431	status = pthread_detach( &t );
21432	if( status ) return errno;
21433#endif
21434
21435#ifdef HAVE_LINUX_THREADS
21436	pthread_kill_other_threads_np();
21437#endif
21438
21439	return 0;
21440
21441}
21442
21443_ACEOF
21444rm -f conftest$ac_exeext
21445if { (ac_try="$ac_link"
21446case "(($ac_try" in
21447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448  *) ac_try_echo=$ac_try;;
21449esac
21450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451  (eval "$ac_link") 2>&5
21452  ac_status=$?
21453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21455  { (case "(($ac_try" in
21456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457  *) ac_try_echo=$ac_try;;
21458esac
21459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460  (eval "$ac_try") 2>&5
21461  ac_status=$?
21462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463  (exit $ac_status); }; }; then
21464  ol_cv_pthread_pthread=yes
21465else
21466  echo "$as_me: program exited with status $ac_status" >&5
21467echo "$as_me: failed program was:" >&5
21468sed 's/^/| /' conftest.$ac_ext >&5
21469
21470( exit $ac_status )
21471ol_cv_pthread_pthread=no
21472fi
21473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21474fi
21475
21476
21477
21478		# restore the LIBS
21479		LIBS="$ol_LIBS"
21480
21481fi
21482{ echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21483echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21484
21485	if test $ol_cv_pthread_pthread = yes ; then
21486		ol_link_pthreads="-pthread"
21487		ol_link_threads=posix
21488	fi
21489fi
21490
21491		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21492if test "$ol_link_threads" = no ; then
21493	# try -pthreads
21494	{ echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21495echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21496if test "${ol_cv_pthread_pthreads+set}" = set; then
21497  echo $ECHO_N "(cached) $ECHO_C" >&6
21498else
21499
21500		# save the flags
21501		ol_LIBS="$LIBS"
21502		LIBS="-pthreads $LIBS"
21503
21504		if test "$cross_compiling" = yes; then
21505  cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h.  */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h.  */
21511
21512/* pthread test headers */
21513#include <pthread.h>
21514#if HAVE_PTHREADS < 7
21515#include <errno.h>
21516#endif
21517#ifndef NULL
21518#define NULL (void*)0
21519#endif
21520
21521static void *task(p)
21522	void *p;
21523{
21524	return (void *) (p == NULL);
21525}
21526
21527int
21528main ()
21529{
21530
21531	/* pthread test function */
21532#ifndef PTHREAD_CREATE_DETACHED
21533#define	PTHREAD_CREATE_DETACHED	1
21534#endif
21535	pthread_t t;
21536	int status;
21537	int detach = PTHREAD_CREATE_DETACHED;
21538
21539#if HAVE_PTHREADS > 4
21540	/* Final pthreads */
21541	pthread_attr_t attr;
21542
21543	status = pthread_attr_init(&attr);
21544	if( status ) return status;
21545
21546#if HAVE_PTHREADS < 7
21547	status = pthread_attr_setdetachstate(&attr, &detach);
21548	if( status < 0 ) status = errno;
21549#else
21550	status = pthread_attr_setdetachstate(&attr, detach);
21551#endif
21552	if( status ) return status;
21553	status = pthread_create( &t, &attr, task, NULL );
21554#if HAVE_PTHREADS < 7
21555	if( status < 0 ) status = errno;
21556#endif
21557	if( status ) return status;
21558#else
21559	/* Draft 4 pthreads */
21560	status = pthread_create( &t, pthread_attr_default, task, NULL );
21561	if( status ) return errno;
21562
21563	/* give thread a chance to complete */
21564	/* it should remain joinable and hence detachable */
21565	sleep( 1 );
21566
21567	status = pthread_detach( &t );
21568	if( status ) return errno;
21569#endif
21570
21571#ifdef HAVE_LINUX_THREADS
21572	pthread_kill_other_threads_np();
21573#endif
21574
21575	return 0;
21576
21577  ;
21578  return 0;
21579}
21580_ACEOF
21581rm -f conftest.$ac_objext conftest$ac_exeext
21582if { (ac_try="$ac_link"
21583case "(($ac_try" in
21584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585  *) ac_try_echo=$ac_try;;
21586esac
21587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588  (eval "$ac_link") 2>conftest.er1
21589  ac_status=$?
21590  grep -v '^ *+' conftest.er1 >conftest.err
21591  rm -f conftest.er1
21592  cat conftest.err >&5
21593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594  (exit $ac_status); } && {
21595	 test -z "$ac_c_werror_flag" ||
21596	 test ! -s conftest.err
21597       } && test -s conftest$ac_exeext &&
21598       $as_test_x conftest$ac_exeext; then
21599  ol_cv_pthread_pthreads=yes
21600else
21601  echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604	ol_cv_pthread_pthreads=no
21605fi
21606
21607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21608      conftest$ac_exeext conftest.$ac_ext
21609else
21610  cat >conftest.$ac_ext <<_ACEOF
21611/* confdefs.h.  */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h.  */
21616
21617/* pthread test headers */
21618#include <pthread.h>
21619#if HAVE_PTHREADS < 7
21620#include <errno.h>
21621#endif
21622#ifndef NULL
21623#define NULL (void*)0
21624#endif
21625
21626static void *task(p)
21627	void *p;
21628{
21629	return (void *) (p == NULL);
21630}
21631
21632
21633int main(argc, argv)
21634	int argc;
21635	char **argv;
21636{
21637
21638	/* pthread test function */
21639#ifndef PTHREAD_CREATE_DETACHED
21640#define	PTHREAD_CREATE_DETACHED	1
21641#endif
21642	pthread_t t;
21643	int status;
21644	int detach = PTHREAD_CREATE_DETACHED;
21645
21646#if HAVE_PTHREADS > 4
21647	/* Final pthreads */
21648	pthread_attr_t attr;
21649
21650	status = pthread_attr_init(&attr);
21651	if( status ) return status;
21652
21653#if HAVE_PTHREADS < 7
21654	status = pthread_attr_setdetachstate(&attr, &detach);
21655	if( status < 0 ) status = errno;
21656#else
21657	status = pthread_attr_setdetachstate(&attr, detach);
21658#endif
21659	if( status ) return status;
21660	status = pthread_create( &t, &attr, task, NULL );
21661#if HAVE_PTHREADS < 7
21662	if( status < 0 ) status = errno;
21663#endif
21664	if( status ) return status;
21665#else
21666	/* Draft 4 pthreads */
21667	status = pthread_create( &t, pthread_attr_default, task, NULL );
21668	if( status ) return errno;
21669
21670	/* give thread a chance to complete */
21671	/* it should remain joinable and hence detachable */
21672	sleep( 1 );
21673
21674	status = pthread_detach( &t );
21675	if( status ) return errno;
21676#endif
21677
21678#ifdef HAVE_LINUX_THREADS
21679	pthread_kill_other_threads_np();
21680#endif
21681
21682	return 0;
21683
21684}
21685
21686_ACEOF
21687rm -f conftest$ac_exeext
21688if { (ac_try="$ac_link"
21689case "(($ac_try" in
21690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691  *) ac_try_echo=$ac_try;;
21692esac
21693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694  (eval "$ac_link") 2>&5
21695  ac_status=$?
21696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21698  { (case "(($ac_try" in
21699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700  *) ac_try_echo=$ac_try;;
21701esac
21702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703  (eval "$ac_try") 2>&5
21704  ac_status=$?
21705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706  (exit $ac_status); }; }; then
21707  ol_cv_pthread_pthreads=yes
21708else
21709  echo "$as_me: program exited with status $ac_status" >&5
21710echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713( exit $ac_status )
21714ol_cv_pthread_pthreads=no
21715fi
21716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717fi
21718
21719
21720
21721		# restore the LIBS
21722		LIBS="$ol_LIBS"
21723
21724fi
21725{ echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21726echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21727
21728	if test $ol_cv_pthread_pthreads = yes ; then
21729		ol_link_pthreads="-pthreads"
21730		ol_link_threads=posix
21731	fi
21732fi
21733
21734		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21735if test "$ol_link_threads" = no ; then
21736	# try -mthreads
21737	{ echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21738echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21739if test "${ol_cv_pthread_mthreads+set}" = set; then
21740  echo $ECHO_N "(cached) $ECHO_C" >&6
21741else
21742
21743		# save the flags
21744		ol_LIBS="$LIBS"
21745		LIBS="-mthreads $LIBS"
21746
21747		if test "$cross_compiling" = yes; then
21748  cat >conftest.$ac_ext <<_ACEOF
21749/* confdefs.h.  */
21750_ACEOF
21751cat confdefs.h >>conftest.$ac_ext
21752cat >>conftest.$ac_ext <<_ACEOF
21753/* end confdefs.h.  */
21754
21755/* pthread test headers */
21756#include <pthread.h>
21757#if HAVE_PTHREADS < 7
21758#include <errno.h>
21759#endif
21760#ifndef NULL
21761#define NULL (void*)0
21762#endif
21763
21764static void *task(p)
21765	void *p;
21766{
21767	return (void *) (p == NULL);
21768}
21769
21770int
21771main ()
21772{
21773
21774	/* pthread test function */
21775#ifndef PTHREAD_CREATE_DETACHED
21776#define	PTHREAD_CREATE_DETACHED	1
21777#endif
21778	pthread_t t;
21779	int status;
21780	int detach = PTHREAD_CREATE_DETACHED;
21781
21782#if HAVE_PTHREADS > 4
21783	/* Final pthreads */
21784	pthread_attr_t attr;
21785
21786	status = pthread_attr_init(&attr);
21787	if( status ) return status;
21788
21789#if HAVE_PTHREADS < 7
21790	status = pthread_attr_setdetachstate(&attr, &detach);
21791	if( status < 0 ) status = errno;
21792#else
21793	status = pthread_attr_setdetachstate(&attr, detach);
21794#endif
21795	if( status ) return status;
21796	status = pthread_create( &t, &attr, task, NULL );
21797#if HAVE_PTHREADS < 7
21798	if( status < 0 ) status = errno;
21799#endif
21800	if( status ) return status;
21801#else
21802	/* Draft 4 pthreads */
21803	status = pthread_create( &t, pthread_attr_default, task, NULL );
21804	if( status ) return errno;
21805
21806	/* give thread a chance to complete */
21807	/* it should remain joinable and hence detachable */
21808	sleep( 1 );
21809
21810	status = pthread_detach( &t );
21811	if( status ) return errno;
21812#endif
21813
21814#ifdef HAVE_LINUX_THREADS
21815	pthread_kill_other_threads_np();
21816#endif
21817
21818	return 0;
21819
21820  ;
21821  return 0;
21822}
21823_ACEOF
21824rm -f conftest.$ac_objext conftest$ac_exeext
21825if { (ac_try="$ac_link"
21826case "(($ac_try" in
21827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828  *) ac_try_echo=$ac_try;;
21829esac
21830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831  (eval "$ac_link") 2>conftest.er1
21832  ac_status=$?
21833  grep -v '^ *+' conftest.er1 >conftest.err
21834  rm -f conftest.er1
21835  cat conftest.err >&5
21836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837  (exit $ac_status); } && {
21838	 test -z "$ac_c_werror_flag" ||
21839	 test ! -s conftest.err
21840       } && test -s conftest$ac_exeext &&
21841       $as_test_x conftest$ac_exeext; then
21842  ol_cv_pthread_mthreads=yes
21843else
21844  echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847	ol_cv_pthread_mthreads=no
21848fi
21849
21850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21851      conftest$ac_exeext conftest.$ac_ext
21852else
21853  cat >conftest.$ac_ext <<_ACEOF
21854/* confdefs.h.  */
21855_ACEOF
21856cat confdefs.h >>conftest.$ac_ext
21857cat >>conftest.$ac_ext <<_ACEOF
21858/* end confdefs.h.  */
21859
21860/* pthread test headers */
21861#include <pthread.h>
21862#if HAVE_PTHREADS < 7
21863#include <errno.h>
21864#endif
21865#ifndef NULL
21866#define NULL (void*)0
21867#endif
21868
21869static void *task(p)
21870	void *p;
21871{
21872	return (void *) (p == NULL);
21873}
21874
21875
21876int main(argc, argv)
21877	int argc;
21878	char **argv;
21879{
21880
21881	/* pthread test function */
21882#ifndef PTHREAD_CREATE_DETACHED
21883#define	PTHREAD_CREATE_DETACHED	1
21884#endif
21885	pthread_t t;
21886	int status;
21887	int detach = PTHREAD_CREATE_DETACHED;
21888
21889#if HAVE_PTHREADS > 4
21890	/* Final pthreads */
21891	pthread_attr_t attr;
21892
21893	status = pthread_attr_init(&attr);
21894	if( status ) return status;
21895
21896#if HAVE_PTHREADS < 7
21897	status = pthread_attr_setdetachstate(&attr, &detach);
21898	if( status < 0 ) status = errno;
21899#else
21900	status = pthread_attr_setdetachstate(&attr, detach);
21901#endif
21902	if( status ) return status;
21903	status = pthread_create( &t, &attr, task, NULL );
21904#if HAVE_PTHREADS < 7
21905	if( status < 0 ) status = errno;
21906#endif
21907	if( status ) return status;
21908#else
21909	/* Draft 4 pthreads */
21910	status = pthread_create( &t, pthread_attr_default, task, NULL );
21911	if( status ) return errno;
21912
21913	/* give thread a chance to complete */
21914	/* it should remain joinable and hence detachable */
21915	sleep( 1 );
21916
21917	status = pthread_detach( &t );
21918	if( status ) return errno;
21919#endif
21920
21921#ifdef HAVE_LINUX_THREADS
21922	pthread_kill_other_threads_np();
21923#endif
21924
21925	return 0;
21926
21927}
21928
21929_ACEOF
21930rm -f conftest$ac_exeext
21931if { (ac_try="$ac_link"
21932case "(($ac_try" in
21933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934  *) ac_try_echo=$ac_try;;
21935esac
21936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937  (eval "$ac_link") 2>&5
21938  ac_status=$?
21939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21941  { (case "(($ac_try" in
21942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943  *) ac_try_echo=$ac_try;;
21944esac
21945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946  (eval "$ac_try") 2>&5
21947  ac_status=$?
21948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949  (exit $ac_status); }; }; then
21950  ol_cv_pthread_mthreads=yes
21951else
21952  echo "$as_me: program exited with status $ac_status" >&5
21953echo "$as_me: failed program was:" >&5
21954sed 's/^/| /' conftest.$ac_ext >&5
21955
21956( exit $ac_status )
21957ol_cv_pthread_mthreads=no
21958fi
21959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21960fi
21961
21962
21963
21964		# restore the LIBS
21965		LIBS="$ol_LIBS"
21966
21967fi
21968{ echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21969echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21970
21971	if test $ol_cv_pthread_mthreads = yes ; then
21972		ol_link_pthreads="-mthreads"
21973		ol_link_threads=posix
21974	fi
21975fi
21976
21977		# Pthread try link: -thread (ol_cv_pthread_thread)
21978if test "$ol_link_threads" = no ; then
21979	# try -thread
21980	{ echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21981echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21982if test "${ol_cv_pthread_thread+set}" = set; then
21983  echo $ECHO_N "(cached) $ECHO_C" >&6
21984else
21985
21986		# save the flags
21987		ol_LIBS="$LIBS"
21988		LIBS="-thread $LIBS"
21989
21990		if test "$cross_compiling" = yes; then
21991  cat >conftest.$ac_ext <<_ACEOF
21992/* confdefs.h.  */
21993_ACEOF
21994cat confdefs.h >>conftest.$ac_ext
21995cat >>conftest.$ac_ext <<_ACEOF
21996/* end confdefs.h.  */
21997
21998/* pthread test headers */
21999#include <pthread.h>
22000#if HAVE_PTHREADS < 7
22001#include <errno.h>
22002#endif
22003#ifndef NULL
22004#define NULL (void*)0
22005#endif
22006
22007static void *task(p)
22008	void *p;
22009{
22010	return (void *) (p == NULL);
22011}
22012
22013int
22014main ()
22015{
22016
22017	/* pthread test function */
22018#ifndef PTHREAD_CREATE_DETACHED
22019#define	PTHREAD_CREATE_DETACHED	1
22020#endif
22021	pthread_t t;
22022	int status;
22023	int detach = PTHREAD_CREATE_DETACHED;
22024
22025#if HAVE_PTHREADS > 4
22026	/* Final pthreads */
22027	pthread_attr_t attr;
22028
22029	status = pthread_attr_init(&attr);
22030	if( status ) return status;
22031
22032#if HAVE_PTHREADS < 7
22033	status = pthread_attr_setdetachstate(&attr, &detach);
22034	if( status < 0 ) status = errno;
22035#else
22036	status = pthread_attr_setdetachstate(&attr, detach);
22037#endif
22038	if( status ) return status;
22039	status = pthread_create( &t, &attr, task, NULL );
22040#if HAVE_PTHREADS < 7
22041	if( status < 0 ) status = errno;
22042#endif
22043	if( status ) return status;
22044#else
22045	/* Draft 4 pthreads */
22046	status = pthread_create( &t, pthread_attr_default, task, NULL );
22047	if( status ) return errno;
22048
22049	/* give thread a chance to complete */
22050	/* it should remain joinable and hence detachable */
22051	sleep( 1 );
22052
22053	status = pthread_detach( &t );
22054	if( status ) return errno;
22055#endif
22056
22057#ifdef HAVE_LINUX_THREADS
22058	pthread_kill_other_threads_np();
22059#endif
22060
22061	return 0;
22062
22063  ;
22064  return 0;
22065}
22066_ACEOF
22067rm -f conftest.$ac_objext conftest$ac_exeext
22068if { (ac_try="$ac_link"
22069case "(($ac_try" in
22070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071  *) ac_try_echo=$ac_try;;
22072esac
22073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074  (eval "$ac_link") 2>conftest.er1
22075  ac_status=$?
22076  grep -v '^ *+' conftest.er1 >conftest.err
22077  rm -f conftest.er1
22078  cat conftest.err >&5
22079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080  (exit $ac_status); } && {
22081	 test -z "$ac_c_werror_flag" ||
22082	 test ! -s conftest.err
22083       } && test -s conftest$ac_exeext &&
22084       $as_test_x conftest$ac_exeext; then
22085  ol_cv_pthread_thread=yes
22086else
22087  echo "$as_me: failed program was:" >&5
22088sed 's/^/| /' conftest.$ac_ext >&5
22089
22090	ol_cv_pthread_thread=no
22091fi
22092
22093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094      conftest$ac_exeext conftest.$ac_ext
22095else
22096  cat >conftest.$ac_ext <<_ACEOF
22097/* confdefs.h.  */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h.  */
22102
22103/* pthread test headers */
22104#include <pthread.h>
22105#if HAVE_PTHREADS < 7
22106#include <errno.h>
22107#endif
22108#ifndef NULL
22109#define NULL (void*)0
22110#endif
22111
22112static void *task(p)
22113	void *p;
22114{
22115	return (void *) (p == NULL);
22116}
22117
22118
22119int main(argc, argv)
22120	int argc;
22121	char **argv;
22122{
22123
22124	/* pthread test function */
22125#ifndef PTHREAD_CREATE_DETACHED
22126#define	PTHREAD_CREATE_DETACHED	1
22127#endif
22128	pthread_t t;
22129	int status;
22130	int detach = PTHREAD_CREATE_DETACHED;
22131
22132#if HAVE_PTHREADS > 4
22133	/* Final pthreads */
22134	pthread_attr_t attr;
22135
22136	status = pthread_attr_init(&attr);
22137	if( status ) return status;
22138
22139#if HAVE_PTHREADS < 7
22140	status = pthread_attr_setdetachstate(&attr, &detach);
22141	if( status < 0 ) status = errno;
22142#else
22143	status = pthread_attr_setdetachstate(&attr, detach);
22144#endif
22145	if( status ) return status;
22146	status = pthread_create( &t, &attr, task, NULL );
22147#if HAVE_PTHREADS < 7
22148	if( status < 0 ) status = errno;
22149#endif
22150	if( status ) return status;
22151#else
22152	/* Draft 4 pthreads */
22153	status = pthread_create( &t, pthread_attr_default, task, NULL );
22154	if( status ) return errno;
22155
22156	/* give thread a chance to complete */
22157	/* it should remain joinable and hence detachable */
22158	sleep( 1 );
22159
22160	status = pthread_detach( &t );
22161	if( status ) return errno;
22162#endif
22163
22164#ifdef HAVE_LINUX_THREADS
22165	pthread_kill_other_threads_np();
22166#endif
22167
22168	return 0;
22169
22170}
22171
22172_ACEOF
22173rm -f conftest$ac_exeext
22174if { (ac_try="$ac_link"
22175case "(($ac_try" in
22176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177  *) ac_try_echo=$ac_try;;
22178esac
22179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180  (eval "$ac_link") 2>&5
22181  ac_status=$?
22182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22184  { (case "(($ac_try" in
22185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186  *) ac_try_echo=$ac_try;;
22187esac
22188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189  (eval "$ac_try") 2>&5
22190  ac_status=$?
22191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192  (exit $ac_status); }; }; then
22193  ol_cv_pthread_thread=yes
22194else
22195  echo "$as_me: program exited with status $ac_status" >&5
22196echo "$as_me: failed program was:" >&5
22197sed 's/^/| /' conftest.$ac_ext >&5
22198
22199( exit $ac_status )
22200ol_cv_pthread_thread=no
22201fi
22202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22203fi
22204
22205
22206
22207		# restore the LIBS
22208		LIBS="$ol_LIBS"
22209
22210fi
22211{ echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22212echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22213
22214	if test $ol_cv_pthread_thread = yes ; then
22215		ol_link_pthreads="-thread"
22216		ol_link_threads=posix
22217	fi
22218fi
22219
22220
22221		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22222if test "$ol_link_threads" = no ; then
22223	# try -lpthread -lmach -lexc -lc_r
22224	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22225echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22226if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22227  echo $ECHO_N "(cached) $ECHO_C" >&6
22228else
22229
22230		# save the flags
22231		ol_LIBS="$LIBS"
22232		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22233
22234		if test "$cross_compiling" = yes; then
22235  cat >conftest.$ac_ext <<_ACEOF
22236/* confdefs.h.  */
22237_ACEOF
22238cat confdefs.h >>conftest.$ac_ext
22239cat >>conftest.$ac_ext <<_ACEOF
22240/* end confdefs.h.  */
22241
22242/* pthread test headers */
22243#include <pthread.h>
22244#if HAVE_PTHREADS < 7
22245#include <errno.h>
22246#endif
22247#ifndef NULL
22248#define NULL (void*)0
22249#endif
22250
22251static void *task(p)
22252	void *p;
22253{
22254	return (void *) (p == NULL);
22255}
22256
22257int
22258main ()
22259{
22260
22261	/* pthread test function */
22262#ifndef PTHREAD_CREATE_DETACHED
22263#define	PTHREAD_CREATE_DETACHED	1
22264#endif
22265	pthread_t t;
22266	int status;
22267	int detach = PTHREAD_CREATE_DETACHED;
22268
22269#if HAVE_PTHREADS > 4
22270	/* Final pthreads */
22271	pthread_attr_t attr;
22272
22273	status = pthread_attr_init(&attr);
22274	if( status ) return status;
22275
22276#if HAVE_PTHREADS < 7
22277	status = pthread_attr_setdetachstate(&attr, &detach);
22278	if( status < 0 ) status = errno;
22279#else
22280	status = pthread_attr_setdetachstate(&attr, detach);
22281#endif
22282	if( status ) return status;
22283	status = pthread_create( &t, &attr, task, NULL );
22284#if HAVE_PTHREADS < 7
22285	if( status < 0 ) status = errno;
22286#endif
22287	if( status ) return status;
22288#else
22289	/* Draft 4 pthreads */
22290	status = pthread_create( &t, pthread_attr_default, task, NULL );
22291	if( status ) return errno;
22292
22293	/* give thread a chance to complete */
22294	/* it should remain joinable and hence detachable */
22295	sleep( 1 );
22296
22297	status = pthread_detach( &t );
22298	if( status ) return errno;
22299#endif
22300
22301#ifdef HAVE_LINUX_THREADS
22302	pthread_kill_other_threads_np();
22303#endif
22304
22305	return 0;
22306
22307  ;
22308  return 0;
22309}
22310_ACEOF
22311rm -f conftest.$ac_objext conftest$ac_exeext
22312if { (ac_try="$ac_link"
22313case "(($ac_try" in
22314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315  *) ac_try_echo=$ac_try;;
22316esac
22317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318  (eval "$ac_link") 2>conftest.er1
22319  ac_status=$?
22320  grep -v '^ *+' conftest.er1 >conftest.err
22321  rm -f conftest.er1
22322  cat conftest.err >&5
22323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324  (exit $ac_status); } && {
22325	 test -z "$ac_c_werror_flag" ||
22326	 test ! -s conftest.err
22327       } && test -s conftest$ac_exeext &&
22328       $as_test_x conftest$ac_exeext; then
22329  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22330else
22331  echo "$as_me: failed program was:" >&5
22332sed 's/^/| /' conftest.$ac_ext >&5
22333
22334	ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22335fi
22336
22337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22338      conftest$ac_exeext conftest.$ac_ext
22339else
22340  cat >conftest.$ac_ext <<_ACEOF
22341/* confdefs.h.  */
22342_ACEOF
22343cat confdefs.h >>conftest.$ac_ext
22344cat >>conftest.$ac_ext <<_ACEOF
22345/* end confdefs.h.  */
22346
22347/* pthread test headers */
22348#include <pthread.h>
22349#if HAVE_PTHREADS < 7
22350#include <errno.h>
22351#endif
22352#ifndef NULL
22353#define NULL (void*)0
22354#endif
22355
22356static void *task(p)
22357	void *p;
22358{
22359	return (void *) (p == NULL);
22360}
22361
22362
22363int main(argc, argv)
22364	int argc;
22365	char **argv;
22366{
22367
22368	/* pthread test function */
22369#ifndef PTHREAD_CREATE_DETACHED
22370#define	PTHREAD_CREATE_DETACHED	1
22371#endif
22372	pthread_t t;
22373	int status;
22374	int detach = PTHREAD_CREATE_DETACHED;
22375
22376#if HAVE_PTHREADS > 4
22377	/* Final pthreads */
22378	pthread_attr_t attr;
22379
22380	status = pthread_attr_init(&attr);
22381	if( status ) return status;
22382
22383#if HAVE_PTHREADS < 7
22384	status = pthread_attr_setdetachstate(&attr, &detach);
22385	if( status < 0 ) status = errno;
22386#else
22387	status = pthread_attr_setdetachstate(&attr, detach);
22388#endif
22389	if( status ) return status;
22390	status = pthread_create( &t, &attr, task, NULL );
22391#if HAVE_PTHREADS < 7
22392	if( status < 0 ) status = errno;
22393#endif
22394	if( status ) return status;
22395#else
22396	/* Draft 4 pthreads */
22397	status = pthread_create( &t, pthread_attr_default, task, NULL );
22398	if( status ) return errno;
22399
22400	/* give thread a chance to complete */
22401	/* it should remain joinable and hence detachable */
22402	sleep( 1 );
22403
22404	status = pthread_detach( &t );
22405	if( status ) return errno;
22406#endif
22407
22408#ifdef HAVE_LINUX_THREADS
22409	pthread_kill_other_threads_np();
22410#endif
22411
22412	return 0;
22413
22414}
22415
22416_ACEOF
22417rm -f conftest$ac_exeext
22418if { (ac_try="$ac_link"
22419case "(($ac_try" in
22420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421  *) ac_try_echo=$ac_try;;
22422esac
22423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424  (eval "$ac_link") 2>&5
22425  ac_status=$?
22426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22428  { (case "(($ac_try" in
22429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430  *) ac_try_echo=$ac_try;;
22431esac
22432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433  (eval "$ac_try") 2>&5
22434  ac_status=$?
22435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436  (exit $ac_status); }; }; then
22437  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22438else
22439  echo "$as_me: program exited with status $ac_status" >&5
22440echo "$as_me: failed program was:" >&5
22441sed 's/^/| /' conftest.$ac_ext >&5
22442
22443( exit $ac_status )
22444ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22445fi
22446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22447fi
22448
22449
22450
22451		# restore the LIBS
22452		LIBS="$ol_LIBS"
22453
22454fi
22455{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22456echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22457
22458	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22459		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22460		ol_link_threads=posix
22461	fi
22462fi
22463
22464		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22465if test "$ol_link_threads" = no ; then
22466	# try -lpthread -lmach -lexc
22467	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22468echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22469if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22470  echo $ECHO_N "(cached) $ECHO_C" >&6
22471else
22472
22473		# save the flags
22474		ol_LIBS="$LIBS"
22475		LIBS="-lpthread -lmach -lexc $LIBS"
22476
22477		if test "$cross_compiling" = yes; then
22478  cat >conftest.$ac_ext <<_ACEOF
22479/* confdefs.h.  */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h.  */
22484
22485/* pthread test headers */
22486#include <pthread.h>
22487#if HAVE_PTHREADS < 7
22488#include <errno.h>
22489#endif
22490#ifndef NULL
22491#define NULL (void*)0
22492#endif
22493
22494static void *task(p)
22495	void *p;
22496{
22497	return (void *) (p == NULL);
22498}
22499
22500int
22501main ()
22502{
22503
22504	/* pthread test function */
22505#ifndef PTHREAD_CREATE_DETACHED
22506#define	PTHREAD_CREATE_DETACHED	1
22507#endif
22508	pthread_t t;
22509	int status;
22510	int detach = PTHREAD_CREATE_DETACHED;
22511
22512#if HAVE_PTHREADS > 4
22513	/* Final pthreads */
22514	pthread_attr_t attr;
22515
22516	status = pthread_attr_init(&attr);
22517	if( status ) return status;
22518
22519#if HAVE_PTHREADS < 7
22520	status = pthread_attr_setdetachstate(&attr, &detach);
22521	if( status < 0 ) status = errno;
22522#else
22523	status = pthread_attr_setdetachstate(&attr, detach);
22524#endif
22525	if( status ) return status;
22526	status = pthread_create( &t, &attr, task, NULL );
22527#if HAVE_PTHREADS < 7
22528	if( status < 0 ) status = errno;
22529#endif
22530	if( status ) return status;
22531#else
22532	/* Draft 4 pthreads */
22533	status = pthread_create( &t, pthread_attr_default, task, NULL );
22534	if( status ) return errno;
22535
22536	/* give thread a chance to complete */
22537	/* it should remain joinable and hence detachable */
22538	sleep( 1 );
22539
22540	status = pthread_detach( &t );
22541	if( status ) return errno;
22542#endif
22543
22544#ifdef HAVE_LINUX_THREADS
22545	pthread_kill_other_threads_np();
22546#endif
22547
22548	return 0;
22549
22550  ;
22551  return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext conftest$ac_exeext
22555if { (ac_try="$ac_link"
22556case "(($ac_try" in
22557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558  *) ac_try_echo=$ac_try;;
22559esac
22560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561  (eval "$ac_link") 2>conftest.er1
22562  ac_status=$?
22563  grep -v '^ *+' conftest.er1 >conftest.err
22564  rm -f conftest.er1
22565  cat conftest.err >&5
22566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567  (exit $ac_status); } && {
22568	 test -z "$ac_c_werror_flag" ||
22569	 test ! -s conftest.err
22570       } && test -s conftest$ac_exeext &&
22571       $as_test_x conftest$ac_exeext; then
22572  ol_cv_pthread_lpthread_lmach_lexc=yes
22573else
22574  echo "$as_me: failed program was:" >&5
22575sed 's/^/| /' conftest.$ac_ext >&5
22576
22577	ol_cv_pthread_lpthread_lmach_lexc=no
22578fi
22579
22580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22581      conftest$ac_exeext conftest.$ac_ext
22582else
22583  cat >conftest.$ac_ext <<_ACEOF
22584/* confdefs.h.  */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h.  */
22589
22590/* pthread test headers */
22591#include <pthread.h>
22592#if HAVE_PTHREADS < 7
22593#include <errno.h>
22594#endif
22595#ifndef NULL
22596#define NULL (void*)0
22597#endif
22598
22599static void *task(p)
22600	void *p;
22601{
22602	return (void *) (p == NULL);
22603}
22604
22605
22606int main(argc, argv)
22607	int argc;
22608	char **argv;
22609{
22610
22611	/* pthread test function */
22612#ifndef PTHREAD_CREATE_DETACHED
22613#define	PTHREAD_CREATE_DETACHED	1
22614#endif
22615	pthread_t t;
22616	int status;
22617	int detach = PTHREAD_CREATE_DETACHED;
22618
22619#if HAVE_PTHREADS > 4
22620	/* Final pthreads */
22621	pthread_attr_t attr;
22622
22623	status = pthread_attr_init(&attr);
22624	if( status ) return status;
22625
22626#if HAVE_PTHREADS < 7
22627	status = pthread_attr_setdetachstate(&attr, &detach);
22628	if( status < 0 ) status = errno;
22629#else
22630	status = pthread_attr_setdetachstate(&attr, detach);
22631#endif
22632	if( status ) return status;
22633	status = pthread_create( &t, &attr, task, NULL );
22634#if HAVE_PTHREADS < 7
22635	if( status < 0 ) status = errno;
22636#endif
22637	if( status ) return status;
22638#else
22639	/* Draft 4 pthreads */
22640	status = pthread_create( &t, pthread_attr_default, task, NULL );
22641	if( status ) return errno;
22642
22643	/* give thread a chance to complete */
22644	/* it should remain joinable and hence detachable */
22645	sleep( 1 );
22646
22647	status = pthread_detach( &t );
22648	if( status ) return errno;
22649#endif
22650
22651#ifdef HAVE_LINUX_THREADS
22652	pthread_kill_other_threads_np();
22653#endif
22654
22655	return 0;
22656
22657}
22658
22659_ACEOF
22660rm -f conftest$ac_exeext
22661if { (ac_try="$ac_link"
22662case "(($ac_try" in
22663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664  *) ac_try_echo=$ac_try;;
22665esac
22666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667  (eval "$ac_link") 2>&5
22668  ac_status=$?
22669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22671  { (case "(($ac_try" in
22672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673  *) ac_try_echo=$ac_try;;
22674esac
22675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676  (eval "$ac_try") 2>&5
22677  ac_status=$?
22678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679  (exit $ac_status); }; }; then
22680  ol_cv_pthread_lpthread_lmach_lexc=yes
22681else
22682  echo "$as_me: program exited with status $ac_status" >&5
22683echo "$as_me: failed program was:" >&5
22684sed 's/^/| /' conftest.$ac_ext >&5
22685
22686( exit $ac_status )
22687ol_cv_pthread_lpthread_lmach_lexc=no
22688fi
22689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22690fi
22691
22692
22693
22694		# restore the LIBS
22695		LIBS="$ol_LIBS"
22696
22697fi
22698{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22699echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22700
22701	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22702		ol_link_pthreads="-lpthread -lmach -lexc"
22703		ol_link_threads=posix
22704	fi
22705fi
22706
22707
22708		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22709if test "$ol_link_threads" = no ; then
22710	# try -lpthread -Wl,-woff,85
22711	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22712echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22713if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22714  echo $ECHO_N "(cached) $ECHO_C" >&6
22715else
22716
22717		# save the flags
22718		ol_LIBS="$LIBS"
22719		LIBS="-lpthread -Wl,-woff,85 $LIBS"
22720
22721		if test "$cross_compiling" = yes; then
22722  cat >conftest.$ac_ext <<_ACEOF
22723/* confdefs.h.  */
22724_ACEOF
22725cat confdefs.h >>conftest.$ac_ext
22726cat >>conftest.$ac_ext <<_ACEOF
22727/* end confdefs.h.  */
22728
22729/* pthread test headers */
22730#include <pthread.h>
22731#if HAVE_PTHREADS < 7
22732#include <errno.h>
22733#endif
22734#ifndef NULL
22735#define NULL (void*)0
22736#endif
22737
22738static void *task(p)
22739	void *p;
22740{
22741	return (void *) (p == NULL);
22742}
22743
22744int
22745main ()
22746{
22747
22748	/* pthread test function */
22749#ifndef PTHREAD_CREATE_DETACHED
22750#define	PTHREAD_CREATE_DETACHED	1
22751#endif
22752	pthread_t t;
22753	int status;
22754	int detach = PTHREAD_CREATE_DETACHED;
22755
22756#if HAVE_PTHREADS > 4
22757	/* Final pthreads */
22758	pthread_attr_t attr;
22759
22760	status = pthread_attr_init(&attr);
22761	if( status ) return status;
22762
22763#if HAVE_PTHREADS < 7
22764	status = pthread_attr_setdetachstate(&attr, &detach);
22765	if( status < 0 ) status = errno;
22766#else
22767	status = pthread_attr_setdetachstate(&attr, detach);
22768#endif
22769	if( status ) return status;
22770	status = pthread_create( &t, &attr, task, NULL );
22771#if HAVE_PTHREADS < 7
22772	if( status < 0 ) status = errno;
22773#endif
22774	if( status ) return status;
22775#else
22776	/* Draft 4 pthreads */
22777	status = pthread_create( &t, pthread_attr_default, task, NULL );
22778	if( status ) return errno;
22779
22780	/* give thread a chance to complete */
22781	/* it should remain joinable and hence detachable */
22782	sleep( 1 );
22783
22784	status = pthread_detach( &t );
22785	if( status ) return errno;
22786#endif
22787
22788#ifdef HAVE_LINUX_THREADS
22789	pthread_kill_other_threads_np();
22790#endif
22791
22792	return 0;
22793
22794  ;
22795  return 0;
22796}
22797_ACEOF
22798rm -f conftest.$ac_objext conftest$ac_exeext
22799if { (ac_try="$ac_link"
22800case "(($ac_try" in
22801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802  *) ac_try_echo=$ac_try;;
22803esac
22804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22805  (eval "$ac_link") 2>conftest.er1
22806  ac_status=$?
22807  grep -v '^ *+' conftest.er1 >conftest.err
22808  rm -f conftest.er1
22809  cat conftest.err >&5
22810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811  (exit $ac_status); } && {
22812	 test -z "$ac_c_werror_flag" ||
22813	 test ! -s conftest.err
22814       } && test -s conftest$ac_exeext &&
22815       $as_test_x conftest$ac_exeext; then
22816  ol_cv_pthread_lib_lpthread_woff=yes
22817else
22818  echo "$as_me: failed program was:" >&5
22819sed 's/^/| /' conftest.$ac_ext >&5
22820
22821	ol_cv_pthread_lib_lpthread_woff=no
22822fi
22823
22824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825      conftest$ac_exeext conftest.$ac_ext
22826else
22827  cat >conftest.$ac_ext <<_ACEOF
22828/* confdefs.h.  */
22829_ACEOF
22830cat confdefs.h >>conftest.$ac_ext
22831cat >>conftest.$ac_ext <<_ACEOF
22832/* end confdefs.h.  */
22833
22834/* pthread test headers */
22835#include <pthread.h>
22836#if HAVE_PTHREADS < 7
22837#include <errno.h>
22838#endif
22839#ifndef NULL
22840#define NULL (void*)0
22841#endif
22842
22843static void *task(p)
22844	void *p;
22845{
22846	return (void *) (p == NULL);
22847}
22848
22849
22850int main(argc, argv)
22851	int argc;
22852	char **argv;
22853{
22854
22855	/* pthread test function */
22856#ifndef PTHREAD_CREATE_DETACHED
22857#define	PTHREAD_CREATE_DETACHED	1
22858#endif
22859	pthread_t t;
22860	int status;
22861	int detach = PTHREAD_CREATE_DETACHED;
22862
22863#if HAVE_PTHREADS > 4
22864	/* Final pthreads */
22865	pthread_attr_t attr;
22866
22867	status = pthread_attr_init(&attr);
22868	if( status ) return status;
22869
22870#if HAVE_PTHREADS < 7
22871	status = pthread_attr_setdetachstate(&attr, &detach);
22872	if( status < 0 ) status = errno;
22873#else
22874	status = pthread_attr_setdetachstate(&attr, detach);
22875#endif
22876	if( status ) return status;
22877	status = pthread_create( &t, &attr, task, NULL );
22878#if HAVE_PTHREADS < 7
22879	if( status < 0 ) status = errno;
22880#endif
22881	if( status ) return status;
22882#else
22883	/* Draft 4 pthreads */
22884	status = pthread_create( &t, pthread_attr_default, task, NULL );
22885	if( status ) return errno;
22886
22887	/* give thread a chance to complete */
22888	/* it should remain joinable and hence detachable */
22889	sleep( 1 );
22890
22891	status = pthread_detach( &t );
22892	if( status ) return errno;
22893#endif
22894
22895#ifdef HAVE_LINUX_THREADS
22896	pthread_kill_other_threads_np();
22897#endif
22898
22899	return 0;
22900
22901}
22902
22903_ACEOF
22904rm -f conftest$ac_exeext
22905if { (ac_try="$ac_link"
22906case "(($ac_try" in
22907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908  *) ac_try_echo=$ac_try;;
22909esac
22910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911  (eval "$ac_link") 2>&5
22912  ac_status=$?
22913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22915  { (case "(($ac_try" in
22916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917  *) ac_try_echo=$ac_try;;
22918esac
22919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920  (eval "$ac_try") 2>&5
22921  ac_status=$?
22922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923  (exit $ac_status); }; }; then
22924  ol_cv_pthread_lib_lpthread_woff=yes
22925else
22926  echo "$as_me: program exited with status $ac_status" >&5
22927echo "$as_me: failed program was:" >&5
22928sed 's/^/| /' conftest.$ac_ext >&5
22929
22930( exit $ac_status )
22931ol_cv_pthread_lib_lpthread_woff=no
22932fi
22933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22934fi
22935
22936
22937
22938		# restore the LIBS
22939		LIBS="$ol_LIBS"
22940
22941fi
22942{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22943echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22944
22945	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22946		ol_link_pthreads="-lpthread -Wl,-woff,85"
22947		ol_link_threads=posix
22948	fi
22949fi
22950
22951
22952		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22953if test "$ol_link_threads" = no ; then
22954	# try -lpthread
22955	{ echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22956echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22957if test "${ol_cv_pthread_lpthread+set}" = set; then
22958  echo $ECHO_N "(cached) $ECHO_C" >&6
22959else
22960
22961		# save the flags
22962		ol_LIBS="$LIBS"
22963		LIBS="-lpthread $LIBS"
22964
22965		if test "$cross_compiling" = yes; then
22966  cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h.  */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h.  */
22972
22973/* pthread test headers */
22974#include <pthread.h>
22975#if HAVE_PTHREADS < 7
22976#include <errno.h>
22977#endif
22978#ifndef NULL
22979#define NULL (void*)0
22980#endif
22981
22982static void *task(p)
22983	void *p;
22984{
22985	return (void *) (p == NULL);
22986}
22987
22988int
22989main ()
22990{
22991
22992	/* pthread test function */
22993#ifndef PTHREAD_CREATE_DETACHED
22994#define	PTHREAD_CREATE_DETACHED	1
22995#endif
22996	pthread_t t;
22997	int status;
22998	int detach = PTHREAD_CREATE_DETACHED;
22999
23000#if HAVE_PTHREADS > 4
23001	/* Final pthreads */
23002	pthread_attr_t attr;
23003
23004	status = pthread_attr_init(&attr);
23005	if( status ) return status;
23006
23007#if HAVE_PTHREADS < 7
23008	status = pthread_attr_setdetachstate(&attr, &detach);
23009	if( status < 0 ) status = errno;
23010#else
23011	status = pthread_attr_setdetachstate(&attr, detach);
23012#endif
23013	if( status ) return status;
23014	status = pthread_create( &t, &attr, task, NULL );
23015#if HAVE_PTHREADS < 7
23016	if( status < 0 ) status = errno;
23017#endif
23018	if( status ) return status;
23019#else
23020	/* Draft 4 pthreads */
23021	status = pthread_create( &t, pthread_attr_default, task, NULL );
23022	if( status ) return errno;
23023
23024	/* give thread a chance to complete */
23025	/* it should remain joinable and hence detachable */
23026	sleep( 1 );
23027
23028	status = pthread_detach( &t );
23029	if( status ) return errno;
23030#endif
23031
23032#ifdef HAVE_LINUX_THREADS
23033	pthread_kill_other_threads_np();
23034#endif
23035
23036	return 0;
23037
23038  ;
23039  return 0;
23040}
23041_ACEOF
23042rm -f conftest.$ac_objext conftest$ac_exeext
23043if { (ac_try="$ac_link"
23044case "(($ac_try" in
23045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046  *) ac_try_echo=$ac_try;;
23047esac
23048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049  (eval "$ac_link") 2>conftest.er1
23050  ac_status=$?
23051  grep -v '^ *+' conftest.er1 >conftest.err
23052  rm -f conftest.er1
23053  cat conftest.err >&5
23054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055  (exit $ac_status); } && {
23056	 test -z "$ac_c_werror_flag" ||
23057	 test ! -s conftest.err
23058       } && test -s conftest$ac_exeext &&
23059       $as_test_x conftest$ac_exeext; then
23060  ol_cv_pthread_lpthread=yes
23061else
23062  echo "$as_me: failed program was:" >&5
23063sed 's/^/| /' conftest.$ac_ext >&5
23064
23065	ol_cv_pthread_lpthread=no
23066fi
23067
23068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23069      conftest$ac_exeext conftest.$ac_ext
23070else
23071  cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h.  */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h.  */
23077
23078/* pthread test headers */
23079#include <pthread.h>
23080#if HAVE_PTHREADS < 7
23081#include <errno.h>
23082#endif
23083#ifndef NULL
23084#define NULL (void*)0
23085#endif
23086
23087static void *task(p)
23088	void *p;
23089{
23090	return (void *) (p == NULL);
23091}
23092
23093
23094int main(argc, argv)
23095	int argc;
23096	char **argv;
23097{
23098
23099	/* pthread test function */
23100#ifndef PTHREAD_CREATE_DETACHED
23101#define	PTHREAD_CREATE_DETACHED	1
23102#endif
23103	pthread_t t;
23104	int status;
23105	int detach = PTHREAD_CREATE_DETACHED;
23106
23107#if HAVE_PTHREADS > 4
23108	/* Final pthreads */
23109	pthread_attr_t attr;
23110
23111	status = pthread_attr_init(&attr);
23112	if( status ) return status;
23113
23114#if HAVE_PTHREADS < 7
23115	status = pthread_attr_setdetachstate(&attr, &detach);
23116	if( status < 0 ) status = errno;
23117#else
23118	status = pthread_attr_setdetachstate(&attr, detach);
23119#endif
23120	if( status ) return status;
23121	status = pthread_create( &t, &attr, task, NULL );
23122#if HAVE_PTHREADS < 7
23123	if( status < 0 ) status = errno;
23124#endif
23125	if( status ) return status;
23126#else
23127	/* Draft 4 pthreads */
23128	status = pthread_create( &t, pthread_attr_default, task, NULL );
23129	if( status ) return errno;
23130
23131	/* give thread a chance to complete */
23132	/* it should remain joinable and hence detachable */
23133	sleep( 1 );
23134
23135	status = pthread_detach( &t );
23136	if( status ) return errno;
23137#endif
23138
23139#ifdef HAVE_LINUX_THREADS
23140	pthread_kill_other_threads_np();
23141#endif
23142
23143	return 0;
23144
23145}
23146
23147_ACEOF
23148rm -f conftest$ac_exeext
23149if { (ac_try="$ac_link"
23150case "(($ac_try" in
23151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152  *) ac_try_echo=$ac_try;;
23153esac
23154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155  (eval "$ac_link") 2>&5
23156  ac_status=$?
23157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23159  { (case "(($ac_try" in
23160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161  *) ac_try_echo=$ac_try;;
23162esac
23163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164  (eval "$ac_try") 2>&5
23165  ac_status=$?
23166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167  (exit $ac_status); }; }; then
23168  ol_cv_pthread_lpthread=yes
23169else
23170  echo "$as_me: program exited with status $ac_status" >&5
23171echo "$as_me: failed program was:" >&5
23172sed 's/^/| /' conftest.$ac_ext >&5
23173
23174( exit $ac_status )
23175ol_cv_pthread_lpthread=no
23176fi
23177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23178fi
23179
23180
23181
23182		# restore the LIBS
23183		LIBS="$ol_LIBS"
23184
23185fi
23186{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23187echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23188
23189	if test $ol_cv_pthread_lpthread = yes ; then
23190		ol_link_pthreads="-lpthread"
23191		ol_link_threads=posix
23192	fi
23193fi
23194
23195		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23196if test "$ol_link_threads" = no ; then
23197	# try -lc_r
23198	{ echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23199echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23200if test "${ol_cv_pthread_lc_r+set}" = set; then
23201  echo $ECHO_N "(cached) $ECHO_C" >&6
23202else
23203
23204		# save the flags
23205		ol_LIBS="$LIBS"
23206		LIBS="-lc_r $LIBS"
23207
23208		if test "$cross_compiling" = yes; then
23209  cat >conftest.$ac_ext <<_ACEOF
23210/* confdefs.h.  */
23211_ACEOF
23212cat confdefs.h >>conftest.$ac_ext
23213cat >>conftest.$ac_ext <<_ACEOF
23214/* end confdefs.h.  */
23215
23216/* pthread test headers */
23217#include <pthread.h>
23218#if HAVE_PTHREADS < 7
23219#include <errno.h>
23220#endif
23221#ifndef NULL
23222#define NULL (void*)0
23223#endif
23224
23225static void *task(p)
23226	void *p;
23227{
23228	return (void *) (p == NULL);
23229}
23230
23231int
23232main ()
23233{
23234
23235	/* pthread test function */
23236#ifndef PTHREAD_CREATE_DETACHED
23237#define	PTHREAD_CREATE_DETACHED	1
23238#endif
23239	pthread_t t;
23240	int status;
23241	int detach = PTHREAD_CREATE_DETACHED;
23242
23243#if HAVE_PTHREADS > 4
23244	/* Final pthreads */
23245	pthread_attr_t attr;
23246
23247	status = pthread_attr_init(&attr);
23248	if( status ) return status;
23249
23250#if HAVE_PTHREADS < 7
23251	status = pthread_attr_setdetachstate(&attr, &detach);
23252	if( status < 0 ) status = errno;
23253#else
23254	status = pthread_attr_setdetachstate(&attr, detach);
23255#endif
23256	if( status ) return status;
23257	status = pthread_create( &t, &attr, task, NULL );
23258#if HAVE_PTHREADS < 7
23259	if( status < 0 ) status = errno;
23260#endif
23261	if( status ) return status;
23262#else
23263	/* Draft 4 pthreads */
23264	status = pthread_create( &t, pthread_attr_default, task, NULL );
23265	if( status ) return errno;
23266
23267	/* give thread a chance to complete */
23268	/* it should remain joinable and hence detachable */
23269	sleep( 1 );
23270
23271	status = pthread_detach( &t );
23272	if( status ) return errno;
23273#endif
23274
23275#ifdef HAVE_LINUX_THREADS
23276	pthread_kill_other_threads_np();
23277#endif
23278
23279	return 0;
23280
23281  ;
23282  return 0;
23283}
23284_ACEOF
23285rm -f conftest.$ac_objext conftest$ac_exeext
23286if { (ac_try="$ac_link"
23287case "(($ac_try" in
23288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289  *) ac_try_echo=$ac_try;;
23290esac
23291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292  (eval "$ac_link") 2>conftest.er1
23293  ac_status=$?
23294  grep -v '^ *+' conftest.er1 >conftest.err
23295  rm -f conftest.er1
23296  cat conftest.err >&5
23297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298  (exit $ac_status); } && {
23299	 test -z "$ac_c_werror_flag" ||
23300	 test ! -s conftest.err
23301       } && test -s conftest$ac_exeext &&
23302       $as_test_x conftest$ac_exeext; then
23303  ol_cv_pthread_lc_r=yes
23304else
23305  echo "$as_me: failed program was:" >&5
23306sed 's/^/| /' conftest.$ac_ext >&5
23307
23308	ol_cv_pthread_lc_r=no
23309fi
23310
23311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23312      conftest$ac_exeext conftest.$ac_ext
23313else
23314  cat >conftest.$ac_ext <<_ACEOF
23315/* confdefs.h.  */
23316_ACEOF
23317cat confdefs.h >>conftest.$ac_ext
23318cat >>conftest.$ac_ext <<_ACEOF
23319/* end confdefs.h.  */
23320
23321/* pthread test headers */
23322#include <pthread.h>
23323#if HAVE_PTHREADS < 7
23324#include <errno.h>
23325#endif
23326#ifndef NULL
23327#define NULL (void*)0
23328#endif
23329
23330static void *task(p)
23331	void *p;
23332{
23333	return (void *) (p == NULL);
23334}
23335
23336
23337int main(argc, argv)
23338	int argc;
23339	char **argv;
23340{
23341
23342	/* pthread test function */
23343#ifndef PTHREAD_CREATE_DETACHED
23344#define	PTHREAD_CREATE_DETACHED	1
23345#endif
23346	pthread_t t;
23347	int status;
23348	int detach = PTHREAD_CREATE_DETACHED;
23349
23350#if HAVE_PTHREADS > 4
23351	/* Final pthreads */
23352	pthread_attr_t attr;
23353
23354	status = pthread_attr_init(&attr);
23355	if( status ) return status;
23356
23357#if HAVE_PTHREADS < 7
23358	status = pthread_attr_setdetachstate(&attr, &detach);
23359	if( status < 0 ) status = errno;
23360#else
23361	status = pthread_attr_setdetachstate(&attr, detach);
23362#endif
23363	if( status ) return status;
23364	status = pthread_create( &t, &attr, task, NULL );
23365#if HAVE_PTHREADS < 7
23366	if( status < 0 ) status = errno;
23367#endif
23368	if( status ) return status;
23369#else
23370	/* Draft 4 pthreads */
23371	status = pthread_create( &t, pthread_attr_default, task, NULL );
23372	if( status ) return errno;
23373
23374	/* give thread a chance to complete */
23375	/* it should remain joinable and hence detachable */
23376	sleep( 1 );
23377
23378	status = pthread_detach( &t );
23379	if( status ) return errno;
23380#endif
23381
23382#ifdef HAVE_LINUX_THREADS
23383	pthread_kill_other_threads_np();
23384#endif
23385
23386	return 0;
23387
23388}
23389
23390_ACEOF
23391rm -f conftest$ac_exeext
23392if { (ac_try="$ac_link"
23393case "(($ac_try" in
23394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395  *) ac_try_echo=$ac_try;;
23396esac
23397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398  (eval "$ac_link") 2>&5
23399  ac_status=$?
23400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23402  { (case "(($ac_try" in
23403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404  *) ac_try_echo=$ac_try;;
23405esac
23406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407  (eval "$ac_try") 2>&5
23408  ac_status=$?
23409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410  (exit $ac_status); }; }; then
23411  ol_cv_pthread_lc_r=yes
23412else
23413  echo "$as_me: program exited with status $ac_status" >&5
23414echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
23417( exit $ac_status )
23418ol_cv_pthread_lc_r=no
23419fi
23420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23421fi
23422
23423
23424
23425		# restore the LIBS
23426		LIBS="$ol_LIBS"
23427
23428fi
23429{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23430echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23431
23432	if test $ol_cv_pthread_lc_r = yes ; then
23433		ol_link_pthreads="-lc_r"
23434		ol_link_threads=posix
23435	fi
23436fi
23437
23438
23439		# Pthread try link: -threads (ol_cv_pthread_threads)
23440if test "$ol_link_threads" = no ; then
23441	# try -threads
23442	{ echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23443echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23444if test "${ol_cv_pthread_threads+set}" = set; then
23445  echo $ECHO_N "(cached) $ECHO_C" >&6
23446else
23447
23448		# save the flags
23449		ol_LIBS="$LIBS"
23450		LIBS="-threads $LIBS"
23451
23452		if test "$cross_compiling" = yes; then
23453  cat >conftest.$ac_ext <<_ACEOF
23454/* confdefs.h.  */
23455_ACEOF
23456cat confdefs.h >>conftest.$ac_ext
23457cat >>conftest.$ac_ext <<_ACEOF
23458/* end confdefs.h.  */
23459
23460/* pthread test headers */
23461#include <pthread.h>
23462#if HAVE_PTHREADS < 7
23463#include <errno.h>
23464#endif
23465#ifndef NULL
23466#define NULL (void*)0
23467#endif
23468
23469static void *task(p)
23470	void *p;
23471{
23472	return (void *) (p == NULL);
23473}
23474
23475int
23476main ()
23477{
23478
23479	/* pthread test function */
23480#ifndef PTHREAD_CREATE_DETACHED
23481#define	PTHREAD_CREATE_DETACHED	1
23482#endif
23483	pthread_t t;
23484	int status;
23485	int detach = PTHREAD_CREATE_DETACHED;
23486
23487#if HAVE_PTHREADS > 4
23488	/* Final pthreads */
23489	pthread_attr_t attr;
23490
23491	status = pthread_attr_init(&attr);
23492	if( status ) return status;
23493
23494#if HAVE_PTHREADS < 7
23495	status = pthread_attr_setdetachstate(&attr, &detach);
23496	if( status < 0 ) status = errno;
23497#else
23498	status = pthread_attr_setdetachstate(&attr, detach);
23499#endif
23500	if( status ) return status;
23501	status = pthread_create( &t, &attr, task, NULL );
23502#if HAVE_PTHREADS < 7
23503	if( status < 0 ) status = errno;
23504#endif
23505	if( status ) return status;
23506#else
23507	/* Draft 4 pthreads */
23508	status = pthread_create( &t, pthread_attr_default, task, NULL );
23509	if( status ) return errno;
23510
23511	/* give thread a chance to complete */
23512	/* it should remain joinable and hence detachable */
23513	sleep( 1 );
23514
23515	status = pthread_detach( &t );
23516	if( status ) return errno;
23517#endif
23518
23519#ifdef HAVE_LINUX_THREADS
23520	pthread_kill_other_threads_np();
23521#endif
23522
23523	return 0;
23524
23525  ;
23526  return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext conftest$ac_exeext
23530if { (ac_try="$ac_link"
23531case "(($ac_try" in
23532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533  *) ac_try_echo=$ac_try;;
23534esac
23535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536  (eval "$ac_link") 2>conftest.er1
23537  ac_status=$?
23538  grep -v '^ *+' conftest.er1 >conftest.err
23539  rm -f conftest.er1
23540  cat conftest.err >&5
23541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542  (exit $ac_status); } && {
23543	 test -z "$ac_c_werror_flag" ||
23544	 test ! -s conftest.err
23545       } && test -s conftest$ac_exeext &&
23546       $as_test_x conftest$ac_exeext; then
23547  ol_cv_pthread_threads=yes
23548else
23549  echo "$as_me: failed program was:" >&5
23550sed 's/^/| /' conftest.$ac_ext >&5
23551
23552	ol_cv_pthread_threads=no
23553fi
23554
23555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23556      conftest$ac_exeext conftest.$ac_ext
23557else
23558  cat >conftest.$ac_ext <<_ACEOF
23559/* confdefs.h.  */
23560_ACEOF
23561cat confdefs.h >>conftest.$ac_ext
23562cat >>conftest.$ac_ext <<_ACEOF
23563/* end confdefs.h.  */
23564
23565/* pthread test headers */
23566#include <pthread.h>
23567#if HAVE_PTHREADS < 7
23568#include <errno.h>
23569#endif
23570#ifndef NULL
23571#define NULL (void*)0
23572#endif
23573
23574static void *task(p)
23575	void *p;
23576{
23577	return (void *) (p == NULL);
23578}
23579
23580
23581int main(argc, argv)
23582	int argc;
23583	char **argv;
23584{
23585
23586	/* pthread test function */
23587#ifndef PTHREAD_CREATE_DETACHED
23588#define	PTHREAD_CREATE_DETACHED	1
23589#endif
23590	pthread_t t;
23591	int status;
23592	int detach = PTHREAD_CREATE_DETACHED;
23593
23594#if HAVE_PTHREADS > 4
23595	/* Final pthreads */
23596	pthread_attr_t attr;
23597
23598	status = pthread_attr_init(&attr);
23599	if( status ) return status;
23600
23601#if HAVE_PTHREADS < 7
23602	status = pthread_attr_setdetachstate(&attr, &detach);
23603	if( status < 0 ) status = errno;
23604#else
23605	status = pthread_attr_setdetachstate(&attr, detach);
23606#endif
23607	if( status ) return status;
23608	status = pthread_create( &t, &attr, task, NULL );
23609#if HAVE_PTHREADS < 7
23610	if( status < 0 ) status = errno;
23611#endif
23612	if( status ) return status;
23613#else
23614	/* Draft 4 pthreads */
23615	status = pthread_create( &t, pthread_attr_default, task, NULL );
23616	if( status ) return errno;
23617
23618	/* give thread a chance to complete */
23619	/* it should remain joinable and hence detachable */
23620	sleep( 1 );
23621
23622	status = pthread_detach( &t );
23623	if( status ) return errno;
23624#endif
23625
23626#ifdef HAVE_LINUX_THREADS
23627	pthread_kill_other_threads_np();
23628#endif
23629
23630	return 0;
23631
23632}
23633
23634_ACEOF
23635rm -f conftest$ac_exeext
23636if { (ac_try="$ac_link"
23637case "(($ac_try" in
23638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639  *) ac_try_echo=$ac_try;;
23640esac
23641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642  (eval "$ac_link") 2>&5
23643  ac_status=$?
23644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23646  { (case "(($ac_try" in
23647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648  *) ac_try_echo=$ac_try;;
23649esac
23650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651  (eval "$ac_try") 2>&5
23652  ac_status=$?
23653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654  (exit $ac_status); }; }; then
23655  ol_cv_pthread_threads=yes
23656else
23657  echo "$as_me: program exited with status $ac_status" >&5
23658echo "$as_me: failed program was:" >&5
23659sed 's/^/| /' conftest.$ac_ext >&5
23660
23661( exit $ac_status )
23662ol_cv_pthread_threads=no
23663fi
23664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23665fi
23666
23667
23668
23669		# restore the LIBS
23670		LIBS="$ol_LIBS"
23671
23672fi
23673{ echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23674echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23675
23676	if test $ol_cv_pthread_threads = yes ; then
23677		ol_link_pthreads="-threads"
23678		ol_link_threads=posix
23679	fi
23680fi
23681
23682
23683		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23684if test "$ol_link_threads" = no ; then
23685	# try -lpthreads -lmach -lexc -lc_r
23686	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23687echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23688if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23689  echo $ECHO_N "(cached) $ECHO_C" >&6
23690else
23691
23692		# save the flags
23693		ol_LIBS="$LIBS"
23694		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23695
23696		if test "$cross_compiling" = yes; then
23697  cat >conftest.$ac_ext <<_ACEOF
23698/* confdefs.h.  */
23699_ACEOF
23700cat confdefs.h >>conftest.$ac_ext
23701cat >>conftest.$ac_ext <<_ACEOF
23702/* end confdefs.h.  */
23703
23704/* pthread test headers */
23705#include <pthread.h>
23706#if HAVE_PTHREADS < 7
23707#include <errno.h>
23708#endif
23709#ifndef NULL
23710#define NULL (void*)0
23711#endif
23712
23713static void *task(p)
23714	void *p;
23715{
23716	return (void *) (p == NULL);
23717}
23718
23719int
23720main ()
23721{
23722
23723	/* pthread test function */
23724#ifndef PTHREAD_CREATE_DETACHED
23725#define	PTHREAD_CREATE_DETACHED	1
23726#endif
23727	pthread_t t;
23728	int status;
23729	int detach = PTHREAD_CREATE_DETACHED;
23730
23731#if HAVE_PTHREADS > 4
23732	/* Final pthreads */
23733	pthread_attr_t attr;
23734
23735	status = pthread_attr_init(&attr);
23736	if( status ) return status;
23737
23738#if HAVE_PTHREADS < 7
23739	status = pthread_attr_setdetachstate(&attr, &detach);
23740	if( status < 0 ) status = errno;
23741#else
23742	status = pthread_attr_setdetachstate(&attr, detach);
23743#endif
23744	if( status ) return status;
23745	status = pthread_create( &t, &attr, task, NULL );
23746#if HAVE_PTHREADS < 7
23747	if( status < 0 ) status = errno;
23748#endif
23749	if( status ) return status;
23750#else
23751	/* Draft 4 pthreads */
23752	status = pthread_create( &t, pthread_attr_default, task, NULL );
23753	if( status ) return errno;
23754
23755	/* give thread a chance to complete */
23756	/* it should remain joinable and hence detachable */
23757	sleep( 1 );
23758
23759	status = pthread_detach( &t );
23760	if( status ) return errno;
23761#endif
23762
23763#ifdef HAVE_LINUX_THREADS
23764	pthread_kill_other_threads_np();
23765#endif
23766
23767	return 0;
23768
23769  ;
23770  return 0;
23771}
23772_ACEOF
23773rm -f conftest.$ac_objext conftest$ac_exeext
23774if { (ac_try="$ac_link"
23775case "(($ac_try" in
23776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777  *) ac_try_echo=$ac_try;;
23778esac
23779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780  (eval "$ac_link") 2>conftest.er1
23781  ac_status=$?
23782  grep -v '^ *+' conftest.er1 >conftest.err
23783  rm -f conftest.er1
23784  cat conftest.err >&5
23785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786  (exit $ac_status); } && {
23787	 test -z "$ac_c_werror_flag" ||
23788	 test ! -s conftest.err
23789       } && test -s conftest$ac_exeext &&
23790       $as_test_x conftest$ac_exeext; then
23791  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23792else
23793  echo "$as_me: failed program was:" >&5
23794sed 's/^/| /' conftest.$ac_ext >&5
23795
23796	ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23797fi
23798
23799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23800      conftest$ac_exeext conftest.$ac_ext
23801else
23802  cat >conftest.$ac_ext <<_ACEOF
23803/* confdefs.h.  */
23804_ACEOF
23805cat confdefs.h >>conftest.$ac_ext
23806cat >>conftest.$ac_ext <<_ACEOF
23807/* end confdefs.h.  */
23808
23809/* pthread test headers */
23810#include <pthread.h>
23811#if HAVE_PTHREADS < 7
23812#include <errno.h>
23813#endif
23814#ifndef NULL
23815#define NULL (void*)0
23816#endif
23817
23818static void *task(p)
23819	void *p;
23820{
23821	return (void *) (p == NULL);
23822}
23823
23824
23825int main(argc, argv)
23826	int argc;
23827	char **argv;
23828{
23829
23830	/* pthread test function */
23831#ifndef PTHREAD_CREATE_DETACHED
23832#define	PTHREAD_CREATE_DETACHED	1
23833#endif
23834	pthread_t t;
23835	int status;
23836	int detach = PTHREAD_CREATE_DETACHED;
23837
23838#if HAVE_PTHREADS > 4
23839	/* Final pthreads */
23840	pthread_attr_t attr;
23841
23842	status = pthread_attr_init(&attr);
23843	if( status ) return status;
23844
23845#if HAVE_PTHREADS < 7
23846	status = pthread_attr_setdetachstate(&attr, &detach);
23847	if( status < 0 ) status = errno;
23848#else
23849	status = pthread_attr_setdetachstate(&attr, detach);
23850#endif
23851	if( status ) return status;
23852	status = pthread_create( &t, &attr, task, NULL );
23853#if HAVE_PTHREADS < 7
23854	if( status < 0 ) status = errno;
23855#endif
23856	if( status ) return status;
23857#else
23858	/* Draft 4 pthreads */
23859	status = pthread_create( &t, pthread_attr_default, task, NULL );
23860	if( status ) return errno;
23861
23862	/* give thread a chance to complete */
23863	/* it should remain joinable and hence detachable */
23864	sleep( 1 );
23865
23866	status = pthread_detach( &t );
23867	if( status ) return errno;
23868#endif
23869
23870#ifdef HAVE_LINUX_THREADS
23871	pthread_kill_other_threads_np();
23872#endif
23873
23874	return 0;
23875
23876}
23877
23878_ACEOF
23879rm -f conftest$ac_exeext
23880if { (ac_try="$ac_link"
23881case "(($ac_try" in
23882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883  *) ac_try_echo=$ac_try;;
23884esac
23885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886  (eval "$ac_link") 2>&5
23887  ac_status=$?
23888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23890  { (case "(($ac_try" in
23891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892  *) ac_try_echo=$ac_try;;
23893esac
23894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895  (eval "$ac_try") 2>&5
23896  ac_status=$?
23897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898  (exit $ac_status); }; }; then
23899  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23900else
23901  echo "$as_me: program exited with status $ac_status" >&5
23902echo "$as_me: failed program was:" >&5
23903sed 's/^/| /' conftest.$ac_ext >&5
23904
23905( exit $ac_status )
23906ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23907fi
23908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23909fi
23910
23911
23912
23913		# restore the LIBS
23914		LIBS="$ol_LIBS"
23915
23916fi
23917{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23918echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23919
23920	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23921		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23922		ol_link_threads=posix
23923	fi
23924fi
23925
23926		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23927if test "$ol_link_threads" = no ; then
23928	# try -lpthreads -lmach -lexc
23929	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23930echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23931if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23932  echo $ECHO_N "(cached) $ECHO_C" >&6
23933else
23934
23935		# save the flags
23936		ol_LIBS="$LIBS"
23937		LIBS="-lpthreads -lmach -lexc $LIBS"
23938
23939		if test "$cross_compiling" = yes; then
23940  cat >conftest.$ac_ext <<_ACEOF
23941/* confdefs.h.  */
23942_ACEOF
23943cat confdefs.h >>conftest.$ac_ext
23944cat >>conftest.$ac_ext <<_ACEOF
23945/* end confdefs.h.  */
23946
23947/* pthread test headers */
23948#include <pthread.h>
23949#if HAVE_PTHREADS < 7
23950#include <errno.h>
23951#endif
23952#ifndef NULL
23953#define NULL (void*)0
23954#endif
23955
23956static void *task(p)
23957	void *p;
23958{
23959	return (void *) (p == NULL);
23960}
23961
23962int
23963main ()
23964{
23965
23966	/* pthread test function */
23967#ifndef PTHREAD_CREATE_DETACHED
23968#define	PTHREAD_CREATE_DETACHED	1
23969#endif
23970	pthread_t t;
23971	int status;
23972	int detach = PTHREAD_CREATE_DETACHED;
23973
23974#if HAVE_PTHREADS > 4
23975	/* Final pthreads */
23976	pthread_attr_t attr;
23977
23978	status = pthread_attr_init(&attr);
23979	if( status ) return status;
23980
23981#if HAVE_PTHREADS < 7
23982	status = pthread_attr_setdetachstate(&attr, &detach);
23983	if( status < 0 ) status = errno;
23984#else
23985	status = pthread_attr_setdetachstate(&attr, detach);
23986#endif
23987	if( status ) return status;
23988	status = pthread_create( &t, &attr, task, NULL );
23989#if HAVE_PTHREADS < 7
23990	if( status < 0 ) status = errno;
23991#endif
23992	if( status ) return status;
23993#else
23994	/* Draft 4 pthreads */
23995	status = pthread_create( &t, pthread_attr_default, task, NULL );
23996	if( status ) return errno;
23997
23998	/* give thread a chance to complete */
23999	/* it should remain joinable and hence detachable */
24000	sleep( 1 );
24001
24002	status = pthread_detach( &t );
24003	if( status ) return errno;
24004#endif
24005
24006#ifdef HAVE_LINUX_THREADS
24007	pthread_kill_other_threads_np();
24008#endif
24009
24010	return 0;
24011
24012  ;
24013  return 0;
24014}
24015_ACEOF
24016rm -f conftest.$ac_objext conftest$ac_exeext
24017if { (ac_try="$ac_link"
24018case "(($ac_try" in
24019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020  *) ac_try_echo=$ac_try;;
24021esac
24022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023  (eval "$ac_link") 2>conftest.er1
24024  ac_status=$?
24025  grep -v '^ *+' conftest.er1 >conftest.err
24026  rm -f conftest.er1
24027  cat conftest.err >&5
24028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029  (exit $ac_status); } && {
24030	 test -z "$ac_c_werror_flag" ||
24031	 test ! -s conftest.err
24032       } && test -s conftest$ac_exeext &&
24033       $as_test_x conftest$ac_exeext; then
24034  ol_cv_pthread_lpthreads_lmach_lexc=yes
24035else
24036  echo "$as_me: failed program was:" >&5
24037sed 's/^/| /' conftest.$ac_ext >&5
24038
24039	ol_cv_pthread_lpthreads_lmach_lexc=no
24040fi
24041
24042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24043      conftest$ac_exeext conftest.$ac_ext
24044else
24045  cat >conftest.$ac_ext <<_ACEOF
24046/* confdefs.h.  */
24047_ACEOF
24048cat confdefs.h >>conftest.$ac_ext
24049cat >>conftest.$ac_ext <<_ACEOF
24050/* end confdefs.h.  */
24051
24052/* pthread test headers */
24053#include <pthread.h>
24054#if HAVE_PTHREADS < 7
24055#include <errno.h>
24056#endif
24057#ifndef NULL
24058#define NULL (void*)0
24059#endif
24060
24061static void *task(p)
24062	void *p;
24063{
24064	return (void *) (p == NULL);
24065}
24066
24067
24068int main(argc, argv)
24069	int argc;
24070	char **argv;
24071{
24072
24073	/* pthread test function */
24074#ifndef PTHREAD_CREATE_DETACHED
24075#define	PTHREAD_CREATE_DETACHED	1
24076#endif
24077	pthread_t t;
24078	int status;
24079	int detach = PTHREAD_CREATE_DETACHED;
24080
24081#if HAVE_PTHREADS > 4
24082	/* Final pthreads */
24083	pthread_attr_t attr;
24084
24085	status = pthread_attr_init(&attr);
24086	if( status ) return status;
24087
24088#if HAVE_PTHREADS < 7
24089	status = pthread_attr_setdetachstate(&attr, &detach);
24090	if( status < 0 ) status = errno;
24091#else
24092	status = pthread_attr_setdetachstate(&attr, detach);
24093#endif
24094	if( status ) return status;
24095	status = pthread_create( &t, &attr, task, NULL );
24096#if HAVE_PTHREADS < 7
24097	if( status < 0 ) status = errno;
24098#endif
24099	if( status ) return status;
24100#else
24101	/* Draft 4 pthreads */
24102	status = pthread_create( &t, pthread_attr_default, task, NULL );
24103	if( status ) return errno;
24104
24105	/* give thread a chance to complete */
24106	/* it should remain joinable and hence detachable */
24107	sleep( 1 );
24108
24109	status = pthread_detach( &t );
24110	if( status ) return errno;
24111#endif
24112
24113#ifdef HAVE_LINUX_THREADS
24114	pthread_kill_other_threads_np();
24115#endif
24116
24117	return 0;
24118
24119}
24120
24121_ACEOF
24122rm -f conftest$ac_exeext
24123if { (ac_try="$ac_link"
24124case "(($ac_try" in
24125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126  *) ac_try_echo=$ac_try;;
24127esac
24128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129  (eval "$ac_link") 2>&5
24130  ac_status=$?
24131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24133  { (case "(($ac_try" in
24134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135  *) ac_try_echo=$ac_try;;
24136esac
24137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24138  (eval "$ac_try") 2>&5
24139  ac_status=$?
24140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141  (exit $ac_status); }; }; then
24142  ol_cv_pthread_lpthreads_lmach_lexc=yes
24143else
24144  echo "$as_me: program exited with status $ac_status" >&5
24145echo "$as_me: failed program was:" >&5
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
24148( exit $ac_status )
24149ol_cv_pthread_lpthreads_lmach_lexc=no
24150fi
24151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24152fi
24153
24154
24155
24156		# restore the LIBS
24157		LIBS="$ol_LIBS"
24158
24159fi
24160{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24161echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24162
24163	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24164		ol_link_pthreads="-lpthreads -lmach -lexc"
24165		ol_link_threads=posix
24166	fi
24167fi
24168
24169		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24170if test "$ol_link_threads" = no ; then
24171	# try -lpthreads -lexc
24172	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24173echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24174if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24175  echo $ECHO_N "(cached) $ECHO_C" >&6
24176else
24177
24178		# save the flags
24179		ol_LIBS="$LIBS"
24180		LIBS="-lpthreads -lexc $LIBS"
24181
24182		if test "$cross_compiling" = yes; then
24183  cat >conftest.$ac_ext <<_ACEOF
24184/* confdefs.h.  */
24185_ACEOF
24186cat confdefs.h >>conftest.$ac_ext
24187cat >>conftest.$ac_ext <<_ACEOF
24188/* end confdefs.h.  */
24189
24190/* pthread test headers */
24191#include <pthread.h>
24192#if HAVE_PTHREADS < 7
24193#include <errno.h>
24194#endif
24195#ifndef NULL
24196#define NULL (void*)0
24197#endif
24198
24199static void *task(p)
24200	void *p;
24201{
24202	return (void *) (p == NULL);
24203}
24204
24205int
24206main ()
24207{
24208
24209	/* pthread test function */
24210#ifndef PTHREAD_CREATE_DETACHED
24211#define	PTHREAD_CREATE_DETACHED	1
24212#endif
24213	pthread_t t;
24214	int status;
24215	int detach = PTHREAD_CREATE_DETACHED;
24216
24217#if HAVE_PTHREADS > 4
24218	/* Final pthreads */
24219	pthread_attr_t attr;
24220
24221	status = pthread_attr_init(&attr);
24222	if( status ) return status;
24223
24224#if HAVE_PTHREADS < 7
24225	status = pthread_attr_setdetachstate(&attr, &detach);
24226	if( status < 0 ) status = errno;
24227#else
24228	status = pthread_attr_setdetachstate(&attr, detach);
24229#endif
24230	if( status ) return status;
24231	status = pthread_create( &t, &attr, task, NULL );
24232#if HAVE_PTHREADS < 7
24233	if( status < 0 ) status = errno;
24234#endif
24235	if( status ) return status;
24236#else
24237	/* Draft 4 pthreads */
24238	status = pthread_create( &t, pthread_attr_default, task, NULL );
24239	if( status ) return errno;
24240
24241	/* give thread a chance to complete */
24242	/* it should remain joinable and hence detachable */
24243	sleep( 1 );
24244
24245	status = pthread_detach( &t );
24246	if( status ) return errno;
24247#endif
24248
24249#ifdef HAVE_LINUX_THREADS
24250	pthread_kill_other_threads_np();
24251#endif
24252
24253	return 0;
24254
24255  ;
24256  return 0;
24257}
24258_ACEOF
24259rm -f conftest.$ac_objext conftest$ac_exeext
24260if { (ac_try="$ac_link"
24261case "(($ac_try" in
24262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24263  *) ac_try_echo=$ac_try;;
24264esac
24265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24266  (eval "$ac_link") 2>conftest.er1
24267  ac_status=$?
24268  grep -v '^ *+' conftest.er1 >conftest.err
24269  rm -f conftest.er1
24270  cat conftest.err >&5
24271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272  (exit $ac_status); } && {
24273	 test -z "$ac_c_werror_flag" ||
24274	 test ! -s conftest.err
24275       } && test -s conftest$ac_exeext &&
24276       $as_test_x conftest$ac_exeext; then
24277  ol_cv_pthread_lpthreads_lexc=yes
24278else
24279  echo "$as_me: failed program was:" >&5
24280sed 's/^/| /' conftest.$ac_ext >&5
24281
24282	ol_cv_pthread_lpthreads_lexc=no
24283fi
24284
24285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24286      conftest$ac_exeext conftest.$ac_ext
24287else
24288  cat >conftest.$ac_ext <<_ACEOF
24289/* confdefs.h.  */
24290_ACEOF
24291cat confdefs.h >>conftest.$ac_ext
24292cat >>conftest.$ac_ext <<_ACEOF
24293/* end confdefs.h.  */
24294
24295/* pthread test headers */
24296#include <pthread.h>
24297#if HAVE_PTHREADS < 7
24298#include <errno.h>
24299#endif
24300#ifndef NULL
24301#define NULL (void*)0
24302#endif
24303
24304static void *task(p)
24305	void *p;
24306{
24307	return (void *) (p == NULL);
24308}
24309
24310
24311int main(argc, argv)
24312	int argc;
24313	char **argv;
24314{
24315
24316	/* pthread test function */
24317#ifndef PTHREAD_CREATE_DETACHED
24318#define	PTHREAD_CREATE_DETACHED	1
24319#endif
24320	pthread_t t;
24321	int status;
24322	int detach = PTHREAD_CREATE_DETACHED;
24323
24324#if HAVE_PTHREADS > 4
24325	/* Final pthreads */
24326	pthread_attr_t attr;
24327
24328	status = pthread_attr_init(&attr);
24329	if( status ) return status;
24330
24331#if HAVE_PTHREADS < 7
24332	status = pthread_attr_setdetachstate(&attr, &detach);
24333	if( status < 0 ) status = errno;
24334#else
24335	status = pthread_attr_setdetachstate(&attr, detach);
24336#endif
24337	if( status ) return status;
24338	status = pthread_create( &t, &attr, task, NULL );
24339#if HAVE_PTHREADS < 7
24340	if( status < 0 ) status = errno;
24341#endif
24342	if( status ) return status;
24343#else
24344	/* Draft 4 pthreads */
24345	status = pthread_create( &t, pthread_attr_default, task, NULL );
24346	if( status ) return errno;
24347
24348	/* give thread a chance to complete */
24349	/* it should remain joinable and hence detachable */
24350	sleep( 1 );
24351
24352	status = pthread_detach( &t );
24353	if( status ) return errno;
24354#endif
24355
24356#ifdef HAVE_LINUX_THREADS
24357	pthread_kill_other_threads_np();
24358#endif
24359
24360	return 0;
24361
24362}
24363
24364_ACEOF
24365rm -f conftest$ac_exeext
24366if { (ac_try="$ac_link"
24367case "(($ac_try" in
24368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369  *) ac_try_echo=$ac_try;;
24370esac
24371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372  (eval "$ac_link") 2>&5
24373  ac_status=$?
24374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24376  { (case "(($ac_try" in
24377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24378  *) ac_try_echo=$ac_try;;
24379esac
24380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24381  (eval "$ac_try") 2>&5
24382  ac_status=$?
24383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384  (exit $ac_status); }; }; then
24385  ol_cv_pthread_lpthreads_lexc=yes
24386else
24387  echo "$as_me: program exited with status $ac_status" >&5
24388echo "$as_me: failed program was:" >&5
24389sed 's/^/| /' conftest.$ac_ext >&5
24390
24391( exit $ac_status )
24392ol_cv_pthread_lpthreads_lexc=no
24393fi
24394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24395fi
24396
24397
24398
24399		# restore the LIBS
24400		LIBS="$ol_LIBS"
24401
24402fi
24403{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24404echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24405
24406	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24407		ol_link_pthreads="-lpthreads -lexc"
24408		ol_link_threads=posix
24409	fi
24410fi
24411
24412
24413		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24414if test "$ol_link_threads" = no ; then
24415	# try -lpthreads
24416	{ echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24417echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24418if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24419  echo $ECHO_N "(cached) $ECHO_C" >&6
24420else
24421
24422		# save the flags
24423		ol_LIBS="$LIBS"
24424		LIBS="-lpthreads $LIBS"
24425
24426		if test "$cross_compiling" = yes; then
24427  cat >conftest.$ac_ext <<_ACEOF
24428/* confdefs.h.  */
24429_ACEOF
24430cat confdefs.h >>conftest.$ac_ext
24431cat >>conftest.$ac_ext <<_ACEOF
24432/* end confdefs.h.  */
24433
24434/* pthread test headers */
24435#include <pthread.h>
24436#if HAVE_PTHREADS < 7
24437#include <errno.h>
24438#endif
24439#ifndef NULL
24440#define NULL (void*)0
24441#endif
24442
24443static void *task(p)
24444	void *p;
24445{
24446	return (void *) (p == NULL);
24447}
24448
24449int
24450main ()
24451{
24452
24453	/* pthread test function */
24454#ifndef PTHREAD_CREATE_DETACHED
24455#define	PTHREAD_CREATE_DETACHED	1
24456#endif
24457	pthread_t t;
24458	int status;
24459	int detach = PTHREAD_CREATE_DETACHED;
24460
24461#if HAVE_PTHREADS > 4
24462	/* Final pthreads */
24463	pthread_attr_t attr;
24464
24465	status = pthread_attr_init(&attr);
24466	if( status ) return status;
24467
24468#if HAVE_PTHREADS < 7
24469	status = pthread_attr_setdetachstate(&attr, &detach);
24470	if( status < 0 ) status = errno;
24471#else
24472	status = pthread_attr_setdetachstate(&attr, detach);
24473#endif
24474	if( status ) return status;
24475	status = pthread_create( &t, &attr, task, NULL );
24476#if HAVE_PTHREADS < 7
24477	if( status < 0 ) status = errno;
24478#endif
24479	if( status ) return status;
24480#else
24481	/* Draft 4 pthreads */
24482	status = pthread_create( &t, pthread_attr_default, task, NULL );
24483	if( status ) return errno;
24484
24485	/* give thread a chance to complete */
24486	/* it should remain joinable and hence detachable */
24487	sleep( 1 );
24488
24489	status = pthread_detach( &t );
24490	if( status ) return errno;
24491#endif
24492
24493#ifdef HAVE_LINUX_THREADS
24494	pthread_kill_other_threads_np();
24495#endif
24496
24497	return 0;
24498
24499  ;
24500  return 0;
24501}
24502_ACEOF
24503rm -f conftest.$ac_objext conftest$ac_exeext
24504if { (ac_try="$ac_link"
24505case "(($ac_try" in
24506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507  *) ac_try_echo=$ac_try;;
24508esac
24509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510  (eval "$ac_link") 2>conftest.er1
24511  ac_status=$?
24512  grep -v '^ *+' conftest.er1 >conftest.err
24513  rm -f conftest.er1
24514  cat conftest.err >&5
24515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516  (exit $ac_status); } && {
24517	 test -z "$ac_c_werror_flag" ||
24518	 test ! -s conftest.err
24519       } && test -s conftest$ac_exeext &&
24520       $as_test_x conftest$ac_exeext; then
24521  ol_cv_pthread_lib_lpthreads=yes
24522else
24523  echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526	ol_cv_pthread_lib_lpthreads=no
24527fi
24528
24529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24530      conftest$ac_exeext conftest.$ac_ext
24531else
24532  cat >conftest.$ac_ext <<_ACEOF
24533/* confdefs.h.  */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h.  */
24538
24539/* pthread test headers */
24540#include <pthread.h>
24541#if HAVE_PTHREADS < 7
24542#include <errno.h>
24543#endif
24544#ifndef NULL
24545#define NULL (void*)0
24546#endif
24547
24548static void *task(p)
24549	void *p;
24550{
24551	return (void *) (p == NULL);
24552}
24553
24554
24555int main(argc, argv)
24556	int argc;
24557	char **argv;
24558{
24559
24560	/* pthread test function */
24561#ifndef PTHREAD_CREATE_DETACHED
24562#define	PTHREAD_CREATE_DETACHED	1
24563#endif
24564	pthread_t t;
24565	int status;
24566	int detach = PTHREAD_CREATE_DETACHED;
24567
24568#if HAVE_PTHREADS > 4
24569	/* Final pthreads */
24570	pthread_attr_t attr;
24571
24572	status = pthread_attr_init(&attr);
24573	if( status ) return status;
24574
24575#if HAVE_PTHREADS < 7
24576	status = pthread_attr_setdetachstate(&attr, &detach);
24577	if( status < 0 ) status = errno;
24578#else
24579	status = pthread_attr_setdetachstate(&attr, detach);
24580#endif
24581	if( status ) return status;
24582	status = pthread_create( &t, &attr, task, NULL );
24583#if HAVE_PTHREADS < 7
24584	if( status < 0 ) status = errno;
24585#endif
24586	if( status ) return status;
24587#else
24588	/* Draft 4 pthreads */
24589	status = pthread_create( &t, pthread_attr_default, task, NULL );
24590	if( status ) return errno;
24591
24592	/* give thread a chance to complete */
24593	/* it should remain joinable and hence detachable */
24594	sleep( 1 );
24595
24596	status = pthread_detach( &t );
24597	if( status ) return errno;
24598#endif
24599
24600#ifdef HAVE_LINUX_THREADS
24601	pthread_kill_other_threads_np();
24602#endif
24603
24604	return 0;
24605
24606}
24607
24608_ACEOF
24609rm -f conftest$ac_exeext
24610if { (ac_try="$ac_link"
24611case "(($ac_try" in
24612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613  *) ac_try_echo=$ac_try;;
24614esac
24615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616  (eval "$ac_link") 2>&5
24617  ac_status=$?
24618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24620  { (case "(($ac_try" in
24621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622  *) ac_try_echo=$ac_try;;
24623esac
24624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625  (eval "$ac_try") 2>&5
24626  ac_status=$?
24627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628  (exit $ac_status); }; }; then
24629  ol_cv_pthread_lib_lpthreads=yes
24630else
24631  echo "$as_me: program exited with status $ac_status" >&5
24632echo "$as_me: failed program was:" >&5
24633sed 's/^/| /' conftest.$ac_ext >&5
24634
24635( exit $ac_status )
24636ol_cv_pthread_lib_lpthreads=no
24637fi
24638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24639fi
24640
24641
24642
24643		# restore the LIBS
24644		LIBS="$ol_LIBS"
24645
24646fi
24647{ echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24648echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24649
24650	if test $ol_cv_pthread_lib_lpthreads = yes ; then
24651		ol_link_pthreads="-lpthreads"
24652		ol_link_threads=posix
24653	fi
24654fi
24655
24656
24657		if test $ol_link_threads != no ; then
24658			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24659
24660						save_CPPFLAGS="$CPPFLAGS"
24661			save_LIBS="$LIBS"
24662			LIBS="$LTHREAD_LIBS $LIBS"
24663
24664
24665
24666
24667for ac_func in sched_yield pthread_yield thr_yield
24668do
24669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24670{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24673  echo $ECHO_N "(cached) $ECHO_C" >&6
24674else
24675  cat >conftest.$ac_ext <<_ACEOF
24676/* confdefs.h.  */
24677_ACEOF
24678cat confdefs.h >>conftest.$ac_ext
24679cat >>conftest.$ac_ext <<_ACEOF
24680/* end confdefs.h.  */
24681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24682   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24683#define $ac_func innocuous_$ac_func
24684
24685/* System header to define __stub macros and hopefully few prototypes,
24686    which can conflict with char $ac_func (); below.
24687    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24688    <limits.h> exists even on freestanding compilers.  */
24689
24690#ifdef __STDC__
24691# include <limits.h>
24692#else
24693# include <assert.h>
24694#endif
24695
24696#undef $ac_func
24697
24698/* Override any GCC internal prototype to avoid an error.
24699   Use char because int might match the return type of a GCC
24700   builtin and then its argument prototype would still apply.  */
24701#ifdef __cplusplus
24702extern "C"
24703#endif
24704char $ac_func ();
24705/* The GNU C library defines this for functions which it implements
24706    to always fail with ENOSYS.  Some functions are actually named
24707    something starting with __ and the normal name is an alias.  */
24708#if defined __stub_$ac_func || defined __stub___$ac_func
24709choke me
24710#endif
24711
24712int
24713main ()
24714{
24715return $ac_func ();
24716  ;
24717  return 0;
24718}
24719_ACEOF
24720rm -f conftest.$ac_objext conftest$ac_exeext
24721if { (ac_try="$ac_link"
24722case "(($ac_try" in
24723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724  *) ac_try_echo=$ac_try;;
24725esac
24726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727  (eval "$ac_link") 2>conftest.er1
24728  ac_status=$?
24729  grep -v '^ *+' conftest.er1 >conftest.err
24730  rm -f conftest.er1
24731  cat conftest.err >&5
24732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733  (exit $ac_status); } && {
24734	 test -z "$ac_c_werror_flag" ||
24735	 test ! -s conftest.err
24736       } && test -s conftest$ac_exeext &&
24737       $as_test_x conftest$ac_exeext; then
24738  eval "$as_ac_var=yes"
24739else
24740  echo "$as_me: failed program was:" >&5
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743	eval "$as_ac_var=no"
24744fi
24745
24746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24747      conftest$ac_exeext conftest.$ac_ext
24748fi
24749ac_res=`eval echo '${'$as_ac_var'}'`
24750	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24751echo "${ECHO_T}$ac_res" >&6; }
24752if test `eval echo '${'$as_ac_var'}'` = yes; then
24753  cat >>confdefs.h <<_ACEOF
24754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24755_ACEOF
24756
24757fi
24758done
24759
24760
24761			if test $ac_cv_func_sched_yield = no &&
24762			   test $ac_cv_func_pthread_yield = no &&
24763			   test $ac_cv_func_thr_yield = no ; then
24764								{ echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24765echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24766if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24767  echo $ECHO_N "(cached) $ECHO_C" >&6
24768else
24769  ac_check_lib_save_LIBS=$LIBS
24770LIBS="-lrt  $LIBS"
24771cat >conftest.$ac_ext <<_ACEOF
24772/* confdefs.h.  */
24773_ACEOF
24774cat confdefs.h >>conftest.$ac_ext
24775cat >>conftest.$ac_ext <<_ACEOF
24776/* end confdefs.h.  */
24777
24778/* Override any GCC internal prototype to avoid an error.
24779   Use char because int might match the return type of a GCC
24780   builtin and then its argument prototype would still apply.  */
24781#ifdef __cplusplus
24782extern "C"
24783#endif
24784char sched_yield ();
24785int
24786main ()
24787{
24788return sched_yield ();
24789  ;
24790  return 0;
24791}
24792_ACEOF
24793rm -f conftest.$ac_objext conftest$ac_exeext
24794if { (ac_try="$ac_link"
24795case "(($ac_try" in
24796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797  *) ac_try_echo=$ac_try;;
24798esac
24799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800  (eval "$ac_link") 2>conftest.er1
24801  ac_status=$?
24802  grep -v '^ *+' conftest.er1 >conftest.err
24803  rm -f conftest.er1
24804  cat conftest.err >&5
24805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806  (exit $ac_status); } && {
24807	 test -z "$ac_c_werror_flag" ||
24808	 test ! -s conftest.err
24809       } && test -s conftest$ac_exeext &&
24810       $as_test_x conftest$ac_exeext; then
24811  ac_cv_lib_rt_sched_yield=yes
24812else
24813  echo "$as_me: failed program was:" >&5
24814sed 's/^/| /' conftest.$ac_ext >&5
24815
24816	ac_cv_lib_rt_sched_yield=no
24817fi
24818
24819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24820      conftest$ac_exeext conftest.$ac_ext
24821LIBS=$ac_check_lib_save_LIBS
24822fi
24823{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24824echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24825if test $ac_cv_lib_rt_sched_yield = yes; then
24826  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24827
24828cat >>confdefs.h <<\_ACEOF
24829#define HAVE_SCHED_YIELD 1
24830_ACEOF
24831
24832					ac_cv_func_sched_yield=yes
24833else
24834  ac_cv_func_sched_yield=no
24835fi
24836
24837			fi
24838			if test $ac_cv_func_sched_yield = no &&
24839			   test $ac_cv_func_pthread_yield = no &&
24840			   test "$ac_cv_func_thr_yield" = no ; then
24841				{ echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24842echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24843			fi
24844
24845
24846for ac_func in pthread_kill
24847do
24848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24852  echo $ECHO_N "(cached) $ECHO_C" >&6
24853else
24854  cat >conftest.$ac_ext <<_ACEOF
24855/* confdefs.h.  */
24856_ACEOF
24857cat confdefs.h >>conftest.$ac_ext
24858cat >>conftest.$ac_ext <<_ACEOF
24859/* end confdefs.h.  */
24860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24862#define $ac_func innocuous_$ac_func
24863
24864/* System header to define __stub macros and hopefully few prototypes,
24865    which can conflict with char $ac_func (); below.
24866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24867    <limits.h> exists even on freestanding compilers.  */
24868
24869#ifdef __STDC__
24870# include <limits.h>
24871#else
24872# include <assert.h>
24873#endif
24874
24875#undef $ac_func
24876
24877/* Override any GCC internal prototype to avoid an error.
24878   Use char because int might match the return type of a GCC
24879   builtin and then its argument prototype would still apply.  */
24880#ifdef __cplusplus
24881extern "C"
24882#endif
24883char $ac_func ();
24884/* The GNU C library defines this for functions which it implements
24885    to always fail with ENOSYS.  Some functions are actually named
24886    something starting with __ and the normal name is an alias.  */
24887#if defined __stub_$ac_func || defined __stub___$ac_func
24888choke me
24889#endif
24890
24891int
24892main ()
24893{
24894return $ac_func ();
24895  ;
24896  return 0;
24897}
24898_ACEOF
24899rm -f conftest.$ac_objext conftest$ac_exeext
24900if { (ac_try="$ac_link"
24901case "(($ac_try" in
24902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903  *) ac_try_echo=$ac_try;;
24904esac
24905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906  (eval "$ac_link") 2>conftest.er1
24907  ac_status=$?
24908  grep -v '^ *+' conftest.er1 >conftest.err
24909  rm -f conftest.er1
24910  cat conftest.err >&5
24911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912  (exit $ac_status); } && {
24913	 test -z "$ac_c_werror_flag" ||
24914	 test ! -s conftest.err
24915       } && test -s conftest$ac_exeext &&
24916       $as_test_x conftest$ac_exeext; then
24917  eval "$as_ac_var=yes"
24918else
24919  echo "$as_me: failed program was:" >&5
24920sed 's/^/| /' conftest.$ac_ext >&5
24921
24922	eval "$as_ac_var=no"
24923fi
24924
24925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24926      conftest$ac_exeext conftest.$ac_ext
24927fi
24928ac_res=`eval echo '${'$as_ac_var'}'`
24929	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24930echo "${ECHO_T}$ac_res" >&6; }
24931if test `eval echo '${'$as_ac_var'}'` = yes; then
24932  cat >>confdefs.h <<_ACEOF
24933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24934_ACEOF
24935
24936fi
24937done
24938
24939
24940									{ echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24941echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24942if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24943  echo $ECHO_N "(cached) $ECHO_C" >&6
24944else
24945
24946								cat >conftest.$ac_ext <<_ACEOF
24947/* confdefs.h.  */
24948_ACEOF
24949cat confdefs.h >>conftest.$ac_ext
24950cat >>conftest.$ac_ext <<_ACEOF
24951/* end confdefs.h.  */
24952
24953#include <pthread.h>
24954pthread_rwlock_t rwlock;
24955
24956int
24957main ()
24958{
24959pthread_rwlock_destroy(&rwlock);
24960  ;
24961  return 0;
24962}
24963_ACEOF
24964rm -f conftest.$ac_objext conftest$ac_exeext
24965if { (ac_try="$ac_link"
24966case "(($ac_try" in
24967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968  *) ac_try_echo=$ac_try;;
24969esac
24970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971  (eval "$ac_link") 2>conftest.er1
24972  ac_status=$?
24973  grep -v '^ *+' conftest.er1 >conftest.err
24974  rm -f conftest.er1
24975  cat conftest.err >&5
24976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977  (exit $ac_status); } && {
24978	 test -z "$ac_c_werror_flag" ||
24979	 test ! -s conftest.err
24980       } && test -s conftest$ac_exeext &&
24981       $as_test_x conftest$ac_exeext; then
24982  ol_cv_func_pthread_rwlock_destroy=yes
24983else
24984  echo "$as_me: failed program was:" >&5
24985sed 's/^/| /' conftest.$ac_ext >&5
24986
24987	ol_cv_func_pthread_rwlock_destroy=no
24988fi
24989
24990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24991      conftest$ac_exeext conftest.$ac_ext
24992
24993fi
24994{ echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24995echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24996			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24997
24998cat >>confdefs.h <<\_ACEOF
24999#define HAVE_PTHREAD_RWLOCK_DESTROY 1
25000_ACEOF
25001
25002			fi
25003
25004									{ echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25005echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25006if test "${ol_cv_func_pthread_detach+set}" = set; then
25007  echo $ECHO_N "(cached) $ECHO_C" >&6
25008else
25009
25010								cat >conftest.$ac_ext <<_ACEOF
25011/* confdefs.h.  */
25012_ACEOF
25013cat confdefs.h >>conftest.$ac_ext
25014cat >>conftest.$ac_ext <<_ACEOF
25015/* end confdefs.h.  */
25016
25017#include <pthread.h>
25018#ifndef NULL
25019#define NULL (void*)0
25020#endif
25021
25022int
25023main ()
25024{
25025pthread_detach(NULL);
25026  ;
25027  return 0;
25028}
25029_ACEOF
25030rm -f conftest.$ac_objext conftest$ac_exeext
25031if { (ac_try="$ac_link"
25032case "(($ac_try" in
25033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034  *) ac_try_echo=$ac_try;;
25035esac
25036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037  (eval "$ac_link") 2>conftest.er1
25038  ac_status=$?
25039  grep -v '^ *+' conftest.er1 >conftest.err
25040  rm -f conftest.er1
25041  cat conftest.err >&5
25042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043  (exit $ac_status); } && {
25044	 test -z "$ac_c_werror_flag" ||
25045	 test ! -s conftest.err
25046       } && test -s conftest$ac_exeext &&
25047       $as_test_x conftest$ac_exeext; then
25048  ol_cv_func_pthread_detach=yes
25049else
25050  echo "$as_me: failed program was:" >&5
25051sed 's/^/| /' conftest.$ac_ext >&5
25052
25053	ol_cv_func_pthread_detach=no
25054fi
25055
25056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25057      conftest$ac_exeext conftest.$ac_ext
25058
25059fi
25060{ echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25061echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25062
25063			if test $ol_cv_func_pthread_detach = no ; then
25064				{ { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25065echo "$as_me: error: could not locate pthread_detach()" >&2;}
25066   { (exit 1); exit 1; }; }
25067			fi
25068
25069
25070cat >>confdefs.h <<\_ACEOF
25071#define HAVE_PTHREAD_DETACH 1
25072_ACEOF
25073
25074
25075
25076
25077
25078
25079for ac_func in \
25080				pthread_setconcurrency \
25081				pthread_getconcurrency \
25082				thr_setconcurrency \
25083				thr_getconcurrency \
25084
25085do
25086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25087{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25090  echo $ECHO_N "(cached) $ECHO_C" >&6
25091else
25092  cat >conftest.$ac_ext <<_ACEOF
25093/* confdefs.h.  */
25094_ACEOF
25095cat confdefs.h >>conftest.$ac_ext
25096cat >>conftest.$ac_ext <<_ACEOF
25097/* end confdefs.h.  */
25098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25099   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25100#define $ac_func innocuous_$ac_func
25101
25102/* System header to define __stub macros and hopefully few prototypes,
25103    which can conflict with char $ac_func (); below.
25104    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25105    <limits.h> exists even on freestanding compilers.  */
25106
25107#ifdef __STDC__
25108# include <limits.h>
25109#else
25110# include <assert.h>
25111#endif
25112
25113#undef $ac_func
25114
25115/* Override any GCC internal prototype to avoid an error.
25116   Use char because int might match the return type of a GCC
25117   builtin and then its argument prototype would still apply.  */
25118#ifdef __cplusplus
25119extern "C"
25120#endif
25121char $ac_func ();
25122/* The GNU C library defines this for functions which it implements
25123    to always fail with ENOSYS.  Some functions are actually named
25124    something starting with __ and the normal name is an alias.  */
25125#if defined __stub_$ac_func || defined __stub___$ac_func
25126choke me
25127#endif
25128
25129int
25130main ()
25131{
25132return $ac_func ();
25133  ;
25134  return 0;
25135}
25136_ACEOF
25137rm -f conftest.$ac_objext conftest$ac_exeext
25138if { (ac_try="$ac_link"
25139case "(($ac_try" in
25140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141  *) ac_try_echo=$ac_try;;
25142esac
25143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144  (eval "$ac_link") 2>conftest.er1
25145  ac_status=$?
25146  grep -v '^ *+' conftest.er1 >conftest.err
25147  rm -f conftest.er1
25148  cat conftest.err >&5
25149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150  (exit $ac_status); } && {
25151	 test -z "$ac_c_werror_flag" ||
25152	 test ! -s conftest.err
25153       } && test -s conftest$ac_exeext &&
25154       $as_test_x conftest$ac_exeext; then
25155  eval "$as_ac_var=yes"
25156else
25157  echo "$as_me: failed program was:" >&5
25158sed 's/^/| /' conftest.$ac_ext >&5
25159
25160	eval "$as_ac_var=no"
25161fi
25162
25163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25164      conftest$ac_exeext conftest.$ac_ext
25165fi
25166ac_res=`eval echo '${'$as_ac_var'}'`
25167	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25168echo "${ECHO_T}$ac_res" >&6; }
25169if test `eval echo '${'$as_ac_var'}'` = yes; then
25170  cat >>confdefs.h <<_ACEOF
25171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25172_ACEOF
25173
25174fi
25175done
25176
25177
25178
25179
25180for ac_func in pthread_kill_other_threads_np
25181do
25182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25183{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25186  echo $ECHO_N "(cached) $ECHO_C" >&6
25187else
25188  cat >conftest.$ac_ext <<_ACEOF
25189/* confdefs.h.  */
25190_ACEOF
25191cat confdefs.h >>conftest.$ac_ext
25192cat >>conftest.$ac_ext <<_ACEOF
25193/* end confdefs.h.  */
25194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25195   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25196#define $ac_func innocuous_$ac_func
25197
25198/* System header to define __stub macros and hopefully few prototypes,
25199    which can conflict with char $ac_func (); below.
25200    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25201    <limits.h> exists even on freestanding compilers.  */
25202
25203#ifdef __STDC__
25204# include <limits.h>
25205#else
25206# include <assert.h>
25207#endif
25208
25209#undef $ac_func
25210
25211/* Override any GCC internal prototype to avoid an error.
25212   Use char because int might match the return type of a GCC
25213   builtin and then its argument prototype would still apply.  */
25214#ifdef __cplusplus
25215extern "C"
25216#endif
25217char $ac_func ();
25218/* The GNU C library defines this for functions which it implements
25219    to always fail with ENOSYS.  Some functions are actually named
25220    something starting with __ and the normal name is an alias.  */
25221#if defined __stub_$ac_func || defined __stub___$ac_func
25222choke me
25223#endif
25224
25225int
25226main ()
25227{
25228return $ac_func ();
25229  ;
25230  return 0;
25231}
25232_ACEOF
25233rm -f conftest.$ac_objext conftest$ac_exeext
25234if { (ac_try="$ac_link"
25235case "(($ac_try" in
25236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237  *) ac_try_echo=$ac_try;;
25238esac
25239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240  (eval "$ac_link") 2>conftest.er1
25241  ac_status=$?
25242  grep -v '^ *+' conftest.er1 >conftest.err
25243  rm -f conftest.er1
25244  cat conftest.err >&5
25245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246  (exit $ac_status); } && {
25247	 test -z "$ac_c_werror_flag" ||
25248	 test ! -s conftest.err
25249       } && test -s conftest$ac_exeext &&
25250       $as_test_x conftest$ac_exeext; then
25251  eval "$as_ac_var=yes"
25252else
25253  echo "$as_me: failed program was:" >&5
25254sed 's/^/| /' conftest.$ac_ext >&5
25255
25256	eval "$as_ac_var=no"
25257fi
25258
25259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25260      conftest$ac_exeext conftest.$ac_ext
25261fi
25262ac_res=`eval echo '${'$as_ac_var'}'`
25263	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25264echo "${ECHO_T}$ac_res" >&6; }
25265if test `eval echo '${'$as_ac_var'}'` = yes; then
25266  cat >>confdefs.h <<_ACEOF
25267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25268_ACEOF
25269
25270fi
25271done
25272
25273	{ echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25274echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25275if test "${ol_cv_sys_linux_threads+set}" = set; then
25276  echo $ECHO_N "(cached) $ECHO_C" >&6
25277else
25278  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25279fi
25280{ echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25281echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25282
25283
25284
25285
25286	{ echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25287echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25288if test "${ol_cv_linux_threads+set}" = set; then
25289  echo $ECHO_N "(cached) $ECHO_C" >&6
25290else
25291
25292		if test $ol_cv_header_linux_threads = yes &&
25293		   test $ol_cv_sys_linux_threads = yes; then
25294			ol_cv_linux_threads=yes
25295		elif test $ol_cv_header_linux_threads = no &&
25296		     test $ol_cv_sys_linux_threads = no; then
25297			ol_cv_linux_threads=no
25298		else
25299			ol_cv_linux_threads=error
25300		fi
25301
25302fi
25303{ echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25304echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25305
25306
25307			if test $ol_cv_linux_threads = error; then
25308				{ { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25309echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25310   { (exit 1); exit 1; }; };
25311			fi
25312
25313			{ echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25314echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25315if test "${ol_cv_pthread_create_works+set}" = set; then
25316  echo $ECHO_N "(cached) $ECHO_C" >&6
25317else
25318
25319			if test "$cross_compiling" = yes; then
25320  				ol_cv_pthread_create_works=yes
25321else
25322  cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h.  */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h.  */
25328
25329/* pthread test headers */
25330#include <pthread.h>
25331#if HAVE_PTHREADS < 7
25332#include <errno.h>
25333#endif
25334#ifndef NULL
25335#define NULL (void*)0
25336#endif
25337
25338static void *task(p)
25339	void *p;
25340{
25341	return (void *) (p == NULL);
25342}
25343
25344
25345int main(argc, argv)
25346	int argc;
25347	char **argv;
25348{
25349
25350	/* pthread test function */
25351#ifndef PTHREAD_CREATE_DETACHED
25352#define	PTHREAD_CREATE_DETACHED	1
25353#endif
25354	pthread_t t;
25355	int status;
25356	int detach = PTHREAD_CREATE_DETACHED;
25357
25358#if HAVE_PTHREADS > 4
25359	/* Final pthreads */
25360	pthread_attr_t attr;
25361
25362	status = pthread_attr_init(&attr);
25363	if( status ) return status;
25364
25365#if HAVE_PTHREADS < 7
25366	status = pthread_attr_setdetachstate(&attr, &detach);
25367	if( status < 0 ) status = errno;
25368#else
25369	status = pthread_attr_setdetachstate(&attr, detach);
25370#endif
25371	if( status ) return status;
25372	status = pthread_create( &t, &attr, task, NULL );
25373#if HAVE_PTHREADS < 7
25374	if( status < 0 ) status = errno;
25375#endif
25376	if( status ) return status;
25377#else
25378	/* Draft 4 pthreads */
25379	status = pthread_create( &t, pthread_attr_default, task, NULL );
25380	if( status ) return errno;
25381
25382	/* give thread a chance to complete */
25383	/* it should remain joinable and hence detachable */
25384	sleep( 1 );
25385
25386	status = pthread_detach( &t );
25387	if( status ) return errno;
25388#endif
25389
25390#ifdef HAVE_LINUX_THREADS
25391	pthread_kill_other_threads_np();
25392#endif
25393
25394	return 0;
25395
25396}
25397
25398_ACEOF
25399rm -f conftest$ac_exeext
25400if { (ac_try="$ac_link"
25401case "(($ac_try" in
25402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403  *) ac_try_echo=$ac_try;;
25404esac
25405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406  (eval "$ac_link") 2>&5
25407  ac_status=$?
25408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25410  { (case "(($ac_try" in
25411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412  *) ac_try_echo=$ac_try;;
25413esac
25414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25415  (eval "$ac_try") 2>&5
25416  ac_status=$?
25417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418  (exit $ac_status); }; }; then
25419  ol_cv_pthread_create_works=yes
25420else
25421  echo "$as_me: program exited with status $ac_status" >&5
25422echo "$as_me: failed program was:" >&5
25423sed 's/^/| /' conftest.$ac_ext >&5
25424
25425( exit $ac_status )
25426ol_cv_pthread_create_works=no
25427fi
25428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25429fi
25430
25431
25432fi
25433{ echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25434echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25435
25436			if test $ol_cv_pthread_create_works = no ; then
25437				{ { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25438echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25439   { (exit 1); exit 1; }; }
25440			fi
25441
25442			ol_replace_broken_yield=no
25443
25444			if test $ol_replace_broken_yield = yes ; then
25445
25446cat >>confdefs.h <<\_ACEOF
25447#define REPLACE_BROKEN_YIELD 1
25448_ACEOF
25449
25450			fi
25451
25452						if test $ol_with_yielding_select = auto ; then
25453				{ echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25454echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25455if test "${ol_cv_pthread_select_yields+set}" = set; then
25456  echo $ECHO_N "(cached) $ECHO_C" >&6
25457else
25458
25459				if test "$cross_compiling" = yes; then
25460  ol_cv_pthread_select_yields=cross
25461else
25462  cat >conftest.$ac_ext <<_ACEOF
25463/* confdefs.h.  */
25464_ACEOF
25465cat confdefs.h >>conftest.$ac_ext
25466cat >>conftest.$ac_ext <<_ACEOF
25467/* end confdefs.h.  */
25468
25469#include <sys/types.h>
25470#include <sys/time.h>
25471#include <unistd.h>
25472#include <pthread.h>
25473#ifndef NULL
25474#define NULL (void*) 0
25475#endif
25476
25477static int fildes[2];
25478
25479static void *task(p)
25480	void *p;
25481{
25482	int i;
25483	struct timeval tv;
25484
25485	fd_set rfds;
25486
25487	tv.tv_sec=10;
25488	tv.tv_usec=0;
25489
25490	FD_ZERO(&rfds);
25491	FD_SET(fildes[0], &rfds);
25492
25493	/* we're not interested in any fds */
25494	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25495
25496	if(i < 0) {
25497		perror("select");
25498		exit(10);
25499	}
25500
25501	exit(0); /* if we exit here, the select blocked the whole process */
25502}
25503
25504int main(argc, argv)
25505	int argc;
25506	char **argv;
25507{
25508	pthread_t t;
25509
25510	/* create a pipe to select */
25511	if(pipe(&fildes[0])) {
25512		perror("select");
25513		exit(1);
25514	}
25515
25516#ifdef HAVE_PTHREAD_SETCONCURRENCY
25517	(void) pthread_setconcurrency(2);
25518#else
25519#ifdef HAVE_THR_SETCONCURRENCY
25520	/* Set Solaris LWP concurrency to 2 */
25521	thr_setconcurrency(2);
25522#endif
25523#endif
25524
25525#if HAVE_PTHREADS < 6
25526	pthread_create(&t, pthread_attr_default, task, NULL);
25527#else
25528	pthread_create(&t, NULL, task, NULL);
25529#endif
25530
25531	/* make sure task runs first */
25532#ifdef HAVE_THR_YIELD
25533	thr_yield();
25534#elif defined( HAVE_SCHED_YIELD )
25535	sched_yield();
25536#elif defined( HAVE_PTHREAD_YIELD )
25537	pthread_yield();
25538#endif
25539
25540	exit(2);
25541}
25542_ACEOF
25543rm -f conftest$ac_exeext
25544if { (ac_try="$ac_link"
25545case "(($ac_try" in
25546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547  *) ac_try_echo=$ac_try;;
25548esac
25549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550  (eval "$ac_link") 2>&5
25551  ac_status=$?
25552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25554  { (case "(($ac_try" in
25555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556  *) ac_try_echo=$ac_try;;
25557esac
25558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559  (eval "$ac_try") 2>&5
25560  ac_status=$?
25561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562  (exit $ac_status); }; }; then
25563  ol_cv_pthread_select_yields=no
25564else
25565  echo "$as_me: program exited with status $ac_status" >&5
25566echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569( exit $ac_status )
25570ol_cv_pthread_select_yields=yes
25571fi
25572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25573fi
25574
25575
25576fi
25577{ echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25578echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25579
25580				if test $ol_cv_pthread_select_yields = cross ; then
25581					{ { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25582echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25583   { (exit 1); exit 1; }; }
25584				fi
25585
25586				if test $ol_cv_pthread_select_yields = yes ; then
25587					ol_with_yielding_select=yes
25588				fi
25589			fi
25590
25591						CPPFLAGS="$save_CPPFLAGS"
25592			LIBS="$save_LIBS"
25593		else
25594			{ { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25595echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25596   { (exit 1); exit 1; }; }
25597		fi
25598	fi
25599
25600	if test $ol_with_threads = posix ; then
25601		{ { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25602echo "$as_me: error: could not locate POSIX Threads" >&2;}
25603   { (exit 1); exit 1; }; }
25604	fi
25605	;;
25606esac
25607
25608case $ol_with_threads in auto | yes | mach)
25609
25610
25611
25612for ac_header in mach/cthreads.h cthreads.h
25613do
25614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25616  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25619  echo $ECHO_N "(cached) $ECHO_C" >&6
25620fi
25621ac_res=`eval echo '${'$as_ac_Header'}'`
25622	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25623echo "${ECHO_T}$ac_res" >&6; }
25624else
25625  # Is the header compilable?
25626{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25628cat >conftest.$ac_ext <<_ACEOF
25629/* confdefs.h.  */
25630_ACEOF
25631cat confdefs.h >>conftest.$ac_ext
25632cat >>conftest.$ac_ext <<_ACEOF
25633/* end confdefs.h.  */
25634$ac_includes_default
25635#include <$ac_header>
25636_ACEOF
25637rm -f conftest.$ac_objext
25638if { (ac_try="$ac_compile"
25639case "(($ac_try" in
25640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641  *) ac_try_echo=$ac_try;;
25642esac
25643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644  (eval "$ac_compile") 2>conftest.er1
25645  ac_status=$?
25646  grep -v '^ *+' conftest.er1 >conftest.err
25647  rm -f conftest.er1
25648  cat conftest.err >&5
25649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650  (exit $ac_status); } && {
25651	 test -z "$ac_c_werror_flag" ||
25652	 test ! -s conftest.err
25653       } && test -s conftest.$ac_objext; then
25654  ac_header_compiler=yes
25655else
25656  echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659	ac_header_compiler=no
25660fi
25661
25662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25664echo "${ECHO_T}$ac_header_compiler" >&6; }
25665
25666# Is the header present?
25667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25669cat >conftest.$ac_ext <<_ACEOF
25670/* confdefs.h.  */
25671_ACEOF
25672cat confdefs.h >>conftest.$ac_ext
25673cat >>conftest.$ac_ext <<_ACEOF
25674/* end confdefs.h.  */
25675#include <$ac_header>
25676_ACEOF
25677if { (ac_try="$ac_cpp conftest.$ac_ext"
25678case "(($ac_try" in
25679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680  *) ac_try_echo=$ac_try;;
25681esac
25682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25684  ac_status=$?
25685  grep -v '^ *+' conftest.er1 >conftest.err
25686  rm -f conftest.er1
25687  cat conftest.err >&5
25688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689  (exit $ac_status); } >/dev/null && {
25690	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25691	 test ! -s conftest.err
25692       }; then
25693  ac_header_preproc=yes
25694else
25695  echo "$as_me: failed program was:" >&5
25696sed 's/^/| /' conftest.$ac_ext >&5
25697
25698  ac_header_preproc=no
25699fi
25700
25701rm -f conftest.err conftest.$ac_ext
25702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25703echo "${ECHO_T}$ac_header_preproc" >&6; }
25704
25705# So?  What about this header?
25706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25707  yes:no: )
25708    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25710    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25712    ac_header_preproc=yes
25713    ;;
25714  no:yes:* )
25715    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25717    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25718echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25719    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25721    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25722echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25723    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25725    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25727    ( cat <<\_ASBOX
25728## --------------------------------------------- ##
25729## Report this to <http://www.openldap.org/its/> ##
25730## --------------------------------------------- ##
25731_ASBOX
25732     ) | sed "s/^/$as_me: WARNING:     /" >&2
25733    ;;
25734esac
25735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25738  echo $ECHO_N "(cached) $ECHO_C" >&6
25739else
25740  eval "$as_ac_Header=\$ac_header_preproc"
25741fi
25742ac_res=`eval echo '${'$as_ac_Header'}'`
25743	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25744echo "${ECHO_T}$ac_res" >&6; }
25745
25746fi
25747if test `eval echo '${'$as_ac_Header'}'` = yes; then
25748  cat >>confdefs.h <<_ACEOF
25749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25750_ACEOF
25751
25752fi
25753
25754done
25755
25756	if test $ac_cv_header_mach_cthreads_h = yes ; then
25757		ol_with_threads=found
25758
25759				{ echo "$as_me:$LINENO: checking for cthread_fork" >&5
25760echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25761if test "${ac_cv_func_cthread_fork+set}" = set; then
25762  echo $ECHO_N "(cached) $ECHO_C" >&6
25763else
25764  cat >conftest.$ac_ext <<_ACEOF
25765/* confdefs.h.  */
25766_ACEOF
25767cat confdefs.h >>conftest.$ac_ext
25768cat >>conftest.$ac_ext <<_ACEOF
25769/* end confdefs.h.  */
25770/* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25772#define cthread_fork innocuous_cthread_fork
25773
25774/* System header to define __stub macros and hopefully few prototypes,
25775    which can conflict with char cthread_fork (); below.
25776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25777    <limits.h> exists even on freestanding compilers.  */
25778
25779#ifdef __STDC__
25780# include <limits.h>
25781#else
25782# include <assert.h>
25783#endif
25784
25785#undef cthread_fork
25786
25787/* Override any GCC internal prototype to avoid an error.
25788   Use char because int might match the return type of a GCC
25789   builtin and then its argument prototype would still apply.  */
25790#ifdef __cplusplus
25791extern "C"
25792#endif
25793char cthread_fork ();
25794/* The GNU C library defines this for functions which it implements
25795    to always fail with ENOSYS.  Some functions are actually named
25796    something starting with __ and the normal name is an alias.  */
25797#if defined __stub_cthread_fork || defined __stub___cthread_fork
25798choke me
25799#endif
25800
25801int
25802main ()
25803{
25804return cthread_fork ();
25805  ;
25806  return 0;
25807}
25808_ACEOF
25809rm -f conftest.$ac_objext conftest$ac_exeext
25810if { (ac_try="$ac_link"
25811case "(($ac_try" in
25812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813  *) ac_try_echo=$ac_try;;
25814esac
25815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816  (eval "$ac_link") 2>conftest.er1
25817  ac_status=$?
25818  grep -v '^ *+' conftest.er1 >conftest.err
25819  rm -f conftest.er1
25820  cat conftest.err >&5
25821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822  (exit $ac_status); } && {
25823	 test -z "$ac_c_werror_flag" ||
25824	 test ! -s conftest.err
25825       } && test -s conftest$ac_exeext &&
25826       $as_test_x conftest$ac_exeext; then
25827  ac_cv_func_cthread_fork=yes
25828else
25829  echo "$as_me: failed program was:" >&5
25830sed 's/^/| /' conftest.$ac_ext >&5
25831
25832	ac_cv_func_cthread_fork=no
25833fi
25834
25835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25836      conftest$ac_exeext conftest.$ac_ext
25837fi
25838{ echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25839echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25840if test $ac_cv_func_cthread_fork = yes; then
25841  ol_link_threads=yes
25842fi
25843
25844
25845		if test $ol_link_threads = no ; then
25846									{ echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25847echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25848if test "${ol_cv_cthread_all_load+set}" = set; then
25849  echo $ECHO_N "(cached) $ECHO_C" >&6
25850else
25851
25852								save_LIBS="$LIBS"
25853				LIBS="-all_load $LIBS"
25854				cat >conftest.$ac_ext <<_ACEOF
25855/* confdefs.h.  */
25856_ACEOF
25857cat confdefs.h >>conftest.$ac_ext
25858cat >>conftest.$ac_ext <<_ACEOF
25859/* end confdefs.h.  */
25860#include <mach/cthreads.h>
25861int
25862main ()
25863{
25864
25865					cthread_fork((void *)0, (void *)0);
25866
25867  ;
25868  return 0;
25869}
25870_ACEOF
25871rm -f conftest.$ac_objext conftest$ac_exeext
25872if { (ac_try="$ac_link"
25873case "(($ac_try" in
25874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875  *) ac_try_echo=$ac_try;;
25876esac
25877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878  (eval "$ac_link") 2>conftest.er1
25879  ac_status=$?
25880  grep -v '^ *+' conftest.er1 >conftest.err
25881  rm -f conftest.er1
25882  cat conftest.err >&5
25883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884  (exit $ac_status); } && {
25885	 test -z "$ac_c_werror_flag" ||
25886	 test ! -s conftest.err
25887       } && test -s conftest$ac_exeext &&
25888       $as_test_x conftest$ac_exeext; then
25889  ol_cv_cthread_all_load=yes
25890else
25891  echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
25894	ol_cv_cthread_all_load=no
25895fi
25896
25897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25898      conftest$ac_exeext conftest.$ac_ext
25899								LIBS="$save_LIBS"
25900
25901fi
25902{ echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25903echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25904
25905			if test $ol_cv_cthread_all_load = yes ; then
25906				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25907				ol_link_threads=mach
25908				ol_with_threads=found
25909			fi
25910		fi
25911
25912	elif test $ac_cv_header_cthreads_h = yes ; then
25913
25914		ol_with_threads=found
25915
25916				save_LIBS="$LIBS"
25917		LIBS="$LIBS -lthreads"
25918		{ echo "$as_me:$LINENO: checking for cthread_fork" >&5
25919echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25920if test "${ac_cv_func_cthread_fork+set}" = set; then
25921  echo $ECHO_N "(cached) $ECHO_C" >&6
25922else
25923  cat >conftest.$ac_ext <<_ACEOF
25924/* confdefs.h.  */
25925_ACEOF
25926cat confdefs.h >>conftest.$ac_ext
25927cat >>conftest.$ac_ext <<_ACEOF
25928/* end confdefs.h.  */
25929/* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25930   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25931#define cthread_fork innocuous_cthread_fork
25932
25933/* System header to define __stub macros and hopefully few prototypes,
25934    which can conflict with char cthread_fork (); below.
25935    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25936    <limits.h> exists even on freestanding compilers.  */
25937
25938#ifdef __STDC__
25939# include <limits.h>
25940#else
25941# include <assert.h>
25942#endif
25943
25944#undef cthread_fork
25945
25946/* Override any GCC internal prototype to avoid an error.
25947   Use char because int might match the return type of a GCC
25948   builtin and then its argument prototype would still apply.  */
25949#ifdef __cplusplus
25950extern "C"
25951#endif
25952char cthread_fork ();
25953/* The GNU C library defines this for functions which it implements
25954    to always fail with ENOSYS.  Some functions are actually named
25955    something starting with __ and the normal name is an alias.  */
25956#if defined __stub_cthread_fork || defined __stub___cthread_fork
25957choke me
25958#endif
25959
25960int
25961main ()
25962{
25963return cthread_fork ();
25964  ;
25965  return 0;
25966}
25967_ACEOF
25968rm -f conftest.$ac_objext conftest$ac_exeext
25969if { (ac_try="$ac_link"
25970case "(($ac_try" in
25971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972  *) ac_try_echo=$ac_try;;
25973esac
25974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975  (eval "$ac_link") 2>conftest.er1
25976  ac_status=$?
25977  grep -v '^ *+' conftest.er1 >conftest.err
25978  rm -f conftest.er1
25979  cat conftest.err >&5
25980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981  (exit $ac_status); } && {
25982	 test -z "$ac_c_werror_flag" ||
25983	 test ! -s conftest.err
25984       } && test -s conftest$ac_exeext &&
25985       $as_test_x conftest$ac_exeext; then
25986  ac_cv_func_cthread_fork=yes
25987else
25988  echo "$as_me: failed program was:" >&5
25989sed 's/^/| /' conftest.$ac_ext >&5
25990
25991	ac_cv_func_cthread_fork=no
25992fi
25993
25994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25995      conftest$ac_exeext conftest.$ac_ext
25996fi
25997{ echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25998echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25999if test $ac_cv_func_cthread_fork = yes; then
26000  ol_link_threads=yes
26001fi
26002
26003		LIBS="$save_LIBS"
26004
26005		if test $ol_link_threads = yes ; then
26006			LTHREAD_LIBS="-lthreads"
26007			ol_link_threads=mach
26008			ol_with_threads=found
26009		else
26010			{ { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26011echo "$as_me: error: could not link with Mach CThreads" >&2;}
26012   { (exit 1); exit 1; }; }
26013		fi
26014
26015	elif test $ol_with_threads = mach ; then
26016		{ { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26017echo "$as_me: error: could not locate Mach CThreads" >&2;}
26018   { (exit 1); exit 1; }; }
26019	fi
26020
26021	if test $ol_link_threads = mach ; then
26022
26023cat >>confdefs.h <<\_ACEOF
26024#define HAVE_MACH_CTHREADS 1
26025_ACEOF
26026
26027	elif test $ol_with_threads = found ; then
26028		{ { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26029echo "$as_me: error: could not link with Mach CThreads" >&2;}
26030   { (exit 1); exit 1; }; }
26031	fi
26032	;;
26033esac
26034
26035case $ol_with_threads in auto | yes | pth)
26036
26037
26038for ac_header in pth.h
26039do
26040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26042  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26045  echo $ECHO_N "(cached) $ECHO_C" >&6
26046fi
26047ac_res=`eval echo '${'$as_ac_Header'}'`
26048	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26049echo "${ECHO_T}$ac_res" >&6; }
26050else
26051  # Is the header compilable?
26052{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26054cat >conftest.$ac_ext <<_ACEOF
26055/* confdefs.h.  */
26056_ACEOF
26057cat confdefs.h >>conftest.$ac_ext
26058cat >>conftest.$ac_ext <<_ACEOF
26059/* end confdefs.h.  */
26060$ac_includes_default
26061#include <$ac_header>
26062_ACEOF
26063rm -f conftest.$ac_objext
26064if { (ac_try="$ac_compile"
26065case "(($ac_try" in
26066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067  *) ac_try_echo=$ac_try;;
26068esac
26069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070  (eval "$ac_compile") 2>conftest.er1
26071  ac_status=$?
26072  grep -v '^ *+' conftest.er1 >conftest.err
26073  rm -f conftest.er1
26074  cat conftest.err >&5
26075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076  (exit $ac_status); } && {
26077	 test -z "$ac_c_werror_flag" ||
26078	 test ! -s conftest.err
26079       } && test -s conftest.$ac_objext; then
26080  ac_header_compiler=yes
26081else
26082  echo "$as_me: failed program was:" >&5
26083sed 's/^/| /' conftest.$ac_ext >&5
26084
26085	ac_header_compiler=no
26086fi
26087
26088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26089{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26090echo "${ECHO_T}$ac_header_compiler" >&6; }
26091
26092# Is the header present?
26093{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26095cat >conftest.$ac_ext <<_ACEOF
26096/* confdefs.h.  */
26097_ACEOF
26098cat confdefs.h >>conftest.$ac_ext
26099cat >>conftest.$ac_ext <<_ACEOF
26100/* end confdefs.h.  */
26101#include <$ac_header>
26102_ACEOF
26103if { (ac_try="$ac_cpp conftest.$ac_ext"
26104case "(($ac_try" in
26105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106  *) ac_try_echo=$ac_try;;
26107esac
26108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26110  ac_status=$?
26111  grep -v '^ *+' conftest.er1 >conftest.err
26112  rm -f conftest.er1
26113  cat conftest.err >&5
26114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115  (exit $ac_status); } >/dev/null && {
26116	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26117	 test ! -s conftest.err
26118       }; then
26119  ac_header_preproc=yes
26120else
26121  echo "$as_me: failed program was:" >&5
26122sed 's/^/| /' conftest.$ac_ext >&5
26123
26124  ac_header_preproc=no
26125fi
26126
26127rm -f conftest.err conftest.$ac_ext
26128{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26129echo "${ECHO_T}$ac_header_preproc" >&6; }
26130
26131# So?  What about this header?
26132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26133  yes:no: )
26134    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26136    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26138    ac_header_preproc=yes
26139    ;;
26140  no:yes:* )
26141    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26143    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26144echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26145    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26147    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26148echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26149    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26151    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26153    ( cat <<\_ASBOX
26154## --------------------------------------------- ##
26155## Report this to <http://www.openldap.org/its/> ##
26156## --------------------------------------------- ##
26157_ASBOX
26158     ) | sed "s/^/$as_me: WARNING:     /" >&2
26159    ;;
26160esac
26161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26164  echo $ECHO_N "(cached) $ECHO_C" >&6
26165else
26166  eval "$as_ac_Header=\$ac_header_preproc"
26167fi
26168ac_res=`eval echo '${'$as_ac_Header'}'`
26169	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26170echo "${ECHO_T}$ac_res" >&6; }
26171
26172fi
26173if test `eval echo '${'$as_ac_Header'}'` = yes; then
26174  cat >>confdefs.h <<_ACEOF
26175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26176_ACEOF
26177
26178fi
26179
26180done
26181
26182
26183	if test $ac_cv_header_pth_h = yes ; then
26184		{ echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26185echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26186if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26187  echo $ECHO_N "(cached) $ECHO_C" >&6
26188else
26189  ac_check_lib_save_LIBS=$LIBS
26190LIBS="-lpth  $LIBS"
26191cat >conftest.$ac_ext <<_ACEOF
26192/* confdefs.h.  */
26193_ACEOF
26194cat confdefs.h >>conftest.$ac_ext
26195cat >>conftest.$ac_ext <<_ACEOF
26196/* end confdefs.h.  */
26197
26198/* Override any GCC internal prototype to avoid an error.
26199   Use char because int might match the return type of a GCC
26200   builtin and then its argument prototype would still apply.  */
26201#ifdef __cplusplus
26202extern "C"
26203#endif
26204char pth_version ();
26205int
26206main ()
26207{
26208return pth_version ();
26209  ;
26210  return 0;
26211}
26212_ACEOF
26213rm -f conftest.$ac_objext conftest$ac_exeext
26214if { (ac_try="$ac_link"
26215case "(($ac_try" in
26216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217  *) ac_try_echo=$ac_try;;
26218esac
26219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220  (eval "$ac_link") 2>conftest.er1
26221  ac_status=$?
26222  grep -v '^ *+' conftest.er1 >conftest.err
26223  rm -f conftest.er1
26224  cat conftest.err >&5
26225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226  (exit $ac_status); } && {
26227	 test -z "$ac_c_werror_flag" ||
26228	 test ! -s conftest.err
26229       } && test -s conftest$ac_exeext &&
26230       $as_test_x conftest$ac_exeext; then
26231  ac_cv_lib_pth_pth_version=yes
26232else
26233  echo "$as_me: failed program was:" >&5
26234sed 's/^/| /' conftest.$ac_ext >&5
26235
26236	ac_cv_lib_pth_pth_version=no
26237fi
26238
26239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26240      conftest$ac_exeext conftest.$ac_ext
26241LIBS=$ac_check_lib_save_LIBS
26242fi
26243{ echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26244echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26245if test $ac_cv_lib_pth_pth_version = yes; then
26246  have_pth=yes
26247else
26248  have_pth=no
26249fi
26250
26251
26252		if test $have_pth = yes ; then
26253
26254cat >>confdefs.h <<\_ACEOF
26255#define HAVE_GNU_PTH 1
26256_ACEOF
26257
26258			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26259			ol_link_threads=pth
26260			ol_with_threads=found
26261
26262			if test $ol_with_yielding_select = auto ; then
26263				ol_with_yielding_select=yes
26264			fi
26265		fi
26266	fi
26267	;;
26268esac
26269
26270case $ol_with_threads in auto | yes | lwp)
26271
26272
26273
26274for ac_header in thread.h synch.h
26275do
26276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26278  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26281  echo $ECHO_N "(cached) $ECHO_C" >&6
26282fi
26283ac_res=`eval echo '${'$as_ac_Header'}'`
26284	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26285echo "${ECHO_T}$ac_res" >&6; }
26286else
26287  # Is the header compilable?
26288{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26290cat >conftest.$ac_ext <<_ACEOF
26291/* confdefs.h.  */
26292_ACEOF
26293cat confdefs.h >>conftest.$ac_ext
26294cat >>conftest.$ac_ext <<_ACEOF
26295/* end confdefs.h.  */
26296$ac_includes_default
26297#include <$ac_header>
26298_ACEOF
26299rm -f conftest.$ac_objext
26300if { (ac_try="$ac_compile"
26301case "(($ac_try" in
26302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303  *) ac_try_echo=$ac_try;;
26304esac
26305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306  (eval "$ac_compile") 2>conftest.er1
26307  ac_status=$?
26308  grep -v '^ *+' conftest.er1 >conftest.err
26309  rm -f conftest.er1
26310  cat conftest.err >&5
26311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312  (exit $ac_status); } && {
26313	 test -z "$ac_c_werror_flag" ||
26314	 test ! -s conftest.err
26315       } && test -s conftest.$ac_objext; then
26316  ac_header_compiler=yes
26317else
26318  echo "$as_me: failed program was:" >&5
26319sed 's/^/| /' conftest.$ac_ext >&5
26320
26321	ac_header_compiler=no
26322fi
26323
26324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26325{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26326echo "${ECHO_T}$ac_header_compiler" >&6; }
26327
26328# Is the header present?
26329{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26331cat >conftest.$ac_ext <<_ACEOF
26332/* confdefs.h.  */
26333_ACEOF
26334cat confdefs.h >>conftest.$ac_ext
26335cat >>conftest.$ac_ext <<_ACEOF
26336/* end confdefs.h.  */
26337#include <$ac_header>
26338_ACEOF
26339if { (ac_try="$ac_cpp conftest.$ac_ext"
26340case "(($ac_try" in
26341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342  *) ac_try_echo=$ac_try;;
26343esac
26344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26346  ac_status=$?
26347  grep -v '^ *+' conftest.er1 >conftest.err
26348  rm -f conftest.er1
26349  cat conftest.err >&5
26350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351  (exit $ac_status); } >/dev/null && {
26352	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26353	 test ! -s conftest.err
26354       }; then
26355  ac_header_preproc=yes
26356else
26357  echo "$as_me: failed program was:" >&5
26358sed 's/^/| /' conftest.$ac_ext >&5
26359
26360  ac_header_preproc=no
26361fi
26362
26363rm -f conftest.err conftest.$ac_ext
26364{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26365echo "${ECHO_T}$ac_header_preproc" >&6; }
26366
26367# So?  What about this header?
26368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26369  yes:no: )
26370    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26373echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26374    ac_header_preproc=yes
26375    ;;
26376  no:yes:* )
26377    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26379    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26380echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26381    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26382echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26383    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26384echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26385    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26386echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26387    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26388echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26389    ( cat <<\_ASBOX
26390## --------------------------------------------- ##
26391## Report this to <http://www.openldap.org/its/> ##
26392## --------------------------------------------- ##
26393_ASBOX
26394     ) | sed "s/^/$as_me: WARNING:     /" >&2
26395    ;;
26396esac
26397{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26400  echo $ECHO_N "(cached) $ECHO_C" >&6
26401else
26402  eval "$as_ac_Header=\$ac_header_preproc"
26403fi
26404ac_res=`eval echo '${'$as_ac_Header'}'`
26405	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26406echo "${ECHO_T}$ac_res" >&6; }
26407
26408fi
26409if test `eval echo '${'$as_ac_Header'}'` = yes; then
26410  cat >>confdefs.h <<_ACEOF
26411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26412_ACEOF
26413
26414fi
26415
26416done
26417
26418	if test $ac_cv_header_thread_h = yes &&
26419	   test $ac_cv_header_synch_h = yes ; then
26420		{ echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26421echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26422if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26423  echo $ECHO_N "(cached) $ECHO_C" >&6
26424else
26425  ac_check_lib_save_LIBS=$LIBS
26426LIBS="-lthread  $LIBS"
26427cat >conftest.$ac_ext <<_ACEOF
26428/* confdefs.h.  */
26429_ACEOF
26430cat confdefs.h >>conftest.$ac_ext
26431cat >>conftest.$ac_ext <<_ACEOF
26432/* end confdefs.h.  */
26433
26434/* Override any GCC internal prototype to avoid an error.
26435   Use char because int might match the return type of a GCC
26436   builtin and then its argument prototype would still apply.  */
26437#ifdef __cplusplus
26438extern "C"
26439#endif
26440char thr_create ();
26441int
26442main ()
26443{
26444return thr_create ();
26445  ;
26446  return 0;
26447}
26448_ACEOF
26449rm -f conftest.$ac_objext conftest$ac_exeext
26450if { (ac_try="$ac_link"
26451case "(($ac_try" in
26452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453  *) ac_try_echo=$ac_try;;
26454esac
26455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26456  (eval "$ac_link") 2>conftest.er1
26457  ac_status=$?
26458  grep -v '^ *+' conftest.er1 >conftest.err
26459  rm -f conftest.er1
26460  cat conftest.err >&5
26461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462  (exit $ac_status); } && {
26463	 test -z "$ac_c_werror_flag" ||
26464	 test ! -s conftest.err
26465       } && test -s conftest$ac_exeext &&
26466       $as_test_x conftest$ac_exeext; then
26467  ac_cv_lib_thread_thr_create=yes
26468else
26469  echo "$as_me: failed program was:" >&5
26470sed 's/^/| /' conftest.$ac_ext >&5
26471
26472	ac_cv_lib_thread_thr_create=no
26473fi
26474
26475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26476      conftest$ac_exeext conftest.$ac_ext
26477LIBS=$ac_check_lib_save_LIBS
26478fi
26479{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26480echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26481if test $ac_cv_lib_thread_thr_create = yes; then
26482  have_thr=yes
26483else
26484  have_thr=no
26485fi
26486
26487
26488		if test $have_thr = yes ; then
26489
26490cat >>confdefs.h <<\_ACEOF
26491#define HAVE_THR 1
26492_ACEOF
26493
26494			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26495			ol_link_threads=thr
26496
26497			if test $ol_with_yielding_select = auto ; then
26498				ol_with_yielding_select=yes
26499			fi
26500
26501
26502
26503for ac_func in \
26504				thr_setconcurrency \
26505				thr_getconcurrency \
26506
26507do
26508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26509{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26511if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26512  echo $ECHO_N "(cached) $ECHO_C" >&6
26513else
26514  cat >conftest.$ac_ext <<_ACEOF
26515/* confdefs.h.  */
26516_ACEOF
26517cat confdefs.h >>conftest.$ac_ext
26518cat >>conftest.$ac_ext <<_ACEOF
26519/* end confdefs.h.  */
26520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26521   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26522#define $ac_func innocuous_$ac_func
26523
26524/* System header to define __stub macros and hopefully few prototypes,
26525    which can conflict with char $ac_func (); below.
26526    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26527    <limits.h> exists even on freestanding compilers.  */
26528
26529#ifdef __STDC__
26530# include <limits.h>
26531#else
26532# include <assert.h>
26533#endif
26534
26535#undef $ac_func
26536
26537/* Override any GCC internal prototype to avoid an error.
26538   Use char because int might match the return type of a GCC
26539   builtin and then its argument prototype would still apply.  */
26540#ifdef __cplusplus
26541extern "C"
26542#endif
26543char $ac_func ();
26544/* The GNU C library defines this for functions which it implements
26545    to always fail with ENOSYS.  Some functions are actually named
26546    something starting with __ and the normal name is an alias.  */
26547#if defined __stub_$ac_func || defined __stub___$ac_func
26548choke me
26549#endif
26550
26551int
26552main ()
26553{
26554return $ac_func ();
26555  ;
26556  return 0;
26557}
26558_ACEOF
26559rm -f conftest.$ac_objext conftest$ac_exeext
26560if { (ac_try="$ac_link"
26561case "(($ac_try" in
26562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563  *) ac_try_echo=$ac_try;;
26564esac
26565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566  (eval "$ac_link") 2>conftest.er1
26567  ac_status=$?
26568  grep -v '^ *+' conftest.er1 >conftest.err
26569  rm -f conftest.er1
26570  cat conftest.err >&5
26571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572  (exit $ac_status); } && {
26573	 test -z "$ac_c_werror_flag" ||
26574	 test ! -s conftest.err
26575       } && test -s conftest$ac_exeext &&
26576       $as_test_x conftest$ac_exeext; then
26577  eval "$as_ac_var=yes"
26578else
26579  echo "$as_me: failed program was:" >&5
26580sed 's/^/| /' conftest.$ac_ext >&5
26581
26582	eval "$as_ac_var=no"
26583fi
26584
26585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586      conftest$ac_exeext conftest.$ac_ext
26587fi
26588ac_res=`eval echo '${'$as_ac_var'}'`
26589	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26590echo "${ECHO_T}$ac_res" >&6; }
26591if test `eval echo '${'$as_ac_var'}'` = yes; then
26592  cat >>confdefs.h <<_ACEOF
26593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26594_ACEOF
26595
26596fi
26597done
26598
26599		fi
26600	fi
26601	;;
26602esac
26603
26604if test $ol_with_yielding_select = yes ; then
26605
26606cat >>confdefs.h <<\_ACEOF
26607#define HAVE_YIELDING_SELECT 1
26608_ACEOF
26609
26610fi
26611
26612if test $ol_with_threads = manual ; then
26613		ol_link_threads=yes
26614
26615	{ echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26616echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26617
26618
26619
26620for ac_header in pthread.h sched.h
26621do
26622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26624  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26627  echo $ECHO_N "(cached) $ECHO_C" >&6
26628fi
26629ac_res=`eval echo '${'$as_ac_Header'}'`
26630	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26631echo "${ECHO_T}$ac_res" >&6; }
26632else
26633  # Is the header compilable?
26634{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26635echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26636cat >conftest.$ac_ext <<_ACEOF
26637/* confdefs.h.  */
26638_ACEOF
26639cat confdefs.h >>conftest.$ac_ext
26640cat >>conftest.$ac_ext <<_ACEOF
26641/* end confdefs.h.  */
26642$ac_includes_default
26643#include <$ac_header>
26644_ACEOF
26645rm -f conftest.$ac_objext
26646if { (ac_try="$ac_compile"
26647case "(($ac_try" in
26648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649  *) ac_try_echo=$ac_try;;
26650esac
26651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652  (eval "$ac_compile") 2>conftest.er1
26653  ac_status=$?
26654  grep -v '^ *+' conftest.er1 >conftest.err
26655  rm -f conftest.er1
26656  cat conftest.err >&5
26657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658  (exit $ac_status); } && {
26659	 test -z "$ac_c_werror_flag" ||
26660	 test ! -s conftest.err
26661       } && test -s conftest.$ac_objext; then
26662  ac_header_compiler=yes
26663else
26664  echo "$as_me: failed program was:" >&5
26665sed 's/^/| /' conftest.$ac_ext >&5
26666
26667	ac_header_compiler=no
26668fi
26669
26670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26672echo "${ECHO_T}$ac_header_compiler" >&6; }
26673
26674# Is the header present?
26675{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26677cat >conftest.$ac_ext <<_ACEOF
26678/* confdefs.h.  */
26679_ACEOF
26680cat confdefs.h >>conftest.$ac_ext
26681cat >>conftest.$ac_ext <<_ACEOF
26682/* end confdefs.h.  */
26683#include <$ac_header>
26684_ACEOF
26685if { (ac_try="$ac_cpp conftest.$ac_ext"
26686case "(($ac_try" in
26687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688  *) ac_try_echo=$ac_try;;
26689esac
26690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26692  ac_status=$?
26693  grep -v '^ *+' conftest.er1 >conftest.err
26694  rm -f conftest.er1
26695  cat conftest.err >&5
26696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697  (exit $ac_status); } >/dev/null && {
26698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26699	 test ! -s conftest.err
26700       }; then
26701  ac_header_preproc=yes
26702else
26703  echo "$as_me: failed program was:" >&5
26704sed 's/^/| /' conftest.$ac_ext >&5
26705
26706  ac_header_preproc=no
26707fi
26708
26709rm -f conftest.err conftest.$ac_ext
26710{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26711echo "${ECHO_T}$ac_header_preproc" >&6; }
26712
26713# So?  What about this header?
26714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26715  yes:no: )
26716    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26718    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26720    ac_header_preproc=yes
26721    ;;
26722  no:yes:* )
26723    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26725    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26726echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26727    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26729    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26730echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26733    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26735    ( cat <<\_ASBOX
26736## --------------------------------------------- ##
26737## Report this to <http://www.openldap.org/its/> ##
26738## --------------------------------------------- ##
26739_ASBOX
26740     ) | sed "s/^/$as_me: WARNING:     /" >&2
26741    ;;
26742esac
26743{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26746  echo $ECHO_N "(cached) $ECHO_C" >&6
26747else
26748  eval "$as_ac_Header=\$ac_header_preproc"
26749fi
26750ac_res=`eval echo '${'$as_ac_Header'}'`
26751	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26752echo "${ECHO_T}$ac_res" >&6; }
26753
26754fi
26755if test `eval echo '${'$as_ac_Header'}'` = yes; then
26756  cat >>confdefs.h <<_ACEOF
26757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26758_ACEOF
26759
26760fi
26761
26762done
26763
26764
26765
26766for ac_func in sched_yield pthread_yield
26767do
26768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26772  echo $ECHO_N "(cached) $ECHO_C" >&6
26773else
26774  cat >conftest.$ac_ext <<_ACEOF
26775/* confdefs.h.  */
26776_ACEOF
26777cat confdefs.h >>conftest.$ac_ext
26778cat >>conftest.$ac_ext <<_ACEOF
26779/* end confdefs.h.  */
26780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26782#define $ac_func innocuous_$ac_func
26783
26784/* System header to define __stub macros and hopefully few prototypes,
26785    which can conflict with char $ac_func (); below.
26786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26787    <limits.h> exists even on freestanding compilers.  */
26788
26789#ifdef __STDC__
26790# include <limits.h>
26791#else
26792# include <assert.h>
26793#endif
26794
26795#undef $ac_func
26796
26797/* Override any GCC internal prototype to avoid an error.
26798   Use char because int might match the return type of a GCC
26799   builtin and then its argument prototype would still apply.  */
26800#ifdef __cplusplus
26801extern "C"
26802#endif
26803char $ac_func ();
26804/* The GNU C library defines this for functions which it implements
26805    to always fail with ENOSYS.  Some functions are actually named
26806    something starting with __ and the normal name is an alias.  */
26807#if defined __stub_$ac_func || defined __stub___$ac_func
26808choke me
26809#endif
26810
26811int
26812main ()
26813{
26814return $ac_func ();
26815  ;
26816  return 0;
26817}
26818_ACEOF
26819rm -f conftest.$ac_objext conftest$ac_exeext
26820if { (ac_try="$ac_link"
26821case "(($ac_try" in
26822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823  *) ac_try_echo=$ac_try;;
26824esac
26825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826  (eval "$ac_link") 2>conftest.er1
26827  ac_status=$?
26828  grep -v '^ *+' conftest.er1 >conftest.err
26829  rm -f conftest.er1
26830  cat conftest.err >&5
26831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832  (exit $ac_status); } && {
26833	 test -z "$ac_c_werror_flag" ||
26834	 test ! -s conftest.err
26835       } && test -s conftest$ac_exeext &&
26836       $as_test_x conftest$ac_exeext; then
26837  eval "$as_ac_var=yes"
26838else
26839  echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842	eval "$as_ac_var=no"
26843fi
26844
26845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26846      conftest$ac_exeext conftest.$ac_ext
26847fi
26848ac_res=`eval echo '${'$as_ac_var'}'`
26849	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26850echo "${ECHO_T}$ac_res" >&6; }
26851if test `eval echo '${'$as_ac_var'}'` = yes; then
26852  cat >>confdefs.h <<_ACEOF
26853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26854_ACEOF
26855
26856fi
26857done
26858
26859
26860	{ echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26861echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26862if test "${ol_cv_header_linux_threads+set}" = set; then
26863  echo $ECHO_N "(cached) $ECHO_C" >&6
26864else
26865  cat >conftest.$ac_ext <<_ACEOF
26866/* confdefs.h.  */
26867_ACEOF
26868cat confdefs.h >>conftest.$ac_ext
26869cat >>conftest.$ac_ext <<_ACEOF
26870/* end confdefs.h.  */
26871#include <pthread.h>
26872_ACEOF
26873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26874  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26875  ol_cv_header_linux_threads=yes
26876else
26877  ol_cv_header_linux_threads=no
26878fi
26879rm -f -r conftest*
26880
26881
26882fi
26883{ echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26884echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26885	if test $ol_cv_header_linux_threads = yes; then
26886
26887cat >>confdefs.h <<\_ACEOF
26888#define HAVE_LINUX_THREADS 1
26889_ACEOF
26890
26891	fi
26892
26893
26894
26895for ac_header in mach/cthreads.h
26896do
26897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26899  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26902  echo $ECHO_N "(cached) $ECHO_C" >&6
26903fi
26904ac_res=`eval echo '${'$as_ac_Header'}'`
26905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26906echo "${ECHO_T}$ac_res" >&6; }
26907else
26908  # Is the header compilable?
26909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26911cat >conftest.$ac_ext <<_ACEOF
26912/* confdefs.h.  */
26913_ACEOF
26914cat confdefs.h >>conftest.$ac_ext
26915cat >>conftest.$ac_ext <<_ACEOF
26916/* end confdefs.h.  */
26917$ac_includes_default
26918#include <$ac_header>
26919_ACEOF
26920rm -f conftest.$ac_objext
26921if { (ac_try="$ac_compile"
26922case "(($ac_try" in
26923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924  *) ac_try_echo=$ac_try;;
26925esac
26926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927  (eval "$ac_compile") 2>conftest.er1
26928  ac_status=$?
26929  grep -v '^ *+' conftest.er1 >conftest.err
26930  rm -f conftest.er1
26931  cat conftest.err >&5
26932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933  (exit $ac_status); } && {
26934	 test -z "$ac_c_werror_flag" ||
26935	 test ! -s conftest.err
26936       } && test -s conftest.$ac_objext; then
26937  ac_header_compiler=yes
26938else
26939  echo "$as_me: failed program was:" >&5
26940sed 's/^/| /' conftest.$ac_ext >&5
26941
26942	ac_header_compiler=no
26943fi
26944
26945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26947echo "${ECHO_T}$ac_header_compiler" >&6; }
26948
26949# Is the header present?
26950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26952cat >conftest.$ac_ext <<_ACEOF
26953/* confdefs.h.  */
26954_ACEOF
26955cat confdefs.h >>conftest.$ac_ext
26956cat >>conftest.$ac_ext <<_ACEOF
26957/* end confdefs.h.  */
26958#include <$ac_header>
26959_ACEOF
26960if { (ac_try="$ac_cpp conftest.$ac_ext"
26961case "(($ac_try" in
26962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963  *) ac_try_echo=$ac_try;;
26964esac
26965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26967  ac_status=$?
26968  grep -v '^ *+' conftest.er1 >conftest.err
26969  rm -f conftest.er1
26970  cat conftest.err >&5
26971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972  (exit $ac_status); } >/dev/null && {
26973	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26974	 test ! -s conftest.err
26975       }; then
26976  ac_header_preproc=yes
26977else
26978  echo "$as_me: failed program was:" >&5
26979sed 's/^/| /' conftest.$ac_ext >&5
26980
26981  ac_header_preproc=no
26982fi
26983
26984rm -f conftest.err conftest.$ac_ext
26985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26986echo "${ECHO_T}$ac_header_preproc" >&6; }
26987
26988# So?  What about this header?
26989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26990  yes:no: )
26991    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26993    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26995    ac_header_preproc=yes
26996    ;;
26997  no:yes:* )
26998    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27000    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27001echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27002    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27004    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27005echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27008    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27010    ( cat <<\_ASBOX
27011## --------------------------------------------- ##
27012## Report this to <http://www.openldap.org/its/> ##
27013## --------------------------------------------- ##
27014_ASBOX
27015     ) | sed "s/^/$as_me: WARNING:     /" >&2
27016    ;;
27017esac
27018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27021  echo $ECHO_N "(cached) $ECHO_C" >&6
27022else
27023  eval "$as_ac_Header=\$ac_header_preproc"
27024fi
27025ac_res=`eval echo '${'$as_ac_Header'}'`
27026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27027echo "${ECHO_T}$ac_res" >&6; }
27028
27029fi
27030if test `eval echo '${'$as_ac_Header'}'` = yes; then
27031  cat >>confdefs.h <<_ACEOF
27032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27033_ACEOF
27034
27035fi
27036
27037done
27038
27039
27040
27041for ac_header in thread.h synch.h
27042do
27043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27045  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27048  echo $ECHO_N "(cached) $ECHO_C" >&6
27049fi
27050ac_res=`eval echo '${'$as_ac_Header'}'`
27051	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27052echo "${ECHO_T}$ac_res" >&6; }
27053else
27054  # Is the header compilable?
27055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27057cat >conftest.$ac_ext <<_ACEOF
27058/* confdefs.h.  */
27059_ACEOF
27060cat confdefs.h >>conftest.$ac_ext
27061cat >>conftest.$ac_ext <<_ACEOF
27062/* end confdefs.h.  */
27063$ac_includes_default
27064#include <$ac_header>
27065_ACEOF
27066rm -f conftest.$ac_objext
27067if { (ac_try="$ac_compile"
27068case "(($ac_try" in
27069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070  *) ac_try_echo=$ac_try;;
27071esac
27072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073  (eval "$ac_compile") 2>conftest.er1
27074  ac_status=$?
27075  grep -v '^ *+' conftest.er1 >conftest.err
27076  rm -f conftest.er1
27077  cat conftest.err >&5
27078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079  (exit $ac_status); } && {
27080	 test -z "$ac_c_werror_flag" ||
27081	 test ! -s conftest.err
27082       } && test -s conftest.$ac_objext; then
27083  ac_header_compiler=yes
27084else
27085  echo "$as_me: failed program was:" >&5
27086sed 's/^/| /' conftest.$ac_ext >&5
27087
27088	ac_header_compiler=no
27089fi
27090
27091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27092{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27093echo "${ECHO_T}$ac_header_compiler" >&6; }
27094
27095# Is the header present?
27096{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27098cat >conftest.$ac_ext <<_ACEOF
27099/* confdefs.h.  */
27100_ACEOF
27101cat confdefs.h >>conftest.$ac_ext
27102cat >>conftest.$ac_ext <<_ACEOF
27103/* end confdefs.h.  */
27104#include <$ac_header>
27105_ACEOF
27106if { (ac_try="$ac_cpp conftest.$ac_ext"
27107case "(($ac_try" in
27108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109  *) ac_try_echo=$ac_try;;
27110esac
27111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27113  ac_status=$?
27114  grep -v '^ *+' conftest.er1 >conftest.err
27115  rm -f conftest.er1
27116  cat conftest.err >&5
27117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118  (exit $ac_status); } >/dev/null && {
27119	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27120	 test ! -s conftest.err
27121       }; then
27122  ac_header_preproc=yes
27123else
27124  echo "$as_me: failed program was:" >&5
27125sed 's/^/| /' conftest.$ac_ext >&5
27126
27127  ac_header_preproc=no
27128fi
27129
27130rm -f conftest.err conftest.$ac_ext
27131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27132echo "${ECHO_T}$ac_header_preproc" >&6; }
27133
27134# So?  What about this header?
27135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27136  yes:no: )
27137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27141    ac_header_preproc=yes
27142    ;;
27143  no:yes:* )
27144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27156    ( cat <<\_ASBOX
27157## --------------------------------------------- ##
27158## Report this to <http://www.openldap.org/its/> ##
27159## --------------------------------------------- ##
27160_ASBOX
27161     ) | sed "s/^/$as_me: WARNING:     /" >&2
27162    ;;
27163esac
27164{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27167  echo $ECHO_N "(cached) $ECHO_C" >&6
27168else
27169  eval "$as_ac_Header=\$ac_header_preproc"
27170fi
27171ac_res=`eval echo '${'$as_ac_Header'}'`
27172	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27173echo "${ECHO_T}$ac_res" >&6; }
27174
27175fi
27176if test `eval echo '${'$as_ac_Header'}'` = yes; then
27177  cat >>confdefs.h <<_ACEOF
27178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27179_ACEOF
27180
27181fi
27182
27183done
27184
27185fi
27186
27187if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27188			cat >>confdefs.h <<\_ACEOF
27189#define REENTRANT 1
27190_ACEOF
27191
27192	cat >>confdefs.h <<\_ACEOF
27193#define _REENTRANT 1
27194_ACEOF
27195
27196	cat >>confdefs.h <<\_ACEOF
27197#define THREAD_SAFE 1
27198_ACEOF
27199
27200	cat >>confdefs.h <<\_ACEOF
27201#define _THREAD_SAFE 1
27202_ACEOF
27203
27204	cat >>confdefs.h <<\_ACEOF
27205#define THREADSAFE 1
27206_ACEOF
27207
27208	cat >>confdefs.h <<\_ACEOF
27209#define _THREADSAFE 1
27210_ACEOF
27211
27212	cat >>confdefs.h <<\_ACEOF
27213#define _SGI_MP_SOURCE 1
27214_ACEOF
27215
27216
27217			{ echo "$as_me:$LINENO: checking for thread specific errno" >&5
27218echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27219if test "${ol_cv_errno_thread_specific+set}" = set; then
27220  echo $ECHO_N "(cached) $ECHO_C" >&6
27221else
27222
27223		cat >conftest.$ac_ext <<_ACEOF
27224/* confdefs.h.  */
27225_ACEOF
27226cat confdefs.h >>conftest.$ac_ext
27227cat >>conftest.$ac_ext <<_ACEOF
27228/* end confdefs.h.  */
27229#include <errno.h>
27230int
27231main ()
27232{
27233errno = 0;
27234  ;
27235  return 0;
27236}
27237_ACEOF
27238rm -f conftest.$ac_objext conftest$ac_exeext
27239if { (ac_try="$ac_link"
27240case "(($ac_try" in
27241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242  *) ac_try_echo=$ac_try;;
27243esac
27244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27245  (eval "$ac_link") 2>conftest.er1
27246  ac_status=$?
27247  grep -v '^ *+' conftest.er1 >conftest.err
27248  rm -f conftest.er1
27249  cat conftest.err >&5
27250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251  (exit $ac_status); } && {
27252	 test -z "$ac_c_werror_flag" ||
27253	 test ! -s conftest.err
27254       } && test -s conftest$ac_exeext &&
27255       $as_test_x conftest$ac_exeext; then
27256  ol_cv_errno_thread_specific=yes
27257else
27258  echo "$as_me: failed program was:" >&5
27259sed 's/^/| /' conftest.$ac_ext >&5
27260
27261	ol_cv_errno_thread_specific=no
27262fi
27263
27264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27265      conftest$ac_exeext conftest.$ac_ext
27266
27267fi
27268{ echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27269echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27270
27271			{ echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27272echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27273if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27274  echo $ECHO_N "(cached) $ECHO_C" >&6
27275else
27276
27277		cat >conftest.$ac_ext <<_ACEOF
27278/* confdefs.h.  */
27279_ACEOF
27280cat confdefs.h >>conftest.$ac_ext
27281cat >>conftest.$ac_ext <<_ACEOF
27282/* end confdefs.h.  */
27283#include <netdb.h>
27284int
27285main ()
27286{
27287h_errno = 0;
27288  ;
27289  return 0;
27290}
27291_ACEOF
27292rm -f conftest.$ac_objext conftest$ac_exeext
27293if { (ac_try="$ac_link"
27294case "(($ac_try" in
27295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296  *) ac_try_echo=$ac_try;;
27297esac
27298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299  (eval "$ac_link") 2>conftest.er1
27300  ac_status=$?
27301  grep -v '^ *+' conftest.er1 >conftest.err
27302  rm -f conftest.er1
27303  cat conftest.err >&5
27304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305  (exit $ac_status); } && {
27306	 test -z "$ac_c_werror_flag" ||
27307	 test ! -s conftest.err
27308       } && test -s conftest$ac_exeext &&
27309       $as_test_x conftest$ac_exeext; then
27310  ol_cv_h_errno_thread_specific=yes
27311else
27312  echo "$as_me: failed program was:" >&5
27313sed 's/^/| /' conftest.$ac_ext >&5
27314
27315	ol_cv_h_errno_thread_specific=no
27316fi
27317
27318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27319      conftest$ac_exeext conftest.$ac_ext
27320
27321fi
27322{ echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27323echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27324
27325	if test $ol_cv_errno_thread_specific != yes ||
27326	   test $ol_cv_h_errno_thread_specific != yes ; then
27327		LIBS="$LTHREAD_LIBS $LIBS"
27328		LTHREAD_LIBS=""
27329	fi
27330
27331fi
27332
27333if test $ol_link_threads = no ; then
27334	if test $ol_with_threads = yes ; then
27335		{ { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27336echo "$as_me: error: no suitable thread support" >&2;}
27337   { (exit 1); exit 1; }; }
27338	fi
27339
27340	if test $ol_with_threads = auto ; then
27341		{ echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27342echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27343		ol_with_threads=no
27344	fi
27345
27346
27347cat >>confdefs.h <<\_ACEOF
27348#define NO_THREADS 1
27349_ACEOF
27350
27351	LTHREAD_LIBS=""
27352	BUILD_THREAD=no
27353else
27354	BUILD_THREAD=yes
27355fi
27356
27357if test $ol_link_threads != no ; then
27358
27359cat >>confdefs.h <<\_ACEOF
27360#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27361_ACEOF
27362
27363fi
27364
27365
27366
27367
27368for ac_func in \
27369	ctime_r			\
27370	gethostbyname_r	gethostbyaddr_r \
27371
27372do
27373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27374{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27377  echo $ECHO_N "(cached) $ECHO_C" >&6
27378else
27379  cat >conftest.$ac_ext <<_ACEOF
27380/* confdefs.h.  */
27381_ACEOF
27382cat confdefs.h >>conftest.$ac_ext
27383cat >>conftest.$ac_ext <<_ACEOF
27384/* end confdefs.h.  */
27385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27386   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27387#define $ac_func innocuous_$ac_func
27388
27389/* System header to define __stub macros and hopefully few prototypes,
27390    which can conflict with char $ac_func (); below.
27391    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27392    <limits.h> exists even on freestanding compilers.  */
27393
27394#ifdef __STDC__
27395# include <limits.h>
27396#else
27397# include <assert.h>
27398#endif
27399
27400#undef $ac_func
27401
27402/* Override any GCC internal prototype to avoid an error.
27403   Use char because int might match the return type of a GCC
27404   builtin and then its argument prototype would still apply.  */
27405#ifdef __cplusplus
27406extern "C"
27407#endif
27408char $ac_func ();
27409/* The GNU C library defines this for functions which it implements
27410    to always fail with ENOSYS.  Some functions are actually named
27411    something starting with __ and the normal name is an alias.  */
27412#if defined __stub_$ac_func || defined __stub___$ac_func
27413choke me
27414#endif
27415
27416int
27417main ()
27418{
27419return $ac_func ();
27420  ;
27421  return 0;
27422}
27423_ACEOF
27424rm -f conftest.$ac_objext conftest$ac_exeext
27425if { (ac_try="$ac_link"
27426case "(($ac_try" in
27427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428  *) ac_try_echo=$ac_try;;
27429esac
27430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431  (eval "$ac_link") 2>conftest.er1
27432  ac_status=$?
27433  grep -v '^ *+' conftest.er1 >conftest.err
27434  rm -f conftest.er1
27435  cat conftest.err >&5
27436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437  (exit $ac_status); } && {
27438	 test -z "$ac_c_werror_flag" ||
27439	 test ! -s conftest.err
27440       } && test -s conftest$ac_exeext &&
27441       $as_test_x conftest$ac_exeext; then
27442  eval "$as_ac_var=yes"
27443else
27444  echo "$as_me: failed program was:" >&5
27445sed 's/^/| /' conftest.$ac_ext >&5
27446
27447	eval "$as_ac_var=no"
27448fi
27449
27450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27451      conftest$ac_exeext conftest.$ac_ext
27452fi
27453ac_res=`eval echo '${'$as_ac_var'}'`
27454	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27455echo "${ECHO_T}$ac_res" >&6; }
27456if test `eval echo '${'$as_ac_var'}'` = yes; then
27457  cat >>confdefs.h <<_ACEOF
27458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27459_ACEOF
27460
27461fi
27462done
27463
27464
27465if test "$ac_cv_func_ctime_r" = no ; then
27466	ol_cv_func_ctime_r_nargs=0
27467else
27468	{ echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27469echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27470if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27471  echo $ECHO_N "(cached) $ECHO_C" >&6
27472else
27473  cat >conftest.$ac_ext <<_ACEOF
27474/* confdefs.h.  */
27475_ACEOF
27476cat confdefs.h >>conftest.$ac_ext
27477cat >>conftest.$ac_ext <<_ACEOF
27478/* end confdefs.h.  */
27479#include <time.h>
27480int
27481main ()
27482{
27483time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27484  ;
27485  return 0;
27486}
27487_ACEOF
27488rm -f conftest.$ac_objext
27489if { (ac_try="$ac_compile"
27490case "(($ac_try" in
27491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492  *) ac_try_echo=$ac_try;;
27493esac
27494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495  (eval "$ac_compile") 2>conftest.er1
27496  ac_status=$?
27497  grep -v '^ *+' conftest.er1 >conftest.err
27498  rm -f conftest.er1
27499  cat conftest.err >&5
27500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501  (exit $ac_status); } && {
27502	 test -z "$ac_c_werror_flag" ||
27503	 test ! -s conftest.err
27504       } && test -s conftest.$ac_objext; then
27505  ol_cv_func_ctime_r_nargs3=yes
27506else
27507  echo "$as_me: failed program was:" >&5
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
27510	ol_cv_func_ctime_r_nargs3=no
27511fi
27512
27513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27514
27515	cat >conftest.$ac_ext <<_ACEOF
27516/* confdefs.h.  */
27517_ACEOF
27518cat confdefs.h >>conftest.$ac_ext
27519cat >>conftest.$ac_ext <<_ACEOF
27520/* end confdefs.h.  */
27521#include <time.h>
27522int
27523main ()
27524{
27525time_t ti; char *buffer; ctime_r(&ti,buffer);
27526  ;
27527  return 0;
27528}
27529_ACEOF
27530rm -f conftest.$ac_objext
27531if { (ac_try="$ac_compile"
27532case "(($ac_try" in
27533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534  *) ac_try_echo=$ac_try;;
27535esac
27536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537  (eval "$ac_compile") 2>conftest.er1
27538  ac_status=$?
27539  grep -v '^ *+' conftest.er1 >conftest.err
27540  rm -f conftest.er1
27541  cat conftest.err >&5
27542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543  (exit $ac_status); } && {
27544	 test -z "$ac_c_werror_flag" ||
27545	 test ! -s conftest.err
27546       } && test -s conftest.$ac_objext; then
27547  ol_cv_func_ctime_r_nargs2=yes
27548else
27549  echo "$as_me: failed program was:" >&5
27550sed 's/^/| /' conftest.$ac_ext >&5
27551
27552	ol_cv_func_ctime_r_nargs2=no
27553fi
27554
27555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27556
27557	if test $ol_cv_func_ctime_r_nargs3 = yes &&
27558	   test $ol_cv_func_ctime_r_nargs2 = no ; then
27559
27560		ol_cv_func_ctime_r_nargs=3
27561
27562	elif test $ol_cv_func_ctime_r_nargs3 = no &&
27563	     test $ol_cv_func_ctime_r_nargs2 = yes ; then
27564
27565		ol_cv_func_ctime_r_nargs=2
27566
27567	else
27568		ol_cv_func_ctime_r_nargs=0
27569	fi
27570
27571fi
27572{ echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27573echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27574
27575  if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27576
27577cat >>confdefs.h <<_ACEOF
27578#define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27579_ACEOF
27580
27581  fi
27582
27583fi
27584
27585if test "$ac_cv_func_gethostbyname_r" = yes ; then
27586 	{ echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27587echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27588if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27589  echo $ECHO_N "(cached) $ECHO_C" >&6
27590else
27591  cat >conftest.$ac_ext <<_ACEOF
27592/* confdefs.h.  */
27593_ACEOF
27594cat confdefs.h >>conftest.$ac_ext
27595cat >>conftest.$ac_ext <<_ACEOF
27596/* end confdefs.h.  */
27597#include <sys/types.h>
27598#include <sys/socket.h>
27599#include <netinet/in.h>
27600#include <netdb.h>
27601#define BUFSIZE (sizeof(struct hostent)+10)
27602int
27603main ()
27604{
27605struct hostent hent; char buffer[BUFSIZE];
27606		int bufsize=BUFSIZE;int h_errno;
27607		(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27608			buffer, bufsize, &h_errno);
27609  ;
27610  return 0;
27611}
27612_ACEOF
27613rm -f conftest.$ac_objext
27614if { (ac_try="$ac_compile"
27615case "(($ac_try" in
27616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617  *) ac_try_echo=$ac_try;;
27618esac
27619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620  (eval "$ac_compile") 2>conftest.er1
27621  ac_status=$?
27622  grep -v '^ *+' conftest.er1 >conftest.err
27623  rm -f conftest.er1
27624  cat conftest.err >&5
27625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626  (exit $ac_status); } && {
27627	 test -z "$ac_c_werror_flag" ||
27628	 test ! -s conftest.err
27629       } && test -s conftest.$ac_objext; then
27630  ol_cv_func_gethostbyname_r_nargs5=yes
27631else
27632  echo "$as_me: failed program was:" >&5
27633sed 's/^/| /' conftest.$ac_ext >&5
27634
27635	ol_cv_func_gethostbyname_r_nargs5=no
27636fi
27637
27638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639
27640	cat >conftest.$ac_ext <<_ACEOF
27641/* confdefs.h.  */
27642_ACEOF
27643cat confdefs.h >>conftest.$ac_ext
27644cat >>conftest.$ac_ext <<_ACEOF
27645/* end confdefs.h.  */
27646#include <sys/types.h>
27647#include <sys/socket.h>
27648#include <netinet/in.h>
27649#include <netdb.h>
27650#define BUFSIZE (sizeof(struct hostent)+10)
27651int
27652main ()
27653{
27654struct hostent hent;struct hostent *rhent;
27655		char buffer[BUFSIZE];
27656		int bufsize=BUFSIZE;int h_errno;
27657		(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27658			&rhent, &h_errno);
27659  ;
27660  return 0;
27661}
27662_ACEOF
27663rm -f conftest.$ac_objext
27664if { (ac_try="$ac_compile"
27665case "(($ac_try" in
27666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667  *) ac_try_echo=$ac_try;;
27668esac
27669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670  (eval "$ac_compile") 2>conftest.er1
27671  ac_status=$?
27672  grep -v '^ *+' conftest.er1 >conftest.err
27673  rm -f conftest.er1
27674  cat conftest.err >&5
27675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676  (exit $ac_status); } && {
27677	 test -z "$ac_c_werror_flag" ||
27678	 test ! -s conftest.err
27679       } && test -s conftest.$ac_objext; then
27680  ol_cv_func_gethostbyname_r_nargs6=yes
27681else
27682  echo "$as_me: failed program was:" >&5
27683sed 's/^/| /' conftest.$ac_ext >&5
27684
27685	ol_cv_func_gethostbyname_r_nargs6=no
27686fi
27687
27688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27689
27690	if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27691	   test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27692
27693		ol_cv_func_gethostbyname_r_nargs=5
27694
27695	elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27696	     test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27697
27698		ol_cv_func_gethostbyname_r_nargs=6
27699
27700	else
27701		ol_cv_func_gethostbyname_r_nargs=0
27702	fi
27703
27704fi
27705{ echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27706echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27707  if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27708
27709cat >>confdefs.h <<_ACEOF
27710#define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27711_ACEOF
27712
27713  fi
27714
27715else
27716 	ol_cv_func_gethostbyname_r_nargs=0
27717fi
27718
27719if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27720 	{ echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27721echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27722if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27723  echo $ECHO_N "(cached) $ECHO_C" >&6
27724else
27725  cat >conftest.$ac_ext <<_ACEOF
27726/* confdefs.h.  */
27727_ACEOF
27728cat confdefs.h >>conftest.$ac_ext
27729cat >>conftest.$ac_ext <<_ACEOF
27730/* end confdefs.h.  */
27731#include <sys/types.h>
27732#include <sys/socket.h>
27733#include <netinet/in.h>
27734#include <netdb.h>
27735#define BUFSIZE (sizeof(struct hostent)+10)
27736int
27737main ()
27738{
27739struct hostent hent; char buffer[BUFSIZE];
27740	    struct in_addr add;
27741	    size_t alen=sizeof(struct in_addr);
27742	    int bufsize=BUFSIZE;int h_errno;
27743		(void)gethostbyaddr_r( (void *)&(add.s_addr),
27744			alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27745  ;
27746  return 0;
27747}
27748_ACEOF
27749rm -f conftest.$ac_objext
27750if { (ac_try="$ac_compile"
27751case "(($ac_try" in
27752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753  *) ac_try_echo=$ac_try;;
27754esac
27755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756  (eval "$ac_compile") 2>conftest.er1
27757  ac_status=$?
27758  grep -v '^ *+' conftest.er1 >conftest.err
27759  rm -f conftest.er1
27760  cat conftest.err >&5
27761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762  (exit $ac_status); } && {
27763	 test -z "$ac_c_werror_flag" ||
27764	 test ! -s conftest.err
27765       } && test -s conftest.$ac_objext; then
27766  ol_cv_func_gethostbyaddr_r_nargs7=yes
27767else
27768  echo "$as_me: failed program was:" >&5
27769sed 's/^/| /' conftest.$ac_ext >&5
27770
27771	ol_cv_func_gethostbyaddr_r_nargs7=no
27772fi
27773
27774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775
27776	cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h.  */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h.  */
27782#include <sys/types.h>
27783#include <sys/socket.h>
27784#include <netinet/in.h>
27785#include <netdb.h>
27786#define BUFSIZE (sizeof(struct hostent)+10)
27787int
27788main ()
27789{
27790struct hostent hent;
27791		struct hostent *rhent; char buffer[BUFSIZE];
27792		struct in_addr add;
27793		size_t alen=sizeof(struct in_addr);
27794		int bufsize=BUFSIZE;int h_errno;
27795		(void)gethostbyaddr_r( (void *)&(add.s_addr),
27796			alen, AF_INET, &hent, buffer, bufsize,
27797			&rhent, &h_errno);
27798  ;
27799  return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext
27803if { (ac_try="$ac_compile"
27804case "(($ac_try" in
27805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806  *) ac_try_echo=$ac_try;;
27807esac
27808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809  (eval "$ac_compile") 2>conftest.er1
27810  ac_status=$?
27811  grep -v '^ *+' conftest.er1 >conftest.err
27812  rm -f conftest.er1
27813  cat conftest.err >&5
27814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815  (exit $ac_status); } && {
27816	 test -z "$ac_c_werror_flag" ||
27817	 test ! -s conftest.err
27818       } && test -s conftest.$ac_objext; then
27819  ol_cv_func_gethostbyaddr_r_nargs8=yes
27820else
27821  echo "$as_me: failed program was:" >&5
27822sed 's/^/| /' conftest.$ac_ext >&5
27823
27824	ol_cv_func_gethostbyaddr_r_nargs8=no
27825fi
27826
27827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27828
27829	if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27830	   test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27831
27832		ol_cv_func_gethostbyaddr_r_nargs=7
27833
27834	elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27835	     test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27836
27837		ol_cv_func_gethostbyaddr_r_nargs=8
27838
27839	else
27840		ol_cv_func_gethostbyaddr_r_nargs=0
27841	fi
27842
27843fi
27844{ echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27845echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27846  if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27847
27848cat >>confdefs.h <<_ACEOF
27849#define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27850_ACEOF
27851
27852  fi
27853
27854else
27855 	ol_cv_func_gethostbyaddr_r_nargs=0
27856fi
27857
27858ol_link_bdb=no
27859
27860if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27861	ol_cv_berkeley_db=no
27862
27863for ac_header in db.h
27864do
27865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27867  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27870  echo $ECHO_N "(cached) $ECHO_C" >&6
27871fi
27872ac_res=`eval echo '${'$as_ac_Header'}'`
27873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27874echo "${ECHO_T}$ac_res" >&6; }
27875else
27876  # Is the header compilable?
27877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27879cat >conftest.$ac_ext <<_ACEOF
27880/* confdefs.h.  */
27881_ACEOF
27882cat confdefs.h >>conftest.$ac_ext
27883cat >>conftest.$ac_ext <<_ACEOF
27884/* end confdefs.h.  */
27885$ac_includes_default
27886#include <$ac_header>
27887_ACEOF
27888rm -f conftest.$ac_objext
27889if { (ac_try="$ac_compile"
27890case "(($ac_try" in
27891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892  *) ac_try_echo=$ac_try;;
27893esac
27894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895  (eval "$ac_compile") 2>conftest.er1
27896  ac_status=$?
27897  grep -v '^ *+' conftest.er1 >conftest.err
27898  rm -f conftest.er1
27899  cat conftest.err >&5
27900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901  (exit $ac_status); } && {
27902	 test -z "$ac_c_werror_flag" ||
27903	 test ! -s conftest.err
27904       } && test -s conftest.$ac_objext; then
27905  ac_header_compiler=yes
27906else
27907  echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
27910	ac_header_compiler=no
27911fi
27912
27913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27915echo "${ECHO_T}$ac_header_compiler" >&6; }
27916
27917# Is the header present?
27918{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27920cat >conftest.$ac_ext <<_ACEOF
27921/* confdefs.h.  */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h.  */
27926#include <$ac_header>
27927_ACEOF
27928if { (ac_try="$ac_cpp conftest.$ac_ext"
27929case "(($ac_try" in
27930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931  *) ac_try_echo=$ac_try;;
27932esac
27933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934  (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null && {
27941	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27942	 test ! -s conftest.err
27943       }; then
27944  ac_header_preproc=yes
27945else
27946  echo "$as_me: failed program was:" >&5
27947sed 's/^/| /' conftest.$ac_ext >&5
27948
27949  ac_header_preproc=no
27950fi
27951
27952rm -f conftest.err conftest.$ac_ext
27953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27954echo "${ECHO_T}$ac_header_preproc" >&6; }
27955
27956# So?  What about this header?
27957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27958  yes:no: )
27959    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27963    ac_header_preproc=yes
27964    ;;
27965  no:yes:* )
27966    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27968    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27969echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27970    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27972    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27973echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27974    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27976    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27978    ( cat <<\_ASBOX
27979## --------------------------------------------- ##
27980## Report this to <http://www.openldap.org/its/> ##
27981## --------------------------------------------- ##
27982_ASBOX
27983     ) | sed "s/^/$as_me: WARNING:     /" >&2
27984    ;;
27985esac
27986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27989  echo $ECHO_N "(cached) $ECHO_C" >&6
27990else
27991  eval "$as_ac_Header=\$ac_header_preproc"
27992fi
27993ac_res=`eval echo '${'$as_ac_Header'}'`
27994	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27995echo "${ECHO_T}$ac_res" >&6; }
27996
27997fi
27998if test `eval echo '${'$as_ac_Header'}'` = yes; then
27999  cat >>confdefs.h <<_ACEOF
28000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28001_ACEOF
28002
28003fi
28004
28005done
28006
28007if test $ac_cv_header_db_h = yes; then
28008	{ echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28009echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28010if test "${ol_cv_bdb_major+set}" = set; then
28011  echo $ECHO_N "(cached) $ECHO_C" >&6
28012else
28013
28014	cat >conftest.$ac_ext <<_ACEOF
28015
28016#include <db.h>
28017#ifndef DB_VERSION_MAJOR
28018#	define DB_VERSION_MAJOR 1
28019#endif
28020__db_version DB_VERSION_MAJOR
28021
28022_ACEOF
28023	set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28024	ol_cv_bdb_major=${3}
28025
28026fi
28027{ echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28028echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28029case $ol_cv_bdb_major in [1-9]*) : ;; *)
28030	{ { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28031echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28032   { (exit 1); exit 1; }; } ;;
28033esac
28034
28035{ echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28036echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28037if test "${ol_cv_bdb_minor+set}" = set; then
28038  echo $ECHO_N "(cached) $ECHO_C" >&6
28039else
28040
28041	cat >conftest.$ac_ext <<_ACEOF
28042
28043#include <db.h>
28044#ifndef DB_VERSION_MINOR
28045#	define DB_VERSION_MINOR 0
28046#endif
28047__db_version DB_VERSION_MINOR
28048
28049_ACEOF
28050	set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28051	ol_cv_bdb_minor=${3}
28052
28053fi
28054{ echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28055echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28056case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28057	{ { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28058echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28059   { (exit 1); exit 1; }; } ;;
28060esac
28061
28062	{ echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28063echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28064if test "${ol_cv_bdb_compat+set}" = set; then
28065  echo $ECHO_N "(cached) $ECHO_C" >&6
28066else
28067
28068	cat >conftest.$ac_ext <<_ACEOF
28069/* confdefs.h.  */
28070_ACEOF
28071cat confdefs.h >>conftest.$ac_ext
28072cat >>conftest.$ac_ext <<_ACEOF
28073/* end confdefs.h.  */
28074
28075#include <db.h>
28076
28077 /* this check could be improved */
28078#ifndef DB_VERSION_MAJOR
28079#	define DB_VERSION_MAJOR 1
28080#endif
28081#ifndef DB_VERSION_MINOR
28082#	define DB_VERSION_MINOR 0
28083#endif
28084
28085#define DB_VERSION_MM	((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28086
28087/* require 4.4 or later */
28088#if DB_VERSION_MM >= 0x0404
28089	__db_version_compat
28090#endif
28091
28092_ACEOF
28093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28094  $EGREP "__db_version_compat" >/dev/null 2>&1; then
28095  ol_cv_bdb_compat=yes
28096else
28097  ol_cv_bdb_compat=no
28098fi
28099rm -f -r conftest*
28100
28101fi
28102{ echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28103echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28104
28105
28106	if test $ol_cv_bdb_compat != yes ; then
28107		{ { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28108echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28109   { (exit 1); exit 1; }; }
28110	fi
28111
28112	ol_cv_lib_db=no
28113
28114if test $ol_cv_bdb_major = 5 ; then
28115	if test $ol_cv_lib_db = no ; then
28116	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
28117echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28118if test "${ol_cv_db_db_5_dot_m+set}" = set; then
28119  echo $ECHO_N "(cached) $ECHO_C" >&6
28120else
28121
28122	ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
28123	ol_LIBS=$LIBS
28124	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28125
28126	cat >conftest.$ac_ext <<_ACEOF
28127/* confdefs.h.  */
28128_ACEOF
28129cat confdefs.h >>conftest.$ac_ext
28130cat >>conftest.$ac_ext <<_ACEOF
28131/* end confdefs.h.  */
28132
28133#ifdef HAVE_DB_185_H
28134# include <db_185.h>
28135#else
28136# include <db.h>
28137#endif
28138
28139#ifndef DB_VERSION_MAJOR
28140# define DB_VERSION_MAJOR 1
28141#endif
28142
28143#ifndef NULL
28144#define NULL ((void*)0)
28145#endif
28146
28147int
28148main ()
28149{
28150
28151#if DB_VERSION_MAJOR > 2
28152	db_env_create( NULL, 0 );
28153#elif DB_VERSION_MAJOR > 1
28154	db_appexit( NULL );
28155#else
28156	(void) dbopen( NULL, 0, 0, 0, NULL);
28157#endif
28158
28159  ;
28160  return 0;
28161}
28162_ACEOF
28163rm -f conftest.$ac_objext conftest$ac_exeext
28164if { (ac_try="$ac_link"
28165case "(($ac_try" in
28166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167  *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170  (eval "$ac_link") 2>conftest.er1
28171  ac_status=$?
28172  grep -v '^ *+' conftest.er1 >conftest.err
28173  rm -f conftest.er1
28174  cat conftest.err >&5
28175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176  (exit $ac_status); } && {
28177	 test -z "$ac_c_werror_flag" ||
28178	 test ! -s conftest.err
28179       } && test -s conftest$ac_exeext &&
28180       $as_test_x conftest$ac_exeext; then
28181  ol_cv_db_db_5_dot_m=yes
28182else
28183  echo "$as_me: failed program was:" >&5
28184sed 's/^/| /' conftest.$ac_ext >&5
28185
28186	ol_cv_db_db_5_dot_m=no
28187fi
28188
28189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28190      conftest$ac_exeext conftest.$ac_ext
28191
28192	LIBS="$ol_LIBS"
28193
28194fi
28195{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28196echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28197
28198	if test $ol_cv_db_db_5_dot_m = yes ; then
28199		ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28200	fi
28201fi
28202
28203	if test $ol_cv_lib_db = no ; then
28204	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28205echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28206if test "${ol_cv_db_db5m+set}" = set; then
28207  echo $ECHO_N "(cached) $ECHO_C" >&6
28208else
28209
28210	ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28211	ol_LIBS=$LIBS
28212	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28213
28214	cat >conftest.$ac_ext <<_ACEOF
28215/* confdefs.h.  */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h.  */
28220
28221#ifdef HAVE_DB_185_H
28222# include <db_185.h>
28223#else
28224# include <db.h>
28225#endif
28226
28227#ifndef DB_VERSION_MAJOR
28228# define DB_VERSION_MAJOR 1
28229#endif
28230
28231#ifndef NULL
28232#define NULL ((void*)0)
28233#endif
28234
28235int
28236main ()
28237{
28238
28239#if DB_VERSION_MAJOR > 2
28240	db_env_create( NULL, 0 );
28241#elif DB_VERSION_MAJOR > 1
28242	db_appexit( NULL );
28243#else
28244	(void) dbopen( NULL, 0, 0, 0, NULL);
28245#endif
28246
28247  ;
28248  return 0;
28249}
28250_ACEOF
28251rm -f conftest.$ac_objext conftest$ac_exeext
28252if { (ac_try="$ac_link"
28253case "(($ac_try" in
28254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255  *) ac_try_echo=$ac_try;;
28256esac
28257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28258  (eval "$ac_link") 2>conftest.er1
28259  ac_status=$?
28260  grep -v '^ *+' conftest.er1 >conftest.err
28261  rm -f conftest.er1
28262  cat conftest.err >&5
28263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264  (exit $ac_status); } && {
28265	 test -z "$ac_c_werror_flag" ||
28266	 test ! -s conftest.err
28267       } && test -s conftest$ac_exeext &&
28268       $as_test_x conftest$ac_exeext; then
28269  ol_cv_db_db5m=yes
28270else
28271  echo "$as_me: failed program was:" >&5
28272sed 's/^/| /' conftest.$ac_ext >&5
28273
28274	ol_cv_db_db5m=no
28275fi
28276
28277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28278      conftest$ac_exeext conftest.$ac_ext
28279
28280	LIBS="$ol_LIBS"
28281
28282fi
28283{ echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28284echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28285
28286	if test $ol_cv_db_db5m = yes ; then
28287		ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28288	fi
28289fi
28290
28291	if test $ol_cv_lib_db = no ; then
28292	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28293echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28294if test "${ol_cv_db_db_5m+set}" = set; then
28295  echo $ECHO_N "(cached) $ECHO_C" >&6
28296else
28297
28298	ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28299	ol_LIBS=$LIBS
28300	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28301
28302	cat >conftest.$ac_ext <<_ACEOF
28303/* confdefs.h.  */
28304_ACEOF
28305cat confdefs.h >>conftest.$ac_ext
28306cat >>conftest.$ac_ext <<_ACEOF
28307/* end confdefs.h.  */
28308
28309#ifdef HAVE_DB_185_H
28310# include <db_185.h>
28311#else
28312# include <db.h>
28313#endif
28314
28315#ifndef DB_VERSION_MAJOR
28316# define DB_VERSION_MAJOR 1
28317#endif
28318
28319#ifndef NULL
28320#define NULL ((void*)0)
28321#endif
28322
28323int
28324main ()
28325{
28326
28327#if DB_VERSION_MAJOR > 2
28328	db_env_create( NULL, 0 );
28329#elif DB_VERSION_MAJOR > 1
28330	db_appexit( NULL );
28331#else
28332	(void) dbopen( NULL, 0, 0, 0, NULL);
28333#endif
28334
28335  ;
28336  return 0;
28337}
28338_ACEOF
28339rm -f conftest.$ac_objext conftest$ac_exeext
28340if { (ac_try="$ac_link"
28341case "(($ac_try" in
28342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343  *) ac_try_echo=$ac_try;;
28344esac
28345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346  (eval "$ac_link") 2>conftest.er1
28347  ac_status=$?
28348  grep -v '^ *+' conftest.er1 >conftest.err
28349  rm -f conftest.er1
28350  cat conftest.err >&5
28351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352  (exit $ac_status); } && {
28353	 test -z "$ac_c_werror_flag" ||
28354	 test ! -s conftest.err
28355       } && test -s conftest$ac_exeext &&
28356       $as_test_x conftest$ac_exeext; then
28357  ol_cv_db_db_5m=yes
28358else
28359  echo "$as_me: failed program was:" >&5
28360sed 's/^/| /' conftest.$ac_ext >&5
28361
28362	ol_cv_db_db_5m=no
28363fi
28364
28365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28366      conftest$ac_exeext conftest.$ac_ext
28367
28368	LIBS="$ol_LIBS"
28369
28370fi
28371{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28372echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28373
28374	if test $ol_cv_db_db_5m = yes ; then
28375		ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28376	fi
28377fi
28378
28379	if test $ol_cv_lib_db = no ; then
28380	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28381echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28382if test "${ol_cv_db_db_5_m+set}" = set; then
28383  echo $ECHO_N "(cached) $ECHO_C" >&6
28384else
28385
28386	ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28387	ol_LIBS=$LIBS
28388	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28389
28390	cat >conftest.$ac_ext <<_ACEOF
28391/* confdefs.h.  */
28392_ACEOF
28393cat confdefs.h >>conftest.$ac_ext
28394cat >>conftest.$ac_ext <<_ACEOF
28395/* end confdefs.h.  */
28396
28397#ifdef HAVE_DB_185_H
28398# include <db_185.h>
28399#else
28400# include <db.h>
28401#endif
28402
28403#ifndef DB_VERSION_MAJOR
28404# define DB_VERSION_MAJOR 1
28405#endif
28406
28407#ifndef NULL
28408#define NULL ((void*)0)
28409#endif
28410
28411int
28412main ()
28413{
28414
28415#if DB_VERSION_MAJOR > 2
28416	db_env_create( NULL, 0 );
28417#elif DB_VERSION_MAJOR > 1
28418	db_appexit( NULL );
28419#else
28420	(void) dbopen( NULL, 0, 0, 0, NULL);
28421#endif
28422
28423  ;
28424  return 0;
28425}
28426_ACEOF
28427rm -f conftest.$ac_objext conftest$ac_exeext
28428if { (ac_try="$ac_link"
28429case "(($ac_try" in
28430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431  *) ac_try_echo=$ac_try;;
28432esac
28433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434  (eval "$ac_link") 2>conftest.er1
28435  ac_status=$?
28436  grep -v '^ *+' conftest.er1 >conftest.err
28437  rm -f conftest.er1
28438  cat conftest.err >&5
28439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440  (exit $ac_status); } && {
28441	 test -z "$ac_c_werror_flag" ||
28442	 test ! -s conftest.err
28443       } && test -s conftest$ac_exeext &&
28444       $as_test_x conftest$ac_exeext; then
28445  ol_cv_db_db_5_m=yes
28446else
28447  echo "$as_me: failed program was:" >&5
28448sed 's/^/| /' conftest.$ac_ext >&5
28449
28450	ol_cv_db_db_5_m=no
28451fi
28452
28453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28454      conftest$ac_exeext conftest.$ac_ext
28455
28456	LIBS="$ol_LIBS"
28457
28458fi
28459{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28460echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28461
28462	if test $ol_cv_db_db_5_m = yes ; then
28463		ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28464	fi
28465fi
28466
28467	if test $ol_cv_lib_db = no ; then
28468	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28469echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28470if test "${ol_cv_db_db_5+set}" = set; then
28471  echo $ECHO_N "(cached) $ECHO_C" >&6
28472else
28473
28474	ol_DB_LIB=-ldb-5
28475	ol_LIBS=$LIBS
28476	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28477
28478	cat >conftest.$ac_ext <<_ACEOF
28479/* confdefs.h.  */
28480_ACEOF
28481cat confdefs.h >>conftest.$ac_ext
28482cat >>conftest.$ac_ext <<_ACEOF
28483/* end confdefs.h.  */
28484
28485#ifdef HAVE_DB_185_H
28486# include <db_185.h>
28487#else
28488# include <db.h>
28489#endif
28490
28491#ifndef DB_VERSION_MAJOR
28492# define DB_VERSION_MAJOR 1
28493#endif
28494
28495#ifndef NULL
28496#define NULL ((void*)0)
28497#endif
28498
28499int
28500main ()
28501{
28502
28503#if DB_VERSION_MAJOR > 2
28504	db_env_create( NULL, 0 );
28505#elif DB_VERSION_MAJOR > 1
28506	db_appexit( NULL );
28507#else
28508	(void) dbopen( NULL, 0, 0, 0, NULL);
28509#endif
28510
28511  ;
28512  return 0;
28513}
28514_ACEOF
28515rm -f conftest.$ac_objext conftest$ac_exeext
28516if { (ac_try="$ac_link"
28517case "(($ac_try" in
28518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28519  *) ac_try_echo=$ac_try;;
28520esac
28521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522  (eval "$ac_link") 2>conftest.er1
28523  ac_status=$?
28524  grep -v '^ *+' conftest.er1 >conftest.err
28525  rm -f conftest.er1
28526  cat conftest.err >&5
28527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528  (exit $ac_status); } && {
28529	 test -z "$ac_c_werror_flag" ||
28530	 test ! -s conftest.err
28531       } && test -s conftest$ac_exeext &&
28532       $as_test_x conftest$ac_exeext; then
28533  ol_cv_db_db_5=yes
28534else
28535  echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538	ol_cv_db_db_5=no
28539fi
28540
28541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28542      conftest$ac_exeext conftest.$ac_ext
28543
28544	LIBS="$ol_LIBS"
28545
28546fi
28547{ echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28548echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28549
28550	if test $ol_cv_db_db_5 = yes ; then
28551		ol_cv_lib_db=-ldb-5
28552	fi
28553fi
28554
28555	if test $ol_cv_lib_db = no ; then
28556	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28557echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28558if test "${ol_cv_db_db5+set}" = set; then
28559  echo $ECHO_N "(cached) $ECHO_C" >&6
28560else
28561
28562	ol_DB_LIB=-ldb5
28563	ol_LIBS=$LIBS
28564	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28565
28566	cat >conftest.$ac_ext <<_ACEOF
28567/* confdefs.h.  */
28568_ACEOF
28569cat confdefs.h >>conftest.$ac_ext
28570cat >>conftest.$ac_ext <<_ACEOF
28571/* end confdefs.h.  */
28572
28573#ifdef HAVE_DB_185_H
28574# include <db_185.h>
28575#else
28576# include <db.h>
28577#endif
28578
28579#ifndef DB_VERSION_MAJOR
28580# define DB_VERSION_MAJOR 1
28581#endif
28582
28583#ifndef NULL
28584#define NULL ((void*)0)
28585#endif
28586
28587int
28588main ()
28589{
28590
28591#if DB_VERSION_MAJOR > 2
28592	db_env_create( NULL, 0 );
28593#elif DB_VERSION_MAJOR > 1
28594	db_appexit( NULL );
28595#else
28596	(void) dbopen( NULL, 0, 0, 0, NULL);
28597#endif
28598
28599  ;
28600  return 0;
28601}
28602_ACEOF
28603rm -f conftest.$ac_objext conftest$ac_exeext
28604if { (ac_try="$ac_link"
28605case "(($ac_try" in
28606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607  *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610  (eval "$ac_link") 2>conftest.er1
28611  ac_status=$?
28612  grep -v '^ *+' conftest.er1 >conftest.err
28613  rm -f conftest.er1
28614  cat conftest.err >&5
28615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616  (exit $ac_status); } && {
28617	 test -z "$ac_c_werror_flag" ||
28618	 test ! -s conftest.err
28619       } && test -s conftest$ac_exeext &&
28620       $as_test_x conftest$ac_exeext; then
28621  ol_cv_db_db5=yes
28622else
28623  echo "$as_me: failed program was:" >&5
28624sed 's/^/| /' conftest.$ac_ext >&5
28625
28626	ol_cv_db_db5=no
28627fi
28628
28629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28630      conftest$ac_exeext conftest.$ac_ext
28631
28632	LIBS="$ol_LIBS"
28633
28634fi
28635{ echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28636echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28637
28638	if test $ol_cv_db_db5 = yes ; then
28639		ol_cv_lib_db=-ldb5
28640	fi
28641fi
28642
28643elif test $ol_cv_bdb_major = 4 ; then
28644	if test $ol_cv_lib_db = no ; then
28645	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28646echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28647if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28648  echo $ECHO_N "(cached) $ECHO_C" >&6
28649else
28650
28651	ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28652	ol_LIBS=$LIBS
28653	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28654
28655	cat >conftest.$ac_ext <<_ACEOF
28656/* confdefs.h.  */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h.  */
28661
28662#ifdef HAVE_DB_185_H
28663# include <db_185.h>
28664#else
28665# include <db.h>
28666#endif
28667
28668#ifndef DB_VERSION_MAJOR
28669# define DB_VERSION_MAJOR 1
28670#endif
28671
28672#ifndef NULL
28673#define NULL ((void*)0)
28674#endif
28675
28676int
28677main ()
28678{
28679
28680#if DB_VERSION_MAJOR > 2
28681	db_env_create( NULL, 0 );
28682#elif DB_VERSION_MAJOR > 1
28683	db_appexit( NULL );
28684#else
28685	(void) dbopen( NULL, 0, 0, 0, NULL);
28686#endif
28687
28688  ;
28689  return 0;
28690}
28691_ACEOF
28692rm -f conftest.$ac_objext conftest$ac_exeext
28693if { (ac_try="$ac_link"
28694case "(($ac_try" in
28695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28696  *) ac_try_echo=$ac_try;;
28697esac
28698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28699  (eval "$ac_link") 2>conftest.er1
28700  ac_status=$?
28701  grep -v '^ *+' conftest.er1 >conftest.err
28702  rm -f conftest.er1
28703  cat conftest.err >&5
28704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705  (exit $ac_status); } && {
28706	 test -z "$ac_c_werror_flag" ||
28707	 test ! -s conftest.err
28708       } && test -s conftest$ac_exeext &&
28709       $as_test_x conftest$ac_exeext; then
28710  ol_cv_db_db_4_dot_m=yes
28711else
28712  echo "$as_me: failed program was:" >&5
28713sed 's/^/| /' conftest.$ac_ext >&5
28714
28715	ol_cv_db_db_4_dot_m=no
28716fi
28717
28718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28719      conftest$ac_exeext conftest.$ac_ext
28720
28721	LIBS="$ol_LIBS"
28722
28723fi
28724{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28725echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28726
28727	if test $ol_cv_db_db_4_dot_m = yes ; then
28728		ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28729	fi
28730fi
28731
28732	if test $ol_cv_lib_db = no ; then
28733	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28734echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28735if test "${ol_cv_db_db4m+set}" = set; then
28736  echo $ECHO_N "(cached) $ECHO_C" >&6
28737else
28738
28739	ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28740	ol_LIBS=$LIBS
28741	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28742
28743	cat >conftest.$ac_ext <<_ACEOF
28744/* confdefs.h.  */
28745_ACEOF
28746cat confdefs.h >>conftest.$ac_ext
28747cat >>conftest.$ac_ext <<_ACEOF
28748/* end confdefs.h.  */
28749
28750#ifdef HAVE_DB_185_H
28751# include <db_185.h>
28752#else
28753# include <db.h>
28754#endif
28755
28756#ifndef DB_VERSION_MAJOR
28757# define DB_VERSION_MAJOR 1
28758#endif
28759
28760#ifndef NULL
28761#define NULL ((void*)0)
28762#endif
28763
28764int
28765main ()
28766{
28767
28768#if DB_VERSION_MAJOR > 2
28769	db_env_create( NULL, 0 );
28770#elif DB_VERSION_MAJOR > 1
28771	db_appexit( NULL );
28772#else
28773	(void) dbopen( NULL, 0, 0, 0, NULL);
28774#endif
28775
28776  ;
28777  return 0;
28778}
28779_ACEOF
28780rm -f conftest.$ac_objext conftest$ac_exeext
28781if { (ac_try="$ac_link"
28782case "(($ac_try" in
28783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784  *) ac_try_echo=$ac_try;;
28785esac
28786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787  (eval "$ac_link") 2>conftest.er1
28788  ac_status=$?
28789  grep -v '^ *+' conftest.er1 >conftest.err
28790  rm -f conftest.er1
28791  cat conftest.err >&5
28792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793  (exit $ac_status); } && {
28794	 test -z "$ac_c_werror_flag" ||
28795	 test ! -s conftest.err
28796       } && test -s conftest$ac_exeext &&
28797       $as_test_x conftest$ac_exeext; then
28798  ol_cv_db_db4m=yes
28799else
28800  echo "$as_me: failed program was:" >&5
28801sed 's/^/| /' conftest.$ac_ext >&5
28802
28803	ol_cv_db_db4m=no
28804fi
28805
28806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28807      conftest$ac_exeext conftest.$ac_ext
28808
28809	LIBS="$ol_LIBS"
28810
28811fi
28812{ echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28813echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28814
28815	if test $ol_cv_db_db4m = yes ; then
28816		ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28817	fi
28818fi
28819
28820	if test $ol_cv_lib_db = no ; then
28821	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28822echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28823if test "${ol_cv_db_db_4m+set}" = set; then
28824  echo $ECHO_N "(cached) $ECHO_C" >&6
28825else
28826
28827	ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28828	ol_LIBS=$LIBS
28829	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28830
28831	cat >conftest.$ac_ext <<_ACEOF
28832/* confdefs.h.  */
28833_ACEOF
28834cat confdefs.h >>conftest.$ac_ext
28835cat >>conftest.$ac_ext <<_ACEOF
28836/* end confdefs.h.  */
28837
28838#ifdef HAVE_DB_185_H
28839# include <db_185.h>
28840#else
28841# include <db.h>
28842#endif
28843
28844#ifndef DB_VERSION_MAJOR
28845# define DB_VERSION_MAJOR 1
28846#endif
28847
28848#ifndef NULL
28849#define NULL ((void*)0)
28850#endif
28851
28852int
28853main ()
28854{
28855
28856#if DB_VERSION_MAJOR > 2
28857	db_env_create( NULL, 0 );
28858#elif DB_VERSION_MAJOR > 1
28859	db_appexit( NULL );
28860#else
28861	(void) dbopen( NULL, 0, 0, 0, NULL);
28862#endif
28863
28864  ;
28865  return 0;
28866}
28867_ACEOF
28868rm -f conftest.$ac_objext conftest$ac_exeext
28869if { (ac_try="$ac_link"
28870case "(($ac_try" in
28871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872  *) ac_try_echo=$ac_try;;
28873esac
28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875  (eval "$ac_link") 2>conftest.er1
28876  ac_status=$?
28877  grep -v '^ *+' conftest.er1 >conftest.err
28878  rm -f conftest.er1
28879  cat conftest.err >&5
28880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881  (exit $ac_status); } && {
28882	 test -z "$ac_c_werror_flag" ||
28883	 test ! -s conftest.err
28884       } && test -s conftest$ac_exeext &&
28885       $as_test_x conftest$ac_exeext; then
28886  ol_cv_db_db_4m=yes
28887else
28888  echo "$as_me: failed program was:" >&5
28889sed 's/^/| /' conftest.$ac_ext >&5
28890
28891	ol_cv_db_db_4m=no
28892fi
28893
28894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28895      conftest$ac_exeext conftest.$ac_ext
28896
28897	LIBS="$ol_LIBS"
28898
28899fi
28900{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28901echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28902
28903	if test $ol_cv_db_db_4m = yes ; then
28904		ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28905	fi
28906fi
28907
28908	if test $ol_cv_lib_db = no ; then
28909	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28910echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28911if test "${ol_cv_db_db_4_m+set}" = set; then
28912  echo $ECHO_N "(cached) $ECHO_C" >&6
28913else
28914
28915	ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28916	ol_LIBS=$LIBS
28917	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28918
28919	cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h.  */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h.  */
28925
28926#ifdef HAVE_DB_185_H
28927# include <db_185.h>
28928#else
28929# include <db.h>
28930#endif
28931
28932#ifndef DB_VERSION_MAJOR
28933# define DB_VERSION_MAJOR 1
28934#endif
28935
28936#ifndef NULL
28937#define NULL ((void*)0)
28938#endif
28939
28940int
28941main ()
28942{
28943
28944#if DB_VERSION_MAJOR > 2
28945	db_env_create( NULL, 0 );
28946#elif DB_VERSION_MAJOR > 1
28947	db_appexit( NULL );
28948#else
28949	(void) dbopen( NULL, 0, 0, 0, NULL);
28950#endif
28951
28952  ;
28953  return 0;
28954}
28955_ACEOF
28956rm -f conftest.$ac_objext conftest$ac_exeext
28957if { (ac_try="$ac_link"
28958case "(($ac_try" in
28959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960  *) ac_try_echo=$ac_try;;
28961esac
28962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963  (eval "$ac_link") 2>conftest.er1
28964  ac_status=$?
28965  grep -v '^ *+' conftest.er1 >conftest.err
28966  rm -f conftest.er1
28967  cat conftest.err >&5
28968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969  (exit $ac_status); } && {
28970	 test -z "$ac_c_werror_flag" ||
28971	 test ! -s conftest.err
28972       } && test -s conftest$ac_exeext &&
28973       $as_test_x conftest$ac_exeext; then
28974  ol_cv_db_db_4_m=yes
28975else
28976  echo "$as_me: failed program was:" >&5
28977sed 's/^/| /' conftest.$ac_ext >&5
28978
28979	ol_cv_db_db_4_m=no
28980fi
28981
28982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28983      conftest$ac_exeext conftest.$ac_ext
28984
28985	LIBS="$ol_LIBS"
28986
28987fi
28988{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28989echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28990
28991	if test $ol_cv_db_db_4_m = yes ; then
28992		ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28993	fi
28994fi
28995
28996	if test $ol_cv_lib_db = no ; then
28997	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28998echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28999if test "${ol_cv_db_db_4+set}" = set; then
29000  echo $ECHO_N "(cached) $ECHO_C" >&6
29001else
29002
29003	ol_DB_LIB=-ldb-4
29004	ol_LIBS=$LIBS
29005	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29006
29007	cat >conftest.$ac_ext <<_ACEOF
29008/* confdefs.h.  */
29009_ACEOF
29010cat confdefs.h >>conftest.$ac_ext
29011cat >>conftest.$ac_ext <<_ACEOF
29012/* end confdefs.h.  */
29013
29014#ifdef HAVE_DB_185_H
29015# include <db_185.h>
29016#else
29017# include <db.h>
29018#endif
29019
29020#ifndef DB_VERSION_MAJOR
29021# define DB_VERSION_MAJOR 1
29022#endif
29023
29024#ifndef NULL
29025#define NULL ((void*)0)
29026#endif
29027
29028int
29029main ()
29030{
29031
29032#if DB_VERSION_MAJOR > 2
29033	db_env_create( NULL, 0 );
29034#elif DB_VERSION_MAJOR > 1
29035	db_appexit( NULL );
29036#else
29037	(void) dbopen( NULL, 0, 0, 0, NULL);
29038#endif
29039
29040  ;
29041  return 0;
29042}
29043_ACEOF
29044rm -f conftest.$ac_objext conftest$ac_exeext
29045if { (ac_try="$ac_link"
29046case "(($ac_try" in
29047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048  *) ac_try_echo=$ac_try;;
29049esac
29050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051  (eval "$ac_link") 2>conftest.er1
29052  ac_status=$?
29053  grep -v '^ *+' conftest.er1 >conftest.err
29054  rm -f conftest.er1
29055  cat conftest.err >&5
29056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057  (exit $ac_status); } && {
29058	 test -z "$ac_c_werror_flag" ||
29059	 test ! -s conftest.err
29060       } && test -s conftest$ac_exeext &&
29061       $as_test_x conftest$ac_exeext; then
29062  ol_cv_db_db_4=yes
29063else
29064  echo "$as_me: failed program was:" >&5
29065sed 's/^/| /' conftest.$ac_ext >&5
29066
29067	ol_cv_db_db_4=no
29068fi
29069
29070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29071      conftest$ac_exeext conftest.$ac_ext
29072
29073	LIBS="$ol_LIBS"
29074
29075fi
29076{ echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29077echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29078
29079	if test $ol_cv_db_db_4 = yes ; then
29080		ol_cv_lib_db=-ldb-4
29081	fi
29082fi
29083
29084	if test $ol_cv_lib_db = no ; then
29085	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29086echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29087if test "${ol_cv_db_db4+set}" = set; then
29088  echo $ECHO_N "(cached) $ECHO_C" >&6
29089else
29090
29091	ol_DB_LIB=-ldb4
29092	ol_LIBS=$LIBS
29093	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29094
29095	cat >conftest.$ac_ext <<_ACEOF
29096/* confdefs.h.  */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h.  */
29101
29102#ifdef HAVE_DB_185_H
29103# include <db_185.h>
29104#else
29105# include <db.h>
29106#endif
29107
29108#ifndef DB_VERSION_MAJOR
29109# define DB_VERSION_MAJOR 1
29110#endif
29111
29112#ifndef NULL
29113#define NULL ((void*)0)
29114#endif
29115
29116int
29117main ()
29118{
29119
29120#if DB_VERSION_MAJOR > 2
29121	db_env_create( NULL, 0 );
29122#elif DB_VERSION_MAJOR > 1
29123	db_appexit( NULL );
29124#else
29125	(void) dbopen( NULL, 0, 0, 0, NULL);
29126#endif
29127
29128  ;
29129  return 0;
29130}
29131_ACEOF
29132rm -f conftest.$ac_objext conftest$ac_exeext
29133if { (ac_try="$ac_link"
29134case "(($ac_try" in
29135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29136  *) ac_try_echo=$ac_try;;
29137esac
29138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29139  (eval "$ac_link") 2>conftest.er1
29140  ac_status=$?
29141  grep -v '^ *+' conftest.er1 >conftest.err
29142  rm -f conftest.er1
29143  cat conftest.err >&5
29144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145  (exit $ac_status); } && {
29146	 test -z "$ac_c_werror_flag" ||
29147	 test ! -s conftest.err
29148       } && test -s conftest$ac_exeext &&
29149       $as_test_x conftest$ac_exeext; then
29150  ol_cv_db_db4=yes
29151else
29152  echo "$as_me: failed program was:" >&5
29153sed 's/^/| /' conftest.$ac_ext >&5
29154
29155	ol_cv_db_db4=no
29156fi
29157
29158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29159      conftest$ac_exeext conftest.$ac_ext
29160
29161	LIBS="$ol_LIBS"
29162
29163fi
29164{ echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29165echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29166
29167	if test $ol_cv_db_db4 = yes ; then
29168		ol_cv_lib_db=-ldb4
29169	fi
29170fi
29171
29172fi
29173if test $ol_cv_lib_db = no ; then
29174	{ echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29175echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29176if test "${ol_cv_db_db+set}" = set; then
29177  echo $ECHO_N "(cached) $ECHO_C" >&6
29178else
29179
29180	ol_DB_LIB=-ldb
29181	ol_LIBS=$LIBS
29182	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29183
29184	cat >conftest.$ac_ext <<_ACEOF
29185/* confdefs.h.  */
29186_ACEOF
29187cat confdefs.h >>conftest.$ac_ext
29188cat >>conftest.$ac_ext <<_ACEOF
29189/* end confdefs.h.  */
29190
29191#ifdef HAVE_DB_185_H
29192# include <db_185.h>
29193#else
29194# include <db.h>
29195#endif
29196
29197#ifndef DB_VERSION_MAJOR
29198# define DB_VERSION_MAJOR 1
29199#endif
29200
29201#ifndef NULL
29202#define NULL ((void*)0)
29203#endif
29204
29205int
29206main ()
29207{
29208
29209#if DB_VERSION_MAJOR > 2
29210	db_env_create( NULL, 0 );
29211#elif DB_VERSION_MAJOR > 1
29212	db_appexit( NULL );
29213#else
29214	(void) dbopen( NULL, 0, 0, 0, NULL);
29215#endif
29216
29217  ;
29218  return 0;
29219}
29220_ACEOF
29221rm -f conftest.$ac_objext conftest$ac_exeext
29222if { (ac_try="$ac_link"
29223case "(($ac_try" in
29224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225  *) ac_try_echo=$ac_try;;
29226esac
29227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228  (eval "$ac_link") 2>conftest.er1
29229  ac_status=$?
29230  grep -v '^ *+' conftest.er1 >conftest.err
29231  rm -f conftest.er1
29232  cat conftest.err >&5
29233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234  (exit $ac_status); } && {
29235	 test -z "$ac_c_werror_flag" ||
29236	 test ! -s conftest.err
29237       } && test -s conftest$ac_exeext &&
29238       $as_test_x conftest$ac_exeext; then
29239  ol_cv_db_db=yes
29240else
29241  echo "$as_me: failed program was:" >&5
29242sed 's/^/| /' conftest.$ac_ext >&5
29243
29244	ol_cv_db_db=no
29245fi
29246
29247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29248      conftest$ac_exeext conftest.$ac_ext
29249
29250	LIBS="$ol_LIBS"
29251
29252fi
29253{ echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29254echo "${ECHO_T}$ol_cv_db_db" >&6; }
29255
29256	if test $ol_cv_db_db = yes ; then
29257		ol_cv_lib_db=-ldb
29258	fi
29259fi
29260
29261if test $ol_cv_lib_db = no ; then
29262	{ echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29263echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29264if test "${ol_cv_db_none+set}" = set; then
29265  echo $ECHO_N "(cached) $ECHO_C" >&6
29266else
29267
29268	ol_DB_LIB=
29269	ol_LIBS=$LIBS
29270	LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29271
29272	cat >conftest.$ac_ext <<_ACEOF
29273/* confdefs.h.  */
29274_ACEOF
29275cat confdefs.h >>conftest.$ac_ext
29276cat >>conftest.$ac_ext <<_ACEOF
29277/* end confdefs.h.  */
29278
29279#ifdef HAVE_DB_185_H
29280# include <db_185.h>
29281#else
29282# include <db.h>
29283#endif
29284
29285#ifndef DB_VERSION_MAJOR
29286# define DB_VERSION_MAJOR 1
29287#endif
29288
29289#ifndef NULL
29290#define NULL ((void*)0)
29291#endif
29292
29293int
29294main ()
29295{
29296
29297#if DB_VERSION_MAJOR > 2
29298	db_env_create( NULL, 0 );
29299#elif DB_VERSION_MAJOR > 1
29300	db_appexit( NULL );
29301#else
29302	(void) dbopen( NULL, 0, 0, 0, NULL);
29303#endif
29304
29305  ;
29306  return 0;
29307}
29308_ACEOF
29309rm -f conftest.$ac_objext conftest$ac_exeext
29310if { (ac_try="$ac_link"
29311case "(($ac_try" in
29312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313  *) ac_try_echo=$ac_try;;
29314esac
29315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316  (eval "$ac_link") 2>conftest.er1
29317  ac_status=$?
29318  grep -v '^ *+' conftest.er1 >conftest.err
29319  rm -f conftest.er1
29320  cat conftest.err >&5
29321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322  (exit $ac_status); } && {
29323	 test -z "$ac_c_werror_flag" ||
29324	 test ! -s conftest.err
29325       } && test -s conftest$ac_exeext &&
29326       $as_test_x conftest$ac_exeext; then
29327  ol_cv_db_none=yes
29328else
29329  echo "$as_me: failed program was:" >&5
29330sed 's/^/| /' conftest.$ac_ext >&5
29331
29332	ol_cv_db_none=no
29333fi
29334
29335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29336      conftest$ac_exeext conftest.$ac_ext
29337
29338	LIBS="$ol_LIBS"
29339
29340fi
29341{ echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29342echo "${ECHO_T}$ol_cv_db_none" >&6; }
29343
29344	if test $ol_cv_db_none = yes ; then
29345		ol_cv_lib_db=yes
29346	fi
29347fi
29348
29349
29350	if test "$ol_cv_lib_db" != no ; then
29351		ol_cv_berkeley_db=yes
29352		{ echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29353echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29354if test "${ol_cv_berkeley_db_version+set}" = set; then
29355  echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357
29358	ol_LIBS="$LIBS"
29359	LIBS="$LTHREAD_LIBS $LIBS"
29360	if test $ol_cv_lib_db != yes ; then
29361		LIBS="$ol_cv_lib_db $LIBS"
29362	fi
29363
29364	if test "$cross_compiling" = yes; then
29365  ol_cv_berkeley_db_version=cross
29366else
29367  cat >conftest.$ac_ext <<_ACEOF
29368/* confdefs.h.  */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h.  */
29373
29374#ifdef HAVE_DB_185_H
29375	choke me;
29376#else
29377#include <db.h>
29378#endif
29379#ifndef DB_VERSION_MAJOR
29380# define DB_VERSION_MAJOR 1
29381#endif
29382#ifndef NULL
29383#define NULL ((void *)0)
29384#endif
29385main()
29386{
29387#if DB_VERSION_MAJOR > 1
29388	char *version;
29389	int major, minor, patch;
29390
29391	version = db_version( &major, &minor, &patch );
29392
29393	if( major != DB_VERSION_MAJOR ||
29394		minor != DB_VERSION_MINOR ||
29395		patch != DB_VERSION_PATCH )
29396	{
29397		printf("Berkeley DB version mismatch\n"
29398			"\theader: %s\n\tlibrary: %s\n",
29399			DB_VERSION_STRING, version);
29400		return 1;
29401	}
29402#endif
29403
29404	return 0;
29405}
29406_ACEOF
29407rm -f conftest$ac_exeext
29408if { (ac_try="$ac_link"
29409case "(($ac_try" in
29410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411  *) ac_try_echo=$ac_try;;
29412esac
29413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414  (eval "$ac_link") 2>&5
29415  ac_status=$?
29416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29418  { (case "(($ac_try" in
29419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420  *) ac_try_echo=$ac_try;;
29421esac
29422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423  (eval "$ac_try") 2>&5
29424  ac_status=$?
29425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426  (exit $ac_status); }; }; then
29427  ol_cv_berkeley_db_version=yes
29428else
29429  echo "$as_me: program exited with status $ac_status" >&5
29430echo "$as_me: failed program was:" >&5
29431sed 's/^/| /' conftest.$ac_ext >&5
29432
29433( exit $ac_status )
29434ol_cv_berkeley_db_version=no
29435fi
29436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29437fi
29438
29439
29440
29441	LIBS="$ol_LIBS"
29442
29443fi
29444{ echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29445echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29446
29447	if test $ol_cv_berkeley_db_version = no ; then
29448		{ { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29449echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29450   { (exit 1); exit 1; }; }
29451	fi
29452
29453		{ echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29454echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29455if test "${ol_cv_berkeley_db_thread+set}" = set; then
29456  echo $ECHO_N "(cached) $ECHO_C" >&6
29457else
29458
29459	ol_LIBS="$LIBS"
29460	LIBS="$LTHREAD_LIBS $LIBS"
29461	if test $ol_cv_lib_db != yes ; then
29462		LIBS="$ol_cv_lib_db $LIBS"
29463	fi
29464
29465	if test "$cross_compiling" = yes; then
29466  ol_cv_berkeley_db_thread=cross
29467else
29468  cat >conftest.$ac_ext <<_ACEOF
29469/* confdefs.h.  */
29470_ACEOF
29471cat confdefs.h >>conftest.$ac_ext
29472cat >>conftest.$ac_ext <<_ACEOF
29473/* end confdefs.h.  */
29474
29475#ifdef HAVE_DB_185_H
29476	choke me;
29477#else
29478#include <db.h>
29479#endif
29480#ifndef NULL
29481#define NULL ((void *)0)
29482#endif
29483main()
29484{
29485	int rc;
29486	u_int32_t flags = DB_CREATE |
29487#ifdef DB_PRIVATE
29488		DB_PRIVATE |
29489#endif
29490		DB_THREAD;
29491
29492#if DB_VERSION_MAJOR > 2
29493	DB_ENV *env = NULL;
29494
29495	rc = db_env_create( &env, 0 );
29496
29497	flags |= DB_INIT_MPOOL;
29498#ifdef DB_MPOOL_PRIVATE
29499	flags |= DB_MPOOL_PRIVATE;
29500#endif
29501
29502	if( rc ) {
29503		printf("BerkeleyDB: %s\n", db_strerror(rc) );
29504		return rc;
29505	}
29506
29507#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29508	rc = (env->open)( env, NULL, flags, 0 );
29509#else
29510	rc = (env->open)( env, NULL, NULL, flags, 0 );
29511#endif
29512
29513	if ( rc == 0 ) {
29514		rc = env->close( env, 0 );
29515	}
29516
29517	if( rc ) {
29518		printf("BerkeleyDB: %s\n", db_strerror(rc) );
29519		return rc;
29520	}
29521
29522#else
29523	DB_ENV env;
29524	memset( &env, '\0', sizeof(env) );
29525
29526	rc = db_appinit( NULL, NULL, &env, flags );
29527
29528	if( rc == 0 ) {
29529		db_appexit( &env );
29530	}
29531
29532	unlink("__db_mpool.share");
29533	unlink("__db_lock.share");
29534#endif
29535
29536	return rc;
29537}
29538_ACEOF
29539rm -f conftest$ac_exeext
29540if { (ac_try="$ac_link"
29541case "(($ac_try" in
29542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543  *) ac_try_echo=$ac_try;;
29544esac
29545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29546  (eval "$ac_link") 2>&5
29547  ac_status=$?
29548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29550  { (case "(($ac_try" in
29551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552  *) ac_try_echo=$ac_try;;
29553esac
29554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555  (eval "$ac_try") 2>&5
29556  ac_status=$?
29557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558  (exit $ac_status); }; }; then
29559  ol_cv_berkeley_db_thread=yes
29560else
29561  echo "$as_me: program exited with status $ac_status" >&5
29562echo "$as_me: failed program was:" >&5
29563sed 's/^/| /' conftest.$ac_ext >&5
29564
29565( exit $ac_status )
29566ol_cv_berkeley_db_thread=no
29567fi
29568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29569fi
29570
29571
29572
29573	LIBS="$ol_LIBS"
29574
29575fi
29576{ echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29577echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29578
29579	if test $ol_cv_berkeley_db_thread != no ; then
29580
29581cat >>confdefs.h <<\_ACEOF
29582#define HAVE_BERKELEY_DB_THREAD 1
29583_ACEOF
29584
29585	fi
29586
29587	fi
29588fi
29589
29590
29591	if test $ol_cv_berkeley_db = no ; then
29592		{ { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29593echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29594   { (exit 1); exit 1; }; }
29595	fi
29596
29597
29598cat >>confdefs.h <<\_ACEOF
29599#define HAVE_BERKELEY_DB 1
29600_ACEOF
29601
29602
29603			if test $ol_cv_lib_db != yes ; then
29604		BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29605	fi
29606
29607	{ echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
29608echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
29609if test "${ol_cv_bdb_compat+set}" = set; then
29610  echo $ECHO_N "(cached) $ECHO_C" >&6
29611else
29612
29613	cat >conftest.$ac_ext <<_ACEOF
29614/* confdefs.h.  */
29615_ACEOF
29616cat confdefs.h >>conftest.$ac_ext
29617cat >>conftest.$ac_ext <<_ACEOF
29618/* end confdefs.h.  */
29619
29620#include <db.h>
29621
29622 /* this check could be improved */
29623#ifndef DB_VERSION_MAJOR
29624#	define DB_VERSION_MAJOR 1
29625#endif
29626#ifndef DB_VERSION_MINOR
29627#	define DB_VERSION_MINOR 0
29628#endif
29629
29630#define DB_VERSION_MM	((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
29631
29632/* require 4.4 or later */
29633#if DB_VERSION_MM >= 0x0404
29634	__db_version_compat
29635#endif
29636
29637_ACEOF
29638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29639  $EGREP "__db_version_compat" >/dev/null 2>&1; then
29640  ol_cv_bdb_compat=yes
29641else
29642  ol_cv_bdb_compat=no
29643fi
29644rm -f -r conftest*
29645
29646fi
29647{ echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
29648echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
29649
29650
29651	if test $ol_cv_bdb_compat != yes ; then
29652		{ { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
29653echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
29654   { (exit 1); exit 1; }; }
29655	fi
29656
29657	SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29658
29659	ol_link_bdb=yes
29660fi
29661
29662
29663if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29664	BUILD_LIBS_DYNAMIC=shared
29665
29666cat >>confdefs.h <<\_ACEOF
29667#define LDAP_LIBS_DYNAMIC 1
29668_ACEOF
29669
29670	LTSTATIC=""
29671else
29672	BUILD_LIBS_DYNAMIC=static
29673	LTSTATIC="-static"
29674fi
29675
29676if test $ol_enable_wrappers != no ; then
29677
29678for ac_header in tcpd.h
29679do
29680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29682  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29685  echo $ECHO_N "(cached) $ECHO_C" >&6
29686fi
29687ac_res=`eval echo '${'$as_ac_Header'}'`
29688	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29689echo "${ECHO_T}$ac_res" >&6; }
29690else
29691  # Is the header compilable?
29692{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29694cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h.  */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h.  */
29700$ac_includes_default
29701#include <$ac_header>
29702_ACEOF
29703rm -f conftest.$ac_objext
29704if { (ac_try="$ac_compile"
29705case "(($ac_try" in
29706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707  *) ac_try_echo=$ac_try;;
29708esac
29709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710  (eval "$ac_compile") 2>conftest.er1
29711  ac_status=$?
29712  grep -v '^ *+' conftest.er1 >conftest.err
29713  rm -f conftest.er1
29714  cat conftest.err >&5
29715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716  (exit $ac_status); } && {
29717	 test -z "$ac_c_werror_flag" ||
29718	 test ! -s conftest.err
29719       } && test -s conftest.$ac_objext; then
29720  ac_header_compiler=yes
29721else
29722  echo "$as_me: failed program was:" >&5
29723sed 's/^/| /' conftest.$ac_ext >&5
29724
29725	ac_header_compiler=no
29726fi
29727
29728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29730echo "${ECHO_T}$ac_header_compiler" >&6; }
29731
29732# Is the header present?
29733{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29735cat >conftest.$ac_ext <<_ACEOF
29736/* confdefs.h.  */
29737_ACEOF
29738cat confdefs.h >>conftest.$ac_ext
29739cat >>conftest.$ac_ext <<_ACEOF
29740/* end confdefs.h.  */
29741#include <$ac_header>
29742_ACEOF
29743if { (ac_try="$ac_cpp conftest.$ac_ext"
29744case "(($ac_try" in
29745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746  *) ac_try_echo=$ac_try;;
29747esac
29748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29750  ac_status=$?
29751  grep -v '^ *+' conftest.er1 >conftest.err
29752  rm -f conftest.er1
29753  cat conftest.err >&5
29754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755  (exit $ac_status); } >/dev/null && {
29756	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29757	 test ! -s conftest.err
29758       }; then
29759  ac_header_preproc=yes
29760else
29761  echo "$as_me: failed program was:" >&5
29762sed 's/^/| /' conftest.$ac_ext >&5
29763
29764  ac_header_preproc=no
29765fi
29766
29767rm -f conftest.err conftest.$ac_ext
29768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29769echo "${ECHO_T}$ac_header_preproc" >&6; }
29770
29771# So?  What about this header?
29772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29773  yes:no: )
29774    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29778    ac_header_preproc=yes
29779    ;;
29780  no:yes:* )
29781    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29783    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29784echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29785    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29787    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29788echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29791    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29793    ( cat <<\_ASBOX
29794## --------------------------------------------- ##
29795## Report this to <http://www.openldap.org/its/> ##
29796## --------------------------------------------- ##
29797_ASBOX
29798     ) | sed "s/^/$as_me: WARNING:     /" >&2
29799    ;;
29800esac
29801{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804  echo $ECHO_N "(cached) $ECHO_C" >&6
29805else
29806  eval "$as_ac_Header=\$ac_header_preproc"
29807fi
29808ac_res=`eval echo '${'$as_ac_Header'}'`
29809	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29810echo "${ECHO_T}$ac_res" >&6; }
29811
29812fi
29813if test `eval echo '${'$as_ac_Header'}'` = yes; then
29814  cat >>confdefs.h <<_ACEOF
29815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29816_ACEOF
29817
29818		{ echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29819echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29820		save_LIBS="$LIBS"
29821		LIBS="$LIBS -lwrap"
29822		cat >conftest.$ac_ext <<_ACEOF
29823/* confdefs.h.  */
29824_ACEOF
29825cat confdefs.h >>conftest.$ac_ext
29826cat >>conftest.$ac_ext <<_ACEOF
29827/* end confdefs.h.  */
29828
29829#include <tcpd.h>
29830int allow_severity = 0;
29831int deny_severity  = 0;
29832
29833struct request_info *req;
29834
29835int
29836main ()
29837{
29838
29839hosts_access(req)
29840
29841  ;
29842  return 0;
29843}
29844_ACEOF
29845rm -f conftest.$ac_objext conftest$ac_exeext
29846if { (ac_try="$ac_link"
29847case "(($ac_try" in
29848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849  *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852  (eval "$ac_link") 2>conftest.er1
29853  ac_status=$?
29854  grep -v '^ *+' conftest.er1 >conftest.err
29855  rm -f conftest.er1
29856  cat conftest.err >&5
29857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858  (exit $ac_status); } && {
29859	 test -z "$ac_c_werror_flag" ||
29860	 test ! -s conftest.err
29861       } && test -s conftest$ac_exeext &&
29862       $as_test_x conftest$ac_exeext; then
29863  { echo "$as_me:$LINENO: result: -lwrap" >&5
29864echo "${ECHO_T}-lwrap" >&6; }
29865		have_wrappers=yes
29866		LIBS="$save_LIBS"
29867else
29868  echo "$as_me: failed program was:" >&5
29869sed 's/^/| /' conftest.$ac_ext >&5
29870
29871
29872				LIBS="$LIBS -lnsl"
29873		cat >conftest.$ac_ext <<_ACEOF
29874/* confdefs.h.  */
29875_ACEOF
29876cat confdefs.h >>conftest.$ac_ext
29877cat >>conftest.$ac_ext <<_ACEOF
29878/* end confdefs.h.  */
29879
29880#include <tcpd.h>
29881int allow_severity = 0;
29882int deny_severity  = 0;
29883
29884struct request_info *req;
29885
29886int
29887main ()
29888{
29889
29890hosts_access(req)
29891
29892  ;
29893  return 0;
29894}
29895_ACEOF
29896rm -f conftest.$ac_objext conftest$ac_exeext
29897if { (ac_try="$ac_link"
29898case "(($ac_try" in
29899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29900  *) ac_try_echo=$ac_try;;
29901esac
29902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29903  (eval "$ac_link") 2>conftest.er1
29904  ac_status=$?
29905  grep -v '^ *+' conftest.er1 >conftest.err
29906  rm -f conftest.er1
29907  cat conftest.err >&5
29908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909  (exit $ac_status); } && {
29910	 test -z "$ac_c_werror_flag" ||
29911	 test ! -s conftest.err
29912       } && test -s conftest$ac_exeext &&
29913       $as_test_x conftest$ac_exeext; then
29914  { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29915echo "${ECHO_T}-lwrap -lnsl" >&6; }
29916		have_wrappers=yes
29917		LIBS="$save_LIBS -lnsl"
29918else
29919  echo "$as_me: failed program was:" >&5
29920sed 's/^/| /' conftest.$ac_ext >&5
29921
29922
29923		{ echo "$as_me:$LINENO: result: no" >&5
29924echo "${ECHO_T}no" >&6; }
29925		have_wrappers=no
29926		LIBS=$save_LIBS
29927fi
29928
29929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29930      conftest$ac_exeext conftest.$ac_ext
29931fi
29932
29933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29934      conftest$ac_exeext conftest.$ac_ext
29935else
29936  have_wrappers=no
29937fi
29938
29939done
29940
29941
29942	if test $have_wrappers = yes ; then
29943
29944cat >>confdefs.h <<\_ACEOF
29945#define HAVE_TCPD 1
29946_ACEOF
29947
29948		WRAP_LIBS="-lwrap"
29949	elif test $ol_enable_wrappers = yes ; then
29950		{ { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29951echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29952   { (exit 1); exit 1; }; }
29953	else
29954		{ echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29955echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29956		WRAP_LIBS=""
29957	fi
29958fi
29959
29960if test $ol_enable_syslog != no ; then
29961	{ echo "$as_me:$LINENO: checking for openlog" >&5
29962echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29963if test "${ac_cv_func_openlog+set}" = set; then
29964  echo $ECHO_N "(cached) $ECHO_C" >&6
29965else
29966  cat >conftest.$ac_ext <<_ACEOF
29967/* confdefs.h.  */
29968_ACEOF
29969cat confdefs.h >>conftest.$ac_ext
29970cat >>conftest.$ac_ext <<_ACEOF
29971/* end confdefs.h.  */
29972/* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29973   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29974#define openlog innocuous_openlog
29975
29976/* System header to define __stub macros and hopefully few prototypes,
29977    which can conflict with char openlog (); below.
29978    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29979    <limits.h> exists even on freestanding compilers.  */
29980
29981#ifdef __STDC__
29982# include <limits.h>
29983#else
29984# include <assert.h>
29985#endif
29986
29987#undef openlog
29988
29989/* Override any GCC internal prototype to avoid an error.
29990   Use char because int might match the return type of a GCC
29991   builtin and then its argument prototype would still apply.  */
29992#ifdef __cplusplus
29993extern "C"
29994#endif
29995char openlog ();
29996/* The GNU C library defines this for functions which it implements
29997    to always fail with ENOSYS.  Some functions are actually named
29998    something starting with __ and the normal name is an alias.  */
29999#if defined __stub_openlog || defined __stub___openlog
30000choke me
30001#endif
30002
30003int
30004main ()
30005{
30006return openlog ();
30007  ;
30008  return 0;
30009}
30010_ACEOF
30011rm -f conftest.$ac_objext conftest$ac_exeext
30012if { (ac_try="$ac_link"
30013case "(($ac_try" in
30014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30015  *) ac_try_echo=$ac_try;;
30016esac
30017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30018  (eval "$ac_link") 2>conftest.er1
30019  ac_status=$?
30020  grep -v '^ *+' conftest.er1 >conftest.err
30021  rm -f conftest.er1
30022  cat conftest.err >&5
30023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024  (exit $ac_status); } && {
30025	 test -z "$ac_c_werror_flag" ||
30026	 test ! -s conftest.err
30027       } && test -s conftest$ac_exeext &&
30028       $as_test_x conftest$ac_exeext; then
30029  ac_cv_func_openlog=yes
30030else
30031  echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
30034	ac_cv_func_openlog=no
30035fi
30036
30037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30038      conftest$ac_exeext conftest.$ac_ext
30039fi
30040{ echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30041echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30042
30043	if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30044		{ { echo "$as_me:$LINENO: error: could not find syslog" >&5
30045echo "$as_me: error: could not find syslog" >&2;}
30046   { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30047	fi
30048	ol_enable_syslog=$ac_cv_func_openlog
30049fi
30050
30051ol_link_sql=no
30052if test $ol_enable_sql != no ; then
30053
30054
30055for ac_header in sql.h sqlext.h
30056do
30057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30059  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30062  echo $ECHO_N "(cached) $ECHO_C" >&6
30063fi
30064ac_res=`eval echo '${'$as_ac_Header'}'`
30065	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30066echo "${ECHO_T}$ac_res" >&6; }
30067else
30068  # Is the header compilable?
30069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30071cat >conftest.$ac_ext <<_ACEOF
30072/* confdefs.h.  */
30073_ACEOF
30074cat confdefs.h >>conftest.$ac_ext
30075cat >>conftest.$ac_ext <<_ACEOF
30076/* end confdefs.h.  */
30077$ac_includes_default
30078#include <$ac_header>
30079_ACEOF
30080rm -f conftest.$ac_objext
30081if { (ac_try="$ac_compile"
30082case "(($ac_try" in
30083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084  *) ac_try_echo=$ac_try;;
30085esac
30086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087  (eval "$ac_compile") 2>conftest.er1
30088  ac_status=$?
30089  grep -v '^ *+' conftest.er1 >conftest.err
30090  rm -f conftest.er1
30091  cat conftest.err >&5
30092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093  (exit $ac_status); } && {
30094	 test -z "$ac_c_werror_flag" ||
30095	 test ! -s conftest.err
30096       } && test -s conftest.$ac_objext; then
30097  ac_header_compiler=yes
30098else
30099  echo "$as_me: failed program was:" >&5
30100sed 's/^/| /' conftest.$ac_ext >&5
30101
30102	ac_header_compiler=no
30103fi
30104
30105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30107echo "${ECHO_T}$ac_header_compiler" >&6; }
30108
30109# Is the header present?
30110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30112cat >conftest.$ac_ext <<_ACEOF
30113/* confdefs.h.  */
30114_ACEOF
30115cat confdefs.h >>conftest.$ac_ext
30116cat >>conftest.$ac_ext <<_ACEOF
30117/* end confdefs.h.  */
30118#include <$ac_header>
30119_ACEOF
30120if { (ac_try="$ac_cpp conftest.$ac_ext"
30121case "(($ac_try" in
30122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123  *) ac_try_echo=$ac_try;;
30124esac
30125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30127  ac_status=$?
30128  grep -v '^ *+' conftest.er1 >conftest.err
30129  rm -f conftest.er1
30130  cat conftest.err >&5
30131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132  (exit $ac_status); } >/dev/null && {
30133	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30134	 test ! -s conftest.err
30135       }; then
30136  ac_header_preproc=yes
30137else
30138  echo "$as_me: failed program was:" >&5
30139sed 's/^/| /' conftest.$ac_ext >&5
30140
30141  ac_header_preproc=no
30142fi
30143
30144rm -f conftest.err conftest.$ac_ext
30145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30146echo "${ECHO_T}$ac_header_preproc" >&6; }
30147
30148# So?  What about this header?
30149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30150  yes:no: )
30151    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30155    ac_header_preproc=yes
30156    ;;
30157  no:yes:* )
30158    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30160    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30161echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30162    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30164    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30165echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30166    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30168    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30170    ( cat <<\_ASBOX
30171## --------------------------------------------- ##
30172## Report this to <http://www.openldap.org/its/> ##
30173## --------------------------------------------- ##
30174_ASBOX
30175     ) | sed "s/^/$as_me: WARNING:     /" >&2
30176    ;;
30177esac
30178{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30181  echo $ECHO_N "(cached) $ECHO_C" >&6
30182else
30183  eval "$as_ac_Header=\$ac_header_preproc"
30184fi
30185ac_res=`eval echo '${'$as_ac_Header'}'`
30186	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30187echo "${ECHO_T}$ac_res" >&6; }
30188
30189fi
30190if test `eval echo '${'$as_ac_Header'}'` = yes; then
30191  cat >>confdefs.h <<_ACEOF
30192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30193_ACEOF
30194
30195else
30196
30197		{ { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30198echo "$as_me: error: could not locate SQL headers" >&2;}
30199   { (exit 1); exit 1; }; }
30200
30201fi
30202
30203done
30204
30205
30206	sql_LIBS="$LIBS"
30207	LIBS="$LTHREAD_LIBS"
30208
30209	if test $ol_with_odbc = auto ; then
30210		ol_with_odbc="iodbc unixodbc odbc32"
30211	fi
30212
30213	for odbc in $ol_with_odbc ; do
30214		if test $ol_link_sql = no ; then
30215			case $odbc in
30216			iodbc)
30217				{ echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30218echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30219if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30220  echo $ECHO_N "(cached) $ECHO_C" >&6
30221else
30222  ac_check_lib_save_LIBS=$LIBS
30223LIBS="-liodbc  $LIBS"
30224cat >conftest.$ac_ext <<_ACEOF
30225/* confdefs.h.  */
30226_ACEOF
30227cat confdefs.h >>conftest.$ac_ext
30228cat >>conftest.$ac_ext <<_ACEOF
30229/* end confdefs.h.  */
30230
30231/* Override any GCC internal prototype to avoid an error.
30232   Use char because int might match the return type of a GCC
30233   builtin and then its argument prototype would still apply.  */
30234#ifdef __cplusplus
30235extern "C"
30236#endif
30237char SQLDriverConnect ();
30238int
30239main ()
30240{
30241return SQLDriverConnect ();
30242  ;
30243  return 0;
30244}
30245_ACEOF
30246rm -f conftest.$ac_objext conftest$ac_exeext
30247if { (ac_try="$ac_link"
30248case "(($ac_try" in
30249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250  *) ac_try_echo=$ac_try;;
30251esac
30252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253  (eval "$ac_link") 2>conftest.er1
30254  ac_status=$?
30255  grep -v '^ *+' conftest.er1 >conftest.err
30256  rm -f conftest.er1
30257  cat conftest.err >&5
30258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259  (exit $ac_status); } && {
30260	 test -z "$ac_c_werror_flag" ||
30261	 test ! -s conftest.err
30262       } && test -s conftest$ac_exeext &&
30263       $as_test_x conftest$ac_exeext; then
30264  ac_cv_lib_iodbc_SQLDriverConnect=yes
30265else
30266  echo "$as_me: failed program was:" >&5
30267sed 's/^/| /' conftest.$ac_ext >&5
30268
30269	ac_cv_lib_iodbc_SQLDriverConnect=no
30270fi
30271
30272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30273      conftest$ac_exeext conftest.$ac_ext
30274LIBS=$ac_check_lib_save_LIBS
30275fi
30276{ echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30277echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30278if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30279  have_iodbc=yes
30280else
30281  have_iodbc=no
30282fi
30283
30284				if test $have_iodbc = yes ; then
30285					ol_link_sql="-liodbc"
30286				fi
30287				;;
30288
30289			unixodbc)
30290				{ echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30291echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30292if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30293  echo $ECHO_N "(cached) $ECHO_C" >&6
30294else
30295  ac_check_lib_save_LIBS=$LIBS
30296LIBS="-lodbc  $LIBS"
30297cat >conftest.$ac_ext <<_ACEOF
30298/* confdefs.h.  */
30299_ACEOF
30300cat confdefs.h >>conftest.$ac_ext
30301cat >>conftest.$ac_ext <<_ACEOF
30302/* end confdefs.h.  */
30303
30304/* Override any GCC internal prototype to avoid an error.
30305   Use char because int might match the return type of a GCC
30306   builtin and then its argument prototype would still apply.  */
30307#ifdef __cplusplus
30308extern "C"
30309#endif
30310char SQLDriverConnect ();
30311int
30312main ()
30313{
30314return SQLDriverConnect ();
30315  ;
30316  return 0;
30317}
30318_ACEOF
30319rm -f conftest.$ac_objext conftest$ac_exeext
30320if { (ac_try="$ac_link"
30321case "(($ac_try" in
30322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323  *) ac_try_echo=$ac_try;;
30324esac
30325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326  (eval "$ac_link") 2>conftest.er1
30327  ac_status=$?
30328  grep -v '^ *+' conftest.er1 >conftest.err
30329  rm -f conftest.er1
30330  cat conftest.err >&5
30331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332  (exit $ac_status); } && {
30333	 test -z "$ac_c_werror_flag" ||
30334	 test ! -s conftest.err
30335       } && test -s conftest$ac_exeext &&
30336       $as_test_x conftest$ac_exeext; then
30337  ac_cv_lib_odbc_SQLDriverConnect=yes
30338else
30339  echo "$as_me: failed program was:" >&5
30340sed 's/^/| /' conftest.$ac_ext >&5
30341
30342	ac_cv_lib_odbc_SQLDriverConnect=no
30343fi
30344
30345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30346      conftest$ac_exeext conftest.$ac_ext
30347LIBS=$ac_check_lib_save_LIBS
30348fi
30349{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30350echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30351if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30352  have_odbc=yes
30353else
30354  have_odbc=no
30355fi
30356
30357				if test $have_odbc = yes ; then
30358					ol_link_sql="-lodbc"
30359				fi
30360				;;
30361
30362			odbc32)
30363				{ echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30364echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30365if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30366  echo $ECHO_N "(cached) $ECHO_C" >&6
30367else
30368  ac_check_lib_save_LIBS=$LIBS
30369LIBS="-lodbc32  $LIBS"
30370cat >conftest.$ac_ext <<_ACEOF
30371/* confdefs.h.  */
30372_ACEOF
30373cat confdefs.h >>conftest.$ac_ext
30374cat >>conftest.$ac_ext <<_ACEOF
30375/* end confdefs.h.  */
30376
30377/* Override any GCC internal prototype to avoid an error.
30378   Use char because int might match the return type of a GCC
30379   builtin and then its argument prototype would still apply.  */
30380#ifdef __cplusplus
30381extern "C"
30382#endif
30383char SQLDriverConnect ();
30384int
30385main ()
30386{
30387return SQLDriverConnect ();
30388  ;
30389  return 0;
30390}
30391_ACEOF
30392rm -f conftest.$ac_objext conftest$ac_exeext
30393if { (ac_try="$ac_link"
30394case "(($ac_try" in
30395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396  *) ac_try_echo=$ac_try;;
30397esac
30398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399  (eval "$ac_link") 2>conftest.er1
30400  ac_status=$?
30401  grep -v '^ *+' conftest.er1 >conftest.err
30402  rm -f conftest.er1
30403  cat conftest.err >&5
30404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405  (exit $ac_status); } && {
30406	 test -z "$ac_c_werror_flag" ||
30407	 test ! -s conftest.err
30408       } && test -s conftest$ac_exeext &&
30409       $as_test_x conftest$ac_exeext; then
30410  ac_cv_lib_odbc32_SQLDriverConnect=yes
30411else
30412  echo "$as_me: failed program was:" >&5
30413sed 's/^/| /' conftest.$ac_ext >&5
30414
30415	ac_cv_lib_odbc32_SQLDriverConnect=no
30416fi
30417
30418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30419      conftest$ac_exeext conftest.$ac_ext
30420LIBS=$ac_check_lib_save_LIBS
30421fi
30422{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30423echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30424if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30425  have_odbc32=yes
30426else
30427  have_odbc32=no
30428fi
30429
30430				if test $have_odbc32 = yes ; then
30431					ol_link_sql="-lodbc32"
30432				fi
30433				;;
30434
30435			*)
30436				{ { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30437echo "$as_me: error: unknown ODBC library" >&2;}
30438   { (exit 1); exit 1; }; }
30439				;;
30440			esac
30441		fi
30442	done
30443
30444	LIBS="$sql_LIBS"
30445
30446	if test $ol_link_sql != no ; then
30447		SLAPD_SQL_LIBS="$ol_link_sql"
30448
30449	elif test $ol_enable_sql != auto ; then
30450		{ { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30451echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30452   { (exit 1); exit 1; }; }
30453	fi
30454fi
30455
30456ol_icu=no
30457
30458for ac_header in unicode/utypes.h
30459do
30460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30462  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30465  echo $ECHO_N "(cached) $ECHO_C" >&6
30466fi
30467ac_res=`eval echo '${'$as_ac_Header'}'`
30468	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30469echo "${ECHO_T}$ac_res" >&6; }
30470else
30471  # Is the header compilable?
30472{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30474cat >conftest.$ac_ext <<_ACEOF
30475/* confdefs.h.  */
30476_ACEOF
30477cat confdefs.h >>conftest.$ac_ext
30478cat >>conftest.$ac_ext <<_ACEOF
30479/* end confdefs.h.  */
30480$ac_includes_default
30481#include <$ac_header>
30482_ACEOF
30483rm -f conftest.$ac_objext
30484if { (ac_try="$ac_compile"
30485case "(($ac_try" in
30486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30487  *) ac_try_echo=$ac_try;;
30488esac
30489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490  (eval "$ac_compile") 2>conftest.er1
30491  ac_status=$?
30492  grep -v '^ *+' conftest.er1 >conftest.err
30493  rm -f conftest.er1
30494  cat conftest.err >&5
30495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496  (exit $ac_status); } && {
30497	 test -z "$ac_c_werror_flag" ||
30498	 test ! -s conftest.err
30499       } && test -s conftest.$ac_objext; then
30500  ac_header_compiler=yes
30501else
30502  echo "$as_me: failed program was:" >&5
30503sed 's/^/| /' conftest.$ac_ext >&5
30504
30505	ac_header_compiler=no
30506fi
30507
30508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30510echo "${ECHO_T}$ac_header_compiler" >&6; }
30511
30512# Is the header present?
30513{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30515cat >conftest.$ac_ext <<_ACEOF
30516/* confdefs.h.  */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h.  */
30521#include <$ac_header>
30522_ACEOF
30523if { (ac_try="$ac_cpp conftest.$ac_ext"
30524case "(($ac_try" in
30525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526  *) ac_try_echo=$ac_try;;
30527esac
30528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30530  ac_status=$?
30531  grep -v '^ *+' conftest.er1 >conftest.err
30532  rm -f conftest.er1
30533  cat conftest.err >&5
30534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535  (exit $ac_status); } >/dev/null && {
30536	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30537	 test ! -s conftest.err
30538       }; then
30539  ac_header_preproc=yes
30540else
30541  echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
30544  ac_header_preproc=no
30545fi
30546
30547rm -f conftest.err conftest.$ac_ext
30548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30549echo "${ECHO_T}$ac_header_preproc" >&6; }
30550
30551# So?  What about this header?
30552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30553  yes:no: )
30554    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30556    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30558    ac_header_preproc=yes
30559    ;;
30560  no:yes:* )
30561    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30563    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30564echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30565    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30567    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30568echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30569    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30571    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30573    ( cat <<\_ASBOX
30574## --------------------------------------------- ##
30575## Report this to <http://www.openldap.org/its/> ##
30576## --------------------------------------------- ##
30577_ASBOX
30578     ) | sed "s/^/$as_me: WARNING:     /" >&2
30579    ;;
30580esac
30581{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30584  echo $ECHO_N "(cached) $ECHO_C" >&6
30585else
30586  eval "$as_ac_Header=\$ac_header_preproc"
30587fi
30588ac_res=`eval echo '${'$as_ac_Header'}'`
30589	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30590echo "${ECHO_T}$ac_res" >&6; }
30591
30592fi
30593if test `eval echo '${'$as_ac_Header'}'` = yes; then
30594  cat >>confdefs.h <<_ACEOF
30595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30596_ACEOF
30597
30598fi
30599
30600done
30601
30602if test $ac_cv_header_unicode_utypes_h = yes ; then
30603		OL_ICULIBS="-licuuc -licudata"
30604
30605	{ echo "$as_me:$LINENO: checking for ICU libraries" >&5
30606echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30607if test "${ol_cv_lib_icu+set}" = set; then
30608  echo $ECHO_N "(cached) $ECHO_C" >&6
30609else
30610
30611		ol_LIBS="$LIBS"
30612		LIBS="$OL_ICULIBS $LIBS"
30613		cat >conftest.$ac_ext <<_ACEOF
30614/* confdefs.h.  */
30615_ACEOF
30616cat confdefs.h >>conftest.$ac_ext
30617cat >>conftest.$ac_ext <<_ACEOF
30618/* end confdefs.h.  */
30619
30620#include <unicode/utypes.h>
30621
30622int
30623main ()
30624{
30625
30626(void) u_errorName(0);
30627
30628  ;
30629  return 0;
30630}
30631_ACEOF
30632rm -f conftest.$ac_objext conftest$ac_exeext
30633if { (ac_try="$ac_link"
30634case "(($ac_try" in
30635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636  *) ac_try_echo=$ac_try;;
30637esac
30638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639  (eval "$ac_link") 2>conftest.er1
30640  ac_status=$?
30641  grep -v '^ *+' conftest.er1 >conftest.err
30642  rm -f conftest.er1
30643  cat conftest.err >&5
30644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645  (exit $ac_status); } && {
30646	 test -z "$ac_c_werror_flag" ||
30647	 test ! -s conftest.err
30648       } && test -s conftest$ac_exeext &&
30649       $as_test_x conftest$ac_exeext; then
30650  ol_cv_lib_icu=yes
30651else
30652  echo "$as_me: failed program was:" >&5
30653sed 's/^/| /' conftest.$ac_ext >&5
30654
30655	ol_cv_lib_icu=no
30656fi
30657
30658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30659      conftest$ac_exeext conftest.$ac_ext
30660		LIBS="$ol_LIBS"
30661
30662fi
30663{ echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30664echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30665
30666	if test $ol_cv_lib_icu != no ; then
30667		ol_icu="$OL_ICULIBS"
30668
30669cat >>confdefs.h <<\_ACEOF
30670#define HAVE_ICU 1
30671_ACEOF
30672
30673	fi
30674fi
30675
30676if test "$ol_icu" = no ; then
30677	{ echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30678echo "$as_me: WARNING: ICU not available" >&2;}
30679else
30680	ICU_LIBS="$ol_icu"
30681fi
30682WITH_SASL=no
30683ol_link_sasl=no
30684ol_link_spasswd=no
30685if test $ol_with_cyrus_sasl != no ; then
30686
30687
30688for ac_header in sasl/sasl.h sasl.h
30689do
30690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30692  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30695  echo $ECHO_N "(cached) $ECHO_C" >&6
30696fi
30697ac_res=`eval echo '${'$as_ac_Header'}'`
30698	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30699echo "${ECHO_T}$ac_res" >&6; }
30700else
30701  # Is the header compilable?
30702{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30704cat >conftest.$ac_ext <<_ACEOF
30705/* confdefs.h.  */
30706_ACEOF
30707cat confdefs.h >>conftest.$ac_ext
30708cat >>conftest.$ac_ext <<_ACEOF
30709/* end confdefs.h.  */
30710$ac_includes_default
30711#include <$ac_header>
30712_ACEOF
30713rm -f conftest.$ac_objext
30714if { (ac_try="$ac_compile"
30715case "(($ac_try" in
30716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717  *) ac_try_echo=$ac_try;;
30718esac
30719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720  (eval "$ac_compile") 2>conftest.er1
30721  ac_status=$?
30722  grep -v '^ *+' conftest.er1 >conftest.err
30723  rm -f conftest.er1
30724  cat conftest.err >&5
30725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726  (exit $ac_status); } && {
30727	 test -z "$ac_c_werror_flag" ||
30728	 test ! -s conftest.err
30729       } && test -s conftest.$ac_objext; then
30730  ac_header_compiler=yes
30731else
30732  echo "$as_me: failed program was:" >&5
30733sed 's/^/| /' conftest.$ac_ext >&5
30734
30735	ac_header_compiler=no
30736fi
30737
30738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30740echo "${ECHO_T}$ac_header_compiler" >&6; }
30741
30742# Is the header present?
30743{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30745cat >conftest.$ac_ext <<_ACEOF
30746/* confdefs.h.  */
30747_ACEOF
30748cat confdefs.h >>conftest.$ac_ext
30749cat >>conftest.$ac_ext <<_ACEOF
30750/* end confdefs.h.  */
30751#include <$ac_header>
30752_ACEOF
30753if { (ac_try="$ac_cpp conftest.$ac_ext"
30754case "(($ac_try" in
30755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756  *) ac_try_echo=$ac_try;;
30757esac
30758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30760  ac_status=$?
30761  grep -v '^ *+' conftest.er1 >conftest.err
30762  rm -f conftest.er1
30763  cat conftest.err >&5
30764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765  (exit $ac_status); } >/dev/null && {
30766	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30767	 test ! -s conftest.err
30768       }; then
30769  ac_header_preproc=yes
30770else
30771  echo "$as_me: failed program was:" >&5
30772sed 's/^/| /' conftest.$ac_ext >&5
30773
30774  ac_header_preproc=no
30775fi
30776
30777rm -f conftest.err conftest.$ac_ext
30778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30779echo "${ECHO_T}$ac_header_preproc" >&6; }
30780
30781# So?  What about this header?
30782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30783  yes:no: )
30784    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30788    ac_header_preproc=yes
30789    ;;
30790  no:yes:* )
30791    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30793    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30794echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30795    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30797    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30798echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30801    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30803    ( cat <<\_ASBOX
30804## --------------------------------------------- ##
30805## Report this to <http://www.openldap.org/its/> ##
30806## --------------------------------------------- ##
30807_ASBOX
30808     ) | sed "s/^/$as_me: WARNING:     /" >&2
30809    ;;
30810esac
30811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30814  echo $ECHO_N "(cached) $ECHO_C" >&6
30815else
30816  eval "$as_ac_Header=\$ac_header_preproc"
30817fi
30818ac_res=`eval echo '${'$as_ac_Header'}'`
30819	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30820echo "${ECHO_T}$ac_res" >&6; }
30821
30822fi
30823if test `eval echo '${'$as_ac_Header'}'` = yes; then
30824  cat >>confdefs.h <<_ACEOF
30825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30826_ACEOF
30827
30828fi
30829
30830done
30831
30832
30833	if test $ac_cv_header_sasl_sasl_h = yes ||
30834	   test $ac_cv_header_sasl_h = yes; then
30835		{ echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30836echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30837if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30838  echo $ECHO_N "(cached) $ECHO_C" >&6
30839else
30840  ac_check_lib_save_LIBS=$LIBS
30841LIBS="-lsasl2  $LIBS"
30842cat >conftest.$ac_ext <<_ACEOF
30843/* confdefs.h.  */
30844_ACEOF
30845cat confdefs.h >>conftest.$ac_ext
30846cat >>conftest.$ac_ext <<_ACEOF
30847/* end confdefs.h.  */
30848
30849/* Override any GCC internal prototype to avoid an error.
30850   Use char because int might match the return type of a GCC
30851   builtin and then its argument prototype would still apply.  */
30852#ifdef __cplusplus
30853extern "C"
30854#endif
30855char sasl_client_init ();
30856int
30857main ()
30858{
30859return sasl_client_init ();
30860  ;
30861  return 0;
30862}
30863_ACEOF
30864rm -f conftest.$ac_objext conftest$ac_exeext
30865if { (ac_try="$ac_link"
30866case "(($ac_try" in
30867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868  *) ac_try_echo=$ac_try;;
30869esac
30870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871  (eval "$ac_link") 2>conftest.er1
30872  ac_status=$?
30873  grep -v '^ *+' conftest.er1 >conftest.err
30874  rm -f conftest.er1
30875  cat conftest.err >&5
30876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877  (exit $ac_status); } && {
30878	 test -z "$ac_c_werror_flag" ||
30879	 test ! -s conftest.err
30880       } && test -s conftest$ac_exeext &&
30881       $as_test_x conftest$ac_exeext; then
30882  ac_cv_lib_sasl2_sasl_client_init=yes
30883else
30884  echo "$as_me: failed program was:" >&5
30885sed 's/^/| /' conftest.$ac_ext >&5
30886
30887	ac_cv_lib_sasl2_sasl_client_init=no
30888fi
30889
30890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30891      conftest$ac_exeext conftest.$ac_ext
30892LIBS=$ac_check_lib_save_LIBS
30893fi
30894{ echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30895echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30896if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30897  ol_link_sasl="-lsasl2"
30898else
30899  { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30900echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30901if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30902  echo $ECHO_N "(cached) $ECHO_C" >&6
30903else
30904  ac_check_lib_save_LIBS=$LIBS
30905LIBS="-lsasl  $LIBS"
30906cat >conftest.$ac_ext <<_ACEOF
30907/* confdefs.h.  */
30908_ACEOF
30909cat confdefs.h >>conftest.$ac_ext
30910cat >>conftest.$ac_ext <<_ACEOF
30911/* end confdefs.h.  */
30912
30913/* Override any GCC internal prototype to avoid an error.
30914   Use char because int might match the return type of a GCC
30915   builtin and then its argument prototype would still apply.  */
30916#ifdef __cplusplus
30917extern "C"
30918#endif
30919char sasl_client_init ();
30920int
30921main ()
30922{
30923return sasl_client_init ();
30924  ;
30925  return 0;
30926}
30927_ACEOF
30928rm -f conftest.$ac_objext conftest$ac_exeext
30929if { (ac_try="$ac_link"
30930case "(($ac_try" in
30931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30932  *) ac_try_echo=$ac_try;;
30933esac
30934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935  (eval "$ac_link") 2>conftest.er1
30936  ac_status=$?
30937  grep -v '^ *+' conftest.er1 >conftest.err
30938  rm -f conftest.er1
30939  cat conftest.err >&5
30940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941  (exit $ac_status); } && {
30942	 test -z "$ac_c_werror_flag" ||
30943	 test ! -s conftest.err
30944       } && test -s conftest$ac_exeext &&
30945       $as_test_x conftest$ac_exeext; then
30946  ac_cv_lib_sasl_sasl_client_init=yes
30947else
30948  echo "$as_me: failed program was:" >&5
30949sed 's/^/| /' conftest.$ac_ext >&5
30950
30951	ac_cv_lib_sasl_sasl_client_init=no
30952fi
30953
30954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30955      conftest$ac_exeext conftest.$ac_ext
30956LIBS=$ac_check_lib_save_LIBS
30957fi
30958{ echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30959echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30960if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30961  ol_link_sasl="-lsasl"
30962fi
30963
30964fi
30965
30966	fi
30967
30968	if test $ol_link_sasl = no ; then
30969		if test $ol_with_cyrus_sasl != auto ; then
30970			{ { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30971echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30972   { (exit 1); exit 1; }; }
30973		else
30974			{ echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30975echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30976			{ echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30977echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30978			if test $ol_link_tls = no ; then
30979				{ echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30980echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30981			fi
30982		fi
30983	else
30984		{ echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30985echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30986if test "${ol_cv_sasl_compat+set}" = set; then
30987  echo $ECHO_N "(cached) $ECHO_C" >&6
30988else
30989
30990	cat >conftest.$ac_ext <<_ACEOF
30991/* confdefs.h.  */
30992_ACEOF
30993cat confdefs.h >>conftest.$ac_ext
30994cat >>conftest.$ac_ext <<_ACEOF
30995/* end confdefs.h.  */
30996
30997#ifdef HAVE_SASL_SASL_H
30998#include <sasl/sasl.h>
30999#else
31000#include <sasl.h>
31001#endif
31002
31003/* Require 2.1.15+ */
31004#if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31005	char *__sasl_compat = "2.2+ or better okay (we guess)";
31006#elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31007	&& SASL_VERSION_STEP >=15
31008	char *__sasl_compat = "2.1.15+ or better okay";
31009#endif
31010
31011_ACEOF
31012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31013  $EGREP "__sasl_compat" >/dev/null 2>&1; then
31014  ol_cv_sasl_compat=yes
31015else
31016  ol_cv_sasl_compat=no
31017fi
31018rm -f -r conftest*
31019
31020fi
31021{ echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31022echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31023
31024		if test $ol_cv_sasl_compat = no ; then
31025			ol_link_sasl=no
31026			{ { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31027echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31028   { (exit 1); exit 1; }; }
31029		fi
31030
31031
31032cat >>confdefs.h <<\_ACEOF
31033#define HAVE_CYRUS_SASL 1
31034_ACEOF
31035
31036		SASL_LIBS="$ol_link_sasl"
31037		if test $ol_enable_spasswd != no ; then
31038			ol_link_spasswd=yes
31039		fi
31040
31041		ac_save_LIBS="$LIBS"
31042		LIBS="$LIBS $ol_link_sasl"
31043		{ echo "$as_me:$LINENO: checking for sasl_version" >&5
31044echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31045if test "${ac_cv_func_sasl_version+set}" = set; then
31046  echo $ECHO_N "(cached) $ECHO_C" >&6
31047else
31048  cat >conftest.$ac_ext <<_ACEOF
31049/* confdefs.h.  */
31050_ACEOF
31051cat confdefs.h >>conftest.$ac_ext
31052cat >>conftest.$ac_ext <<_ACEOF
31053/* end confdefs.h.  */
31054/* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31056#define sasl_version innocuous_sasl_version
31057
31058/* System header to define __stub macros and hopefully few prototypes,
31059    which can conflict with char sasl_version (); below.
31060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31061    <limits.h> exists even on freestanding compilers.  */
31062
31063#ifdef __STDC__
31064# include <limits.h>
31065#else
31066# include <assert.h>
31067#endif
31068
31069#undef sasl_version
31070
31071/* Override any GCC internal prototype to avoid an error.
31072   Use char because int might match the return type of a GCC
31073   builtin and then its argument prototype would still apply.  */
31074#ifdef __cplusplus
31075extern "C"
31076#endif
31077char sasl_version ();
31078/* The GNU C library defines this for functions which it implements
31079    to always fail with ENOSYS.  Some functions are actually named
31080    something starting with __ and the normal name is an alias.  */
31081#if defined __stub_sasl_version || defined __stub___sasl_version
31082choke me
31083#endif
31084
31085int
31086main ()
31087{
31088return sasl_version ();
31089  ;
31090  return 0;
31091}
31092_ACEOF
31093rm -f conftest.$ac_objext conftest$ac_exeext
31094if { (ac_try="$ac_link"
31095case "(($ac_try" in
31096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097  *) ac_try_echo=$ac_try;;
31098esac
31099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100  (eval "$ac_link") 2>conftest.er1
31101  ac_status=$?
31102  grep -v '^ *+' conftest.er1 >conftest.err
31103  rm -f conftest.er1
31104  cat conftest.err >&5
31105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106  (exit $ac_status); } && {
31107	 test -z "$ac_c_werror_flag" ||
31108	 test ! -s conftest.err
31109       } && test -s conftest$ac_exeext &&
31110       $as_test_x conftest$ac_exeext; then
31111  ac_cv_func_sasl_version=yes
31112else
31113  echo "$as_me: failed program was:" >&5
31114sed 's/^/| /' conftest.$ac_ext >&5
31115
31116	ac_cv_func_sasl_version=no
31117fi
31118
31119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31120      conftest$ac_exeext conftest.$ac_ext
31121fi
31122{ echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31123echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31124if test $ac_cv_func_sasl_version = yes; then
31125
31126cat >>confdefs.h <<\_ACEOF
31127#define HAVE_SASL_VERSION 1
31128_ACEOF
31129
31130fi
31131
31132		LIBS="$ac_save_LIBS"
31133
31134		WITH_SASL=yes
31135	fi
31136
31137else
31138	{ echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31139echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31140	if test $ol_link_tls = no ; then
31141		{ echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31142echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31143	fi
31144fi
31145
31146if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31147	dev=no
31148	if test -r /dev/urandom ; then
31149		dev="/dev/urandom";
31150	elif test -r /idev/urandom ; then
31151		dev="/idev/urandom";
31152	elif test -r /dev/srandom ; then
31153		dev="/dev/srandom";
31154	elif test -r /dev/random ; then
31155		dev="/dev/random";
31156	elif test -r /idev/random ; then
31157		dev="/idev/random";
31158	fi
31159
31160	if test $dev != no ; then
31161
31162cat >>confdefs.h <<_ACEOF
31163#define URANDOM_DEVICE "$dev"
31164_ACEOF
31165
31166	fi
31167fi
31168
31169ol_link_fetch=no
31170if test $ol_with_fetch != no ; then
31171	ol_LIBS=$LIBS
31172LIBS="-lfetch -lcom_err $LIBS"
31173{ echo "$as_me:$LINENO: checking fetch(3) library" >&5
31174echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31175if test "${ol_cv_lib_fetch+set}" = set; then
31176  echo $ECHO_N "(cached) $ECHO_C" >&6
31177else
31178
31179	cat >conftest.$ac_ext <<_ACEOF
31180/* confdefs.h.  */
31181_ACEOF
31182cat confdefs.h >>conftest.$ac_ext
31183cat >>conftest.$ac_ext <<_ACEOF
31184/* end confdefs.h.  */
31185
31186#ifdef HAVE_SYS_PARAM_H
31187#include <sys/param.h>
31188#endif
31189#include <stdio.h>
31190#include <fetch.h>
31191int
31192main ()
31193{
31194struct url *u = fetchParseURL("file:///");
31195  ;
31196  return 0;
31197}
31198_ACEOF
31199rm -f conftest.$ac_objext conftest$ac_exeext
31200if { (ac_try="$ac_link"
31201case "(($ac_try" in
31202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203  *) ac_try_echo=$ac_try;;
31204esac
31205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206  (eval "$ac_link") 2>conftest.er1
31207  ac_status=$?
31208  grep -v '^ *+' conftest.er1 >conftest.err
31209  rm -f conftest.er1
31210  cat conftest.err >&5
31211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212  (exit $ac_status); } && {
31213	 test -z "$ac_c_werror_flag" ||
31214	 test ! -s conftest.err
31215       } && test -s conftest$ac_exeext &&
31216       $as_test_x conftest$ac_exeext; then
31217  ol_cv_lib_fetch=yes
31218else
31219  echo "$as_me: failed program was:" >&5
31220sed 's/^/| /' conftest.$ac_ext >&5
31221
31222	ol_cv_lib_fetch=no
31223fi
31224
31225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31226      conftest$ac_exeext conftest.$ac_ext
31227fi
31228{ echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31229echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31230LIBS=$ol_LIBS
31231if test $ol_cv_lib_fetch != no ; then
31232	ol_link_fetch="-lfetch -lcom_err"
31233
31234cat >>confdefs.h <<\_ACEOF
31235#define HAVE_FETCH 1
31236_ACEOF
31237
31238fi
31239
31240
31241	if test $ol_cv_lib_fetch != no ; then
31242		LIBS="$LIBS $ol_link_fetch"
31243		ol_link_fetch=freebsd
31244
31245	elif test $ol_with_fetch != auto ; then
31246		{ { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31247echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31248   { (exit 1); exit 1; }; }
31249	fi
31250fi
31251
31252if test $ol_enable_crypt != no ; then
31253	save_LIBS="$LIBS"
31254	LIBS="$TLS_LIBS $LIBS"
31255
31256	{ echo "$as_me:$LINENO: checking for crypt" >&5
31257echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31258if test "${ac_cv_func_crypt+set}" = set; then
31259  echo $ECHO_N "(cached) $ECHO_C" >&6
31260else
31261  cat >conftest.$ac_ext <<_ACEOF
31262/* confdefs.h.  */
31263_ACEOF
31264cat confdefs.h >>conftest.$ac_ext
31265cat >>conftest.$ac_ext <<_ACEOF
31266/* end confdefs.h.  */
31267/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31268   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31269#define crypt innocuous_crypt
31270
31271/* System header to define __stub macros and hopefully few prototypes,
31272    which can conflict with char crypt (); below.
31273    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31274    <limits.h> exists even on freestanding compilers.  */
31275
31276#ifdef __STDC__
31277# include <limits.h>
31278#else
31279# include <assert.h>
31280#endif
31281
31282#undef crypt
31283
31284/* Override any GCC internal prototype to avoid an error.
31285   Use char because int might match the return type of a GCC
31286   builtin and then its argument prototype would still apply.  */
31287#ifdef __cplusplus
31288extern "C"
31289#endif
31290char crypt ();
31291/* The GNU C library defines this for functions which it implements
31292    to always fail with ENOSYS.  Some functions are actually named
31293    something starting with __ and the normal name is an alias.  */
31294#if defined __stub_crypt || defined __stub___crypt
31295choke me
31296#endif
31297
31298int
31299main ()
31300{
31301return crypt ();
31302  ;
31303  return 0;
31304}
31305_ACEOF
31306rm -f conftest.$ac_objext conftest$ac_exeext
31307if { (ac_try="$ac_link"
31308case "(($ac_try" in
31309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310  *) ac_try_echo=$ac_try;;
31311esac
31312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31313  (eval "$ac_link") 2>conftest.er1
31314  ac_status=$?
31315  grep -v '^ *+' conftest.er1 >conftest.err
31316  rm -f conftest.er1
31317  cat conftest.err >&5
31318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319  (exit $ac_status); } && {
31320	 test -z "$ac_c_werror_flag" ||
31321	 test ! -s conftest.err
31322       } && test -s conftest$ac_exeext &&
31323       $as_test_x conftest$ac_exeext; then
31324  ac_cv_func_crypt=yes
31325else
31326  echo "$as_me: failed program was:" >&5
31327sed 's/^/| /' conftest.$ac_ext >&5
31328
31329	ac_cv_func_crypt=no
31330fi
31331
31332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31333      conftest$ac_exeext conftest.$ac_ext
31334fi
31335{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31336echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31337if test $ac_cv_func_crypt = yes; then
31338  have_crypt=yes
31339else
31340
31341		LIBS="$save_LIBS"
31342		{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31343echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31344if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31345  echo $ECHO_N "(cached) $ECHO_C" >&6
31346else
31347  ac_check_lib_save_LIBS=$LIBS
31348LIBS="-lcrypt  $LIBS"
31349cat >conftest.$ac_ext <<_ACEOF
31350/* confdefs.h.  */
31351_ACEOF
31352cat confdefs.h >>conftest.$ac_ext
31353cat >>conftest.$ac_ext <<_ACEOF
31354/* end confdefs.h.  */
31355
31356/* Override any GCC internal prototype to avoid an error.
31357   Use char because int might match the return type of a GCC
31358   builtin and then its argument prototype would still apply.  */
31359#ifdef __cplusplus
31360extern "C"
31361#endif
31362char crypt ();
31363int
31364main ()
31365{
31366return crypt ();
31367  ;
31368  return 0;
31369}
31370_ACEOF
31371rm -f conftest.$ac_objext conftest$ac_exeext
31372if { (ac_try="$ac_link"
31373case "(($ac_try" in
31374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375  *) ac_try_echo=$ac_try;;
31376esac
31377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378  (eval "$ac_link") 2>conftest.er1
31379  ac_status=$?
31380  grep -v '^ *+' conftest.er1 >conftest.err
31381  rm -f conftest.er1
31382  cat conftest.err >&5
31383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384  (exit $ac_status); } && {
31385	 test -z "$ac_c_werror_flag" ||
31386	 test ! -s conftest.err
31387       } && test -s conftest$ac_exeext &&
31388       $as_test_x conftest$ac_exeext; then
31389  ac_cv_lib_crypt_crypt=yes
31390else
31391  echo "$as_me: failed program was:" >&5
31392sed 's/^/| /' conftest.$ac_ext >&5
31393
31394	ac_cv_lib_crypt_crypt=no
31395fi
31396
31397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31398      conftest$ac_exeext conftest.$ac_ext
31399LIBS=$ac_check_lib_save_LIBS
31400fi
31401{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31402echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31403if test $ac_cv_lib_crypt_crypt = yes; then
31404  LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31405			have_crypt=yes
31406else
31407  have_crypt=no
31408fi
31409
31410fi
31411
31412
31413	LIBS="$save_LIBS"
31414
31415	if test $have_crypt = yes ; then
31416
31417cat >>confdefs.h <<\_ACEOF
31418#define HAVE_CRYPT 1
31419_ACEOF
31420
31421	else
31422		{ echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31423echo "$as_me: WARNING: could not find crypt" >&2;}
31424		if test $ol_enable_crypt = yes ; then
31425			{ { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31426echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31427   { (exit 1); exit 1; }; }
31428		fi
31429
31430		{ echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31431echo "$as_me: WARNING: disabling crypt support" >&2;}
31432		ol_enable_crypt=no
31433	fi
31434fi
31435
31436if test $ol_enable_proctitle != no ; then
31437	{ echo "$as_me:$LINENO: checking for setproctitle" >&5
31438echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31439if test "${ac_cv_func_setproctitle+set}" = set; then
31440  echo $ECHO_N "(cached) $ECHO_C" >&6
31441else
31442  cat >conftest.$ac_ext <<_ACEOF
31443/* confdefs.h.  */
31444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h.  */
31448/* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31449   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31450#define setproctitle innocuous_setproctitle
31451
31452/* System header to define __stub macros and hopefully few prototypes,
31453    which can conflict with char setproctitle (); below.
31454    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31455    <limits.h> exists even on freestanding compilers.  */
31456
31457#ifdef __STDC__
31458# include <limits.h>
31459#else
31460# include <assert.h>
31461#endif
31462
31463#undef setproctitle
31464
31465/* Override any GCC internal prototype to avoid an error.
31466   Use char because int might match the return type of a GCC
31467   builtin and then its argument prototype would still apply.  */
31468#ifdef __cplusplus
31469extern "C"
31470#endif
31471char setproctitle ();
31472/* The GNU C library defines this for functions which it implements
31473    to always fail with ENOSYS.  Some functions are actually named
31474    something starting with __ and the normal name is an alias.  */
31475#if defined __stub_setproctitle || defined __stub___setproctitle
31476choke me
31477#endif
31478
31479int
31480main ()
31481{
31482return setproctitle ();
31483  ;
31484  return 0;
31485}
31486_ACEOF
31487rm -f conftest.$ac_objext conftest$ac_exeext
31488if { (ac_try="$ac_link"
31489case "(($ac_try" in
31490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491  *) ac_try_echo=$ac_try;;
31492esac
31493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494  (eval "$ac_link") 2>conftest.er1
31495  ac_status=$?
31496  grep -v '^ *+' conftest.er1 >conftest.err
31497  rm -f conftest.er1
31498  cat conftest.err >&5
31499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500  (exit $ac_status); } && {
31501	 test -z "$ac_c_werror_flag" ||
31502	 test ! -s conftest.err
31503       } && test -s conftest$ac_exeext &&
31504       $as_test_x conftest$ac_exeext; then
31505  ac_cv_func_setproctitle=yes
31506else
31507  echo "$as_me: failed program was:" >&5
31508sed 's/^/| /' conftest.$ac_ext >&5
31509
31510	ac_cv_func_setproctitle=no
31511fi
31512
31513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31514      conftest$ac_exeext conftest.$ac_ext
31515fi
31516{ echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31517echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31518if test $ac_cv_func_setproctitle = yes; then
31519  have_setproctitle=yes
31520else
31521
31522		{ echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31523echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31524if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31525  echo $ECHO_N "(cached) $ECHO_C" >&6
31526else
31527  ac_check_lib_save_LIBS=$LIBS
31528LIBS="-lutil  $LIBS"
31529cat >conftest.$ac_ext <<_ACEOF
31530/* confdefs.h.  */
31531_ACEOF
31532cat confdefs.h >>conftest.$ac_ext
31533cat >>conftest.$ac_ext <<_ACEOF
31534/* end confdefs.h.  */
31535
31536/* Override any GCC internal prototype to avoid an error.
31537   Use char because int might match the return type of a GCC
31538   builtin and then its argument prototype would still apply.  */
31539#ifdef __cplusplus
31540extern "C"
31541#endif
31542char setproctitle ();
31543int
31544main ()
31545{
31546return setproctitle ();
31547  ;
31548  return 0;
31549}
31550_ACEOF
31551rm -f conftest.$ac_objext conftest$ac_exeext
31552if { (ac_try="$ac_link"
31553case "(($ac_try" in
31554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31555  *) ac_try_echo=$ac_try;;
31556esac
31557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31558  (eval "$ac_link") 2>conftest.er1
31559  ac_status=$?
31560  grep -v '^ *+' conftest.er1 >conftest.err
31561  rm -f conftest.er1
31562  cat conftest.err >&5
31563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564  (exit $ac_status); } && {
31565	 test -z "$ac_c_werror_flag" ||
31566	 test ! -s conftest.err
31567       } && test -s conftest$ac_exeext &&
31568       $as_test_x conftest$ac_exeext; then
31569  ac_cv_lib_util_setproctitle=yes
31570else
31571  echo "$as_me: failed program was:" >&5
31572sed 's/^/| /' conftest.$ac_ext >&5
31573
31574	ac_cv_lib_util_setproctitle=no
31575fi
31576
31577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31578      conftest$ac_exeext conftest.$ac_ext
31579LIBS=$ac_check_lib_save_LIBS
31580fi
31581{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31582echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31583if test $ac_cv_lib_util_setproctitle = yes; then
31584  have_setproctitle=yes
31585			LUTIL_LIBS="$LUTIL_LIBS -lutil"
31586else
31587  have_setproctitle=no
31588			case " $LIBOBJS " in
31589  *" setproctitle.$ac_objext "* ) ;;
31590  *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31591 ;;
31592esac
31593
31594			LIBSRCS="$LIBSRCS setproctitle.c"
31595fi
31596
31597fi
31598
31599
31600	if test $have_setproctitle = yes ; then
31601
31602cat >>confdefs.h <<\_ACEOF
31603#define HAVE_SETPROCTITLE 1
31604_ACEOF
31605
31606	fi
31607fi
31608
31609if test $ol_enable_slp != no ; then
31610
31611for ac_header in slp.h
31612do
31613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31615  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31618  echo $ECHO_N "(cached) $ECHO_C" >&6
31619fi
31620ac_res=`eval echo '${'$as_ac_Header'}'`
31621	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31622echo "${ECHO_T}$ac_res" >&6; }
31623else
31624  # Is the header compilable?
31625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31627cat >conftest.$ac_ext <<_ACEOF
31628/* confdefs.h.  */
31629_ACEOF
31630cat confdefs.h >>conftest.$ac_ext
31631cat >>conftest.$ac_ext <<_ACEOF
31632/* end confdefs.h.  */
31633$ac_includes_default
31634#include <$ac_header>
31635_ACEOF
31636rm -f conftest.$ac_objext
31637if { (ac_try="$ac_compile"
31638case "(($ac_try" in
31639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640  *) ac_try_echo=$ac_try;;
31641esac
31642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643  (eval "$ac_compile") 2>conftest.er1
31644  ac_status=$?
31645  grep -v '^ *+' conftest.er1 >conftest.err
31646  rm -f conftest.er1
31647  cat conftest.err >&5
31648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649  (exit $ac_status); } && {
31650	 test -z "$ac_c_werror_flag" ||
31651	 test ! -s conftest.err
31652       } && test -s conftest.$ac_objext; then
31653  ac_header_compiler=yes
31654else
31655  echo "$as_me: failed program was:" >&5
31656sed 's/^/| /' conftest.$ac_ext >&5
31657
31658	ac_header_compiler=no
31659fi
31660
31661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31663echo "${ECHO_T}$ac_header_compiler" >&6; }
31664
31665# Is the header present?
31666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31668cat >conftest.$ac_ext <<_ACEOF
31669/* confdefs.h.  */
31670_ACEOF
31671cat confdefs.h >>conftest.$ac_ext
31672cat >>conftest.$ac_ext <<_ACEOF
31673/* end confdefs.h.  */
31674#include <$ac_header>
31675_ACEOF
31676if { (ac_try="$ac_cpp conftest.$ac_ext"
31677case "(($ac_try" in
31678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679  *) ac_try_echo=$ac_try;;
31680esac
31681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31683  ac_status=$?
31684  grep -v '^ *+' conftest.er1 >conftest.err
31685  rm -f conftest.er1
31686  cat conftest.err >&5
31687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688  (exit $ac_status); } >/dev/null && {
31689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31690	 test ! -s conftest.err
31691       }; then
31692  ac_header_preproc=yes
31693else
31694  echo "$as_me: failed program was:" >&5
31695sed 's/^/| /' conftest.$ac_ext >&5
31696
31697  ac_header_preproc=no
31698fi
31699
31700rm -f conftest.err conftest.$ac_ext
31701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31702echo "${ECHO_T}$ac_header_preproc" >&6; }
31703
31704# So?  What about this header?
31705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31706  yes:no: )
31707    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31709    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31711    ac_header_preproc=yes
31712    ;;
31713  no:yes:* )
31714    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31716    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31717echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31718    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31720    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31721echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31722    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31724    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31726    ( cat <<\_ASBOX
31727## --------------------------------------------- ##
31728## Report this to <http://www.openldap.org/its/> ##
31729## --------------------------------------------- ##
31730_ASBOX
31731     ) | sed "s/^/$as_me: WARNING:     /" >&2
31732    ;;
31733esac
31734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31737  echo $ECHO_N "(cached) $ECHO_C" >&6
31738else
31739  eval "$as_ac_Header=\$ac_header_preproc"
31740fi
31741ac_res=`eval echo '${'$as_ac_Header'}'`
31742	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31743echo "${ECHO_T}$ac_res" >&6; }
31744
31745fi
31746if test `eval echo '${'$as_ac_Header'}'` = yes; then
31747  cat >>confdefs.h <<_ACEOF
31748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31749_ACEOF
31750
31751fi
31752
31753done
31754
31755
31756	if test $ac_cv_header_slp_h = yes ; then
31757		{ echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31758echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31759if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31760  echo $ECHO_N "(cached) $ECHO_C" >&6
31761else
31762  ac_check_lib_save_LIBS=$LIBS
31763LIBS="-lslp  $LIBS"
31764cat >conftest.$ac_ext <<_ACEOF
31765/* confdefs.h.  */
31766_ACEOF
31767cat confdefs.h >>conftest.$ac_ext
31768cat >>conftest.$ac_ext <<_ACEOF
31769/* end confdefs.h.  */
31770
31771/* Override any GCC internal prototype to avoid an error.
31772   Use char because int might match the return type of a GCC
31773   builtin and then its argument prototype would still apply.  */
31774#ifdef __cplusplus
31775extern "C"
31776#endif
31777char SLPOpen ();
31778int
31779main ()
31780{
31781return SLPOpen ();
31782  ;
31783  return 0;
31784}
31785_ACEOF
31786rm -f conftest.$ac_objext conftest$ac_exeext
31787if { (ac_try="$ac_link"
31788case "(($ac_try" in
31789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790  *) ac_try_echo=$ac_try;;
31791esac
31792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793  (eval "$ac_link") 2>conftest.er1
31794  ac_status=$?
31795  grep -v '^ *+' conftest.er1 >conftest.err
31796  rm -f conftest.er1
31797  cat conftest.err >&5
31798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799  (exit $ac_status); } && {
31800	 test -z "$ac_c_werror_flag" ||
31801	 test ! -s conftest.err
31802       } && test -s conftest$ac_exeext &&
31803       $as_test_x conftest$ac_exeext; then
31804  ac_cv_lib_slp_SLPOpen=yes
31805else
31806  echo "$as_me: failed program was:" >&5
31807sed 's/^/| /' conftest.$ac_ext >&5
31808
31809	ac_cv_lib_slp_SLPOpen=no
31810fi
31811
31812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31813      conftest$ac_exeext conftest.$ac_ext
31814LIBS=$ac_check_lib_save_LIBS
31815fi
31816{ echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31817echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31818if test $ac_cv_lib_slp_SLPOpen = yes; then
31819  have_slp=yes
31820else
31821  have_slp=no
31822fi
31823
31824		if test $have_slp = yes ; then
31825
31826cat >>confdefs.h <<\_ACEOF
31827#define HAVE_SLP 1
31828_ACEOF
31829
31830			SLAPD_SLP_LIBS=-lslp
31831		fi
31832
31833	elif test $ol_enable_slp = yes ; then
31834		{ { echo "$as_me:$LINENO: error: SLP not found" >&5
31835echo "$as_me: error: SLP not found" >&2;}
31836   { (exit 1); exit 1; }; }
31837	fi
31838fi
31839
31840
31841{ echo "$as_me:$LINENO: checking for mode_t" >&5
31842echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31843if test "${ac_cv_type_mode_t+set}" = set; then
31844  echo $ECHO_N "(cached) $ECHO_C" >&6
31845else
31846  cat >conftest.$ac_ext <<_ACEOF
31847/* confdefs.h.  */
31848_ACEOF
31849cat confdefs.h >>conftest.$ac_ext
31850cat >>conftest.$ac_ext <<_ACEOF
31851/* end confdefs.h.  */
31852$ac_includes_default
31853typedef mode_t ac__type_new_;
31854int
31855main ()
31856{
31857if ((ac__type_new_ *) 0)
31858  return 0;
31859if (sizeof (ac__type_new_))
31860  return 0;
31861  ;
31862  return 0;
31863}
31864_ACEOF
31865rm -f conftest.$ac_objext
31866if { (ac_try="$ac_compile"
31867case "(($ac_try" in
31868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31869  *) ac_try_echo=$ac_try;;
31870esac
31871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31872  (eval "$ac_compile") 2>conftest.er1
31873  ac_status=$?
31874  grep -v '^ *+' conftest.er1 >conftest.err
31875  rm -f conftest.er1
31876  cat conftest.err >&5
31877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878  (exit $ac_status); } && {
31879	 test -z "$ac_c_werror_flag" ||
31880	 test ! -s conftest.err
31881       } && test -s conftest.$ac_objext; then
31882  ac_cv_type_mode_t=yes
31883else
31884  echo "$as_me: failed program was:" >&5
31885sed 's/^/| /' conftest.$ac_ext >&5
31886
31887	ac_cv_type_mode_t=no
31888fi
31889
31890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31891fi
31892{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31893echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31894if test $ac_cv_type_mode_t = yes; then
31895  :
31896else
31897
31898cat >>confdefs.h <<_ACEOF
31899#define mode_t int
31900_ACEOF
31901
31902fi
31903
31904{ echo "$as_me:$LINENO: checking for off_t" >&5
31905echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31906if test "${ac_cv_type_off_t+set}" = set; then
31907  echo $ECHO_N "(cached) $ECHO_C" >&6
31908else
31909  cat >conftest.$ac_ext <<_ACEOF
31910/* confdefs.h.  */
31911_ACEOF
31912cat confdefs.h >>conftest.$ac_ext
31913cat >>conftest.$ac_ext <<_ACEOF
31914/* end confdefs.h.  */
31915$ac_includes_default
31916typedef off_t ac__type_new_;
31917int
31918main ()
31919{
31920if ((ac__type_new_ *) 0)
31921  return 0;
31922if (sizeof (ac__type_new_))
31923  return 0;
31924  ;
31925  return 0;
31926}
31927_ACEOF
31928rm -f conftest.$ac_objext
31929if { (ac_try="$ac_compile"
31930case "(($ac_try" in
31931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932  *) ac_try_echo=$ac_try;;
31933esac
31934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935  (eval "$ac_compile") 2>conftest.er1
31936  ac_status=$?
31937  grep -v '^ *+' conftest.er1 >conftest.err
31938  rm -f conftest.er1
31939  cat conftest.err >&5
31940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941  (exit $ac_status); } && {
31942	 test -z "$ac_c_werror_flag" ||
31943	 test ! -s conftest.err
31944       } && test -s conftest.$ac_objext; then
31945  ac_cv_type_off_t=yes
31946else
31947  echo "$as_me: failed program was:" >&5
31948sed 's/^/| /' conftest.$ac_ext >&5
31949
31950	ac_cv_type_off_t=no
31951fi
31952
31953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954fi
31955{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31956echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31957if test $ac_cv_type_off_t = yes; then
31958  :
31959else
31960
31961cat >>confdefs.h <<_ACEOF
31962#define off_t long
31963_ACEOF
31964
31965fi
31966
31967{ echo "$as_me:$LINENO: checking for pid_t" >&5
31968echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31969if test "${ac_cv_type_pid_t+set}" = set; then
31970  echo $ECHO_N "(cached) $ECHO_C" >&6
31971else
31972  cat >conftest.$ac_ext <<_ACEOF
31973/* confdefs.h.  */
31974_ACEOF
31975cat confdefs.h >>conftest.$ac_ext
31976cat >>conftest.$ac_ext <<_ACEOF
31977/* end confdefs.h.  */
31978$ac_includes_default
31979typedef pid_t ac__type_new_;
31980int
31981main ()
31982{
31983if ((ac__type_new_ *) 0)
31984  return 0;
31985if (sizeof (ac__type_new_))
31986  return 0;
31987  ;
31988  return 0;
31989}
31990_ACEOF
31991rm -f conftest.$ac_objext
31992if { (ac_try="$ac_compile"
31993case "(($ac_try" in
31994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995  *) ac_try_echo=$ac_try;;
31996esac
31997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998  (eval "$ac_compile") 2>conftest.er1
31999  ac_status=$?
32000  grep -v '^ *+' conftest.er1 >conftest.err
32001  rm -f conftest.er1
32002  cat conftest.err >&5
32003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004  (exit $ac_status); } && {
32005	 test -z "$ac_c_werror_flag" ||
32006	 test ! -s conftest.err
32007       } && test -s conftest.$ac_objext; then
32008  ac_cv_type_pid_t=yes
32009else
32010  echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
32013	ac_cv_type_pid_t=no
32014fi
32015
32016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32017fi
32018{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32019echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32020if test $ac_cv_type_pid_t = yes; then
32021  :
32022else
32023
32024cat >>confdefs.h <<_ACEOF
32025#define pid_t int
32026_ACEOF
32027
32028fi
32029
32030{ echo "$as_me:$LINENO: checking for ssize_t" >&5
32031echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32032if test "${ac_cv_type_ssize_t+set}" = set; then
32033  echo $ECHO_N "(cached) $ECHO_C" >&6
32034else
32035  cat >conftest.$ac_ext <<_ACEOF
32036/* confdefs.h.  */
32037_ACEOF
32038cat confdefs.h >>conftest.$ac_ext
32039cat >>conftest.$ac_ext <<_ACEOF
32040/* end confdefs.h.  */
32041$ac_includes_default
32042typedef ssize_t ac__type_new_;
32043int
32044main ()
32045{
32046if ((ac__type_new_ *) 0)
32047  return 0;
32048if (sizeof (ac__type_new_))
32049  return 0;
32050  ;
32051  return 0;
32052}
32053_ACEOF
32054rm -f conftest.$ac_objext
32055if { (ac_try="$ac_compile"
32056case "(($ac_try" in
32057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058  *) ac_try_echo=$ac_try;;
32059esac
32060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061  (eval "$ac_compile") 2>conftest.er1
32062  ac_status=$?
32063  grep -v '^ *+' conftest.er1 >conftest.err
32064  rm -f conftest.er1
32065  cat conftest.err >&5
32066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067  (exit $ac_status); } && {
32068	 test -z "$ac_c_werror_flag" ||
32069	 test ! -s conftest.err
32070       } && test -s conftest.$ac_objext; then
32071  ac_cv_type_ssize_t=yes
32072else
32073  echo "$as_me: failed program was:" >&5
32074sed 's/^/| /' conftest.$ac_ext >&5
32075
32076	ac_cv_type_ssize_t=no
32077fi
32078
32079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32080fi
32081{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32082echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32083if test $ac_cv_type_ssize_t = yes; then
32084  :
32085else
32086
32087cat >>confdefs.h <<_ACEOF
32088#define ssize_t signed int
32089_ACEOF
32090
32091fi
32092
32093{ echo "$as_me:$LINENO: checking for caddr_t" >&5
32094echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32095if test "${ac_cv_type_caddr_t+set}" = set; then
32096  echo $ECHO_N "(cached) $ECHO_C" >&6
32097else
32098  cat >conftest.$ac_ext <<_ACEOF
32099/* confdefs.h.  */
32100_ACEOF
32101cat confdefs.h >>conftest.$ac_ext
32102cat >>conftest.$ac_ext <<_ACEOF
32103/* end confdefs.h.  */
32104$ac_includes_default
32105typedef caddr_t ac__type_new_;
32106int
32107main ()
32108{
32109if ((ac__type_new_ *) 0)
32110  return 0;
32111if (sizeof (ac__type_new_))
32112  return 0;
32113  ;
32114  return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext
32118if { (ac_try="$ac_compile"
32119case "(($ac_try" in
32120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121  *) ac_try_echo=$ac_try;;
32122esac
32123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124  (eval "$ac_compile") 2>conftest.er1
32125  ac_status=$?
32126  grep -v '^ *+' conftest.er1 >conftest.err
32127  rm -f conftest.er1
32128  cat conftest.err >&5
32129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130  (exit $ac_status); } && {
32131	 test -z "$ac_c_werror_flag" ||
32132	 test ! -s conftest.err
32133       } && test -s conftest.$ac_objext; then
32134  ac_cv_type_caddr_t=yes
32135else
32136  echo "$as_me: failed program was:" >&5
32137sed 's/^/| /' conftest.$ac_ext >&5
32138
32139	ac_cv_type_caddr_t=no
32140fi
32141
32142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32143fi
32144{ echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32145echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32146if test $ac_cv_type_caddr_t = yes; then
32147  :
32148else
32149
32150cat >>confdefs.h <<_ACEOF
32151#define caddr_t char *
32152_ACEOF
32153
32154fi
32155
32156{ echo "$as_me:$LINENO: checking for size_t" >&5
32157echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32158if test "${ac_cv_type_size_t+set}" = set; then
32159  echo $ECHO_N "(cached) $ECHO_C" >&6
32160else
32161  cat >conftest.$ac_ext <<_ACEOF
32162/* confdefs.h.  */
32163_ACEOF
32164cat confdefs.h >>conftest.$ac_ext
32165cat >>conftest.$ac_ext <<_ACEOF
32166/* end confdefs.h.  */
32167$ac_includes_default
32168typedef size_t ac__type_new_;
32169int
32170main ()
32171{
32172if ((ac__type_new_ *) 0)
32173  return 0;
32174if (sizeof (ac__type_new_))
32175  return 0;
32176  ;
32177  return 0;
32178}
32179_ACEOF
32180rm -f conftest.$ac_objext
32181if { (ac_try="$ac_compile"
32182case "(($ac_try" in
32183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184  *) ac_try_echo=$ac_try;;
32185esac
32186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187  (eval "$ac_compile") 2>conftest.er1
32188  ac_status=$?
32189  grep -v '^ *+' conftest.er1 >conftest.err
32190  rm -f conftest.er1
32191  cat conftest.err >&5
32192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193  (exit $ac_status); } && {
32194	 test -z "$ac_c_werror_flag" ||
32195	 test ! -s conftest.err
32196       } && test -s conftest.$ac_objext; then
32197  ac_cv_type_size_t=yes
32198else
32199  echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202	ac_cv_type_size_t=no
32203fi
32204
32205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206fi
32207{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32208echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32209if test $ac_cv_type_size_t = yes; then
32210  :
32211else
32212
32213cat >>confdefs.h <<_ACEOF
32214#define size_t unsigned
32215_ACEOF
32216
32217fi
32218
32219
32220{ echo "$as_me:$LINENO: checking for long long" >&5
32221echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32222if test "${ac_cv_type_long_long+set}" = set; then
32223  echo $ECHO_N "(cached) $ECHO_C" >&6
32224else
32225  cat >conftest.$ac_ext <<_ACEOF
32226/* confdefs.h.  */
32227_ACEOF
32228cat confdefs.h >>conftest.$ac_ext
32229cat >>conftest.$ac_ext <<_ACEOF
32230/* end confdefs.h.  */
32231$ac_includes_default
32232typedef long long ac__type_new_;
32233int
32234main ()
32235{
32236if ((ac__type_new_ *) 0)
32237  return 0;
32238if (sizeof (ac__type_new_))
32239  return 0;
32240  ;
32241  return 0;
32242}
32243_ACEOF
32244rm -f conftest.$ac_objext
32245if { (ac_try="$ac_compile"
32246case "(($ac_try" in
32247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248  *) ac_try_echo=$ac_try;;
32249esac
32250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251  (eval "$ac_compile") 2>conftest.er1
32252  ac_status=$?
32253  grep -v '^ *+' conftest.er1 >conftest.err
32254  rm -f conftest.er1
32255  cat conftest.err >&5
32256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257  (exit $ac_status); } && {
32258	 test -z "$ac_c_werror_flag" ||
32259	 test ! -s conftest.err
32260       } && test -s conftest.$ac_objext; then
32261  ac_cv_type_long_long=yes
32262else
32263  echo "$as_me: failed program was:" >&5
32264sed 's/^/| /' conftest.$ac_ext >&5
32265
32266	ac_cv_type_long_long=no
32267fi
32268
32269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32270fi
32271{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32272echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32273if test $ac_cv_type_long_long = yes; then
32274
32275cat >>confdefs.h <<_ACEOF
32276#define HAVE_LONG_LONG 1
32277_ACEOF
32278
32279
32280fi
32281
32282{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32283echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32284if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32285  echo $ECHO_N "(cached) $ECHO_C" >&6
32286else
32287  cat >conftest.$ac_ext <<_ACEOF
32288/* confdefs.h.  */
32289_ACEOF
32290cat confdefs.h >>conftest.$ac_ext
32291cat >>conftest.$ac_ext <<_ACEOF
32292/* end confdefs.h.  */
32293$ac_includes_default
32294typedef ptrdiff_t ac__type_new_;
32295int
32296main ()
32297{
32298if ((ac__type_new_ *) 0)
32299  return 0;
32300if (sizeof (ac__type_new_))
32301  return 0;
32302  ;
32303  return 0;
32304}
32305_ACEOF
32306rm -f conftest.$ac_objext
32307if { (ac_try="$ac_compile"
32308case "(($ac_try" in
32309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32310  *) ac_try_echo=$ac_try;;
32311esac
32312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32313  (eval "$ac_compile") 2>conftest.er1
32314  ac_status=$?
32315  grep -v '^ *+' conftest.er1 >conftest.err
32316  rm -f conftest.er1
32317  cat conftest.err >&5
32318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319  (exit $ac_status); } && {
32320	 test -z "$ac_c_werror_flag" ||
32321	 test ! -s conftest.err
32322       } && test -s conftest.$ac_objext; then
32323  ac_cv_type_ptrdiff_t=yes
32324else
32325  echo "$as_me: failed program was:" >&5
32326sed 's/^/| /' conftest.$ac_ext >&5
32327
32328	ac_cv_type_ptrdiff_t=no
32329fi
32330
32331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32332fi
32333{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32334echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32335if test $ac_cv_type_ptrdiff_t = yes; then
32336
32337cat >>confdefs.h <<_ACEOF
32338#define HAVE_PTRDIFF_T 1
32339_ACEOF
32340
32341
32342fi
32343
32344
32345
32346{ echo "$as_me:$LINENO: checking for socklen_t" >&5
32347echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32348if test "${ac_cv_type_socklen_t+set}" = set; then
32349  echo $ECHO_N "(cached) $ECHO_C" >&6
32350else
32351  cat >conftest.$ac_ext <<_ACEOF
32352/* confdefs.h.  */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h.  */
32357$ac_includes_default
32358#ifdef HAVE_SYS_SOCKET_H
32359#include <sys/socket.h>
32360#endif
32361
32362typedef socklen_t ac__type_new_;
32363int
32364main ()
32365{
32366if ((ac__type_new_ *) 0)
32367  return 0;
32368if (sizeof (ac__type_new_))
32369  return 0;
32370  ;
32371  return 0;
32372}
32373_ACEOF
32374rm -f conftest.$ac_objext
32375if { (ac_try="$ac_compile"
32376case "(($ac_try" in
32377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32378  *) ac_try_echo=$ac_try;;
32379esac
32380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32381  (eval "$ac_compile") 2>conftest.er1
32382  ac_status=$?
32383  grep -v '^ *+' conftest.er1 >conftest.err
32384  rm -f conftest.er1
32385  cat conftest.err >&5
32386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387  (exit $ac_status); } && {
32388	 test -z "$ac_c_werror_flag" ||
32389	 test ! -s conftest.err
32390       } && test -s conftest.$ac_objext; then
32391  ac_cv_type_socklen_t=yes
32392else
32393  echo "$as_me: failed program was:" >&5
32394sed 's/^/| /' conftest.$ac_ext >&5
32395
32396	ac_cv_type_socklen_t=no
32397fi
32398
32399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400fi
32401{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32402echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32403
32404
32405{ echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32406echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32407if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32408  echo $ECHO_N "(cached) $ECHO_C" >&6
32409else
32410
32411	set socklen_t int unsigned "unsigned long" long size_t
32412	test "$ac_cv_type_socklen_t" = yes || shift
32413	ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32414	for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32415		cat >conftest.$ac_ext <<_ACEOF
32416/* confdefs.h.  */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h.  */
32421$ac_includes_default
32422#ifdef HAVE_SYS_SOCKET_H
32423#include <sys/socket.h>
32424#endif
32425extern int accept(int s, $addrtype *ap, $lentype *lp);
32426
32427int
32428main ()
32429{
32430
32431accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32432
32433  ;
32434  return 0;
32435}
32436_ACEOF
32437rm -f conftest.$ac_objext
32438if { (ac_try="$ac_compile"
32439case "(($ac_try" in
32440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32441  *) ac_try_echo=$ac_try;;
32442esac
32443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32444  (eval "$ac_compile") 2>conftest.er1
32445  ac_status=$?
32446  grep -v '^ *+' conftest.er1 >conftest.err
32447  rm -f conftest.er1
32448  cat conftest.err >&5
32449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450  (exit $ac_status); } && {
32451	 test -z "$ac_c_werror_flag" ||
32452	 test ! -s conftest.err
32453       } && test -s conftest.$ac_objext; then
32454  ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32455else
32456  echo "$as_me: failed program was:" >&5
32457sed 's/^/| /' conftest.$ac_ext >&5
32458
32459
32460fi
32461
32462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32463	done ; done
32464fi
32465
32466{ echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32467echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32468
32469cat >>confdefs.h <<_ACEOF
32470#define ber_socklen_t $ol_cv_type_ber_socklen_t
32471_ACEOF
32472
32473
32474if test "$ac_cv_type_socklen_t" != yes; then
32475
32476cat >>confdefs.h <<_ACEOF
32477#define socklen_t $ol_cv_type_ber_socklen_t
32478_ACEOF
32479
32480fi
32481
32482
32483{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32484echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32485if test "${ac_cv_type_signal+set}" = set; then
32486  echo $ECHO_N "(cached) $ECHO_C" >&6
32487else
32488  cat >conftest.$ac_ext <<_ACEOF
32489/* confdefs.h.  */
32490_ACEOF
32491cat confdefs.h >>conftest.$ac_ext
32492cat >>conftest.$ac_ext <<_ACEOF
32493/* end confdefs.h.  */
32494#include <sys/types.h>
32495#include <signal.h>
32496
32497int
32498main ()
32499{
32500return *(signal (0, 0)) (0) == 1;
32501  ;
32502  return 0;
32503}
32504_ACEOF
32505rm -f conftest.$ac_objext
32506if { (ac_try="$ac_compile"
32507case "(($ac_try" in
32508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509  *) ac_try_echo=$ac_try;;
32510esac
32511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512  (eval "$ac_compile") 2>conftest.er1
32513  ac_status=$?
32514  grep -v '^ *+' conftest.er1 >conftest.err
32515  rm -f conftest.er1
32516  cat conftest.err >&5
32517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518  (exit $ac_status); } && {
32519	 test -z "$ac_c_werror_flag" ||
32520	 test ! -s conftest.err
32521       } && test -s conftest.$ac_objext; then
32522  ac_cv_type_signal=int
32523else
32524  echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
32527	ac_cv_type_signal=void
32528fi
32529
32530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32531fi
32532{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32533echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32534
32535cat >>confdefs.h <<_ACEOF
32536#define RETSIGTYPE $ac_cv_type_signal
32537_ACEOF
32538
32539
32540
32541{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32542echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32543if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32544  echo $ECHO_N "(cached) $ECHO_C" >&6
32545else
32546  cat >conftest.$ac_ext <<_ACEOF
32547/* confdefs.h.  */
32548_ACEOF
32549cat confdefs.h >>conftest.$ac_ext
32550cat >>conftest.$ac_ext <<_ACEOF
32551/* end confdefs.h.  */
32552$ac_includes_default
32553#include <signal.h>
32554
32555
32556typedef sig_atomic_t ac__type_new_;
32557int
32558main ()
32559{
32560if ((ac__type_new_ *) 0)
32561  return 0;
32562if (sizeof (ac__type_new_))
32563  return 0;
32564  ;
32565  return 0;
32566}
32567_ACEOF
32568rm -f conftest.$ac_objext
32569if { (ac_try="$ac_compile"
32570case "(($ac_try" in
32571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572  *) ac_try_echo=$ac_try;;
32573esac
32574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575  (eval "$ac_compile") 2>conftest.er1
32576  ac_status=$?
32577  grep -v '^ *+' conftest.er1 >conftest.err
32578  rm -f conftest.er1
32579  cat conftest.err >&5
32580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581  (exit $ac_status); } && {
32582	 test -z "$ac_c_werror_flag" ||
32583	 test ! -s conftest.err
32584       } && test -s conftest.$ac_objext; then
32585  ac_cv_type_sig_atomic_t=yes
32586else
32587  echo "$as_me: failed program was:" >&5
32588sed 's/^/| /' conftest.$ac_ext >&5
32589
32590	ac_cv_type_sig_atomic_t=no
32591fi
32592
32593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32594fi
32595{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32596echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32597if test $ac_cv_type_sig_atomic_t = yes; then
32598  :
32599else
32600
32601cat >>confdefs.h <<_ACEOF
32602#define sig_atomic_t int
32603_ACEOF
32604
32605fi
32606
32607
32608{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32609echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32610if test "${ac_cv_type_uid_t+set}" = set; then
32611  echo $ECHO_N "(cached) $ECHO_C" >&6
32612else
32613  cat >conftest.$ac_ext <<_ACEOF
32614/* confdefs.h.  */
32615_ACEOF
32616cat confdefs.h >>conftest.$ac_ext
32617cat >>conftest.$ac_ext <<_ACEOF
32618/* end confdefs.h.  */
32619#include <sys/types.h>
32620
32621_ACEOF
32622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32623  $EGREP "uid_t" >/dev/null 2>&1; then
32624  ac_cv_type_uid_t=yes
32625else
32626  ac_cv_type_uid_t=no
32627fi
32628rm -f -r conftest*
32629
32630fi
32631{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32632echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32633if test $ac_cv_type_uid_t = no; then
32634
32635cat >>confdefs.h <<\_ACEOF
32636#define uid_t int
32637_ACEOF
32638
32639
32640cat >>confdefs.h <<\_ACEOF
32641#define gid_t int
32642_ACEOF
32643
32644fi
32645
32646
32647{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32648echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32649if test "${ac_cv_header_time+set}" = set; then
32650  echo $ECHO_N "(cached) $ECHO_C" >&6
32651else
32652  cat >conftest.$ac_ext <<_ACEOF
32653/* confdefs.h.  */
32654_ACEOF
32655cat confdefs.h >>conftest.$ac_ext
32656cat >>conftest.$ac_ext <<_ACEOF
32657/* end confdefs.h.  */
32658#include <sys/types.h>
32659#include <sys/time.h>
32660#include <time.h>
32661
32662int
32663main ()
32664{
32665if ((struct tm *) 0)
32666return 0;
32667  ;
32668  return 0;
32669}
32670_ACEOF
32671rm -f conftest.$ac_objext
32672if { (ac_try="$ac_compile"
32673case "(($ac_try" in
32674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675  *) ac_try_echo=$ac_try;;
32676esac
32677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678  (eval "$ac_compile") 2>conftest.er1
32679  ac_status=$?
32680  grep -v '^ *+' conftest.er1 >conftest.err
32681  rm -f conftest.er1
32682  cat conftest.err >&5
32683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684  (exit $ac_status); } && {
32685	 test -z "$ac_c_werror_flag" ||
32686	 test ! -s conftest.err
32687       } && test -s conftest.$ac_objext; then
32688  ac_cv_header_time=yes
32689else
32690  echo "$as_me: failed program was:" >&5
32691sed 's/^/| /' conftest.$ac_ext >&5
32692
32693	ac_cv_header_time=no
32694fi
32695
32696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32697fi
32698{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32699echo "${ECHO_T}$ac_cv_header_time" >&6; }
32700if test $ac_cv_header_time = yes; then
32701
32702cat >>confdefs.h <<\_ACEOF
32703#define TIME_WITH_SYS_TIME 1
32704_ACEOF
32705
32706fi
32707
32708{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32709echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32710if test "${ac_cv_struct_tm+set}" = set; then
32711  echo $ECHO_N "(cached) $ECHO_C" >&6
32712else
32713  cat >conftest.$ac_ext <<_ACEOF
32714/* confdefs.h.  */
32715_ACEOF
32716cat confdefs.h >>conftest.$ac_ext
32717cat >>conftest.$ac_ext <<_ACEOF
32718/* end confdefs.h.  */
32719#include <sys/types.h>
32720#include <time.h>
32721
32722int
32723main ()
32724{
32725struct tm tm;
32726				     int *p = &tm.tm_sec;
32727 				     return !p;
32728  ;
32729  return 0;
32730}
32731_ACEOF
32732rm -f conftest.$ac_objext
32733if { (ac_try="$ac_compile"
32734case "(($ac_try" in
32735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736  *) ac_try_echo=$ac_try;;
32737esac
32738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739  (eval "$ac_compile") 2>conftest.er1
32740  ac_status=$?
32741  grep -v '^ *+' conftest.er1 >conftest.err
32742  rm -f conftest.er1
32743  cat conftest.err >&5
32744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745  (exit $ac_status); } && {
32746	 test -z "$ac_c_werror_flag" ||
32747	 test ! -s conftest.err
32748       } && test -s conftest.$ac_objext; then
32749  ac_cv_struct_tm=time.h
32750else
32751  echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
32754	ac_cv_struct_tm=sys/time.h
32755fi
32756
32757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32758fi
32759{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32760echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32761if test $ac_cv_struct_tm = sys/time.h; then
32762
32763cat >>confdefs.h <<\_ACEOF
32764#define TM_IN_SYS_TIME 1
32765_ACEOF
32766
32767fi
32768
32769{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32770echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32771if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32772  echo $ECHO_N "(cached) $ECHO_C" >&6
32773else
32774  cat >conftest.$ac_ext <<_ACEOF
32775/* confdefs.h.  */
32776_ACEOF
32777cat confdefs.h >>conftest.$ac_ext
32778cat >>conftest.$ac_ext <<_ACEOF
32779/* end confdefs.h.  */
32780$ac_includes_default
32781int
32782main ()
32783{
32784static struct stat ac_aggr;
32785if (ac_aggr.st_blksize)
32786return 0;
32787  ;
32788  return 0;
32789}
32790_ACEOF
32791rm -f conftest.$ac_objext
32792if { (ac_try="$ac_compile"
32793case "(($ac_try" in
32794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795  *) ac_try_echo=$ac_try;;
32796esac
32797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798  (eval "$ac_compile") 2>conftest.er1
32799  ac_status=$?
32800  grep -v '^ *+' conftest.er1 >conftest.err
32801  rm -f conftest.er1
32802  cat conftest.err >&5
32803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804  (exit $ac_status); } && {
32805	 test -z "$ac_c_werror_flag" ||
32806	 test ! -s conftest.err
32807       } && test -s conftest.$ac_objext; then
32808  ac_cv_member_struct_stat_st_blksize=yes
32809else
32810  echo "$as_me: failed program was:" >&5
32811sed 's/^/| /' conftest.$ac_ext >&5
32812
32813	cat >conftest.$ac_ext <<_ACEOF
32814/* confdefs.h.  */
32815_ACEOF
32816cat confdefs.h >>conftest.$ac_ext
32817cat >>conftest.$ac_ext <<_ACEOF
32818/* end confdefs.h.  */
32819$ac_includes_default
32820int
32821main ()
32822{
32823static struct stat ac_aggr;
32824if (sizeof ac_aggr.st_blksize)
32825return 0;
32826  ;
32827  return 0;
32828}
32829_ACEOF
32830rm -f conftest.$ac_objext
32831if { (ac_try="$ac_compile"
32832case "(($ac_try" in
32833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834  *) ac_try_echo=$ac_try;;
32835esac
32836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32837  (eval "$ac_compile") 2>conftest.er1
32838  ac_status=$?
32839  grep -v '^ *+' conftest.er1 >conftest.err
32840  rm -f conftest.er1
32841  cat conftest.err >&5
32842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843  (exit $ac_status); } && {
32844	 test -z "$ac_c_werror_flag" ||
32845	 test ! -s conftest.err
32846       } && test -s conftest.$ac_objext; then
32847  ac_cv_member_struct_stat_st_blksize=yes
32848else
32849  echo "$as_me: failed program was:" >&5
32850sed 's/^/| /' conftest.$ac_ext >&5
32851
32852	ac_cv_member_struct_stat_st_blksize=no
32853fi
32854
32855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32856fi
32857
32858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32859fi
32860{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32861echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32862if test $ac_cv_member_struct_stat_st_blksize = yes; then
32863
32864cat >>confdefs.h <<_ACEOF
32865#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32866_ACEOF
32867
32868
32869fi
32870
32871{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32872echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32873if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32874  echo $ECHO_N "(cached) $ECHO_C" >&6
32875else
32876  cat >conftest.$ac_ext <<_ACEOF
32877/* confdefs.h.  */
32878_ACEOF
32879cat confdefs.h >>conftest.$ac_ext
32880cat >>conftest.$ac_ext <<_ACEOF
32881/* end confdefs.h.  */
32882$ac_includes_default
32883#include <pwd.h>
32884
32885int
32886main ()
32887{
32888static struct passwd ac_aggr;
32889if (ac_aggr.pw_gecos)
32890return 0;
32891  ;
32892  return 0;
32893}
32894_ACEOF
32895rm -f conftest.$ac_objext
32896if { (ac_try="$ac_compile"
32897case "(($ac_try" in
32898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32899  *) ac_try_echo=$ac_try;;
32900esac
32901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32902  (eval "$ac_compile") 2>conftest.er1
32903  ac_status=$?
32904  grep -v '^ *+' conftest.er1 >conftest.err
32905  rm -f conftest.er1
32906  cat conftest.err >&5
32907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908  (exit $ac_status); } && {
32909	 test -z "$ac_c_werror_flag" ||
32910	 test ! -s conftest.err
32911       } && test -s conftest.$ac_objext; then
32912  ac_cv_member_struct_passwd_pw_gecos=yes
32913else
32914  echo "$as_me: failed program was:" >&5
32915sed 's/^/| /' conftest.$ac_ext >&5
32916
32917	cat >conftest.$ac_ext <<_ACEOF
32918/* confdefs.h.  */
32919_ACEOF
32920cat confdefs.h >>conftest.$ac_ext
32921cat >>conftest.$ac_ext <<_ACEOF
32922/* end confdefs.h.  */
32923$ac_includes_default
32924#include <pwd.h>
32925
32926int
32927main ()
32928{
32929static struct passwd ac_aggr;
32930if (sizeof ac_aggr.pw_gecos)
32931return 0;
32932  ;
32933  return 0;
32934}
32935_ACEOF
32936rm -f conftest.$ac_objext
32937if { (ac_try="$ac_compile"
32938case "(($ac_try" in
32939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940  *) ac_try_echo=$ac_try;;
32941esac
32942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943  (eval "$ac_compile") 2>conftest.er1
32944  ac_status=$?
32945  grep -v '^ *+' conftest.er1 >conftest.err
32946  rm -f conftest.er1
32947  cat conftest.err >&5
32948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949  (exit $ac_status); } && {
32950	 test -z "$ac_c_werror_flag" ||
32951	 test ! -s conftest.err
32952       } && test -s conftest.$ac_objext; then
32953  ac_cv_member_struct_passwd_pw_gecos=yes
32954else
32955  echo "$as_me: failed program was:" >&5
32956sed 's/^/| /' conftest.$ac_ext >&5
32957
32958	ac_cv_member_struct_passwd_pw_gecos=no
32959fi
32960
32961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32962fi
32963
32964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32965fi
32966{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32967echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32968if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32969
32970cat >>confdefs.h <<_ACEOF
32971#define HAVE_STRUCT_PASSWD_PW_GECOS 1
32972_ACEOF
32973
32974
32975fi
32976
32977{ echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32978echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32979if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32980  echo $ECHO_N "(cached) $ECHO_C" >&6
32981else
32982  cat >conftest.$ac_ext <<_ACEOF
32983/* confdefs.h.  */
32984_ACEOF
32985cat confdefs.h >>conftest.$ac_ext
32986cat >>conftest.$ac_ext <<_ACEOF
32987/* end confdefs.h.  */
32988$ac_includes_default
32989#include <pwd.h>
32990
32991int
32992main ()
32993{
32994static struct passwd ac_aggr;
32995if (ac_aggr.pw_passwd)
32996return 0;
32997  ;
32998  return 0;
32999}
33000_ACEOF
33001rm -f conftest.$ac_objext
33002if { (ac_try="$ac_compile"
33003case "(($ac_try" in
33004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005  *) ac_try_echo=$ac_try;;
33006esac
33007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008  (eval "$ac_compile") 2>conftest.er1
33009  ac_status=$?
33010  grep -v '^ *+' conftest.er1 >conftest.err
33011  rm -f conftest.er1
33012  cat conftest.err >&5
33013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014  (exit $ac_status); } && {
33015	 test -z "$ac_c_werror_flag" ||
33016	 test ! -s conftest.err
33017       } && test -s conftest.$ac_objext; then
33018  ac_cv_member_struct_passwd_pw_passwd=yes
33019else
33020  echo "$as_me: failed program was:" >&5
33021sed 's/^/| /' conftest.$ac_ext >&5
33022
33023	cat >conftest.$ac_ext <<_ACEOF
33024/* confdefs.h.  */
33025_ACEOF
33026cat confdefs.h >>conftest.$ac_ext
33027cat >>conftest.$ac_ext <<_ACEOF
33028/* end confdefs.h.  */
33029$ac_includes_default
33030#include <pwd.h>
33031
33032int
33033main ()
33034{
33035static struct passwd ac_aggr;
33036if (sizeof ac_aggr.pw_passwd)
33037return 0;
33038  ;
33039  return 0;
33040}
33041_ACEOF
33042rm -f conftest.$ac_objext
33043if { (ac_try="$ac_compile"
33044case "(($ac_try" in
33045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046  *) ac_try_echo=$ac_try;;
33047esac
33048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049  (eval "$ac_compile") 2>conftest.er1
33050  ac_status=$?
33051  grep -v '^ *+' conftest.er1 >conftest.err
33052  rm -f conftest.er1
33053  cat conftest.err >&5
33054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055  (exit $ac_status); } && {
33056	 test -z "$ac_c_werror_flag" ||
33057	 test ! -s conftest.err
33058       } && test -s conftest.$ac_objext; then
33059  ac_cv_member_struct_passwd_pw_passwd=yes
33060else
33061  echo "$as_me: failed program was:" >&5
33062sed 's/^/| /' conftest.$ac_ext >&5
33063
33064	ac_cv_member_struct_passwd_pw_passwd=no
33065fi
33066
33067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33068fi
33069
33070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071fi
33072{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33073echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33074if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33075
33076cat >>confdefs.h <<_ACEOF
33077#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33078_ACEOF
33079
33080
33081fi
33082
33083
33084{ echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33085echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33086if test "${ol_cv_c_upper_lower+set}" = set; then
33087  echo $ECHO_N "(cached) $ECHO_C" >&6
33088else
33089
33090	if test "$cross_compiling" = yes; then
33091  ol_cv_c_upper_lower=safe
33092else
33093  cat >conftest.$ac_ext <<_ACEOF
33094/* confdefs.h.  */
33095_ACEOF
33096cat confdefs.h >>conftest.$ac_ext
33097cat >>conftest.$ac_ext <<_ACEOF
33098/* end confdefs.h.  */
33099
33100#include <ctype.h>
33101main()
33102{
33103	if ('C' == toupper('C'))
33104		exit(0);
33105	else
33106		exit(1);
33107}
33108_ACEOF
33109rm -f conftest$ac_exeext
33110if { (ac_try="$ac_link"
33111case "(($ac_try" in
33112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113  *) ac_try_echo=$ac_try;;
33114esac
33115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116  (eval "$ac_link") 2>&5
33117  ac_status=$?
33118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33120  { (case "(($ac_try" in
33121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122  *) ac_try_echo=$ac_try;;
33123esac
33124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125  (eval "$ac_try") 2>&5
33126  ac_status=$?
33127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128  (exit $ac_status); }; }; then
33129  ol_cv_c_upper_lower=no
33130else
33131  echo "$as_me: program exited with status $ac_status" >&5
33132echo "$as_me: failed program was:" >&5
33133sed 's/^/| /' conftest.$ac_ext >&5
33134
33135( exit $ac_status )
33136ol_cv_c_upper_lower=yes
33137fi
33138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33139fi
33140
33141
33142fi
33143{ echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33144echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33145if test $ol_cv_c_upper_lower != no ; then
33146
33147cat >>confdefs.h <<\_ACEOF
33148#define C_UPPER_LOWER 1
33149_ACEOF
33150
33151fi
33152
33153{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33154echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33155if test "${ac_cv_c_const+set}" = set; then
33156  echo $ECHO_N "(cached) $ECHO_C" >&6
33157else
33158  cat >conftest.$ac_ext <<_ACEOF
33159/* confdefs.h.  */
33160_ACEOF
33161cat confdefs.h >>conftest.$ac_ext
33162cat >>conftest.$ac_ext <<_ACEOF
33163/* end confdefs.h.  */
33164
33165int
33166main ()
33167{
33168/* FIXME: Include the comments suggested by Paul. */
33169#ifndef __cplusplus
33170  /* Ultrix mips cc rejects this.  */
33171  typedef int charset[2];
33172  const charset cs;
33173  /* SunOS 4.1.1 cc rejects this.  */
33174  char const *const *pcpcc;
33175  char **ppc;
33176  /* NEC SVR4.0.2 mips cc rejects this.  */
33177  struct point {int x, y;};
33178  static struct point const zero = {0,0};
33179  /* AIX XL C 1.02.0.0 rejects this.
33180     It does not let you subtract one const X* pointer from another in
33181     an arm of an if-expression whose if-part is not a constant
33182     expression */
33183  const char *g = "string";
33184  pcpcc = &g + (g ? g-g : 0);
33185  /* HPUX 7.0 cc rejects these. */
33186  ++pcpcc;
33187  ppc = (char**) pcpcc;
33188  pcpcc = (char const *const *) ppc;
33189  { /* SCO 3.2v4 cc rejects this.  */
33190    char *t;
33191    char const *s = 0 ? (char *) 0 : (char const *) 0;
33192
33193    *t++ = 0;
33194    if (s) return 0;
33195  }
33196  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33197    int x[] = {25, 17};
33198    const int *foo = &x[0];
33199    ++foo;
33200  }
33201  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33202    typedef const int *iptr;
33203    iptr p = 0;
33204    ++p;
33205  }
33206  { /* AIX XL C 1.02.0.0 rejects this saying
33207       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33208    struct s { int j; const int *ap[3]; };
33209    struct s *b; b->j = 5;
33210  }
33211  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33212    const int foo = 10;
33213    if (!foo) return 0;
33214  }
33215  return !cs[0] && !zero.x;
33216#endif
33217
33218  ;
33219  return 0;
33220}
33221_ACEOF
33222rm -f conftest.$ac_objext
33223if { (ac_try="$ac_compile"
33224case "(($ac_try" in
33225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226  *) ac_try_echo=$ac_try;;
33227esac
33228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229  (eval "$ac_compile") 2>conftest.er1
33230  ac_status=$?
33231  grep -v '^ *+' conftest.er1 >conftest.err
33232  rm -f conftest.er1
33233  cat conftest.err >&5
33234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235  (exit $ac_status); } && {
33236	 test -z "$ac_c_werror_flag" ||
33237	 test ! -s conftest.err
33238       } && test -s conftest.$ac_objext; then
33239  ac_cv_c_const=yes
33240else
33241  echo "$as_me: failed program was:" >&5
33242sed 's/^/| /' conftest.$ac_ext >&5
33243
33244	ac_cv_c_const=no
33245fi
33246
33247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248fi
33249{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33250echo "${ECHO_T}$ac_cv_c_const" >&6; }
33251if test $ac_cv_c_const = no; then
33252
33253cat >>confdefs.h <<\_ACEOF
33254#define const
33255_ACEOF
33256
33257fi
33258
33259{ echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33260echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33261if test "${ol_cv_c_volatile+set}" = set; then
33262  echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264  cat >conftest.$ac_ext <<_ACEOF
33265/* confdefs.h.  */
33266_ACEOF
33267cat confdefs.h >>conftest.$ac_ext
33268cat >>conftest.$ac_ext <<_ACEOF
33269/* end confdefs.h.  */
33270int x, y, z;
33271int
33272main ()
33273{
33274volatile int a; int * volatile b = x ? &y : &z;
33275      /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33276      *b = 0;
33277  ;
33278  return 0;
33279}
33280_ACEOF
33281rm -f conftest.$ac_objext
33282if { (ac_try="$ac_compile"
33283case "(($ac_try" in
33284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285  *) ac_try_echo=$ac_try;;
33286esac
33287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288  (eval "$ac_compile") 2>conftest.er1
33289  ac_status=$?
33290  grep -v '^ *+' conftest.er1 >conftest.err
33291  rm -f conftest.er1
33292  cat conftest.err >&5
33293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294  (exit $ac_status); } && {
33295	 test -z "$ac_c_werror_flag" ||
33296	 test ! -s conftest.err
33297       } && test -s conftest.$ac_objext; then
33298  ol_cv_c_volatile=yes
33299else
33300  echo "$as_me: failed program was:" >&5
33301sed 's/^/| /' conftest.$ac_ext >&5
33302
33303	ol_cv_c_volatile=no
33304fi
33305
33306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33307fi
33308{ echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33309echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33310  if test $ol_cv_c_volatile = yes; then
33311    :
33312  else
33313
33314cat >>confdefs.h <<\_ACEOF
33315#define volatile
33316_ACEOF
33317
33318  fi
33319
33320
33321#if test $cross_compiling = yes ; then
33322#	AC_MSG_WARN([Crossing compiling... all bets are off!])
33323#	AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
33324#else
33325#	AC_C_BIGENDIAN
33326#fi
33327
33328{ echo "$as_me:$LINENO: checking for short" >&5
33329echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33330if test "${ac_cv_type_short+set}" = set; then
33331  echo $ECHO_N "(cached) $ECHO_C" >&6
33332else
33333  cat >conftest.$ac_ext <<_ACEOF
33334/* confdefs.h.  */
33335_ACEOF
33336cat confdefs.h >>conftest.$ac_ext
33337cat >>conftest.$ac_ext <<_ACEOF
33338/* end confdefs.h.  */
33339$ac_includes_default
33340typedef short ac__type_new_;
33341int
33342main ()
33343{
33344if ((ac__type_new_ *) 0)
33345  return 0;
33346if (sizeof (ac__type_new_))
33347  return 0;
33348  ;
33349  return 0;
33350}
33351_ACEOF
33352rm -f conftest.$ac_objext
33353if { (ac_try="$ac_compile"
33354case "(($ac_try" in
33355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33356  *) ac_try_echo=$ac_try;;
33357esac
33358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33359  (eval "$ac_compile") 2>conftest.er1
33360  ac_status=$?
33361  grep -v '^ *+' conftest.er1 >conftest.err
33362  rm -f conftest.er1
33363  cat conftest.err >&5
33364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365  (exit $ac_status); } && {
33366	 test -z "$ac_c_werror_flag" ||
33367	 test ! -s conftest.err
33368       } && test -s conftest.$ac_objext; then
33369  ac_cv_type_short=yes
33370else
33371  echo "$as_me: failed program was:" >&5
33372sed 's/^/| /' conftest.$ac_ext >&5
33373
33374	ac_cv_type_short=no
33375fi
33376
33377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33378fi
33379{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33380echo "${ECHO_T}$ac_cv_type_short" >&6; }
33381
33382# The cast to long int works around a bug in the HP C Compiler
33383# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33384# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33385# This bug is HP SR number 8606223364.
33386{ echo "$as_me:$LINENO: checking size of short" >&5
33387echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33388if test "${ac_cv_sizeof_short+set}" = set; then
33389  echo $ECHO_N "(cached) $ECHO_C" >&6
33390else
33391  if test "$cross_compiling" = yes; then
33392  # Depending upon the size, compute the lo and hi bounds.
33393cat >conftest.$ac_ext <<_ACEOF
33394/* confdefs.h.  */
33395_ACEOF
33396cat confdefs.h >>conftest.$ac_ext
33397cat >>conftest.$ac_ext <<_ACEOF
33398/* end confdefs.h.  */
33399$ac_includes_default
33400   typedef short ac__type_sizeof_;
33401int
33402main ()
33403{
33404static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33405test_array [0] = 0
33406
33407  ;
33408  return 0;
33409}
33410_ACEOF
33411rm -f conftest.$ac_objext
33412if { (ac_try="$ac_compile"
33413case "(($ac_try" in
33414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415  *) ac_try_echo=$ac_try;;
33416esac
33417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418  (eval "$ac_compile") 2>conftest.er1
33419  ac_status=$?
33420  grep -v '^ *+' conftest.er1 >conftest.err
33421  rm -f conftest.er1
33422  cat conftest.err >&5
33423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424  (exit $ac_status); } && {
33425	 test -z "$ac_c_werror_flag" ||
33426	 test ! -s conftest.err
33427       } && test -s conftest.$ac_objext; then
33428  ac_lo=0 ac_mid=0
33429  while :; do
33430    cat >conftest.$ac_ext <<_ACEOF
33431/* confdefs.h.  */
33432_ACEOF
33433cat confdefs.h >>conftest.$ac_ext
33434cat >>conftest.$ac_ext <<_ACEOF
33435/* end confdefs.h.  */
33436$ac_includes_default
33437   typedef short ac__type_sizeof_;
33438int
33439main ()
33440{
33441static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33442test_array [0] = 0
33443
33444  ;
33445  return 0;
33446}
33447_ACEOF
33448rm -f conftest.$ac_objext
33449if { (ac_try="$ac_compile"
33450case "(($ac_try" in
33451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33452  *) ac_try_echo=$ac_try;;
33453esac
33454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33455  (eval "$ac_compile") 2>conftest.er1
33456  ac_status=$?
33457  grep -v '^ *+' conftest.er1 >conftest.err
33458  rm -f conftest.er1
33459  cat conftest.err >&5
33460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461  (exit $ac_status); } && {
33462	 test -z "$ac_c_werror_flag" ||
33463	 test ! -s conftest.err
33464       } && test -s conftest.$ac_objext; then
33465  ac_hi=$ac_mid; break
33466else
33467  echo "$as_me: failed program was:" >&5
33468sed 's/^/| /' conftest.$ac_ext >&5
33469
33470	ac_lo=`expr $ac_mid + 1`
33471			if test $ac_lo -le $ac_mid; then
33472			  ac_lo= ac_hi=
33473			  break
33474			fi
33475			ac_mid=`expr 2 '*' $ac_mid + 1`
33476fi
33477
33478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33479  done
33480else
33481  echo "$as_me: failed program was:" >&5
33482sed 's/^/| /' conftest.$ac_ext >&5
33483
33484	cat >conftest.$ac_ext <<_ACEOF
33485/* confdefs.h.  */
33486_ACEOF
33487cat confdefs.h >>conftest.$ac_ext
33488cat >>conftest.$ac_ext <<_ACEOF
33489/* end confdefs.h.  */
33490$ac_includes_default
33491   typedef short ac__type_sizeof_;
33492int
33493main ()
33494{
33495static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33496test_array [0] = 0
33497
33498  ;
33499  return 0;
33500}
33501_ACEOF
33502rm -f conftest.$ac_objext
33503if { (ac_try="$ac_compile"
33504case "(($ac_try" in
33505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33506  *) ac_try_echo=$ac_try;;
33507esac
33508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33509  (eval "$ac_compile") 2>conftest.er1
33510  ac_status=$?
33511  grep -v '^ *+' conftest.er1 >conftest.err
33512  rm -f conftest.er1
33513  cat conftest.err >&5
33514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515  (exit $ac_status); } && {
33516	 test -z "$ac_c_werror_flag" ||
33517	 test ! -s conftest.err
33518       } && test -s conftest.$ac_objext; then
33519  ac_hi=-1 ac_mid=-1
33520  while :; do
33521    cat >conftest.$ac_ext <<_ACEOF
33522/* confdefs.h.  */
33523_ACEOF
33524cat confdefs.h >>conftest.$ac_ext
33525cat >>conftest.$ac_ext <<_ACEOF
33526/* end confdefs.h.  */
33527$ac_includes_default
33528   typedef short ac__type_sizeof_;
33529int
33530main ()
33531{
33532static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33533test_array [0] = 0
33534
33535  ;
33536  return 0;
33537}
33538_ACEOF
33539rm -f conftest.$ac_objext
33540if { (ac_try="$ac_compile"
33541case "(($ac_try" in
33542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33543  *) ac_try_echo=$ac_try;;
33544esac
33545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33546  (eval "$ac_compile") 2>conftest.er1
33547  ac_status=$?
33548  grep -v '^ *+' conftest.er1 >conftest.err
33549  rm -f conftest.er1
33550  cat conftest.err >&5
33551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552  (exit $ac_status); } && {
33553	 test -z "$ac_c_werror_flag" ||
33554	 test ! -s conftest.err
33555       } && test -s conftest.$ac_objext; then
33556  ac_lo=$ac_mid; break
33557else
33558  echo "$as_me: failed program was:" >&5
33559sed 's/^/| /' conftest.$ac_ext >&5
33560
33561	ac_hi=`expr '(' $ac_mid ')' - 1`
33562			if test $ac_mid -le $ac_hi; then
33563			  ac_lo= ac_hi=
33564			  break
33565			fi
33566			ac_mid=`expr 2 '*' $ac_mid`
33567fi
33568
33569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33570  done
33571else
33572  echo "$as_me: failed program was:" >&5
33573sed 's/^/| /' conftest.$ac_ext >&5
33574
33575	ac_lo= ac_hi=
33576fi
33577
33578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33579fi
33580
33581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33582# Binary search between lo and hi bounds.
33583while test "x$ac_lo" != "x$ac_hi"; do
33584  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33585  cat >conftest.$ac_ext <<_ACEOF
33586/* confdefs.h.  */
33587_ACEOF
33588cat confdefs.h >>conftest.$ac_ext
33589cat >>conftest.$ac_ext <<_ACEOF
33590/* end confdefs.h.  */
33591$ac_includes_default
33592   typedef short ac__type_sizeof_;
33593int
33594main ()
33595{
33596static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33597test_array [0] = 0
33598
33599  ;
33600  return 0;
33601}
33602_ACEOF
33603rm -f conftest.$ac_objext
33604if { (ac_try="$ac_compile"
33605case "(($ac_try" in
33606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607  *) ac_try_echo=$ac_try;;
33608esac
33609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610  (eval "$ac_compile") 2>conftest.er1
33611  ac_status=$?
33612  grep -v '^ *+' conftest.er1 >conftest.err
33613  rm -f conftest.er1
33614  cat conftest.err >&5
33615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616  (exit $ac_status); } && {
33617	 test -z "$ac_c_werror_flag" ||
33618	 test ! -s conftest.err
33619       } && test -s conftest.$ac_objext; then
33620  ac_hi=$ac_mid
33621else
33622  echo "$as_me: failed program was:" >&5
33623sed 's/^/| /' conftest.$ac_ext >&5
33624
33625	ac_lo=`expr '(' $ac_mid ')' + 1`
33626fi
33627
33628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33629done
33630case $ac_lo in
33631?*) ac_cv_sizeof_short=$ac_lo;;
33632'') if test "$ac_cv_type_short" = yes; then
33633     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33634See \`config.log' for more details." >&5
33635echo "$as_me: error: cannot compute sizeof (short)
33636See \`config.log' for more details." >&2;}
33637   { (exit 77); exit 77; }; }
33638   else
33639     ac_cv_sizeof_short=0
33640   fi ;;
33641esac
33642else
33643  cat >conftest.$ac_ext <<_ACEOF
33644/* confdefs.h.  */
33645_ACEOF
33646cat confdefs.h >>conftest.$ac_ext
33647cat >>conftest.$ac_ext <<_ACEOF
33648/* end confdefs.h.  */
33649$ac_includes_default
33650   typedef short ac__type_sizeof_;
33651static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33652static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33653#include <stdio.h>
33654#include <stdlib.h>
33655int
33656main ()
33657{
33658
33659  FILE *f = fopen ("conftest.val", "w");
33660  if (! f)
33661    return 1;
33662  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33663    {
33664      long int i = longval ();
33665      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33666	return 1;
33667      fprintf (f, "%ld\n", i);
33668    }
33669  else
33670    {
33671      unsigned long int i = ulongval ();
33672      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33673	return 1;
33674      fprintf (f, "%lu\n", i);
33675    }
33676  return ferror (f) || fclose (f) != 0;
33677
33678  ;
33679  return 0;
33680}
33681_ACEOF
33682rm -f conftest$ac_exeext
33683if { (ac_try="$ac_link"
33684case "(($ac_try" in
33685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686  *) ac_try_echo=$ac_try;;
33687esac
33688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689  (eval "$ac_link") 2>&5
33690  ac_status=$?
33691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33693  { (case "(($ac_try" in
33694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33695  *) ac_try_echo=$ac_try;;
33696esac
33697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33698  (eval "$ac_try") 2>&5
33699  ac_status=$?
33700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701  (exit $ac_status); }; }; then
33702  ac_cv_sizeof_short=`cat conftest.val`
33703else
33704  echo "$as_me: program exited with status $ac_status" >&5
33705echo "$as_me: failed program was:" >&5
33706sed 's/^/| /' conftest.$ac_ext >&5
33707
33708( exit $ac_status )
33709if test "$ac_cv_type_short" = yes; then
33710     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33711See \`config.log' for more details." >&5
33712echo "$as_me: error: cannot compute sizeof (short)
33713See \`config.log' for more details." >&2;}
33714   { (exit 77); exit 77; }; }
33715   else
33716     ac_cv_sizeof_short=0
33717   fi
33718fi
33719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33720fi
33721rm -f conftest.val
33722fi
33723{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33724echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33725
33726
33727
33728cat >>confdefs.h <<_ACEOF
33729#define SIZEOF_SHORT $ac_cv_sizeof_short
33730_ACEOF
33731
33732
33733{ echo "$as_me:$LINENO: checking for int" >&5
33734echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33735if test "${ac_cv_type_int+set}" = set; then
33736  echo $ECHO_N "(cached) $ECHO_C" >&6
33737else
33738  cat >conftest.$ac_ext <<_ACEOF
33739/* confdefs.h.  */
33740_ACEOF
33741cat confdefs.h >>conftest.$ac_ext
33742cat >>conftest.$ac_ext <<_ACEOF
33743/* end confdefs.h.  */
33744$ac_includes_default
33745typedef int ac__type_new_;
33746int
33747main ()
33748{
33749if ((ac__type_new_ *) 0)
33750  return 0;
33751if (sizeof (ac__type_new_))
33752  return 0;
33753  ;
33754  return 0;
33755}
33756_ACEOF
33757rm -f conftest.$ac_objext
33758if { (ac_try="$ac_compile"
33759case "(($ac_try" in
33760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761  *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764  (eval "$ac_compile") 2>conftest.er1
33765  ac_status=$?
33766  grep -v '^ *+' conftest.er1 >conftest.err
33767  rm -f conftest.er1
33768  cat conftest.err >&5
33769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770  (exit $ac_status); } && {
33771	 test -z "$ac_c_werror_flag" ||
33772	 test ! -s conftest.err
33773       } && test -s conftest.$ac_objext; then
33774  ac_cv_type_int=yes
33775else
33776  echo "$as_me: failed program was:" >&5
33777sed 's/^/| /' conftest.$ac_ext >&5
33778
33779	ac_cv_type_int=no
33780fi
33781
33782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33783fi
33784{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33785echo "${ECHO_T}$ac_cv_type_int" >&6; }
33786
33787# The cast to long int works around a bug in the HP C Compiler
33788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33790# This bug is HP SR number 8606223364.
33791{ echo "$as_me:$LINENO: checking size of int" >&5
33792echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33793if test "${ac_cv_sizeof_int+set}" = set; then
33794  echo $ECHO_N "(cached) $ECHO_C" >&6
33795else
33796  if test "$cross_compiling" = yes; then
33797  # Depending upon the size, compute the lo and hi bounds.
33798cat >conftest.$ac_ext <<_ACEOF
33799/* confdefs.h.  */
33800_ACEOF
33801cat confdefs.h >>conftest.$ac_ext
33802cat >>conftest.$ac_ext <<_ACEOF
33803/* end confdefs.h.  */
33804$ac_includes_default
33805   typedef int ac__type_sizeof_;
33806int
33807main ()
33808{
33809static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33810test_array [0] = 0
33811
33812  ;
33813  return 0;
33814}
33815_ACEOF
33816rm -f conftest.$ac_objext
33817if { (ac_try="$ac_compile"
33818case "(($ac_try" in
33819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33820  *) ac_try_echo=$ac_try;;
33821esac
33822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33823  (eval "$ac_compile") 2>conftest.er1
33824  ac_status=$?
33825  grep -v '^ *+' conftest.er1 >conftest.err
33826  rm -f conftest.er1
33827  cat conftest.err >&5
33828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33829  (exit $ac_status); } && {
33830	 test -z "$ac_c_werror_flag" ||
33831	 test ! -s conftest.err
33832       } && test -s conftest.$ac_objext; then
33833  ac_lo=0 ac_mid=0
33834  while :; do
33835    cat >conftest.$ac_ext <<_ACEOF
33836/* confdefs.h.  */
33837_ACEOF
33838cat confdefs.h >>conftest.$ac_ext
33839cat >>conftest.$ac_ext <<_ACEOF
33840/* end confdefs.h.  */
33841$ac_includes_default
33842   typedef int ac__type_sizeof_;
33843int
33844main ()
33845{
33846static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33847test_array [0] = 0
33848
33849  ;
33850  return 0;
33851}
33852_ACEOF
33853rm -f conftest.$ac_objext
33854if { (ac_try="$ac_compile"
33855case "(($ac_try" in
33856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33857  *) ac_try_echo=$ac_try;;
33858esac
33859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33860  (eval "$ac_compile") 2>conftest.er1
33861  ac_status=$?
33862  grep -v '^ *+' conftest.er1 >conftest.err
33863  rm -f conftest.er1
33864  cat conftest.err >&5
33865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866  (exit $ac_status); } && {
33867	 test -z "$ac_c_werror_flag" ||
33868	 test ! -s conftest.err
33869       } && test -s conftest.$ac_objext; then
33870  ac_hi=$ac_mid; break
33871else
33872  echo "$as_me: failed program was:" >&5
33873sed 's/^/| /' conftest.$ac_ext >&5
33874
33875	ac_lo=`expr $ac_mid + 1`
33876			if test $ac_lo -le $ac_mid; then
33877			  ac_lo= ac_hi=
33878			  break
33879			fi
33880			ac_mid=`expr 2 '*' $ac_mid + 1`
33881fi
33882
33883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33884  done
33885else
33886  echo "$as_me: failed program was:" >&5
33887sed 's/^/| /' conftest.$ac_ext >&5
33888
33889	cat >conftest.$ac_ext <<_ACEOF
33890/* confdefs.h.  */
33891_ACEOF
33892cat confdefs.h >>conftest.$ac_ext
33893cat >>conftest.$ac_ext <<_ACEOF
33894/* end confdefs.h.  */
33895$ac_includes_default
33896   typedef int ac__type_sizeof_;
33897int
33898main ()
33899{
33900static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33901test_array [0] = 0
33902
33903  ;
33904  return 0;
33905}
33906_ACEOF
33907rm -f conftest.$ac_objext
33908if { (ac_try="$ac_compile"
33909case "(($ac_try" in
33910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33911  *) ac_try_echo=$ac_try;;
33912esac
33913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33914  (eval "$ac_compile") 2>conftest.er1
33915  ac_status=$?
33916  grep -v '^ *+' conftest.er1 >conftest.err
33917  rm -f conftest.er1
33918  cat conftest.err >&5
33919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920  (exit $ac_status); } && {
33921	 test -z "$ac_c_werror_flag" ||
33922	 test ! -s conftest.err
33923       } && test -s conftest.$ac_objext; then
33924  ac_hi=-1 ac_mid=-1
33925  while :; do
33926    cat >conftest.$ac_ext <<_ACEOF
33927/* confdefs.h.  */
33928_ACEOF
33929cat confdefs.h >>conftest.$ac_ext
33930cat >>conftest.$ac_ext <<_ACEOF
33931/* end confdefs.h.  */
33932$ac_includes_default
33933   typedef int ac__type_sizeof_;
33934int
33935main ()
33936{
33937static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33938test_array [0] = 0
33939
33940  ;
33941  return 0;
33942}
33943_ACEOF
33944rm -f conftest.$ac_objext
33945if { (ac_try="$ac_compile"
33946case "(($ac_try" in
33947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948  *) ac_try_echo=$ac_try;;
33949esac
33950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951  (eval "$ac_compile") 2>conftest.er1
33952  ac_status=$?
33953  grep -v '^ *+' conftest.er1 >conftest.err
33954  rm -f conftest.er1
33955  cat conftest.err >&5
33956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957  (exit $ac_status); } && {
33958	 test -z "$ac_c_werror_flag" ||
33959	 test ! -s conftest.err
33960       } && test -s conftest.$ac_objext; then
33961  ac_lo=$ac_mid; break
33962else
33963  echo "$as_me: failed program was:" >&5
33964sed 's/^/| /' conftest.$ac_ext >&5
33965
33966	ac_hi=`expr '(' $ac_mid ')' - 1`
33967			if test $ac_mid -le $ac_hi; then
33968			  ac_lo= ac_hi=
33969			  break
33970			fi
33971			ac_mid=`expr 2 '*' $ac_mid`
33972fi
33973
33974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33975  done
33976else
33977  echo "$as_me: failed program was:" >&5
33978sed 's/^/| /' conftest.$ac_ext >&5
33979
33980	ac_lo= ac_hi=
33981fi
33982
33983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984fi
33985
33986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987# Binary search between lo and hi bounds.
33988while test "x$ac_lo" != "x$ac_hi"; do
33989  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33990  cat >conftest.$ac_ext <<_ACEOF
33991/* confdefs.h.  */
33992_ACEOF
33993cat confdefs.h >>conftest.$ac_ext
33994cat >>conftest.$ac_ext <<_ACEOF
33995/* end confdefs.h.  */
33996$ac_includes_default
33997   typedef int ac__type_sizeof_;
33998int
33999main ()
34000{
34001static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34002test_array [0] = 0
34003
34004  ;
34005  return 0;
34006}
34007_ACEOF
34008rm -f conftest.$ac_objext
34009if { (ac_try="$ac_compile"
34010case "(($ac_try" in
34011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012  *) ac_try_echo=$ac_try;;
34013esac
34014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015  (eval "$ac_compile") 2>conftest.er1
34016  ac_status=$?
34017  grep -v '^ *+' conftest.er1 >conftest.err
34018  rm -f conftest.er1
34019  cat conftest.err >&5
34020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021  (exit $ac_status); } && {
34022	 test -z "$ac_c_werror_flag" ||
34023	 test ! -s conftest.err
34024       } && test -s conftest.$ac_objext; then
34025  ac_hi=$ac_mid
34026else
34027  echo "$as_me: failed program was:" >&5
34028sed 's/^/| /' conftest.$ac_ext >&5
34029
34030	ac_lo=`expr '(' $ac_mid ')' + 1`
34031fi
34032
34033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34034done
34035case $ac_lo in
34036?*) ac_cv_sizeof_int=$ac_lo;;
34037'') if test "$ac_cv_type_int" = yes; then
34038     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34039See \`config.log' for more details." >&5
34040echo "$as_me: error: cannot compute sizeof (int)
34041See \`config.log' for more details." >&2;}
34042   { (exit 77); exit 77; }; }
34043   else
34044     ac_cv_sizeof_int=0
34045   fi ;;
34046esac
34047else
34048  cat >conftest.$ac_ext <<_ACEOF
34049/* confdefs.h.  */
34050_ACEOF
34051cat confdefs.h >>conftest.$ac_ext
34052cat >>conftest.$ac_ext <<_ACEOF
34053/* end confdefs.h.  */
34054$ac_includes_default
34055   typedef int ac__type_sizeof_;
34056static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34057static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34058#include <stdio.h>
34059#include <stdlib.h>
34060int
34061main ()
34062{
34063
34064  FILE *f = fopen ("conftest.val", "w");
34065  if (! f)
34066    return 1;
34067  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34068    {
34069      long int i = longval ();
34070      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34071	return 1;
34072      fprintf (f, "%ld\n", i);
34073    }
34074  else
34075    {
34076      unsigned long int i = ulongval ();
34077      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34078	return 1;
34079      fprintf (f, "%lu\n", i);
34080    }
34081  return ferror (f) || fclose (f) != 0;
34082
34083  ;
34084  return 0;
34085}
34086_ACEOF
34087rm -f conftest$ac_exeext
34088if { (ac_try="$ac_link"
34089case "(($ac_try" in
34090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34091  *) ac_try_echo=$ac_try;;
34092esac
34093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34094  (eval "$ac_link") 2>&5
34095  ac_status=$?
34096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34098  { (case "(($ac_try" in
34099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100  *) ac_try_echo=$ac_try;;
34101esac
34102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103  (eval "$ac_try") 2>&5
34104  ac_status=$?
34105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106  (exit $ac_status); }; }; then
34107  ac_cv_sizeof_int=`cat conftest.val`
34108else
34109  echo "$as_me: program exited with status $ac_status" >&5
34110echo "$as_me: failed program was:" >&5
34111sed 's/^/| /' conftest.$ac_ext >&5
34112
34113( exit $ac_status )
34114if test "$ac_cv_type_int" = yes; then
34115     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34116See \`config.log' for more details." >&5
34117echo "$as_me: error: cannot compute sizeof (int)
34118See \`config.log' for more details." >&2;}
34119   { (exit 77); exit 77; }; }
34120   else
34121     ac_cv_sizeof_int=0
34122   fi
34123fi
34124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34125fi
34126rm -f conftest.val
34127fi
34128{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34129echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34130
34131
34132
34133cat >>confdefs.h <<_ACEOF
34134#define SIZEOF_INT $ac_cv_sizeof_int
34135_ACEOF
34136
34137
34138# disable for cross compiling
34139#AC_CHECK_SIZEOF(long)
34140{ echo "$as_me:$LINENO: checking for long long" >&5
34141echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34142if test "${ac_cv_type_long_long+set}" = set; then
34143  echo $ECHO_N "(cached) $ECHO_C" >&6
34144else
34145  cat >conftest.$ac_ext <<_ACEOF
34146/* confdefs.h.  */
34147_ACEOF
34148cat confdefs.h >>conftest.$ac_ext
34149cat >>conftest.$ac_ext <<_ACEOF
34150/* end confdefs.h.  */
34151$ac_includes_default
34152typedef long long ac__type_new_;
34153int
34154main ()
34155{
34156if ((ac__type_new_ *) 0)
34157  return 0;
34158if (sizeof (ac__type_new_))
34159  return 0;
34160  ;
34161  return 0;
34162}
34163_ACEOF
34164rm -f conftest.$ac_objext
34165if { (ac_try="$ac_compile"
34166case "(($ac_try" in
34167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34168  *) ac_try_echo=$ac_try;;
34169esac
34170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34171  (eval "$ac_compile") 2>conftest.er1
34172  ac_status=$?
34173  grep -v '^ *+' conftest.er1 >conftest.err
34174  rm -f conftest.er1
34175  cat conftest.err >&5
34176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177  (exit $ac_status); } && {
34178	 test -z "$ac_c_werror_flag" ||
34179	 test ! -s conftest.err
34180       } && test -s conftest.$ac_objext; then
34181  ac_cv_type_long_long=yes
34182else
34183  echo "$as_me: failed program was:" >&5
34184sed 's/^/| /' conftest.$ac_ext >&5
34185
34186	ac_cv_type_long_long=no
34187fi
34188
34189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34190fi
34191{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34192echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34193
34194# The cast to long int works around a bug in the HP C Compiler
34195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34197# This bug is HP SR number 8606223364.
34198{ echo "$as_me:$LINENO: checking size of long long" >&5
34199echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34200if test "${ac_cv_sizeof_long_long+set}" = set; then
34201  echo $ECHO_N "(cached) $ECHO_C" >&6
34202else
34203  if test "$cross_compiling" = yes; then
34204  # Depending upon the size, compute the lo and hi bounds.
34205cat >conftest.$ac_ext <<_ACEOF
34206/* confdefs.h.  */
34207_ACEOF
34208cat confdefs.h >>conftest.$ac_ext
34209cat >>conftest.$ac_ext <<_ACEOF
34210/* end confdefs.h.  */
34211$ac_includes_default
34212   typedef long long ac__type_sizeof_;
34213int
34214main ()
34215{
34216static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34217test_array [0] = 0
34218
34219  ;
34220  return 0;
34221}
34222_ACEOF
34223rm -f conftest.$ac_objext
34224if { (ac_try="$ac_compile"
34225case "(($ac_try" in
34226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34227  *) ac_try_echo=$ac_try;;
34228esac
34229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34230  (eval "$ac_compile") 2>conftest.er1
34231  ac_status=$?
34232  grep -v '^ *+' conftest.er1 >conftest.err
34233  rm -f conftest.er1
34234  cat conftest.err >&5
34235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236  (exit $ac_status); } && {
34237	 test -z "$ac_c_werror_flag" ||
34238	 test ! -s conftest.err
34239       } && test -s conftest.$ac_objext; then
34240  ac_lo=0 ac_mid=0
34241  while :; do
34242    cat >conftest.$ac_ext <<_ACEOF
34243/* confdefs.h.  */
34244_ACEOF
34245cat confdefs.h >>conftest.$ac_ext
34246cat >>conftest.$ac_ext <<_ACEOF
34247/* end confdefs.h.  */
34248$ac_includes_default
34249   typedef long long ac__type_sizeof_;
34250int
34251main ()
34252{
34253static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34254test_array [0] = 0
34255
34256  ;
34257  return 0;
34258}
34259_ACEOF
34260rm -f conftest.$ac_objext
34261if { (ac_try="$ac_compile"
34262case "(($ac_try" in
34263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264  *) ac_try_echo=$ac_try;;
34265esac
34266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267  (eval "$ac_compile") 2>conftest.er1
34268  ac_status=$?
34269  grep -v '^ *+' conftest.er1 >conftest.err
34270  rm -f conftest.er1
34271  cat conftest.err >&5
34272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273  (exit $ac_status); } && {
34274	 test -z "$ac_c_werror_flag" ||
34275	 test ! -s conftest.err
34276       } && test -s conftest.$ac_objext; then
34277  ac_hi=$ac_mid; break
34278else
34279  echo "$as_me: failed program was:" >&5
34280sed 's/^/| /' conftest.$ac_ext >&5
34281
34282	ac_lo=`expr $ac_mid + 1`
34283			if test $ac_lo -le $ac_mid; then
34284			  ac_lo= ac_hi=
34285			  break
34286			fi
34287			ac_mid=`expr 2 '*' $ac_mid + 1`
34288fi
34289
34290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34291  done
34292else
34293  echo "$as_me: failed program was:" >&5
34294sed 's/^/| /' conftest.$ac_ext >&5
34295
34296	cat >conftest.$ac_ext <<_ACEOF
34297/* confdefs.h.  */
34298_ACEOF
34299cat confdefs.h >>conftest.$ac_ext
34300cat >>conftest.$ac_ext <<_ACEOF
34301/* end confdefs.h.  */
34302$ac_includes_default
34303   typedef long long ac__type_sizeof_;
34304int
34305main ()
34306{
34307static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34308test_array [0] = 0
34309
34310  ;
34311  return 0;
34312}
34313_ACEOF
34314rm -f conftest.$ac_objext
34315if { (ac_try="$ac_compile"
34316case "(($ac_try" in
34317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318  *) ac_try_echo=$ac_try;;
34319esac
34320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321  (eval "$ac_compile") 2>conftest.er1
34322  ac_status=$?
34323  grep -v '^ *+' conftest.er1 >conftest.err
34324  rm -f conftest.er1
34325  cat conftest.err >&5
34326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327  (exit $ac_status); } && {
34328	 test -z "$ac_c_werror_flag" ||
34329	 test ! -s conftest.err
34330       } && test -s conftest.$ac_objext; then
34331  ac_hi=-1 ac_mid=-1
34332  while :; do
34333    cat >conftest.$ac_ext <<_ACEOF
34334/* confdefs.h.  */
34335_ACEOF
34336cat confdefs.h >>conftest.$ac_ext
34337cat >>conftest.$ac_ext <<_ACEOF
34338/* end confdefs.h.  */
34339$ac_includes_default
34340   typedef long long ac__type_sizeof_;
34341int
34342main ()
34343{
34344static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34345test_array [0] = 0
34346
34347  ;
34348  return 0;
34349}
34350_ACEOF
34351rm -f conftest.$ac_objext
34352if { (ac_try="$ac_compile"
34353case "(($ac_try" in
34354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34355  *) ac_try_echo=$ac_try;;
34356esac
34357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34358  (eval "$ac_compile") 2>conftest.er1
34359  ac_status=$?
34360  grep -v '^ *+' conftest.er1 >conftest.err
34361  rm -f conftest.er1
34362  cat conftest.err >&5
34363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364  (exit $ac_status); } && {
34365	 test -z "$ac_c_werror_flag" ||
34366	 test ! -s conftest.err
34367       } && test -s conftest.$ac_objext; then
34368  ac_lo=$ac_mid; break
34369else
34370  echo "$as_me: failed program was:" >&5
34371sed 's/^/| /' conftest.$ac_ext >&5
34372
34373	ac_hi=`expr '(' $ac_mid ')' - 1`
34374			if test $ac_mid -le $ac_hi; then
34375			  ac_lo= ac_hi=
34376			  break
34377			fi
34378			ac_mid=`expr 2 '*' $ac_mid`
34379fi
34380
34381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34382  done
34383else
34384  echo "$as_me: failed program was:" >&5
34385sed 's/^/| /' conftest.$ac_ext >&5
34386
34387	ac_lo= ac_hi=
34388fi
34389
34390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34391fi
34392
34393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34394# Binary search between lo and hi bounds.
34395while test "x$ac_lo" != "x$ac_hi"; do
34396  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34397  cat >conftest.$ac_ext <<_ACEOF
34398/* confdefs.h.  */
34399_ACEOF
34400cat confdefs.h >>conftest.$ac_ext
34401cat >>conftest.$ac_ext <<_ACEOF
34402/* end confdefs.h.  */
34403$ac_includes_default
34404   typedef long long ac__type_sizeof_;
34405int
34406main ()
34407{
34408static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34409test_array [0] = 0
34410
34411  ;
34412  return 0;
34413}
34414_ACEOF
34415rm -f conftest.$ac_objext
34416if { (ac_try="$ac_compile"
34417case "(($ac_try" in
34418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34419  *) ac_try_echo=$ac_try;;
34420esac
34421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34422  (eval "$ac_compile") 2>conftest.er1
34423  ac_status=$?
34424  grep -v '^ *+' conftest.er1 >conftest.err
34425  rm -f conftest.er1
34426  cat conftest.err >&5
34427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428  (exit $ac_status); } && {
34429	 test -z "$ac_c_werror_flag" ||
34430	 test ! -s conftest.err
34431       } && test -s conftest.$ac_objext; then
34432  ac_hi=$ac_mid
34433else
34434  echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437	ac_lo=`expr '(' $ac_mid ')' + 1`
34438fi
34439
34440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34441done
34442case $ac_lo in
34443?*) ac_cv_sizeof_long_long=$ac_lo;;
34444'') if test "$ac_cv_type_long_long" = yes; then
34445     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34446See \`config.log' for more details." >&5
34447echo "$as_me: error: cannot compute sizeof (long long)
34448See \`config.log' for more details." >&2;}
34449   { (exit 77); exit 77; }; }
34450   else
34451     ac_cv_sizeof_long_long=0
34452   fi ;;
34453esac
34454else
34455  cat >conftest.$ac_ext <<_ACEOF
34456/* confdefs.h.  */
34457_ACEOF
34458cat confdefs.h >>conftest.$ac_ext
34459cat >>conftest.$ac_ext <<_ACEOF
34460/* end confdefs.h.  */
34461$ac_includes_default
34462   typedef long long ac__type_sizeof_;
34463static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34464static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34465#include <stdio.h>
34466#include <stdlib.h>
34467int
34468main ()
34469{
34470
34471  FILE *f = fopen ("conftest.val", "w");
34472  if (! f)
34473    return 1;
34474  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34475    {
34476      long int i = longval ();
34477      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34478	return 1;
34479      fprintf (f, "%ld\n", i);
34480    }
34481  else
34482    {
34483      unsigned long int i = ulongval ();
34484      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34485	return 1;
34486      fprintf (f, "%lu\n", i);
34487    }
34488  return ferror (f) || fclose (f) != 0;
34489
34490  ;
34491  return 0;
34492}
34493_ACEOF
34494rm -f conftest$ac_exeext
34495if { (ac_try="$ac_link"
34496case "(($ac_try" in
34497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34498  *) ac_try_echo=$ac_try;;
34499esac
34500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34501  (eval "$ac_link") 2>&5
34502  ac_status=$?
34503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34505  { (case "(($ac_try" in
34506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34507  *) ac_try_echo=$ac_try;;
34508esac
34509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34510  (eval "$ac_try") 2>&5
34511  ac_status=$?
34512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513  (exit $ac_status); }; }; then
34514  ac_cv_sizeof_long_long=`cat conftest.val`
34515else
34516  echo "$as_me: program exited with status $ac_status" >&5
34517echo "$as_me: failed program was:" >&5
34518sed 's/^/| /' conftest.$ac_ext >&5
34519
34520( exit $ac_status )
34521if test "$ac_cv_type_long_long" = yes; then
34522     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34523See \`config.log' for more details." >&5
34524echo "$as_me: error: cannot compute sizeof (long long)
34525See \`config.log' for more details." >&2;}
34526   { (exit 77); exit 77; }; }
34527   else
34528     ac_cv_sizeof_long_long=0
34529   fi
34530fi
34531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34532fi
34533rm -f conftest.val
34534fi
34535{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34536echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34537
34538
34539
34540cat >>confdefs.h <<_ACEOF
34541#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34542_ACEOF
34543
34544
34545{ echo "$as_me:$LINENO: checking for wchar_t" >&5
34546echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34547if test "${ac_cv_type_wchar_t+set}" = set; then
34548  echo $ECHO_N "(cached) $ECHO_C" >&6
34549else
34550  cat >conftest.$ac_ext <<_ACEOF
34551/* confdefs.h.  */
34552_ACEOF
34553cat confdefs.h >>conftest.$ac_ext
34554cat >>conftest.$ac_ext <<_ACEOF
34555/* end confdefs.h.  */
34556$ac_includes_default
34557typedef wchar_t ac__type_new_;
34558int
34559main ()
34560{
34561if ((ac__type_new_ *) 0)
34562  return 0;
34563if (sizeof (ac__type_new_))
34564  return 0;
34565  ;
34566  return 0;
34567}
34568_ACEOF
34569rm -f conftest.$ac_objext
34570if { (ac_try="$ac_compile"
34571case "(($ac_try" in
34572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34573  *) ac_try_echo=$ac_try;;
34574esac
34575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576  (eval "$ac_compile") 2>conftest.er1
34577  ac_status=$?
34578  grep -v '^ *+' conftest.er1 >conftest.err
34579  rm -f conftest.er1
34580  cat conftest.err >&5
34581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582  (exit $ac_status); } && {
34583	 test -z "$ac_c_werror_flag" ||
34584	 test ! -s conftest.err
34585       } && test -s conftest.$ac_objext; then
34586  ac_cv_type_wchar_t=yes
34587else
34588  echo "$as_me: failed program was:" >&5
34589sed 's/^/| /' conftest.$ac_ext >&5
34590
34591	ac_cv_type_wchar_t=no
34592fi
34593
34594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34595fi
34596{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34597echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34598
34599# The cast to long int works around a bug in the HP C Compiler
34600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34602# This bug is HP SR number 8606223364.
34603{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
34604echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34605if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34606  echo $ECHO_N "(cached) $ECHO_C" >&6
34607else
34608  if test "$cross_compiling" = yes; then
34609  # Depending upon the size, compute the lo and hi bounds.
34610cat >conftest.$ac_ext <<_ACEOF
34611/* confdefs.h.  */
34612_ACEOF
34613cat confdefs.h >>conftest.$ac_ext
34614cat >>conftest.$ac_ext <<_ACEOF
34615/* end confdefs.h.  */
34616$ac_includes_default
34617   typedef wchar_t ac__type_sizeof_;
34618int
34619main ()
34620{
34621static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34622test_array [0] = 0
34623
34624  ;
34625  return 0;
34626}
34627_ACEOF
34628rm -f conftest.$ac_objext
34629if { (ac_try="$ac_compile"
34630case "(($ac_try" in
34631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34632  *) ac_try_echo=$ac_try;;
34633esac
34634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34635  (eval "$ac_compile") 2>conftest.er1
34636  ac_status=$?
34637  grep -v '^ *+' conftest.er1 >conftest.err
34638  rm -f conftest.er1
34639  cat conftest.err >&5
34640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641  (exit $ac_status); } && {
34642	 test -z "$ac_c_werror_flag" ||
34643	 test ! -s conftest.err
34644       } && test -s conftest.$ac_objext; then
34645  ac_lo=0 ac_mid=0
34646  while :; do
34647    cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h.  */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h.  */
34653$ac_includes_default
34654   typedef wchar_t ac__type_sizeof_;
34655int
34656main ()
34657{
34658static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34659test_array [0] = 0
34660
34661  ;
34662  return 0;
34663}
34664_ACEOF
34665rm -f conftest.$ac_objext
34666if { (ac_try="$ac_compile"
34667case "(($ac_try" in
34668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34669  *) ac_try_echo=$ac_try;;
34670esac
34671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34672  (eval "$ac_compile") 2>conftest.er1
34673  ac_status=$?
34674  grep -v '^ *+' conftest.er1 >conftest.err
34675  rm -f conftest.er1
34676  cat conftest.err >&5
34677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678  (exit $ac_status); } && {
34679	 test -z "$ac_c_werror_flag" ||
34680	 test ! -s conftest.err
34681       } && test -s conftest.$ac_objext; then
34682  ac_hi=$ac_mid; break
34683else
34684  echo "$as_me: failed program was:" >&5
34685sed 's/^/| /' conftest.$ac_ext >&5
34686
34687	ac_lo=`expr $ac_mid + 1`
34688			if test $ac_lo -le $ac_mid; then
34689			  ac_lo= ac_hi=
34690			  break
34691			fi
34692			ac_mid=`expr 2 '*' $ac_mid + 1`
34693fi
34694
34695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34696  done
34697else
34698  echo "$as_me: failed program was:" >&5
34699sed 's/^/| /' conftest.$ac_ext >&5
34700
34701	cat >conftest.$ac_ext <<_ACEOF
34702/* confdefs.h.  */
34703_ACEOF
34704cat confdefs.h >>conftest.$ac_ext
34705cat >>conftest.$ac_ext <<_ACEOF
34706/* end confdefs.h.  */
34707$ac_includes_default
34708   typedef wchar_t ac__type_sizeof_;
34709int
34710main ()
34711{
34712static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34713test_array [0] = 0
34714
34715  ;
34716  return 0;
34717}
34718_ACEOF
34719rm -f conftest.$ac_objext
34720if { (ac_try="$ac_compile"
34721case "(($ac_try" in
34722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34723  *) ac_try_echo=$ac_try;;
34724esac
34725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34726  (eval "$ac_compile") 2>conftest.er1
34727  ac_status=$?
34728  grep -v '^ *+' conftest.er1 >conftest.err
34729  rm -f conftest.er1
34730  cat conftest.err >&5
34731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732  (exit $ac_status); } && {
34733	 test -z "$ac_c_werror_flag" ||
34734	 test ! -s conftest.err
34735       } && test -s conftest.$ac_objext; then
34736  ac_hi=-1 ac_mid=-1
34737  while :; do
34738    cat >conftest.$ac_ext <<_ACEOF
34739/* confdefs.h.  */
34740_ACEOF
34741cat confdefs.h >>conftest.$ac_ext
34742cat >>conftest.$ac_ext <<_ACEOF
34743/* end confdefs.h.  */
34744$ac_includes_default
34745   typedef wchar_t ac__type_sizeof_;
34746int
34747main ()
34748{
34749static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34750test_array [0] = 0
34751
34752  ;
34753  return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext
34757if { (ac_try="$ac_compile"
34758case "(($ac_try" in
34759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34760  *) ac_try_echo=$ac_try;;
34761esac
34762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34763  (eval "$ac_compile") 2>conftest.er1
34764  ac_status=$?
34765  grep -v '^ *+' conftest.er1 >conftest.err
34766  rm -f conftest.er1
34767  cat conftest.err >&5
34768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769  (exit $ac_status); } && {
34770	 test -z "$ac_c_werror_flag" ||
34771	 test ! -s conftest.err
34772       } && test -s conftest.$ac_objext; then
34773  ac_lo=$ac_mid; break
34774else
34775  echo "$as_me: failed program was:" >&5
34776sed 's/^/| /' conftest.$ac_ext >&5
34777
34778	ac_hi=`expr '(' $ac_mid ')' - 1`
34779			if test $ac_mid -le $ac_hi; then
34780			  ac_lo= ac_hi=
34781			  break
34782			fi
34783			ac_mid=`expr 2 '*' $ac_mid`
34784fi
34785
34786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34787  done
34788else
34789  echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792	ac_lo= ac_hi=
34793fi
34794
34795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34796fi
34797
34798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34799# Binary search between lo and hi bounds.
34800while test "x$ac_lo" != "x$ac_hi"; do
34801  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34802  cat >conftest.$ac_ext <<_ACEOF
34803/* confdefs.h.  */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h.  */
34808$ac_includes_default
34809   typedef wchar_t ac__type_sizeof_;
34810int
34811main ()
34812{
34813static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34814test_array [0] = 0
34815
34816  ;
34817  return 0;
34818}
34819_ACEOF
34820rm -f conftest.$ac_objext
34821if { (ac_try="$ac_compile"
34822case "(($ac_try" in
34823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34824  *) ac_try_echo=$ac_try;;
34825esac
34826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34827  (eval "$ac_compile") 2>conftest.er1
34828  ac_status=$?
34829  grep -v '^ *+' conftest.er1 >conftest.err
34830  rm -f conftest.er1
34831  cat conftest.err >&5
34832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833  (exit $ac_status); } && {
34834	 test -z "$ac_c_werror_flag" ||
34835	 test ! -s conftest.err
34836       } && test -s conftest.$ac_objext; then
34837  ac_hi=$ac_mid
34838else
34839  echo "$as_me: failed program was:" >&5
34840sed 's/^/| /' conftest.$ac_ext >&5
34841
34842	ac_lo=`expr '(' $ac_mid ')' + 1`
34843fi
34844
34845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34846done
34847case $ac_lo in
34848?*) ac_cv_sizeof_wchar_t=$ac_lo;;
34849'') if test "$ac_cv_type_wchar_t" = yes; then
34850     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
34851See \`config.log' for more details." >&5
34852echo "$as_me: error: cannot compute sizeof (wchar_t)
34853See \`config.log' for more details." >&2;}
34854   { (exit 77); exit 77; }; }
34855   else
34856     ac_cv_sizeof_wchar_t=0
34857   fi ;;
34858esac
34859else
34860  cat >conftest.$ac_ext <<_ACEOF
34861/* confdefs.h.  */
34862_ACEOF
34863cat confdefs.h >>conftest.$ac_ext
34864cat >>conftest.$ac_ext <<_ACEOF
34865/* end confdefs.h.  */
34866$ac_includes_default
34867   typedef wchar_t ac__type_sizeof_;
34868static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34869static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34870#include <stdio.h>
34871#include <stdlib.h>
34872int
34873main ()
34874{
34875
34876  FILE *f = fopen ("conftest.val", "w");
34877  if (! f)
34878    return 1;
34879  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34880    {
34881      long int i = longval ();
34882      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34883	return 1;
34884      fprintf (f, "%ld\n", i);
34885    }
34886  else
34887    {
34888      unsigned long int i = ulongval ();
34889      if (i != ((long int) (sizeof (ac__type_sizeof_))))
34890	return 1;
34891      fprintf (f, "%lu\n", i);
34892    }
34893  return ferror (f) || fclose (f) != 0;
34894
34895  ;
34896  return 0;
34897}
34898_ACEOF
34899rm -f conftest$ac_exeext
34900if { (ac_try="$ac_link"
34901case "(($ac_try" in
34902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903  *) ac_try_echo=$ac_try;;
34904esac
34905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906  (eval "$ac_link") 2>&5
34907  ac_status=$?
34908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34910  { (case "(($ac_try" in
34911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912  *) ac_try_echo=$ac_try;;
34913esac
34914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915  (eval "$ac_try") 2>&5
34916  ac_status=$?
34917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918  (exit $ac_status); }; }; then
34919  ac_cv_sizeof_wchar_t=`cat conftest.val`
34920else
34921  echo "$as_me: program exited with status $ac_status" >&5
34922echo "$as_me: failed program was:" >&5
34923sed 's/^/| /' conftest.$ac_ext >&5
34924
34925( exit $ac_status )
34926if test "$ac_cv_type_wchar_t" = yes; then
34927     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
34928See \`config.log' for more details." >&5
34929echo "$as_me: error: cannot compute sizeof (wchar_t)
34930See \`config.log' for more details." >&2;}
34931   { (exit 77); exit 77; }; }
34932   else
34933     ac_cv_sizeof_wchar_t=0
34934   fi
34935fi
34936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34937fi
34938rm -f conftest.val
34939fi
34940{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
34941echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
34942
34943
34944
34945cat >>confdefs.h <<_ACEOF
34946#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
34947_ACEOF
34948
34949
34950
34951if test "$ac_cv_sizeof_int" -lt 4 ; then
34952	{ echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
34953echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
34954
34955
34956cat >>confdefs.h <<\_ACEOF
34957#define LBER_INT_T long
34958_ACEOF
34959
34960else
34961
34962cat >>confdefs.h <<\_ACEOF
34963#define LBER_INT_T int
34964_ACEOF
34965
34966fi
34967
34968
34969cat >>confdefs.h <<\_ACEOF
34970#define LBER_LEN_T long
34971_ACEOF
34972
34973
34974cat >>confdefs.h <<\_ACEOF
34975#define LBER_SOCKET_T int
34976_ACEOF
34977
34978
34979cat >>confdefs.h <<\_ACEOF
34980#define LBER_TAG_T long
34981_ACEOF
34982
34983
34984if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
34985	if test $ac_cv_sizeof_long_long -gt 4 ; then
34986		ol_with_mp=longlong
34987
34988cat >>confdefs.h <<\_ACEOF
34989#define USE_MP_LONG_LONG 1
34990_ACEOF
34991
34992	elif test $ol_with_mp = longlong ; then
34993		{ { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
34994echo "$as_me: error: long long unusable for multiple precision" >&2;}
34995   { (exit 1); exit 1; }; }
34996	fi
34997fi
34998if test $ol_with_mp = long || test $ol_with_mp = auto ; then
34999	if test $ac_cv_sizeof_long -gt 4 ; then
35000		ol_with_mp=long
35001
35002cat >>confdefs.h <<\_ACEOF
35003#define USE_MP_LONG 1
35004_ACEOF
35005
35006	elif test $ol_with_mp = long ; then
35007		{ { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35008echo "$as_me: error: long unusable for multiple precision" >&2;}
35009   { (exit 1); exit 1; }; }
35010	fi
35011fi
35012if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35013
35014for ac_header in openssl/bn.h
35015do
35016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35018  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35021  echo $ECHO_N "(cached) $ECHO_C" >&6
35022fi
35023ac_res=`eval echo '${'$as_ac_Header'}'`
35024	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35025echo "${ECHO_T}$ac_res" >&6; }
35026else
35027  # Is the header compilable?
35028{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35030cat >conftest.$ac_ext <<_ACEOF
35031/* confdefs.h.  */
35032_ACEOF
35033cat confdefs.h >>conftest.$ac_ext
35034cat >>conftest.$ac_ext <<_ACEOF
35035/* end confdefs.h.  */
35036$ac_includes_default
35037#include <$ac_header>
35038_ACEOF
35039rm -f conftest.$ac_objext
35040if { (ac_try="$ac_compile"
35041case "(($ac_try" in
35042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35043  *) ac_try_echo=$ac_try;;
35044esac
35045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35046  (eval "$ac_compile") 2>conftest.er1
35047  ac_status=$?
35048  grep -v '^ *+' conftest.er1 >conftest.err
35049  rm -f conftest.er1
35050  cat conftest.err >&5
35051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052  (exit $ac_status); } && {
35053	 test -z "$ac_c_werror_flag" ||
35054	 test ! -s conftest.err
35055       } && test -s conftest.$ac_objext; then
35056  ac_header_compiler=yes
35057else
35058  echo "$as_me: failed program was:" >&5
35059sed 's/^/| /' conftest.$ac_ext >&5
35060
35061	ac_header_compiler=no
35062fi
35063
35064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35065{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35066echo "${ECHO_T}$ac_header_compiler" >&6; }
35067
35068# Is the header present?
35069{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35071cat >conftest.$ac_ext <<_ACEOF
35072/* confdefs.h.  */
35073_ACEOF
35074cat confdefs.h >>conftest.$ac_ext
35075cat >>conftest.$ac_ext <<_ACEOF
35076/* end confdefs.h.  */
35077#include <$ac_header>
35078_ACEOF
35079if { (ac_try="$ac_cpp conftest.$ac_ext"
35080case "(($ac_try" in
35081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35082  *) ac_try_echo=$ac_try;;
35083esac
35084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35085  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35086  ac_status=$?
35087  grep -v '^ *+' conftest.er1 >conftest.err
35088  rm -f conftest.er1
35089  cat conftest.err >&5
35090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35091  (exit $ac_status); } >/dev/null && {
35092	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35093	 test ! -s conftest.err
35094       }; then
35095  ac_header_preproc=yes
35096else
35097  echo "$as_me: failed program was:" >&5
35098sed 's/^/| /' conftest.$ac_ext >&5
35099
35100  ac_header_preproc=no
35101fi
35102
35103rm -f conftest.err conftest.$ac_ext
35104{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35105echo "${ECHO_T}$ac_header_preproc" >&6; }
35106
35107# So?  What about this header?
35108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35109  yes:no: )
35110    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35111echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35112    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35113echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35114    ac_header_preproc=yes
35115    ;;
35116  no:yes:* )
35117    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35119    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35120echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35121    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35122echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35123    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35124echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35125    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35127    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35128echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35129    ( cat <<\_ASBOX
35130## --------------------------------------------- ##
35131## Report this to <http://www.openldap.org/its/> ##
35132## --------------------------------------------- ##
35133_ASBOX
35134     ) | sed "s/^/$as_me: WARNING:     /" >&2
35135    ;;
35136esac
35137{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35140  echo $ECHO_N "(cached) $ECHO_C" >&6
35141else
35142  eval "$as_ac_Header=\$ac_header_preproc"
35143fi
35144ac_res=`eval echo '${'$as_ac_Header'}'`
35145	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35146echo "${ECHO_T}$ac_res" >&6; }
35147
35148fi
35149if test `eval echo '${'$as_ac_Header'}'` = yes; then
35150  cat >>confdefs.h <<_ACEOF
35151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35152_ACEOF
35153
35154fi
35155
35156done
35157
35158
35159for ac_header in openssl/crypto.h
35160do
35161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35163  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35166  echo $ECHO_N "(cached) $ECHO_C" >&6
35167fi
35168ac_res=`eval echo '${'$as_ac_Header'}'`
35169	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35170echo "${ECHO_T}$ac_res" >&6; }
35171else
35172  # Is the header compilable?
35173{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35175cat >conftest.$ac_ext <<_ACEOF
35176/* confdefs.h.  */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h.  */
35181$ac_includes_default
35182#include <$ac_header>
35183_ACEOF
35184rm -f conftest.$ac_objext
35185if { (ac_try="$ac_compile"
35186case "(($ac_try" in
35187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35188  *) ac_try_echo=$ac_try;;
35189esac
35190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35191  (eval "$ac_compile") 2>conftest.er1
35192  ac_status=$?
35193  grep -v '^ *+' conftest.er1 >conftest.err
35194  rm -f conftest.er1
35195  cat conftest.err >&5
35196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197  (exit $ac_status); } && {
35198	 test -z "$ac_c_werror_flag" ||
35199	 test ! -s conftest.err
35200       } && test -s conftest.$ac_objext; then
35201  ac_header_compiler=yes
35202else
35203  echo "$as_me: failed program was:" >&5
35204sed 's/^/| /' conftest.$ac_ext >&5
35205
35206	ac_header_compiler=no
35207fi
35208
35209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35210{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35211echo "${ECHO_T}$ac_header_compiler" >&6; }
35212
35213# Is the header present?
35214{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35215echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35216cat >conftest.$ac_ext <<_ACEOF
35217/* confdefs.h.  */
35218_ACEOF
35219cat confdefs.h >>conftest.$ac_ext
35220cat >>conftest.$ac_ext <<_ACEOF
35221/* end confdefs.h.  */
35222#include <$ac_header>
35223_ACEOF
35224if { (ac_try="$ac_cpp conftest.$ac_ext"
35225case "(($ac_try" in
35226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35227  *) ac_try_echo=$ac_try;;
35228esac
35229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35230  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35231  ac_status=$?
35232  grep -v '^ *+' conftest.er1 >conftest.err
35233  rm -f conftest.er1
35234  cat conftest.err >&5
35235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236  (exit $ac_status); } >/dev/null && {
35237	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35238	 test ! -s conftest.err
35239       }; then
35240  ac_header_preproc=yes
35241else
35242  echo "$as_me: failed program was:" >&5
35243sed 's/^/| /' conftest.$ac_ext >&5
35244
35245  ac_header_preproc=no
35246fi
35247
35248rm -f conftest.err conftest.$ac_ext
35249{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35250echo "${ECHO_T}$ac_header_preproc" >&6; }
35251
35252# So?  What about this header?
35253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35254  yes:no: )
35255    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35257    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35259    ac_header_preproc=yes
35260    ;;
35261  no:yes:* )
35262    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35264    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35265echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35266    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35268    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35269echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35270    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35272    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35274    ( cat <<\_ASBOX
35275## --------------------------------------------- ##
35276## Report this to <http://www.openldap.org/its/> ##
35277## --------------------------------------------- ##
35278_ASBOX
35279     ) | sed "s/^/$as_me: WARNING:     /" >&2
35280    ;;
35281esac
35282{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35285  echo $ECHO_N "(cached) $ECHO_C" >&6
35286else
35287  eval "$as_ac_Header=\$ac_header_preproc"
35288fi
35289ac_res=`eval echo '${'$as_ac_Header'}'`
35290	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35291echo "${ECHO_T}$ac_res" >&6; }
35292
35293fi
35294if test `eval echo '${'$as_ac_Header'}'` = yes; then
35295  cat >>confdefs.h <<_ACEOF
35296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35297_ACEOF
35298
35299fi
35300
35301done
35302
35303	if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35304		test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35305		test "$ol_with_tls" = "found" ; then
35306		ol_with_mp=bignum
35307
35308cat >>confdefs.h <<\_ACEOF
35309#define USE_MP_BIGNUM 1
35310_ACEOF
35311
35312	elif test $ol_with_mp = bignum ; then
35313		{ { echo "$as_me:$LINENO: error: bignum not available" >&5
35314echo "$as_me: error: bignum not available" >&2;}
35315   { (exit 1); exit 1; }; }
35316	fi
35317fi
35318if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35319
35320for ac_header in gmp.h
35321do
35322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35324  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35327  echo $ECHO_N "(cached) $ECHO_C" >&6
35328fi
35329ac_res=`eval echo '${'$as_ac_Header'}'`
35330	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35331echo "${ECHO_T}$ac_res" >&6; }
35332else
35333  # Is the header compilable?
35334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35336cat >conftest.$ac_ext <<_ACEOF
35337/* confdefs.h.  */
35338_ACEOF
35339cat confdefs.h >>conftest.$ac_ext
35340cat >>conftest.$ac_ext <<_ACEOF
35341/* end confdefs.h.  */
35342$ac_includes_default
35343#include <$ac_header>
35344_ACEOF
35345rm -f conftest.$ac_objext
35346if { (ac_try="$ac_compile"
35347case "(($ac_try" in
35348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35349  *) ac_try_echo=$ac_try;;
35350esac
35351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35352  (eval "$ac_compile") 2>conftest.er1
35353  ac_status=$?
35354  grep -v '^ *+' conftest.er1 >conftest.err
35355  rm -f conftest.er1
35356  cat conftest.err >&5
35357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358  (exit $ac_status); } && {
35359	 test -z "$ac_c_werror_flag" ||
35360	 test ! -s conftest.err
35361       } && test -s conftest.$ac_objext; then
35362  ac_header_compiler=yes
35363else
35364  echo "$as_me: failed program was:" >&5
35365sed 's/^/| /' conftest.$ac_ext >&5
35366
35367	ac_header_compiler=no
35368fi
35369
35370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35372echo "${ECHO_T}$ac_header_compiler" >&6; }
35373
35374# Is the header present?
35375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35377cat >conftest.$ac_ext <<_ACEOF
35378/* confdefs.h.  */
35379_ACEOF
35380cat confdefs.h >>conftest.$ac_ext
35381cat >>conftest.$ac_ext <<_ACEOF
35382/* end confdefs.h.  */
35383#include <$ac_header>
35384_ACEOF
35385if { (ac_try="$ac_cpp conftest.$ac_ext"
35386case "(($ac_try" in
35387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35388  *) ac_try_echo=$ac_try;;
35389esac
35390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35391  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35392  ac_status=$?
35393  grep -v '^ *+' conftest.er1 >conftest.err
35394  rm -f conftest.er1
35395  cat conftest.err >&5
35396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35397  (exit $ac_status); } >/dev/null && {
35398	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35399	 test ! -s conftest.err
35400       }; then
35401  ac_header_preproc=yes
35402else
35403  echo "$as_me: failed program was:" >&5
35404sed 's/^/| /' conftest.$ac_ext >&5
35405
35406  ac_header_preproc=no
35407fi
35408
35409rm -f conftest.err conftest.$ac_ext
35410{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35411echo "${ECHO_T}$ac_header_preproc" >&6; }
35412
35413# So?  What about this header?
35414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35415  yes:no: )
35416    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35420    ac_header_preproc=yes
35421    ;;
35422  no:yes:* )
35423    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35425    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35426echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35427    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35429    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35430echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35431    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35433    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35435    ( cat <<\_ASBOX
35436## --------------------------------------------- ##
35437## Report this to <http://www.openldap.org/its/> ##
35438## --------------------------------------------- ##
35439_ASBOX
35440     ) | sed "s/^/$as_me: WARNING:     /" >&2
35441    ;;
35442esac
35443{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35446  echo $ECHO_N "(cached) $ECHO_C" >&6
35447else
35448  eval "$as_ac_Header=\$ac_header_preproc"
35449fi
35450ac_res=`eval echo '${'$as_ac_Header'}'`
35451	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35452echo "${ECHO_T}$ac_res" >&6; }
35453
35454fi
35455if test `eval echo '${'$as_ac_Header'}'` = yes; then
35456  cat >>confdefs.h <<_ACEOF
35457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35458_ACEOF
35459
35460fi
35461
35462done
35463
35464
35465{ echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35466echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35467if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35468  echo $ECHO_N "(cached) $ECHO_C" >&6
35469else
35470  ac_check_lib_save_LIBS=$LIBS
35471LIBS="-lgmp  $LIBS"
35472cat >conftest.$ac_ext <<_ACEOF
35473/* confdefs.h.  */
35474_ACEOF
35475cat confdefs.h >>conftest.$ac_ext
35476cat >>conftest.$ac_ext <<_ACEOF
35477/* end confdefs.h.  */
35478
35479/* Override any GCC internal prototype to avoid an error.
35480   Use char because int might match the return type of a GCC
35481   builtin and then its argument prototype would still apply.  */
35482#ifdef __cplusplus
35483extern "C"
35484#endif
35485char __gmpz_add_ui ();
35486int
35487main ()
35488{
35489return __gmpz_add_ui ();
35490  ;
35491  return 0;
35492}
35493_ACEOF
35494rm -f conftest.$ac_objext conftest$ac_exeext
35495if { (ac_try="$ac_link"
35496case "(($ac_try" in
35497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35498  *) ac_try_echo=$ac_try;;
35499esac
35500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35501  (eval "$ac_link") 2>conftest.er1
35502  ac_status=$?
35503  grep -v '^ *+' conftest.er1 >conftest.err
35504  rm -f conftest.er1
35505  cat conftest.err >&5
35506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507  (exit $ac_status); } && {
35508	 test -z "$ac_c_werror_flag" ||
35509	 test ! -s conftest.err
35510       } && test -s conftest$ac_exeext &&
35511       $as_test_x conftest$ac_exeext; then
35512  ac_cv_lib_gmp___gmpz_add_ui=yes
35513else
35514  echo "$as_me: failed program was:" >&5
35515sed 's/^/| /' conftest.$ac_ext >&5
35516
35517	ac_cv_lib_gmp___gmpz_add_ui=no
35518fi
35519
35520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35521      conftest$ac_exeext conftest.$ac_ext
35522LIBS=$ac_check_lib_save_LIBS
35523fi
35524{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35525echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35526if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35527  cat >>confdefs.h <<_ACEOF
35528#define HAVE_LIBGMP 1
35529_ACEOF
35530
35531  LIBS="-lgmp $LIBS"
35532
35533fi
35534
35535	if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35536
35537cat >>confdefs.h <<\_ACEOF
35538#define USE_MP_GMP 1
35539_ACEOF
35540
35541		ol_with_mp=gmp
35542	elif test $ol_with_mp = gmp ; then
35543		{ { echo "$as_me:$LINENO: error: gmp not available" >&5
35544echo "$as_me: error: gmp not available" >&2;}
35545   { (exit 1); exit 1; }; }
35546	fi
35547fi
35548if test $ol_with_mp = auto ; then
35549	ol_with_mp=no
35550fi
35551
35552{ echo "$as_me:$LINENO: checking for working memcmp" >&5
35553echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35554if test "${ac_cv_func_memcmp_working+set}" = set; then
35555  echo $ECHO_N "(cached) $ECHO_C" >&6
35556else
35557  if test "$cross_compiling" = yes; then
35558  ac_cv_func_memcmp_working=no
35559else
35560  cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h.  */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h.  */
35566$ac_includes_default
35567int
35568main ()
35569{
35570
35571  /* Some versions of memcmp are not 8-bit clean.  */
35572  char c0 = '\100', c1 = '\200', c2 = '\201';
35573  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35574    return 1;
35575
35576  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35577     or more and with at least one buffer not starting on a 4-byte boundary.
35578     William Lewis provided this test program.   */
35579  {
35580    char foo[21];
35581    char bar[21];
35582    int i;
35583    for (i = 0; i < 4; i++)
35584      {
35585	char *a = foo + i;
35586	char *b = bar + i;
35587	strcpy (a, "--------01111111");
35588	strcpy (b, "--------10000000");
35589	if (memcmp (a, b, 16) >= 0)
35590	  return 1;
35591      }
35592    return 0;
35593  }
35594
35595  ;
35596  return 0;
35597}
35598_ACEOF
35599rm -f conftest$ac_exeext
35600if { (ac_try="$ac_link"
35601case "(($ac_try" in
35602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35603  *) ac_try_echo=$ac_try;;
35604esac
35605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35606  (eval "$ac_link") 2>&5
35607  ac_status=$?
35608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35610  { (case "(($ac_try" in
35611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35612  *) ac_try_echo=$ac_try;;
35613esac
35614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35615  (eval "$ac_try") 2>&5
35616  ac_status=$?
35617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618  (exit $ac_status); }; }; then
35619  ac_cv_func_memcmp_working=yes
35620else
35621  echo "$as_me: program exited with status $ac_status" >&5
35622echo "$as_me: failed program was:" >&5
35623sed 's/^/| /' conftest.$ac_ext >&5
35624
35625( exit $ac_status )
35626ac_cv_func_memcmp_working=no
35627fi
35628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35629fi
35630
35631
35632fi
35633{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35634echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35635test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35636  *" memcmp.$ac_objext "* ) ;;
35637  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35638 ;;
35639esac
35640
35641
35642
35643if test $ac_cv_func_memcmp_working = no ; then
35644
35645cat >>confdefs.h <<\_ACEOF
35646#define NEED_MEMCMP_REPLACEMENT 1
35647_ACEOF
35648
35649fi
35650
35651
35652for ac_func in strftime
35653do
35654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35655{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35658  echo $ECHO_N "(cached) $ECHO_C" >&6
35659else
35660  cat >conftest.$ac_ext <<_ACEOF
35661/* confdefs.h.  */
35662_ACEOF
35663cat confdefs.h >>conftest.$ac_ext
35664cat >>conftest.$ac_ext <<_ACEOF
35665/* end confdefs.h.  */
35666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35668#define $ac_func innocuous_$ac_func
35669
35670/* System header to define __stub macros and hopefully few prototypes,
35671    which can conflict with char $ac_func (); below.
35672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35673    <limits.h> exists even on freestanding compilers.  */
35674
35675#ifdef __STDC__
35676# include <limits.h>
35677#else
35678# include <assert.h>
35679#endif
35680
35681#undef $ac_func
35682
35683/* Override any GCC internal prototype to avoid an error.
35684   Use char because int might match the return type of a GCC
35685   builtin and then its argument prototype would still apply.  */
35686#ifdef __cplusplus
35687extern "C"
35688#endif
35689char $ac_func ();
35690/* The GNU C library defines this for functions which it implements
35691    to always fail with ENOSYS.  Some functions are actually named
35692    something starting with __ and the normal name is an alias.  */
35693#if defined __stub_$ac_func || defined __stub___$ac_func
35694choke me
35695#endif
35696
35697int
35698main ()
35699{
35700return $ac_func ();
35701  ;
35702  return 0;
35703}
35704_ACEOF
35705rm -f conftest.$ac_objext conftest$ac_exeext
35706if { (ac_try="$ac_link"
35707case "(($ac_try" in
35708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35709  *) ac_try_echo=$ac_try;;
35710esac
35711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35712  (eval "$ac_link") 2>conftest.er1
35713  ac_status=$?
35714  grep -v '^ *+' conftest.er1 >conftest.err
35715  rm -f conftest.er1
35716  cat conftest.err >&5
35717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718  (exit $ac_status); } && {
35719	 test -z "$ac_c_werror_flag" ||
35720	 test ! -s conftest.err
35721       } && test -s conftest$ac_exeext &&
35722       $as_test_x conftest$ac_exeext; then
35723  eval "$as_ac_var=yes"
35724else
35725  echo "$as_me: failed program was:" >&5
35726sed 's/^/| /' conftest.$ac_ext >&5
35727
35728	eval "$as_ac_var=no"
35729fi
35730
35731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35732      conftest$ac_exeext conftest.$ac_ext
35733fi
35734ac_res=`eval echo '${'$as_ac_var'}'`
35735	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35736echo "${ECHO_T}$ac_res" >&6; }
35737if test `eval echo '${'$as_ac_var'}'` = yes; then
35738  cat >>confdefs.h <<_ACEOF
35739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35740_ACEOF
35741
35742else
35743  # strftime is in -lintl on SCO UNIX.
35744{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
35745echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
35746if test "${ac_cv_lib_intl_strftime+set}" = set; then
35747  echo $ECHO_N "(cached) $ECHO_C" >&6
35748else
35749  ac_check_lib_save_LIBS=$LIBS
35750LIBS="-lintl  $LIBS"
35751cat >conftest.$ac_ext <<_ACEOF
35752/* confdefs.h.  */
35753_ACEOF
35754cat confdefs.h >>conftest.$ac_ext
35755cat >>conftest.$ac_ext <<_ACEOF
35756/* end confdefs.h.  */
35757
35758/* Override any GCC internal prototype to avoid an error.
35759   Use char because int might match the return type of a GCC
35760   builtin and then its argument prototype would still apply.  */
35761#ifdef __cplusplus
35762extern "C"
35763#endif
35764char strftime ();
35765int
35766main ()
35767{
35768return strftime ();
35769  ;
35770  return 0;
35771}
35772_ACEOF
35773rm -f conftest.$ac_objext conftest$ac_exeext
35774if { (ac_try="$ac_link"
35775case "(($ac_try" in
35776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35777  *) ac_try_echo=$ac_try;;
35778esac
35779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35780  (eval "$ac_link") 2>conftest.er1
35781  ac_status=$?
35782  grep -v '^ *+' conftest.er1 >conftest.err
35783  rm -f conftest.er1
35784  cat conftest.err >&5
35785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786  (exit $ac_status); } && {
35787	 test -z "$ac_c_werror_flag" ||
35788	 test ! -s conftest.err
35789       } && test -s conftest$ac_exeext &&
35790       $as_test_x conftest$ac_exeext; then
35791  ac_cv_lib_intl_strftime=yes
35792else
35793  echo "$as_me: failed program was:" >&5
35794sed 's/^/| /' conftest.$ac_ext >&5
35795
35796	ac_cv_lib_intl_strftime=no
35797fi
35798
35799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35800      conftest$ac_exeext conftest.$ac_ext
35801LIBS=$ac_check_lib_save_LIBS
35802fi
35803{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
35804echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
35805if test $ac_cv_lib_intl_strftime = yes; then
35806  cat >>confdefs.h <<\_ACEOF
35807#define HAVE_STRFTIME 1
35808_ACEOF
35809
35810LIBS="-lintl $LIBS"
35811fi
35812
35813fi
35814done
35815
35816
35817{ echo "$as_me:$LINENO: checking for inet_aton()" >&5
35818echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
35819if test "${ol_cv_func_inet_aton+set}" = set; then
35820  echo $ECHO_N "(cached) $ECHO_C" >&6
35821else
35822  cat >conftest.$ac_ext <<_ACEOF
35823/* confdefs.h.  */
35824_ACEOF
35825cat confdefs.h >>conftest.$ac_ext
35826cat >>conftest.$ac_ext <<_ACEOF
35827/* end confdefs.h.  */
35828
35829#ifdef HAVE_SYS_TYPES_H
35830#	include <sys/types.h>
35831#endif
35832#ifdef HAVE_SYS_SOCKET_H
35833#	include <sys/socket.h>
35834#	ifdef HAVE_SYS_SELECT_H
35835#		include <sys/select.h>
35836#	endif
35837#	include <netinet/in.h>
35838#	ifdef HAVE_ARPA_INET_H
35839#		include <arpa/inet.h>
35840#	endif
35841#endif
35842
35843int
35844main ()
35845{
35846struct in_addr in;
35847int rc = inet_aton( "255.255.255.255", &in );
35848  ;
35849  return 0;
35850}
35851_ACEOF
35852rm -f conftest.$ac_objext conftest$ac_exeext
35853if { (ac_try="$ac_link"
35854case "(($ac_try" in
35855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35856  *) ac_try_echo=$ac_try;;
35857esac
35858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35859  (eval "$ac_link") 2>conftest.er1
35860  ac_status=$?
35861  grep -v '^ *+' conftest.er1 >conftest.err
35862  rm -f conftest.er1
35863  cat conftest.err >&5
35864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865  (exit $ac_status); } && {
35866	 test -z "$ac_c_werror_flag" ||
35867	 test ! -s conftest.err
35868       } && test -s conftest$ac_exeext &&
35869       $as_test_x conftest$ac_exeext; then
35870  ol_cv_func_inet_aton=yes
35871else
35872  echo "$as_me: failed program was:" >&5
35873sed 's/^/| /' conftest.$ac_ext >&5
35874
35875	ol_cv_func_inet_aton=no
35876fi
35877
35878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35879      conftest$ac_exeext conftest.$ac_ext
35880fi
35881{ echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
35882echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
35883  if test $ol_cv_func_inet_aton != no; then
35884
35885cat >>confdefs.h <<\_ACEOF
35886#define HAVE_INET_ATON 1
35887_ACEOF
35888
35889  fi
35890
35891
35892{ echo "$as_me:$LINENO: checking for _spawnlp" >&5
35893echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
35894if test "${ac_cv_func__spawnlp+set}" = set; then
35895  echo $ECHO_N "(cached) $ECHO_C" >&6
35896else
35897  cat >conftest.$ac_ext <<_ACEOF
35898/* confdefs.h.  */
35899_ACEOF
35900cat confdefs.h >>conftest.$ac_ext
35901cat >>conftest.$ac_ext <<_ACEOF
35902/* end confdefs.h.  */
35903/* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
35904   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35905#define _spawnlp innocuous__spawnlp
35906
35907/* System header to define __stub macros and hopefully few prototypes,
35908    which can conflict with char _spawnlp (); below.
35909    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35910    <limits.h> exists even on freestanding compilers.  */
35911
35912#ifdef __STDC__
35913# include <limits.h>
35914#else
35915# include <assert.h>
35916#endif
35917
35918#undef _spawnlp
35919
35920/* Override any GCC internal prototype to avoid an error.
35921   Use char because int might match the return type of a GCC
35922   builtin and then its argument prototype would still apply.  */
35923#ifdef __cplusplus
35924extern "C"
35925#endif
35926char _spawnlp ();
35927/* The GNU C library defines this for functions which it implements
35928    to always fail with ENOSYS.  Some functions are actually named
35929    something starting with __ and the normal name is an alias.  */
35930#if defined __stub__spawnlp || defined __stub____spawnlp
35931choke me
35932#endif
35933
35934int
35935main ()
35936{
35937return _spawnlp ();
35938  ;
35939  return 0;
35940}
35941_ACEOF
35942rm -f conftest.$ac_objext conftest$ac_exeext
35943if { (ac_try="$ac_link"
35944case "(($ac_try" in
35945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946  *) ac_try_echo=$ac_try;;
35947esac
35948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35949  (eval "$ac_link") 2>conftest.er1
35950  ac_status=$?
35951  grep -v '^ *+' conftest.er1 >conftest.err
35952  rm -f conftest.er1
35953  cat conftest.err >&5
35954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955  (exit $ac_status); } && {
35956	 test -z "$ac_c_werror_flag" ||
35957	 test ! -s conftest.err
35958       } && test -s conftest$ac_exeext &&
35959       $as_test_x conftest$ac_exeext; then
35960  ac_cv_func__spawnlp=yes
35961else
35962  echo "$as_me: failed program was:" >&5
35963sed 's/^/| /' conftest.$ac_ext >&5
35964
35965	ac_cv_func__spawnlp=no
35966fi
35967
35968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35969      conftest$ac_exeext conftest.$ac_ext
35970fi
35971{ echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
35972echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
35973if test $ac_cv_func__spawnlp = yes; then
35974
35975cat >>confdefs.h <<\_ACEOF
35976#define HAVE_SPAWNLP 1
35977_ACEOF
35978
35979fi
35980
35981
35982{ echo "$as_me:$LINENO: checking for _snprintf" >&5
35983echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
35984if test "${ac_cv_func__snprintf+set}" = set; then
35985  echo $ECHO_N "(cached) $ECHO_C" >&6
35986else
35987  cat >conftest.$ac_ext <<_ACEOF
35988/* confdefs.h.  */
35989_ACEOF
35990cat confdefs.h >>conftest.$ac_ext
35991cat >>conftest.$ac_ext <<_ACEOF
35992/* end confdefs.h.  */
35993/* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
35994   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35995#define _snprintf innocuous__snprintf
35996
35997/* System header to define __stub macros and hopefully few prototypes,
35998    which can conflict with char _snprintf (); below.
35999    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36000    <limits.h> exists even on freestanding compilers.  */
36001
36002#ifdef __STDC__
36003# include <limits.h>
36004#else
36005# include <assert.h>
36006#endif
36007
36008#undef _snprintf
36009
36010/* Override any GCC internal prototype to avoid an error.
36011   Use char because int might match the return type of a GCC
36012   builtin and then its argument prototype would still apply.  */
36013#ifdef __cplusplus
36014extern "C"
36015#endif
36016char _snprintf ();
36017/* The GNU C library defines this for functions which it implements
36018    to always fail with ENOSYS.  Some functions are actually named
36019    something starting with __ and the normal name is an alias.  */
36020#if defined __stub__snprintf || defined __stub____snprintf
36021choke me
36022#endif
36023
36024int
36025main ()
36026{
36027return _snprintf ();
36028  ;
36029  return 0;
36030}
36031_ACEOF
36032rm -f conftest.$ac_objext conftest$ac_exeext
36033if { (ac_try="$ac_link"
36034case "(($ac_try" in
36035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36036  *) ac_try_echo=$ac_try;;
36037esac
36038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36039  (eval "$ac_link") 2>conftest.er1
36040  ac_status=$?
36041  grep -v '^ *+' conftest.er1 >conftest.err
36042  rm -f conftest.er1
36043  cat conftest.err >&5
36044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36045  (exit $ac_status); } && {
36046	 test -z "$ac_c_werror_flag" ||
36047	 test ! -s conftest.err
36048       } && test -s conftest$ac_exeext &&
36049       $as_test_x conftest$ac_exeext; then
36050  ac_cv_func__snprintf=yes
36051else
36052  echo "$as_me: failed program was:" >&5
36053sed 's/^/| /' conftest.$ac_ext >&5
36054
36055	ac_cv_func__snprintf=no
36056fi
36057
36058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36059      conftest$ac_exeext conftest.$ac_ext
36060fi
36061{ echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36062echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36063if test $ac_cv_func__snprintf = yes; then
36064  ac_cv_func_snprintf=yes
36065
36066cat >>confdefs.h <<\_ACEOF
36067#define snprintf _snprintf
36068_ACEOF
36069
36070
36071fi
36072
36073
36074
36075
36076for ac_func in vsnprintf _vsnprintf
36077do
36078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36079{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36082  echo $ECHO_N "(cached) $ECHO_C" >&6
36083else
36084  cat >conftest.$ac_ext <<_ACEOF
36085/* confdefs.h.  */
36086_ACEOF
36087cat confdefs.h >>conftest.$ac_ext
36088cat >>conftest.$ac_ext <<_ACEOF
36089/* end confdefs.h.  */
36090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36091   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36092#define $ac_func innocuous_$ac_func
36093
36094/* System header to define __stub macros and hopefully few prototypes,
36095    which can conflict with char $ac_func (); below.
36096    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36097    <limits.h> exists even on freestanding compilers.  */
36098
36099#ifdef __STDC__
36100# include <limits.h>
36101#else
36102# include <assert.h>
36103#endif
36104
36105#undef $ac_func
36106
36107/* Override any GCC internal prototype to avoid an error.
36108   Use char because int might match the return type of a GCC
36109   builtin and then its argument prototype would still apply.  */
36110#ifdef __cplusplus
36111extern "C"
36112#endif
36113char $ac_func ();
36114/* The GNU C library defines this for functions which it implements
36115    to always fail with ENOSYS.  Some functions are actually named
36116    something starting with __ and the normal name is an alias.  */
36117#if defined __stub_$ac_func || defined __stub___$ac_func
36118choke me
36119#endif
36120
36121int
36122main ()
36123{
36124return $ac_func ();
36125  ;
36126  return 0;
36127}
36128_ACEOF
36129rm -f conftest.$ac_objext conftest$ac_exeext
36130if { (ac_try="$ac_link"
36131case "(($ac_try" in
36132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36133  *) ac_try_echo=$ac_try;;
36134esac
36135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36136  (eval "$ac_link") 2>conftest.er1
36137  ac_status=$?
36138  grep -v '^ *+' conftest.er1 >conftest.err
36139  rm -f conftest.er1
36140  cat conftest.err >&5
36141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142  (exit $ac_status); } && {
36143	 test -z "$ac_c_werror_flag" ||
36144	 test ! -s conftest.err
36145       } && test -s conftest$ac_exeext &&
36146       $as_test_x conftest$ac_exeext; then
36147  eval "$as_ac_var=yes"
36148else
36149  echo "$as_me: failed program was:" >&5
36150sed 's/^/| /' conftest.$ac_ext >&5
36151
36152	eval "$as_ac_var=no"
36153fi
36154
36155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36156      conftest$ac_exeext conftest.$ac_ext
36157fi
36158ac_res=`eval echo '${'$as_ac_var'}'`
36159	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36160echo "${ECHO_T}$ac_res" >&6; }
36161if test `eval echo '${'$as_ac_var'}'` = yes; then
36162  cat >>confdefs.h <<_ACEOF
36163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36164_ACEOF
36165
36166fi
36167done
36168
36169
36170if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36171	ac_cv_func_vsnprintf=yes
36172
36173cat >>confdefs.h <<\_ACEOF
36174#define vsnprintf _vsnprintf
36175_ACEOF
36176
36177fi
36178
36179
36180for ac_func in vprintf
36181do
36182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36183{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36186  echo $ECHO_N "(cached) $ECHO_C" >&6
36187else
36188  cat >conftest.$ac_ext <<_ACEOF
36189/* confdefs.h.  */
36190_ACEOF
36191cat confdefs.h >>conftest.$ac_ext
36192cat >>conftest.$ac_ext <<_ACEOF
36193/* end confdefs.h.  */
36194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36195   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36196#define $ac_func innocuous_$ac_func
36197
36198/* System header to define __stub macros and hopefully few prototypes,
36199    which can conflict with char $ac_func (); below.
36200    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36201    <limits.h> exists even on freestanding compilers.  */
36202
36203#ifdef __STDC__
36204# include <limits.h>
36205#else
36206# include <assert.h>
36207#endif
36208
36209#undef $ac_func
36210
36211/* Override any GCC internal prototype to avoid an error.
36212   Use char because int might match the return type of a GCC
36213   builtin and then its argument prototype would still apply.  */
36214#ifdef __cplusplus
36215extern "C"
36216#endif
36217char $ac_func ();
36218/* The GNU C library defines this for functions which it implements
36219    to always fail with ENOSYS.  Some functions are actually named
36220    something starting with __ and the normal name is an alias.  */
36221#if defined __stub_$ac_func || defined __stub___$ac_func
36222choke me
36223#endif
36224
36225int
36226main ()
36227{
36228return $ac_func ();
36229  ;
36230  return 0;
36231}
36232_ACEOF
36233rm -f conftest.$ac_objext conftest$ac_exeext
36234if { (ac_try="$ac_link"
36235case "(($ac_try" in
36236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36237  *) ac_try_echo=$ac_try;;
36238esac
36239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36240  (eval "$ac_link") 2>conftest.er1
36241  ac_status=$?
36242  grep -v '^ *+' conftest.er1 >conftest.err
36243  rm -f conftest.er1
36244  cat conftest.err >&5
36245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36246  (exit $ac_status); } && {
36247	 test -z "$ac_c_werror_flag" ||
36248	 test ! -s conftest.err
36249       } && test -s conftest$ac_exeext &&
36250       $as_test_x conftest$ac_exeext; then
36251  eval "$as_ac_var=yes"
36252else
36253  echo "$as_me: failed program was:" >&5
36254sed 's/^/| /' conftest.$ac_ext >&5
36255
36256	eval "$as_ac_var=no"
36257fi
36258
36259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36260      conftest$ac_exeext conftest.$ac_ext
36261fi
36262ac_res=`eval echo '${'$as_ac_var'}'`
36263	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36264echo "${ECHO_T}$ac_res" >&6; }
36265if test `eval echo '${'$as_ac_var'}'` = yes; then
36266  cat >>confdefs.h <<_ACEOF
36267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36268_ACEOF
36269
36270{ echo "$as_me:$LINENO: checking for _doprnt" >&5
36271echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36272if test "${ac_cv_func__doprnt+set}" = set; then
36273  echo $ECHO_N "(cached) $ECHO_C" >&6
36274else
36275  cat >conftest.$ac_ext <<_ACEOF
36276/* confdefs.h.  */
36277_ACEOF
36278cat confdefs.h >>conftest.$ac_ext
36279cat >>conftest.$ac_ext <<_ACEOF
36280/* end confdefs.h.  */
36281/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36282   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36283#define _doprnt innocuous__doprnt
36284
36285/* System header to define __stub macros and hopefully few prototypes,
36286    which can conflict with char _doprnt (); below.
36287    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36288    <limits.h> exists even on freestanding compilers.  */
36289
36290#ifdef __STDC__
36291# include <limits.h>
36292#else
36293# include <assert.h>
36294#endif
36295
36296#undef _doprnt
36297
36298/* Override any GCC internal prototype to avoid an error.
36299   Use char because int might match the return type of a GCC
36300   builtin and then its argument prototype would still apply.  */
36301#ifdef __cplusplus
36302extern "C"
36303#endif
36304char _doprnt ();
36305/* The GNU C library defines this for functions which it implements
36306    to always fail with ENOSYS.  Some functions are actually named
36307    something starting with __ and the normal name is an alias.  */
36308#if defined __stub__doprnt || defined __stub____doprnt
36309choke me
36310#endif
36311
36312int
36313main ()
36314{
36315return _doprnt ();
36316  ;
36317  return 0;
36318}
36319_ACEOF
36320rm -f conftest.$ac_objext conftest$ac_exeext
36321if { (ac_try="$ac_link"
36322case "(($ac_try" in
36323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324  *) ac_try_echo=$ac_try;;
36325esac
36326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327  (eval "$ac_link") 2>conftest.er1
36328  ac_status=$?
36329  grep -v '^ *+' conftest.er1 >conftest.err
36330  rm -f conftest.er1
36331  cat conftest.err >&5
36332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333  (exit $ac_status); } && {
36334	 test -z "$ac_c_werror_flag" ||
36335	 test ! -s conftest.err
36336       } && test -s conftest$ac_exeext &&
36337       $as_test_x conftest$ac_exeext; then
36338  ac_cv_func__doprnt=yes
36339else
36340  echo "$as_me: failed program was:" >&5
36341sed 's/^/| /' conftest.$ac_ext >&5
36342
36343	ac_cv_func__doprnt=no
36344fi
36345
36346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36347      conftest$ac_exeext conftest.$ac_ext
36348fi
36349{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36350echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36351if test $ac_cv_func__doprnt = yes; then
36352
36353cat >>confdefs.h <<\_ACEOF
36354#define HAVE_DOPRNT 1
36355_ACEOF
36356
36357fi
36358
36359fi
36360done
36361
36362
36363
36364if test $ac_cv_func_vprintf = yes ; then
36365
36366
36367for ac_func in snprintf vsnprintf
36368do
36369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36373  echo $ECHO_N "(cached) $ECHO_C" >&6
36374else
36375  cat >conftest.$ac_ext <<_ACEOF
36376/* confdefs.h.  */
36377_ACEOF
36378cat confdefs.h >>conftest.$ac_ext
36379cat >>conftest.$ac_ext <<_ACEOF
36380/* end confdefs.h.  */
36381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36382   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36383#define $ac_func innocuous_$ac_func
36384
36385/* System header to define __stub macros and hopefully few prototypes,
36386    which can conflict with char $ac_func (); below.
36387    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36388    <limits.h> exists even on freestanding compilers.  */
36389
36390#ifdef __STDC__
36391# include <limits.h>
36392#else
36393# include <assert.h>
36394#endif
36395
36396#undef $ac_func
36397
36398/* Override any GCC internal prototype to avoid an error.
36399   Use char because int might match the return type of a GCC
36400   builtin and then its argument prototype would still apply.  */
36401#ifdef __cplusplus
36402extern "C"
36403#endif
36404char $ac_func ();
36405/* The GNU C library defines this for functions which it implements
36406    to always fail with ENOSYS.  Some functions are actually named
36407    something starting with __ and the normal name is an alias.  */
36408#if defined __stub_$ac_func || defined __stub___$ac_func
36409choke me
36410#endif
36411
36412int
36413main ()
36414{
36415return $ac_func ();
36416  ;
36417  return 0;
36418}
36419_ACEOF
36420rm -f conftest.$ac_objext conftest$ac_exeext
36421if { (ac_try="$ac_link"
36422case "(($ac_try" in
36423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36424  *) ac_try_echo=$ac_try;;
36425esac
36426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36427  (eval "$ac_link") 2>conftest.er1
36428  ac_status=$?
36429  grep -v '^ *+' conftest.er1 >conftest.err
36430  rm -f conftest.er1
36431  cat conftest.err >&5
36432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433  (exit $ac_status); } && {
36434	 test -z "$ac_c_werror_flag" ||
36435	 test ! -s conftest.err
36436       } && test -s conftest$ac_exeext &&
36437       $as_test_x conftest$ac_exeext; then
36438  eval "$as_ac_var=yes"
36439else
36440  echo "$as_me: failed program was:" >&5
36441sed 's/^/| /' conftest.$ac_ext >&5
36442
36443	eval "$as_ac_var=no"
36444fi
36445
36446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36447      conftest$ac_exeext conftest.$ac_ext
36448fi
36449ac_res=`eval echo '${'$as_ac_var'}'`
36450	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36451echo "${ECHO_T}$ac_res" >&6; }
36452if test `eval echo '${'$as_ac_var'}'` = yes; then
36453  cat >>confdefs.h <<_ACEOF
36454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36455_ACEOF
36456
36457fi
36458done
36459
36460fi
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518for ac_func in \
36519	bcopy			\
36520	closesocket		\
36521	chroot			\
36522	endgrent		\
36523	endpwent		\
36524	fcntl			\
36525	flock			\
36526	fstat			\
36527	getdtablesize		\
36528	geteuid			\
36529	getgrgid		\
36530	gethostname		\
36531	getpassphrase		\
36532	getpwuid		\
36533	getpwnam		\
36534	getspnam		\
36535	gettimeofday		\
36536	initgroups		\
36537	inet_ntoa_b		\
36538	ioctl			\
36539	lockf			\
36540	memcpy			\
36541	memmove			\
36542	memrchr			\
36543	mkstemp			\
36544	mktemp			\
36545	pipe			\
36546	read			\
36547	recv			\
36548	recvfrom		\
36549	setpwfile		\
36550	setgid			\
36551	setegid			\
36552	setsid			\
36553	setuid			\
36554	seteuid			\
36555	signal			\
36556	strdup			\
36557	strpbrk			\
36558	strrchr			\
36559	strsep			\
36560	strstr			\
36561	strtol			\
36562	strtoul			\
36563	strtoq			\
36564	strtouq			\
36565	strtoll			\
36566	strtoull		\
36567	strspn			\
36568	sysconf			\
36569	waitpid			\
36570	wait4			\
36571	write			\
36572	send			\
36573	sendmsg			\
36574	sendto			\
36575
36576do
36577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36578{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36581  echo $ECHO_N "(cached) $ECHO_C" >&6
36582else
36583  cat >conftest.$ac_ext <<_ACEOF
36584/* confdefs.h.  */
36585_ACEOF
36586cat confdefs.h >>conftest.$ac_ext
36587cat >>conftest.$ac_ext <<_ACEOF
36588/* end confdefs.h.  */
36589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36590   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36591#define $ac_func innocuous_$ac_func
36592
36593/* System header to define __stub macros and hopefully few prototypes,
36594    which can conflict with char $ac_func (); below.
36595    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36596    <limits.h> exists even on freestanding compilers.  */
36597
36598#ifdef __STDC__
36599# include <limits.h>
36600#else
36601# include <assert.h>
36602#endif
36603
36604#undef $ac_func
36605
36606/* Override any GCC internal prototype to avoid an error.
36607   Use char because int might match the return type of a GCC
36608   builtin and then its argument prototype would still apply.  */
36609#ifdef __cplusplus
36610extern "C"
36611#endif
36612char $ac_func ();
36613/* The GNU C library defines this for functions which it implements
36614    to always fail with ENOSYS.  Some functions are actually named
36615    something starting with __ and the normal name is an alias.  */
36616#if defined __stub_$ac_func || defined __stub___$ac_func
36617choke me
36618#endif
36619
36620int
36621main ()
36622{
36623return $ac_func ();
36624  ;
36625  return 0;
36626}
36627_ACEOF
36628rm -f conftest.$ac_objext conftest$ac_exeext
36629if { (ac_try="$ac_link"
36630case "(($ac_try" in
36631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632  *) ac_try_echo=$ac_try;;
36633esac
36634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36635  (eval "$ac_link") 2>conftest.er1
36636  ac_status=$?
36637  grep -v '^ *+' conftest.er1 >conftest.err
36638  rm -f conftest.er1
36639  cat conftest.err >&5
36640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641  (exit $ac_status); } && {
36642	 test -z "$ac_c_werror_flag" ||
36643	 test ! -s conftest.err
36644       } && test -s conftest$ac_exeext &&
36645       $as_test_x conftest$ac_exeext; then
36646  eval "$as_ac_var=yes"
36647else
36648  echo "$as_me: failed program was:" >&5
36649sed 's/^/| /' conftest.$ac_ext >&5
36650
36651	eval "$as_ac_var=no"
36652fi
36653
36654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36655      conftest$ac_exeext conftest.$ac_ext
36656fi
36657ac_res=`eval echo '${'$as_ac_var'}'`
36658	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36659echo "${ECHO_T}$ac_res" >&6; }
36660if test `eval echo '${'$as_ac_var'}'` = yes; then
36661  cat >>confdefs.h <<_ACEOF
36662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36663_ACEOF
36664
36665fi
36666done
36667
36668
36669
36670
36671for ac_func in getopt getpeereid
36672do
36673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36677  echo $ECHO_N "(cached) $ECHO_C" >&6
36678else
36679  cat >conftest.$ac_ext <<_ACEOF
36680/* confdefs.h.  */
36681_ACEOF
36682cat confdefs.h >>conftest.$ac_ext
36683cat >>conftest.$ac_ext <<_ACEOF
36684/* end confdefs.h.  */
36685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36687#define $ac_func innocuous_$ac_func
36688
36689/* System header to define __stub macros and hopefully few prototypes,
36690    which can conflict with char $ac_func (); below.
36691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36692    <limits.h> exists even on freestanding compilers.  */
36693
36694#ifdef __STDC__
36695# include <limits.h>
36696#else
36697# include <assert.h>
36698#endif
36699
36700#undef $ac_func
36701
36702/* Override any GCC internal prototype to avoid an error.
36703   Use char because int might match the return type of a GCC
36704   builtin and then its argument prototype would still apply.  */
36705#ifdef __cplusplus
36706extern "C"
36707#endif
36708char $ac_func ();
36709/* The GNU C library defines this for functions which it implements
36710    to always fail with ENOSYS.  Some functions are actually named
36711    something starting with __ and the normal name is an alias.  */
36712#if defined __stub_$ac_func || defined __stub___$ac_func
36713choke me
36714#endif
36715
36716int
36717main ()
36718{
36719return $ac_func ();
36720  ;
36721  return 0;
36722}
36723_ACEOF
36724rm -f conftest.$ac_objext conftest$ac_exeext
36725if { (ac_try="$ac_link"
36726case "(($ac_try" in
36727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728  *) ac_try_echo=$ac_try;;
36729esac
36730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731  (eval "$ac_link") 2>conftest.er1
36732  ac_status=$?
36733  grep -v '^ *+' conftest.er1 >conftest.err
36734  rm -f conftest.er1
36735  cat conftest.err >&5
36736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737  (exit $ac_status); } && {
36738	 test -z "$ac_c_werror_flag" ||
36739	 test ! -s conftest.err
36740       } && test -s conftest$ac_exeext &&
36741       $as_test_x conftest$ac_exeext; then
36742  eval "$as_ac_var=yes"
36743else
36744  echo "$as_me: failed program was:" >&5
36745sed 's/^/| /' conftest.$ac_ext >&5
36746
36747	eval "$as_ac_var=no"
36748fi
36749
36750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36751      conftest$ac_exeext conftest.$ac_ext
36752fi
36753ac_res=`eval echo '${'$as_ac_var'}'`
36754	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36755echo "${ECHO_T}$ac_res" >&6; }
36756if test `eval echo '${'$as_ac_var'}'` = yes; then
36757  cat >>confdefs.h <<_ACEOF
36758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36759_ACEOF
36760
36761else
36762  case " $LIBOBJS " in
36763  *" $ac_func.$ac_objext "* ) ;;
36764  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
36765 ;;
36766esac
36767
36768fi
36769done
36770
36771
36772
36773if test "$ac_cv_func_getopt" != yes; then
36774	LIBSRCS="$LIBSRCS getopt.c"
36775fi
36776
36777if test "$ac_cv_func_getpeereid" != yes; then
36778
36779for ac_func in getpeerucred
36780do
36781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36785  echo $ECHO_N "(cached) $ECHO_C" >&6
36786else
36787  cat >conftest.$ac_ext <<_ACEOF
36788/* confdefs.h.  */
36789_ACEOF
36790cat confdefs.h >>conftest.$ac_ext
36791cat >>conftest.$ac_ext <<_ACEOF
36792/* end confdefs.h.  */
36793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36794   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36795#define $ac_func innocuous_$ac_func
36796
36797/* System header to define __stub macros and hopefully few prototypes,
36798    which can conflict with char $ac_func (); below.
36799    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36800    <limits.h> exists even on freestanding compilers.  */
36801
36802#ifdef __STDC__
36803# include <limits.h>
36804#else
36805# include <assert.h>
36806#endif
36807
36808#undef $ac_func
36809
36810/* Override any GCC internal prototype to avoid an error.
36811   Use char because int might match the return type of a GCC
36812   builtin and then its argument prototype would still apply.  */
36813#ifdef __cplusplus
36814extern "C"
36815#endif
36816char $ac_func ();
36817/* The GNU C library defines this for functions which it implements
36818    to always fail with ENOSYS.  Some functions are actually named
36819    something starting with __ and the normal name is an alias.  */
36820#if defined __stub_$ac_func || defined __stub___$ac_func
36821choke me
36822#endif
36823
36824int
36825main ()
36826{
36827return $ac_func ();
36828  ;
36829  return 0;
36830}
36831_ACEOF
36832rm -f conftest.$ac_objext conftest$ac_exeext
36833if { (ac_try="$ac_link"
36834case "(($ac_try" in
36835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36836  *) ac_try_echo=$ac_try;;
36837esac
36838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36839  (eval "$ac_link") 2>conftest.er1
36840  ac_status=$?
36841  grep -v '^ *+' conftest.er1 >conftest.err
36842  rm -f conftest.er1
36843  cat conftest.err >&5
36844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36845  (exit $ac_status); } && {
36846	 test -z "$ac_c_werror_flag" ||
36847	 test ! -s conftest.err
36848       } && test -s conftest$ac_exeext &&
36849       $as_test_x conftest$ac_exeext; then
36850  eval "$as_ac_var=yes"
36851else
36852  echo "$as_me: failed program was:" >&5
36853sed 's/^/| /' conftest.$ac_ext >&5
36854
36855	eval "$as_ac_var=no"
36856fi
36857
36858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36859      conftest$ac_exeext conftest.$ac_ext
36860fi
36861ac_res=`eval echo '${'$as_ac_var'}'`
36862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36863echo "${ECHO_T}$ac_res" >&6; }
36864if test `eval echo '${'$as_ac_var'}'` = yes; then
36865  cat >>confdefs.h <<_ACEOF
36866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36867_ACEOF
36868
36869fi
36870done
36871
36872	if test "$ac_cv_func_getpeerucred" != yes ; then
36873		{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
36874echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
36875if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
36876  echo $ECHO_N "(cached) $ECHO_C" >&6
36877else
36878  cat >conftest.$ac_ext <<_ACEOF
36879/* confdefs.h.  */
36880_ACEOF
36881cat confdefs.h >>conftest.$ac_ext
36882cat >>conftest.$ac_ext <<_ACEOF
36883/* end confdefs.h.  */
36884$ac_includes_default
36885#ifdef HAVE_SYS_SOCKET_H
36886#include <sys/socket.h>
36887#endif
36888
36889int
36890main ()
36891{
36892static struct msghdr ac_aggr;
36893if (ac_aggr.msg_accrightslen)
36894return 0;
36895  ;
36896  return 0;
36897}
36898_ACEOF
36899rm -f conftest.$ac_objext
36900if { (ac_try="$ac_compile"
36901case "(($ac_try" in
36902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36903  *) ac_try_echo=$ac_try;;
36904esac
36905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36906  (eval "$ac_compile") 2>conftest.er1
36907  ac_status=$?
36908  grep -v '^ *+' conftest.er1 >conftest.err
36909  rm -f conftest.er1
36910  cat conftest.err >&5
36911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912  (exit $ac_status); } && {
36913	 test -z "$ac_c_werror_flag" ||
36914	 test ! -s conftest.err
36915       } && test -s conftest.$ac_objext; then
36916  ac_cv_member_struct_msghdr_msg_accrightslen=yes
36917else
36918  echo "$as_me: failed program was:" >&5
36919sed 's/^/| /' conftest.$ac_ext >&5
36920
36921	cat >conftest.$ac_ext <<_ACEOF
36922/* confdefs.h.  */
36923_ACEOF
36924cat confdefs.h >>conftest.$ac_ext
36925cat >>conftest.$ac_ext <<_ACEOF
36926/* end confdefs.h.  */
36927$ac_includes_default
36928#ifdef HAVE_SYS_SOCKET_H
36929#include <sys/socket.h>
36930#endif
36931
36932int
36933main ()
36934{
36935static struct msghdr ac_aggr;
36936if (sizeof ac_aggr.msg_accrightslen)
36937return 0;
36938  ;
36939  return 0;
36940}
36941_ACEOF
36942rm -f conftest.$ac_objext
36943if { (ac_try="$ac_compile"
36944case "(($ac_try" in
36945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36946  *) ac_try_echo=$ac_try;;
36947esac
36948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36949  (eval "$ac_compile") 2>conftest.er1
36950  ac_status=$?
36951  grep -v '^ *+' conftest.er1 >conftest.err
36952  rm -f conftest.er1
36953  cat conftest.err >&5
36954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955  (exit $ac_status); } && {
36956	 test -z "$ac_c_werror_flag" ||
36957	 test ! -s conftest.err
36958       } && test -s conftest.$ac_objext; then
36959  ac_cv_member_struct_msghdr_msg_accrightslen=yes
36960else
36961  echo "$as_me: failed program was:" >&5
36962sed 's/^/| /' conftest.$ac_ext >&5
36963
36964	ac_cv_member_struct_msghdr_msg_accrightslen=no
36965fi
36966
36967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36968fi
36969
36970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36971fi
36972{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
36973echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
36974if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
36975
36976cat >>confdefs.h <<_ACEOF
36977#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
36978_ACEOF
36979
36980
36981fi
36982
36983		if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
36984			{ echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
36985echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
36986if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
36987  echo $ECHO_N "(cached) $ECHO_C" >&6
36988else
36989  cat >conftest.$ac_ext <<_ACEOF
36990/* confdefs.h.  */
36991_ACEOF
36992cat confdefs.h >>conftest.$ac_ext
36993cat >>conftest.$ac_ext <<_ACEOF
36994/* end confdefs.h.  */
36995$ac_includes_default
36996#ifdef HAVE_SYS_SOCKET_H
36997#include <sys/socket.h>
36998#endif
36999
37000int
37001main ()
37002{
37003static struct msghdr ac_aggr;
37004if (ac_aggr.msg_control)
37005return 0;
37006  ;
37007  return 0;
37008}
37009_ACEOF
37010rm -f conftest.$ac_objext
37011if { (ac_try="$ac_compile"
37012case "(($ac_try" in
37013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014  *) ac_try_echo=$ac_try;;
37015esac
37016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017  (eval "$ac_compile") 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); } && {
37024	 test -z "$ac_c_werror_flag" ||
37025	 test ! -s conftest.err
37026       } && test -s conftest.$ac_objext; then
37027  ac_cv_member_struct_msghdr_msg_control=yes
37028else
37029  echo "$as_me: failed program was:" >&5
37030sed 's/^/| /' conftest.$ac_ext >&5
37031
37032	cat >conftest.$ac_ext <<_ACEOF
37033/* confdefs.h.  */
37034_ACEOF
37035cat confdefs.h >>conftest.$ac_ext
37036cat >>conftest.$ac_ext <<_ACEOF
37037/* end confdefs.h.  */
37038$ac_includes_default
37039#ifdef HAVE_SYS_SOCKET_H
37040#include <sys/socket.h>
37041#endif
37042
37043int
37044main ()
37045{
37046static struct msghdr ac_aggr;
37047if (sizeof ac_aggr.msg_control)
37048return 0;
37049  ;
37050  return 0;
37051}
37052_ACEOF
37053rm -f conftest.$ac_objext
37054if { (ac_try="$ac_compile"
37055case "(($ac_try" in
37056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37057  *) ac_try_echo=$ac_try;;
37058esac
37059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37060  (eval "$ac_compile") 2>conftest.er1
37061  ac_status=$?
37062  grep -v '^ *+' conftest.er1 >conftest.err
37063  rm -f conftest.er1
37064  cat conftest.err >&5
37065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066  (exit $ac_status); } && {
37067	 test -z "$ac_c_werror_flag" ||
37068	 test ! -s conftest.err
37069       } && test -s conftest.$ac_objext; then
37070  ac_cv_member_struct_msghdr_msg_control=yes
37071else
37072  echo "$as_me: failed program was:" >&5
37073sed 's/^/| /' conftest.$ac_ext >&5
37074
37075	ac_cv_member_struct_msghdr_msg_control=no
37076fi
37077
37078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37079fi
37080
37081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37082fi
37083{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37084echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37085if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37086
37087cat >>confdefs.h <<_ACEOF
37088#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37089_ACEOF
37090
37091
37092fi
37093
37094		fi
37095		{ echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37096echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37097if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37098  echo $ECHO_N "(cached) $ECHO_C" >&6
37099else
37100  cat >conftest.$ac_ext <<_ACEOF
37101/* confdefs.h.  */
37102_ACEOF
37103cat confdefs.h >>conftest.$ac_ext
37104cat >>conftest.$ac_ext <<_ACEOF
37105/* end confdefs.h.  */
37106$ac_includes_default
37107int
37108main ()
37109{
37110static struct stat ac_aggr;
37111if (ac_aggr.st_fstype)
37112return 0;
37113  ;
37114  return 0;
37115}
37116_ACEOF
37117rm -f conftest.$ac_objext
37118if { (ac_try="$ac_compile"
37119case "(($ac_try" in
37120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121  *) ac_try_echo=$ac_try;;
37122esac
37123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124  (eval "$ac_compile") 2>conftest.er1
37125  ac_status=$?
37126  grep -v '^ *+' conftest.er1 >conftest.err
37127  rm -f conftest.er1
37128  cat conftest.err >&5
37129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130  (exit $ac_status); } && {
37131	 test -z "$ac_c_werror_flag" ||
37132	 test ! -s conftest.err
37133       } && test -s conftest.$ac_objext; then
37134  ac_cv_member_struct_stat_st_fstype=yes
37135else
37136  echo "$as_me: failed program was:" >&5
37137sed 's/^/| /' conftest.$ac_ext >&5
37138
37139	cat >conftest.$ac_ext <<_ACEOF
37140/* confdefs.h.  */
37141_ACEOF
37142cat confdefs.h >>conftest.$ac_ext
37143cat >>conftest.$ac_ext <<_ACEOF
37144/* end confdefs.h.  */
37145$ac_includes_default
37146int
37147main ()
37148{
37149static struct stat ac_aggr;
37150if (sizeof ac_aggr.st_fstype)
37151return 0;
37152  ;
37153  return 0;
37154}
37155_ACEOF
37156rm -f conftest.$ac_objext
37157if { (ac_try="$ac_compile"
37158case "(($ac_try" in
37159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37160  *) ac_try_echo=$ac_try;;
37161esac
37162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37163  (eval "$ac_compile") 2>conftest.er1
37164  ac_status=$?
37165  grep -v '^ *+' conftest.er1 >conftest.err
37166  rm -f conftest.er1
37167  cat conftest.err >&5
37168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169  (exit $ac_status); } && {
37170	 test -z "$ac_c_werror_flag" ||
37171	 test ! -s conftest.err
37172       } && test -s conftest.$ac_objext; then
37173  ac_cv_member_struct_stat_st_fstype=yes
37174else
37175  echo "$as_me: failed program was:" >&5
37176sed 's/^/| /' conftest.$ac_ext >&5
37177
37178	ac_cv_member_struct_stat_st_fstype=no
37179fi
37180
37181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37182fi
37183
37184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37185fi
37186{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37187echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37188if test $ac_cv_member_struct_stat_st_fstype = yes; then
37189
37190cat >>confdefs.h <<_ACEOF
37191#define HAVE_STRUCT_STAT_ST_FSTYPE 1
37192_ACEOF
37193
37194
37195fi
37196{ echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37197echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37198if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37199  echo $ECHO_N "(cached) $ECHO_C" >&6
37200else
37201  cat >conftest.$ac_ext <<_ACEOF
37202/* confdefs.h.  */
37203_ACEOF
37204cat confdefs.h >>conftest.$ac_ext
37205cat >>conftest.$ac_ext <<_ACEOF
37206/* end confdefs.h.  */
37207$ac_includes_default
37208int
37209main ()
37210{
37211static struct stat ac_aggr;
37212if (ac_aggr.st_vfstype)
37213return 0;
37214  ;
37215  return 0;
37216}
37217_ACEOF
37218rm -f conftest.$ac_objext
37219if { (ac_try="$ac_compile"
37220case "(($ac_try" in
37221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37222  *) ac_try_echo=$ac_try;;
37223esac
37224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37225  (eval "$ac_compile") 2>conftest.er1
37226  ac_status=$?
37227  grep -v '^ *+' conftest.er1 >conftest.err
37228  rm -f conftest.er1
37229  cat conftest.err >&5
37230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231  (exit $ac_status); } && {
37232	 test -z "$ac_c_werror_flag" ||
37233	 test ! -s conftest.err
37234       } && test -s conftest.$ac_objext; then
37235  ac_cv_member_struct_stat_st_vfstype=yes
37236else
37237  echo "$as_me: failed program was:" >&5
37238sed 's/^/| /' conftest.$ac_ext >&5
37239
37240	cat >conftest.$ac_ext <<_ACEOF
37241/* confdefs.h.  */
37242_ACEOF
37243cat confdefs.h >>conftest.$ac_ext
37244cat >>conftest.$ac_ext <<_ACEOF
37245/* end confdefs.h.  */
37246$ac_includes_default
37247int
37248main ()
37249{
37250static struct stat ac_aggr;
37251if (sizeof ac_aggr.st_vfstype)
37252return 0;
37253  ;
37254  return 0;
37255}
37256_ACEOF
37257rm -f conftest.$ac_objext
37258if { (ac_try="$ac_compile"
37259case "(($ac_try" in
37260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37261  *) ac_try_echo=$ac_try;;
37262esac
37263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37264  (eval "$ac_compile") 2>conftest.er1
37265  ac_status=$?
37266  grep -v '^ *+' conftest.er1 >conftest.err
37267  rm -f conftest.er1
37268  cat conftest.err >&5
37269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270  (exit $ac_status); } && {
37271	 test -z "$ac_c_werror_flag" ||
37272	 test ! -s conftest.err
37273       } && test -s conftest.$ac_objext; then
37274  ac_cv_member_struct_stat_st_vfstype=yes
37275else
37276  echo "$as_me: failed program was:" >&5
37277sed 's/^/| /' conftest.$ac_ext >&5
37278
37279	ac_cv_member_struct_stat_st_vfstype=no
37280fi
37281
37282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37283fi
37284
37285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37286fi
37287{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37288echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37289if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37290
37291cat >>confdefs.h <<_ACEOF
37292#define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37293_ACEOF
37294
37295
37296fi
37297
37298		if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37299			cat >conftest.$ac_ext <<_ACEOF
37300struct stat st; char *ptr=st.st_fstype;
37301_ACEOF
37302rm -f conftest.$ac_objext
37303if { (ac_try="$ac_compile"
37304case "(($ac_try" in
37305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37306  *) ac_try_echo=$ac_try;;
37307esac
37308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37309  (eval "$ac_compile") 2>conftest.er1
37310  ac_status=$?
37311  grep -v '^ *+' conftest.er1 >conftest.err
37312  rm -f conftest.er1
37313  cat conftest.err >&5
37314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315  (exit $ac_status); } && {
37316	 test -z "$ac_c_werror_flag" ||
37317	 test ! -s conftest.err
37318       } && test -s conftest.$ac_objext; then
37319
37320cat >>confdefs.h <<\_ACEOF
37321#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37322_ACEOF
37323
37324else
37325  echo "$as_me: failed program was:" >&5
37326sed 's/^/| /' conftest.$ac_ext >&5
37327
37328
37329cat >>confdefs.h <<\_ACEOF
37330#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37331_ACEOF
37332
37333fi
37334
37335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37336		fi
37337	fi
37338	LIBSRCS="$LIBSRCS getpeereid.c"
37339fi
37340
37341if test "$ac_cv_func_snprintf" != yes ||
37342   test "$ac_cv_func_vsnprintf" != yes; then
37343	if test "$ac_cv_func_snprintf" != yes; then
37344
37345cat >>confdefs.h <<\_ACEOF
37346#define snprintf ber_pvt_snprintf
37347_ACEOF
37348
37349	fi
37350	if test "$ac_cv_func_vsnprintf" != yes; then
37351
37352cat >>confdefs.h <<\_ACEOF
37353#define vsnprintf ber_pvt_vsnprintf
37354_ACEOF
37355
37356	fi
37357fi
37358
37359
37360if test "$ol_enable_slapi" != no ; then
37361
37362for ac_header in ltdl.h
37363do
37364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37366  { echo "$as_me:$LINENO: checking for $ac_header" >&5
37367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37369  echo $ECHO_N "(cached) $ECHO_C" >&6
37370fi
37371ac_res=`eval echo '${'$as_ac_Header'}'`
37372	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37373echo "${ECHO_T}$ac_res" >&6; }
37374else
37375  # Is the header compilable?
37376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
37377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37378cat >conftest.$ac_ext <<_ACEOF
37379/* confdefs.h.  */
37380_ACEOF
37381cat confdefs.h >>conftest.$ac_ext
37382cat >>conftest.$ac_ext <<_ACEOF
37383/* end confdefs.h.  */
37384$ac_includes_default
37385#include <$ac_header>
37386_ACEOF
37387rm -f conftest.$ac_objext
37388if { (ac_try="$ac_compile"
37389case "(($ac_try" in
37390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37391  *) ac_try_echo=$ac_try;;
37392esac
37393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37394  (eval "$ac_compile") 2>conftest.er1
37395  ac_status=$?
37396  grep -v '^ *+' conftest.er1 >conftest.err
37397  rm -f conftest.er1
37398  cat conftest.err >&5
37399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37400  (exit $ac_status); } && {
37401	 test -z "$ac_c_werror_flag" ||
37402	 test ! -s conftest.err
37403       } && test -s conftest.$ac_objext; then
37404  ac_header_compiler=yes
37405else
37406  echo "$as_me: failed program was:" >&5
37407sed 's/^/| /' conftest.$ac_ext >&5
37408
37409	ac_header_compiler=no
37410fi
37411
37412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37414echo "${ECHO_T}$ac_header_compiler" >&6; }
37415
37416# Is the header present?
37417{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
37418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37419cat >conftest.$ac_ext <<_ACEOF
37420/* confdefs.h.  */
37421_ACEOF
37422cat confdefs.h >>conftest.$ac_ext
37423cat >>conftest.$ac_ext <<_ACEOF
37424/* end confdefs.h.  */
37425#include <$ac_header>
37426_ACEOF
37427if { (ac_try="$ac_cpp conftest.$ac_ext"
37428case "(($ac_try" in
37429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37430  *) ac_try_echo=$ac_try;;
37431esac
37432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37433  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37434  ac_status=$?
37435  grep -v '^ *+' conftest.er1 >conftest.err
37436  rm -f conftest.er1
37437  cat conftest.err >&5
37438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439  (exit $ac_status); } >/dev/null && {
37440	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37441	 test ! -s conftest.err
37442       }; then
37443  ac_header_preproc=yes
37444else
37445  echo "$as_me: failed program was:" >&5
37446sed 's/^/| /' conftest.$ac_ext >&5
37447
37448  ac_header_preproc=no
37449fi
37450
37451rm -f conftest.err conftest.$ac_ext
37452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37453echo "${ECHO_T}$ac_header_preproc" >&6; }
37454
37455# So?  What about this header?
37456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37457  yes:no: )
37458    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37460    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37462    ac_header_preproc=yes
37463    ;;
37464  no:yes:* )
37465    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37467    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37468echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37469    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37471    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37472echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37473    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37475    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37477    ( cat <<\_ASBOX
37478## --------------------------------------------- ##
37479## Report this to <http://www.openldap.org/its/> ##
37480## --------------------------------------------- ##
37481_ASBOX
37482     ) | sed "s/^/$as_me: WARNING:     /" >&2
37483    ;;
37484esac
37485{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37488  echo $ECHO_N "(cached) $ECHO_C" >&6
37489else
37490  eval "$as_ac_Header=\$ac_header_preproc"
37491fi
37492ac_res=`eval echo '${'$as_ac_Header'}'`
37493	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37494echo "${ECHO_T}$ac_res" >&6; }
37495
37496fi
37497if test `eval echo '${'$as_ac_Header'}'` = yes; then
37498  cat >>confdefs.h <<_ACEOF
37499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37500_ACEOF
37501
37502fi
37503
37504done
37505
37506
37507	if test $ac_cv_header_ltdl_h != yes ; then
37508		{ { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37509echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37510   { (exit 1); exit 1; }; }
37511	fi
37512	{ echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37513echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37514if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37515  echo $ECHO_N "(cached) $ECHO_C" >&6
37516else
37517  ac_check_lib_save_LIBS=$LIBS
37518LIBS="-lltdl  $LIBS"
37519cat >conftest.$ac_ext <<_ACEOF
37520/* confdefs.h.  */
37521_ACEOF
37522cat confdefs.h >>conftest.$ac_ext
37523cat >>conftest.$ac_ext <<_ACEOF
37524/* end confdefs.h.  */
37525
37526/* Override any GCC internal prototype to avoid an error.
37527   Use char because int might match the return type of a GCC
37528   builtin and then its argument prototype would still apply.  */
37529#ifdef __cplusplus
37530extern "C"
37531#endif
37532char lt_dlinit ();
37533int
37534main ()
37535{
37536return lt_dlinit ();
37537  ;
37538  return 0;
37539}
37540_ACEOF
37541rm -f conftest.$ac_objext conftest$ac_exeext
37542if { (ac_try="$ac_link"
37543case "(($ac_try" in
37544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37545  *) ac_try_echo=$ac_try;;
37546esac
37547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37548  (eval "$ac_link") 2>conftest.er1
37549  ac_status=$?
37550  grep -v '^ *+' conftest.er1 >conftest.err
37551  rm -f conftest.er1
37552  cat conftest.err >&5
37553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554  (exit $ac_status); } && {
37555	 test -z "$ac_c_werror_flag" ||
37556	 test ! -s conftest.err
37557       } && test -s conftest$ac_exeext &&
37558       $as_test_x conftest$ac_exeext; then
37559  ac_cv_lib_ltdl_lt_dlinit=yes
37560else
37561  echo "$as_me: failed program was:" >&5
37562sed 's/^/| /' conftest.$ac_ext >&5
37563
37564	ac_cv_lib_ltdl_lt_dlinit=no
37565fi
37566
37567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37568      conftest$ac_exeext conftest.$ac_ext
37569LIBS=$ac_check_lib_save_LIBS
37570fi
37571{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37572echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37573if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37574
37575		SLAPI_LIBS=-lltdl
37576		LIBSLAPI=libslapi.a
37577		LIBSLAPITOOLS=../libslapi.a
37578
37579cat >>confdefs.h <<\_ACEOF
37580#define HAVE_LIBLTDL 1
37581_ACEOF
37582
37583
37584else
37585  { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37586echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37587   { (exit 1); exit 1; }; }
37588fi
37589
37590
37591
37592cat >>confdefs.h <<\_ACEOF
37593#define LDAP_SLAPI 1
37594_ACEOF
37595
37596fi
37597
37598if test "$ol_enable_debug" != no ; then
37599	if test "$ol_enable_debug" = traditional; then
37600
37601cat >>confdefs.h <<\_ACEOF
37602#define OLD_DEBUG 1
37603_ACEOF
37604
37605	fi
37606
37607cat >>confdefs.h <<\_ACEOF
37608#define LDAP_DEBUG 1
37609_ACEOF
37610
37611fi
37612if test "$ol_enable_syslog" = yes ; then
37613
37614cat >>confdefs.h <<\_ACEOF
37615#define LDAP_SYSLOG 1
37616_ACEOF
37617
37618fi
37619if test "$ol_enable_proctitle" != no ; then
37620
37621cat >>confdefs.h <<\_ACEOF
37622#define LDAP_PROCTITLE 1
37623_ACEOF
37624
37625fi
37626if test "$ol_enable_referrals" != no ; then
37627
37628cat >>confdefs.h <<\_ACEOF
37629#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37630_ACEOF
37631
37632fi
37633if test "$ol_enable_local" != no; then
37634
37635cat >>confdefs.h <<\_ACEOF
37636#define LDAP_PF_LOCAL 1
37637_ACEOF
37638
37639fi
37640if test "$ol_link_ipv6" != no; then
37641
37642cat >>confdefs.h <<\_ACEOF
37643#define LDAP_PF_INET6 1
37644_ACEOF
37645
37646fi
37647if test "$ol_enable_cleartext" != no ; then
37648
37649cat >>confdefs.h <<\_ACEOF
37650#define SLAPD_CLEARTEXT 1
37651_ACEOF
37652
37653fi
37654if test "$ol_enable_crypt" != no ; then
37655
37656cat >>confdefs.h <<\_ACEOF
37657#define SLAPD_CRYPT 1
37658_ACEOF
37659
37660fi
37661if test "$ol_link_spasswd" != no ; then
37662
37663cat >>confdefs.h <<\_ACEOF
37664#define SLAPD_SPASSWD 1
37665_ACEOF
37666
37667fi
37668if test "$ol_enable_rlookups" != no ; then
37669
37670cat >>confdefs.h <<\_ACEOF
37671#define SLAPD_RLOOKUPS 1
37672_ACEOF
37673
37674fi
37675if test "$ol_enable_aci" != no ; then
37676	if test $ol_enable_dynacl = no ; then
37677		ol_enable_dynacl=yes
37678		{ echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37679echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37680	fi
37681	if test "$ol_enable_aci" = mod ; then
37682		MFLAG=SLAPD_MOD_DYNAMIC
37683				{ { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37684echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37685   { (exit 1); exit 1; }; }
37686	else
37687		MFLAG=SLAPD_MOD_STATIC
37688	fi
37689	WITH_ACI_ENABLED=$ol_enable_aci
37690
37691cat >>confdefs.h <<_ACEOF
37692#define SLAPD_ACI_ENABLED $MFLAG
37693_ACEOF
37694
37695else
37696	WITH_ACI_ENABLED=no
37697fi
37698if test "$ol_enable_dynacl" != no ; then
37699
37700cat >>confdefs.h <<\_ACEOF
37701#define SLAP_DYNACL 1
37702_ACEOF
37703
37704fi
37705
37706if test "$ol_link_modules" != no ; then
37707
37708cat >>confdefs.h <<\_ACEOF
37709#define SLAPD_MODULES 1
37710_ACEOF
37711
37712	BUILD_SLAPD=yes
37713	SLAPD_MODULES_LDFLAGS="-dlopen self"
37714fi
37715
37716
37717cat >>confdefs.h <<\_ACEOF
37718#define SLAPD_MOD_STATIC 1
37719_ACEOF
37720
37721
37722cat >>confdefs.h <<\_ACEOF
37723#define SLAPD_MOD_DYNAMIC 2
37724_ACEOF
37725
37726
37727if test "$ol_enable_monitor" != no ; then
37728	BUILD_SLAPD=yes
37729	BUILD_MONITOR=$ol_enable_monitor
37730	if test "$ol_enable_monitor" = mod ; then
37731		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
37732		MFLAG=SLAPD_MOD_DYNAMIC
37733	else
37734		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
37735		MFLAG=SLAPD_MOD_STATIC
37736	fi
37737
37738cat >>confdefs.h <<_ACEOF
37739#define SLAPD_MONITOR $MFLAG
37740_ACEOF
37741
37742fi
37743
37744if test "$ol_enable_bdb" != no ; then
37745	BUILD_SLAPD=yes
37746	BUILD_BDB=$ol_enable_bdb
37747	if test "$ol_enable_bdb" = mod ; then
37748		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
37749		MFLAG=SLAPD_MOD_DYNAMIC
37750	else
37751		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
37752		MFLAG=SLAPD_MOD_STATIC
37753	fi
37754
37755cat >>confdefs.h <<_ACEOF
37756#define SLAPD_BDB $MFLAG
37757_ACEOF
37758
37759fi
37760
37761if test "$ol_enable_dnssrv" != no ; then
37762	BUILD_SLAPD=yes
37763	BUILD_DNSSRV=$ol_enable_dnssrv
37764	if test "$ol_enable_dnssrv" = mod ; then
37765		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
37766		MFLAG=SLAPD_MOD_DYNAMIC
37767	else
37768		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
37769		MFLAG=SLAPD_MOD_STATIC
37770	fi
37771
37772cat >>confdefs.h <<_ACEOF
37773#define SLAPD_DNSSRV $MFLAG
37774_ACEOF
37775
37776fi
37777
37778if test "$ol_enable_hdb" != no ; then
37779	BUILD_SLAPD=yes
37780	BUILD_HDB=$ol_enable_hdb
37781	if test "$ol_enable_hdb" = mod ; then
37782		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
37783		MFLAG=SLAPD_MOD_DYNAMIC
37784	else
37785		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
37786		MFLAG=SLAPD_MOD_STATIC
37787	fi
37788
37789cat >>confdefs.h <<_ACEOF
37790#define SLAPD_HDB $MFLAG
37791_ACEOF
37792
37793fi
37794
37795if test "$ol_enable_ldap" != no ; then
37796	BUILD_SLAPD=yes
37797	BUILD_LDAP=$ol_enable_ldap
37798	if test "$ol_enable_ldap" = mod ; then
37799		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
37800		MFLAG=SLAPD_MOD_DYNAMIC
37801	else
37802		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
37803		MFLAG=SLAPD_MOD_STATIC
37804	fi
37805
37806cat >>confdefs.h <<_ACEOF
37807#define SLAPD_LDAP $MFLAG
37808_ACEOF
37809
37810fi
37811
37812if test "$ol_enable_meta" != no ; then
37813	BUILD_SLAPD=yes
37814	BUILD_META=$ol_enable_meta
37815	BUILD_REWRITE=yes
37816	if test "$ol_enable_meta" = mod ; then
37817		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
37818		MFLAG=SLAPD_MOD_DYNAMIC
37819	else
37820		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
37821		MFLAG=SLAPD_MOD_STATIC
37822	fi
37823
37824cat >>confdefs.h <<_ACEOF
37825#define SLAPD_META $MFLAG
37826_ACEOF
37827
37828fi
37829
37830if test "$ol_enable_null" != no ; then
37831	BUILD_SLAPD=yes
37832	BUILD_NULL=$ol_enable_null
37833	if test "$ol_enable_null" = mod ; then
37834		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
37835		MFLAG=SLAPD_MOD_DYNAMIC
37836	else
37837		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
37838		MFLAG=SLAPD_MOD_STATIC
37839	fi
37840
37841cat >>confdefs.h <<_ACEOF
37842#define SLAPD_NULL $MFLAG
37843_ACEOF
37844
37845fi
37846
37847if test "$ol_enable_passwd" != no ; then
37848	BUILD_SLAPD=yes
37849	BUILD_PASSWD=$ol_enable_passwd
37850	if test "$ol_enable_passwd" = mod ; then
37851		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
37852		MFLAG=SLAPD_MOD_DYNAMIC
37853	else
37854		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
37855		MFLAG=SLAPD_MOD_STATIC
37856	fi
37857
37858cat >>confdefs.h <<_ACEOF
37859#define SLAPD_PASSWD $MFLAG
37860_ACEOF
37861
37862fi
37863
37864if test "$ol_link_perl" != no ; then
37865	BUILD_SLAPD=yes
37866	BUILD_PERL=$ol_enable_perl
37867	if test "$ol_enable_perl" = mod ; then
37868		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
37869		MFLAG=SLAPD_MOD_DYNAMIC
37870	else
37871		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
37872		MFLAG=SLAPD_MOD_STATIC
37873	fi
37874
37875cat >>confdefs.h <<_ACEOF
37876#define SLAPD_PERL $MFLAG
37877_ACEOF
37878
37879fi
37880
37881if test "$ol_enable_relay" != no ; then
37882	BUILD_SLAPD=yes
37883	BUILD_RELAY=$ol_enable_relay
37884	if test "$ol_enable_relay" = mod ; then
37885		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
37886		MFLAG=SLAPD_MOD_DYNAMIC
37887	else
37888		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
37889		MFLAG=SLAPD_MOD_STATIC
37890	fi
37891
37892cat >>confdefs.h <<_ACEOF
37893#define SLAPD_RELAY $MFLAG
37894_ACEOF
37895
37896fi
37897
37898if test "$ol_enable_shell" != no ; then
37899	if test "$ol_link_threads" != no ; then
37900		{ echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
37901echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
37902	fi
37903	BUILD_SLAPD=yes
37904	BUILD_SHELL=$ol_enable_shell
37905	if test "$ol_enable_shell" = mod ; then
37906		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
37907		MFLAG=SLAPD_MOD_DYNAMIC
37908	else
37909		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
37910		MFLAG=SLAPD_MOD_STATIC
37911	fi
37912
37913cat >>confdefs.h <<_ACEOF
37914#define SLAPD_SHELL $MFLAG
37915_ACEOF
37916
37917fi
37918
37919if test "$ol_enable_sock" != no ; then
37920	BUILD_SLAPD=yes
37921	BUILD_SOCK=$ol_enable_sock
37922	if test "$ol_enable_sock" = mod ; then
37923		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
37924		MFLAG=SLAPD_MOD_DYNAMIC
37925	else
37926		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
37927		MFLAG=SLAPD_MOD_STATIC
37928	fi
37929
37930cat >>confdefs.h <<_ACEOF
37931#define SLAPD_SOCK $MFLAG
37932_ACEOF
37933
37934fi
37935
37936if test "$ol_link_sql" != no ; then
37937	BUILD_SLAPD=yes
37938	BUILD_SQL=$ol_enable_sql
37939	if test "$ol_enable_sql" = mod; then
37940		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
37941		MFLAG=SLAPD_MOD_DYNAMIC
37942	else
37943		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
37944		MFLAG=SLAPD_MOD_STATIC
37945	fi
37946
37947cat >>confdefs.h <<_ACEOF
37948#define SLAPD_SQL $MFLAG
37949_ACEOF
37950
37951fi
37952
37953if test "$ol_enable_accesslog" != no ; then
37954	BUILD_ACCESSLOG=$ol_enable_accesslog
37955	if test "$ol_enable_accesslog" = mod ; then
37956		MFLAG=SLAPD_MOD_DYNAMIC
37957		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
37958	else
37959		MFLAG=SLAPD_MOD_STATIC
37960		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
37961	fi
37962
37963cat >>confdefs.h <<_ACEOF
37964#define SLAPD_OVER_ACCESSLOG $MFLAG
37965_ACEOF
37966
37967fi
37968
37969if test "$ol_enable_dynid" != no ; then
37970	BUILD_DYNID=$ol_enable_dynid
37971	if test "$ol_enable_dynid" = mod ; then
37972		MFLAG=SLAPD_MOD_DYNAMIC
37973		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynid.la"
37974	else
37975		MFLAG=SLAPD_MOD_STATIC
37976		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynid.o"
37977	fi
37978
37979cat >>confdefs.h <<_ACEOF
37980#define SLAPD_OVER_DYNID $MFLAG
37981_ACEOF
37982
37983fi
37984
37985if test "$ol_enable_odlocales" != no ; then
37986	BUILD_ODLOCALES=$ol_enable_odlocales
37987	if test "$ol_enable_odlocales" = mod ; then
37988		MFLAG=SLAPD_MOD_DYNAMIC
37989		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS odlocales.la"
37990	else
37991		MFLAG=SLAPD_MOD_STATIC
37992		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS odlocales.o"
37993	fi
37994
37995cat >>confdefs.h <<_ACEOF
37996#define SLAPD_OVER_ODLOCALES $MFLAG
37997_ACEOF
37998
37999fi
38000
38001if test "$ol_enable_odusers" != no ; then
38002	BUILD_ODUSERS=$ol_enable_odusers
38003	if test "$ol_enable_odusers" = mod ; then
38004		MFLAG=SLAPD_MOD_DYNAMIC
38005		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS odusers.la"
38006	else
38007		MFLAG=SLAPD_MOD_STATIC
38008		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS odusers.o"
38009	fi
38010
38011cat >>confdefs.h <<_ACEOF
38012#define SLAPD_OVER_ODUSERS $MFLAG
38013_ACEOF
38014
38015fi
38016
38017if test "$ol_enable_auditlog" != no ; then
38018	BUILD_AUDITLOG=$ol_enable_auditlog
38019	if test "$ol_enable_auditlog" = mod ; then
38020		MFLAG=SLAPD_MOD_DYNAMIC
38021		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38022	else
38023		MFLAG=SLAPD_MOD_STATIC
38024		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38025	fi
38026
38027cat >>confdefs.h <<_ACEOF
38028#define SLAPD_OVER_AUDITLOG $MFLAG
38029_ACEOF
38030
38031fi
38032
38033if test "$ol_enable_constraint" != no ; then
38034	BUILD_CONSTRAINT=$ol_enable_constraint
38035	if test "$ol_enable_constraint" = mod ; then
38036		MFLAG=SLAPD_MOD_DYNAMIC
38037		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38038	else
38039		MFLAG=SLAPD_MOD_STATIC
38040		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38041	fi
38042
38043cat >>confdefs.h <<_ACEOF
38044#define SLAPD_OVER_CONSTRAINT $MFLAG
38045_ACEOF
38046
38047fi
38048
38049if test "$ol_enable_dds" != no ; then
38050	BUILD_DDS=$ol_enable_dds
38051	if test "$ol_enable_dds" = mod ; then
38052		MFLAG=SLAPD_MOD_DYNAMIC
38053		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38054	else
38055		MFLAG=SLAPD_MOD_STATIC
38056		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38057	fi
38058
38059cat >>confdefs.h <<_ACEOF
38060#define SLAPD_OVER_DDS $MFLAG
38061_ACEOF
38062
38063fi
38064
38065if test "$ol_enable_deref" != no ; then
38066	BUILD_DEREF=$ol_enable_deref
38067	if test "$ol_enable_deref" = mod ; then
38068		MFLAG=SLAPD_MOD_DYNAMIC
38069		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38070	else
38071		MFLAG=SLAPD_MOD_STATIC
38072		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38073	fi
38074
38075cat >>confdefs.h <<_ACEOF
38076#define SLAPD_OVER_DEREF $MFLAG
38077_ACEOF
38078
38079fi
38080
38081if test "$ol_enable_dyngroup" != no ; then
38082	BUILD_DYNGROUP=$ol_enable_dyngroup
38083	if test "$ol_enable_dyngroup" = mod ; then
38084		MFLAG=SLAPD_MOD_DYNAMIC
38085		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38086	else
38087		MFLAG=SLAPD_MOD_STATIC
38088		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38089	fi
38090
38091cat >>confdefs.h <<_ACEOF
38092#define SLAPD_OVER_DYNGROUP $MFLAG
38093_ACEOF
38094
38095fi
38096if test "$ol_enable_nestedgroup" != no ; then
38097	BUILD_DYNGROUP=$ol_enable_nestedgroup
38098	if test "$ol_enable_nestedgroup" = mod ; then
38099		MFLAG=SLAPD_MOD_DYNAMIC
38100		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS nestedgroup.la"
38101	else
38102		MFLAG=SLAPD_MOD_STATIC
38103		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS nestedgroup.o"
38104	fi
38105
38106cat >>confdefs.h <<_ACEOF
38107#define SLAPD_OVER_NESTEDGROUP $MFLAG
38108_ACEOF
38109
38110fi
38111
38112if test "$ol_enable_dynlist" != no ; then
38113	BUILD_DYNLIST=$ol_enable_dynlist
38114	if test "$ol_enable_dynlist" = mod ; then
38115		MFLAG=SLAPD_MOD_DYNAMIC
38116		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38117	else
38118		MFLAG=SLAPD_MOD_STATIC
38119		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38120	fi
38121
38122cat >>confdefs.h <<_ACEOF
38123#define SLAPD_OVER_DYNLIST $MFLAG
38124_ACEOF
38125
38126fi
38127
38128if test "$ol_enable_memberof" != no ; then
38129	BUILD_MEMBEROF=$ol_enable_memberof
38130	if test "$ol_enable_memberof" = mod ; then
38131		MFLAG=SLAPD_MOD_DYNAMIC
38132		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38133	else
38134		MFLAG=SLAPD_MOD_STATIC
38135		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38136	fi
38137
38138cat >>confdefs.h <<_ACEOF
38139#define SLAPD_OVER_MEMBEROF $MFLAG
38140_ACEOF
38141
38142fi
38143
38144if test "$ol_enable_ppolicy" != no ; then
38145	BUILD_PPOLICY=$ol_enable_ppolicy
38146	if test "$ol_enable_ppolicy" = mod ; then
38147		MFLAG=SLAPD_MOD_DYNAMIC
38148		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38149	else
38150		MFLAG=SLAPD_MOD_STATIC
38151		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38152	fi
38153
38154cat >>confdefs.h <<_ACEOF
38155#define SLAPD_OVER_PPOLICY $MFLAG
38156_ACEOF
38157
38158fi
38159
38160if test "$ol_enable_proxycache" != no ; then
38161	BUILD_PROXYCACHE=$ol_enable_proxycache
38162	if test "$ol_enable_proxycache" = mod ; then
38163		MFLAG=SLAPD_MOD_DYNAMIC
38164		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38165	else
38166		MFLAG=SLAPD_MOD_STATIC
38167		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38168	fi
38169
38170cat >>confdefs.h <<_ACEOF
38171#define SLAPD_OVER_PROXYCACHE $MFLAG
38172_ACEOF
38173
38174fi
38175
38176if test "$ol_enable_refint" != no ; then
38177	BUILD_REFINT=$ol_enable_refint
38178	if test "$ol_enable_refint" = mod ; then
38179		MFLAG=SLAPD_MOD_DYNAMIC
38180		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38181	else
38182		MFLAG=SLAPD_MOD_STATIC
38183		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38184	fi
38185
38186cat >>confdefs.h <<_ACEOF
38187#define SLAPD_OVER_REFINT $MFLAG
38188_ACEOF
38189
38190fi
38191
38192if test "$ol_enable_retcode" != no ; then
38193	BUILD_RETCODE=$ol_enable_retcode
38194	if test "$ol_enable_retcode" = mod ; then
38195		MFLAG=SLAPD_MOD_DYNAMIC
38196		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38197	else
38198		MFLAG=SLAPD_MOD_STATIC
38199		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38200	fi
38201
38202cat >>confdefs.h <<_ACEOF
38203#define SLAPD_OVER_RETCODE $MFLAG
38204_ACEOF
38205
38206fi
38207
38208if test "$ol_enable_seqmod" != no ; then
38209	BUILD_SEQMOD=$ol_enable_seqmod
38210	if test "$ol_enable_seqmod" = mod ; then
38211		MFLAG=SLAPD_MOD_DYNAMIC
38212		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38213	else
38214		MFLAG=SLAPD_MOD_STATIC
38215		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38216	fi
38217
38218cat >>confdefs.h <<_ACEOF
38219#define SLAPD_OVER_SEQMOD $MFLAG
38220_ACEOF
38221
38222fi
38223
38224if test "$ol_enable_syncprov" != no ; then
38225	BUILD_SYNCPROV=$ol_enable_syncprov
38226	if test "$ol_enable_syncprov" = mod ; then
38227		MFLAG=SLAPD_MOD_DYNAMIC
38228		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38229	else
38230		MFLAG=SLAPD_MOD_STATIC
38231		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38232	fi
38233
38234cat >>confdefs.h <<_ACEOF
38235#define SLAPD_OVER_SYNCPROV $MFLAG
38236_ACEOF
38237
38238fi
38239
38240if test "$ol_enable_translucent" != no ; then
38241	BUILD_TRANSLUCENT=$ol_enable_translucent
38242	if test "$ol_enable_translucent" = mod ; then
38243		MFLAG=SLAPD_MOD_DYNAMIC
38244		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38245	else
38246		MFLAG=SLAPD_MOD_STATIC
38247		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38248	fi
38249
38250cat >>confdefs.h <<_ACEOF
38251#define SLAPD_OVER_TRANSLUCENT $MFLAG
38252_ACEOF
38253
38254fi
38255
38256if test "$ol_enable_unique" != no ; then
38257	BUILD_UNIQUE=$ol_enable_unique
38258	if test "$ol_enable_unique" = mod ; then
38259		MFLAG=SLAPD_MOD_DYNAMIC
38260		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38261	else
38262		MFLAG=SLAPD_MOD_STATIC
38263		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38264	fi
38265
38266cat >>confdefs.h <<_ACEOF
38267#define SLAPD_OVER_UNIQUE $MFLAG
38268_ACEOF
38269
38270fi
38271
38272if test "$ol_enable_valsort" != no ; then
38273	BUILD_VALSORT=$ol_enable_valsort
38274	if test "$ol_enable_valsort" = mod ; then
38275		MFLAG=SLAPD_MOD_DYNAMIC
38276		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38277	else
38278		MFLAG=SLAPD_MOD_STATIC
38279		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38280	fi
38281
38282cat >>confdefs.h <<_ACEOF
38283#define SLAPD_OVER_VALSORT $MFLAG
38284_ACEOF
38285
38286fi
38287
38288if test "$ol_enable_rewrite" != no ; then
38289
38290cat >>confdefs.h <<\_ACEOF
38291#define ENABLE_REWRITE 1
38292_ACEOF
38293
38294	BUILD_REWRITE=yes
38295fi
38296
38297if test "$ol_enable_slapi" != no ; then
38298
38299cat >>confdefs.h <<\_ACEOF
38300#define ENABLE_SLAPI 1
38301_ACEOF
38302
38303	BUILD_SLAPI=yes
38304	SLAPD_SLAPI_DEPEND=libslapi.a
38305fi
38306
38307
38308
38309if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38310	PLAT=NT
38311	SLAPD_MODULES_LDFLAGS=
38312else
38313	PLAT=UNIX
38314fi
38315
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403# Check whether --with-xxinstall was given.
38404if test "${with_xxinstall+set}" = set; then
38405  withval=$with_xxinstall;
38406fi
38407
38408
38409
38410ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.am:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-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-sock/Makefile:build/top.mk:servers/slapd/back-sock/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 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"
38411
38412
38413ac_config_commands="$ac_config_commands default"
38414
38415
38416
38417test "x$prefix" = xNONE && prefix=$ac_default_prefix
38418# Let make expand exec_prefix.
38419test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38420
38421DEFS=-DHAVE_CONFIG_H
38422
38423ac_libobjs=
38424ac_ltlibobjs=
38425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38426  # 1. Remove the extension, and $U if already installed.
38427  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38428  ac_i=`echo "$ac_i" | sed "$ac_script"`
38429  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38430  #    will be set to the directory where LIBOBJS objects are built.
38431  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38432  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38433done
38434LIBOBJS=$ac_libobjs
38435
38436LTLIBOBJS=$ac_ltlibobjs
38437
38438
38439if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38440  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38441Usually this means the macro was only invoked conditionally." >&5
38442echo "$as_me: error: conditional \"AMDEP\" was never defined.
38443Usually this means the macro was only invoked conditionally." >&2;}
38444   { (exit 1); exit 1; }; }
38445fi
38446if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38447  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38448Usually this means the macro was only invoked conditionally." >&5
38449echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38450Usually this means the macro was only invoked conditionally." >&2;}
38451   { (exit 1); exit 1; }; }
38452fi
38453if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38454  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38455Usually this means the macro was only invoked conditionally." >&5
38456echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38457Usually this means the macro was only invoked conditionally." >&2;}
38458   { (exit 1); exit 1; }; }
38459fi
38460
38461: ${CONFIG_STATUS=./config.status}
38462ac_clean_files_save=$ac_clean_files
38463ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38464{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38465echo "$as_me: creating $CONFIG_STATUS" >&6;}
38466cat >$CONFIG_STATUS <<_ACEOF
38467#! $SHELL
38468# Generated by $as_me.
38469# Run this file to recreate the current configuration.
38470# Compiler output produced by configure, useful for debugging
38471# configure, is in config.log if it exists.
38472
38473debug=false
38474ac_cs_recheck=false
38475ac_cs_silent=false
38476SHELL=\${CONFIG_SHELL-$SHELL}
38477_ACEOF
38478
38479cat >>$CONFIG_STATUS <<\_ACEOF
38480## --------------------- ##
38481## M4sh Initialization.  ##
38482## --------------------- ##
38483
38484# Be more Bourne compatible
38485DUALCASE=1; export DUALCASE # for MKS sh
38486if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38487  emulate sh
38488  NULLCMD=:
38489  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38490  # is contrary to our usage.  Disable this feature.
38491  alias -g '${1+"$@"}'='"$@"'
38492  setopt NO_GLOB_SUBST
38493else
38494  case `(set -o) 2>/dev/null` in
38495  *posix*) set -o posix ;;
38496esac
38497
38498fi
38499
38500
38501
38502
38503# PATH needs CR
38504# Avoid depending upon Character Ranges.
38505as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38506as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38507as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38508as_cr_digits='0123456789'
38509as_cr_alnum=$as_cr_Letters$as_cr_digits
38510
38511# The user is always right.
38512if test "${PATH_SEPARATOR+set}" != set; then
38513  echo "#! /bin/sh" >conf$$.sh
38514  echo  "exit 0"   >>conf$$.sh
38515  chmod +x conf$$.sh
38516  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38517    PATH_SEPARATOR=';'
38518  else
38519    PATH_SEPARATOR=:
38520  fi
38521  rm -f conf$$.sh
38522fi
38523
38524# Support unset when possible.
38525if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38526  as_unset=unset
38527else
38528  as_unset=false
38529fi
38530
38531
38532# IFS
38533# We need space, tab and new line, in precisely that order.  Quoting is
38534# there to prevent editors from complaining about space-tab.
38535# (If _AS_PATH_WALK were called with IFS unset, it would disable word
38536# splitting by setting IFS to empty value.)
38537as_nl='
38538'
38539IFS=" ""	$as_nl"
38540
38541# Find who we are.  Look in the path if we contain no directory separator.
38542case $0 in
38543  *[\\/]* ) as_myself=$0 ;;
38544  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38545for as_dir in $PATH
38546do
38547  IFS=$as_save_IFS
38548  test -z "$as_dir" && as_dir=.
38549  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38550done
38551IFS=$as_save_IFS
38552
38553     ;;
38554esac
38555# We did not find ourselves, most probably we were run as `sh COMMAND'
38556# in which case we are not to be found in the path.
38557if test "x$as_myself" = x; then
38558  as_myself=$0
38559fi
38560if test ! -f "$as_myself"; then
38561  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38562  { (exit 1); exit 1; }
38563fi
38564
38565# Work around bugs in pre-3.0 UWIN ksh.
38566for as_var in ENV MAIL MAILPATH
38567do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38568done
38569PS1='$ '
38570PS2='> '
38571PS4='+ '
38572
38573# NLS nuisances.
38574for as_var in \
38575  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38576  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38577  LC_TELEPHONE LC_TIME
38578do
38579  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38580    eval $as_var=C; export $as_var
38581  else
38582    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38583  fi
38584done
38585
38586# Required to use basename.
38587if expr a : '\(a\)' >/dev/null 2>&1 &&
38588   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38589  as_expr=expr
38590else
38591  as_expr=false
38592fi
38593
38594if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38595  as_basename=basename
38596else
38597  as_basename=false
38598fi
38599
38600
38601# Name of the executable.
38602as_me=`$as_basename -- "$0" ||
38603$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38604	 X"$0" : 'X\(//\)$' \| \
38605	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38606echo X/"$0" |
38607    sed '/^.*\/\([^/][^/]*\)\/*$/{
38608	    s//\1/
38609	    q
38610	  }
38611	  /^X\/\(\/\/\)$/{
38612	    s//\1/
38613	    q
38614	  }
38615	  /^X\/\(\/\).*/{
38616	    s//\1/
38617	    q
38618	  }
38619	  s/.*/./; q'`
38620
38621# CDPATH.
38622$as_unset CDPATH
38623
38624
38625
38626  as_lineno_1=$LINENO
38627  as_lineno_2=$LINENO
38628  test "x$as_lineno_1" != "x$as_lineno_2" &&
38629  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38630
38631  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38632  # uniformly replaced by the line number.  The first 'sed' inserts a
38633  # line-number line after each line using $LINENO; the second 'sed'
38634  # does the real work.  The second script uses 'N' to pair each
38635  # line-number line with the line containing $LINENO, and appends
38636  # trailing '-' during substitution so that $LINENO is not a special
38637  # case at line end.
38638  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38639  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38640  # E. McMahon (1931-1989) for sed's syntax.  :-)
38641  sed -n '
38642    p
38643    /[$]LINENO/=
38644  ' <$as_myself |
38645    sed '
38646      s/[$]LINENO.*/&-/
38647      t lineno
38648      b
38649      :lineno
38650      N
38651      :loop
38652      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38653      t loop
38654      s/-\n.*//
38655    ' >$as_me.lineno &&
38656  chmod +x "$as_me.lineno" ||
38657    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38658   { (exit 1); exit 1; }; }
38659
38660  # Don't try to exec as it changes $[0], causing all sort of problems
38661  # (the dirname of $[0] is not the place where we might find the
38662  # original and so on.  Autoconf is especially sensitive to this).
38663  . "./$as_me.lineno"
38664  # Exit status is that of the last command.
38665  exit
38666}
38667
38668
38669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38670  as_dirname=dirname
38671else
38672  as_dirname=false
38673fi
38674
38675ECHO_C= ECHO_N= ECHO_T=
38676case `echo -n x` in
38677-n*)
38678  case `echo 'x\c'` in
38679  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
38680  *)   ECHO_C='\c';;
38681  esac;;
38682*)
38683  ECHO_N='-n';;
38684esac
38685
38686if expr a : '\(a\)' >/dev/null 2>&1 &&
38687   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38688  as_expr=expr
38689else
38690  as_expr=false
38691fi
38692
38693rm -f conf$$ conf$$.exe conf$$.file
38694if test -d conf$$.dir; then
38695  rm -f conf$$.dir/conf$$.file
38696else
38697  rm -f conf$$.dir
38698  mkdir conf$$.dir
38699fi
38700echo >conf$$.file
38701if ln -s conf$$.file conf$$ 2>/dev/null; then
38702  as_ln_s='ln -s'
38703  # ... but there are two gotchas:
38704  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38705  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38706  # In both cases, we have to default to `cp -p'.
38707  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38708    as_ln_s='cp -p'
38709elif ln conf$$.file conf$$ 2>/dev/null; then
38710  as_ln_s=ln
38711else
38712  as_ln_s='cp -p'
38713fi
38714rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38715rmdir conf$$.dir 2>/dev/null
38716
38717if mkdir -p . 2>/dev/null; then
38718  as_mkdir_p=:
38719else
38720  test -d ./-p && rmdir ./-p
38721  as_mkdir_p=false
38722fi
38723
38724if test -x / >/dev/null 2>&1; then
38725  as_test_x='test -x'
38726else
38727  if ls -dL / >/dev/null 2>&1; then
38728    as_ls_L_option=L
38729  else
38730    as_ls_L_option=
38731  fi
38732  as_test_x='
38733    eval sh -c '\''
38734      if test -d "$1"; then
38735        test -d "$1/.";
38736      else
38737	case $1 in
38738        -*)set "./$1";;
38739	esac;
38740	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
38741	???[sx]*):;;*)false;;esac;fi
38742    '\'' sh
38743  '
38744fi
38745as_executable_p=$as_test_x
38746
38747# Sed expression to map a string onto a valid CPP name.
38748as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38749
38750# Sed expression to map a string onto a valid variable name.
38751as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38752
38753
38754exec 6>&1
38755
38756# Save the log message, to keep $[0] and so on meaningful, and to
38757# report actual input values of CONFIG_FILES etc. instead of their
38758# values after options handling.
38759ac_log="
38760This file was extended by $as_me, which was
38761generated by GNU Autoconf 2.61.  Invocation command line was
38762
38763  CONFIG_FILES    = $CONFIG_FILES
38764  CONFIG_HEADERS  = $CONFIG_HEADERS
38765  CONFIG_LINKS    = $CONFIG_LINKS
38766  CONFIG_COMMANDS = $CONFIG_COMMANDS
38767  $ $0 $@
38768
38769on `(hostname || uname -n) 2>/dev/null | sed 1q`
38770"
38771
38772_ACEOF
38773
38774cat >>$CONFIG_STATUS <<_ACEOF
38775# Files that config.status was made for.
38776config_files="$ac_config_files"
38777config_headers="$ac_config_headers"
38778config_commands="$ac_config_commands"
38779
38780_ACEOF
38781
38782cat >>$CONFIG_STATUS <<\_ACEOF
38783ac_cs_usage="\
38784\`$as_me' instantiates files from templates according to the
38785current configuration.
38786
38787Usage: $0 [OPTIONS] [FILE]...
38788
38789  -h, --help       print this help, then exit
38790  -V, --version    print version number and configuration settings, then exit
38791  -q, --quiet      do not print progress messages
38792  -d, --debug      don't remove temporary files
38793      --recheck    update $as_me by reconfiguring in the same conditions
38794  --file=FILE[:TEMPLATE]
38795		   instantiate the configuration file FILE
38796  --header=FILE[:TEMPLATE]
38797		   instantiate the configuration header FILE
38798
38799Configuration files:
38800$config_files
38801
38802Configuration headers:
38803$config_headers
38804
38805Configuration commands:
38806$config_commands
38807
38808Report bugs to <bug-autoconf@gnu.org>."
38809
38810_ACEOF
38811cat >>$CONFIG_STATUS <<_ACEOF
38812ac_cs_version="\\
38813config.status
38814configured by $0, generated by GNU Autoconf 2.61,
38815  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
38816
38817Copyright (C) 2006 Free Software Foundation, Inc.
38818This config.status script is free software; the Free Software Foundation
38819gives unlimited permission to copy, distribute and modify it."
38820
38821ac_pwd='$ac_pwd'
38822srcdir='$srcdir'
38823INSTALL='$INSTALL'
38824_ACEOF
38825
38826cat >>$CONFIG_STATUS <<\_ACEOF
38827# If no file are specified by the user, then we need to provide default
38828# value.  By we need to know if files were specified by the user.
38829ac_need_defaults=:
38830while test $# != 0
38831do
38832  case $1 in
38833  --*=*)
38834    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38835    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38836    ac_shift=:
38837    ;;
38838  *)
38839    ac_option=$1
38840    ac_optarg=$2
38841    ac_shift=shift
38842    ;;
38843  esac
38844
38845  case $ac_option in
38846  # Handling of the options.
38847  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38848    ac_cs_recheck=: ;;
38849  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38850    echo "$ac_cs_version"; exit ;;
38851  --debug | --debu | --deb | --de | --d | -d )
38852    debug=: ;;
38853  --file | --fil | --fi | --f )
38854    $ac_shift
38855    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
38856    ac_need_defaults=false;;
38857  --header | --heade | --head | --hea )
38858    $ac_shift
38859    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
38860    ac_need_defaults=false;;
38861  --he | --h)
38862    # Conflict between --help and --header
38863    { echo "$as_me: error: ambiguous option: $1
38864Try \`$0 --help' for more information." >&2
38865   { (exit 1); exit 1; }; };;
38866  --help | --hel | -h )
38867    echo "$ac_cs_usage"; exit ;;
38868  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38869  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38870    ac_cs_silent=: ;;
38871
38872  # This is an error.
38873  -*) { echo "$as_me: error: unrecognized option: $1
38874Try \`$0 --help' for more information." >&2
38875   { (exit 1); exit 1; }; } ;;
38876
38877  *) ac_config_targets="$ac_config_targets $1"
38878     ac_need_defaults=false ;;
38879
38880  esac
38881  shift
38882done
38883
38884ac_configure_extra_args=
38885
38886if $ac_cs_silent; then
38887  exec 6>/dev/null
38888  ac_configure_extra_args="$ac_configure_extra_args --silent"
38889fi
38890
38891_ACEOF
38892cat >>$CONFIG_STATUS <<_ACEOF
38893if \$ac_cs_recheck; then
38894  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
38895  CONFIG_SHELL=$SHELL
38896  export CONFIG_SHELL
38897  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38898fi
38899
38900_ACEOF
38901cat >>$CONFIG_STATUS <<\_ACEOF
38902exec 5>>config.log
38903{
38904  echo
38905  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38906## Running $as_me. ##
38907_ASBOX
38908  echo "$ac_log"
38909} >&5
38910
38911_ACEOF
38912cat >>$CONFIG_STATUS <<_ACEOF
38913#
38914# INIT-COMMANDS
38915#
38916AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38917
38918STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
38919STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
38920
38921
38922_ACEOF
38923
38924cat >>$CONFIG_STATUS <<\_ACEOF
38925
38926# Handling of arguments.
38927for ac_config_target in $ac_config_targets
38928do
38929  case $ac_config_target in
38930    "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
38931    "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
38932    "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
38933    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38934    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.am:Makefile.in:build/dir.mk" ;;
38935    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
38936    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
38937    "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
38938    "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
38939    "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
38940    "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
38941    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
38942    "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
38943    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
38944    "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
38945    "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38946    "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38947    "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" ;;
38948    "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38949    "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38950    "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38951    "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
38952    "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
38953    "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" ;;
38954    "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" ;;
38955    "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" ;;
38956    "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" ;;
38957    "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" ;;
38958    "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" ;;
38959    "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" ;;
38960    "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" ;;
38961    "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" ;;
38962    "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" ;;
38963    "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" ;;
38964    "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" ;;
38965    "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
38966    "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" ;;
38967    "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" ;;
38968    "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" ;;
38969    "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
38970    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
38971    "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
38972    "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
38973    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38974
38975  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38976echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38977   { (exit 1); exit 1; }; };;
38978  esac
38979done
38980
38981
38982# If the user did not use the arguments to specify the items to instantiate,
38983# then the envvar interface is used.  Set only those that are not.
38984# We use the long form for the default assignment because of an extremely
38985# bizarre bug on SunOS 4.1.3.
38986if $ac_need_defaults; then
38987  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38988  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38989  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38990fi
38991
38992# Have a temporary directory for convenience.  Make it in the build tree
38993# simply because there is no reason against having it here, and in addition,
38994# creating and moving files from /tmp can sometimes cause problems.
38995# Hook for its removal unless debugging.
38996# Note that there is a small window in which the directory will not be cleaned:
38997# after its creation but before its name has been assigned to `$tmp'.
38998$debug ||
38999{
39000  tmp=
39001  trap 'exit_status=$?
39002  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39003' 0
39004  trap '{ (exit 1); exit 1; }' 1 2 13 15
39005}
39006# Create a (secure) tmp directory for tmp files.
39007
39008{
39009  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39010  test -n "$tmp" && test -d "$tmp"
39011}  ||
39012{
39013  tmp=./conf$$-$RANDOM
39014  (umask 077 && mkdir "$tmp")
39015} ||
39016{
39017   echo "$me: cannot create a temporary directory in ." >&2
39018   { (exit 1); exit 1; }
39019}
39020
39021#
39022# Set up the sed scripts for CONFIG_FILES section.
39023#
39024
39025# No need to generate the scripts if there are no CONFIG_FILES.
39026# This happens for instance when ./config.status config.h
39027if test -n "$CONFIG_FILES"; then
39028
39029_ACEOF
39030
39031
39032
39033ac_delim='%!_!# '
39034for ac_last_try in false false false false false :; do
39035  cat >conf$$subs.sed <<_ACEOF
39036SHELL!$SHELL$ac_delim
39037PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39038PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39039PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39040PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39041PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39042PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39043exec_prefix!$exec_prefix$ac_delim
39044prefix!$prefix$ac_delim
39045program_transform_name!$program_transform_name$ac_delim
39046bindir!$bindir$ac_delim
39047sbindir!$sbindir$ac_delim
39048libexecdir!$libexecdir$ac_delim
39049datarootdir!$datarootdir$ac_delim
39050datadir!$datadir$ac_delim
39051sysconfdir!$sysconfdir$ac_delim
39052sharedstatedir!$sharedstatedir$ac_delim
39053localstatedir!$localstatedir$ac_delim
39054includedir!$includedir$ac_delim
39055oldincludedir!$oldincludedir$ac_delim
39056docdir!$docdir$ac_delim
39057infodir!$infodir$ac_delim
39058htmldir!$htmldir$ac_delim
39059dvidir!$dvidir$ac_delim
39060pdfdir!$pdfdir$ac_delim
39061psdir!$psdir$ac_delim
39062libdir!$libdir$ac_delim
39063localedir!$localedir$ac_delim
39064mandir!$mandir$ac_delim
39065DEFS!$DEFS$ac_delim
39066ECHO_C!$ECHO_C$ac_delim
39067ECHO_N!$ECHO_N$ac_delim
39068ECHO_T!$ECHO_T$ac_delim
39069LIBS!$LIBS$ac_delim
39070build_alias!$build_alias$ac_delim
39071host_alias!$host_alias$ac_delim
39072target_alias!$target_alias$ac_delim
39073build!$build$ac_delim
39074build_cpu!$build_cpu$ac_delim
39075build_vendor!$build_vendor$ac_delim
39076build_os!$build_os$ac_delim
39077host!$host$ac_delim
39078host_cpu!$host_cpu$ac_delim
39079host_vendor!$host_vendor$ac_delim
39080host_os!$host_os$ac_delim
39081target!$target$ac_delim
39082target_cpu!$target_cpu$ac_delim
39083target_vendor!$target_vendor$ac_delim
39084target_os!$target_os$ac_delim
39085INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39086INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39087INSTALL_DATA!$INSTALL_DATA$ac_delim
39088CYGPATH_W!$CYGPATH_W$ac_delim
39089PACKAGE!$PACKAGE$ac_delim
39090VERSION!$VERSION$ac_delim
39091ACLOCAL!$ACLOCAL$ac_delim
39092AUTOCONF!$AUTOCONF$ac_delim
39093AUTOMAKE!$AUTOMAKE$ac_delim
39094AUTOHEADER!$AUTOHEADER$ac_delim
39095MAKEINFO!$MAKEINFO$ac_delim
39096install_sh!$install_sh$ac_delim
39097STRIP!$STRIP$ac_delim
39098INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39099mkdir_p!$mkdir_p$ac_delim
39100AWK!$AWK$ac_delim
39101SET_MAKE!$SET_MAKE$ac_delim
39102am__leading_dot!$am__leading_dot$ac_delim
39103AMTAR!$AMTAR$ac_delim
39104am__tar!$am__tar$ac_delim
39105am__untar!$am__untar$ac_delim
39106OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39107OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39108OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39109top_builddir!$top_builddir$ac_delim
39110ldap_subdir!$ldap_subdir$ac_delim
39111CC!$CC$ac_delim
39112AR!$AR$ac_delim
39113CFLAGS!$CFLAGS$ac_delim
39114LDFLAGS!$LDFLAGS$ac_delim
39115CPPFLAGS!$CPPFLAGS$ac_delim
39116ac_ct_CC!$ac_ct_CC$ac_delim
39117EXEEXT!$EXEEXT$ac_delim
39118OBJEXT!$OBJEXT$ac_delim
39119DEPDIR!$DEPDIR$ac_delim
39120am__include!$am__include$ac_delim
39121am__quote!$am__quote$ac_delim
39122AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39123AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39124AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39125CCDEPMODE!$CCDEPMODE$ac_delim
39126am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39127am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39128GREP!$GREP$ac_delim
39129EGREP!$EGREP$ac_delim
39130LN_S!$LN_S$ac_delim
39131ECHO!$ECHO$ac_delim
39132RANLIB!$RANLIB$ac_delim
39133_ACEOF
39134
39135  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39136    break
39137  elif $ac_last_try; then
39138    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39139echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39140   { (exit 1); exit 1; }; }
39141  else
39142    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39143  fi
39144done
39145
39146ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39147if test -n "$ac_eof"; then
39148  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39149  ac_eof=`expr $ac_eof + 1`
39150fi
39151
39152cat >>$CONFIG_STATUS <<_ACEOF
39153cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39154/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39155_ACEOF
39156sed '
39157s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39158s/^/s,@/; s/!/@,|#_!!_#|/
39159:n
39160t n
39161s/'"$ac_delim"'$/,g/; t
39162s/$/\\/; p
39163N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39164' >>$CONFIG_STATUS <conf$$subs.sed
39165rm -f conf$$subs.sed
39166cat >>$CONFIG_STATUS <<_ACEOF
39167CEOF$ac_eof
39168_ACEOF
39169
39170
39171ac_delim='%!_!# '
39172for ac_last_try in false false false false false :; do
39173  cat >conf$$subs.sed <<_ACEOF
39174DLLTOOL!$DLLTOOL$ac_delim
39175AS!$AS$ac_delim
39176OBJDUMP!$OBJDUMP$ac_delim
39177CPP!$CPP$ac_delim
39178LIBTOOL!$LIBTOOL$ac_delim
39179PERLBIN!$PERLBIN$ac_delim
39180OL_MKDEP!$OL_MKDEP$ac_delim
39181OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39182LTSTATIC!$LTSTATIC$ac_delim
39183LIBOBJS!$LIBOBJS$ac_delim
39184LIBSRCS!$LIBSRCS$ac_delim
39185PLAT!$PLAT$ac_delim
39186WITH_SASL!$WITH_SASL$ac_delim
39187WITH_TLS!$WITH_TLS$ac_delim
39188WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39189WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39190BUILD_THREAD!$BUILD_THREAD$ac_delim
39191BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39192BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39193BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39194SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39195BUILD_BDB!$BUILD_BDB$ac_delim
39196BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39197BUILD_HDB!$BUILD_HDB$ac_delim
39198BUILD_LDAP!$BUILD_LDAP$ac_delim
39199BUILD_META!$BUILD_META$ac_delim
39200BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39201BUILD_NULL!$BUILD_NULL$ac_delim
39202BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39203BUILD_RELAY!$BUILD_RELAY$ac_delim
39204BUILD_PERL!$BUILD_PERL$ac_delim
39205BUILD_SHELL!$BUILD_SHELL$ac_delim
39206BUILD_SOCK!$BUILD_SOCK$ac_delim
39207BUILD_SQL!$BUILD_SQL$ac_delim
39208BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39209BUILD_DYNID!$BUILD_DYNID$ac_delim
39210BUILD_ODLOCALES!$BUILD_ODLOCALES$ac_delim
39211BUILD_ODUSERS!$BUILD_ODUSERS$ac_delim
39212BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39213BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39214BUILD_DDS!$BUILD_DDS$ac_delim
39215BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39216BUILD_DEREF!$BUILD_DEREF$ac_delim
39217BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39218BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39219BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39220BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39221BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39222BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39223BUILD_REFINT!$BUILD_REFINT$ac_delim
39224BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39225BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39226BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39227BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39228BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39229BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39230LDAP_LIBS!$LDAP_LIBS$ac_delim
39231SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39232BDB_LIBS!$BDB_LIBS$ac_delim
39233LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39234LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39235WRAP_LIBS!$WRAP_LIBS$ac_delim
39236SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39237SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39238SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39239SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39240SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39241SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39242SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39243PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39244SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39245MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39246KRB4_LIBS!$KRB4_LIBS$ac_delim
39247KRB5_LIBS!$KRB5_LIBS$ac_delim
39248SASL_LIBS!$SASL_LIBS$ac_delim
39249TLS_LIBS!$TLS_LIBS$ac_delim
39250MODULES_LIBS!$MODULES_LIBS$ac_delim
39251SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39252LIBSLAPI!$LIBSLAPI$ac_delim
39253LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39254AUTH_LIBS!$AUTH_LIBS$ac_delim
39255ICU_LIBS!$ICU_LIBS$ac_delim
39256SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39257SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39258SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39259SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39260SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39261LTLIBOBJS!$LTLIBOBJS$ac_delim
39262_ACEOF
39263
39264  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
39265    break
39266  elif $ac_last_try; then
39267    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39268echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39269   { (exit 1); exit 1; }; }
39270  else
39271    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39272  fi
39273done
39274
39275ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39276if test -n "$ac_eof"; then
39277  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39278  ac_eof=`expr $ac_eof + 1`
39279fi
39280
39281cat >>$CONFIG_STATUS <<_ACEOF
39282cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39284_ACEOF
39285sed '
39286s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39287s/^/s,@/; s/!/@,|#_!!_#|/
39288:n
39289t n
39290s/'"$ac_delim"'$/,g/; t
39291s/$/\\/; p
39292N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39293' >>$CONFIG_STATUS <conf$$subs.sed
39294rm -f conf$$subs.sed
39295cat >>$CONFIG_STATUS <<_ACEOF
39296:end
39297s/|#_!!_#|//g
39298CEOF$ac_eof
39299_ACEOF
39300
39301
39302# VPATH may cause trouble with some makes, so we remove $(srcdir),
39303# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39304# trailing colons and then remove the whole line if VPATH becomes empty
39305# (actually we leave an empty line to preserve line numbers).
39306if test "x$srcdir" = x.; then
39307  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39308s/:*\$(srcdir):*/:/
39309s/:*\${srcdir}:*/:/
39310s/:*@srcdir@:*/:/
39311s/^\([^=]*=[	 ]*\):*/\1/
39312s/:*$//
39313s/^[^=]*=[	 ]*$//
39314}'
39315fi
39316
39317cat >>$CONFIG_STATUS <<\_ACEOF
39318fi # test -n "$CONFIG_FILES"
39319
39320
39321for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39322do
39323  case $ac_tag in
39324  :[FHLC]) ac_mode=$ac_tag; continue;;
39325  esac
39326  case $ac_mode$ac_tag in
39327  :[FHL]*:*);;
39328  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39329echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39330   { (exit 1); exit 1; }; };;
39331  :[FH]-) ac_tag=-:-;;
39332  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39333  esac
39334  ac_save_IFS=$IFS
39335  IFS=:
39336  set x $ac_tag
39337  IFS=$ac_save_IFS
39338  shift
39339  ac_file=$1
39340  shift
39341
39342  case $ac_mode in
39343  :L) ac_source=$1;;
39344  :[FH])
39345    ac_file_inputs=
39346    for ac_f
39347    do
39348      case $ac_f in
39349      -) ac_f="$tmp/stdin";;
39350      *) # Look for the file first in the build tree, then in the source tree
39351	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39352	 # because $ac_f cannot contain `:'.
39353	 test -f "$ac_f" ||
39354	   case $ac_f in
39355	   [\\/$]*) false;;
39356	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39357	   esac ||
39358	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39359echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39360   { (exit 1); exit 1; }; };;
39361      esac
39362      ac_file_inputs="$ac_file_inputs $ac_f"
39363    done
39364
39365    # Let's still pretend it is `configure' which instantiates (i.e., don't
39366    # use $as_me), people would be surprised to read:
39367    #    /* config.h.  Generated by config.status.  */
39368    configure_input="Generated from "`IFS=:
39369	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39370    if test x"$ac_file" != x-; then
39371      configure_input="$ac_file.  $configure_input"
39372      { echo "$as_me:$LINENO: creating $ac_file" >&5
39373echo "$as_me: creating $ac_file" >&6;}
39374    fi
39375
39376    case $ac_tag in
39377    *:-:* | *:-) cat >"$tmp/stdin";;
39378    esac
39379    ;;
39380  esac
39381
39382  ac_dir=`$as_dirname -- "$ac_file" ||
39383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39384	 X"$ac_file" : 'X\(//\)[^/]' \| \
39385	 X"$ac_file" : 'X\(//\)$' \| \
39386	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39387echo X"$ac_file" |
39388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39389	    s//\1/
39390	    q
39391	  }
39392	  /^X\(\/\/\)[^/].*/{
39393	    s//\1/
39394	    q
39395	  }
39396	  /^X\(\/\/\)$/{
39397	    s//\1/
39398	    q
39399	  }
39400	  /^X\(\/\).*/{
39401	    s//\1/
39402	    q
39403	  }
39404	  s/.*/./; q'`
39405  { as_dir="$ac_dir"
39406  case $as_dir in #(
39407  -*) as_dir=./$as_dir;;
39408  esac
39409  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39410    as_dirs=
39411    while :; do
39412      case $as_dir in #(
39413      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39414      *) as_qdir=$as_dir;;
39415      esac
39416      as_dirs="'$as_qdir' $as_dirs"
39417      as_dir=`$as_dirname -- "$as_dir" ||
39418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39419	 X"$as_dir" : 'X\(//\)[^/]' \| \
39420	 X"$as_dir" : 'X\(//\)$' \| \
39421	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39422echo X"$as_dir" |
39423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39424	    s//\1/
39425	    q
39426	  }
39427	  /^X\(\/\/\)[^/].*/{
39428	    s//\1/
39429	    q
39430	  }
39431	  /^X\(\/\/\)$/{
39432	    s//\1/
39433	    q
39434	  }
39435	  /^X\(\/\).*/{
39436	    s//\1/
39437	    q
39438	  }
39439	  s/.*/./; q'`
39440      test -d "$as_dir" && break
39441    done
39442    test -z "$as_dirs" || eval "mkdir $as_dirs"
39443  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39444echo "$as_me: error: cannot create directory $as_dir" >&2;}
39445   { (exit 1); exit 1; }; }; }
39446  ac_builddir=.
39447
39448case "$ac_dir" in
39449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39450*)
39451  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39452  # A ".." for each directory in $ac_dir_suffix.
39453  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39454  case $ac_top_builddir_sub in
39455  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39456  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39457  esac ;;
39458esac
39459ac_abs_top_builddir=$ac_pwd
39460ac_abs_builddir=$ac_pwd$ac_dir_suffix
39461# for backward compatibility:
39462ac_top_builddir=$ac_top_build_prefix
39463
39464case $srcdir in
39465  .)  # We are building in place.
39466    ac_srcdir=.
39467    ac_top_srcdir=$ac_top_builddir_sub
39468    ac_abs_top_srcdir=$ac_pwd ;;
39469  [\\/]* | ?:[\\/]* )  # Absolute name.
39470    ac_srcdir=$srcdir$ac_dir_suffix;
39471    ac_top_srcdir=$srcdir
39472    ac_abs_top_srcdir=$srcdir ;;
39473  *) # Relative name.
39474    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39475    ac_top_srcdir=$ac_top_build_prefix$srcdir
39476    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39477esac
39478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39479
39480
39481  case $ac_mode in
39482  :F)
39483  #
39484  # CONFIG_FILE
39485  #
39486
39487  case $INSTALL in
39488  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39489  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39490  esac
39491_ACEOF
39492
39493cat >>$CONFIG_STATUS <<\_ACEOF
39494# If the template does not know about datarootdir, expand it.
39495# FIXME: This hack should be removed a few years after 2.60.
39496ac_datarootdir_hack=; ac_datarootdir_seen=
39497
39498case `sed -n '/datarootdir/ {
39499  p
39500  q
39501}
39502/@datadir@/p
39503/@docdir@/p
39504/@infodir@/p
39505/@localedir@/p
39506/@mandir@/p
39507' $ac_file_inputs` in
39508*datarootdir*) ac_datarootdir_seen=yes;;
39509*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39510  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39511echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39512_ACEOF
39513cat >>$CONFIG_STATUS <<_ACEOF
39514  ac_datarootdir_hack='
39515  s&@datadir@&$datadir&g
39516  s&@docdir@&$docdir&g
39517  s&@infodir@&$infodir&g
39518  s&@localedir@&$localedir&g
39519  s&@mandir@&$mandir&g
39520    s&\\\${datarootdir}&$datarootdir&g' ;;
39521esac
39522_ACEOF
39523
39524# Neutralize VPATH when `$srcdir' = `.'.
39525# Shell code in configure.ac might set extrasub.
39526# FIXME: do we really want to maintain this feature?
39527cat >>$CONFIG_STATUS <<_ACEOF
39528  sed "$ac_vpsub
39529$extrasub
39530_ACEOF
39531cat >>$CONFIG_STATUS <<\_ACEOF
39532:t
39533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39534s&@configure_input@&$configure_input&;t t
39535s&@top_builddir@&$ac_top_builddir_sub&;t t
39536s&@srcdir@&$ac_srcdir&;t t
39537s&@abs_srcdir@&$ac_abs_srcdir&;t t
39538s&@top_srcdir@&$ac_top_srcdir&;t t
39539s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39540s&@builddir@&$ac_builddir&;t t
39541s&@abs_builddir@&$ac_abs_builddir&;t t
39542s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39543s&@INSTALL@&$ac_INSTALL&;t t
39544$ac_datarootdir_hack
39545" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39546
39547test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39548  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39549  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39550  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39551which seems to be undefined.  Please make sure it is defined." >&5
39552echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39553which seems to be undefined.  Please make sure it is defined." >&2;}
39554
39555  rm -f "$tmp/stdin"
39556  case $ac_file in
39557  -) cat "$tmp/out"; rm -f "$tmp/out";;
39558  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39559  esac
39560 ;;
39561  :H)
39562  #
39563  # CONFIG_HEADER
39564  #
39565_ACEOF
39566
39567# Transform confdefs.h into a sed script `conftest.defines', that
39568# substitutes the proper values into config.h.in to produce config.h.
39569rm -f conftest.defines conftest.tail
39570# First, append a space to every undef/define line, to ease matching.
39571echo 's/$/ /' >conftest.defines
39572# Then, protect against being on the right side of a sed subst, or in
39573# an unquoted here document, in config.status.  If some macros were
39574# called several times there might be several #defines for the same
39575# symbol, which is useless.  But do not sort them, since the last
39576# AC_DEFINE must be honored.
39577ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39578# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39579# NAME is the cpp macro being defined, VALUE is the value it is being given.
39580# PARAMS is the parameter list in the macro definition--in most cases, it's
39581# just an empty string.
39582ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
39583ac_dB='\\)[	 (].*,\\1define\\2'
39584ac_dC=' '
39585ac_dD=' ,'
39586
39587uniq confdefs.h |
39588  sed -n '
39589	t rset
39590	:rset
39591	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
39592	t ok
39593	d
39594	:ok
39595	s/[\\&,]/\\&/g
39596	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39597	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39598  ' >>conftest.defines
39599
39600# Remove the space that was appended to ease matching.
39601# Then replace #undef with comments.  This is necessary, for
39602# example, in the case of _POSIX_SOURCE, which is predefined and required
39603# on some systems where configure will not decide to define it.
39604# (The regexp can be short, since the line contains either #define or #undef.)
39605echo 's/ $//
39606s,^[	 #]*u.*,/* & */,' >>conftest.defines
39607
39608# Break up conftest.defines:
39609ac_max_sed_lines=50
39610
39611# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39612# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39613# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39614# et cetera.
39615ac_in='$ac_file_inputs'
39616ac_out='"$tmp/out1"'
39617ac_nxt='"$tmp/out2"'
39618
39619while :
39620do
39621  # Write a here document:
39622    cat >>$CONFIG_STATUS <<_ACEOF
39623    # First, check the format of the line:
39624    cat >"\$tmp/defines.sed" <<\\CEOF
39625/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*/b def
39626/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
39627b
39628:def
39629_ACEOF
39630  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39631  echo 'CEOF
39632    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39633  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39634  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39635  grep . conftest.tail >/dev/null || break
39636  rm -f conftest.defines
39637  mv conftest.tail conftest.defines
39638done
39639rm -f conftest.defines conftest.tail
39640
39641echo "ac_result=$ac_in" >>$CONFIG_STATUS
39642cat >>$CONFIG_STATUS <<\_ACEOF
39643  if test x"$ac_file" != x-; then
39644    echo "/* $configure_input  */" >"$tmp/config.h"
39645    cat "$ac_result" >>"$tmp/config.h"
39646    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39647      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39648echo "$as_me: $ac_file is unchanged" >&6;}
39649    else
39650      rm -f $ac_file
39651      mv "$tmp/config.h" $ac_file
39652    fi
39653  else
39654    echo "/* $configure_input  */"
39655    cat "$ac_result"
39656  fi
39657  rm -f "$tmp/out12"
39658# Compute $ac_file's index in $config_headers.
39659_am_stamp_count=1
39660for _am_header in $config_headers :; do
39661  case $_am_header in
39662    $ac_file | $ac_file:* )
39663      break ;;
39664    * )
39665      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39666  esac
39667done
39668echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39669$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39670	 X$ac_file : 'X\(//\)[^/]' \| \
39671	 X$ac_file : 'X\(//\)$' \| \
39672	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39673echo X$ac_file |
39674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39675	    s//\1/
39676	    q
39677	  }
39678	  /^X\(\/\/\)[^/].*/{
39679	    s//\1/
39680	    q
39681	  }
39682	  /^X\(\/\/\)$/{
39683	    s//\1/
39684	    q
39685	  }
39686	  /^X\(\/\).*/{
39687	    s//\1/
39688	    q
39689	  }
39690	  s/.*/./; q'`/stamp-h$_am_stamp_count
39691 ;;
39692
39693  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39694echo "$as_me: executing $ac_file commands" >&6;}
39695 ;;
39696  esac
39697
39698
39699  case $ac_file$ac_mode in
39700    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39701  # Strip MF so we end up with the name of the file.
39702  mf=`echo "$mf" | sed -e 's/:.*$//'`
39703  # Check whether this is an Automake generated Makefile or not.
39704  # We used to match only the files named `Makefile.in', but
39705  # some people rename them; so instead we look at the file content.
39706  # Grep'ing the first line is not enough: some people post-process
39707  # each Makefile.in and add a new line on top of each file to say so.
39708  # So let's grep whole file.
39709  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39710    dirpart=`$as_dirname -- "$mf" ||
39711$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39712	 X"$mf" : 'X\(//\)[^/]' \| \
39713	 X"$mf" : 'X\(//\)$' \| \
39714	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39715echo X"$mf" |
39716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39717	    s//\1/
39718	    q
39719	  }
39720	  /^X\(\/\/\)[^/].*/{
39721	    s//\1/
39722	    q
39723	  }
39724	  /^X\(\/\/\)$/{
39725	    s//\1/
39726	    q
39727	  }
39728	  /^X\(\/\).*/{
39729	    s//\1/
39730	    q
39731	  }
39732	  s/.*/./; q'`
39733  else
39734    continue
39735  fi
39736  # Extract the definition of DEPDIR, am__include, and am__quote
39737  # from the Makefile without running `make'.
39738  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39739  test -z "$DEPDIR" && continue
39740  am__include=`sed -n 's/^am__include = //p' < "$mf"`
39741  test -z "am__include" && continue
39742  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39743  # When using ansi2knr, U may be empty or an underscore; expand it
39744  U=`sed -n 's/^U = //p' < "$mf"`
39745  # Find all dependency output files, they are included files with
39746  # $(DEPDIR) in their names.  We invoke sed twice because it is the
39747  # simplest approach to changing $(DEPDIR) to its actual value in the
39748  # expansion.
39749  for file in `sed -n "
39750    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39751       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39752    # Make sure the directory exists.
39753    test -f "$dirpart/$file" && continue
39754    fdir=`$as_dirname -- "$file" ||
39755$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39756	 X"$file" : 'X\(//\)[^/]' \| \
39757	 X"$file" : 'X\(//\)$' \| \
39758	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39759echo X"$file" |
39760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39761	    s//\1/
39762	    q
39763	  }
39764	  /^X\(\/\/\)[^/].*/{
39765	    s//\1/
39766	    q
39767	  }
39768	  /^X\(\/\/\)$/{
39769	    s//\1/
39770	    q
39771	  }
39772	  /^X\(\/\).*/{
39773	    s//\1/
39774	    q
39775	  }
39776	  s/.*/./; q'`
39777    { as_dir=$dirpart/$fdir
39778  case $as_dir in #(
39779  -*) as_dir=./$as_dir;;
39780  esac
39781  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39782    as_dirs=
39783    while :; do
39784      case $as_dir in #(
39785      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39786      *) as_qdir=$as_dir;;
39787      esac
39788      as_dirs="'$as_qdir' $as_dirs"
39789      as_dir=`$as_dirname -- "$as_dir" ||
39790$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39791	 X"$as_dir" : 'X\(//\)[^/]' \| \
39792	 X"$as_dir" : 'X\(//\)$' \| \
39793	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39794echo X"$as_dir" |
39795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39796	    s//\1/
39797	    q
39798	  }
39799	  /^X\(\/\/\)[^/].*/{
39800	    s//\1/
39801	    q
39802	  }
39803	  /^X\(\/\/\)$/{
39804	    s//\1/
39805	    q
39806	  }
39807	  /^X\(\/\).*/{
39808	    s//\1/
39809	    q
39810	  }
39811	  s/.*/./; q'`
39812      test -d "$as_dir" && break
39813    done
39814    test -z "$as_dirs" || eval "mkdir $as_dirs"
39815  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39816echo "$as_me: error: cannot create directory $as_dir" >&2;}
39817   { (exit 1); exit 1; }; }; }
39818    # echo "creating $dirpart/$file"
39819    echo '# dummy' > "$dirpart/$file"
39820  done
39821done
39822 ;;
39823    "default":C)
39824chmod +x tests/run
39825date > stamp-h
39826BACKENDSC="servers/slapd/backends.c"
39827echo "Making $BACKENDSC"
39828rm -f $BACKENDSC
39829cat > $BACKENDSC << ENDX
39830/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39831 *
39832 * Copyright 1998-2011 The OpenLDAP Foundation.
39833 * All rights reserved.
39834 *
39835 * Redistribution and use in source and binary forms, with or without
39836 * modification, are permitted only as authorized by the OpenLDAP
39837 * Public License.
39838 *
39839 * A copy of this license is available in the file LICENSE in the
39840 * top-level directory of the distribution or, alternatively, at
39841 * <http://www.OpenLDAP.org/license.html>.
39842 */
39843/* This file is automatically generated by configure; please do not edit. */
39844
39845#include "portable.h"
39846#include "slap.h"
39847
39848ENDX
39849if test "${STATIC_BACKENDS}"; then
39850	for b in config ${STATIC_BACKENDS}; do
39851		bb=`echo "${b}" | sed -e 's/back-//'`
39852		cat >> $BACKENDSC << ENDX
39853extern BI_init ${bb}_back_initialize;
39854ENDX
39855	done
39856
39857	cat >> $BACKENDSC << ENDX
39858
39859BackendInfo slap_binfo[] = {
39860ENDX
39861
39862	for b in config ${STATIC_BACKENDS}; do
39863		bb=`echo "${b}" | sed -e 's/back-//'`
39864		echo "    Add ${bb} ..."
39865		cat >> $BACKENDSC << ENDX
39866	{ "${bb}", ${bb}_back_initialize },
39867ENDX
39868	done
39869
39870	cat >> $BACKENDSC << ENDX
39871	{ NULL, NULL },
39872};
39873
39874/* end of generated file */
39875ENDX
39876fi
39877OVERLAYSC="servers/slapd/overlays/statover.c"
39878echo "Making $OVERLAYSC"
39879rm -f $OVERLAYSC
39880cat > $OVERLAYSC << ENDX
39881/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39882 *
39883 * Copyright 1998-2011 The OpenLDAP Foundation.
39884 * All rights reserved.
39885 *
39886 * Redistribution and use in source and binary forms, with or without
39887 * modification, are permitted only as authorized by the OpenLDAP
39888 * Public License.
39889 *
39890 * A copy of this license is available in the file LICENSE in the
39891 * top-level directory of the distribution or, alternatively, at
39892 * <http://www.OpenLDAP.org/license.html>.
39893 */
39894/* This file is automatically generated by configure; please do not edit. */
39895
39896#include "portable.h"
39897#include "slap.h"
39898
39899ENDX
39900if test "${STATIC_OVERLAYS}"; then
39901	for o in ${STATIC_OVERLAYS}; do
39902		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39903		cat >> $OVERLAYSC << ENDX
39904extern OV_init ${oo}_initialize;
39905ENDX
39906	done
39907fi
39908
39909cat >> $OVERLAYSC << ENDX
39910
39911OverlayInit slap_oinfo[] = {
39912ENDX
39913
39914if test "${STATIC_OVERLAYS}"; then
39915	for o in ${STATIC_OVERLAYS}; do
39916		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39917		echo "    Add ${oo} ..."
39918		cat >> $OVERLAYSC << ENDX
39919	{ "${oo}", ${oo}_initialize },
39920ENDX
39921	done
39922fi
39923
39924	cat >> $OVERLAYSC << ENDX
39925	{ NULL, NULL },
39926};
39927
39928/* end of generated file */
39929ENDX
39930
39931if test "${ol_cv_mkdep}" = no; then
39932	echo '(Do not "make depend"; we do not know how to build dependencies)'
39933else
39934	echo 'Please run "make depend" to build dependencies'
39935fi
39936 ;;
39937
39938  esac
39939done # for ac_tag
39940
39941
39942{ (exit 0); exit 0; }
39943_ACEOF
39944chmod +x $CONFIG_STATUS
39945ac_clean_files=$ac_clean_files_save
39946
39947
39948# configure is writing to config.log, and then calls config.status.
39949# config.status does its own redirection, appending to config.log.
39950# Unfortunately, on DOS this fails, as config.log is still kept open
39951# by configure, so config.status won't be able to write to it; its
39952# output is simply discarded.  So we exec the FD to /dev/null,
39953# effectively closing config.log, so it can be properly (re)opened and
39954# appended to by config.status.  When coming back to configure, we
39955# need to make the FD available again.
39956if test "$no_create" != yes; then
39957  ac_cs_success=:
39958  ac_config_status_args=
39959  test "$silent" = yes &&
39960    ac_config_status_args="$ac_config_status_args --quiet"
39961  exec 5>/dev/null
39962  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39963  exec 5>>config.log
39964  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39965  # would make configure fail if this is the last instruction.
39966  $ac_cs_success || { (exit 1); exit 1; }
39967fi
39968
39969