]> git.sur5r.net Git - openldap/blob - configure
Regenerate without GSSAPI (ITS#6091,6092,6093,5369)
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.24 2009/07/06 19:22:51 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if 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
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
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.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
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.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if 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; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for 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
111 do
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
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo 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
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$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   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
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
236 done
237 IFS=$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
244 if 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
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
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
265 if 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
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $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
340 fi
341
342 fi
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+"$@"}
352 fi
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; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$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
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `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';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if 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'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
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   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_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.
552 as_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.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
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
595 if test -z "$ECHO"; then
596 if 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
607 fi
608
609 if 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   :
613 else
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
693 fi
694 fi
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.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 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.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_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
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SYNCPROV
922 BUILD_TRANSLUCENT
923 BUILD_UNIQUE
924 BUILD_VALSORT
925 LDAP_LIBS
926 SLAPD_LIBS
927 BDB_LIBS
928 SLAPD_NDB_LIBS
929 SLAPD_NDB_INCS
930 LTHREAD_LIBS
931 LUTIL_LIBS
932 WRAP_LIBS
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
935 SLAPD_NO_STATIC
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
940 PERL_CPPFLAGS
941 SLAPD_PERL_LDFLAGS
942 MOD_PERL_LDFLAGS
943 KRB4_LIBS
944 KRB5_LIBS
945 SASL_LIBS
946 TLS_LIBS
947 MODULES_LIBS
948 SLAPI_LIBS
949 LIBSLAPI
950 LIBSLAPITOOLS
951 AUTH_LIBS
952 ICU_LIBS
953 SLAPD_SLP_LIBS
954 SLAPD_GMP_LIBS
955 SLAPD_SQL_LDFLAGS
956 SLAPD_SQL_LIBS
957 SLAPD_SQL_INCLUDES
958 LTLIBOBJS'
959 ac_subst_files=''
960       ac_precious_vars='build_alias
961 host_alias
962 target_alias
963 CC
964 CFLAGS
965 LDFLAGS
966 LIBS
967 CPPFLAGS
968 CPP'
969
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021   # If the previous option needs an argument, assign it.
1022   if test -n "$ac_prev"; then
1023     eval $ac_prev=\$ac_option
1024     ac_prev=
1025     continue
1026   fi
1027
1028   case $ac_option in
1029   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030   *)    ac_optarg=yes ;;
1031   esac
1032
1033   # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035   case $ac_dashdash$ac_option in
1036   --)
1037     ac_dashdash=yes ;;
1038
1039   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040     ac_prev=bindir ;;
1041   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042     bindir=$ac_optarg ;;
1043
1044   -build | --build | --buil | --bui | --bu)
1045     ac_prev=build_alias ;;
1046   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047     build_alias=$ac_optarg ;;
1048
1049   -cache-file | --cache-file | --cache-fil | --cache-fi \
1050   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051     ac_prev=cache_file ;;
1052   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054     cache_file=$ac_optarg ;;
1055
1056   --config-cache | -C)
1057     cache_file=config.cache ;;
1058
1059   -datadir | --datadir | --datadi | --datad)
1060     ac_prev=datadir ;;
1061   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062     datadir=$ac_optarg ;;
1063
1064   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065   | --dataroo | --dataro | --datar)
1066     ac_prev=datarootdir ;;
1067   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069     datarootdir=$ac_optarg ;;
1070
1071   -disable-* | --disable-*)
1072     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078     eval enable_$ac_feature=no ;;
1079
1080   -docdir | --docdir | --docdi | --doc | --do)
1081     ac_prev=docdir ;;
1082   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083     docdir=$ac_optarg ;;
1084
1085   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086     ac_prev=dvidir ;;
1087   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088     dvidir=$ac_optarg ;;
1089
1090   -enable-* | --enable-*)
1091     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095    { (exit 1); exit 1; }; }
1096     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1097     eval enable_$ac_feature=\$ac_optarg ;;
1098
1099   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101   | --exec | --exe | --ex)
1102     ac_prev=exec_prefix ;;
1103   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105   | --exec=* | --exe=* | --ex=*)
1106     exec_prefix=$ac_optarg ;;
1107
1108   -gas | --gas | --ga | --g)
1109     # Obsolete; use --with-gas.
1110     with_gas=yes ;;
1111
1112   -help | --help | --hel | --he | -h)
1113     ac_init_help=long ;;
1114   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115     ac_init_help=recursive ;;
1116   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117     ac_init_help=short ;;
1118
1119   -host | --host | --hos | --ho)
1120     ac_prev=host_alias ;;
1121   -host=* | --host=* | --hos=* | --ho=*)
1122     host_alias=$ac_optarg ;;
1123
1124   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125     ac_prev=htmldir ;;
1126   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127   | --ht=*)
1128     htmldir=$ac_optarg ;;
1129
1130   -includedir | --includedir | --includedi | --included | --include \
1131   | --includ | --inclu | --incl | --inc)
1132     ac_prev=includedir ;;
1133   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134   | --includ=* | --inclu=* | --incl=* | --inc=*)
1135     includedir=$ac_optarg ;;
1136
1137   -infodir | --infodir | --infodi | --infod | --info | --inf)
1138     ac_prev=infodir ;;
1139   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140     infodir=$ac_optarg ;;
1141
1142   -libdir | --libdir | --libdi | --libd)
1143     ac_prev=libdir ;;
1144   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145     libdir=$ac_optarg ;;
1146
1147   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148   | --libexe | --libex | --libe)
1149     ac_prev=libexecdir ;;
1150   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151   | --libexe=* | --libex=* | --libe=*)
1152     libexecdir=$ac_optarg ;;
1153
1154   -localedir | --localedir | --localedi | --localed | --locale)
1155     ac_prev=localedir ;;
1156   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157     localedir=$ac_optarg ;;
1158
1159   -localstatedir | --localstatedir | --localstatedi | --localstated \
1160   | --localstate | --localstat | --localsta | --localst | --locals)
1161     ac_prev=localstatedir ;;
1162   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164     localstatedir=$ac_optarg ;;
1165
1166   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167     ac_prev=mandir ;;
1168   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169     mandir=$ac_optarg ;;
1170
1171   -nfp | --nfp | --nf)
1172     # Obsolete; use --without-fp.
1173     with_fp=no ;;
1174
1175   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176   | --no-cr | --no-c | -n)
1177     no_create=yes ;;
1178
1179   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181     no_recursion=yes ;;
1182
1183   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185   | --oldin | --oldi | --old | --ol | --o)
1186     ac_prev=oldincludedir ;;
1187   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190     oldincludedir=$ac_optarg ;;
1191
1192   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193     ac_prev=prefix ;;
1194   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195     prefix=$ac_optarg ;;
1196
1197   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198   | --program-pre | --program-pr | --program-p)
1199     ac_prev=program_prefix ;;
1200   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202     program_prefix=$ac_optarg ;;
1203
1204   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205   | --program-suf | --program-su | --program-s)
1206     ac_prev=program_suffix ;;
1207   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209     program_suffix=$ac_optarg ;;
1210
1211   -program-transform-name | --program-transform-name \
1212   | --program-transform-nam | --program-transform-na \
1213   | --program-transform-n | --program-transform- \
1214   | --program-transform | --program-transfor \
1215   | --program-transfo | --program-transf \
1216   | --program-trans | --program-tran \
1217   | --progr-tra | --program-tr | --program-t)
1218     ac_prev=program_transform_name ;;
1219   -program-transform-name=* | --program-transform-name=* \
1220   | --program-transform-nam=* | --program-transform-na=* \
1221   | --program-transform-n=* | --program-transform-=* \
1222   | --program-transform=* | --program-transfor=* \
1223   | --program-transfo=* | --program-transf=* \
1224   | --program-trans=* | --program-tran=* \
1225   | --progr-tra=* | --program-tr=* | --program-t=*)
1226     program_transform_name=$ac_optarg ;;
1227
1228   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229     ac_prev=pdfdir ;;
1230   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231     pdfdir=$ac_optarg ;;
1232
1233   -psdir | --psdir | --psdi | --psd | --ps)
1234     ac_prev=psdir ;;
1235   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236     psdir=$ac_optarg ;;
1237
1238   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239   | -silent | --silent | --silen | --sile | --sil)
1240     silent=yes ;;
1241
1242   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243     ac_prev=sbindir ;;
1244   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245   | --sbi=* | --sb=*)
1246     sbindir=$ac_optarg ;;
1247
1248   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250   | --sharedst | --shareds | --shared | --share | --shar \
1251   | --sha | --sh)
1252     ac_prev=sharedstatedir ;;
1253   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256   | --sha=* | --sh=*)
1257     sharedstatedir=$ac_optarg ;;
1258
1259   -site | --site | --sit)
1260     ac_prev=site ;;
1261   -site=* | --site=* | --sit=*)
1262     site=$ac_optarg ;;
1263
1264   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265     ac_prev=srcdir ;;
1266   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267     srcdir=$ac_optarg ;;
1268
1269   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270   | --syscon | --sysco | --sysc | --sys | --sy)
1271     ac_prev=sysconfdir ;;
1272   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274     sysconfdir=$ac_optarg ;;
1275
1276   -target | --target | --targe | --targ | --tar | --ta | --t)
1277     ac_prev=target_alias ;;
1278   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279     target_alias=$ac_optarg ;;
1280
1281   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282     verbose=yes ;;
1283
1284   -version | --version | --versio | --versi | --vers | -V)
1285     ac_init_version=: ;;
1286
1287   -with-* | --with-*)
1288     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid package name: $ac_package" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1294     eval with_$ac_package=\$ac_optarg ;;
1295
1296   -without-* | --without-*)
1297     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300       { echo "$as_me: error: invalid package name: $ac_package" >&2
1301    { (exit 1); exit 1; }; }
1302     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1303     eval with_$ac_package=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) { echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325    { (exit 1); exit 1; }; }
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333    { (exit 1); exit 1; }; }
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   { echo "$as_me: error: missing argument to $ac_option" >&2
1351    { (exit 1); exit 1; }; }
1352 fi
1353
1354 # Be sure to have absolute directory names.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   case $ac_val in
1362     [\\/$]* | ?:[\\/]* )  continue;;
1363     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364   esac
1365   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366    { (exit 1); exit 1; }; }
1367 done
1368
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1375
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378   if test "x$build_alias" = x; then
1379     cross_compiling=maybe
1380     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381     If a cross compiler is detected then cross compile mode will be used." >&2
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   { echo "$as_me: error: Working directory cannot be determined" >&2
1397    { (exit 1); exit 1; }; }
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399   { echo "$as_me: error: pwd does not report name of working directory" >&2
1400    { (exit 1); exit 1; }; }
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405   ac_srcdir_defaulted=yes
1406   # Try the directory containing this script, then the parent directory.
1407   ac_confdir=`$as_dirname -- "$0" ||
1408 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409          X"$0" : 'X\(//\)[^/]' \| \
1410          X"$0" : 'X\(//\)$' \| \
1411          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1412 echo X"$0" |
1413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)[^/].*/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\).*/{
1426             s//\1/
1427             q
1428           }
1429           s/.*/./; q'`
1430   srcdir=$ac_confdir
1431   if test ! -r "$srcdir/$ac_unique_file"; then
1432     srcdir=..
1433   fi
1434 else
1435   ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440    { (exit 1); exit 1; }; }
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1445    { (exit 1); exit 1; }; }
1446         pwd)`
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449   srcdir=.
1450 fi
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1454 case $srcdir in
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 esac
1457 for ac_var in $ac_precious_vars; do
1458   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459   eval ac_env_${ac_var}_value=\$${ac_var}
1460   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 done
1463
1464 #
1465 # Report the --help message.
1466 #
1467 if test "$ac_init_help" = "long"; then
1468   # Omit some internal or obsolete options to make the list less imposing.
1469   # This message is too long to be a string in the A/UX 3.1 sh.
1470   cat <<_ACEOF
1471 \`configure' configures this package to adapt to many kinds of systems.
1472
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE.  See below for descriptions of some of the useful variables.
1477
1478 Defaults for the options are specified in brackets.
1479
1480 Configuration:
1481   -h, --help              display this help and exit
1482       --help=short        display options specific to this package
1483       --help=recursive    display the short help of all the included packages
1484   -V, --version           display version information and exit
1485   -q, --quiet, --silent   do not print \`checking...' messages
1486       --cache-file=FILE   cache test results in FILE [disabled]
1487   -C, --config-cache      alias for \`--cache-file=config.cache'
1488   -n, --no-create         do not create output files
1489       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1490
1491 Installation directories:
1492   --prefix=PREFIX         install architecture-independent files in PREFIX
1493                           [$ac_default_prefix]
1494   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1495                           [PREFIX]
1496
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1501
1502 For better control, use the options below.
1503
1504 Fine tuning of the installation directories:
1505   --bindir=DIR           user executables [EPREFIX/bin]
1506   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1507   --libexecdir=DIR       program executables [EPREFIX/libexec]
1508   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1509   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1510   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1511   --libdir=DIR           object code libraries [EPREFIX/lib]
1512   --includedir=DIR       C header files [PREFIX/include]
1513   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1514   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1515   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1516   --infodir=DIR          info documentation [DATAROOTDIR/info]
1517   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1518   --mandir=DIR           man documentation [DATAROOTDIR/man]
1519   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1520   --htmldir=DIR          html documentation [DOCDIR]
1521   --dvidir=DIR           dvi documentation [DOCDIR]
1522   --pdfdir=DIR           pdf documentation [DOCDIR]
1523   --psdir=DIR            ps documentation [DOCDIR]
1524 _ACEOF
1525
1526   cat <<\_ACEOF
1527
1528 Program names:
1529   --program-prefix=PREFIX            prepend PREFIX to installed program names
1530   --program-suffix=SUFFIX            append SUFFIX to installed program names
1531   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1532
1533 System types:
1534   --build=BUILD     configure for building on BUILD [guessed]
1535   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1536   --target=TARGET   configure for building compilers for TARGET [HOST]
1537 _ACEOF
1538 fi
1539
1540 if test -n "$ac_init_help"; then
1541
1542   cat <<\_ACEOF
1543
1544 Optional Features:
1545   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1546   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1547   --enable-debug          enable debugging no|yes|traditional [yes]
1548   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1549   --enable-syslog         enable syslog support [auto]
1550   --enable-proctitle      enable proctitle support [yes]
1551   --enable-ipv6           enable IPv6 support [auto]
1552   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1553
1554 SLAPD (Standalone LDAP Daemon) Options:
1555   --enable-slapd          enable building slapd [yes]
1556     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1557     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1558     --enable-cleartext    enable cleartext passwords [yes]
1559     --enable-crypt        enable crypt(3) passwords [no]
1560     --enable-lmpasswd     enable LAN Manager passwords [no]
1561     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1562     --enable-modules      enable dynamic module support [no]
1563     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1564     --enable-rlookups     enable reverse lookups of client hostnames [no]
1565     --enable-slapi        enable SLAPI support (experimental) [no]
1566     --enable-slp          enable SLPv2 support [no]
1567     --enable-wrappers     enable tcp wrapper support [no]
1568
1569 SLAPD Backend Options:
1570     --enable-backends     enable all available backends no|yes|mod
1571     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1572     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1573     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1574     --enable-ldap         enable ldap backend no|yes|mod [no]
1575     --enable-meta         enable metadirectory backend no|yes|mod [no]
1576     --enable-monitor      enable monitor backend no|yes|mod [yes]
1577     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1578     --enable-null         enable null backend no|yes|mod [no]
1579     --enable-passwd       enable passwd backend no|yes|mod [no]
1580     --enable-perl         enable perl backend no|yes|mod [no]
1581     --enable-relay        enable relay backend no|yes|mod [yes]
1582     --enable-shell        enable shell backend no|yes|mod [no]
1583     --enable-sock         enable sock backend no|yes|mod [no]
1584     --enable-sql          enable sql backend no|yes|mod [no]
1585
1586 SLAPD Overlay Options:
1587     --enable-overlays     enable all available overlays no|yes|mod
1588     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1589     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1590     --enable-collect      Collect overlay no|yes|mod [no]
1591     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1592     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1593     --enable-deref        Dereference overlay no|yes|mod [no]
1594     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1595     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1596     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1597     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1598     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1599     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1600     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1601     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1602     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1603     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1604     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1605     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1606     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1607
1608 Library Generation & Linking Options
1609   --enable-static[=PKGS]  build static libraries [default=yes]
1610   --enable-shared[=PKGS]  build shared libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-dependency-tracking  speeds up one-time build
1614   --enable-dependency-tracking   do not reject slow dependency extractors
1615   --disable-libtool-lock  avoid locking (might break parallel builds)
1616
1617 Optional Packages:
1618   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1619   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1620   --with-subdir=DIR       change default subdirectory used for installs
1621   --with-cyrus-sasl       with Cyrus SASL support [auto]
1622   --with-fetch            with fetch(3) URL support [auto]
1623   --with-threads          with threads [auto]
1624   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1625   --with-yielding-select  with implicitly yielding select [auto]
1626   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1627   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629   --with-pic              try to use only PIC/non-PIC objects [default=use
1630                           both]
1631   --with-tags[=TAGS]      include additional configurations [automatic]
1632
1633 See INSTALL file for further details.
1634
1635 Some influential environment variables:
1636   CC          C compiler command
1637   CFLAGS      C compiler flags
1638   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1639               nonstandard directory <lib dir>
1640   LIBS        libraries to pass to the linker, e.g. -l<library>
1641   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1642               you have headers in a nonstandard directory <include dir>
1643   CPP         C preprocessor
1644
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1647
1648 _ACEOF
1649 ac_status=$?
1650 fi
1651
1652 if test "$ac_init_help" = "recursive"; then
1653   # If there are subdirs, report their specific --help.
1654   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655     test -d "$ac_dir" || continue
1656     ac_builddir=.
1657
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *)
1661   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1662   # A ".." for each directory in $ac_dir_suffix.
1663   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1664   case $ac_top_builddir_sub in
1665   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667   esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1673
1674 case $srcdir in
1675   .)  # We are building in place.
1676     ac_srcdir=.
1677     ac_top_srcdir=$ac_top_builddir_sub
1678     ac_abs_top_srcdir=$ac_pwd ;;
1679   [\\/]* | ?:[\\/]* )  # Absolute name.
1680     ac_srcdir=$srcdir$ac_dir_suffix;
1681     ac_top_srcdir=$srcdir
1682     ac_abs_top_srcdir=$srcdir ;;
1683   *) # Relative name.
1684     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685     ac_top_srcdir=$ac_top_build_prefix$srcdir
1686     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690     cd "$ac_dir" || { ac_status=$?; continue; }
1691     # Check for guested configure.
1692     if test -f "$ac_srcdir/configure.gnu"; then
1693       echo &&
1694       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695     elif test -f "$ac_srcdir/configure"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure" --help=recursive
1698     else
1699       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700     fi || ac_status=$?
1701     cd "$ac_pwd" || { ac_status=$?; break; }
1702   done
1703 fi
1704
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707   cat <<\_ACEOF
1708 configure
1709 generated by GNU Autoconf 2.61
1710
1711 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1712 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715
1716 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1717 Restrictions apply, see COPYRIGHT and LICENSE files.
1718 _ACEOF
1719   exit
1720 fi
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1724
1725 It was created by $as_me, which was
1726 generated by GNU Autoconf 2.61.  Invocation command line was
1727
1728   $ $0 $@
1729
1730 _ACEOF
1731 exec 5>>config.log
1732 {
1733 cat <<_ASUNAME
1734 ## --------- ##
1735 ## Platform. ##
1736 ## --------- ##
1737
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1746
1747 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1748 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1751 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1752 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1753 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1754
1755 _ASUNAME
1756
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   echo "PATH: $as_dir"
1763 done
1764 IFS=$as_save_IFS
1765
1766 } >&5
1767
1768 cat >&5 <<_ACEOF
1769
1770
1771 ## ----------- ##
1772 ## Core tests. ##
1773 ## ----------- ##
1774
1775 _ACEOF
1776
1777
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1783 ac_configure_args=
1784 ac_configure_args0=
1785 ac_configure_args1=
1786 ac_must_keep_next=false
1787 for ac_pass in 1 2
1788 do
1789   for ac_arg
1790   do
1791     case $ac_arg in
1792     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794     | -silent | --silent | --silen | --sile | --sil)
1795       continue ;;
1796     *\'*)
1797       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798     esac
1799     case $ac_pass in
1800     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1801     2)
1802       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803       if test $ac_must_keep_next = true; then
1804         ac_must_keep_next=false # Got value, back to normal.
1805       else
1806         case $ac_arg in
1807           *=* | --config-cache | -C | -disable-* | --disable-* \
1808           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810           | -with-* | --with-* | -without-* | --without-* | --x)
1811             case "$ac_configure_args0 " in
1812               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813             esac
1814             ;;
1815           -* ) ac_must_keep_next=true ;;
1816         esac
1817       fi
1818       ac_configure_args="$ac_configure_args '$ac_arg'"
1819       ;;
1820     esac
1821   done
1822 done
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1825
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log.  We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832   # Save into config.log some information that might help in debugging.
1833   {
1834     echo
1835
1836     cat <<\_ASBOX
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1840 _ASBOX
1841     echo
1842     # The following way of writing the cache mishandles newlines in values,
1843 (
1844   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845     eval ac_val=\$$ac_var
1846     case $ac_val in #(
1847     *${as_nl}*)
1848       case $ac_var in #(
1849       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1850 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1851       esac
1852       case $ac_var in #(
1853       _ | IFS | as_nl) ;; #(
1854       *) $as_unset $ac_var ;;
1855       esac ;;
1856     esac
1857   done
1858   (set) 2>&1 |
1859     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860     *${as_nl}ac_space=\ *)
1861       sed -n \
1862         "s/'\''/'\''\\\\'\'''\''/g;
1863           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1864       ;; #(
1865     *)
1866       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1867       ;;
1868     esac |
1869     sort
1870 )
1871     echo
1872
1873     cat <<\_ASBOX
1874 ## ----------------- ##
1875 ## Output variables. ##
1876 ## ----------------- ##
1877 _ASBOX
1878     echo
1879     for ac_var in $ac_subst_vars
1880     do
1881       eval ac_val=\$$ac_var
1882       case $ac_val in
1883       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884       esac
1885       echo "$ac_var='\''$ac_val'\''"
1886     done | sort
1887     echo
1888
1889     if test -n "$ac_subst_files"; then
1890       cat <<\_ASBOX
1891 ## ------------------- ##
1892 ## File substitutions. ##
1893 ## ------------------- ##
1894 _ASBOX
1895       echo
1896       for ac_var in $ac_subst_files
1897       do
1898         eval ac_val=\$$ac_var
1899         case $ac_val in
1900         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901         esac
1902         echo "$ac_var='\''$ac_val'\''"
1903       done | sort
1904       echo
1905     fi
1906
1907     if test -s confdefs.h; then
1908       cat <<\_ASBOX
1909 ## ----------- ##
1910 ## confdefs.h. ##
1911 ## ----------- ##
1912 _ASBOX
1913       echo
1914       cat confdefs.h
1915       echo
1916     fi
1917     test "$ac_signal" != 0 &&
1918       echo "$as_me: caught signal $ac_signal"
1919     echo "$as_me: exit $exit_status"
1920   } >&5
1921   rm -f core *.core core.conftest.* &&
1922     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1923     exit $exit_status
1924 ' 0
1925 for ac_signal in 1 2 13 15; do
1926   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1927 done
1928 ac_signal=0
1929
1930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1931 rm -f -r conftest* confdefs.h
1932
1933 # Predefined preprocessor variables.
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_NAME "$PACKAGE_NAME"
1937 _ACEOF
1938
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1942 _ACEOF
1943
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1947 _ACEOF
1948
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_STRING "$PACKAGE_STRING"
1952 _ACEOF
1953
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1957 _ACEOF
1958
1959
1960 # Let the site file select an alternate cache file if it wants to.
1961 # Prefer explicitly selected file to automatically selected ones.
1962 if test -n "$CONFIG_SITE"; then
1963   set x "$CONFIG_SITE"
1964 elif test "x$prefix" != xNONE; then
1965   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1966 else
1967   set x "$ac_default_prefix/share/config.site" \
1968         "$ac_default_prefix/etc/config.site"
1969 fi
1970 shift
1971 for ac_site_file
1972 do
1973   if test -r "$ac_site_file"; then
1974     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1975 echo "$as_me: loading site script $ac_site_file" >&6;}
1976     sed 's/^/| /' "$ac_site_file" >&5
1977     . "$ac_site_file"
1978   fi
1979 done
1980
1981
1982 # Check that the precious variables saved in the cache have kept the same
1983 # value.
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987   eval ac_new_set=\$ac_env_${ac_var}_set
1988   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989   eval ac_new_val=\$ac_env_${ac_var}_value
1990   case $ac_old_set,$ac_new_set in
1991     set,)
1992       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994       ac_cache_corrupted=: ;;
1995     ,set)
1996       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998       ac_cache_corrupted=: ;;
1999     ,);;
2000     *)
2001       if test "x$ac_old_val" != "x$ac_new_val"; then
2002         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2005 echo "$as_me:   former value:  $ac_old_val" >&2;}
2006         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2007 echo "$as_me:   current value: $ac_new_val" >&2;}
2008         ac_cache_corrupted=:
2009       fi;;
2010   esac
2011   # Pass precious variables to config.status.
2012   if test "$ac_new_set" = set; then
2013     case $ac_new_val in
2014     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2015     *) ac_arg=$ac_var=$ac_new_val ;;
2016     esac
2017     case " $ac_configure_args " in
2018       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2019       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020     esac
2021   fi
2022 done
2023 if $ac_cache_corrupted; then
2024   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2077
2078
2079
2080 ac_aux_dir=
2081 for ac_dir in build "$srcdir"/build; do
2082   if test -f "$ac_dir/install-sh"; then
2083     ac_aux_dir=$ac_dir
2084     ac_install_sh="$ac_aux_dir/install-sh -c"
2085     break
2086   elif test -f "$ac_dir/install.sh"; then
2087     ac_aux_dir=$ac_dir
2088     ac_install_sh="$ac_aux_dir/install.sh -c"
2089     break
2090   elif test -f "$ac_dir/shtool"; then
2091     ac_aux_dir=$ac_dir
2092     ac_install_sh="$ac_aux_dir/shtool install -c"
2093     break
2094   fi
2095 done
2096 if test -z "$ac_aux_dir"; then
2097   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2098 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2099    { (exit 1); exit 1; }; }
2100 fi
2101
2102 # These three variables are undocumented and unsupported,
2103 # and are intended to be withdrawn in a future Autoconf release.
2104 # They can cause serious problems if a builder's source tree is in a directory
2105 # whose full name contains unusual characters.
2106 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2107 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2108 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2109
2110
2111 eval `$ac_aux_dir/version.sh`
2112 if test -z "$OL_STRING"; then
2113         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2114 echo "$as_me: error: could not determine version" >&2;}
2115    { (exit 1); exit 1; }; }
2116 fi
2117
2118 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2119         ac_cv_shtool="$ac_aux_dir/shtool"
2120 else
2121         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2122 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125
2126 SHTOOL="$ac_cv_shtool"
2127
2128 TB="" TN=""
2129 if test -t 1; then
2130         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2131         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2132 fi
2133
2134 OPENLDAP_CVS=""
2135 if test -d $ac_aux_dir/CVS; then
2136         OPENLDAP_CVS="(from CVS sources) "
2137 fi
2138
2139 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2140
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 { echo "$as_me:$LINENO: checking build system type" >&5
2148 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158    { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 fi
2165 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 echo "${ECHO_T}$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2168 *-*-*) ;;
2169 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 echo "$as_me: error: invalid value of canonical build" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 build=$ac_cv_build
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_build
2176 shift
2177 build_cpu=$1
2178 build_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 build_os=$*
2183 IFS=$ac_save_IFS
2184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2185
2186
2187 { echo "$as_me:$LINENO: checking host system type" >&5
2188 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test "x$host_alias" = x; then
2193   ac_cv_host=$ac_cv_build
2194 else
2195   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198    { (exit 1); exit 1; }; }
2199 fi
2200
2201 fi
2202 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6; }
2204 case $ac_cv_host in
2205 *-*-*) ;;
2206 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 echo "$as_me: error: invalid value of canonical host" >&2;}
2208    { (exit 1); exit 1; }; };;
2209 esac
2210 host=$ac_cv_host
2211 ac_save_IFS=$IFS; IFS='-'
2212 set x $ac_cv_host
2213 shift
2214 host_cpu=$1
2215 host_vendor=$2
2216 shift; shift
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2219 host_os=$*
2220 IFS=$ac_save_IFS
2221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222
2223
2224 { echo "$as_me:$LINENO: checking target system type" >&5
2225 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test "x$target_alias" = x; then
2230   ac_cv_target=$ac_cv_host
2231 else
2232   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237
2238 fi
2239 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 echo "${ECHO_T}$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2242 *-*-*) ;;
2243 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 echo "$as_me: error: invalid value of canonical target" >&2;}
2245    { (exit 1); exit 1; }; };;
2246 esac
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2249 set x $ac_cv_target
2250 shift
2251 target_cpu=$1
2252 target_vendor=$2
2253 shift; shift
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2256 target_os=$*
2257 IFS=$ac_save_IFS
2258 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2259
2260
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264   test "$program_prefix$program_suffix$program_transform_name" = \
2265     NONENONEs,x,x, &&
2266   program_prefix=${target_alias}-
2267
2268 am__api_version="1.9"
2269 # Find a good install program.  We prefer a C program (faster),
2270 # so one script is as good as another.  But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in
2295   ./ | .// | /cC/* | \
2296   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2298   /usr/ucb/* ) ;;
2299   *)
2300     # OSF1 and SCO ODT 3.0 have their own names for install.
2301     # Don't use installbsd from OSF since it installs stuff as root
2302     # by default.
2303     for ac_prog in ginstall scoinst install; do
2304       for ac_exec_ext in '' $ac_executable_extensions; do
2305         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2306           if test $ac_prog = install &&
2307             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308             # AIX install.  It has an incompatible calling convention.
2309             :
2310           elif test $ac_prog = install &&
2311             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312             # program-specific install script used by HP pwplus--don't use.
2313             :
2314           else
2315             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316             break 3
2317           fi
2318         fi
2319       done
2320     done
2321     ;;
2322 esac
2323 done
2324 IFS=$as_save_IFS
2325
2326
2327 fi
2328   if test "${ac_cv_path_install+set}" = set; then
2329     INSTALL=$ac_cv_path_install
2330   else
2331     # As a last resort, use the slow shell script.  Don't cache a
2332     # value for INSTALL within a source directory, because that will
2333     # break other packages using the cache if that directory is
2334     # removed, or if the value is a relative name.
2335     INSTALL=$ac_install_sh
2336   fi
2337 fi
2338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2339 echo "${ECHO_T}$INSTALL" >&6; }
2340
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2344
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2346
2347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2348
2349 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2350 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2351 # Just in case
2352 sleep 1
2353 echo timestamp > conftest.file
2354 # Do `set' in a subshell so we don't clobber the current shell's
2355 # arguments.  Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2358 # directory).
2359 if (
2360    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2361    if test "$*" = "X"; then
2362       # -L didn't work.
2363       set X `ls -t $srcdir/configure conftest.file`
2364    fi
2365    rm -f conftest.file
2366    if test "$*" != "X $srcdir/configure conftest.file" \
2367       && test "$*" != "X conftest.file $srcdir/configure"; then
2368
2369       # If neither matched, then we have a broken ls.  This can happen
2370       # if, for instance, CONFIG_SHELL is bash and it inherits a
2371       # broken ls alias from the environment.  This has actually
2372       # happened.  Such a system could not be considered "sane".
2373       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2374 alias in your environment" >&5
2375 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&2;}
2377    { (exit 1); exit 1; }; }
2378    fi
2379
2380    test "$2" = conftest.file
2381    )
2382 then
2383    # Ok.
2384    :
2385 else
2386    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2387 Check your system clock" >&5
2388 echo "$as_me: error: newly created file is older than distributed files!
2389 Check your system clock" >&2;}
2390    { (exit 1); exit 1; }; }
2391 fi
2392 { echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6; }
2394 test "$program_prefix" != NONE &&
2395   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.  echo might interpret backslashes.
2400 # By default was `s,x,x', remove it if useless.
2401 cat <<\_ACEOF >conftest.sed
2402 s/[\\$]/&&/g;s/;s,x,x,$//
2403 _ACEOF
2404 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2405 rm -f conftest.sed
2406
2407 # expand $ac_aux_dir to an absolute path
2408 am_aux_dir=`cd $ac_aux_dir && pwd`
2409
2410 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413   am_missing_run="$MISSING --run "
2414 else
2415   am_missing_run=
2416   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2417 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418 fi
2419
2420 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2421   # We used to keeping the `.' as first argument, in order to
2422   # allow $(mkdir_p) to be used without argument.  As in
2423   #   $(mkdir_p) $(somedir)
2424   # where $(somedir) is conditionally defined.  However this is wrong
2425   # for two reasons:
2426   #  1. if the package is installed by a user who cannot write `.'
2427   #     make install will fail,
2428   #  2. the above comment should most certainly read
2429   #     $(mkdir_p) $(DESTDIR)$(somedir)
2430   #     so it does not work when $(somedir) is undefined and
2431   #     $(DESTDIR) is not.
2432   #  To support the latter case, we have to write
2433   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2434   #  so the `.' trick is pointless.
2435   mkdir_p='mkdir -p --'
2436 else
2437   # On NextStep and OpenStep, the `mkdir' command does not
2438   # recognize any option.  It will interpret all options as
2439   # directories to create, and then abort because `.' already
2440   # exists.
2441   for d in ./-p ./--version;
2442   do
2443     test -d $d && rmdir $d
2444   done
2445   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2446   if test -f "$ac_aux_dir/mkinstalldirs"; then
2447     mkdir_p='$(mkinstalldirs)'
2448   else
2449     mkdir_p='$(install_sh) -d'
2450   fi
2451 fi
2452
2453 for ac_prog in gawk mawk nawk awk
2454 do
2455   # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_AWK+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$AWK"; then
2463   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472     ac_cv_prog_AWK="$ac_prog"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 AWK=$ac_cv_prog_AWK
2483 if test -n "$AWK"; then
2484   { echo "$as_me:$LINENO: result: $AWK" >&5
2485 echo "${ECHO_T}$AWK" >&6; }
2486 else
2487   { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2489 fi
2490
2491
2492   test -n "$AWK" && break
2493 done
2494
2495 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2497 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   cat >conftest.make <<\_ACEOF
2502 SHELL = /bin/sh
2503 all:
2504         @echo '@@@%%%=$(MAKE)=@@@%%%'
2505 _ACEOF
2506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2508   *@@@%%%=?*=@@@%%%*)
2509     eval ac_cv_prog_make_${ac_make}_set=yes;;
2510   *)
2511     eval ac_cv_prog_make_${ac_make}_set=no;;
2512 esac
2513 rm -f conftest.make
2514 fi
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516   { echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2518   SET_MAKE=
2519 else
2520   { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522   SET_MAKE="MAKE=${MAKE-make}"
2523 fi
2524
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2528   am__leading_dot=.
2529 else
2530   am__leading_dot=_
2531 fi
2532 rmdir .tst 2>/dev/null
2533
2534 # test to see if srcdir already configured
2535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2536    test -f $srcdir/config.status; then
2537   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2539    { (exit 1); exit 1; }; }
2540 fi
2541
2542 # test whether we have cygpath
2543 if test -z "$CYGPATH_W"; then
2544   if (cygpath --version) >/dev/null 2>/dev/null; then
2545     CYGPATH_W='cygpath -w'
2546   else
2547     CYGPATH_W=echo
2548   fi
2549 fi
2550
2551
2552 # Define the identity of the package.
2553  PACKAGE=$OL_PACKAGE
2554  VERSION=$OL_VERSION
2555
2556
2557 # Some tools Automake needs.
2558
2559 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2560
2561
2562 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2563
2564
2565 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2566
2567
2568 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2569
2570
2571 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2572
2573 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2574
2575 # Installed binaries are usually stripped using `strip' when the user
2576 # run `make install-strip'.  However `strip' might not be the right
2577 # tool to use in cross-compilation environments, therefore Automake
2578 # will honor the `STRIP' environment variable to overrule this program.
2579 if test "$cross_compiling" != no; then
2580   if test -n "$ac_tool_prefix"; then
2581   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}strip; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_STRIP+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$STRIP"; then
2589   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 STRIP=$ac_cv_prog_STRIP
2609 if test -n "$STRIP"; then
2610   { echo "$as_me:$LINENO: result: $STRIP" >&5
2611 echo "${ECHO_T}$STRIP" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618 fi
2619 if test -z "$ac_cv_prog_STRIP"; then
2620   ac_ct_STRIP=$STRIP
2621   # Extract the first word of "strip", so it can be a program name with args.
2622 set dummy strip; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   if test -n "$ac_ct_STRIP"; then
2629   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636   for ac_exec_ext in '' $ac_executable_extensions; do
2637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638     ac_cv_prog_ac_ct_STRIP="strip"
2639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2649 if test -n "$ac_ct_STRIP"; then
2650   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2651 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2652 else
2653   { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2655 fi
2656
2657   if test "x$ac_ct_STRIP" = x; then
2658     STRIP=":"
2659   else
2660     case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet.  If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&5
2665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet.  If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2668 ac_tool_warned=yes ;;
2669 esac
2670     STRIP=$ac_ct_STRIP
2671   fi
2672 else
2673   STRIP="$ac_cv_prog_STRIP"
2674 fi
2675
2676 fi
2677 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2678
2679 # We need awk for the "check" target.  The system "awk" is bad on
2680 # some platforms.
2681 # Always define AMTAR for backward compatibility.
2682
2683 AMTAR=${AMTAR-"${am_missing_run}tar"}
2684
2685 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2686
2687
2688
2689
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define OPENLDAP_PACKAGE "$PACKAGE"
2693 _ACEOF
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define OPENLDAP_VERSION "$VERSION"
2698 _ACEOF
2699
2700
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define LDAP_VENDOR_VERSION $OL_API_INC
2704 _ACEOF
2705
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2709 _ACEOF
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2714 _ACEOF
2715
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2719 _ACEOF
2720
2721
2722 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2723
2724 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2725
2726 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2727
2728
2729
2730
2731
2732
2733
2734 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2735
2736 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2737
2738 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2739
2740
2741 { echo "$as_me:$LINENO: checking configure arguments" >&5
2742 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2743
2744
2745 top_builddir=`pwd`
2746
2747 ldap_subdir="/openldap"
2748
2749
2750 # Check whether --with-subdir was given.
2751 if test "${with_subdir+set}" = set; then
2752   withval=$with_subdir; case "$withval" in
2753         no) ldap_subdir=""
2754                 ;;
2755         yes)
2756                 ;;
2757         /*|\\*)
2758                 ldap_subdir="$withval"
2759                 ;;
2760         *)
2761                 ldap_subdir="/$withval"
2762                 ;;
2763 esac
2764
2765 fi
2766
2767
2768 # OpenLDAP --enable-debug
2769
2770         # Check whether --enable-debug was given.
2771 if test "${enable_debug+set}" = set; then
2772   enableval=$enable_debug;
2773         ol_arg=invalid
2774         for ol_val in no yes traditional ; do
2775                 if test "$enableval" = "$ol_val" ; then
2776                         ol_arg="$ol_val"
2777                 fi
2778         done
2779         if test "$ol_arg" = "invalid" ; then
2780                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2781 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2782    { (exit 1); exit 1; }; }
2783         fi
2784         ol_enable_debug="$ol_arg"
2785
2786 else
2787         ol_enable_debug=yes
2788 fi
2789
2790 # end --enable-debug
2791 # OpenLDAP --enable-dynamic
2792
2793         # Check whether --enable-dynamic was given.
2794 if test "${enable_dynamic+set}" = set; then
2795   enableval=$enable_dynamic;
2796         ol_arg=invalid
2797         for ol_val in auto yes no ; do
2798                 if test "$enableval" = "$ol_val" ; then
2799                         ol_arg="$ol_val"
2800                 fi
2801         done
2802         if test "$ol_arg" = "invalid" ; then
2803                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2804 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2805    { (exit 1); exit 1; }; }
2806         fi
2807         ol_enable_dynamic="$ol_arg"
2808
2809 else
2810         ol_enable_dynamic=no
2811 fi
2812
2813 # end --enable-dynamic
2814 # OpenLDAP --enable-syslog
2815
2816         # Check whether --enable-syslog was given.
2817 if test "${enable_syslog+set}" = set; then
2818   enableval=$enable_syslog;
2819         ol_arg=invalid
2820         for ol_val in auto yes no ; do
2821                 if test "$enableval" = "$ol_val" ; then
2822                         ol_arg="$ol_val"
2823                 fi
2824         done
2825         if test "$ol_arg" = "invalid" ; then
2826                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2828    { (exit 1); exit 1; }; }
2829         fi
2830         ol_enable_syslog="$ol_arg"
2831
2832 else
2833         ol_enable_syslog=auto
2834 fi
2835
2836 # end --enable-syslog
2837 # OpenLDAP --enable-proctitle
2838
2839         # Check whether --enable-proctitle was given.
2840 if test "${enable_proctitle+set}" = set; then
2841   enableval=$enable_proctitle;
2842         ol_arg=invalid
2843         for ol_val in auto yes no ; do
2844                 if test "$enableval" = "$ol_val" ; then
2845                         ol_arg="$ol_val"
2846                 fi
2847         done
2848         if test "$ol_arg" = "invalid" ; then
2849                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2850 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2851    { (exit 1); exit 1; }; }
2852         fi
2853         ol_enable_proctitle="$ol_arg"
2854
2855 else
2856         ol_enable_proctitle=yes
2857 fi
2858
2859 # end --enable-proctitle
2860 ol_enable_referrals=${ol_enable_referrals-no}
2861 # OpenLDAP --enable-ipv6
2862
2863         # Check whether --enable-ipv6 was given.
2864 if test "${enable_ipv6+set}" = set; then
2865   enableval=$enable_ipv6;
2866         ol_arg=invalid
2867         for ol_val in auto yes no ; do
2868                 if test "$enableval" = "$ol_val" ; then
2869                         ol_arg="$ol_val"
2870                 fi
2871         done
2872         if test "$ol_arg" = "invalid" ; then
2873                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2874 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2875    { (exit 1); exit 1; }; }
2876         fi
2877         ol_enable_ipv6="$ol_arg"
2878
2879 else
2880         ol_enable_ipv6=auto
2881 fi
2882
2883 # end --enable-ipv6
2884 # OpenLDAP --enable-local
2885
2886         # Check whether --enable-local was given.
2887 if test "${enable_local+set}" = set; then
2888   enableval=$enable_local;
2889         ol_arg=invalid
2890         for ol_val in auto yes no ; do
2891                 if test "$enableval" = "$ol_val" ; then
2892                         ol_arg="$ol_val"
2893                 fi
2894         done
2895         if test "$ol_arg" = "invalid" ; then
2896                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2897 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2898    { (exit 1); exit 1; }; }
2899         fi
2900         ol_enable_local="$ol_arg"
2901
2902 else
2903         ol_enable_local=auto
2904 fi
2905
2906 # end --enable-local
2907
2908 # OpenLDAP --with-cyrus_sasl
2909
2910 # Check whether --with-cyrus_sasl was given.
2911 if test "${with_cyrus_sasl+set}" = set; then
2912   withval=$with_cyrus_sasl;
2913         ol_arg=invalid
2914         for ol_val in auto yes no  ; do
2915                 if test "$withval" = "$ol_val" ; then
2916                         ol_arg="$ol_val"
2917                 fi
2918         done
2919         if test "$ol_arg" = "invalid" ; then
2920                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2921 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2922    { (exit 1); exit 1; }; }
2923         fi
2924         ol_with_cyrus_sasl="$ol_arg"
2925
2926 else
2927         ol_with_cyrus_sasl="auto"
2928 fi
2929 # end --with-cyrus_sasl
2930
2931 # OpenLDAP --with-fetch
2932
2933 # Check whether --with-fetch was given.
2934 if test "${with_fetch+set}" = set; then
2935   withval=$with_fetch;
2936         ol_arg=invalid
2937         for ol_val in auto yes no  ; do
2938                 if test "$withval" = "$ol_val" ; then
2939                         ol_arg="$ol_val"
2940                 fi
2941         done
2942         if test "$ol_arg" = "invalid" ; then
2943                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2944 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2945    { (exit 1); exit 1; }; }
2946         fi
2947         ol_with_fetch="$ol_arg"
2948
2949 else
2950         ol_with_fetch="auto"
2951 fi
2952 # end --with-fetch
2953
2954 # OpenLDAP --with-threads
2955
2956 # Check whether --with-threads was given.
2957 if test "${with_threads+set}" = set; then
2958   withval=$with_threads;
2959         ol_arg=invalid
2960         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2961                 if test "$withval" = "$ol_val" ; then
2962                         ol_arg="$ol_val"
2963                 fi
2964         done
2965         if test "$ol_arg" = "invalid" ; then
2966                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2967 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2968    { (exit 1); exit 1; }; }
2969         fi
2970         ol_with_threads="$ol_arg"
2971
2972 else
2973         ol_with_threads="auto"
2974 fi
2975 # end --with-threads
2976
2977 # OpenLDAP --with-tls
2978
2979 # Check whether --with-tls was given.
2980 if test "${with_tls+set}" = set; then
2981   withval=$with_tls;
2982         ol_arg=invalid
2983         for ol_val in auto openssl gnutls yes no  ; do
2984                 if test "$withval" = "$ol_val" ; then
2985                         ol_arg="$ol_val"
2986                 fi
2987         done
2988         if test "$ol_arg" = "invalid" ; then
2989                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2990 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2991    { (exit 1); exit 1; }; }
2992         fi
2993         ol_with_tls="$ol_arg"
2994
2995 else
2996         ol_with_tls="auto"
2997 fi
2998 # end --with-tls
2999
3000 # OpenLDAP --with-yielding_select
3001
3002 # Check whether --with-yielding_select was given.
3003 if test "${with_yielding_select+set}" = set; then
3004   withval=$with_yielding_select;
3005         ol_arg=invalid
3006         for ol_val in auto yes no manual  ; do
3007                 if test "$withval" = "$ol_val" ; then
3008                         ol_arg="$ol_val"
3009                 fi
3010         done
3011         if test "$ol_arg" = "invalid" ; then
3012                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3013 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3014    { (exit 1); exit 1; }; }
3015         fi
3016         ol_with_yielding_select="$ol_arg"
3017
3018 else
3019         ol_with_yielding_select="auto"
3020 fi
3021 # end --with-yielding_select
3022
3023 # OpenLDAP --with-mp
3024
3025 # Check whether --with-mp was given.
3026 if test "${with_mp+set}" = set; then
3027   withval=$with_mp;
3028         ol_arg=invalid
3029         for ol_val in auto longlong long bignum gmp yes no ; do
3030                 if test "$withval" = "$ol_val" ; then
3031                         ol_arg="$ol_val"
3032                 fi
3033         done
3034         if test "$ol_arg" = "invalid" ; then
3035                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3036 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3037    { (exit 1); exit 1; }; }
3038         fi
3039         ol_with_mp="$ol_arg"
3040
3041 else
3042         ol_with_mp="auto"
3043 fi
3044 # end --with-mp
3045
3046 # OpenLDAP --with-odbc
3047
3048 # Check whether --with-odbc was given.
3049 if test "${with_odbc+set}" = set; then
3050   withval=$with_odbc;
3051         ol_arg=invalid
3052         for ol_val in auto iodbc unixodbc odbc32  ; do
3053                 if test "$withval" = "$ol_val" ; then
3054                         ol_arg="$ol_val"
3055                 fi
3056         done
3057         if test "$ol_arg" = "invalid" ; then
3058                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3059 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3060    { (exit 1); exit 1; }; }
3061         fi
3062         ol_with_odbc="$ol_arg"
3063
3064 else
3065         ol_with_odbc="auto"
3066 fi
3067 # end --with-odbc
3068
3069
3070
3071 # Check whether --enable-xxslapdoptions was given.
3072 if test "${enable_xxslapdoptions+set}" = set; then
3073   enableval=$enable_xxslapdoptions;
3074 fi
3075
3076 # OpenLDAP --enable-slapd
3077
3078         # Check whether --enable-slapd was given.
3079 if test "${enable_slapd+set}" = set; then
3080   enableval=$enable_slapd;
3081         ol_arg=invalid
3082         for ol_val in auto yes no ; do
3083                 if test "$enableval" = "$ol_val" ; then
3084                         ol_arg="$ol_val"
3085                 fi
3086         done
3087         if test "$ol_arg" = "invalid" ; then
3088                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3090    { (exit 1); exit 1; }; }
3091         fi
3092         ol_enable_slapd="$ol_arg"
3093
3094 else
3095         ol_enable_slapd=yes
3096 fi
3097
3098 # end --enable-slapd
3099 # OpenLDAP --enable-dynacl
3100
3101         # Check whether --enable-dynacl was given.
3102 if test "${enable_dynacl+set}" = set; then
3103   enableval=$enable_dynacl;
3104         ol_arg=invalid
3105         for ol_val in auto yes no ; do
3106                 if test "$enableval" = "$ol_val" ; then
3107                         ol_arg="$ol_val"
3108                 fi
3109         done
3110         if test "$ol_arg" = "invalid" ; then
3111                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3113    { (exit 1); exit 1; }; }
3114         fi
3115         ol_enable_dynacl="$ol_arg"
3116
3117 else
3118         ol_enable_dynacl=no
3119 fi
3120
3121 # end --enable-dynacl
3122 # OpenLDAP --enable-aci
3123
3124         # Check whether --enable-aci was given.
3125 if test "${enable_aci+set}" = set; then
3126   enableval=$enable_aci;
3127         ol_arg=invalid
3128         for ol_val in no yes mod ; do
3129                 if test "$enableval" = "$ol_val" ; then
3130                         ol_arg="$ol_val"
3131                 fi
3132         done
3133         if test "$ol_arg" = "invalid" ; then
3134                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3136    { (exit 1); exit 1; }; }
3137         fi
3138         ol_enable_aci="$ol_arg"
3139
3140 else
3141         ol_enable_aci=no
3142 fi
3143
3144 # end --enable-aci
3145 # OpenLDAP --enable-cleartext
3146
3147         # Check whether --enable-cleartext was given.
3148 if test "${enable_cleartext+set}" = set; then
3149   enableval=$enable_cleartext;
3150         ol_arg=invalid
3151         for ol_val in auto yes no ; do
3152                 if test "$enableval" = "$ol_val" ; then
3153                         ol_arg="$ol_val"
3154                 fi
3155         done
3156         if test "$ol_arg" = "invalid" ; then
3157                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3159    { (exit 1); exit 1; }; }
3160         fi
3161         ol_enable_cleartext="$ol_arg"
3162
3163 else
3164         ol_enable_cleartext=yes
3165 fi
3166
3167 # end --enable-cleartext
3168 # OpenLDAP --enable-crypt
3169
3170         # Check whether --enable-crypt was given.
3171 if test "${enable_crypt+set}" = set; then
3172   enableval=$enable_crypt;
3173         ol_arg=invalid
3174         for ol_val in auto yes no ; do
3175                 if test "$enableval" = "$ol_val" ; then
3176                         ol_arg="$ol_val"
3177                 fi
3178         done
3179         if test "$ol_arg" = "invalid" ; then
3180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3182    { (exit 1); exit 1; }; }
3183         fi
3184         ol_enable_crypt="$ol_arg"
3185
3186 else
3187         ol_enable_crypt=no
3188 fi
3189
3190 # end --enable-crypt
3191 # OpenLDAP --enable-lmpasswd
3192
3193         # Check whether --enable-lmpasswd was given.
3194 if test "${enable_lmpasswd+set}" = set; then
3195   enableval=$enable_lmpasswd;
3196         ol_arg=invalid
3197         for ol_val in auto yes no ; do
3198                 if test "$enableval" = "$ol_val" ; then
3199                         ol_arg="$ol_val"
3200                 fi
3201         done
3202         if test "$ol_arg" = "invalid" ; then
3203                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3205    { (exit 1); exit 1; }; }
3206         fi
3207         ol_enable_lmpasswd="$ol_arg"
3208
3209 else
3210         ol_enable_lmpasswd=no
3211 fi
3212
3213 # end --enable-lmpasswd
3214 # OpenLDAP --enable-spasswd
3215
3216         # Check whether --enable-spasswd was given.
3217 if test "${enable_spasswd+set}" = set; then
3218   enableval=$enable_spasswd;
3219         ol_arg=invalid
3220         for ol_val in auto yes no ; do
3221                 if test "$enableval" = "$ol_val" ; then
3222                         ol_arg="$ol_val"
3223                 fi
3224         done
3225         if test "$ol_arg" = "invalid" ; then
3226                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3228    { (exit 1); exit 1; }; }
3229         fi
3230         ol_enable_spasswd="$ol_arg"
3231
3232 else
3233         ol_enable_spasswd=no
3234 fi
3235
3236 # end --enable-spasswd
3237 # OpenLDAP --enable-modules
3238
3239         # Check whether --enable-modules was given.
3240 if test "${enable_modules+set}" = set; then
3241   enableval=$enable_modules;
3242         ol_arg=invalid
3243         for ol_val in auto yes no ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_modules="$ol_arg"
3254
3255 else
3256         ol_enable_modules=no
3257 fi
3258
3259 # end --enable-modules
3260 # OpenLDAP --enable-rewrite
3261
3262         # Check whether --enable-rewrite was given.
3263 if test "${enable_rewrite+set}" = set; then
3264   enableval=$enable_rewrite;
3265         ol_arg=invalid
3266         for ol_val in auto yes no ; do
3267                 if test "$enableval" = "$ol_val" ; then
3268                         ol_arg="$ol_val"
3269                 fi
3270         done
3271         if test "$ol_arg" = "invalid" ; then
3272                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3274    { (exit 1); exit 1; }; }
3275         fi
3276         ol_enable_rewrite="$ol_arg"
3277
3278 else
3279         ol_enable_rewrite=auto
3280 fi
3281
3282 # end --enable-rewrite
3283 # OpenLDAP --enable-rlookups
3284
3285         # Check whether --enable-rlookups was given.
3286 if test "${enable_rlookups+set}" = set; then
3287   enableval=$enable_rlookups;
3288         ol_arg=invalid
3289         for ol_val in auto yes no ; do
3290                 if test "$enableval" = "$ol_val" ; then
3291                         ol_arg="$ol_val"
3292                 fi
3293         done
3294         if test "$ol_arg" = "invalid" ; then
3295                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_rlookups="$ol_arg"
3300
3301 else
3302         ol_enable_rlookups=no
3303 fi
3304
3305 # end --enable-rlookups
3306 # OpenLDAP --enable-slapi
3307
3308         # Check whether --enable-slapi was given.
3309 if test "${enable_slapi+set}" = set; then
3310   enableval=$enable_slapi;
3311         ol_arg=invalid
3312         for ol_val in auto yes no ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_slapi="$ol_arg"
3323
3324 else
3325         ol_enable_slapi=no
3326 fi
3327
3328 # end --enable-slapi
3329 # OpenLDAP --enable-slp
3330
3331         # Check whether --enable-slp was given.
3332 if test "${enable_slp+set}" = set; then
3333   enableval=$enable_slp;
3334         ol_arg=invalid
3335         for ol_val in auto yes no ; do
3336                 if test "$enableval" = "$ol_val" ; then
3337                         ol_arg="$ol_val"
3338                 fi
3339         done
3340         if test "$ol_arg" = "invalid" ; then
3341                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3343    { (exit 1); exit 1; }; }
3344         fi
3345         ol_enable_slp="$ol_arg"
3346
3347 else
3348         ol_enable_slp=no
3349 fi
3350
3351 # end --enable-slp
3352 # OpenLDAP --enable-wrappers
3353
3354         # Check whether --enable-wrappers was given.
3355 if test "${enable_wrappers+set}" = set; then
3356   enableval=$enable_wrappers;
3357         ol_arg=invalid
3358         for ol_val in auto yes no ; do
3359                 if test "$enableval" = "$ol_val" ; then
3360                         ol_arg="$ol_val"
3361                 fi
3362         done
3363         if test "$ol_arg" = "invalid" ; then
3364                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3365 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3366    { (exit 1); exit 1; }; }
3367         fi
3368         ol_enable_wrappers="$ol_arg"
3369
3370 else
3371         ol_enable_wrappers=no
3372 fi
3373
3374 # end --enable-wrappers
3375
3376 Backends="bdb \
3377         dnssrv \
3378         hdb \
3379         ldap \
3380         meta \
3381         monitor \
3382         ndb \
3383         null \
3384         passwd \
3385         perl \
3386         relay \
3387         shell \
3388         sock \
3389         sql"
3390
3391 # Check whether --enable-xxslapbackends was given.
3392 if test "${enable_xxslapbackends+set}" = set; then
3393   enableval=$enable_xxslapbackends;
3394 fi
3395
3396
3397 # OpenLDAP --enable-backends
3398
3399         # Check whether --enable-backends was given.
3400 if test "${enable_backends+set}" = set; then
3401   enableval=$enable_backends;
3402         ol_arg=invalid
3403         for ol_val in no yes mod ; do
3404                 if test "$enableval" = "$ol_val" ; then
3405                         ol_arg="$ol_val"
3406                 fi
3407         done
3408         if test "$ol_arg" = "invalid" ; then
3409                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3410 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3411    { (exit 1); exit 1; }; }
3412         fi
3413         ol_enable_backends="$ol_arg"
3414
3415 fi
3416
3417 # end --enable-backends
3418 # OpenLDAP --enable-bdb
3419
3420         # Check whether --enable-bdb was given.
3421 if test "${enable_bdb+set}" = set; then
3422   enableval=$enable_bdb;
3423         ol_arg=invalid
3424         for ol_val in no yes mod ; do
3425                 if test "$enableval" = "$ol_val" ; then
3426                         ol_arg="$ol_val"
3427                 fi
3428         done
3429         if test "$ol_arg" = "invalid" ; then
3430                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3431 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3432    { (exit 1); exit 1; }; }
3433         fi
3434         ol_enable_bdb="$ol_arg"
3435
3436 else
3437         ol_enable_bdb=${ol_enable_backends:-yes}
3438 fi
3439
3440 # end --enable-bdb
3441 # OpenLDAP --enable-dnssrv
3442
3443         # Check whether --enable-dnssrv was given.
3444 if test "${enable_dnssrv+set}" = set; then
3445   enableval=$enable_dnssrv;
3446         ol_arg=invalid
3447         for ol_val in no yes mod ; do
3448                 if test "$enableval" = "$ol_val" ; then
3449                         ol_arg="$ol_val"
3450                 fi
3451         done
3452         if test "$ol_arg" = "invalid" ; then
3453                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3454 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3455    { (exit 1); exit 1; }; }
3456         fi
3457         ol_enable_dnssrv="$ol_arg"
3458
3459 else
3460         ol_enable_dnssrv=${ol_enable_backends:-no}
3461 fi
3462
3463 # end --enable-dnssrv
3464 # OpenLDAP --enable-hdb
3465
3466         # Check whether --enable-hdb was given.
3467 if test "${enable_hdb+set}" = set; then
3468   enableval=$enable_hdb;
3469         ol_arg=invalid
3470         for ol_val in no yes mod ; do
3471                 if test "$enableval" = "$ol_val" ; then
3472                         ol_arg="$ol_val"
3473                 fi
3474         done
3475         if test "$ol_arg" = "invalid" ; then
3476                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3477 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3478    { (exit 1); exit 1; }; }
3479         fi
3480         ol_enable_hdb="$ol_arg"
3481
3482 else
3483         ol_enable_hdb=${ol_enable_backends:-yes}
3484 fi
3485
3486 # end --enable-hdb
3487 # OpenLDAP --enable-ldap
3488
3489         # Check whether --enable-ldap was given.
3490 if test "${enable_ldap+set}" = set; then
3491   enableval=$enable_ldap;
3492         ol_arg=invalid
3493         for ol_val in no yes mod ; do
3494                 if test "$enableval" = "$ol_val" ; then
3495                         ol_arg="$ol_val"
3496                 fi
3497         done
3498         if test "$ol_arg" = "invalid" ; then
3499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3501    { (exit 1); exit 1; }; }
3502         fi
3503         ol_enable_ldap="$ol_arg"
3504
3505 else
3506         ol_enable_ldap=${ol_enable_backends:-no}
3507 fi
3508
3509 # end --enable-ldap
3510 # OpenLDAP --enable-meta
3511
3512         # Check whether --enable-meta was given.
3513 if test "${enable_meta+set}" = set; then
3514   enableval=$enable_meta;
3515         ol_arg=invalid
3516         for ol_val in no yes mod ; do
3517                 if test "$enableval" = "$ol_val" ; then
3518                         ol_arg="$ol_val"
3519                 fi
3520         done
3521         if test "$ol_arg" = "invalid" ; then
3522                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3524    { (exit 1); exit 1; }; }
3525         fi
3526         ol_enable_meta="$ol_arg"
3527
3528 else
3529         ol_enable_meta=${ol_enable_backends:-no}
3530 fi
3531
3532 # end --enable-meta
3533 # OpenLDAP --enable-monitor
3534
3535         # Check whether --enable-monitor was given.
3536 if test "${enable_monitor+set}" = set; then
3537   enableval=$enable_monitor;
3538         ol_arg=invalid
3539         for ol_val in no yes mod ; do
3540                 if test "$enableval" = "$ol_val" ; then
3541                         ol_arg="$ol_val"
3542                 fi
3543         done
3544         if test "$ol_arg" = "invalid" ; then
3545                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3547    { (exit 1); exit 1; }; }
3548         fi
3549         ol_enable_monitor="$ol_arg"
3550
3551 else
3552         ol_enable_monitor=${ol_enable_backends:-yes}
3553 fi
3554
3555 # end --enable-monitor
3556 # OpenLDAP --enable-ndb
3557
3558         # Check whether --enable-ndb was given.
3559 if test "${enable_ndb+set}" = set; then
3560   enableval=$enable_ndb;
3561         ol_arg=invalid
3562         for ol_val in no yes mod ; do
3563                 if test "$enableval" = "$ol_val" ; then
3564                         ol_arg="$ol_val"
3565                 fi
3566         done
3567         if test "$ol_arg" = "invalid" ; then
3568                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3569 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3570    { (exit 1); exit 1; }; }
3571         fi
3572         ol_enable_ndb="$ol_arg"
3573
3574 else
3575         ol_enable_ndb=${ol_enable_backends:-no}
3576 fi
3577
3578 # end --enable-ndb
3579 # OpenLDAP --enable-null
3580
3581         # Check whether --enable-null was given.
3582 if test "${enable_null+set}" = set; then
3583   enableval=$enable_null;
3584         ol_arg=invalid
3585         for ol_val in no yes mod ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_null="$ol_arg"
3596
3597 else
3598         ol_enable_null=${ol_enable_backends:-no}
3599 fi
3600
3601 # end --enable-null
3602 # OpenLDAP --enable-passwd
3603
3604         # Check whether --enable-passwd was given.
3605 if test "${enable_passwd+set}" = set; then
3606   enableval=$enable_passwd;
3607         ol_arg=invalid
3608         for ol_val in no yes mod ; do
3609                 if test "$enableval" = "$ol_val" ; then
3610                         ol_arg="$ol_val"
3611                 fi
3612         done
3613         if test "$ol_arg" = "invalid" ; then
3614                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3615 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3616    { (exit 1); exit 1; }; }
3617         fi
3618         ol_enable_passwd="$ol_arg"
3619
3620 else
3621         ol_enable_passwd=${ol_enable_backends:-no}
3622 fi
3623
3624 # end --enable-passwd
3625 # OpenLDAP --enable-perl
3626
3627         # Check whether --enable-perl was given.
3628 if test "${enable_perl+set}" = set; then
3629   enableval=$enable_perl;
3630         ol_arg=invalid
3631         for ol_val in no yes mod ; do
3632                 if test "$enableval" = "$ol_val" ; then
3633                         ol_arg="$ol_val"
3634                 fi
3635         done
3636         if test "$ol_arg" = "invalid" ; then
3637                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3638 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3639    { (exit 1); exit 1; }; }
3640         fi
3641         ol_enable_perl="$ol_arg"
3642
3643 else
3644         ol_enable_perl=${ol_enable_backends:-no}
3645 fi
3646
3647 # end --enable-perl
3648 # OpenLDAP --enable-relay
3649
3650         # Check whether --enable-relay was given.
3651 if test "${enable_relay+set}" = set; then
3652   enableval=$enable_relay;
3653         ol_arg=invalid
3654         for ol_val in no yes mod ; do
3655                 if test "$enableval" = "$ol_val" ; then
3656                         ol_arg="$ol_val"
3657                 fi
3658         done
3659         if test "$ol_arg" = "invalid" ; then
3660                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3661 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3662    { (exit 1); exit 1; }; }
3663         fi
3664         ol_enable_relay="$ol_arg"
3665
3666 else
3667         ol_enable_relay=${ol_enable_backends:-yes}
3668 fi
3669
3670 # end --enable-relay
3671 # OpenLDAP --enable-shell
3672
3673         # Check whether --enable-shell was given.
3674 if test "${enable_shell+set}" = set; then
3675   enableval=$enable_shell;
3676         ol_arg=invalid
3677         for ol_val in no yes mod ; do
3678                 if test "$enableval" = "$ol_val" ; then
3679                         ol_arg="$ol_val"
3680                 fi
3681         done
3682         if test "$ol_arg" = "invalid" ; then
3683                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3684 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3685    { (exit 1); exit 1; }; }
3686         fi
3687         ol_enable_shell="$ol_arg"
3688
3689 else
3690         ol_enable_shell=${ol_enable_backends:-no}
3691 fi
3692
3693 # end --enable-shell
3694 # OpenLDAP --enable-sock
3695
3696         # Check whether --enable-sock was given.
3697 if test "${enable_sock+set}" = set; then
3698   enableval=$enable_sock;
3699         ol_arg=invalid
3700         for ol_val in no yes mod ; do
3701                 if test "$enableval" = "$ol_val" ; then
3702                         ol_arg="$ol_val"
3703                 fi
3704         done
3705         if test "$ol_arg" = "invalid" ; then
3706                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3707 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3708    { (exit 1); exit 1; }; }
3709         fi
3710         ol_enable_sock="$ol_arg"
3711
3712 else
3713         ol_enable_sock=${ol_enable_backends:-no}
3714 fi
3715
3716 # end --enable-sock
3717 # OpenLDAP --enable-sql
3718
3719         # Check whether --enable-sql was given.
3720 if test "${enable_sql+set}" = set; then
3721   enableval=$enable_sql;
3722         ol_arg=invalid
3723         for ol_val in no yes mod ; do
3724                 if test "$enableval" = "$ol_val" ; then
3725                         ol_arg="$ol_val"
3726                 fi
3727         done
3728         if test "$ol_arg" = "invalid" ; then
3729                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3730 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3731    { (exit 1); exit 1; }; }
3732         fi
3733         ol_enable_sql="$ol_arg"
3734
3735 else
3736         ol_enable_sql=${ol_enable_backends:-no}
3737 fi
3738
3739 # end --enable-sql
3740
3741 Overlays="accesslog \
3742         auditlog \
3743         collect \
3744         constraint \
3745         dds \
3746         deref \
3747         dyngroup \
3748         dynlist \
3749         memberof \
3750         ppolicy \
3751         proxycache \
3752         refint \
3753         retcode \
3754         rwm \
3755         seqmod \
3756         syncprov \
3757         translucent \
3758         unique \
3759         valsort"
3760
3761 # Check whether --enable-xxslapoverlays was given.
3762 if test "${enable_xxslapoverlays+set}" = set; then
3763   enableval=$enable_xxslapoverlays;
3764 fi
3765
3766
3767 # OpenLDAP --enable-overlays
3768
3769         # Check whether --enable-overlays was given.
3770 if test "${enable_overlays+set}" = set; then
3771   enableval=$enable_overlays;
3772         ol_arg=invalid
3773         for ol_val in no yes mod ; do
3774                 if test "$enableval" = "$ol_val" ; then
3775                         ol_arg="$ol_val"
3776                 fi
3777         done
3778         if test "$ol_arg" = "invalid" ; then
3779                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3780 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3781    { (exit 1); exit 1; }; }
3782         fi
3783         ol_enable_overlays="$ol_arg"
3784
3785 fi
3786
3787 # end --enable-overlays
3788 # OpenLDAP --enable-accesslog
3789
3790         # Check whether --enable-accesslog was given.
3791 if test "${enable_accesslog+set}" = set; then
3792   enableval=$enable_accesslog;
3793         ol_arg=invalid
3794         for ol_val in no yes mod ; do
3795                 if test "$enableval" = "$ol_val" ; then
3796                         ol_arg="$ol_val"
3797                 fi
3798         done
3799         if test "$ol_arg" = "invalid" ; then
3800                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3801 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3802    { (exit 1); exit 1; }; }
3803         fi
3804         ol_enable_accesslog="$ol_arg"
3805
3806 else
3807         ol_enable_accesslog=${ol_enable_overlays:-no}
3808 fi
3809
3810 # end --enable-accesslog
3811
3812 # OpenLDAP --enable-auditlog
3813
3814         # Check whether --enable-auditlog was given.
3815 if test "${enable_auditlog+set}" = set; then
3816   enableval=$enable_auditlog;
3817         ol_arg=invalid
3818         for ol_val in no yes mod ; do
3819                 if test "$enableval" = "$ol_val" ; then
3820                         ol_arg="$ol_val"
3821                 fi
3822         done
3823         if test "$ol_arg" = "invalid" ; then
3824                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3825 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3826    { (exit 1); exit 1; }; }
3827         fi
3828         ol_enable_auditlog="$ol_arg"
3829
3830 else
3831         ol_enable_auditlog=${ol_enable_overlays:-no}
3832 fi
3833
3834 # end --enable-auditlog
3835
3836 # OpenLDAP --enable-collect
3837
3838         # Check whether --enable-collect was given.
3839 if test "${enable_collect+set}" = set; then
3840   enableval=$enable_collect;
3841         ol_arg=invalid
3842         for ol_val in no yes mod ; do
3843                 if test "$enableval" = "$ol_val" ; then
3844                         ol_arg="$ol_val"
3845                 fi
3846         done
3847         if test "$ol_arg" = "invalid" ; then
3848                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3849 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3850    { (exit 1); exit 1; }; }
3851         fi
3852         ol_enable_collect="$ol_arg"
3853
3854 else
3855         ol_enable_collect=${ol_enable_overlays:-no}
3856 fi
3857
3858 # end --enable-collect
3859
3860 # OpenLDAP --enable-constraint
3861
3862         # Check whether --enable-constraint was given.
3863 if test "${enable_constraint+set}" = set; then
3864   enableval=$enable_constraint;
3865         ol_arg=invalid
3866         for ol_val in no yes mod ; do
3867                 if test "$enableval" = "$ol_val" ; then
3868                         ol_arg="$ol_val"
3869                 fi
3870         done
3871         if test "$ol_arg" = "invalid" ; then
3872                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3873 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3874    { (exit 1); exit 1; }; }
3875         fi
3876         ol_enable_constraint="$ol_arg"
3877
3878 else
3879         ol_enable_constraint=${ol_enable_overlays:-no}
3880 fi
3881
3882 # end --enable-constraint
3883
3884 # OpenLDAP --enable-dds
3885
3886         # Check whether --enable-dds was given.
3887 if test "${enable_dds+set}" = set; then
3888   enableval=$enable_dds;
3889         ol_arg=invalid
3890         for ol_val in no yes mod ; do
3891                 if test "$enableval" = "$ol_val" ; then
3892                         ol_arg="$ol_val"
3893                 fi
3894         done
3895         if test "$ol_arg" = "invalid" ; then
3896                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3897 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3898    { (exit 1); exit 1; }; }
3899         fi
3900         ol_enable_dds="$ol_arg"
3901
3902 else
3903         ol_enable_dds=${ol_enable_overlays:-no}
3904 fi
3905
3906 # end --enable-dds
3907
3908 # OpenLDAP --enable-deref
3909
3910         # Check whether --enable-deref was given.
3911 if test "${enable_deref+set}" = set; then
3912   enableval=$enable_deref;
3913         ol_arg=invalid
3914         for ol_val in no yes mod ; do
3915                 if test "$enableval" = "$ol_val" ; then
3916                         ol_arg="$ol_val"
3917                 fi
3918         done
3919         if test "$ol_arg" = "invalid" ; then
3920                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3921 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3922    { (exit 1); exit 1; }; }
3923         fi
3924         ol_enable_deref="$ol_arg"
3925
3926 else
3927         ol_enable_deref=${ol_enable_overlays:-no}
3928 fi
3929
3930 # end --enable-deref
3931
3932 # OpenLDAP --enable-dyngroup
3933
3934         # Check whether --enable-dyngroup was given.
3935 if test "${enable_dyngroup+set}" = set; then
3936   enableval=$enable_dyngroup;
3937         ol_arg=invalid
3938         for ol_val in no yes mod ; do
3939                 if test "$enableval" = "$ol_val" ; then
3940                         ol_arg="$ol_val"
3941                 fi
3942         done
3943         if test "$ol_arg" = "invalid" ; then
3944                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3945 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3946    { (exit 1); exit 1; }; }
3947         fi
3948         ol_enable_dyngroup="$ol_arg"
3949
3950 else
3951         ol_enable_dyngroup=${ol_enable_overlays:-no}
3952 fi
3953
3954 # end --enable-dyngroup
3955
3956 # OpenLDAP --enable-dynlist
3957
3958         # Check whether --enable-dynlist was given.
3959 if test "${enable_dynlist+set}" = set; then
3960   enableval=$enable_dynlist;
3961         ol_arg=invalid
3962         for ol_val in no yes mod ; do
3963                 if test "$enableval" = "$ol_val" ; then
3964                         ol_arg="$ol_val"
3965                 fi
3966         done
3967         if test "$ol_arg" = "invalid" ; then
3968                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3969 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3970    { (exit 1); exit 1; }; }
3971         fi
3972         ol_enable_dynlist="$ol_arg"
3973
3974 else
3975         ol_enable_dynlist=${ol_enable_overlays:-no}
3976 fi
3977
3978 # end --enable-dynlist
3979
3980 # OpenLDAP --enable-memberof
3981
3982         # Check whether --enable-memberof was given.
3983 if test "${enable_memberof+set}" = set; then
3984   enableval=$enable_memberof;
3985         ol_arg=invalid
3986         for ol_val in no yes mod ; do
3987                 if test "$enableval" = "$ol_val" ; then
3988                         ol_arg="$ol_val"
3989                 fi
3990         done
3991         if test "$ol_arg" = "invalid" ; then
3992                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3993 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3994    { (exit 1); exit 1; }; }
3995         fi
3996         ol_enable_memberof="$ol_arg"
3997
3998 else
3999         ol_enable_memberof=${ol_enable_overlays:-no}
4000 fi
4001
4002 # end --enable-memberof
4003
4004 # OpenLDAP --enable-ppolicy
4005
4006         # Check whether --enable-ppolicy was given.
4007 if test "${enable_ppolicy+set}" = set; then
4008   enableval=$enable_ppolicy;
4009         ol_arg=invalid
4010         for ol_val in no yes mod ; do
4011                 if test "$enableval" = "$ol_val" ; then
4012                         ol_arg="$ol_val"
4013                 fi
4014         done
4015         if test "$ol_arg" = "invalid" ; then
4016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4017 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4018    { (exit 1); exit 1; }; }
4019         fi
4020         ol_enable_ppolicy="$ol_arg"
4021
4022 else
4023         ol_enable_ppolicy=${ol_enable_overlays:-no}
4024 fi
4025
4026 # end --enable-ppolicy
4027
4028 # OpenLDAP --enable-proxycache
4029
4030         # Check whether --enable-proxycache was given.
4031 if test "${enable_proxycache+set}" = set; then
4032   enableval=$enable_proxycache;
4033         ol_arg=invalid
4034         for ol_val in no yes mod ; do
4035                 if test "$enableval" = "$ol_val" ; then
4036                         ol_arg="$ol_val"
4037                 fi
4038         done
4039         if test "$ol_arg" = "invalid" ; then
4040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4041 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4042    { (exit 1); exit 1; }; }
4043         fi
4044         ol_enable_proxycache="$ol_arg"
4045
4046 else
4047         ol_enable_proxycache=${ol_enable_overlays:-no}
4048 fi
4049
4050 # end --enable-proxycache
4051
4052 # OpenLDAP --enable-refint
4053
4054         # Check whether --enable-refint was given.
4055 if test "${enable_refint+set}" = set; then
4056   enableval=$enable_refint;
4057         ol_arg=invalid
4058         for ol_val in no yes mod ; do
4059                 if test "$enableval" = "$ol_val" ; then
4060                         ol_arg="$ol_val"
4061                 fi
4062         done
4063         if test "$ol_arg" = "invalid" ; then
4064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4065 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4066    { (exit 1); exit 1; }; }
4067         fi
4068         ol_enable_refint="$ol_arg"
4069
4070 else
4071         ol_enable_refint=${ol_enable_overlays:-no}
4072 fi
4073
4074 # end --enable-refint
4075
4076 # OpenLDAP --enable-retcode
4077
4078         # Check whether --enable-retcode was given.
4079 if test "${enable_retcode+set}" = set; then
4080   enableval=$enable_retcode;
4081         ol_arg=invalid
4082         for ol_val in no yes mod ; do
4083                 if test "$enableval" = "$ol_val" ; then
4084                         ol_arg="$ol_val"
4085                 fi
4086         done
4087         if test "$ol_arg" = "invalid" ; then
4088                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4089 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4090    { (exit 1); exit 1; }; }
4091         fi
4092         ol_enable_retcode="$ol_arg"
4093
4094 else
4095         ol_enable_retcode=${ol_enable_overlays:-no}
4096 fi
4097
4098 # end --enable-retcode
4099
4100 # OpenLDAP --enable-rwm
4101
4102         # Check whether --enable-rwm was given.
4103 if test "${enable_rwm+set}" = set; then
4104   enableval=$enable_rwm;
4105         ol_arg=invalid
4106         for ol_val in no yes mod ; do
4107                 if test "$enableval" = "$ol_val" ; then
4108                         ol_arg="$ol_val"
4109                 fi
4110         done
4111         if test "$ol_arg" = "invalid" ; then
4112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4113 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4114    { (exit 1); exit 1; }; }
4115         fi
4116         ol_enable_rwm="$ol_arg"
4117
4118 else
4119         ol_enable_rwm=${ol_enable_overlays:-no}
4120 fi
4121
4122 # end --enable-rwm
4123
4124 # OpenLDAP --enable-seqmod
4125
4126         # Check whether --enable-seqmod was given.
4127 if test "${enable_seqmod+set}" = set; then
4128   enableval=$enable_seqmod;
4129         ol_arg=invalid
4130         for ol_val in no yes mod ; do
4131                 if test "$enableval" = "$ol_val" ; then
4132                         ol_arg="$ol_val"
4133                 fi
4134         done
4135         if test "$ol_arg" = "invalid" ; then
4136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4137 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4138    { (exit 1); exit 1; }; }
4139         fi
4140         ol_enable_seqmod="$ol_arg"
4141
4142 else
4143         ol_enable_seqmod=${ol_enable_overlays:-yes}
4144 fi
4145
4146 # end --enable-seqmod
4147
4148 # OpenLDAP --enable-syncprov
4149
4150         # Check whether --enable-syncprov was given.
4151 if test "${enable_syncprov+set}" = set; then
4152   enableval=$enable_syncprov;
4153         ol_arg=invalid
4154         for ol_val in no yes mod ; do
4155                 if test "$enableval" = "$ol_val" ; then
4156                         ol_arg="$ol_val"
4157                 fi
4158         done
4159         if test "$ol_arg" = "invalid" ; then
4160                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4161 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4162    { (exit 1); exit 1; }; }
4163         fi
4164         ol_enable_syncprov="$ol_arg"
4165
4166 else
4167         ol_enable_syncprov=${ol_enable_overlays:-yes}
4168 fi
4169
4170 # end --enable-syncprov
4171
4172 # OpenLDAP --enable-translucent
4173
4174         # Check whether --enable-translucent was given.
4175 if test "${enable_translucent+set}" = set; then
4176   enableval=$enable_translucent;
4177         ol_arg=invalid
4178         for ol_val in no yes mod ; do
4179                 if test "$enableval" = "$ol_val" ; then
4180                         ol_arg="$ol_val"
4181                 fi
4182         done
4183         if test "$ol_arg" = "invalid" ; then
4184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4185 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4186    { (exit 1); exit 1; }; }
4187         fi
4188         ol_enable_translucent="$ol_arg"
4189
4190 else
4191         ol_enable_translucent=${ol_enable_overlays:-no}
4192 fi
4193
4194 # end --enable-translucent
4195
4196 # OpenLDAP --enable-unique
4197
4198         # Check whether --enable-unique was given.
4199 if test "${enable_unique+set}" = set; then
4200   enableval=$enable_unique;
4201         ol_arg=invalid
4202         for ol_val in no yes mod ; do
4203                 if test "$enableval" = "$ol_val" ; then
4204                         ol_arg="$ol_val"
4205                 fi
4206         done
4207         if test "$ol_arg" = "invalid" ; then
4208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4209 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4210    { (exit 1); exit 1; }; }
4211         fi
4212         ol_enable_unique="$ol_arg"
4213
4214 else
4215         ol_enable_unique=${ol_enable_overlays:-no}
4216 fi
4217
4218 # end --enable-unique
4219
4220 # OpenLDAP --enable-valsort
4221
4222         # Check whether --enable-valsort was given.
4223 if test "${enable_valsort+set}" = set; then
4224   enableval=$enable_valsort;
4225         ol_arg=invalid
4226         for ol_val in no yes mod ; do
4227                 if test "$enableval" = "$ol_val" ; then
4228                         ol_arg="$ol_val"
4229                 fi
4230         done
4231         if test "$ol_arg" = "invalid" ; then
4232                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4233 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4234    { (exit 1); exit 1; }; }
4235         fi
4236         ol_enable_valsort="$ol_arg"
4237
4238 else
4239         ol_enable_valsort=${ol_enable_overlays:-no}
4240 fi
4241
4242 # end --enable-valsort
4243
4244
4245 # Check whether --enable-xxliboptions was given.
4246 if test "${enable_xxliboptions+set}" = set; then
4247   enableval=$enable_xxliboptions;
4248 fi
4249
4250 # Check whether --enable-static was given.
4251 if test "${enable_static+set}" = set; then
4252   enableval=$enable_static; p=${PACKAGE-default}
4253     case $enableval in
4254     yes) enable_static=yes ;;
4255     no) enable_static=no ;;
4256     *)
4257      enable_static=no
4258       # Look at the argument we got.  We use all the common list separators.
4259       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4260       for pkg in $enableval; do
4261         IFS="$lt_save_ifs"
4262         if test "X$pkg" = "X$p"; then
4263           enable_static=yes
4264         fi
4265       done
4266       IFS="$lt_save_ifs"
4267       ;;
4268     esac
4269 else
4270   enable_static=yes
4271 fi
4272
4273
4274 # Check whether --enable-shared was given.
4275 if test "${enable_shared+set}" = set; then
4276   enableval=$enable_shared; p=${PACKAGE-default}
4277     case $enableval in
4278     yes) enable_shared=yes ;;
4279     no) enable_shared=no ;;
4280     *)
4281       enable_shared=no
4282       # Look at the argument we got.  We use all the common list separators.
4283       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4284       for pkg in $enableval; do
4285         IFS="$lt_save_ifs"
4286         if test "X$pkg" = "X$p"; then
4287           enable_shared=yes
4288         fi
4289       done
4290       IFS="$lt_save_ifs"
4291       ;;
4292     esac
4293 else
4294   enable_shared=yes
4295 fi
4296
4297
4298
4299
4300 # validate options
4301 if test $ol_enable_slapd = no ; then
4302                 if test $ol_enable_slapi = yes ; then
4303                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4304 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4305         fi
4306         case "$ol_enable_backends" in yes | mod)
4307                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4308 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4309         esac
4310         for i in $Backends; do
4311                 eval "ol_tmp=\$ol_enable_$i"
4312                 if test $ol_tmp != no ; then
4313                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4314 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4315                         eval "ol_enable_$i=no"
4316                 fi
4317         done
4318         if test $ol_enable_modules = yes ; then
4319                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4320 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4321         fi
4322         if test $ol_enable_wrappers = yes ; then
4323                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4324 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4325         fi
4326         if test $ol_enable_rlookups = yes ; then
4327                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4328 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4329         fi
4330         if test $ol_enable_dynacl = yes ; then
4331                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4333         fi
4334         if test $ol_enable_aci != no ; then
4335                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4337         fi
4338         if test $ol_enable_rewrite = yes ; then
4339                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4340 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4341         fi
4342                 case "$ol_enable_overlays" in yes | mod)
4343                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4344 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4345         esac
4346         for i in $Overlays; do
4347                 eval "ol_tmp=\$ol_enable_$i"
4348                 if test $ol_tmp != no ; then
4349                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4350 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4351                         eval "ol_enable_$i=no"
4352                 fi
4353         done
4354
4355         # force settings to no
4356         ol_enable_slapi=no
4357
4358         ol_enable_backends=
4359         ol_enable_overlays=
4360         ol_enable_modules=no
4361         ol_enable_rlookups=no
4362         ol_enable_dynacl=no
4363         ol_enable_aci=no
4364         ol_enable_wrappers=no
4365
4366         ol_enable_rewrite=no
4367
4368 elif test $ol_enable_modules != yes &&
4369         test $ol_enable_bdb = no &&
4370         test $ol_enable_dnssrv = no &&
4371         test $ol_enable_hdb = no &&
4372         test $ol_enable_ldap = no &&
4373         test $ol_enable_meta = no &&
4374         test $ol_enable_monitor = no &&
4375         test $ol_enable_ndb = no &&
4376         test $ol_enable_null = no &&
4377         test $ol_enable_passwd = no &&
4378         test $ol_enable_perl = no &&
4379         test $ol_enable_relay = no &&
4380         test $ol_enable_shell = no &&
4381         test $ol_enable_sock = no &&
4382         test $ol_enable_sql = no ; then
4383
4384         if test $ol_enable_slapd = yes ; then
4385                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4386 echo "$as_me: error: slapd requires a backend" >&2;}
4387    { (exit 1); exit 1; }; }
4388         else
4389                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4390 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4391                 ol_enable_slapd=no
4392         fi
4393 fi
4394
4395 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4396         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4397 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4398    { (exit 1); exit 1; }; }
4399 fi
4400
4401 if test $ol_enable_lmpasswd = yes ; then
4402         if test $ol_with_tls = no ; then
4403                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4404 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4405    { (exit 1); exit 1; }; }
4406         fi
4407 fi
4408
4409 if test $ol_enable_spasswd = yes ; then
4410         if test $ol_with_cyrus_sasl = no ; then
4411                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4412 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4413    { (exit 1); exit 1; }; }
4414         fi
4415         ol_with_cyrus_sasl=yes
4416 fi
4417
4418 { echo "$as_me:$LINENO: result: done" >&5
4419 echo "${ECHO_T}done" >&6; }
4420
4421 LDAP_LIBS=
4422 BDB_LIBS=
4423 SLAPD_NDB_LIBS=
4424 SLAPD_NDB_INCS=
4425 LTHREAD_LIBS=
4426 LUTIL_LIBS=
4427
4428 SLAPD_LIBS=
4429
4430 BUILD_SLAPD=no
4431
4432 BUILD_THREAD=no
4433
4434 BUILD_SLAPI=no
4435 SLAPD_SLAPI_DEPEND=
4436
4437 BUILD_BDB=no
4438 BUILD_DNSSRV=no
4439 BUILD_HDB=no
4440 BUILD_LDAP=no
4441 BUILD_META=no
4442 BUILD_MONITOR=no
4443 BUILD_NDB=no
4444 BUILD_NULL=no
4445 BUILD_PASSWD=no
4446 BUILD_PERL=no
4447 BUILD_RELAY=no
4448 BUILD_SHELL=no
4449 BUILD_SOCK=no
4450 BUILD_SQL=no
4451
4452 BUILD_ACCESSLOG=no
4453 BUILD_AUDITLOG=no
4454 BUILD_CONSTRAINT=no
4455 BUILD_DDS=no
4456 BUILD_DENYOP=no
4457 BUILD_DYNGROUP=no
4458 BUILD_DYNLIST=no
4459 BUILD_LASTMOD=no
4460 BUILD_MEMBEROF=no
4461 BUILD_PPOLICY=no
4462 BUILD_PROXYCACHE=no
4463 BUILD_REFINT=no
4464 BUILD_RETCODE=no
4465 BUILD_RWM=no
4466 BUILD_SEQMOD=no
4467 BUILD_SYNCPROV=no
4468 BUILD_TRANSLUCENT=no
4469 BUILD_UNIQUE=no
4470 BUILD_VALSORT=no
4471
4472 SLAPD_STATIC_OVERLAYS=
4473 SLAPD_DYNAMIC_OVERLAYS=
4474
4475 SLAPD_MODULES_LDFLAGS=
4476 SLAPD_MODULES_CPPFLAGS=
4477
4478 SLAPD_STATIC_BACKENDS=back-ldif
4479 SLAPD_DYNAMIC_BACKENDS=
4480
4481 SLAPD_PERL_LDFLAGS=
4482 MOD_PERL_LDFLAGS=
4483 PERL_CPPFLAGS=
4484
4485 SLAPD_SQL_LDFLAGS=
4486 SLAPD_SQL_LIBS=
4487 SLAPD_SQL_INCLUDES=
4488
4489 KRB4_LIBS=
4490 KRB5_LIBS=
4491 SASL_LIBS=
4492 TLS_LIBS=
4493 MODULES_LIBS=
4494 SLAPI_LIBS=
4495 LIBSLAPI=
4496 LIBSLAPITOOLS=
4497 AUTH_LIBS=
4498 ICU_LIBS=
4499
4500 SLAPD_SLP_LIBS=
4501 SLAPD_GMP_LIBS=
4502
4503
4504
4505 cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_MKVERSION 1
4507 _ACEOF
4508
4509
4510
4511
4512 ol_aix_threads=no
4513 case "$target" in
4514 *-*-aix*)       if test -z "$CC" ; then
4515                 case "$ol_with_threads" in
4516                 auto | yes |  posix) ol_aix_threads=yes ;;
4517                 esac
4518         fi
4519 ;;
4520 esac
4521
4522 if test $ol_aix_threads = yes ; then
4523         if test -z "${CC}" ; then
4524                 for ac_prog in cc_r xlc_r cc
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   if test -n "$CC"; then
4534   ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_exec_ext in '' $ac_executable_extensions; do
4542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543     ac_cv_prog_CC="$ac_prog"
4544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 CC=$ac_cv_prog_CC
4554 if test -n "$CC"; then
4555   { echo "$as_me:$LINENO: result: $CC" >&5
4556 echo "${ECHO_T}$CC" >&6; }
4557 else
4558   { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4560 fi
4561
4562
4563   test -n "$CC" && break
4564 done
4565
4566
4567                 if test "$CC" = cc ; then
4568                                                 if test $ol_with_threads != auto ; then
4569                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4570 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4571    { (exit 1); exit 1; }; }
4572                         else
4573                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4574 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4575                         fi
4576                         ol_with_threads=no
4577                 fi
4578         fi
4579
4580         case ${CC} in cc_r | xlc_r)
4581                 ol_with_threads=posix
4582                 ol_cv_pthread_create=yes
4583                 ;;
4584         esac
4585 fi
4586
4587 if test -z "${CC}"; then
4588         for ac_prog in cc gcc
4589 do
4590   # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   if test -n "$CC"; then
4598   ac_cv_prog_CC="$CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_prog_CC="$ac_prog"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619   { echo "$as_me:$LINENO: result: $CC" >&5
4620 echo "${ECHO_T}$CC" >&6; }
4621 else
4622   { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4624 fi
4625
4626
4627   test -n "$CC" && break
4628 done
4629 test -n "$CC" || CC="missing"
4630
4631
4632         if test "${CC}" = "missing" ; then
4633                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4634 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4635    { (exit 1); exit 1; }; }
4636         fi
4637 fi
4638
4639 if test -z "${AR}"; then
4640         for ac_prog in ar gar
4641 do
4642   # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_AR+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   if test -n "$AR"; then
4650   ac_cv_prog_AR="$AR" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_prog_AR="$ac_prog"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 AR=$ac_cv_prog_AR
4670 if test -n "$AR"; then
4671   { echo "$as_me:$LINENO: result: $AR" >&5
4672 echo "${ECHO_T}$AR" >&6; }
4673 else
4674   { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4676 fi
4677
4678
4679   test -n "$AR" && break
4680 done
4681 test -n "$AR" || AR="missing"
4682
4683
4684         if test "${AR}" = "missing" ; then
4685                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4686 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4687    { (exit 1); exit 1; }; }
4688         fi
4689 fi
4690
4691
4692
4693
4694
4695 # Check whether --enable-fast-install was given.
4696 if test "${enable_fast_install+set}" = set; then
4697   enableval=$enable_fast_install; p=${PACKAGE-default}
4698     case $enableval in
4699     yes) enable_fast_install=yes ;;
4700     no) enable_fast_install=no ;;
4701     *)
4702       enable_fast_install=no
4703       # Look at the argument we got.  We use all the common list separators.
4704       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4705       for pkg in $enableval; do
4706         IFS="$lt_save_ifs"
4707         if test "X$pkg" = "X$p"; then
4708           enable_fast_install=yes
4709         fi
4710       done
4711       IFS="$lt_save_ifs"
4712       ;;
4713     esac
4714 else
4715   enable_fast_install=yes
4716 fi
4717
4718
4719 DEPDIR="${am__leading_dot}deps"
4720
4721 ac_config_commands="$ac_config_commands depfiles"
4722
4723
4724 am_make=${MAKE-make}
4725 cat > confinc << 'END'
4726 am__doit:
4727         @echo done
4728 .PHONY: am__doit
4729 END
4730 # If we don't find an include directive, just comment out the code.
4731 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4732 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4733 am__include="#"
4734 am__quote=
4735 _am_result=none
4736 # First try GNU make style include.
4737 echo "include confinc" > confmf
4738 # We grep out `Entering directory' and `Leaving directory'
4739 # messages which can occur if `w' ends up in MAKEFLAGS.
4740 # In particular we don't look at `^make:' because GNU make might
4741 # be invoked under some other name (usually "gmake"), in which
4742 # case it prints its new name instead of `make'.
4743 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4744    am__include=include
4745    am__quote=
4746    _am_result=GNU
4747 fi
4748 # Now try BSD make style include.
4749 if test "$am__include" = "#"; then
4750    echo '.include "confinc"' > confmf
4751    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4752       am__include=.include
4753       am__quote="\""
4754       _am_result=BSD
4755    fi
4756 fi
4757
4758
4759 { echo "$as_me:$LINENO: result: $_am_result" >&5
4760 echo "${ECHO_T}$_am_result" >&6; }
4761 rm -f confinc confmf
4762
4763 # Check whether --enable-dependency-tracking was given.
4764 if test "${enable_dependency_tracking+set}" = set; then
4765   enableval=$enable_dependency_tracking;
4766 fi
4767
4768 if test "x$enable_dependency_tracking" != xno; then
4769   am_depcomp="$ac_aux_dir/depcomp"
4770   AMDEPBACKSLASH='\'
4771 fi
4772
4773
4774 if test "x$enable_dependency_tracking" != xno; then
4775   AMDEP_TRUE=
4776   AMDEP_FALSE='#'
4777 else
4778   AMDEP_TRUE='#'
4779   AMDEP_FALSE=
4780 fi
4781
4782
4783
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 if test -n "$ac_tool_prefix"; then
4790   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   if test -n "$CC"; then
4798   ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 CC=$ac_cv_prog_CC
4818 if test -n "$CC"; then
4819   { echo "$as_me:$LINENO: result: $CC" >&5
4820 echo "${ECHO_T}$CC" >&6; }
4821 else
4822   { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4824 fi
4825
4826
4827 fi
4828 if test -z "$ac_cv_prog_CC"; then
4829   ac_ct_CC=$CC
4830   # Extract the first word of "gcc", so it can be a program name with args.
4831 set dummy gcc; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   if test -n "$ac_ct_CC"; then
4838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_prog_ac_ct_CC="gcc"
4848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4860 echo "${ECHO_T}$ac_ct_CC" >&6; }
4861 else
4862   { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4864 fi
4865
4866   if test "x$ac_ct_CC" = x; then
4867     CC=""
4868   else
4869     case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet.  If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&5
4874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4875 whose name does not start with the host triplet.  If you think this
4876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4877 ac_tool_warned=yes ;;
4878 esac
4879     CC=$ac_ct_CC
4880   fi
4881 else
4882   CC="$ac_cv_prog_CC"
4883 fi
4884
4885 if test -z "$CC"; then
4886           if test -n "$ac_tool_prefix"; then
4887     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}cc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_CC+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$CC"; then
4895   ac_cv_prog_CC="$CC" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     ac_cv_prog_CC="${ac_tool_prefix}cc"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 CC=$ac_cv_prog_CC
4915 if test -n "$CC"; then
4916   { echo "$as_me:$LINENO: result: $CC" >&5
4917 echo "${ECHO_T}$CC" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924   fi
4925 fi
4926 if test -z "$CC"; then
4927   # Extract the first word of "cc", so it can be a program name with args.
4928 set dummy cc; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_prog_CC+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   if test -n "$CC"; then
4935   ac_cv_prog_CC="$CC" # Let the user override the test.
4936 else
4937   ac_prog_rejected=no
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943   for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4946        ac_prog_rejected=yes
4947        continue
4948      fi
4949     ac_cv_prog_CC="cc"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 if test $ac_prog_rejected = yes; then
4958   # We found a bogon in the path, so make sure we never use it.
4959   set dummy $ac_cv_prog_CC
4960   shift
4961   if test $# != 0; then
4962     # We chose a different compiler from the bogus one.
4963     # However, it has the same basename, so the bogon will be chosen
4964     # first if we set CC to just the basename; use the full file name.
4965     shift
4966     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4967   fi
4968 fi
4969 fi
4970 fi
4971 CC=$ac_cv_prog_CC
4972 if test -n "$CC"; then
4973   { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4975 else
4976   { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4978 fi
4979
4980
4981 fi
4982 if test -z "$CC"; then
4983   if test -n "$ac_tool_prefix"; then
4984   for ac_prog in cl.exe
4985   do
4986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_CC+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   if test -n "$CC"; then
4994   ac_cv_prog_CC="$CC" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001   for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 CC=$ac_cv_prog_CC
5014 if test -n "$CC"; then
5015   { echo "$as_me:$LINENO: result: $CC" >&5
5016 echo "${ECHO_T}$CC" >&6; }
5017 else
5018   { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5020 fi
5021
5022
5023     test -n "$CC" && break
5024   done
5025 fi
5026 if test -z "$CC"; then
5027   ac_ct_CC=$CC
5028   for ac_prog in cl.exe
5029 do
5030   # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   if test -n "$ac_ct_CC"; then
5038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_prog_ac_ct_CC="$ac_prog"
5048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5058 if test -n "$ac_ct_CC"; then
5059   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5060 echo "${ECHO_T}$ac_ct_CC" >&6; }
5061 else
5062   { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 fi
5065
5066
5067   test -n "$ac_ct_CC" && break
5068 done
5069
5070   if test "x$ac_ct_CC" = x; then
5071     CC=""
5072   else
5073     case $cross_compiling:$ac_tool_warned in
5074 yes:)
5075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5076 whose name does not start with the host triplet.  If you think this
5077 configuration is useful to you, please write to autoconf@gnu.org." >&5
5078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5079 whose name does not start with the host triplet.  If you think this
5080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5081 ac_tool_warned=yes ;;
5082 esac
5083     CC=$ac_ct_CC
5084   fi
5085 fi
5086
5087 fi
5088
5089
5090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091 See \`config.log' for more details." >&5
5092 echo "$as_me: error: no acceptable C compiler found in \$PATH
5093 See \`config.log' for more details." >&2;}
5094    { (exit 1); exit 1; }; }
5095
5096 # Provide some information about the compiler.
5097 echo "$as_me:$LINENO: checking for C compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (ac_try="$ac_compiler --version >&5"
5100 case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105   (eval "$ac_compiler --version >&5") 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }
5109 { (ac_try="$ac_compiler -v >&5"
5110 case "(($ac_try" in
5111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112   *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115   (eval "$ac_compiler -v >&5") 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }
5119 { (ac_try="$ac_compiler -V >&5"
5120 case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125   (eval "$ac_compiler -V >&5") 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }
5129
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136
5137 int
5138 main ()
5139 {
5140
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 ac_clean_files_save=$ac_clean_files
5146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5147 # Try to create an executable without -o first, disregard a.out.
5148 # It will help us diagnose broken compilers, and finding out an intuition
5149 # of exeext.
5150 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5153 #
5154 # List of possible output files, starting from the most likely.
5155 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5156 # only as a last resort.  b.out is created by i960 compilers.
5157 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5158 #
5159 # The IRIX 6 linker writes into existing files which may not be
5160 # executable, retaining their permissions.  Remove them first so a
5161 # subsequent execution test works.
5162 ac_rmfiles=
5163 for ac_file in $ac_files
5164 do
5165   case $ac_file in
5166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5167     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5168   esac
5169 done
5170 rm -f $ac_rmfiles
5171
5172 if { (ac_try="$ac_link_default"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_link_default") 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; then
5182   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5184 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5185 # so that the user can short-circuit this test for compilers unknown to
5186 # Autoconf.
5187 for ac_file in $ac_files ''
5188 do
5189   test -f "$ac_file" || continue
5190   case $ac_file in
5191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5192         ;;
5193     [ab].out )
5194         # We found the default executable, but exeext='' is most
5195         # certainly right.
5196         break;;
5197     *.* )
5198         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5199         then :; else
5200            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5201         fi
5202         # We set ac_cv_exeext here because the later test for it is not
5203         # safe: cross compilers may not add the suffix if given an `-o'
5204         # argument, so we may need to know it at that point already.
5205         # Even if this section looks crufty: it has the advantage of
5206         # actually working.
5207         break;;
5208     * )
5209         break;;
5210   esac
5211 done
5212 test "$ac_cv_exeext" = no && ac_cv_exeext=
5213
5214 else
5215   ac_file=''
5216 fi
5217
5218 { echo "$as_me:$LINENO: result: $ac_file" >&5
5219 echo "${ECHO_T}$ac_file" >&6; }
5220 if test -z "$ac_file"; then
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C compiler cannot create executables
5227 See \`config.log' for more details." >&2;}
5228    { (exit 77); exit 77; }; }
5229 fi
5230
5231 ac_exeext=$ac_cv_exeext
5232
5233 # Check that the compiler produces executables we can run.  If not, either
5234 # the compiler is broken, or we cross compile.
5235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5238 # If not cross compiling, check that we can run a simple program.
5239 if test "$cross_compiling" != yes; then
5240   if { ac_try='./$ac_file'
5241   { (case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246   (eval "$ac_try") 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; }; then
5250     cross_compiling=no
5251   else
5252     if test "$cross_compiling" = maybe; then
5253         cross_compiling=yes
5254     else
5255         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5256 If you meant to cross compile, use \`--host'.
5257 See \`config.log' for more details." >&5
5258 echo "$as_me: error: cannot run C compiled programs.
5259 If you meant to cross compile, use \`--host'.
5260 See \`config.log' for more details." >&2;}
5261    { (exit 1); exit 1; }; }
5262     fi
5263   fi
5264 fi
5265 { echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6; }
5267
5268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5269 ac_clean_files=$ac_clean_files_save
5270 # Check that the compiler produces executables we can run.  If not, either
5271 # the compiler is broken, or we cross compile.
5272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5275 echo "${ECHO_T}$cross_compiling" >&6; }
5276
5277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5279 if { (ac_try="$ac_link"
5280 case "(($ac_try" in
5281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282   *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285   (eval "$ac_link") 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; then
5289   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5290 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5291 # work properly (i.e., refer to `conftest.exe'), while it won't with
5292 # `rm'.
5293 for ac_file in conftest.exe conftest conftest.*; do
5294   test -f "$ac_file" || continue
5295   case $ac_file in
5296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5297     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5298           break;;
5299     * ) break;;
5300   esac
5301 done
5302 else
5303   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5304 See \`config.log' for more details." >&5
5305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5306 See \`config.log' for more details." >&2;}
5307    { (exit 1); exit 1; }; }
5308 fi
5309
5310 rm -f conftest$ac_cv_exeext
5311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5313
5314 rm -f conftest.$ac_ext
5315 EXEEXT=$ac_cv_exeext
5316 ac_exeext=$EXEEXT
5317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5319 if test "${ac_cv_objext+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 int
5330 main ()
5331 {
5332
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.o conftest.obj
5338 if { (ac_try="$ac_compile"
5339 case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344   (eval "$ac_compile") 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; then
5348   for ac_file in conftest.o conftest.obj conftest.*; do
5349   test -f "$ac_file" || continue;
5350   case $ac_file in
5351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5352     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5353        break;;
5354   esac
5355 done
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5361 See \`config.log' for more details." >&5
5362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5363 See \`config.log' for more details." >&2;}
5364    { (exit 1); exit 1; }; }
5365 fi
5366
5367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5368 fi
5369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5370 echo "${ECHO_T}$ac_cv_objext" >&6; }
5371 OBJEXT=$ac_cv_objext
5372 ac_objext=$OBJEXT
5373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384
5385 int
5386 main ()
5387 {
5388 #ifndef __GNUC__
5389        choke me
5390 #endif
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400   *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403   (eval "$ac_compile") 2>conftest.er1
5404   ac_status=$?
5405   grep -v '^ *+' conftest.er1 >conftest.err
5406   rm -f conftest.er1
5407   cat conftest.err >&5
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } && {
5410          test -z "$ac_c_werror_flag" ||
5411          test ! -s conftest.err
5412        } && test -s conftest.$ac_objext; then
5413   ac_compiler_gnu=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418         ac_compiler_gnu=no
5419 fi
5420
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5423
5424 fi
5425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5427 GCC=`test $ac_compiler_gnu = yes && echo yes`
5428 ac_test_CFLAGS=${CFLAGS+set}
5429 ac_save_CFLAGS=$CFLAGS
5430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5432 if test "${ac_cv_prog_cc_g+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   ac_save_c_werror_flag=$ac_c_werror_flag
5436    ac_c_werror_flag=yes
5437    ac_cv_prog_cc_g=no
5438    CFLAGS="-g"
5439    cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445
5446 int
5447 main ()
5448 {
5449
5450   ;
5451   return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458   *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461   (eval "$ac_compile") 2>conftest.er1
5462   ac_status=$?
5463   grep -v '^ *+' conftest.er1 >conftest.err
5464   rm -f conftest.er1
5465   cat conftest.err >&5
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } && {
5468          test -z "$ac_c_werror_flag" ||
5469          test ! -s conftest.err
5470        } && test -s conftest.$ac_objext; then
5471   ac_cv_prog_cc_g=yes
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476         CFLAGS=""
5477       cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_compile") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } && {
5506          test -z "$ac_c_werror_flag" ||
5507          test ! -s conftest.err
5508        } && test -s conftest.$ac_objext; then
5509   :
5510 else
5511   echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514         ac_c_werror_flag=$ac_save_c_werror_flag
5515          CFLAGS="-g"
5516          cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522
5523 int
5524 main ()
5525 {
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_compile") 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } && {
5545          test -z "$ac_c_werror_flag" ||
5546          test ! -s conftest.err
5547        } && test -s conftest.$ac_objext; then
5548   ac_cv_prog_cc_g=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553
5554 fi
5555
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 fi
5561
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563    ac_c_werror_flag=$ac_save_c_werror_flag
5564 fi
5565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5567 if test "$ac_test_CFLAGS" = set; then
5568   CFLAGS=$ac_save_CFLAGS
5569 elif test $ac_cv_prog_cc_g = yes; then
5570   if test "$GCC" = yes; then
5571     CFLAGS="-g -O2"
5572   else
5573     CFLAGS="-g"
5574   fi
5575 else
5576   if test "$GCC" = yes; then
5577     CFLAGS="-O2"
5578   else
5579     CFLAGS=
5580   fi
5581 fi
5582 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5583 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5584 if test "${ac_cv_prog_cc_c89+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_cv_prog_cc_c89=no
5588 ac_save_CC=$CC
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h.  */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h.  */
5595 #include <stdarg.h>
5596 #include <stdio.h>
5597 #include <sys/types.h>
5598 #include <sys/stat.h>
5599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5600 struct buf { int x; };
5601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5602 static char *e (p, i)
5603      char **p;
5604      int i;
5605 {
5606   return p[i];
5607 }
5608 static char *f (char * (*g) (char **, int), char **p, ...)
5609 {
5610   char *s;
5611   va_list v;
5612   va_start (v,p);
5613   s = g (p, va_arg (v,int));
5614   va_end (v);
5615   return s;
5616 }
5617
5618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5619    function prototypes and stuff, but not '\xHH' hex character constants.
5620    These don't provoke an error unfortunately, instead are silently treated
5621    as 'x'.  The following induces an error, until -std is added to get
5622    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5623    array size at least.  It's necessary to write '\x00'==0 to get something
5624    that's true only with -std.  */
5625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5626
5627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5628    inside strings and character constants.  */
5629 #define FOO(x) 'x'
5630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5631
5632 int test (int i, double x);
5633 struct s1 {int (*f) (int a);};
5634 struct s2 {int (*f) (double a);};
5635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5636 int argc;
5637 char **argv;
5638 int
5639 main ()
5640 {
5641 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5647         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5648 do
5649   CC="$ac_save_CC $ac_arg"
5650   rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654   *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657   (eval "$ac_compile") 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } && {
5664          test -z "$ac_c_werror_flag" ||
5665          test ! -s conftest.err
5666        } && test -s conftest.$ac_objext; then
5667   ac_cv_prog_cc_c89=$ac_arg
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672
5673 fi
5674
5675 rm -f core conftest.err conftest.$ac_objext
5676   test "x$ac_cv_prog_cc_c89" != "xno" && break
5677 done
5678 rm -f conftest.$ac_ext
5679 CC=$ac_save_CC
5680
5681 fi
5682 # AC_CACHE_VAL
5683 case "x$ac_cv_prog_cc_c89" in
5684   x)
5685     { echo "$as_me:$LINENO: result: none needed" >&5
5686 echo "${ECHO_T}none needed" >&6; } ;;
5687   xno)
5688     { echo "$as_me:$LINENO: result: unsupported" >&5
5689 echo "${ECHO_T}unsupported" >&6; } ;;
5690   *)
5691     CC="$CC $ac_cv_prog_cc_c89"
5692     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5693 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5694 esac
5695
5696
5697 ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703 depcc="$CC"   am_compiler_list=
5704
5705 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711   # We make a subdir and do the tests there.  Otherwise we can end up
5712   # making bogus files that we don't know about and never remove.  For
5713   # instance it was reported that on HP-UX the gcc test will end up
5714   # making a dummy file named `D' -- because `-MD' means `put the output
5715   # in D'.
5716   mkdir conftest.dir
5717   # Copy depcomp to subdir because otherwise we won't find it if we're
5718   # using a relative directory.
5719   cp "$am_depcomp" conftest.dir
5720   cd conftest.dir
5721   # We will build objects and dependencies in a subdirectory because
5722   # it helps to detect inapplicable dependency modes.  For instance
5723   # both Tru64's cc and ICC support -MD to output dependencies as a
5724   # side effect of compilation, but ICC will put the dependencies in
5725   # the current directory while Tru64 will put them in the object
5726   # directory.
5727   mkdir sub
5728
5729   am_cv_CC_dependencies_compiler_type=none
5730   if test "$am_compiler_list" = ""; then
5731      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5732   fi
5733   for depmode in $am_compiler_list; do
5734     # Setup a source with many dependencies, because some compilers
5735     # like to wrap large dependency lists on column 80 (with \), and
5736     # we should not choose a depcomp mode which is confused by this.
5737     #
5738     # We need to recreate these files for each test, as the compiler may
5739     # overwrite some of them when testing with obscure command lines.
5740     # This happens at least with the AIX C compiler.
5741     : > sub/conftest.c
5742     for i in 1 2 3 4 5 6; do
5743       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745       # Solaris 8's {/usr,}/bin/sh.
5746       touch sub/conftst$i.h
5747     done
5748     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5749
5750     case $depmode in
5751     nosideeffect)
5752       # after this tag, mechanisms are not by side-effect, so they'll
5753       # only be used when explicitly requested
5754       if test "x$enable_dependency_tracking" = xyes; then
5755         continue
5756       else
5757         break
5758       fi
5759       ;;
5760     none) break ;;
5761     esac
5762     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763     # mode.  It turns out that the SunPro C++ compiler does not properly
5764     # handle `-M -o', and we need to detect this.
5765     if depmode=$depmode \
5766        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769          >/dev/null 2>conftest.err &&
5770        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5771        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5772        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5773       # icc doesn't choke on unknown options, it will just issue warnings
5774       # or remarks (even with -Werror).  So we grep stderr for any message
5775       # that says an option was ignored or not supported.
5776       # When given -MP, icc 7.0 and 7.1 complain thusly:
5777       #   icc: Command line warning: ignoring option '-M'; no argument required
5778       # The diagnosis changed in icc 8.0:
5779       #   icc: Command line remark: option '-MP' not supported
5780       if (grep 'ignoring option' conftest.err ||
5781           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5782         am_cv_CC_dependencies_compiler_type=$depmode
5783         break
5784       fi
5785     fi
5786   done
5787
5788   cd ..
5789   rm -rf conftest.dir
5790 else
5791   am_cv_CC_dependencies_compiler_type=none
5792 fi
5793
5794 fi
5795 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5796 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5797 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5798
5799
5800
5801 if
5802   test "x$enable_dependency_tracking" != xno \
5803   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5804   am__fastdepCC_TRUE=
5805   am__fastdepCC_FALSE='#'
5806 else
5807   am__fastdepCC_TRUE='#'
5808   am__fastdepCC_FALSE=
5809 fi
5810
5811
5812 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5813 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5814 if test "${lt_cv_path_SED+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   # Loop through the user's path and test for sed and gsed.
5818 # Then use that list of sed's as ones to test for truncation.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for lt_ac_prog in sed gsed; do
5825     for ac_exec_ext in '' $ac_executable_extensions; do
5826       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5827         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5828       fi
5829     done
5830   done
5831 done
5832 lt_ac_max=0
5833 lt_ac_count=0
5834 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5835 # along with /bin/sed that truncates output.
5836 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5837   test ! -f $lt_ac_sed && continue
5838   cat /dev/null > conftest.in
5839   lt_ac_count=0
5840   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5841   # Check for GNU sed and select it if it is found.
5842   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5843     lt_cv_path_SED=$lt_ac_sed
5844     break
5845   fi
5846   while true; do
5847     cat conftest.in conftest.in >conftest.tmp
5848     mv conftest.tmp conftest.in
5849     cp conftest.in conftest.nl
5850     echo >>conftest.nl
5851     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5852     cmp -s conftest.out conftest.nl || break
5853     # 10000 chars as input seems more than enough
5854     test $lt_ac_count -gt 10 && break
5855     lt_ac_count=`expr $lt_ac_count + 1`
5856     if test $lt_ac_count -gt $lt_ac_max; then
5857       lt_ac_max=$lt_ac_count
5858       lt_cv_path_SED=$lt_ac_sed
5859     fi
5860   done
5861 done
5862
5863 fi
5864
5865 SED=$lt_cv_path_SED
5866 { echo "$as_me:$LINENO: result: $SED" >&5
5867 echo "${ECHO_T}$SED" >&6; }
5868
5869 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5870 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   # Extract the first word of "grep ggrep" to use in msg output
5875 if test -z "$GREP"; then
5876 set dummy grep ggrep; ac_prog_name=$2
5877 if test "${ac_cv_path_GREP+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   ac_path_GREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_prog in grep ggrep; do
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5890     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5891     # Check for GNU ac_path_GREP and select it if it is found.
5892   # Check for GNU $ac_path_GREP
5893 case `"$ac_path_GREP" --version 2>&1` in
5894 *GNU*)
5895   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5896 *)
5897   ac_count=0
5898   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5899   while :
5900   do
5901     cat "conftest.in" "conftest.in" >"conftest.tmp"
5902     mv "conftest.tmp" "conftest.in"
5903     cp "conftest.in" "conftest.nl"
5904     echo 'GREP' >> "conftest.nl"
5905     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907     ac_count=`expr $ac_count + 1`
5908     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5909       # Best one so far, save it but keep looking for a better one
5910       ac_cv_path_GREP="$ac_path_GREP"
5911       ac_path_GREP_max=$ac_count
5912     fi
5913     # 10*(2^10) chars as input seems more than enough
5914     test $ac_count -gt 10 && break
5915   done
5916   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 esac
5918
5919
5920     $ac_path_GREP_found && break 3
5921   done
5922 done
5923
5924 done
5925 IFS=$as_save_IFS
5926
5927
5928 fi
5929
5930 GREP="$ac_cv_path_GREP"
5931 if test -z "$GREP"; then
5932   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5934    { (exit 1); exit 1; }; }
5935 fi
5936
5937 else
5938   ac_cv_path_GREP=$GREP
5939 fi
5940
5941
5942 fi
5943 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5944 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5945  GREP="$ac_cv_path_GREP"
5946
5947
5948 { echo "$as_me:$LINENO: checking for egrep" >&5
5949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_EGREP+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954    then ac_cv_path_EGREP="$GREP -E"
5955    else
5956      # Extract the first word of "egrep" to use in msg output
5957 if test -z "$EGREP"; then
5958 set dummy egrep; ac_prog_name=$2
5959 if test "${ac_cv_path_EGREP+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_prog in egrep; do
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5973     # Check for GNU ac_path_EGREP and select it if it is found.
5974   # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5976 *GNU*)
5977   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5978 *)
5979   ac_count=0
5980   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5981   while :
5982   do
5983     cat "conftest.in" "conftest.in" >"conftest.tmp"
5984     mv "conftest.tmp" "conftest.in"
5985     cp "conftest.in" "conftest.nl"
5986     echo 'EGREP' >> "conftest.nl"
5987     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989     ac_count=`expr $ac_count + 1`
5990     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991       # Best one so far, save it but keep looking for a better one
5992       ac_cv_path_EGREP="$ac_path_EGREP"
5993       ac_path_EGREP_max=$ac_count
5994     fi
5995     # 10*(2^10) chars as input seems more than enough
5996     test $ac_count -gt 10 && break
5997   done
5998   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5999 esac
6000
6001
6002     $ac_path_EGREP_found && break 3
6003   done
6004 done
6005
6006 done
6007 IFS=$as_save_IFS
6008
6009
6010 fi
6011
6012 EGREP="$ac_cv_path_EGREP"
6013 if test -z "$EGREP"; then
6014   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6015 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6016    { (exit 1); exit 1; }; }
6017 fi
6018
6019 else
6020   ac_cv_path_EGREP=$EGREP
6021 fi
6022
6023
6024    fi
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6027 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6028  EGREP="$ac_cv_path_EGREP"
6029
6030
6031
6032 # Check whether --with-gnu-ld was given.
6033 if test "${with_gnu_ld+set}" = set; then
6034   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6035 else
6036   with_gnu_ld=no
6037 fi
6038
6039 ac_prog=ld
6040 if test "$GCC" = yes; then
6041   # Check if gcc -print-prog-name=ld gives a path.
6042   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6043 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6044   case $host in
6045   *-*-mingw*)
6046     # gcc leaves a trailing carriage return which upsets mingw
6047     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6048   *)
6049     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6050   esac
6051   case $ac_prog in
6052     # Accept absolute paths.
6053     [\\/]* | ?:[\\/]*)
6054       re_direlt='/[^/][^/]*/\.\./'
6055       # Canonicalize the pathname of ld
6056       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6057       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6058         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6059       done
6060       test -z "$LD" && LD="$ac_prog"
6061       ;;
6062   "")
6063     # If it fails, then pretend we aren't using GCC.
6064     ac_prog=ld
6065     ;;
6066   *)
6067     # If it is relative, then search for the first ld in PATH.
6068     with_gnu_ld=unknown
6069     ;;
6070   esac
6071 elif test "$with_gnu_ld" = yes; then
6072   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6074 else
6075   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6077 fi
6078 if test "${lt_cv_path_LD+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   if test -z "$LD"; then
6082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083   for ac_dir in $PATH; do
6084     IFS="$lt_save_ifs"
6085     test -z "$ac_dir" && ac_dir=.
6086     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6087       lt_cv_path_LD="$ac_dir/$ac_prog"
6088       # Check to see if the program is GNU ld.  I'd rather use --version,
6089       # but apparently some variants of GNU ld only accept -v.
6090       # Break only if it was the GNU/non-GNU ld that we prefer.
6091       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6092       *GNU* | *'with BFD'*)
6093         test "$with_gnu_ld" != no && break
6094         ;;
6095       *)
6096         test "$with_gnu_ld" != yes && break
6097         ;;
6098       esac
6099     fi
6100   done
6101   IFS="$lt_save_ifs"
6102 else
6103   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6104 fi
6105 fi
6106
6107 LD="$lt_cv_path_LD"
6108 if test -n "$LD"; then
6109   { echo "$as_me:$LINENO: result: $LD" >&5
6110 echo "${ECHO_T}$LD" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6117    { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6120 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6124 case `$LD -v 2>&1 </dev/null` in
6125 *GNU* | *'with BFD'*)
6126   lt_cv_prog_gnu_ld=yes
6127   ;;
6128 *)
6129   lt_cv_prog_gnu_ld=no
6130   ;;
6131 esac
6132 fi
6133 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6134 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6135 with_gnu_ld=$lt_cv_prog_gnu_ld
6136
6137
6138 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6139 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6140 if test "${lt_cv_ld_reload_flag+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   lt_cv_ld_reload_flag='-r'
6144 fi
6145 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6146 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6147 reload_flag=$lt_cv_ld_reload_flag
6148 case $reload_flag in
6149 "" | " "*) ;;
6150 *) reload_flag=" $reload_flag" ;;
6151 esac
6152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6153 case $host_os in
6154   darwin*)
6155     if test "$GCC" = yes; then
6156       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6157     else
6158       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6159     fi
6160     ;;
6161 esac
6162
6163 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6164 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6165 if test "${lt_cv_path_NM+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   if test -n "$NM"; then
6169   # Let the user override the test.
6170   lt_cv_path_NM="$NM"
6171 else
6172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6173   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6174     IFS="$lt_save_ifs"
6175     test -z "$ac_dir" && ac_dir=.
6176     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6177     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6178       # Check to see if the nm accepts a BSD-compat flag.
6179       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6180       #   nm: unknown option "B" ignored
6181       # Tru64's nm complains that /dev/null is an invalid object file
6182       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6183       */dev/null* | *'Invalid file or object type'*)
6184         lt_cv_path_NM="$tmp_nm -B"
6185         break
6186         ;;
6187       *)
6188         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6189         */dev/null*)
6190           lt_cv_path_NM="$tmp_nm -p"
6191           break
6192           ;;
6193         *)
6194           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6195           continue # so that we can try to find one that supports BSD flags
6196           ;;
6197         esac
6198       esac
6199     fi
6200   done
6201   IFS="$lt_save_ifs"
6202   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6203 fi
6204 fi
6205 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6206 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6207 NM="$lt_cv_path_NM"
6208
6209 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6211 LN_S=$as_ln_s
6212 if test "$LN_S" = "ln -s"; then
6213   { echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6; }
6215 else
6216   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6217 echo "${ECHO_T}no, using $LN_S" >&6; }
6218 fi
6219
6220 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6221 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6222 if test "${lt_cv_deplibs_check_method+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   lt_cv_file_magic_cmd='$MAGIC_CMD'
6226 lt_cv_file_magic_test_file=
6227 lt_cv_deplibs_check_method='unknown'
6228 # Need to set the preceding variable on all platforms that support
6229 # interlibrary dependencies.
6230 # 'none' -- dependencies not supported.
6231 # `unknown' -- same as none, but documents that we really don't know.
6232 # 'pass_all' -- all dependencies passed with no checks.
6233 # 'test_compile' -- check by making test program.
6234 # 'file_magic [[regex]]' -- check by looking for files in library path
6235 # which responds to the $file_magic_cmd with a given extended regex.
6236 # If you have `file' or equivalent on your system and you're not sure
6237 # whether `pass_all' will *always* work, you probably want this one.
6238
6239 case $host_os in
6240 aix4* | aix5*)
6241   lt_cv_deplibs_check_method=pass_all
6242   ;;
6243
6244 beos*)
6245   lt_cv_deplibs_check_method=pass_all
6246   ;;
6247
6248 bsdi[45]*)
6249   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6250   lt_cv_file_magic_cmd='/usr/bin/file -L'
6251   lt_cv_file_magic_test_file=/shlib/libc.so
6252   ;;
6253
6254 cygwin*)
6255   # func_win32_libid is a shell function defined in ltmain.sh
6256   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257   lt_cv_file_magic_cmd='func_win32_libid'
6258   ;;
6259
6260 mingw* | pw32*)
6261   # Base MSYS/MinGW do not provide the 'file' command needed by
6262   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6263   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6264   lt_cv_file_magic_cmd='$OBJDUMP -f'
6265   ;;
6266
6267 darwin* | rhapsody*)
6268   lt_cv_deplibs_check_method=pass_all
6269   ;;
6270
6271 freebsd* | kfreebsd*-gnu | dragonfly*)
6272   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6273     case $host_cpu in
6274     i*86 )
6275       # Not sure whether the presence of OpenBSD here was a mistake.
6276       # Let's accept both of them until this is cleared up.
6277       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6278       lt_cv_file_magic_cmd=/usr/bin/file
6279       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6280       ;;
6281     esac
6282   else
6283     lt_cv_deplibs_check_method=pass_all
6284   fi
6285   ;;
6286
6287 gnu*)
6288   lt_cv_deplibs_check_method=pass_all
6289   ;;
6290
6291 hpux10.20* | hpux11*)
6292   lt_cv_file_magic_cmd=/usr/bin/file
6293   case $host_cpu in
6294   ia64*)
6295     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6296     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6297     ;;
6298   hppa*64*)
6299     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]'
6300     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6301     ;;
6302   *)
6303     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6304     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6305     ;;
6306   esac
6307   ;;
6308
6309 irix5* | irix6* | nonstopux*)
6310   case $LD in
6311   *-32|*"-32 ") libmagic=32-bit;;
6312   *-n32|*"-n32 ") libmagic=N32;;
6313   *-64|*"-64 ") libmagic=64-bit;;
6314   *) libmagic=never-match;;
6315   esac
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 # This must be Linux ELF.
6320 linux*)
6321   lt_cv_deplibs_check_method=pass_all
6322   ;;
6323
6324 netbsd*)
6325   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6326     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6327   else
6328     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6329   fi
6330   ;;
6331
6332 newos6*)
6333   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6334   lt_cv_file_magic_cmd=/usr/bin/file
6335   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6336   ;;
6337
6338 nto-qnx*)
6339   lt_cv_deplibs_check_method=unknown
6340   ;;
6341
6342 openbsd*)
6343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6344     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6345   else
6346     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6347   fi
6348   ;;
6349
6350 osf3* | osf4* | osf5*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 sco3.2v5*)
6355   lt_cv_deplibs_check_method=pass_all
6356   ;;
6357
6358 solaris*)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6363   case $host_vendor in
6364   motorola)
6365     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]'
6366     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6367     ;;
6368   ncr)
6369     lt_cv_deplibs_check_method=pass_all
6370     ;;
6371   sequent)
6372     lt_cv_file_magic_cmd='/bin/file'
6373     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6374     ;;
6375   sni)
6376     lt_cv_file_magic_cmd='/bin/file'
6377     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6378     lt_cv_file_magic_test_file=/lib/libc.so
6379     ;;
6380   siemens)
6381     lt_cv_deplibs_check_method=pass_all
6382     ;;
6383   esac
6384   ;;
6385
6386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389 esac
6390
6391 fi
6392 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6393 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6394 file_magic_cmd=$lt_cv_file_magic_cmd
6395 deplibs_check_method=$lt_cv_deplibs_check_method
6396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6397
6398
6399
6400
6401 # If no C compiler was specified, use CC.
6402 LTCC=${LTCC-"$CC"}
6403
6404 # Allow CC to be a program name with arguments.
6405 compiler=$CC
6406
6407
6408 # Check whether --enable-libtool-lock was given.
6409 if test "${enable_libtool_lock+set}" = set; then
6410   enableval=$enable_libtool_lock;
6411 fi
6412
6413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6414
6415 # Some flags need to be propagated to the compiler or linker for good
6416 # libtool support.
6417 case $host in
6418 ia64-*-hpux*)
6419   # Find out which ABI we are using.
6420   echo 'int i;' > conftest.$ac_ext
6421   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; then
6426     case `/usr/bin/file conftest.$ac_objext` in
6427     *ELF-32*)
6428       HPUX_IA64_MODE="32"
6429       ;;
6430     *ELF-64*)
6431       HPUX_IA64_MODE="64"
6432       ;;
6433     esac
6434   fi
6435   rm -rf conftest*
6436   ;;
6437 *-*-irix6*)
6438   # Find out which ABI we are using.
6439   echo '#line 6439 "configure"' > conftest.$ac_ext
6440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441   (eval $ac_compile) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; then
6445    if test "$lt_cv_prog_gnu_ld" = yes; then
6446     case `/usr/bin/file conftest.$ac_objext` in
6447     *32-bit*)
6448       LD="${LD-ld} -melf32bsmip"
6449       ;;
6450     *N32*)
6451       LD="${LD-ld} -melf32bmipn32"
6452       ;;
6453     *64-bit*)
6454       LD="${LD-ld} -melf64bmip"
6455       ;;
6456     esac
6457    else
6458     case `/usr/bin/file conftest.$ac_objext` in
6459     *32-bit*)
6460       LD="${LD-ld} -32"
6461       ;;
6462     *N32*)
6463       LD="${LD-ld} -n32"
6464       ;;
6465     *64-bit*)
6466       LD="${LD-ld} -64"
6467       ;;
6468     esac
6469    fi
6470   fi
6471   rm -rf conftest*
6472   ;;
6473
6474 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6475   # Find out which ABI we are using.
6476   echo 'int i;' > conftest.$ac_ext
6477   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478   (eval $ac_compile) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; then
6482     case `/usr/bin/file conftest.o` in
6483     *32-bit*)
6484       case $host in
6485         x86_64-*linux*)
6486           LD="${LD-ld} -m elf_i386"
6487           ;;
6488         ppc64-*linux*|powerpc64-*linux*)
6489           LD="${LD-ld} -m elf32ppclinux"
6490           ;;
6491         s390x-*linux*)
6492           LD="${LD-ld} -m elf_s390"
6493           ;;
6494         sparc64-*linux*)
6495           LD="${LD-ld} -m elf32_sparc"
6496           ;;
6497       esac
6498       ;;
6499     *64-bit*)
6500       case $host in
6501         x86_64-*linux*)
6502           LD="${LD-ld} -m elf_x86_64"
6503           ;;
6504         ppc*-*linux*|powerpc*-*linux*)
6505           LD="${LD-ld} -m elf64ppc"
6506           ;;
6507         s390*-*linux*)
6508           LD="${LD-ld} -m elf64_s390"
6509           ;;
6510         sparc*-*linux*)
6511           LD="${LD-ld} -m elf64_sparc"
6512           ;;
6513       esac
6514       ;;
6515     esac
6516   fi
6517   rm -rf conftest*
6518   ;;
6519
6520 *-*-sco3.2v5*)
6521   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6522   SAVE_CFLAGS="$CFLAGS"
6523   CFLAGS="$CFLAGS -belf"
6524   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6525 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6526 if test "${lt_cv_cc_needs_belf+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   ac_ext=c
6530 ac_cpp='$CPP $CPPFLAGS'
6531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534
6535      cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541
6542 int
6543 main ()
6544 {
6545
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6552 case "(($ac_try" in
6553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554   *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557   (eval "$ac_link") 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } && {
6564          test -z "$ac_c_werror_flag" ||
6565          test ! -s conftest.err
6566        } && test -s conftest$ac_exeext &&
6567        $as_test_x conftest$ac_exeext; then
6568   lt_cv_cc_needs_belf=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         lt_cv_cc_needs_belf=no
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6577       conftest$ac_exeext conftest.$ac_ext
6578      ac_ext=c
6579 ac_cpp='$CPP $CPPFLAGS'
6580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6583
6584 fi
6585 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6586 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6587   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6588     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589     CFLAGS="$SAVE_CFLAGS"
6590   fi
6591   ;;
6592 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6593   if test -n "$ac_tool_prefix"; then
6594   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   if test -n "$DLLTOOL"; then
6602   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 DLLTOOL=$ac_cv_prog_DLLTOOL
6622 if test -n "$DLLTOOL"; then
6623   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6624 echo "${ECHO_T}$DLLTOOL" >&6; }
6625 else
6626   { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_DLLTOOL"; then
6633   ac_ct_DLLTOOL=$DLLTOOL
6634   # Extract the first word of "dlltool", so it can be a program name with args.
6635 set dummy dlltool; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   if test -n "$ac_ct_DLLTOOL"; then
6642   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649   for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6662 if test -n "$ac_ct_DLLTOOL"; then
6663   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6664 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6665 else
6666   { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6668 fi
6669
6670   if test "x$ac_ct_DLLTOOL" = x; then
6671     DLLTOOL="false"
6672   else
6673     case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet.  If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&5
6678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet.  If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683     DLLTOOL=$ac_ct_DLLTOOL
6684   fi
6685 else
6686   DLLTOOL="$ac_cv_prog_DLLTOOL"
6687 fi
6688
6689   if test -n "$ac_tool_prefix"; then
6690   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}as; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_AS+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   if test -n "$AS"; then
6698   ac_cv_prog_AS="$AS" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705   for ac_exec_ext in '' $ac_executable_extensions; do
6706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707     ac_cv_prog_AS="${ac_tool_prefix}as"
6708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 AS=$ac_cv_prog_AS
6718 if test -n "$AS"; then
6719   { echo "$as_me:$LINENO: result: $AS" >&5
6720 echo "${ECHO_T}$AS" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_AS"; then
6729   ac_ct_AS=$AS
6730   # Extract the first word of "as", so it can be a program name with args.
6731 set dummy as; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   if test -n "$ac_ct_AS"; then
6738   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745   for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_prog_ac_ct_AS="as"
6748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6758 if test -n "$ac_ct_AS"; then
6759   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6760 echo "${ECHO_T}$ac_ct_AS" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766   if test "x$ac_ct_AS" = x; then
6767     AS="false"
6768   else
6769     case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772 whose name does not start with the host triplet.  If you think this
6773 configuration is useful to you, please write to autoconf@gnu.org." >&5
6774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet.  If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779     AS=$ac_ct_AS
6780   fi
6781 else
6782   AS="$ac_cv_prog_AS"
6783 fi
6784
6785   if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$OBJDUMP"; then
6794   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 OBJDUMP=$ac_cv_prog_OBJDUMP
6814 if test -n "$OBJDUMP"; then
6815   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6816 echo "${ECHO_T}$OBJDUMP" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_OBJDUMP"; then
6825   ac_ct_OBJDUMP=$OBJDUMP
6826   # Extract the first word of "objdump", so it can be a program name with args.
6827 set dummy objdump; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test -n "$ac_ct_OBJDUMP"; then
6834   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6854 if test -n "$ac_ct_OBJDUMP"; then
6855   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6856 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_OBJDUMP" = x; then
6863     OBJDUMP="false"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     OBJDUMP=$ac_ct_OBJDUMP
6876   fi
6877 else
6878   OBJDUMP="$ac_cv_prog_OBJDUMP"
6879 fi
6880
6881   ;;
6882
6883 esac
6884
6885 need_locks="$enable_libtool_lock"
6886
6887
6888 ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6895 # On Suns, sometimes $CPP names a directory.
6896 if test -n "$CPP" && test -d "$CPP"; then
6897   CPP=
6898 fi
6899 if test -z "$CPP"; then
6900   if test "${ac_cv_prog_CPP+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903       # Double quotes because CPP needs to be expanded
6904     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6905     do
6906       ac_preproc_ok=false
6907 for ac_c_preproc_warn_flag in '' yes
6908 do
6909   # Use a header file that comes with gcc, so configuring glibc
6910   # with a fresh cross-compiler works.
6911   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912   # <limits.h> exists even on freestanding compilers.
6913   # On the NeXT, cc -E runs the code through the compiler's parser,
6914   # not just through cpp. "Syntax error" is here to catch this case.
6915   cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 #ifdef __STDC__
6922 # include <limits.h>
6923 #else
6924 # include <assert.h>
6925 #endif
6926                      Syntax error
6927 _ACEOF
6928 if { (ac_try="$ac_cpp conftest.$ac_ext"
6929 case "(($ac_try" in
6930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931   *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } >/dev/null && {
6941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942          test ! -s conftest.err
6943        }; then
6944   :
6945 else
6946   echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949   # Broken: fails on valid input.
6950 continue
6951 fi
6952
6953 rm -f conftest.err conftest.$ac_ext
6954
6955   # OK, works on sane cases.  Now check whether nonexistent headers
6956   # can be detected and how.
6957   cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963 #include <ac_nonexistent.h>
6964 _ACEOF
6965 if { (ac_try="$ac_cpp conftest.$ac_ext"
6966 case "(($ac_try" in
6967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968   *) ac_try_echo=$ac_try;;
6969 esac
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } >/dev/null && {
6978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6979          test ! -s conftest.err
6980        }; then
6981   # Broken: success on invalid input.
6982 continue
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987   # Passes both tests.
6988 ac_preproc_ok=:
6989 break
6990 fi
6991
6992 rm -f conftest.err conftest.$ac_ext
6993
6994 done
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
6998   break
6999 fi
7000
7001     done
7002     ac_cv_prog_CPP=$CPP
7003
7004 fi
7005   CPP=$ac_cv_prog_CPP
7006 else
7007   ac_cv_prog_CPP=$CPP
7008 fi
7009 { echo "$as_me:$LINENO: result: $CPP" >&5
7010 echo "${ECHO_T}$CPP" >&6; }
7011 ac_preproc_ok=false
7012 for ac_c_preproc_warn_flag in '' yes
7013 do
7014   # Use a header file that comes with gcc, so configuring glibc
7015   # with a fresh cross-compiler works.
7016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017   # <limits.h> exists even on freestanding compilers.
7018   # On the NeXT, cc -E runs the code through the compiler's parser,
7019   # not just through cpp. "Syntax error" is here to catch this case.
7020   cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 #ifdef __STDC__
7027 # include <limits.h>
7028 #else
7029 # include <assert.h>
7030 #endif
7031                      Syntax error
7032 _ACEOF
7033 if { (ac_try="$ac_cpp conftest.$ac_ext"
7034 case "(($ac_try" in
7035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036   *) ac_try_echo=$ac_try;;
7037 esac
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040   ac_status=$?
7041   grep -v '^ *+' conftest.er1 >conftest.err
7042   rm -f conftest.er1
7043   cat conftest.err >&5
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } >/dev/null && {
7046          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047          test ! -s conftest.err
7048        }; then
7049   :
7050 else
7051   echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054   # Broken: fails on valid input.
7055 continue
7056 fi
7057
7058 rm -f conftest.err conftest.$ac_ext
7059
7060   # OK, works on sane cases.  Now check whether nonexistent headers
7061   # can be detected and how.
7062   cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 #include <ac_nonexistent.h>
7069 _ACEOF
7070 if { (ac_try="$ac_cpp conftest.$ac_ext"
7071 case "(($ac_try" in
7072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073   *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7077   ac_status=$?
7078   grep -v '^ *+' conftest.er1 >conftest.err
7079   rm -f conftest.er1
7080   cat conftest.err >&5
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); } >/dev/null && {
7083          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7084          test ! -s conftest.err
7085        }; then
7086   # Broken: success on invalid input.
7087 continue
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092   # Passes both tests.
7093 ac_preproc_ok=:
7094 break
7095 fi
7096
7097 rm -f conftest.err conftest.$ac_ext
7098
7099 done
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then
7103   :
7104 else
7105   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7108 See \`config.log' for more details." >&2;}
7109    { (exit 1); exit 1; }; }
7110 fi
7111
7112 ac_ext=c
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117
7118
7119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7121 if test "${ac_cv_header_stdc+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <stdlib.h>
7131 #include <stdarg.h>
7132 #include <string.h>
7133 #include <float.h>
7134
7135 int
7136 main ()
7137 {
7138
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147   *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150   (eval "$ac_compile") 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } && {
7157          test -z "$ac_c_werror_flag" ||
7158          test ! -s conftest.err
7159        } && test -s conftest.$ac_objext; then
7160   ac_cv_header_stdc=yes
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165         ac_cv_header_stdc=no
7166 fi
7167
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169
7170 if test $ac_cv_header_stdc = yes; then
7171   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172   cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 #include <string.h>
7179
7180 _ACEOF
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182   $EGREP "memchr" >/dev/null 2>&1; then
7183   :
7184 else
7185   ac_cv_header_stdc=no
7186 fi
7187 rm -f conftest*
7188
7189 fi
7190
7191 if test $ac_cv_header_stdc = yes; then
7192   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 #include <stdlib.h>
7200
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203   $EGREP "free" >/dev/null 2>&1; then
7204   :
7205 else
7206   ac_cv_header_stdc=no
7207 fi
7208 rm -f conftest*
7209
7210 fi
7211
7212 if test $ac_cv_header_stdc = yes; then
7213   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7214   if test "$cross_compiling" = yes; then
7215   :
7216 else
7217   cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h.  */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h.  */
7223 #include <ctype.h>
7224 #include <stdlib.h>
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7228 #else
7229 # define ISLOWER(c) \
7230                    (('a' <= (c) && (c) <= 'i') \
7231                      || ('j' <= (c) && (c) <= 'r') \
7232                      || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234 #endif
7235
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7237 int
7238 main ()
7239 {
7240   int i;
7241   for (i = 0; i < 256; i++)
7242     if (XOR (islower (i), ISLOWER (i))
7243         || toupper (i) != TOUPPER (i))
7244       return 2;
7245   return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7250 case "(($ac_try" in
7251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252   *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255   (eval "$ac_link") 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7259   { (case "(($ac_try" in
7260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261   *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264   (eval "$ac_try") 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; }; then
7268   :
7269 else
7270   echo "$as_me: program exited with status $ac_status" >&5
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ( exit $ac_status )
7275 ac_cv_header_stdc=no
7276 fi
7277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278 fi
7279
7280
7281 fi
7282 fi
7283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7285 if test $ac_cv_header_stdc = yes; then
7286
7287 cat >>confdefs.h <<\_ACEOF
7288 #define STDC_HEADERS 1
7289 _ACEOF
7290
7291 fi
7292
7293 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304                   inttypes.h stdint.h unistd.h
7305 do
7306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318 $ac_includes_default
7319
7320 #include <$ac_header>
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7324 case "(($ac_try" in
7325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326   *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329   (eval "$ac_compile") 2>conftest.er1
7330   ac_status=$?
7331   grep -v '^ *+' conftest.er1 >conftest.err
7332   rm -f conftest.er1
7333   cat conftest.err >&5
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); } && {
7336          test -z "$ac_c_werror_flag" ||
7337          test ! -s conftest.err
7338        } && test -s conftest.$ac_objext; then
7339   eval "$as_ac_Header=yes"
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344         eval "$as_ac_Header=no"
7345 fi
7346
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 fi
7349 ac_res=`eval echo '${'$as_ac_Header'}'`
7350                { echo "$as_me:$LINENO: result: $ac_res" >&5
7351 echo "${ECHO_T}$ac_res" >&6; }
7352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7353   cat >>confdefs.h <<_ACEOF
7354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7355 _ACEOF
7356
7357 fi
7358
7359 done
7360
7361
7362
7363 for ac_header in dlfcn.h
7364 do
7365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 fi
7372 ac_res=`eval echo '${'$as_ac_Header'}'`
7373                { echo "$as_me:$LINENO: result: $ac_res" >&5
7374 echo "${ECHO_T}$ac_res" >&6; }
7375 else
7376   # Is the header compilable?
7377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7379 cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385 $ac_includes_default
7386 #include <$ac_header>
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (ac_try="$ac_compile"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395   (eval "$ac_compile") 2>conftest.er1
7396   ac_status=$?
7397   grep -v '^ *+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } && {
7402          test -z "$ac_c_werror_flag" ||
7403          test ! -s conftest.err
7404        } && test -s conftest.$ac_objext; then
7405   ac_header_compiler=yes
7406 else
7407   echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7409
7410         ac_header_compiler=no
7411 fi
7412
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7415 echo "${ECHO_T}$ac_header_compiler" >&6; }
7416
7417 # Is the header present?
7418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426 #include <$ac_header>
7427 _ACEOF
7428 if { (ac_try="$ac_cpp conftest.$ac_ext"
7429 case "(($ac_try" in
7430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431   *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7435   ac_status=$?
7436   grep -v '^ *+' conftest.er1 >conftest.err
7437   rm -f conftest.er1
7438   cat conftest.err >&5
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } >/dev/null && {
7441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7442          test ! -s conftest.err
7443        }; then
7444   ac_header_preproc=yes
7445 else
7446   echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449   ac_header_preproc=no
7450 fi
7451
7452 rm -f conftest.err conftest.$ac_ext
7453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7454 echo "${ECHO_T}$ac_header_preproc" >&6; }
7455
7456 # So?  What about this header?
7457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7458   yes:no: )
7459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7463     ac_header_preproc=yes
7464     ;;
7465   no:yes:* )
7466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7478     ( cat <<\_ASBOX
7479 ## --------------------------------------------- ##
7480 ## Report this to <http://www.openldap.org/its/> ##
7481 ## --------------------------------------------- ##
7482 _ASBOX
7483      ) | sed "s/^/$as_me: WARNING:     /" >&2
7484     ;;
7485 esac
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   eval "$as_ac_Header=\$ac_header_preproc"
7492 fi
7493 ac_res=`eval echo '${'$as_ac_Header'}'`
7494                { echo "$as_me:$LINENO: result: $ac_res" >&5
7495 echo "${ECHO_T}$ac_res" >&6; }
7496
7497 fi
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499   cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 _ACEOF
7502
7503 fi
7504
7505 done
7506
7507
7508 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7509
7510 # find the maximum length of command line arguments
7511 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7512 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7513 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516     i=0
7517   teststring="ABCD"
7518
7519   case $build_os in
7520   msdosdjgpp*)
7521     # On DJGPP, this test can blow up pretty badly due to problems in libc
7522     # (any single argument exceeding 2000 bytes causes a buffer overrun
7523     # during glob expansion).  Even if it were fixed, the result of this
7524     # check would be larger than it should be.
7525     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7526     ;;
7527
7528   gnu*)
7529     # Under GNU Hurd, this test is not required because there is
7530     # no limit to the length of command line arguments.
7531     # Libtool will interpret -1 as no limit whatsoever
7532     lt_cv_sys_max_cmd_len=-1;
7533     ;;
7534
7535   cygwin* | mingw*)
7536     # On Win9x/ME, this test blows up -- it succeeds, but takes
7537     # about 5 minutes as the teststring grows exponentially.
7538     # Worse, since 9x/ME are not pre-emptively multitasking,
7539     # you end up with a "frozen" computer, even though with patience
7540     # the test eventually succeeds (with a max line length of 256k).
7541     # Instead, let's just punt: use the minimum linelength reported by
7542     # all of the supported platforms: 8192 (on NT/2K/XP).
7543     lt_cv_sys_max_cmd_len=8192;
7544     ;;
7545
7546   amigaos*)
7547     # On AmigaOS with pdksh, this test takes hours, literally.
7548     # So we just punt and use a minimum line length of 8192.
7549     lt_cv_sys_max_cmd_len=8192;
7550     ;;
7551
7552   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7553     # This has been around since 386BSD, at least.  Likely further.
7554     if test -x /sbin/sysctl; then
7555       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7556     elif test -x /usr/sbin/sysctl; then
7557       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7558     else
7559       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7560     fi
7561     # And add a safety zone
7562     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7564     ;;
7565   osf*)
7566     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7567     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7568     # nice to cause kernel panics so lets avoid the loop below.
7569     # First set a reasonable default.
7570     lt_cv_sys_max_cmd_len=16384
7571     #
7572     if test -x /sbin/sysconfig; then
7573       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7574         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7575       esac
7576     fi
7577     ;;
7578   *)
7579     # If test is not a shell built-in, we'll probably end up computing a
7580     # maximum length that is only half of the actual maximum length, but
7581     # we can't tell.
7582     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7583     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7584                = "XX$teststring") >/dev/null 2>&1 &&
7585             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7586             lt_cv_sys_max_cmd_len=$new_result &&
7587             test $i != 17 # 1/2 MB should be enough
7588     do
7589       i=`expr $i + 1`
7590       teststring=$teststring$teststring
7591     done
7592     teststring=
7593     # Add a significant safety factor because C++ compilers can tack on massive
7594     # amounts of additional arguments before passing them to the linker.
7595     # It appears as though 1/2 is a usable value.
7596     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7597     ;;
7598   esac
7599
7600 fi
7601
7602 if test -n $lt_cv_sys_max_cmd_len ; then
7603   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7604 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7605 else
7606   { echo "$as_me:$LINENO: result: none" >&5
7607 echo "${ECHO_T}none" >&6; }
7608 fi
7609
7610
7611
7612
7613 # Check for command to grab the raw symbol name followed by C symbol from nm.
7614 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7615 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7616 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619
7620 # These are sane defaults that work on at least a few old systems.
7621 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7622
7623 # Character class describing NM global symbol codes.
7624 symcode='[BCDEGRST]'
7625
7626 # Regexp to match symbols that can be accessed directly from C.
7627 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7628
7629 # Transform an extracted symbol line into a proper C declaration
7630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7631
7632 # Transform an extracted symbol line into symbol name and symbol address
7633 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'"
7634
7635 # Define system-specific variables.
7636 case $host_os in
7637 aix*)
7638   symcode='[BCDT]'
7639   ;;
7640 cygwin* | mingw* | pw32*)
7641   symcode='[ABCDGISTW]'
7642   ;;
7643 hpux*) # Its linker distinguishes data from code symbols
7644   if test "$host_cpu" = ia64; then
7645     symcode='[ABCDEGRST]'
7646   fi
7647   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7648   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'"
7649   ;;
7650 linux*)
7651   if test "$host_cpu" = ia64; then
7652     symcode='[ABCDGIRSTW]'
7653     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7654     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'"
7655   fi
7656   ;;
7657 irix* | nonstopux*)
7658   symcode='[BCDEGRST]'
7659   ;;
7660 osf*)
7661   symcode='[BCDEGQRST]'
7662   ;;
7663 solaris* | sysv5*)
7664   symcode='[BDRT]'
7665   ;;
7666 sysv4)
7667   symcode='[DFNSTU]'
7668   ;;
7669 esac
7670
7671 # Handle CRLF in mingw tool chain
7672 opt_cr=
7673 case $build_os in
7674 mingw*)
7675   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7676   ;;
7677 esac
7678
7679 # If we're using GNU nm, then use its standard symbol codes.
7680 case `$NM -V 2>&1` in
7681 *GNU* | *'with BFD'*)
7682   symcode='[ABCDGIRSTW]' ;;
7683 esac
7684
7685 # Try without a prefix undercore, then with it.
7686 for ac_symprfx in "" "_"; do
7687
7688   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7689   symxfrm="\\1 $ac_symprfx\\2 \\2"
7690
7691   # Write the raw and C identifiers.
7692   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7693
7694   # Check to see that the pipe works correctly.
7695   pipe_works=no
7696
7697   rm -f conftest*
7698   cat > conftest.$ac_ext <<EOF
7699 #ifdef __cplusplus
7700 extern "C" {
7701 #endif
7702 char nm_test_var;
7703 void nm_test_func(){}
7704 #ifdef __cplusplus
7705 }
7706 #endif
7707 int main(){nm_test_var='a';nm_test_func();return(0);}
7708 EOF
7709
7710   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711   (eval $ac_compile) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; then
7715     # Now try to grab the symbols.
7716     nlist=conftest.nm
7717     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7718   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } && test -s "$nlist"; then
7722       # Try sorting and uniquifying the output.
7723       if sort "$nlist" | uniq > "$nlist"T; then
7724         mv -f "$nlist"T "$nlist"
7725       else
7726         rm -f "$nlist"T
7727       fi
7728
7729       # Make sure that we snagged all the symbols we need.
7730       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7731         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7732           cat <<EOF > conftest.$ac_ext
7733 #ifdef __cplusplus
7734 extern "C" {
7735 #endif
7736
7737 EOF
7738           # Now generate the symbol file.
7739           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7740
7741           cat <<EOF >> conftest.$ac_ext
7742 #if defined (__STDC__) && __STDC__
7743 # define lt_ptr_t void *
7744 #else
7745 # define lt_ptr_t char *
7746 # define const
7747 #endif
7748
7749 /* The mapping between symbol names and symbols. */
7750 const struct {
7751   const char *name;
7752   lt_ptr_t address;
7753 }
7754 lt_preloaded_symbols[] =
7755 {
7756 EOF
7757           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7758           cat <<\EOF >> conftest.$ac_ext
7759   {0, (lt_ptr_t) 0}
7760 };
7761
7762 #ifdef __cplusplus
7763 }
7764 #endif
7765 EOF
7766           # Now try linking the two files.
7767           mv conftest.$ac_objext conftstm.$ac_objext
7768           lt_save_LIBS="$LIBS"
7769           lt_save_CFLAGS="$CFLAGS"
7770           LIBS="conftstm.$ac_objext"
7771           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7772           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773   (eval $ac_link) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7777             pipe_works=yes
7778           fi
7779           LIBS="$lt_save_LIBS"
7780           CFLAGS="$lt_save_CFLAGS"
7781         else
7782           echo "cannot find nm_test_func in $nlist" >&5
7783         fi
7784       else
7785         echo "cannot find nm_test_var in $nlist" >&5
7786       fi
7787     else
7788       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7789     fi
7790   else
7791     echo "$progname: failed program was:" >&5
7792     cat conftest.$ac_ext >&5
7793   fi
7794   rm -f conftest* conftst*
7795
7796   # Do not use the global_symbol_pipe unless it works.
7797   if test "$pipe_works" = yes; then
7798     break
7799   else
7800     lt_cv_sys_global_symbol_pipe=
7801   fi
7802 done
7803
7804 fi
7805
7806 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7807   lt_cv_sys_global_symbol_to_cdecl=
7808 fi
7809 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7810   { echo "$as_me:$LINENO: result: failed" >&5
7811 echo "${ECHO_T}failed" >&6; }
7812 else
7813   { echo "$as_me:$LINENO: result: ok" >&5
7814 echo "${ECHO_T}ok" >&6; }
7815 fi
7816
7817 { echo "$as_me:$LINENO: checking for objdir" >&5
7818 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7819 if test "${lt_cv_objdir+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   rm -f .libs 2>/dev/null
7823 mkdir .libs 2>/dev/null
7824 if test -d .libs; then
7825   lt_cv_objdir=.libs
7826 else
7827   # MS-DOS does not allow filenames that begin with a dot.
7828   lt_cv_objdir=_libs
7829 fi
7830 rmdir .libs 2>/dev/null
7831 fi
7832 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7833 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7834 objdir=$lt_cv_objdir
7835
7836
7837
7838
7839
7840 case $host_os in
7841 aix3*)
7842   # AIX sometimes has problems with the GCC collect2 program.  For some
7843   # reason, if we set the COLLECT_NAMES environment variable, the problems
7844   # vanish in a puff of smoke.
7845   if test "X${COLLECT_NAMES+set}" != Xset; then
7846     COLLECT_NAMES=
7847     export COLLECT_NAMES
7848   fi
7849   ;;
7850 esac
7851
7852 # Sed substitution that helps us do robust quoting.  It backslashifies
7853 # metacharacters that are still active within double-quoted strings.
7854 Xsed='sed -e 1s/^X//'
7855 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7856
7857 # Same as above, but do not quote variable references.
7858 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7859
7860 # Sed substitution to delay expansion of an escaped shell variable in a
7861 # double_quote_subst'ed string.
7862 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7863
7864 # Sed substitution to avoid accidental globbing in evaled expressions
7865 no_glob_subst='s/\*/\\\*/g'
7866
7867 # Constants:
7868 rm="rm -f"
7869
7870 # Global variables:
7871 default_ofile=libtool
7872 can_build_shared=yes
7873
7874 # All known linkers require a `.a' archive for static linking (except MSVC,
7875 # which needs '.lib').
7876 libext=a
7877 ltmain="$ac_aux_dir/ltmain.sh"
7878 ofile="$default_ofile"
7879 with_gnu_ld="$lt_cv_prog_gnu_ld"
7880
7881 if test -n "$ac_tool_prefix"; then
7882   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}ar; ac_word=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_prog_AR+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889   if test -n "$AR"; then
7890   ac_cv_prog_AR="$AR" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897   for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_AR="${ac_tool_prefix}ar"
7900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 AR=$ac_cv_prog_AR
7910 if test -n "$AR"; then
7911   { echo "$as_me:$LINENO: result: $AR" >&5
7912 echo "${ECHO_T}$AR" >&6; }
7913 else
7914   { echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6; }
7916 fi
7917
7918
7919 fi
7920 if test -z "$ac_cv_prog_AR"; then
7921   ac_ct_AR=$AR
7922   # Extract the first word of "ar", so it can be a program name with args.
7923 set dummy ar; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   if test -n "$ac_ct_AR"; then
7930   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935   IFS=$as_save_IFS
7936   test -z "$as_dir" && as_dir=.
7937   for ac_exec_ext in '' $ac_executable_extensions; do
7938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939     ac_cv_prog_ac_ct_AR="ar"
7940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941     break 2
7942   fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7950 if test -n "$ac_ct_AR"; then
7951   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7952 echo "${ECHO_T}$ac_ct_AR" >&6; }
7953 else
7954   { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7956 fi
7957
7958   if test "x$ac_ct_AR" = x; then
7959     AR="false"
7960   else
7961     case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet.  If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&5
7966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7967 whose name does not start with the host triplet.  If you think this
7968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7969 ac_tool_warned=yes ;;
7970 esac
7971     AR=$ac_ct_AR
7972   fi
7973 else
7974   AR="$ac_cv_prog_AR"
7975 fi
7976
7977 if test -n "$ac_tool_prefix"; then
7978   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_prog_RANLIB+set}" = set; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985   if test -n "$RANLIB"; then
7986   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993   for ac_exec_ext in '' $ac_executable_extensions; do
7994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 RANLIB=$ac_cv_prog_RANLIB
8006 if test -n "$RANLIB"; then
8007   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8008 echo "${ECHO_T}$RANLIB" >&6; }
8009 else
8010   { echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6; }
8012 fi
8013
8014
8015 fi
8016 if test -z "$ac_cv_prog_RANLIB"; then
8017   ac_ct_RANLIB=$RANLIB
8018   # Extract the first word of "ranlib", so it can be a program name with args.
8019 set dummy ranlib; ac_word=$2
8020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025   if test -n "$ac_ct_RANLIB"; then
8026   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033   for ac_exec_ext in '' $ac_executable_extensions; do
8034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035     ac_cv_prog_ac_ct_RANLIB="ranlib"
8036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037     break 2
8038   fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8046 if test -n "$ac_ct_RANLIB"; then
8047   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8048 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8049 else
8050   { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8052 fi
8053
8054   if test "x$ac_ct_RANLIB" = x; then
8055     RANLIB=":"
8056   else
8057     case $cross_compiling:$ac_tool_warned in
8058 yes:)
8059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8060 whose name does not start with the host triplet.  If you think this
8061 configuration is useful to you, please write to autoconf@gnu.org." >&5
8062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8063 whose name does not start with the host triplet.  If you think this
8064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8065 ac_tool_warned=yes ;;
8066 esac
8067     RANLIB=$ac_ct_RANLIB
8068   fi
8069 else
8070   RANLIB="$ac_cv_prog_RANLIB"
8071 fi
8072
8073 if test -n "$ac_tool_prefix"; then
8074   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}strip; ac_word=$2
8076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8078 if test "${ac_cv_prog_STRIP+set}" = set; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   if test -n "$STRIP"; then
8082   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087   IFS=$as_save_IFS
8088   test -z "$as_dir" && as_dir=.
8089   for ac_exec_ext in '' $ac_executable_extensions; do
8090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093     break 2
8094   fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 STRIP=$ac_cv_prog_STRIP
8102 if test -n "$STRIP"; then
8103   { echo "$as_me:$LINENO: result: $STRIP" >&5
8104 echo "${ECHO_T}$STRIP" >&6; }
8105 else
8106   { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8108 fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_STRIP"; then
8113   ac_ct_STRIP=$STRIP
8114   # Extract the first word of "strip", so it can be a program name with args.
8115 set dummy strip; ac_word=$2
8116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8118 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   if test -n "$ac_ct_STRIP"; then
8122   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127   IFS=$as_save_IFS
8128   test -z "$as_dir" && as_dir=.
8129   for ac_exec_ext in '' $ac_executable_extensions; do
8130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131     ac_cv_prog_ac_ct_STRIP="strip"
8132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133     break 2
8134   fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8142 if test -n "$ac_ct_STRIP"; then
8143   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8144 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8145 else
8146   { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8148 fi
8149
8150   if test "x$ac_ct_STRIP" = x; then
8151     STRIP=":"
8152   else
8153     case $cross_compiling:$ac_tool_warned in
8154 yes:)
8155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8156 whose name does not start with the host triplet.  If you think this
8157 configuration is useful to you, please write to autoconf@gnu.org." >&5
8158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8159 whose name does not start with the host triplet.  If you think this
8160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8161 ac_tool_warned=yes ;;
8162 esac
8163     STRIP=$ac_ct_STRIP
8164   fi
8165 else
8166   STRIP="$ac_cv_prog_STRIP"
8167 fi
8168
8169
8170 old_CC="$CC"
8171 old_CFLAGS="$CFLAGS"
8172
8173 # Set sane defaults for various variables
8174 test -z "$AR" && AR=ar
8175 test -z "$AR_FLAGS" && AR_FLAGS=cru
8176 test -z "$AS" && AS=as
8177 test -z "$CC" && CC=cc
8178 test -z "$LTCC" && LTCC=$CC
8179 test -z "$DLLTOOL" && DLLTOOL=dlltool
8180 test -z "$LD" && LD=ld
8181 test -z "$LN_S" && LN_S="ln -s"
8182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8183 test -z "$NM" && NM=nm
8184 test -z "$SED" && SED=sed
8185 test -z "$OBJDUMP" && OBJDUMP=objdump
8186 test -z "$RANLIB" && RANLIB=:
8187 test -z "$STRIP" && STRIP=:
8188 test -z "$ac_objext" && ac_objext=o
8189
8190 # Determine commands to create old-style static archives.
8191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8192 old_postinstall_cmds='chmod 644 $oldlib'
8193 old_postuninstall_cmds=
8194
8195 if test -n "$RANLIB"; then
8196   case $host_os in
8197   openbsd*)
8198     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8199     ;;
8200   *)
8201     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8202     ;;
8203   esac
8204   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8205 fi
8206
8207 for cc_temp in $compiler""; do
8208   case $cc_temp in
8209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8211     \-*) ;;
8212     *) break;;
8213   esac
8214 done
8215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8216
8217
8218 # Only perform the check for file, if the check method requires it
8219 case $deplibs_check_method in
8220 file_magic*)
8221   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8222     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   case $MAGIC_CMD in
8228 [\\/*] |  ?:[\\/]*)
8229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230   ;;
8231 *)
8232   lt_save_MAGIC_CMD="$MAGIC_CMD"
8233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235   for ac_dir in $ac_dummy; do
8236     IFS="$lt_save_ifs"
8237     test -z "$ac_dir" && ac_dir=.
8238     if test -f $ac_dir/${ac_tool_prefix}file; then
8239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8240       if test -n "$file_magic_test_file"; then
8241         case $deplibs_check_method in
8242         "file_magic "*)
8243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246             $EGREP "$file_magic_regex" > /dev/null; then
8247             :
8248           else
8249             cat <<EOF 1>&2
8250
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such.  This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem.  Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8259
8260 EOF
8261           fi ;;
8262         esac
8263       fi
8264       break
8265     fi
8266   done
8267   IFS="$lt_save_ifs"
8268   MAGIC_CMD="$lt_save_MAGIC_CMD"
8269   ;;
8270 esac
8271 fi
8272
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8277 else
8278   { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8280 fi
8281
8282 if test -z "$lt_cv_path_MAGIC_CMD"; then
8283   if test -n "$ac_tool_prefix"; then
8284     { echo "$as_me:$LINENO: checking for file" >&5
8285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   case $MAGIC_CMD in
8290 [\\/*] |  ?:[\\/]*)
8291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8292   ;;
8293 *)
8294   lt_save_MAGIC_CMD="$MAGIC_CMD"
8295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297   for ac_dir in $ac_dummy; do
8298     IFS="$lt_save_ifs"
8299     test -z "$ac_dir" && ac_dir=.
8300     if test -f $ac_dir/file; then
8301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8302       if test -n "$file_magic_test_file"; then
8303         case $deplibs_check_method in
8304         "file_magic "*)
8305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308             $EGREP "$file_magic_regex" > /dev/null; then
8309             :
8310           else
8311             cat <<EOF 1>&2
8312
8313 *** Warning: the command libtool uses to detect shared libraries,
8314 *** $file_magic_cmd, produces output that libtool cannot recognize.
8315 *** The result is that libtool may fail to recognize shared libraries
8316 *** as such.  This will affect the creation of libtool libraries that
8317 *** depend on shared libraries, but programs linked with such libtool
8318 *** libraries will work regardless of this problem.  Nevertheless, you
8319 *** may want to report the problem to your system manager and/or to
8320 *** bug-libtool@gnu.org
8321
8322 EOF
8323           fi ;;
8324         esac
8325       fi
8326       break
8327     fi
8328   done
8329   IFS="$lt_save_ifs"
8330   MAGIC_CMD="$lt_save_MAGIC_CMD"
8331   ;;
8332 esac
8333 fi
8334
8335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336 if test -n "$MAGIC_CMD"; then
8337   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8339 else
8340   { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8342 fi
8343
8344   else
8345     MAGIC_CMD=:
8346   fi
8347 fi
8348
8349   fi
8350   ;;
8351 esac
8352
8353 enable_dlopen=yes
8354 enable_win32_dll=yes
8355
8356 # Check whether --enable-libtool-lock was given.
8357 if test "${enable_libtool_lock+set}" = set; then
8358   enableval=$enable_libtool_lock;
8359 fi
8360
8361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8362
8363
8364 # Check whether --with-pic was given.
8365 if test "${with_pic+set}" = set; then
8366   withval=$with_pic; pic_mode="$withval"
8367 else
8368   pic_mode=default
8369 fi
8370
8371 test -z "$pic_mode" && pic_mode=default
8372
8373 # Use C for the default configuration in the libtool script
8374 tagname=
8375 lt_save_CC="$CC"
8376 ac_ext=c
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8381
8382
8383 # Source file extension for C test sources.
8384 ac_ext=c
8385
8386 # Object file extension for compiled C test sources.
8387 objext=o
8388 objext=$objext
8389
8390 # Code to be used in simple compile tests
8391 lt_simple_compile_test_code="int some_variable = 0;\n"
8392
8393 # Code to be used in simple link tests
8394 lt_simple_link_test_code='int main(){return(0);}\n'
8395
8396
8397 # If no C compiler was specified, use CC.
8398 LTCC=${LTCC-"$CC"}
8399
8400 # Allow CC to be a program name with arguments.
8401 compiler=$CC
8402
8403
8404 # save warnings/boilerplate of simple test code
8405 ac_outfile=conftest.$ac_objext
8406 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8408 _lt_compiler_boilerplate=`cat conftest.err`
8409 $rm conftest*
8410
8411 ac_outfile=conftest.$ac_objext
8412 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8414 _lt_linker_boilerplate=`cat conftest.err`
8415 $rm conftest*
8416
8417
8418 #
8419 # Check for any special shared library compilation flags.
8420 #
8421 lt_prog_cc_shlib=
8422 if test "$GCC" = no; then
8423   case $host_os in
8424   sco3.2v5*)
8425     lt_prog_cc_shlib='-belf'
8426     ;;
8427   esac
8428 fi
8429 if test -n "$lt_prog_cc_shlib"; then
8430   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8431 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8432   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8433   else
8434     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8435 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8436     lt_cv_prog_cc_can_build_shared=no
8437   fi
8438 fi
8439
8440
8441 #
8442 # Check to make sure the static flag actually works.
8443 #
8444 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8445 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8446 if test "${lt_prog_compiler_static_works+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   lt_prog_compiler_static_works=no
8450    save_LDFLAGS="$LDFLAGS"
8451    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8452    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8453    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454      # The linker can only warn and ignore the option if not recognized
8455      # So say no if there are warnings
8456      if test -s conftest.err; then
8457        # Append any errors to the config.log.
8458        cat conftest.err 1>&5
8459        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8460        $SED '/^$/d' conftest.err >conftest.er2
8461        if diff conftest.exp conftest.er2 >/dev/null; then
8462          lt_prog_compiler_static_works=yes
8463        fi
8464      else
8465        lt_prog_compiler_static_works=yes
8466      fi
8467    fi
8468    $rm conftest*
8469    LDFLAGS="$save_LDFLAGS"
8470
8471 fi
8472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8473 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8474
8475 if test x"$lt_prog_compiler_static_works" = xyes; then
8476     :
8477 else
8478     lt_prog_compiler_static=
8479 fi
8480
8481
8482
8483
8484 lt_prog_compiler_no_builtin_flag=
8485
8486 if test "$GCC" = yes; then
8487   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8488
8489
8490 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8492 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   lt_cv_prog_compiler_rtti_exceptions=no
8496   ac_outfile=conftest.$ac_objext
8497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8498    lt_compiler_flag="-fno-rtti -fno-exceptions"
8499    # Insert the option either (1) after the last *FLAGS variable, or
8500    # (2) before a word containing "conftest.", or (3) at the end.
8501    # Note that $ac_compile itself does not contain backslashes and begins
8502    # with a dollar sign (not a hyphen), so the echo should work correctly.
8503    # The option is referenced via a variable to avoid confusing sed.
8504    lt_compile=`echo "$ac_compile" | $SED \
8505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507    -e 's:$: $lt_compiler_flag:'`
8508    (eval echo "\"\$as_me:8508: $lt_compile\"" >&5)
8509    (eval "$lt_compile" 2>conftest.err)
8510    ac_status=$?
8511    cat conftest.err >&5
8512    echo "$as_me:8512: \$? = $ac_status" >&5
8513    if (exit $ac_status) && test -s "$ac_outfile"; then
8514      # The compiler can only warn and ignore the option if not recognized
8515      # So say no if there are warnings other than the usual output.
8516      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8517      $SED '/^$/d' conftest.err >conftest.er2
8518      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8519        lt_cv_prog_compiler_rtti_exceptions=yes
8520      fi
8521    fi
8522    $rm conftest*
8523
8524 fi
8525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8526 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8527
8528 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8529     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8530 else
8531     :
8532 fi
8533
8534 fi
8535
8536 lt_prog_compiler_wl=
8537 lt_prog_compiler_pic=
8538 lt_prog_compiler_static=
8539
8540 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8541 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8542
8543   if test "$GCC" = yes; then
8544     lt_prog_compiler_wl='-Wl,'
8545     lt_prog_compiler_static='-static'
8546
8547     case $host_os in
8548       aix*)
8549       # All AIX code is PIC.
8550       if test "$host_cpu" = ia64; then
8551         # AIX 5 now supports IA64 processor
8552         lt_prog_compiler_static='-Bstatic'
8553       fi
8554       ;;
8555
8556     amigaos*)
8557       # FIXME: we need at least 68020 code to build shared libraries, but
8558       # adding the `-m68020' flag to GCC prevents building anything better,
8559       # like `-m68040'.
8560       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8561       ;;
8562
8563     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8564       # PIC is the default for these OSes.
8565       ;;
8566
8567     mingw* | pw32* | os2*)
8568       # This hack is so that the source file can tell whether it is being
8569       # built for inclusion in a dll (and should export symbols for example).
8570       lt_prog_compiler_pic='-DDLL_EXPORT'
8571       ;;
8572
8573     darwin* | rhapsody*)
8574       # PIC is the default on this platform
8575       # Common symbols not allowed in MH_DYLIB files
8576       lt_prog_compiler_pic='-fno-common'
8577       ;;
8578
8579     msdosdjgpp*)
8580       # Just because we use GCC doesn't mean we suddenly get shared libraries
8581       # on systems that don't support them.
8582       lt_prog_compiler_can_build_shared=no
8583       enable_shared=no
8584       ;;
8585
8586     sysv4*MP*)
8587       if test -d /usr/nec; then
8588         lt_prog_compiler_pic=-Kconform_pic
8589       fi
8590       ;;
8591
8592     hpux*)
8593       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8594       # not for PA HP-UX.
8595       case $host_cpu in
8596       hppa*64*|ia64*)
8597         # +Z the default
8598         ;;
8599       *)
8600         lt_prog_compiler_pic='-fPIC'
8601         ;;
8602       esac
8603       ;;
8604
8605     *)
8606       lt_prog_compiler_pic='-fPIC'
8607       ;;
8608     esac
8609   else
8610     # PORTME Check for flag to pass linker flags through the system compiler.
8611     case $host_os in
8612     aix*)
8613       lt_prog_compiler_wl='-Wl,'
8614       if test "$host_cpu" = ia64; then
8615         # AIX 5 now supports IA64 processor
8616         lt_prog_compiler_static='-Bstatic'
8617       else
8618         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8619       fi
8620       ;;
8621       darwin*)
8622         # PIC is the default on this platform
8623         # Common symbols not allowed in MH_DYLIB files
8624        case $cc_basename in
8625          xlc*)
8626          lt_prog_compiler_pic='-qnocommon'
8627          lt_prog_compiler_wl='-Wl,'
8628          ;;
8629        esac
8630        ;;
8631
8632     mingw* | pw32* | os2*)
8633       # This hack is so that the source file can tell whether it is being
8634       # built for inclusion in a dll (and should export symbols for example).
8635       lt_prog_compiler_pic='-DDLL_EXPORT'
8636       ;;
8637
8638     hpux9* | hpux10* | hpux11*)
8639       lt_prog_compiler_wl='-Wl,'
8640       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8641       # not for PA HP-UX.
8642       case $host_cpu in
8643       hppa*64*|ia64*)
8644         # +Z the default
8645         ;;
8646       *)
8647         lt_prog_compiler_pic='+Z'
8648         ;;
8649       esac
8650       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8651       lt_prog_compiler_static='${wl}-a ${wl}archive'
8652       ;;
8653
8654     irix5* | irix6* | nonstopux*)
8655       lt_prog_compiler_wl='-Wl,'
8656       # PIC (with -KPIC) is the default.
8657       lt_prog_compiler_static='-non_shared'
8658       ;;
8659
8660     newsos6)
8661       lt_prog_compiler_pic='-KPIC'
8662       lt_prog_compiler_static='-Bstatic'
8663       ;;
8664
8665     linux*)
8666       case $cc_basename in
8667       icc* | ecc*)
8668         lt_prog_compiler_wl='-Wl,'
8669         lt_prog_compiler_pic='-KPIC'
8670         lt_prog_compiler_static='-static'
8671         ;;
8672       pgcc* | pgf77* | pgf90* | pgf95*)
8673         # Portland Group compilers (*not* the Pentium gcc compiler,
8674         # which looks to be a dead project)
8675         lt_prog_compiler_wl='-Wl,'
8676         lt_prog_compiler_pic='-fpic'
8677         lt_prog_compiler_static='-Bstatic'
8678         ;;
8679       ccc*)
8680         lt_prog_compiler_wl='-Wl,'
8681         # All Alpha code is PIC.
8682         lt_prog_compiler_static='-non_shared'
8683         ;;
8684       esac
8685       ;;
8686
8687     osf3* | osf4* | osf5*)
8688       lt_prog_compiler_wl='-Wl,'
8689       # All OSF/1 code is PIC.
8690       lt_prog_compiler_static='-non_shared'
8691       ;;
8692
8693     sco3.2v5*)
8694       lt_prog_compiler_pic='-Kpic'
8695       lt_prog_compiler_static='-dn'
8696       ;;
8697
8698     solaris*)
8699       lt_prog_compiler_pic='-KPIC'
8700       lt_prog_compiler_static='-Bstatic'
8701       case $cc_basename in
8702       f77* | f90* | f95*)
8703         lt_prog_compiler_wl='-Qoption ld ';;
8704       *)
8705         lt_prog_compiler_wl='-Wl,';;
8706       esac
8707       ;;
8708
8709     sunos4*)
8710       lt_prog_compiler_wl='-Qoption ld '
8711       lt_prog_compiler_pic='-PIC'
8712       lt_prog_compiler_static='-Bstatic'
8713       ;;
8714
8715     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8716       lt_prog_compiler_wl='-Wl,'
8717       lt_prog_compiler_pic='-KPIC'
8718       lt_prog_compiler_static='-Bstatic'
8719       ;;
8720
8721     sysv4*MP*)
8722       if test -d /usr/nec ;then
8723         lt_prog_compiler_pic='-Kconform_pic'
8724         lt_prog_compiler_static='-Bstatic'
8725       fi
8726       ;;
8727
8728     unicos*)
8729       lt_prog_compiler_wl='-Wl,'
8730       lt_prog_compiler_can_build_shared=no
8731       ;;
8732
8733     uts4*)
8734       lt_prog_compiler_pic='-pic'
8735       lt_prog_compiler_static='-Bstatic'
8736       ;;
8737
8738     *)
8739       lt_prog_compiler_can_build_shared=no
8740       ;;
8741     esac
8742   fi
8743
8744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8745 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8746
8747 #
8748 # Check to make sure the PIC flag actually works.
8749 #
8750 if test -n "$lt_prog_compiler_pic"; then
8751
8752 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8753 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8754 if test "${lt_prog_compiler_pic_works+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   lt_prog_compiler_pic_works=no
8758   ac_outfile=conftest.$ac_objext
8759    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8760    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8761    # Insert the option either (1) after the last *FLAGS variable, or
8762    # (2) before a word containing "conftest.", or (3) at the end.
8763    # Note that $ac_compile itself does not contain backslashes and begins
8764    # with a dollar sign (not a hyphen), so the echo should work correctly.
8765    # The option is referenced via a variable to avoid confusing sed.
8766    lt_compile=`echo "$ac_compile" | $SED \
8767    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769    -e 's:$: $lt_compiler_flag:'`
8770    (eval echo "\"\$as_me:8770: $lt_compile\"" >&5)
8771    (eval "$lt_compile" 2>conftest.err)
8772    ac_status=$?
8773    cat conftest.err >&5
8774    echo "$as_me:8774: \$? = $ac_status" >&5
8775    if (exit $ac_status) && test -s "$ac_outfile"; then
8776      # The compiler can only warn and ignore the option if not recognized
8777      # So say no if there are warnings other than the usual output.
8778      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8779      $SED '/^$/d' conftest.err >conftest.er2
8780      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8781        lt_prog_compiler_pic_works=yes
8782      fi
8783    fi
8784    $rm conftest*
8785
8786 fi
8787 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8788 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8789
8790 if test x"$lt_prog_compiler_pic_works" = xyes; then
8791     case $lt_prog_compiler_pic in
8792      "" | " "*) ;;
8793      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8794      esac
8795 else
8796     lt_prog_compiler_pic=
8797      lt_prog_compiler_can_build_shared=no
8798 fi
8799
8800 fi
8801 case $host_os in
8802   # For platforms which do not support PIC, -DPIC is meaningless:
8803   *djgpp*)
8804     lt_prog_compiler_pic=
8805     ;;
8806   *)
8807     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8808     ;;
8809 esac
8810
8811 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   lt_cv_prog_compiler_c_o=no
8817    $rm -r conftest 2>/dev/null
8818    mkdir conftest
8819    cd conftest
8820    mkdir out
8821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8822
8823    lt_compiler_flag="-o out/conftest2.$ac_objext"
8824    # Insert the option either (1) after the last *FLAGS variable, or
8825    # (2) before a word containing "conftest.", or (3) at the end.
8826    # Note that $ac_compile itself does not contain backslashes and begins
8827    # with a dollar sign (not a hyphen), so the echo should work correctly.
8828    lt_compile=`echo "$ac_compile" | $SED \
8829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831    -e 's:$: $lt_compiler_flag:'`
8832    (eval echo "\"\$as_me:8832: $lt_compile\"" >&5)
8833    (eval "$lt_compile" 2>out/conftest.err)
8834    ac_status=$?
8835    cat out/conftest.err >&5
8836    echo "$as_me:8836: \$? = $ac_status" >&5
8837    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8838    then
8839      # The compiler can only warn and ignore the option if not recognized
8840      # So say no if there are warnings
8841      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8842      $SED '/^$/d' out/conftest.err >out/conftest.er2
8843      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8844        lt_cv_prog_compiler_c_o=yes
8845      fi
8846    fi
8847    chmod u+w . 2>&5
8848    $rm conftest*
8849    # SGI C++ compiler will create directory out/ii_files/ for
8850    # template instantiation
8851    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8852    $rm out/* && rmdir out
8853    cd ..
8854    rmdir conftest
8855    $rm conftest*
8856
8857 fi
8858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8860
8861
8862 hard_links="nottested"
8863 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8864   # do not overwrite the value of need_locks provided by the user
8865   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8867   hard_links=yes
8868   $rm conftest*
8869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8870   touch conftest.a
8871   ln conftest.a conftest.b 2>&5 || hard_links=no
8872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8873   { echo "$as_me:$LINENO: result: $hard_links" >&5
8874 echo "${ECHO_T}$hard_links" >&6; }
8875   if test "$hard_links" = no; then
8876     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8878     need_locks=warn
8879   fi
8880 else
8881   need_locks=no
8882 fi
8883
8884 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8886
8887   runpath_var=
8888   allow_undefined_flag=
8889   enable_shared_with_static_runtimes=no
8890   archive_cmds=
8891   archive_expsym_cmds=
8892   old_archive_From_new_cmds=
8893   old_archive_from_expsyms_cmds=
8894   export_dynamic_flag_spec=
8895   whole_archive_flag_spec=
8896   thread_safe_flag_spec=
8897   hardcode_libdir_flag_spec=
8898   hardcode_libdir_flag_spec_ld=
8899   hardcode_libdir_separator=
8900   hardcode_direct=no
8901   hardcode_minus_L=no
8902   hardcode_shlibpath_var=unsupported
8903   link_all_deplibs=unknown
8904   hardcode_automatic=no
8905   module_cmds=
8906   module_expsym_cmds=
8907   always_export_symbols=no
8908   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8909   # include_expsyms should be a list of space-separated symbols to be *always*
8910   # included in the symbol list
8911   include_expsyms=
8912   # exclude_expsyms can be an extended regexp of symbols to exclude
8913   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8914   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8915   # as well as any symbol that contains `d'.
8916   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8917   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8918   # platforms (ab)use it in PIC code, but their linkers get confused if
8919   # the symbol is explicitly referenced.  Since portable code cannot
8920   # rely on this symbol name, it's probably fine to never include it in
8921   # preloaded symbol tables.
8922   extract_expsyms_cmds=
8923   # Just being paranoid about ensuring that cc_basename is set.
8924   for cc_temp in $compiler""; do
8925   case $cc_temp in
8926     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8927     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8928     \-*) ;;
8929     *) break;;
8930   esac
8931 done
8932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8933
8934   case $host_os in
8935   cygwin* | mingw* | pw32*)
8936     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8937     # When not using gcc, we currently assume that we are using
8938     # Microsoft Visual C++.
8939     if test "$GCC" != yes; then
8940       with_gnu_ld=no
8941     fi
8942     ;;
8943   openbsd*)
8944     with_gnu_ld=no
8945     ;;
8946   esac
8947
8948   ld_shlibs=yes
8949   if test "$with_gnu_ld" = yes; then
8950     # If archive_cmds runs LD, not CC, wlarc should be empty
8951     wlarc='${wl}'
8952
8953     # Set some defaults for GNU ld with shared library support. These
8954     # are reset later if shared libraries are not supported. Putting them
8955     # here allows them to be overridden if necessary.
8956     runpath_var=LD_RUN_PATH
8957     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8958     export_dynamic_flag_spec='${wl}--export-dynamic'
8959     # ancient GNU ld didn't support --whole-archive et. al.
8960     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8961         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8962       else
8963         whole_archive_flag_spec=
8964     fi
8965     supports_anon_versioning=no
8966     case `$LD -v 2>/dev/null` in
8967       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8968       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8969       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8970       *\ 2.11.*) ;; # other 2.11 versions
8971       *) supports_anon_versioning=yes ;;
8972     esac
8973
8974     # See if GNU ld supports shared libraries.
8975     case $host_os in
8976     aix3* | aix4* | aix5*)
8977       # On AIX/PPC, the GNU linker is very broken
8978       if test "$host_cpu" != ia64; then
8979         ld_shlibs=no
8980         cat <<EOF 1>&2
8981
8982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8983 *** to be unable to reliably create shared libraries on AIX.
8984 *** Therefore, libtool is disabling shared libraries support.  If you
8985 *** really care for shared libraries, you may want to modify your PATH
8986 *** so that a non-GNU linker is found, and then restart.
8987
8988 EOF
8989       fi
8990       ;;
8991
8992     amigaos*)
8993       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)'
8994       hardcode_libdir_flag_spec='-L$libdir'
8995       hardcode_minus_L=yes
8996
8997       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8998       # that the semantics of dynamic libraries on AmigaOS, at least up
8999       # to version 4, is to share data among multiple programs linked
9000       # with the same dynamic library.  Since this doesn't match the
9001       # behavior of shared libraries on other platforms, we can't use
9002       # them.
9003       ld_shlibs=no
9004       ;;
9005
9006     beos*)
9007       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9008         allow_undefined_flag=unsupported
9009         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9010         # support --undefined.  This deserves some investigation.  FIXME
9011         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012       else
9013         ld_shlibs=no
9014       fi
9015       ;;
9016
9017     cygwin* | mingw* | pw32*)
9018       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9019       # as there is no search path for DLLs.
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       allow_undefined_flag=unsupported
9022       always_export_symbols=no
9023       enable_shared_with_static_runtimes=yes
9024       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9025
9026       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9028         # If the export-symbols file already is a .def file (1st line
9029         # is EXPORTS), use it as is; otherwise, prepend...
9030         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9031           cp $export_symbols $output_objdir/$soname.def;
9032         else
9033           echo EXPORTS > $output_objdir/$soname.def;
9034           cat $export_symbols >> $output_objdir/$soname.def;
9035         fi~
9036         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9037       else
9038         ld_shlibs=no
9039       fi
9040       ;;
9041
9042     linux*)
9043       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9044         tmp_addflag=
9045         case $cc_basename,$host_cpu in
9046         pgcc*)                          # Portland Group C compiler
9047           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'
9048           tmp_addflag=' $pic_flag'
9049           ;;
9050         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9051           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'
9052           tmp_addflag=' $pic_flag -Mnomain' ;;
9053         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9054           tmp_addflag=' -i_dynamic' ;;
9055         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9056           tmp_addflag=' -i_dynamic -nofor_main' ;;
9057         ifc* | ifort*)                  # Intel Fortran compiler
9058           tmp_addflag=' -nofor_main' ;;
9059         esac
9060         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061
9062         if test $supports_anon_versioning = yes; then
9063           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9064   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9065   $echo "local: *; };" >> $output_objdir/$libname.ver~
9066           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9067         fi
9068       else
9069         ld_shlibs=no
9070       fi
9071       ;;
9072
9073     netbsd*)
9074       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9076         wlarc=
9077       else
9078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9080       fi
9081       ;;
9082
9083     solaris* | sysv5*)
9084       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9085         ld_shlibs=no
9086         cat <<EOF 1>&2
9087
9088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9089 *** create shared libraries on Solaris systems.  Therefore, libtool
9090 *** is disabling shared libraries support.  We urge you to upgrade GNU
9091 *** binutils to release 2.9.1 or newer.  Another option is to modify
9092 *** your PATH or compiler configuration so that the native linker is
9093 *** used, and then restart.
9094
9095 EOF
9096       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9097         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099       else
9100         ld_shlibs=no
9101       fi
9102       ;;
9103
9104     sunos4*)
9105       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9106       wlarc=
9107       hardcode_direct=yes
9108       hardcode_shlibpath_var=no
9109       ;;
9110
9111     *)
9112       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9115       else
9116         ld_shlibs=no
9117       fi
9118       ;;
9119     esac
9120
9121     if test "$ld_shlibs" = no; then
9122       runpath_var=
9123       hardcode_libdir_flag_spec=
9124       export_dynamic_flag_spec=
9125       whole_archive_flag_spec=
9126     fi
9127   else
9128     # PORTME fill in a description of your system's linker (not GNU ld)
9129     case $host_os in
9130     aix3*)
9131       allow_undefined_flag=unsupported
9132       always_export_symbols=yes
9133       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'
9134       # Note: this linker hardcodes the directories in LIBPATH if there
9135       # are no directories specified by -L.
9136       hardcode_minus_L=yes
9137       if test "$GCC" = yes && test -z "$link_static_flag"; then
9138         # Neither direct hardcoding nor static linking is supported with a
9139         # broken collect2.
9140         hardcode_direct=unsupported
9141       fi
9142       ;;
9143
9144     aix4* | aix5*)
9145       if test "$host_cpu" = ia64; then
9146         # On IA64, the linker does run time linking by default, so we don't
9147         # have to do anything special.
9148         aix_use_runtimelinking=no
9149         exp_sym_flag='-Bexport'
9150         no_entry_flag=""
9151       else
9152         # If we're using GNU nm, then we don't want the "-C" option.
9153         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9154         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9155           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'
9156         else
9157           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'
9158         fi
9159         aix_use_runtimelinking=no
9160
9161         # Test if we are trying to use run time linking or normal
9162         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9163         # need to do runtime linking.
9164         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9165           for ld_flag in $LDFLAGS; do
9166           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9167             aix_use_runtimelinking=yes
9168             break
9169           fi
9170           done
9171         esac
9172
9173         exp_sym_flag='-bexport'
9174         no_entry_flag='-bnoentry'
9175       fi
9176
9177       # When large executables or shared objects are built, AIX ld can
9178       # have problems creating the table of contents.  If linking a library
9179       # or program results in "error TOC overflow" add -mminimal-toc to
9180       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9181       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9182
9183       archive_cmds=''
9184       hardcode_direct=yes
9185       hardcode_libdir_separator=':'
9186       link_all_deplibs=yes
9187
9188       if test "$GCC" = yes; then
9189         case $host_os in aix4.[012]|aix4.[012].*)
9190         # We only want to do this on AIX 4.2 and lower, the check
9191         # below for broken collect2 doesn't work under 4.3+
9192           collect2name=`${CC} -print-prog-name=collect2`
9193           if test -f "$collect2name" && \
9194            strings "$collect2name" | grep resolve_lib_name >/dev/null
9195           then
9196           # We have reworked collect2
9197           hardcode_direct=yes
9198           else
9199           # We have old collect2
9200           hardcode_direct=unsupported
9201           # It fails to find uninstalled libraries when the uninstalled
9202           # path is not listed in the libpath.  Setting hardcode_minus_L
9203           # to unsupported forces relinking
9204           hardcode_minus_L=yes
9205           hardcode_libdir_flag_spec='-L$libdir'
9206           hardcode_libdir_separator=
9207           fi
9208         esac
9209         shared_flag='-shared'
9210         if test "$aix_use_runtimelinking" = yes; then
9211           shared_flag="$shared_flag "'${wl}-G'
9212         fi
9213       else
9214         # not using gcc
9215         if test "$host_cpu" = ia64; then
9216         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9217         # chokes on -Wl,-G. The following line is correct:
9218           shared_flag='-G'
9219         else
9220         if test "$aix_use_runtimelinking" = yes; then
9221             shared_flag='${wl}-G'
9222           else
9223             shared_flag='${wl}-bM:SRE'
9224         fi
9225         fi
9226       fi
9227
9228       # It seems that -bexpall does not export symbols beginning with
9229       # underscore (_), so it is better to generate a list of symbols to export.
9230       always_export_symbols=yes
9231       if test "$aix_use_runtimelinking" = yes; then
9232         # Warning - without using the other runtime loading flags (-brtl),
9233         # -berok will link without error, but may produce a broken library.
9234         allow_undefined_flag='-berok'
9235        # Determine the default libpath from the value encoded in an empty executable.
9236        cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h.  */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h.  */
9242
9243 int
9244 main ()
9245 {
9246
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9253 case "(($ac_try" in
9254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255   *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258   (eval "$ac_link") 2>conftest.er1
9259   ac_status=$?
9260   grep -v '^ *+' conftest.er1 >conftest.err
9261   rm -f conftest.er1
9262   cat conftest.err >&5
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } && {
9265          test -z "$ac_c_werror_flag" ||
9266          test ! -s conftest.err
9267        } && test -s conftest$ac_exeext &&
9268        $as_test_x conftest$ac_exeext; then
9269
9270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9271 }'`
9272 # Check for a 64-bit object if we didn't find anything.
9273 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9274 }'`; fi
9275 else
9276   echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279
9280 fi
9281
9282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283       conftest$ac_exeext conftest.$ac_ext
9284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9285
9286        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9287         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"
9288        else
9289         if test "$host_cpu" = ia64; then
9290           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9291           allow_undefined_flag="-z nodefs"
9292           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"
9293         else
9294          # Determine the default libpath from the value encoded in an empty executable.
9295          cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h.  */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h.  */
9301
9302 int
9303 main ()
9304 {
9305
9306   ;
9307   return 0;
9308 }
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9312 case "(($ac_try" in
9313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314   *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && {
9324          test -z "$ac_c_werror_flag" ||
9325          test ! -s conftest.err
9326        } && test -s conftest$ac_exeext &&
9327        $as_test_x conftest$ac_exeext; then
9328
9329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9330 }'`
9331 # Check for a 64-bit object if we didn't find anything.
9332 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9333 }'`; fi
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338
9339 fi
9340
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342       conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344
9345          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346           # Warning - without using the other run time loading flags,
9347           # -berok will link without error, but may produce a broken library.
9348           no_undefined_flag=' ${wl}-bernotok'
9349           allow_undefined_flag=' ${wl}-berok'
9350           # -bexpall does not export symbols beginning with underscore (_)
9351           always_export_symbols=yes
9352           # Exported symbols can be pulled into shared objects from archives
9353           whole_archive_flag_spec=' '
9354           archive_cmds_need_lc=yes
9355           # This is similar to how AIX traditionally builds its shared libraries.
9356           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'
9357         fi
9358       fi
9359       ;;
9360
9361     amigaos*)
9362       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)'
9363       hardcode_libdir_flag_spec='-L$libdir'
9364       hardcode_minus_L=yes
9365       # see comment about different semantics on the GNU ld section
9366       ld_shlibs=no
9367       ;;
9368
9369     bsdi[45]*)
9370       export_dynamic_flag_spec=-rdynamic
9371       ;;
9372
9373     cygwin* | mingw* | pw32*)
9374       # When not using gcc, we currently assume that we are using
9375       # Microsoft Visual C++.
9376       # hardcode_libdir_flag_spec is actually meaningless, as there is
9377       # no search path for DLLs.
9378       hardcode_libdir_flag_spec=' '
9379       allow_undefined_flag=unsupported
9380       # Tell ltmain to make .lib files, not .a files.
9381       libext=lib
9382       # Tell ltmain to make .dll files, not .so files.
9383       shrext_cmds=".dll"
9384       # FIXME: Setting linknames here is a bad hack.
9385       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9386       # The linker will automatically build a .lib file if we build a DLL.
9387       old_archive_From_new_cmds='true'
9388       # FIXME: Should let the user specify the lib program.
9389       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9390       fix_srcfile_path='`cygpath -w "$srcfile"`'
9391       enable_shared_with_static_runtimes=yes
9392       ;;
9393
9394     darwin* | rhapsody*)
9395       case $host_os in
9396         rhapsody* | darwin1.[012])
9397          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9398          ;;
9399        *) # Darwin 1.3 on
9400          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9402          else
9403            case ${MACOSX_DEPLOYMENT_TARGET} in
9404              10.[012])
9405                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9406                ;;
9407              10.*)
9408                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9409                ;;
9410            esac
9411          fi
9412          ;;
9413       esac
9414       archive_cmds_need_lc=no
9415       hardcode_direct=no
9416       hardcode_automatic=yes
9417       hardcode_shlibpath_var=unsupported
9418       whole_archive_flag_spec=''
9419       link_all_deplibs=yes
9420     if test "$GCC" = yes ; then
9421         output_verbose_link_cmd='echo'
9422         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9423       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9425       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}'
9426       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}'
9427     else
9428       case $cc_basename in
9429         xlc*)
9430          output_verbose_link_cmd='echo'
9431          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9432          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9434          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}'
9435           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}'
9436           ;;
9437        *)
9438          ld_shlibs=no
9439           ;;
9440       esac
9441     fi
9442       ;;
9443
9444     dgux*)
9445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446       hardcode_libdir_flag_spec='-L$libdir'
9447       hardcode_shlibpath_var=no
9448       ;;
9449
9450     freebsd1*)
9451       ld_shlibs=no
9452       ;;
9453
9454     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455     # support.  Future versions do this automatically, but an explicit c++rt0.o
9456     # does not break anything, and helps significantly (at the cost of a little
9457     # extra space).
9458     freebsd2.2*)
9459       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460       hardcode_libdir_flag_spec='-R$libdir'
9461       hardcode_direct=yes
9462       hardcode_shlibpath_var=no
9463       ;;
9464
9465     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9466     freebsd2*)
9467       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468       hardcode_direct=yes
9469       hardcode_minus_L=yes
9470       hardcode_shlibpath_var=no
9471       ;;
9472
9473     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474     freebsd* | kfreebsd*-gnu | dragonfly*)
9475       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476       hardcode_libdir_flag_spec='-R$libdir'
9477       hardcode_direct=yes
9478       hardcode_shlibpath_var=no
9479       ;;
9480
9481     hpux9*)
9482       if test "$GCC" = yes; then
9483         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'
9484       else
9485         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'
9486       fi
9487       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488       hardcode_libdir_separator=:
9489       hardcode_direct=yes
9490
9491       # hardcode_minus_L: Not really in the search PATH,
9492       # but as the default location of the library.
9493       hardcode_minus_L=yes
9494       export_dynamic_flag_spec='${wl}-E'
9495       ;;
9496
9497     hpux10* | hpux11*)
9498       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9499         case $host_cpu in
9500         hppa*64*|ia64*)
9501           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502           ;;
9503         *)
9504           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505           ;;
9506         esac
9507       else
9508         case $host_cpu in
9509         hppa*64*|ia64*)
9510           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9511           ;;
9512         *)
9513           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514           ;;
9515         esac
9516       fi
9517       if test "$with_gnu_ld" = no; then
9518         case $host_cpu in
9519         hppa*64*)
9520           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521           hardcode_libdir_flag_spec_ld='+b $libdir'
9522           hardcode_libdir_separator=:
9523           hardcode_direct=no
9524           hardcode_shlibpath_var=no
9525           ;;
9526         ia64*)
9527           hardcode_libdir_flag_spec='-L$libdir'
9528           hardcode_direct=no
9529           hardcode_shlibpath_var=no
9530
9531           # hardcode_minus_L: Not really in the search PATH,
9532           # but as the default location of the library.
9533           hardcode_minus_L=yes
9534           ;;
9535         *)
9536           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537           hardcode_libdir_separator=:
9538           hardcode_direct=yes
9539           export_dynamic_flag_spec='${wl}-E'
9540
9541           # hardcode_minus_L: Not really in the search PATH,
9542           # but as the default location of the library.
9543           hardcode_minus_L=yes
9544           ;;
9545         esac
9546       fi
9547       ;;
9548
9549     irix5* | irix6* | nonstopux*)
9550       if test "$GCC" = yes; then
9551         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'
9552       else
9553         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'
9554         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9555       fi
9556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557       hardcode_libdir_separator=:
9558       link_all_deplibs=yes
9559       ;;
9560
9561     netbsd*)
9562       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9564       else
9565         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9566       fi
9567       hardcode_libdir_flag_spec='-R$libdir'
9568       hardcode_direct=yes
9569       hardcode_shlibpath_var=no
9570       ;;
9571
9572     newsos6)
9573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574       hardcode_direct=yes
9575       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576       hardcode_libdir_separator=:
9577       hardcode_shlibpath_var=no
9578       ;;
9579
9580     openbsd*)
9581       hardcode_direct=yes
9582       hardcode_shlibpath_var=no
9583       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587         export_dynamic_flag_spec='${wl}-E'
9588       else
9589        case $host_os in
9590          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592            hardcode_libdir_flag_spec='-R$libdir'
9593            ;;
9594          *)
9595            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597            ;;
9598        esac
9599       fi
9600       ;;
9601
9602     os2*)
9603       hardcode_libdir_flag_spec='-L$libdir'
9604       hardcode_minus_L=yes
9605       allow_undefined_flag=unsupported
9606       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'
9607       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608       ;;
9609
9610     osf3*)
9611       if test "$GCC" = yes; then
9612         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613         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'
9614       else
9615         allow_undefined_flag=' -expect_unresolved \*'
9616         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'
9617       fi
9618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619       hardcode_libdir_separator=:
9620       ;;
9621
9622     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9623       if test "$GCC" = yes; then
9624         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625         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'
9626         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627       else
9628         allow_undefined_flag=' -expect_unresolved \*'
9629         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'
9630         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631         $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'
9632
9633         # Both c and cxx compiler support -rpath directly
9634         hardcode_libdir_flag_spec='-rpath $libdir'
9635       fi
9636       hardcode_libdir_separator=:
9637       ;;
9638
9639     sco3.2v5*)
9640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641       hardcode_shlibpath_var=no
9642       export_dynamic_flag_spec='${wl}-Bexport'
9643       runpath_var=LD_RUN_PATH
9644       hardcode_runpath_var=yes
9645       ;;
9646
9647     solaris*)
9648       no_undefined_flag=' -z text'
9649       if test "$GCC" = yes; then
9650         wlarc='${wl}'
9651         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9653           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9654       else
9655         wlarc=''
9656         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9659       fi
9660       hardcode_libdir_flag_spec='-R$libdir'
9661       hardcode_shlibpath_var=no
9662       case $host_os in
9663       solaris2.[0-5] | solaris2.[0-5].*) ;;
9664       *)
9665         # The compiler driver will combine linker options so we
9666         # cannot just pass the convience library names through
9667         # without $wl, iff we do not link with $LD.
9668         # Luckily, gcc supports the same syntax we need for Sun Studio.
9669         # Supported since Solaris 2.6 (maybe 2.5.1?)
9670         case $wlarc in
9671         '')
9672           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9673         *)
9674           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' ;;
9675         esac ;;
9676       esac
9677       link_all_deplibs=yes
9678       ;;
9679
9680     sunos4*)
9681       if test "x$host_vendor" = xsequent; then
9682         # Use $CC to link under sequent, because it throws in some extra .o
9683         # files that make .init and .fini sections work.
9684         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685       else
9686         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687       fi
9688       hardcode_libdir_flag_spec='-L$libdir'
9689       hardcode_direct=yes
9690       hardcode_minus_L=yes
9691       hardcode_shlibpath_var=no
9692       ;;
9693
9694     sysv4)
9695       case $host_vendor in
9696         sni)
9697           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698           hardcode_direct=yes # is this really true???
9699         ;;
9700         siemens)
9701           ## LD is ld it makes a PLAMLIB
9702           ## CC just makes a GrossModule.
9703           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704           reload_cmds='$CC -r -o $output$reload_objs'
9705           hardcode_direct=no
9706         ;;
9707         motorola)
9708           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710         ;;
9711       esac
9712       runpath_var='LD_RUN_PATH'
9713       hardcode_shlibpath_var=no
9714       ;;
9715
9716     sysv4.3*)
9717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718       hardcode_shlibpath_var=no
9719       export_dynamic_flag_spec='-Bexport'
9720       ;;
9721
9722     sysv4*MP*)
9723       if test -d /usr/nec; then
9724         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725         hardcode_shlibpath_var=no
9726         runpath_var=LD_RUN_PATH
9727         hardcode_runpath_var=yes
9728         ld_shlibs=yes
9729       fi
9730       ;;
9731
9732     sysv4.2uw2*)
9733       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734       hardcode_direct=yes
9735       hardcode_minus_L=no
9736       hardcode_shlibpath_var=no
9737       hardcode_runpath_var=yes
9738       runpath_var=LD_RUN_PATH
9739       ;;
9740
9741    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9742       no_undefined_flag='${wl}-z ${wl}text'
9743       if test "$GCC" = yes; then
9744         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745       else
9746         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747       fi
9748       runpath_var='LD_RUN_PATH'
9749       hardcode_shlibpath_var=no
9750       ;;
9751
9752     sysv5*)
9753       no_undefined_flag=' -z text'
9754       # $CC -shared without GNU ld will not create a library from C++
9755       # object files and a static libstdc++, better avoid it by now
9756       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9758                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9759       hardcode_libdir_flag_spec=
9760       hardcode_shlibpath_var=no
9761       runpath_var='LD_RUN_PATH'
9762       ;;
9763
9764     uts4*)
9765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766       hardcode_libdir_flag_spec='-L$libdir'
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     *)
9771       ld_shlibs=no
9772       ;;
9773     esac
9774   fi
9775
9776 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9777 echo "${ECHO_T}$ld_shlibs" >&6; }
9778 test "$ld_shlibs" = no && can_build_shared=no
9779
9780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781 if test "$GCC" = yes; then
9782   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9783 fi
9784
9785 #
9786 # Do we need to explicitly link libc?
9787 #
9788 case "x$archive_cmds_need_lc" in
9789 x|xyes)
9790   # Assume -lc should be added
9791   archive_cmds_need_lc=yes
9792
9793   if test "$enable_shared" = yes && test "$GCC" = yes; then
9794     case $archive_cmds in
9795     *'~'*)
9796       # FIXME: we may have to deal with multi-command sequences.
9797       ;;
9798     '$CC '*)
9799       # Test whether the compiler implicitly links with -lc since on some
9800       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801       # to ld, don't add -lc before -lgcc.
9802       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9804       $rm conftest*
9805       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9806
9807       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } 2>conftest.err; then
9812         soname=conftest
9813         lib=conftest
9814         libobjs=conftest.$ac_objext
9815         deplibs=
9816         wl=$lt_prog_compiler_wl
9817         compiler_flags=-v
9818         linker_flags=-v
9819         verstring=
9820         output_objdir=.
9821         libname=conftest
9822         lt_save_allow_undefined_flag=$allow_undefined_flag
9823         allow_undefined_flag=
9824         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9825   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }
9829         then
9830           archive_cmds_need_lc=no
9831         else
9832           archive_cmds_need_lc=yes
9833         fi
9834         allow_undefined_flag=$lt_save_allow_undefined_flag
9835       else
9836         cat conftest.err 1>&5
9837       fi
9838       $rm conftest*
9839       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9840 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9841       ;;
9842     esac
9843   fi
9844   ;;
9845 esac
9846
9847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9849 library_names_spec=
9850 libname_spec='lib$name'
9851 soname_spec=
9852 shrext_cmds=".so"
9853 postinstall_cmds=
9854 postuninstall_cmds=
9855 finish_cmds=
9856 finish_eval=
9857 shlibpath_var=
9858 shlibpath_overrides_runpath=unknown
9859 version_type=none
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865     # if the path contains ";" then we assume it to be the separator
9866     # otherwise default to the standard path separator (i.e. ":") - it is
9867     # assumed that no part of a normal pathname contains ";" but that should
9868     # okay in the real world where ";" in dirpaths is itself problematic.
9869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9870   else
9871     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9872   fi
9873 else
9874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875 fi
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9878
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9882
9883 case $host_os in
9884 aix3*)
9885   version_type=linux
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887   shlibpath_var=LIBPATH
9888
9889   # AIX 3 has no versioning support, so we append a major version to the name.
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   ;;
9892
9893 aix4* | aix5*)
9894   version_type=linux
9895   need_lib_prefix=no
9896   need_version=no
9897   hardcode_into_libs=yes
9898   if test "$host_cpu" = ia64; then
9899     # AIX 5 supports IA64
9900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901     shlibpath_var=LD_LIBRARY_PATH
9902   else
9903     # With GCC up to 2.95.x, collect2 would create an import file
9904     # for dependence libraries.  The import file would start with
9905     # the line `#! .'.  This would cause the generated library to
9906     # depend on `.', always an invalid library.  This was fixed in
9907     # development snapshots of GCC prior to 3.0.
9908     case $host_os in
9909       aix4 | aix4.[01] | aix4.[01].*)
9910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9911            echo ' yes '
9912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9913         :
9914       else
9915         can_build_shared=no
9916       fi
9917       ;;
9918     esac
9919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920     # soname into executable. Probably we can add versioning support to
9921     # collect2, so additional links can be useful in future.
9922     if test "$aix_use_runtimelinking" = yes; then
9923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924       # instead of lib<name>.a to let people know that these are not
9925       # typical AIX shared libraries.
9926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927     else
9928       # We preserve .a as extension for shared libraries through AIX4.2
9929       # and later when we are not doing run time linking.
9930       library_names_spec='${libname}${release}.a $libname.a'
9931       soname_spec='${libname}${release}${shared_ext}$major'
9932     fi
9933     shlibpath_var=LIBPATH
9934   fi
9935   ;;
9936
9937 amigaos*)
9938   library_names_spec='$libname.ixlibrary $libname.a'
9939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940   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'
9941   ;;
9942
9943 beos*)
9944   library_names_spec='${libname}${shared_ext}'
9945   dynamic_linker="$host_os ld.so"
9946   shlibpath_var=LIBRARY_PATH
9947   ;;
9948
9949 bsdi[45]*)
9950   version_type=linux
9951   need_version=no
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953   soname_spec='${libname}${release}${shared_ext}$major'
9954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955   shlibpath_var=LD_LIBRARY_PATH
9956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958   # the default ld.so.conf also contains /usr/contrib/lib and
9959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960   # libtool to hard-code these into programs
9961   ;;
9962
9963 cygwin* | mingw* | pw32*)
9964   version_type=windows
9965   shrext_cmds=".dll"
9966   need_version=no
9967   need_lib_prefix=no
9968
9969   case $GCC,$host_os in
9970   yes,cygwin* | yes,mingw* | yes,pw32*)
9971     library_names_spec='$libname.dll.a'
9972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973     postinstall_cmds='base_file=`basename \${file}`~
9974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975       dldir=$destdir/`dirname \$dlpath`~
9976       test -d \$dldir || mkdir -p \$dldir~
9977       $install_prog $dir/$dlname \$dldir/$dlname~
9978       chmod a+x \$dldir/$dlname'
9979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980       dlpath=$dir/\$dldll~
9981        $rm \$dlpath'
9982     shlibpath_overrides_runpath=yes
9983
9984     case $host_os in
9985     cygwin*)
9986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9989       ;;
9990     mingw*)
9991       # MinGW DLLs use traditional 'lib' prefix
9992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995         # It is most probably a Windows format PATH printed by
9996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997         # path with ; separators, and with drive letters. We can handle the
9998         # drive letters (cygwin fileutils understands them), so leave them,
9999         # especially as we might pass files found there to a mingw objdump,
10000         # which wouldn't understand a cygwinified path. Ahh.
10001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002       else
10003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10004       fi
10005       ;;
10006     pw32*)
10007       # pw32 DLLs use 'pw' prefix rather than 'lib'
10008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009       ;;
10010     esac
10011     ;;
10012
10013   *)
10014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10015     ;;
10016   esac
10017   dynamic_linker='Win32 ld.exe'
10018   # FIXME: first we should search . and the directory the executable is in
10019   shlibpath_var=PATH
10020   ;;
10021
10022 darwin* | rhapsody*)
10023   dynamic_linker="$host_os dyld"
10024   version_type=darwin
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028   soname_spec='${libname}${release}${major}$shared_ext'
10029   shlibpath_overrides_runpath=yes
10030   shlibpath_var=DYLD_LIBRARY_PATH
10031   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10032   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033   if test "$GCC" = yes; then
10034     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"`
10035   else
10036     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10037   fi
10038   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10039   ;;
10040
10041 dgux*)
10042   version_type=linux
10043   need_lib_prefix=no
10044   need_version=no
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046   soname_spec='${libname}${release}${shared_ext}$major'
10047   shlibpath_var=LD_LIBRARY_PATH
10048   ;;
10049
10050 freebsd1*)
10051   dynamic_linker=no
10052   ;;
10053
10054 kfreebsd*-gnu)
10055   version_type=linux
10056   need_lib_prefix=no
10057   need_version=no
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   shlibpath_var=LD_LIBRARY_PATH
10061   shlibpath_overrides_runpath=no
10062   hardcode_into_libs=yes
10063   dynamic_linker='GNU ld.so'
10064   ;;
10065
10066 freebsd* | dragonfly*)
10067   # DragonFly does not have aout.  When/if they implement a new
10068   # versioning mechanism, adjust this.
10069   if test -x /usr/bin/objformat; then
10070     objformat=`/usr/bin/objformat`
10071   else
10072     case $host_os in
10073     freebsd[123]*) objformat=aout ;;
10074     *) objformat=elf ;;
10075     esac
10076   fi
10077   version_type=freebsd-$objformat
10078   case $version_type in
10079     freebsd-elf*)
10080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081       need_version=no
10082       need_lib_prefix=no
10083       ;;
10084     freebsd-*)
10085       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10086       need_version=yes
10087       ;;
10088   esac
10089   shlibpath_var=LD_LIBRARY_PATH
10090   case $host_os in
10091   freebsd2*)
10092     shlibpath_overrides_runpath=yes
10093     ;;
10094   freebsd3.[01]* | freebsdelf3.[01]*)
10095     shlibpath_overrides_runpath=yes
10096     hardcode_into_libs=yes
10097     ;;
10098   *) # from 3.2 on
10099     shlibpath_overrides_runpath=no
10100     hardcode_into_libs=yes
10101     ;;
10102   esac
10103   ;;
10104
10105 gnu*)
10106   version_type=linux
10107   need_lib_prefix=no
10108   need_version=no
10109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   shlibpath_var=LD_LIBRARY_PATH
10112   hardcode_into_libs=yes
10113   ;;
10114
10115 hpux9* | hpux10* | hpux11*)
10116   # Give a soname corresponding to the major version so that dld.sl refuses to
10117   # link against other versions.
10118   version_type=sunos
10119   need_lib_prefix=no
10120   need_version=no
10121   case $host_cpu in
10122   ia64*)
10123     shrext_cmds='.so'
10124     hardcode_into_libs=yes
10125     dynamic_linker="$host_os dld.so"
10126     shlibpath_var=LD_LIBRARY_PATH
10127     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129     soname_spec='${libname}${release}${shared_ext}$major'
10130     if test "X$HPUX_IA64_MODE" = X32; then
10131       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10132     else
10133       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10134     fi
10135     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10136     ;;
10137    hppa*64*)
10138      shrext_cmds='.sl'
10139      hardcode_into_libs=yes
10140      dynamic_linker="$host_os dld.sl"
10141      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10142      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144      soname_spec='${libname}${release}${shared_ext}$major'
10145      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10146      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10147      ;;
10148    *)
10149     shrext_cmds='.sl'
10150     dynamic_linker="$host_os dld.sl"
10151     shlibpath_var=SHLIB_PATH
10152     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154     soname_spec='${libname}${release}${shared_ext}$major'
10155     ;;
10156   esac
10157   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10158   postinstall_cmds='chmod 555 $lib'
10159   ;;
10160
10161 irix5* | irix6* | nonstopux*)
10162   case $host_os in
10163     nonstopux*) version_type=nonstopux ;;
10164     *)
10165         if test "$lt_cv_prog_gnu_ld" = yes; then
10166                 version_type=linux
10167         else
10168                 version_type=irix
10169         fi ;;
10170   esac
10171   need_lib_prefix=no
10172   need_version=no
10173   soname_spec='${libname}${release}${shared_ext}$major'
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10175   case $host_os in
10176   irix5* | nonstopux*)
10177     libsuff= shlibsuff=
10178     ;;
10179   *)
10180     case $LD in # libtool.m4 will add one of these switches to LD
10181     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182       libsuff= shlibsuff= libmagic=32-bit;;
10183     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184       libsuff=32 shlibsuff=N32 libmagic=N32;;
10185     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187     *) libsuff= shlibsuff= libmagic=never-match;;
10188     esac
10189     ;;
10190   esac
10191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192   shlibpath_overrides_runpath=no
10193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195   hardcode_into_libs=yes
10196   ;;
10197
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10200   dynamic_linker=no
10201   ;;
10202
10203 # This must be Linux ELF.
10204 linux*)
10205   version_type=linux
10206   need_lib_prefix=no
10207   need_version=no
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=no
10213   # This implies no fast_install, which is unacceptable.
10214   # Some rework will be needed to allow for fast_install
10215   # before this can be enabled.
10216   hardcode_into_libs=yes
10217
10218   # Append ld.so.conf contents to the search path
10219   if test -f /etc/ld.so.conf; then
10220     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' ' '`
10221     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10222   fi
10223
10224   # We used to test for /lib/ld.so.1 and disable shared libraries on
10225   # powerpc, because MkLinux only supported shared libraries with the
10226   # GNU dynamic linker.  Since this was broken with cross compilers,
10227   # most powerpc-linux boxes support dynamic linking these days and
10228   # people can always --disable-shared, the test was removed, and we
10229   # assume the GNU/Linux dynamic linker is in use.
10230   dynamic_linker='GNU/Linux ld.so'
10231   ;;
10232
10233 knetbsd*-gnu)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=no
10241   hardcode_into_libs=yes
10242   dynamic_linker='GNU ld.so'
10243   ;;
10244
10245 netbsd*)
10246   version_type=sunos
10247   need_lib_prefix=no
10248   need_version=no
10249   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252     dynamic_linker='NetBSD (a.out) ld.so'
10253   else
10254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255     soname_spec='${libname}${release}${shared_ext}$major'
10256     dynamic_linker='NetBSD ld.elf_so'
10257   fi
10258   shlibpath_var=LD_LIBRARY_PATH
10259   shlibpath_overrides_runpath=yes
10260   hardcode_into_libs=yes
10261   ;;
10262
10263 newsos6)
10264   version_type=linux
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266   shlibpath_var=LD_LIBRARY_PATH
10267   shlibpath_overrides_runpath=yes
10268   ;;
10269
10270 nto-qnx*)
10271   version_type=linux
10272   need_lib_prefix=no
10273   need_version=no
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   shlibpath_var=LD_LIBRARY_PATH
10277   shlibpath_overrides_runpath=yes
10278   ;;
10279
10280 openbsd*)
10281   version_type=sunos
10282   need_lib_prefix=no
10283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10284   case $host_os in
10285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10286     *)                         need_version=no  ;;
10287   esac
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10292     case $host_os in
10293       openbsd2.[89] | openbsd2.[89].*)
10294         shlibpath_overrides_runpath=no
10295         ;;
10296       *)
10297         shlibpath_overrides_runpath=yes
10298         ;;
10299       esac
10300   else
10301     shlibpath_overrides_runpath=yes
10302   fi
10303   ;;
10304
10305 os2*)
10306   libname_spec='$name'
10307   shrext_cmds=".dll"
10308   need_lib_prefix=no
10309   library_names_spec='$libname${shared_ext} $libname.a'
10310   dynamic_linker='OS/2 ld.exe'
10311   shlibpath_var=LIBPATH
10312   ;;
10313
10314 osf3* | osf4* | osf5*)
10315   version_type=osf
10316   need_lib_prefix=no
10317   need_version=no
10318   soname_spec='${libname}${release}${shared_ext}$major'
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10323   ;;
10324
10325 sco3.2v5*)
10326   version_type=osf
10327   soname_spec='${libname}${release}${shared_ext}$major'
10328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   ;;
10331
10332 solaris*)
10333   version_type=linux
10334   need_lib_prefix=no
10335   need_version=no
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   shlibpath_overrides_runpath=yes
10340   hardcode_into_libs=yes
10341   # ldd complains unless libraries are executable
10342   postinstall_cmds='chmod +x $lib'
10343   ;;
10344
10345 sunos4*)
10346   version_type=sunos
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349   shlibpath_var=LD_LIBRARY_PATH
10350   shlibpath_overrides_runpath=yes
10351   if test "$with_gnu_ld" = yes; then
10352     need_lib_prefix=no
10353   fi
10354   need_version=yes
10355   ;;
10356
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10358   version_type=linux
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   case $host_vendor in
10363     sni)
10364       shlibpath_overrides_runpath=no
10365       need_lib_prefix=no
10366       export_dynamic_flag_spec='${wl}-Blargedynsym'
10367       runpath_var=LD_RUN_PATH
10368       ;;
10369     siemens)
10370       need_lib_prefix=no
10371       ;;
10372     motorola)
10373       need_lib_prefix=no
10374       need_version=no
10375       shlibpath_overrides_runpath=no
10376       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377       ;;
10378   esac
10379   ;;
10380
10381 sysv4*MP*)
10382   if test -d /usr/nec ;then
10383     version_type=linux
10384     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385     soname_spec='$libname${shared_ext}.$major'
10386     shlibpath_var=LD_LIBRARY_PATH
10387   fi
10388   ;;
10389
10390 uts4*)
10391   version_type=linux
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   ;;
10396
10397 *)
10398   dynamic_linker=no
10399   ;;
10400 esac
10401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10402 echo "${ECHO_T}$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10404
10405 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10407 hardcode_action=
10408 if test -n "$hardcode_libdir_flag_spec" || \
10409    test -n "$runpath_var" || \
10410    test "X$hardcode_automatic" = "Xyes" ; then
10411
10412   # We can hardcode non-existant directories.
10413   if test "$hardcode_direct" != no &&
10414      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10415      # have to relink, otherwise we might link with an installed library
10416      # when we should be linking with a yet-to-be-installed one
10417      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10418      test "$hardcode_minus_L" != no; then
10419     # Linking always hardcodes the temporary library directory.
10420     hardcode_action=relink
10421   else
10422     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10423     hardcode_action=immediate
10424   fi
10425 else
10426   # We cannot hardcode anything, or else we can only hardcode existing
10427   # directories.
10428   hardcode_action=unsupported
10429 fi
10430 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10431 echo "${ECHO_T}$hardcode_action" >&6; }
10432
10433 if test "$hardcode_action" = relink; then
10434   # Fast installation is not supported
10435   enable_fast_install=no
10436 elif test "$shlibpath_overrides_runpath" = yes ||
10437      test "$enable_shared" = no; then
10438   # Fast installation is not necessary
10439   enable_fast_install=needless
10440 fi
10441
10442 striplib=
10443 old_striplib=
10444 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10446 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10447   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449   { echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6; }
10451 else
10452 # FIXME - insert some real tests, host_os isn't really good enough
10453   case $host_os in
10454    darwin*)
10455        if test -n "$STRIP" ; then
10456          striplib="$STRIP -x"
10457          { echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6; }
10459        else
10460   { echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6; }
10462 fi
10463        ;;
10464    *)
10465   { echo "$as_me:$LINENO: result: no" >&5
10466 echo "${ECHO_T}no" >&6; }
10467     ;;
10468   esac
10469 fi
10470
10471 if test "x$enable_dlopen" != xyes; then
10472   enable_dlopen=unknown
10473   enable_dlopen_self=unknown
10474   enable_dlopen_self_static=unknown
10475 else
10476   lt_cv_dlopen=no
10477   lt_cv_dlopen_libs=
10478
10479   case $host_os in
10480   beos*)
10481     lt_cv_dlopen="load_add_on"
10482     lt_cv_dlopen_libs=
10483     lt_cv_dlopen_self=yes
10484     ;;
10485
10486   mingw* | pw32*)
10487     lt_cv_dlopen="LoadLibrary"
10488     lt_cv_dlopen_libs=
10489    ;;
10490
10491   cygwin*)
10492     lt_cv_dlopen="dlopen"
10493     lt_cv_dlopen_libs=
10494    ;;
10495
10496   darwin*)
10497   # if libdl is installed we need to link against it
10498     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503   ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-ldl  $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513    Use char because int might match the return type of a GCC
10514    builtin and then its argument prototype would still apply.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char dlopen ();
10519 int
10520 main ()
10521 {
10522 return dlopen ();
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534   (eval "$ac_link") 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } && {
10541          test -z "$ac_c_werror_flag" ||
10542          test ! -s conftest.err
10543        } && test -s conftest$ac_exeext &&
10544        $as_test_x conftest$ac_exeext; then
10545   ac_cv_lib_dl_dlopen=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         ac_cv_lib_dl_dlopen=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554       conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10559 if test $ac_cv_lib_dl_dlopen = yes; then
10560   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561 else
10562
10563     lt_cv_dlopen="dyld"
10564     lt_cv_dlopen_libs=
10565     lt_cv_dlopen_self=yes
10566
10567 fi
10568
10569    ;;
10570
10571   *)
10572     { echo "$as_me:$LINENO: checking for shl_load" >&5
10573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10574 if test "${ac_cv_func_shl_load+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10585 #define shl_load innocuous_shl_load
10586
10587 /* System header to define __stub macros and hopefully few prototypes,
10588     which can conflict with char shl_load (); below.
10589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590     <limits.h> exists even on freestanding compilers.  */
10591
10592 #ifdef __STDC__
10593 # include <limits.h>
10594 #else
10595 # include <assert.h>
10596 #endif
10597
10598 #undef shl_load
10599
10600 /* Override any GCC internal prototype to avoid an error.
10601    Use char because int might match the return type of a GCC
10602    builtin and then its argument prototype would still apply.  */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char shl_load ();
10607 /* The GNU C library defines this for functions which it implements
10608     to always fail with ENOSYS.  Some functions are actually named
10609     something starting with __ and the normal name is an alias.  */
10610 #if defined __stub_shl_load || defined __stub___shl_load
10611 choke me
10612 #endif
10613
10614 int
10615 main ()
10616 {
10617 return shl_load ();
10618   ;
10619   return 0;
10620 }
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626   *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629   (eval "$ac_link") 2>conftest.er1
10630   ac_status=$?
10631   grep -v '^ *+' conftest.er1 >conftest.err
10632   rm -f conftest.er1
10633   cat conftest.err >&5
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); } && {
10636          test -z "$ac_c_werror_flag" ||
10637          test ! -s conftest.err
10638        } && test -s conftest$ac_exeext &&
10639        $as_test_x conftest$ac_exeext; then
10640   ac_cv_func_shl_load=yes
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645         ac_cv_func_shl_load=no
10646 fi
10647
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649       conftest$ac_exeext conftest.$ac_ext
10650 fi
10651 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10652 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10653 if test $ac_cv_func_shl_load = yes; then
10654   lt_cv_dlopen="shl_load"
10655 else
10656   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10657 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10658 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldld  $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671    Use char because int might match the return type of a GCC
10672    builtin and then its argument prototype would still apply.  */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char shl_load ();
10677 int
10678 main ()
10679 {
10680 return shl_load ();
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_link") 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } && {
10699          test -z "$ac_c_werror_flag" ||
10700          test ! -s conftest.err
10701        } && test -s conftest$ac_exeext &&
10702        $as_test_x conftest$ac_exeext; then
10703   ac_cv_lib_dld_shl_load=yes
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708         ac_cv_lib_dld_shl_load=no
10709 fi
10710
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712       conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10714 fi
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10716 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10717 if test $ac_cv_lib_dld_shl_load = yes; then
10718   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10719 else
10720   { echo "$as_me:$LINENO: checking for dlopen" >&5
10721 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10722 if test "${ac_cv_func_dlopen+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10733 #define dlopen innocuous_dlopen
10734
10735 /* System header to define __stub macros and hopefully few prototypes,
10736     which can conflict with char dlopen (); below.
10737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738     <limits.h> exists even on freestanding compilers.  */
10739
10740 #ifdef __STDC__
10741 # include <limits.h>
10742 #else
10743 # include <assert.h>
10744 #endif
10745
10746 #undef dlopen
10747
10748 /* Override any GCC internal prototype to avoid an error.
10749    Use char because int might match the return type of a GCC
10750    builtin and then its argument prototype would still apply.  */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char dlopen ();
10755 /* The GNU C library defines this for functions which it implements
10756     to always fail with ENOSYS.  Some functions are actually named
10757     something starting with __ and the normal name is an alias.  */
10758 #if defined __stub_dlopen || defined __stub___dlopen
10759 choke me
10760 #endif
10761
10762 int
10763 main ()
10764 {
10765 return dlopen ();
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_link") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } && {
10784          test -z "$ac_c_werror_flag" ||
10785          test ! -s conftest.err
10786        } && test -s conftest$ac_exeext &&
10787        $as_test_x conftest$ac_exeext; then
10788   ac_cv_func_dlopen=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793         ac_cv_func_dlopen=no
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797       conftest$ac_exeext conftest.$ac_ext
10798 fi
10799 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10800 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10801 if test $ac_cv_func_dlopen = yes; then
10802   lt_cv_dlopen="dlopen"
10803 else
10804   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10805 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10806 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   ac_check_lib_save_LIBS=$LIBS
10810 LIBS="-ldl  $LIBS"
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819    Use char because int might match the return type of a GCC
10820    builtin and then its argument prototype would still apply.  */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char dlopen ();
10825 int
10826 main ()
10827 {
10828 return dlopen ();
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_link") 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } && {
10847          test -z "$ac_c_werror_flag" ||
10848          test ! -s conftest.err
10849        } && test -s conftest$ac_exeext &&
10850        $as_test_x conftest$ac_exeext; then
10851   ac_cv_lib_dl_dlopen=yes
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856         ac_cv_lib_dl_dlopen=no
10857 fi
10858
10859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10860       conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld  $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881
10882 /* Override any GCC internal prototype to avoid an error.
10883    Use char because int might match the return type of a GCC
10884    builtin and then its argument prototype would still apply.  */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char dlopen ();
10889 int
10890 main ()
10891 {
10892 return dlopen ();
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (ac_try="$ac_link"
10899 case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_link") 2>conftest.er1
10905   ac_status=$?
10906   grep -v '^ *+' conftest.er1 >conftest.err
10907   rm -f conftest.er1
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } && {
10911          test -z "$ac_c_werror_flag" ||
10912          test ! -s conftest.err
10913        } && test -s conftest$ac_exeext &&
10914        $as_test_x conftest$ac_exeext; then
10915   ac_cv_lib_svld_dlopen=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920         ac_cv_lib_svld_dlopen=no
10921 fi
10922
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924       conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10926 fi
10927 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10928 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10929 if test $ac_cv_lib_svld_dlopen = yes; then
10930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10931 else
10932   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-ldld  $LIBS"
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945
10946 /* Override any GCC internal prototype to avoid an error.
10947    Use char because int might match the return type of a GCC
10948    builtin and then its argument prototype would still apply.  */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char dld_link ();
10953 int
10954 main ()
10955 {
10956 return dld_link ();
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_link") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } && {
10975          test -z "$ac_c_werror_flag" ||
10976          test ! -s conftest.err
10977        } && test -s conftest$ac_exeext &&
10978        $as_test_x conftest$ac_exeext; then
10979   ac_cv_lib_dld_dld_link=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984         ac_cv_lib_dld_dld_link=no
10985 fi
10986
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988       conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10993 if test $ac_cv_lib_dld_dld_link = yes; then
10994   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10995 fi
10996
10997
10998 fi
10999
11000
11001 fi
11002
11003
11004 fi
11005
11006
11007 fi
11008
11009
11010 fi
11011
11012     ;;
11013   esac
11014
11015   if test "x$lt_cv_dlopen" != xno; then
11016     enable_dlopen=yes
11017   else
11018     enable_dlopen=no
11019   fi
11020
11021   case $lt_cv_dlopen in
11022   dlopen)
11023     save_CPPFLAGS="$CPPFLAGS"
11024     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11025
11026     save_LDFLAGS="$LDFLAGS"
11027     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11028
11029     save_LIBS="$LIBS"
11030     LIBS="$lt_cv_dlopen_libs $LIBS"
11031
11032     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11033 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11034 if test "${lt_cv_dlopen_self+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037           if test "$cross_compiling" = yes; then :
11038   lt_cv_dlopen_self=cross
11039 else
11040   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11041   lt_status=$lt_dlunknown
11042   cat > conftest.$ac_ext <<EOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11045
11046 #if HAVE_DLFCN_H
11047 #include <dlfcn.h>
11048 #endif
11049
11050 #include <stdio.h>
11051
11052 #ifdef RTLD_GLOBAL
11053 #  define LT_DLGLOBAL           RTLD_GLOBAL
11054 #else
11055 #  ifdef DL_GLOBAL
11056 #    define LT_DLGLOBAL         DL_GLOBAL
11057 #  else
11058 #    define LT_DLGLOBAL         0
11059 #  endif
11060 #endif
11061
11062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11063    find out it does not work in some platform. */
11064 #ifndef LT_DLLAZY_OR_NOW
11065 #  ifdef RTLD_LAZY
11066 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11067 #  else
11068 #    ifdef DL_LAZY
11069 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11070 #    else
11071 #      ifdef RTLD_NOW
11072 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11073 #      else
11074 #        ifdef DL_NOW
11075 #          define LT_DLLAZY_OR_NOW      DL_NOW
11076 #        else
11077 #          define LT_DLLAZY_OR_NOW      0
11078 #        endif
11079 #      endif
11080 #    endif
11081 #  endif
11082 #endif
11083
11084 #ifdef __cplusplus
11085 extern "C" void exit (int);
11086 #endif
11087
11088 void fnord() { int i=42;}
11089 int main ()
11090 {
11091   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092   int status = $lt_dlunknown;
11093
11094   if (self)
11095     {
11096       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11097       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098       /* dlclose (self); */
11099     }
11100
11101     exit (status);
11102 }
11103 EOF
11104   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105   (eval $ac_link) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11109     (./conftest; exit; ) >&5 2>/dev/null
11110     lt_status=$?
11111     case x$lt_status in
11112       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11113       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11114       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11115     esac
11116   else :
11117     # compilation failed
11118     lt_cv_dlopen_self=no
11119   fi
11120 fi
11121 rm -fr conftest*
11122
11123
11124 fi
11125 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11126 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11127
11128     if test "x$lt_cv_dlopen_self" = xyes; then
11129       LDFLAGS="$LDFLAGS $link_static_flag"
11130       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11131 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11132 if test "${lt_cv_dlopen_self_static+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135           if test "$cross_compiling" = yes; then :
11136   lt_cv_dlopen_self_static=cross
11137 else
11138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139   lt_status=$lt_dlunknown
11140   cat > conftest.$ac_ext <<EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11143
11144 #if HAVE_DLFCN_H
11145 #include <dlfcn.h>
11146 #endif
11147
11148 #include <stdio.h>
11149
11150 #ifdef RTLD_GLOBAL
11151 #  define LT_DLGLOBAL           RTLD_GLOBAL
11152 #else
11153 #  ifdef DL_GLOBAL
11154 #    define LT_DLGLOBAL         DL_GLOBAL
11155 #  else
11156 #    define LT_DLGLOBAL         0
11157 #  endif
11158 #endif
11159
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161    find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11163 #  ifdef RTLD_LAZY
11164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11165 #  else
11166 #    ifdef DL_LAZY
11167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11168 #    else
11169 #      ifdef RTLD_NOW
11170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11171 #      else
11172 #        ifdef DL_NOW
11173 #          define LT_DLLAZY_OR_NOW      DL_NOW
11174 #        else
11175 #          define LT_DLLAZY_OR_NOW      0
11176 #        endif
11177 #      endif
11178 #    endif
11179 #  endif
11180 #endif
11181
11182 #ifdef __cplusplus
11183 extern "C" void exit (int);
11184 #endif
11185
11186 void fnord() { int i=42;}
11187 int main ()
11188 {
11189   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190   int status = $lt_dlunknown;
11191
11192   if (self)
11193     {
11194       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11195       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196       /* dlclose (self); */
11197     }
11198
11199     exit (status);
11200 }
11201 EOF
11202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203   (eval $ac_link) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207     (./conftest; exit; ) >&5 2>/dev/null
11208     lt_status=$?
11209     case x$lt_status in
11210       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11213     esac
11214   else :
11215     # compilation failed
11216     lt_cv_dlopen_self_static=no
11217   fi
11218 fi
11219 rm -fr conftest*
11220
11221
11222 fi
11223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11224 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11225     fi
11226
11227     CPPFLAGS="$save_CPPFLAGS"
11228     LDFLAGS="$save_LDFLAGS"
11229     LIBS="$save_LIBS"
11230     ;;
11231   esac
11232
11233   case $lt_cv_dlopen_self in
11234   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235   *) enable_dlopen_self=unknown ;;
11236   esac
11237
11238   case $lt_cv_dlopen_self_static in
11239   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240   *) enable_dlopen_self_static=unknown ;;
11241   esac
11242 fi
11243
11244
11245 # Report which librarie types wil actually be built
11246 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11247 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11248 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11249 echo "${ECHO_T}$can_build_shared" >&6; }
11250
11251 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11252 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11254
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11257 case $host_os in
11258 aix3*)
11259   test "$enable_shared" = yes && enable_static=no
11260   if test -n "$RANLIB"; then
11261     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262     postinstall_cmds='$RANLIB $lib'
11263   fi
11264   ;;
11265
11266 aix4* | aix5*)
11267   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268     test "$enable_shared" = yes && enable_static=no
11269   fi
11270     ;;
11271 esac
11272 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11273 echo "${ECHO_T}$enable_shared" >&6; }
11274
11275 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { echo "$as_me:$LINENO: result: $enable_static" >&5
11280 echo "${ECHO_T}$enable_static" >&6; }
11281
11282 # The else clause should only fire when bootstrapping the
11283 # libtool distribution, otherwise you forgot to ship ltmain.sh
11284 # with your package, and you will get complaints that there are
11285 # no rules to generate ltmain.sh.
11286 if test -f "$ltmain"; then
11287   # See if we are running on zsh, and set the options which allow our commands through
11288   # without removal of \ escapes.
11289   if test -n "${ZSH_VERSION+set}" ; then
11290     setopt NO_GLOB_SUBST
11291   fi
11292   # Now quote all the things that may contain metacharacters while being
11293   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11294   # variables and quote the copies for generation of the libtool script.
11295   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11296     SED SHELL STRIP \
11297     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11298     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11299     deplibs_check_method reload_flag reload_cmds need_locks \
11300     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11301     lt_cv_sys_global_symbol_to_c_name_address \
11302     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11303     old_postinstall_cmds old_postuninstall_cmds \
11304     compiler \
11305     CC \
11306     LD \
11307     lt_prog_compiler_wl \
11308     lt_prog_compiler_pic \
11309     lt_prog_compiler_static \
11310     lt_prog_compiler_no_builtin_flag \
11311     export_dynamic_flag_spec \
11312     thread_safe_flag_spec \
11313     whole_archive_flag_spec \
11314     enable_shared_with_static_runtimes \
11315     old_archive_cmds \
11316     old_archive_from_new_cmds \
11317     predep_objects \
11318     postdep_objects \
11319     predeps \
11320     postdeps \
11321     compiler_lib_search_path \
11322     archive_cmds \
11323     archive_expsym_cmds \
11324     postinstall_cmds \
11325     postuninstall_cmds \
11326     old_archive_from_expsyms_cmds \
11327     allow_undefined_flag \
11328     no_undefined_flag \
11329     export_symbols_cmds \
11330     hardcode_libdir_flag_spec \
11331     hardcode_libdir_flag_spec_ld \
11332     hardcode_libdir_separator \
11333     hardcode_automatic \
11334     module_cmds \
11335     module_expsym_cmds \
11336     lt_cv_prog_compiler_c_o \
11337     exclude_expsyms \
11338     include_expsyms; do
11339
11340     case $var in
11341     old_archive_cmds | \
11342     old_archive_from_new_cmds | \
11343     archive_cmds | \
11344     archive_expsym_cmds | \
11345     module_cmds | \
11346     module_expsym_cmds | \
11347     old_archive_from_expsyms_cmds | \
11348     export_symbols_cmds | \
11349     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11350     postinstall_cmds | postuninstall_cmds | \
11351     old_postinstall_cmds | old_postuninstall_cmds | \
11352     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11353       # Double-quote double-evaled strings.
11354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11355       ;;
11356     *)
11357       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11358       ;;
11359     esac
11360   done
11361
11362   case $lt_echo in
11363   *'\$0 --fallback-echo"')
11364     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11365     ;;
11366   esac
11367
11368 cfgfile="${ofile}T"
11369   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11370   $rm -f "$cfgfile"
11371   { echo "$as_me:$LINENO: creating $ofile" >&5
11372 echo "$as_me: creating $ofile" >&6;}
11373
11374   cat <<__EOF__ >> "$cfgfile"
11375 #! $SHELL
11376
11377 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11378 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11380 #
11381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11382 # Free Software Foundation, Inc.
11383 #
11384 # This file is part of GNU Libtool:
11385 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11386 #
11387 # This program is free software; you can redistribute it and/or modify
11388 # it under the terms of the GNU General Public License as published by
11389 # the Free Software Foundation; either version 2 of the License, or
11390 # (at your option) any later version.
11391 #
11392 # This program is distributed in the hope that it will be useful, but
11393 # WITHOUT ANY WARRANTY; without even the implied warranty of
11394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11395 # General Public License for more details.
11396 #
11397 # You should have received a copy of the GNU General Public License
11398 # along with this program; if not, write to the Free Software
11399 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11400 #
11401 # As a special exception to the GNU General Public License, if you
11402 # distribute this file as part of a program that contains a
11403 # configuration script generated by Autoconf, you may include it under
11404 # the same distribution terms that you use for the rest of that program.
11405
11406 # A sed program that does not truncate output.
11407 SED=$lt_SED
11408
11409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11410 Xsed="$SED -e 1s/^X//"
11411
11412 # The HP-UX ksh and POSIX shell print the target directory to stdout
11413 # if CDPATH is set.
11414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11415
11416 # The names of the tagged configurations supported by this script.
11417 available_tags=
11418
11419 # ### BEGIN LIBTOOL CONFIG
11420
11421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11422
11423 # Shell to use when invoking shell scripts.
11424 SHELL=$lt_SHELL
11425
11426 # Whether or not to build shared libraries.
11427 build_libtool_libs=$enable_shared
11428
11429 # Whether or not to build static libraries.
11430 build_old_libs=$enable_static
11431
11432 # Whether or not to add -lc for building shared libraries.
11433 build_libtool_need_lc=$archive_cmds_need_lc
11434
11435 # Whether or not to disallow shared libs when runtime libs are static
11436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11437
11438 # Whether or not to optimize for fast installation.
11439 fast_install=$enable_fast_install
11440
11441 # The host system.
11442 host_alias=$host_alias
11443 host=$host
11444 host_os=$host_os
11445
11446 # The build system.
11447 build_alias=$build_alias
11448 build=$build
11449 build_os=$build_os
11450
11451 # An echo program that does not interpret backslashes.
11452 echo=$lt_echo
11453
11454 # The archiver.
11455 AR=$lt_AR
11456 AR_FLAGS=$lt_AR_FLAGS
11457
11458 # A C compiler.
11459 LTCC=$lt_LTCC
11460
11461 # A language-specific compiler.
11462 CC=$lt_compiler
11463
11464 # Is the compiler the GNU C compiler?
11465 with_gcc=$GCC
11466
11467 # An ERE matcher.
11468 EGREP=$lt_EGREP
11469
11470 # The linker used to build libraries.
11471 LD=$lt_LD
11472
11473 # Whether we need hard or soft links.
11474 LN_S=$lt_LN_S
11475
11476 # A BSD-compatible nm program.
11477 NM=$lt_NM
11478
11479 # A symbol stripping program
11480 STRIP=$lt_STRIP
11481
11482 # Used to examine libraries when file_magic_cmd begins "file"
11483 MAGIC_CMD=$MAGIC_CMD
11484
11485 # Used on cygwin: DLL creation program.
11486 DLLTOOL="$DLLTOOL"
11487
11488 # Used on cygwin: object dumper.
11489 OBJDUMP="$OBJDUMP"
11490
11491 # Used on cygwin: assembler.
11492 AS="$AS"
11493
11494 # The name of the directory that contains temporary libtool files.
11495 objdir=$objdir
11496
11497 # How to create reloadable object files.
11498 reload_flag=$lt_reload_flag
11499 reload_cmds=$lt_reload_cmds
11500
11501 # How to pass a linker flag through the compiler.
11502 wl=$lt_lt_prog_compiler_wl
11503
11504 # Object file suffix (normally "o").
11505 objext="$ac_objext"
11506
11507 # Old archive suffix (normally "a").
11508 libext="$libext"
11509
11510 # Shared library suffix (normally ".so").
11511 shrext_cmds='$shrext_cmds'
11512
11513 # Executable file suffix (normally "").
11514 exeext="$exeext"
11515
11516 # Additional compiler flags for building library objects.
11517 pic_flag=$lt_lt_prog_compiler_pic
11518 pic_mode=$pic_mode
11519
11520 # What is the maximum length of a command?
11521 max_cmd_len=$lt_cv_sys_max_cmd_len
11522
11523 # Does compiler simultaneously support -c and -o options?
11524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11525
11526 # Must we lock files when doing compilation?
11527 need_locks=$lt_need_locks
11528
11529 # Do we need the lib prefix for modules?
11530 need_lib_prefix=$need_lib_prefix
11531
11532 # Do we need a version for libraries?
11533 need_version=$need_version
11534
11535 # Whether dlopen is supported.
11536 dlopen_support=$enable_dlopen
11537
11538 # Whether dlopen of programs is supported.
11539 dlopen_self=$enable_dlopen_self
11540
11541 # Whether dlopen of statically linked programs is supported.
11542 dlopen_self_static=$enable_dlopen_self_static
11543
11544 # Compiler flag to prevent dynamic linking.
11545 link_static_flag=$lt_lt_prog_compiler_static
11546
11547 # Compiler flag to turn off builtin functions.
11548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11549
11550 # Compiler flag to allow reflexive dlopens.
11551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11552
11553 # Compiler flag to generate shared objects directly from archives.
11554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11555
11556 # Compiler flag to generate thread-safe objects.
11557 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11558
11559 # Library versioning type.
11560 version_type=$version_type
11561
11562 # Format of library name prefix.
11563 libname_spec=$lt_libname_spec
11564
11565 # List of archive names.  First name is the real one, the rest are links.
11566 # The last name is the one that the linker finds with -lNAME.
11567 library_names_spec=$lt_library_names_spec
11568
11569 # The coded name of the library, if different from the real name.
11570 soname_spec=$lt_soname_spec
11571
11572 # Commands used to build and install an old-style archive.
11573 RANLIB=$lt_RANLIB
11574 old_archive_cmds=$lt_old_archive_cmds
11575 old_postinstall_cmds=$lt_old_postinstall_cmds
11576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11577
11578 # Create an old-style archive from a shared archive.
11579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11580
11581 # Create a temporary old-style archive to link instead of a shared archive.
11582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11583
11584 # Commands used to build and install a shared archive.
11585 archive_cmds=$lt_archive_cmds
11586 archive_expsym_cmds=$lt_archive_expsym_cmds
11587 postinstall_cmds=$lt_postinstall_cmds
11588 postuninstall_cmds=$lt_postuninstall_cmds
11589
11590 # Commands used to build a loadable module (assumed same as above if empty)
11591 module_cmds=$lt_module_cmds
11592 module_expsym_cmds=$lt_module_expsym_cmds
11593
11594 # Commands to strip libraries.
11595 old_striplib=$lt_old_striplib
11596 striplib=$lt_striplib
11597
11598 # Dependencies to place before the objects being linked to create a
11599 # shared library.
11600 predep_objects=$lt_predep_objects
11601
11602 # Dependencies to place after the objects being linked to create a
11603 # shared library.
11604 postdep_objects=$lt_postdep_objects
11605
11606 # Dependencies to place before the objects being linked to create a
11607 # shared library.
11608 predeps=$lt_predeps
11609
11610 # Dependencies to place after the objects being linked to create a
11611 # shared library.
11612 postdeps=$lt_postdeps
11613
11614 # The library search path used internally by the compiler when linking
11615 # a shared library.
11616 compiler_lib_search_path=$lt_compiler_lib_search_path
11617
11618 # Method to check whether dependent libraries are shared objects.
11619 deplibs_check_method=$lt_deplibs_check_method
11620
11621 # Command to use when deplibs_check_method == file_magic.
11622 file_magic_cmd=$lt_file_magic_cmd
11623
11624 # Flag that allows shared libraries with undefined symbols to be built.
11625 allow_undefined_flag=$lt_allow_undefined_flag
11626
11627 # Flag that forces no undefined symbols.
11628 no_undefined_flag=$lt_no_undefined_flag
11629
11630 # Commands used to finish a libtool library installation in a directory.
11631 finish_cmds=$lt_finish_cmds
11632
11633 # Same as above, but a single script fragment to be evaled but not shown.
11634 finish_eval=$lt_finish_eval
11635
11636 # Take the output of nm and produce a listing of raw symbols and C names.
11637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11638
11639 # Transform the output of nm in a proper C declaration
11640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11641
11642 # Transform the output of nm in a C name address pair
11643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11644
11645 # This is the shared library runtime path variable.
11646 runpath_var=$runpath_var
11647
11648 # This is the shared library path variable.
11649 shlibpath_var=$shlibpath_var
11650
11651 # Is shlibpath searched before the hard-coded library search path?
11652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11653
11654 # How to hardcode a shared library path into an executable.
11655 hardcode_action=$hardcode_action
11656
11657 # Whether we should hardcode library paths into libraries.
11658 hardcode_into_libs=$hardcode_into_libs
11659
11660 # Flag to hardcode \$libdir into a binary during linking.
11661 # This must work even if \$libdir does not exist.
11662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11663
11664 # If ld is used when linking, flag to hardcode \$libdir into
11665 # a binary during linking. This must work even if \$libdir does
11666 # not exist.
11667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11668
11669 # Whether we need a single -rpath flag with a separated argument.
11670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11671
11672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_direct=$hardcode_direct
11675
11676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11677 # resulting binary.
11678 hardcode_minus_L=$hardcode_minus_L
11679
11680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11681 # the resulting binary.
11682 hardcode_shlibpath_var=$hardcode_shlibpath_var
11683
11684 # Set to yes if building a shared library automatically hardcodes DIR into the library
11685 # and all subsequent libraries and executables linked against it.
11686 hardcode_automatic=$hardcode_automatic
11687
11688 # Variables whose values should be saved in libtool wrapper scripts and
11689 # restored at relink time.
11690 variables_saved_for_relink="$variables_saved_for_relink"
11691
11692 # Whether libtool must link a program against all its dependency libraries.
11693 link_all_deplibs=$link_all_deplibs
11694
11695 # Compile-time system search path for libraries
11696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11697
11698 # Run-time system search path for libraries
11699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11700
11701 # Fix the shell variable \$srcfile for the compiler.
11702 fix_srcfile_path="$fix_srcfile_path"
11703
11704 # Set to yes if exported symbols are required.
11705 always_export_symbols=$always_export_symbols
11706
11707 # The commands to list exported symbols.
11708 export_symbols_cmds=$lt_export_symbols_cmds
11709
11710 # The commands to extract the exported symbol list from a shared archive.
11711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11712
11713 # Symbols that should not be listed in the preloaded symbols.
11714 exclude_expsyms=$lt_exclude_expsyms
11715
11716 # Symbols that must always be exported.
11717 include_expsyms=$lt_include_expsyms
11718
11719 # ### END LIBTOOL CONFIG
11720
11721 __EOF__
11722
11723
11724   case $host_os in
11725   aix3*)
11726     cat <<\EOF >> "$cfgfile"
11727
11728 # AIX sometimes has problems with the GCC collect2 program.  For some
11729 # reason, if we set the COLLECT_NAMES environment variable, the problems
11730 # vanish in a puff of smoke.
11731 if test "X${COLLECT_NAMES+set}" != Xset; then
11732   COLLECT_NAMES=
11733   export COLLECT_NAMES
11734 fi
11735 EOF
11736     ;;
11737   esac
11738
11739   # We use sed instead of cat because bash on DJGPP gets confused if
11740   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11741   # text mode, it properly converts lines to CR/LF.  This bash problem
11742   # is reportedly fixed, but why not run on old versions too?
11743   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11744
11745   mv -f "$cfgfile" "$ofile" || \
11746     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11747   chmod +x "$ofile"
11748
11749 else
11750   # If there is no Makefile yet, we rely on a make rule to execute
11751   # `config.status --recheck' to rerun these tests and create the
11752   # libtool script then.
11753   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11754   if test -f "$ltmain_in"; then
11755     test -f Makefile && make "$ltmain"
11756   fi
11757 fi
11758
11759
11760 ac_ext=c
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766 CC="$lt_save_CC"
11767
11768
11769 # Check whether --with-tags was given.
11770 if test "${with_tags+set}" = set; then
11771   withval=$with_tags; tagnames="$withval"
11772 fi
11773
11774
11775 if test -f "$ltmain" && test -n "$tagnames"; then
11776   if test ! -f "${ofile}"; then
11777     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11778 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11779   fi
11780
11781   if test -z "$LTCC"; then
11782     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11783     if test -z "$LTCC"; then
11784       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11785 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11786     else
11787       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11788 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11789     fi
11790   fi
11791
11792   # Extract list of available tagged configurations in $ofile.
11793   # Note that this assumes the entire list is on one line.
11794   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11795
11796   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11797   for tagname in $tagnames; do
11798     IFS="$lt_save_ifs"
11799     # Check whether tagname contains only valid characters
11800     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11801     "") ;;
11802     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11803 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11804    { (exit 1); exit 1; }; }
11805         ;;
11806     esac
11807
11808     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11809     then
11810       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11811 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11812    { (exit 1); exit 1; }; }
11813     fi
11814
11815     # Update the list of available tags.
11816     if test -n "$tagname"; then
11817       echo appending configuration tag \"$tagname\" to $ofile
11818
11819       case $tagname in
11820       CXX)
11821         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11822             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11823             (test "X$CXX" != "Xg++"))) ; then
11824           :
11825         else
11826           tagname=""
11827         fi
11828         ;;
11829
11830       F77)
11831         if test -n "$F77" && test "X$F77" != "Xno"; then
11832           :
11833         else
11834           tagname=""
11835         fi
11836         ;;
11837
11838       GCJ)
11839         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11840           :
11841         else
11842           tagname=""
11843         fi
11844         ;;
11845
11846       RC)
11847
11848
11849 # Source file extension for RC test sources.
11850 ac_ext=rc
11851
11852 # Object file extension for compiled RC test sources.
11853 objext=o
11854 objext_RC=$objext
11855
11856 # Code to be used in simple compile tests
11857 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11858
11859 # Code to be used in simple link tests
11860 lt_simple_link_test_code="$lt_simple_compile_test_code"
11861
11862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11863
11864 # If no C compiler was specified, use CC.
11865 LTCC=${LTCC-"$CC"}
11866
11867 # Allow CC to be a program name with arguments.
11868 compiler=$CC
11869
11870
11871 # save warnings/boilerplate of simple test code
11872 ac_outfile=conftest.$ac_objext
11873 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11875 _lt_compiler_boilerplate=`cat conftest.err`
11876 $rm conftest*
11877
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_linker_boilerplate=`cat conftest.err`
11882 $rm conftest*
11883
11884
11885 # Allow CC to be a program name with arguments.
11886 lt_save_CC="$CC"
11887 CC=${RC-"windres"}
11888 compiler=$CC
11889 compiler_RC=$CC
11890 for cc_temp in $compiler""; do
11891   case $cc_temp in
11892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11894     \-*) ;;
11895     *) break;;
11896   esac
11897 done
11898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11899
11900 lt_cv_prog_compiler_c_o_RC=yes
11901
11902 # The else clause should only fire when bootstrapping the
11903 # libtool distribution, otherwise you forgot to ship ltmain.sh
11904 # with your package, and you will get complaints that there are
11905 # no rules to generate ltmain.sh.
11906 if test -f "$ltmain"; then
11907   # See if we are running on zsh, and set the options which allow our commands through
11908   # without removal of \ escapes.
11909   if test -n "${ZSH_VERSION+set}" ; then
11910     setopt NO_GLOB_SUBST
11911   fi
11912   # Now quote all the things that may contain metacharacters while being
11913   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11914   # variables and quote the copies for generation of the libtool script.
11915   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11916     SED SHELL STRIP \
11917     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11918     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11919     deplibs_check_method reload_flag reload_cmds need_locks \
11920     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11921     lt_cv_sys_global_symbol_to_c_name_address \
11922     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11923     old_postinstall_cmds old_postuninstall_cmds \
11924     compiler_RC \
11925     CC_RC \
11926     LD_RC \
11927     lt_prog_compiler_wl_RC \
11928     lt_prog_compiler_pic_RC \
11929     lt_prog_compiler_static_RC \
11930     lt_prog_compiler_no_builtin_flag_RC \
11931     export_dynamic_flag_spec_RC \
11932     thread_safe_flag_spec_RC \
11933     whole_archive_flag_spec_RC \
11934     enable_shared_with_static_runtimes_RC \
11935     old_archive_cmds_RC \
11936     old_archive_from_new_cmds_RC \
11937     predep_objects_RC \
11938     postdep_objects_RC \
11939     predeps_RC \
11940     postdeps_RC \
11941     compiler_lib_search_path_RC \
11942     archive_cmds_RC \
11943     archive_expsym_cmds_RC \
11944     postinstall_cmds_RC \
11945     postuninstall_cmds_RC \
11946     old_archive_from_expsyms_cmds_RC \
11947     allow_undefined_flag_RC \
11948     no_undefined_flag_RC \
11949     export_symbols_cmds_RC \
11950     hardcode_libdir_flag_spec_RC \
11951     hardcode_libdir_flag_spec_ld_RC \
11952     hardcode_libdir_separator_RC \
11953     hardcode_automatic_RC \
11954     module_cmds_RC \
11955     module_expsym_cmds_RC \
11956     lt_cv_prog_compiler_c_o_RC \
11957     exclude_expsyms_RC \
11958     include_expsyms_RC; do
11959
11960     case $var in
11961     old_archive_cmds_RC | \
11962     old_archive_from_new_cmds_RC | \
11963     archive_cmds_RC | \
11964     archive_expsym_cmds_RC | \
11965     module_cmds_RC | \
11966     module_expsym_cmds_RC | \
11967     old_archive_from_expsyms_cmds_RC | \
11968     export_symbols_cmds_RC | \
11969     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11970     postinstall_cmds | postuninstall_cmds | \
11971     old_postinstall_cmds | old_postuninstall_cmds | \
11972     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11973       # Double-quote double-evaled strings.
11974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11975       ;;
11976     *)
11977       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11978       ;;
11979     esac
11980   done
11981
11982   case $lt_echo in
11983   *'\$0 --fallback-echo"')
11984     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11985     ;;
11986   esac
11987
11988 cfgfile="$ofile"
11989
11990   cat <<__EOF__ >> "$cfgfile"
11991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11992
11993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11994
11995 # Shell to use when invoking shell scripts.
11996 SHELL=$lt_SHELL
11997
11998 # Whether or not to build shared libraries.
11999 build_libtool_libs=$enable_shared
12000
12001 # Whether or not to build static libraries.
12002 build_old_libs=$enable_static
12003
12004 # Whether or not to add -lc for building shared libraries.
12005 build_libtool_need_lc=$archive_cmds_need_lc_RC
12006
12007 # Whether or not to disallow shared libs when runtime libs are static
12008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12009
12010 # Whether or not to optimize for fast installation.
12011 fast_install=$enable_fast_install
12012
12013 # The host system.
12014 host_alias=$host_alias
12015 host=$host
12016 host_os=$host_os
12017
12018 # The build system.
12019 build_alias=$build_alias
12020 build=$build
12021 build_os=$build_os
12022
12023 # An echo program that does not interpret backslashes.
12024 echo=$lt_echo
12025
12026 # The archiver.
12027 AR=$lt_AR
12028 AR_FLAGS=$lt_AR_FLAGS
12029
12030 # A C compiler.
12031 LTCC=$lt_LTCC
12032
12033 # A language-specific compiler.
12034 CC=$lt_compiler_RC
12035
12036 # Is the compiler the GNU C compiler?
12037 with_gcc=$GCC_RC
12038
12039 # An ERE matcher.
12040 EGREP=$lt_EGREP
12041
12042 # The linker used to build libraries.
12043 LD=$lt_LD_RC
12044
12045 # Whether we need hard or soft links.
12046 LN_S=$lt_LN_S
12047
12048 # A BSD-compatible nm program.
12049 NM=$lt_NM
12050
12051 # A symbol stripping program
12052 STRIP=$lt_STRIP
12053
12054 # Used to examine libraries when file_magic_cmd begins "file"
12055 MAGIC_CMD=$MAGIC_CMD
12056
12057 # Used on cygwin: DLL creation program.
12058 DLLTOOL="$DLLTOOL"
12059
12060 # Used on cygwin: object dumper.
12061 OBJDUMP="$OBJDUMP"
12062
12063 # Used on cygwin: assembler.
12064 AS="$AS"
12065
12066 # The name of the directory that contains temporary libtool files.
12067 objdir=$objdir
12068
12069 # How to create reloadable object files.
12070 reload_flag=$lt_reload_flag
12071 reload_cmds=$lt_reload_cmds
12072
12073 # How to pass a linker flag through the compiler.
12074 wl=$lt_lt_prog_compiler_wl_RC
12075
12076 # Object file suffix (normally "o").
12077 objext="$ac_objext"
12078
12079 # Old archive suffix (normally "a").
12080 libext="$libext"
12081
12082 # Shared library suffix (normally ".so").
12083 shrext_cmds='$shrext_cmds'
12084
12085 # Executable file suffix (normally "").
12086 exeext="$exeext"
12087
12088 # Additional compiler flags for building library objects.
12089 pic_flag=$lt_lt_prog_compiler_pic_RC
12090 pic_mode=$pic_mode
12091
12092 # What is the maximum length of a command?
12093 max_cmd_len=$lt_cv_sys_max_cmd_len
12094
12095 # Does compiler simultaneously support -c and -o options?
12096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12097
12098 # Must we lock files when doing compilation?
12099 need_locks=$lt_need_locks
12100
12101 # Do we need the lib prefix for modules?
12102 need_lib_prefix=$need_lib_prefix
12103
12104 # Do we need a version for libraries?
12105 need_version=$need_version
12106
12107 # Whether dlopen is supported.
12108 dlopen_support=$enable_dlopen
12109
12110 # Whether dlopen of programs is supported.
12111 dlopen_self=$enable_dlopen_self
12112
12113 # Whether dlopen of statically linked programs is supported.
12114 dlopen_self_static=$enable_dlopen_self_static
12115
12116 # Compiler flag to prevent dynamic linking.
12117 link_static_flag=$lt_lt_prog_compiler_static_RC
12118
12119 # Compiler flag to turn off builtin functions.
12120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12121
12122 # Compiler flag to allow reflexive dlopens.
12123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12124
12125 # Compiler flag to generate shared objects directly from archives.
12126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12127
12128 # Compiler flag to generate thread-safe objects.
12129 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12130
12131 # Library versioning type.
12132 version_type=$version_type
12133
12134 # Format of library name prefix.
12135 libname_spec=$lt_libname_spec
12136
12137 # List of archive names.  First name is the real one, the rest are links.
12138 # The last name is the one that the linker finds with -lNAME.
12139 library_names_spec=$lt_library_names_spec
12140
12141 # The coded name of the library, if different from the real name.
12142 soname_spec=$lt_soname_spec
12143
12144 # Commands used to build and install an old-style archive.
12145 RANLIB=$lt_RANLIB
12146 old_archive_cmds=$lt_old_archive_cmds_RC
12147 old_postinstall_cmds=$lt_old_postinstall_cmds
12148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12149
12150 # Create an old-style archive from a shared archive.
12151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12152
12153 # Create a temporary old-style archive to link instead of a shared archive.
12154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12155
12156 # Commands used to build and install a shared archive.
12157 archive_cmds=$lt_archive_cmds_RC
12158 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12159 postinstall_cmds=$lt_postinstall_cmds
12160 postuninstall_cmds=$lt_postuninstall_cmds
12161
12162 # Commands used to build a loadable module (assumed same as above if empty)
12163 module_cmds=$lt_module_cmds_RC
12164 module_expsym_cmds=$lt_module_expsym_cmds_RC
12165
12166 # Commands to strip libraries.
12167 old_striplib=$lt_old_striplib
12168 striplib=$lt_striplib
12169
12170 # Dependencies to place before the objects being linked to create a
12171 # shared library.
12172 predep_objects=$lt_predep_objects_RC
12173
12174 # Dependencies to place after the objects being linked to create a
12175 # shared library.
12176 postdep_objects=$lt_postdep_objects_RC
12177
12178 # Dependencies to place before the objects being linked to create a
12179 # shared library.
12180 predeps=$lt_predeps_RC
12181
12182 # Dependencies to place after the objects being linked to create a
12183 # shared library.
12184 postdeps=$lt_postdeps_RC
12185
12186 # The library search path used internally by the compiler when linking
12187 # a shared library.
12188 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12189
12190 # Method to check whether dependent libraries are shared objects.
12191 deplibs_check_method=$lt_deplibs_check_method
12192
12193 # Command to use when deplibs_check_method == file_magic.
12194 file_magic_cmd=$lt_file_magic_cmd
12195
12196 # Flag that allows shared libraries with undefined symbols to be built.
12197 allow_undefined_flag=$lt_allow_undefined_flag_RC
12198
12199 # Flag that forces no undefined symbols.
12200 no_undefined_flag=$lt_no_undefined_flag_RC
12201
12202 # Commands used to finish a libtool library installation in a directory.
12203 finish_cmds=$lt_finish_cmds
12204
12205 # Same as above, but a single script fragment to be evaled but not shown.
12206 finish_eval=$lt_finish_eval
12207
12208 # Take the output of nm and produce a listing of raw symbols and C names.
12209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12210
12211 # Transform the output of nm in a proper C declaration
12212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12213
12214 # Transform the output of nm in a C name address pair
12215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12216
12217 # This is the shared library runtime path variable.
12218 runpath_var=$runpath_var
12219
12220 # This is the shared library path variable.
12221 shlibpath_var=$shlibpath_var
12222
12223 # Is shlibpath searched before the hard-coded library search path?
12224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12225
12226 # How to hardcode a shared library path into an executable.
12227 hardcode_action=$hardcode_action_RC
12228
12229 # Whether we should hardcode library paths into libraries.
12230 hardcode_into_libs=$hardcode_into_libs
12231
12232 # Flag to hardcode \$libdir into a binary during linking.
12233 # This must work even if \$libdir does not exist.
12234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12235
12236 # If ld is used when linking, flag to hardcode \$libdir into
12237 # a binary during linking. This must work even if \$libdir does
12238 # not exist.
12239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12240
12241 # Whether we need a single -rpath flag with a separated argument.
12242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12243
12244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12245 # resulting binary.
12246 hardcode_direct=$hardcode_direct_RC
12247
12248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12249 # resulting binary.
12250 hardcode_minus_L=$hardcode_minus_L_RC
12251
12252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12253 # the resulting binary.
12254 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12255
12256 # Set to yes if building a shared library automatically hardcodes DIR into the library
12257 # and all subsequent libraries and executables linked against it.
12258 hardcode_automatic=$hardcode_automatic_RC
12259
12260 # Variables whose values should be saved in libtool wrapper scripts and
12261 # restored at relink time.
12262 variables_saved_for_relink="$variables_saved_for_relink"
12263
12264 # Whether libtool must link a program against all its dependency libraries.
12265 link_all_deplibs=$link_all_deplibs_RC
12266
12267 # Compile-time system search path for libraries
12268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12269
12270 # Run-time system search path for libraries
12271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12272
12273 # Fix the shell variable \$srcfile for the compiler.
12274 fix_srcfile_path="$fix_srcfile_path_RC"
12275
12276 # Set to yes if exported symbols are required.
12277 always_export_symbols=$always_export_symbols_RC
12278
12279 # The commands to list exported symbols.
12280 export_symbols_cmds=$lt_export_symbols_cmds_RC
12281
12282 # The commands to extract the exported symbol list from a shared archive.
12283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12284
12285 # Symbols that should not be listed in the preloaded symbols.
12286 exclude_expsyms=$lt_exclude_expsyms_RC
12287
12288 # Symbols that must always be exported.
12289 include_expsyms=$lt_include_expsyms_RC
12290
12291 # ### END LIBTOOL TAG CONFIG: $tagname
12292
12293 __EOF__
12294
12295
12296 else
12297   # If there is no Makefile yet, we rely on a make rule to execute
12298   # `config.status --recheck' to rerun these tests and create the
12299   # libtool script then.
12300   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12301   if test -f "$ltmain_in"; then
12302     test -f Makefile && make "$ltmain"
12303   fi
12304 fi
12305
12306
12307 ac_ext=c
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312
12313 CC="$lt_save_CC"
12314
12315         ;;
12316
12317       *)
12318         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12319 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12320    { (exit 1); exit 1; }; }
12321         ;;
12322       esac
12323
12324       # Append the new tag name to the list of available tags.
12325       if test -n "$tagname" ; then
12326       available_tags="$available_tags $tagname"
12327     fi
12328     fi
12329   done
12330   IFS="$lt_save_ifs"
12331
12332   # Now substitute the updated list of available tags.
12333   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12334     mv "${ofile}T" "$ofile"
12335     chmod +x "$ofile"
12336   else
12337     rm -f "${ofile}T"
12338     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12339 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12340    { (exit 1); exit 1; }; }
12341   fi
12342 fi
12343
12344
12345
12346 # This can be used to rebuild libtool when needed
12347 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12348
12349 # Always use our own libtool.
12350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12351
12352 # Prevent multiple expansion
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363 ol_link_perl=no
12364 if test $ol_enable_perl != no ; then
12365         # Extract the first word of "perl", so it can be a program name with args.
12366 set dummy perl; ac_word=$2
12367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12369 if test "${ac_cv_path_PERLBIN+set}" = set; then
12370   echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372   case $PERLBIN in
12373   [\\/]* | ?:[\\/]*)
12374   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12375   ;;
12376   *)
12377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12379 do
12380   IFS=$as_save_IFS
12381   test -z "$as_dir" && as_dir=.
12382   for ac_exec_ext in '' $ac_executable_extensions; do
12383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12386     break 2
12387   fi
12388 done
12389 done
12390 IFS=$as_save_IFS
12391
12392   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12393   ;;
12394 esac
12395 fi
12396 PERLBIN=$ac_cv_path_PERLBIN
12397 if test -n "$PERLBIN"; then
12398   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12399 echo "${ECHO_T}$PERLBIN" >&6; }
12400 else
12401   { echo "$as_me:$LINENO: result: no" >&5
12402 echo "${ECHO_T}no" >&6; }
12403 fi
12404
12405
12406
12407         if test "no$PERLBIN" = "no" ; then
12408                 if test $ol_enable_perl = yes ; then
12409                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12410 echo "$as_me: error: could not locate perl" >&2;}
12411    { (exit 1); exit 1; }; }
12412                 fi
12413
12414         else
12415                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12416                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12417
12418                 if test x"$ol_enable_perl" = "xyes" ; then
12419                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12420                 else
12421                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12422                 fi
12423                                 ol_link_perl=yes
12424         fi
12425 fi
12426
12427 ac_ext=c
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12434 # On Suns, sometimes $CPP names a directory.
12435 if test -n "$CPP" && test -d "$CPP"; then
12436   CPP=
12437 fi
12438 if test -z "$CPP"; then
12439   if test "${ac_cv_prog_CPP+set}" = set; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442       # Double quotes because CPP needs to be expanded
12443     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12444     do
12445       ac_preproc_ok=false
12446 for ac_c_preproc_warn_flag in '' yes
12447 do
12448   # Use a header file that comes with gcc, so configuring glibc
12449   # with a fresh cross-compiler works.
12450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12451   # <limits.h> exists even on freestanding compilers.
12452   # On the NeXT, cc -E runs the code through the compiler's parser,
12453   # not just through cpp. "Syntax error" is here to catch this case.
12454   cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460 #ifdef __STDC__
12461 # include <limits.h>
12462 #else
12463 # include <assert.h>
12464 #endif
12465                      Syntax error
12466 _ACEOF
12467 if { (ac_try="$ac_cpp conftest.$ac_ext"
12468 case "(($ac_try" in
12469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470   *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12474   ac_status=$?
12475   grep -v '^ *+' conftest.er1 >conftest.err
12476   rm -f conftest.er1
12477   cat conftest.err >&5
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } >/dev/null && {
12480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12481          test ! -s conftest.err
12482        }; then
12483   :
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488   # Broken: fails on valid input.
12489 continue
12490 fi
12491
12492 rm -f conftest.err conftest.$ac_ext
12493
12494   # OK, works on sane cases.  Now check whether nonexistent headers
12495   # can be detected and how.
12496   cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502 #include <ac_nonexistent.h>
12503 _ACEOF
12504 if { (ac_try="$ac_cpp conftest.$ac_ext"
12505 case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } >/dev/null && {
12517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12518          test ! -s conftest.err
12519        }; then
12520   # Broken: success on invalid input.
12521 continue
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526   # Passes both tests.
12527 ac_preproc_ok=:
12528 break
12529 fi
12530
12531 rm -f conftest.err conftest.$ac_ext
12532
12533 done
12534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12535 rm -f conftest.err conftest.$ac_ext
12536 if $ac_preproc_ok; then
12537   break
12538 fi
12539
12540     done
12541     ac_cv_prog_CPP=$CPP
12542
12543 fi
12544   CPP=$ac_cv_prog_CPP
12545 else
12546   ac_cv_prog_CPP=$CPP
12547 fi
12548 { echo "$as_me:$LINENO: result: $CPP" >&5
12549 echo "${ECHO_T}$CPP" >&6; }
12550 ac_preproc_ok=false
12551 for ac_c_preproc_warn_flag in '' yes
12552 do
12553   # Use a header file that comes with gcc, so configuring glibc
12554   # with a fresh cross-compiler works.
12555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556   # <limits.h> exists even on freestanding compilers.
12557   # On the NeXT, cc -E runs the code through the compiler's parser,
12558   # not just through cpp. "Syntax error" is here to catch this case.
12559   cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 #ifdef __STDC__
12566 # include <limits.h>
12567 #else
12568 # include <assert.h>
12569 #endif
12570                      Syntax error
12571 _ACEOF
12572 if { (ac_try="$ac_cpp conftest.$ac_ext"
12573 case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12579   ac_status=$?
12580   grep -v '^ *+' conftest.er1 >conftest.err
12581   rm -f conftest.er1
12582   cat conftest.err >&5
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } >/dev/null && {
12585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12586          test ! -s conftest.err
12587        }; then
12588   :
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593   # Broken: fails on valid input.
12594 continue
12595 fi
12596
12597 rm -f conftest.err conftest.$ac_ext
12598
12599   # OK, works on sane cases.  Now check whether nonexistent headers
12600   # can be detected and how.
12601   cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 #include <ac_nonexistent.h>
12608 _ACEOF
12609 if { (ac_try="$ac_cpp conftest.$ac_ext"
12610 case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616   ac_status=$?
12617   grep -v '^ *+' conftest.er1 >conftest.err
12618   rm -f conftest.er1
12619   cat conftest.err >&5
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } >/dev/null && {
12622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12623          test ! -s conftest.err
12624        }; then
12625   # Broken: success on invalid input.
12626 continue
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631   # Passes both tests.
12632 ac_preproc_ok=:
12633 break
12634 fi
12635
12636 rm -f conftest.err conftest.$ac_ext
12637
12638 done
12639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12640 rm -f conftest.err conftest.$ac_ext
12641 if $ac_preproc_ok; then
12642   :
12643 else
12644   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12645 See \`config.log' for more details." >&5
12646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12647 See \`config.log' for more details." >&2;}
12648    { (exit 1); exit 1; }; }
12649 fi
12650
12651 ac_ext=c
12652 ac_cpp='$CPP $CPPFLAGS'
12653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12656
12657 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12658 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12659 if test "${ol_cv_msvc+set}" = set; then
12660   echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662   cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668
12669 #ifndef _MSC_VER
12670 #include <__FOO__/generate_error.h>
12671 #endif
12672
12673 _ACEOF
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } >/dev/null && {
12687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        }; then
12690   ol_cv_msvc=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695   ol_cv_msvc=no
12696 fi
12697
12698 rm -f conftest.err conftest.$ac_ext
12699 fi
12700 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12701 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12702
12703 case $host_os in
12704   *mingw32* ) ac_cv_mingw32=yes ;;
12705   *cygwin* ) ac_cv_cygwin=yes ;;
12706   *interix* ) ac_cv_interix=yes ;;
12707 esac
12708
12709
12710
12711
12712 cat >>confdefs.h <<_ACEOF
12713 #define EXEEXT "${EXEEXT}"
12714 _ACEOF
12715
12716
12717 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12718 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12719 if test "${ac_cv_lib_be_be_app+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722   ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lbe -lroot -lnet $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h.  */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h.  */
12730
12731 /* Override any GCC internal prototype to avoid an error.
12732    Use char because int might match the return type of a GCC
12733    builtin and then its argument prototype would still apply.  */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char be_app ();
12738 int
12739 main ()
12740 {
12741 return be_app ();
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_link") 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } && {
12760          test -z "$ac_c_werror_flag" ||
12761          test ! -s conftest.err
12762        } && test -s conftest$ac_exeext &&
12763        $as_test_x conftest$ac_exeext; then
12764   ac_cv_lib_be_be_app=yes
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769         ac_cv_lib_be_be_app=no
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12773       conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12775 fi
12776 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12777 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12778 if test $ac_cv_lib_be_be_app = yes; then
12779   LIBS="$LIBS -lbe -lroot -lnet"
12780 else
12781   :
12782 fi
12783
12784
12785 ac_ext=c
12786 ac_cpp='$CPP $CPPFLAGS'
12787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12790 if test -n "$ac_tool_prefix"; then
12791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12795 if test "${ac_cv_prog_CC+set}" = set; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798   if test -n "$CC"; then
12799   ac_cv_prog_CC="$CC" # Let the user override the test.
12800 else
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806   for ac_exec_ext in '' $ac_executable_extensions; do
12807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813 done
12814 IFS=$as_save_IFS
12815
12816 fi
12817 fi
12818 CC=$ac_cv_prog_CC
12819 if test -n "$CC"; then
12820   { echo "$as_me:$LINENO: result: $CC" >&5
12821 echo "${ECHO_T}$CC" >&6; }
12822 else
12823   { echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6; }
12825 fi
12826
12827
12828 fi
12829 if test -z "$ac_cv_prog_CC"; then
12830   ac_ct_CC=$CC
12831   # Extract the first word of "gcc", so it can be a program name with args.
12832 set dummy gcc; ac_word=$2
12833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   if test -n "$ac_ct_CC"; then
12839   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846   for ac_exec_ext in '' $ac_executable_extensions; do
12847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848     ac_cv_prog_ac_ct_CC="gcc"
12849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12850     break 2
12851   fi
12852 done
12853 done
12854 IFS=$as_save_IFS
12855
12856 fi
12857 fi
12858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12859 if test -n "$ac_ct_CC"; then
12860   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12861 echo "${ECHO_T}$ac_ct_CC" >&6; }
12862 else
12863   { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865 fi
12866
12867   if test "x$ac_ct_CC" = x; then
12868     CC=""
12869   else
12870     case $cross_compiling:$ac_tool_warned in
12871 yes:)
12872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12873 whose name does not start with the host triplet.  If you think this
12874 configuration is useful to you, please write to autoconf@gnu.org." >&5
12875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12876 whose name does not start with the host triplet.  If you think this
12877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12878 ac_tool_warned=yes ;;
12879 esac
12880     CC=$ac_ct_CC
12881   fi
12882 else
12883   CC="$ac_cv_prog_CC"
12884 fi
12885
12886 if test -z "$CC"; then
12887           if test -n "$ac_tool_prefix"; then
12888     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12889 set dummy ${ac_tool_prefix}cc; ac_word=$2
12890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12892 if test "${ac_cv_prog_CC+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   if test -n "$CC"; then
12896   ac_cv_prog_CC="$CC" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12900 do
12901   IFS=$as_save_IFS
12902   test -z "$as_dir" && as_dir=.
12903   for ac_exec_ext in '' $ac_executable_extensions; do
12904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905     ac_cv_prog_CC="${ac_tool_prefix}cc"
12906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12907     break 2
12908   fi
12909 done
12910 done
12911 IFS=$as_save_IFS
12912
12913 fi
12914 fi
12915 CC=$ac_cv_prog_CC
12916 if test -n "$CC"; then
12917   { echo "$as_me:$LINENO: result: $CC" >&5
12918 echo "${ECHO_T}$CC" >&6; }
12919 else
12920   { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922 fi
12923
12924
12925   fi
12926 fi
12927 if test -z "$CC"; then
12928   # Extract the first word of "cc", so it can be a program name with args.
12929 set dummy cc; ac_word=$2
12930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12932 if test "${ac_cv_prog_CC+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   if test -n "$CC"; then
12936   ac_cv_prog_CC="$CC" # Let the user override the test.
12937 else
12938   ac_prog_rejected=no
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12941 do
12942   IFS=$as_save_IFS
12943   test -z "$as_dir" && as_dir=.
12944   for ac_exec_ext in '' $ac_executable_extensions; do
12945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12947        ac_prog_rejected=yes
12948        continue
12949      fi
12950     ac_cv_prog_CC="cc"
12951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12952     break 2
12953   fi
12954 done
12955 done
12956 IFS=$as_save_IFS
12957
12958 if test $ac_prog_rejected = yes; then
12959   # We found a bogon in the path, so make sure we never use it.
12960   set dummy $ac_cv_prog_CC
12961   shift
12962   if test $# != 0; then
12963     # We chose a different compiler from the bogus one.
12964     # However, it has the same basename, so the bogon will be chosen
12965     # first if we set CC to just the basename; use the full file name.
12966     shift
12967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12968   fi
12969 fi
12970 fi
12971 fi
12972 CC=$ac_cv_prog_CC
12973 if test -n "$CC"; then
12974   { echo "$as_me:$LINENO: result: $CC" >&5
12975 echo "${ECHO_T}$CC" >&6; }
12976 else
12977   { echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6; }
12979 fi
12980
12981
12982 fi
12983 if test -z "$CC"; then
12984   if test -n "$ac_tool_prefix"; then
12985   for ac_prog in cl.exe
12986   do
12987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_prog_CC+set}" = set; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   if test -n "$CC"; then
12995   ac_cv_prog_CC="$CC" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000   IFS=$as_save_IFS
13001   test -z "$as_dir" && as_dir=.
13002   for ac_exec_ext in '' $ac_executable_extensions; do
13003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13006     break 2
13007   fi
13008 done
13009 done
13010 IFS=$as_save_IFS
13011
13012 fi
13013 fi
13014 CC=$ac_cv_prog_CC
13015 if test -n "$CC"; then
13016   { echo "$as_me:$LINENO: result: $CC" >&5
13017 echo "${ECHO_T}$CC" >&6; }
13018 else
13019   { echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6; }
13021 fi
13022
13023
13024     test -n "$CC" && break
13025   done
13026 fi
13027 if test -z "$CC"; then
13028   ac_ct_CC=$CC
13029   for ac_prog in cl.exe
13030 do
13031   # Extract the first word of "$ac_prog", so it can be a program name with args.
13032 set dummy $ac_prog; ac_word=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   if test -n "$ac_ct_CC"; then
13039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13040 else
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044   IFS=$as_save_IFS
13045   test -z "$as_dir" && as_dir=.
13046   for ac_exec_ext in '' $ac_executable_extensions; do
13047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13048     ac_cv_prog_ac_ct_CC="$ac_prog"
13049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050     break 2
13051   fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056 fi
13057 fi
13058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13059 if test -n "$ac_ct_CC"; then
13060   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13061 echo "${ECHO_T}$ac_ct_CC" >&6; }
13062 else
13063   { echo "$as_me:$LINENO: result: no" >&5
13064 echo "${ECHO_T}no" >&6; }
13065 fi
13066
13067
13068   test -n "$ac_ct_CC" && break
13069 done
13070
13071   if test "x$ac_ct_CC" = x; then
13072     CC=""
13073   else
13074     case $cross_compiling:$ac_tool_warned in
13075 yes:)
13076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13077 whose name does not start with the host triplet.  If you think this
13078 configuration is useful to you, please write to autoconf@gnu.org." >&5
13079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13080 whose name does not start with the host triplet.  If you think this
13081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13082 ac_tool_warned=yes ;;
13083 esac
13084     CC=$ac_ct_CC
13085   fi
13086 fi
13087
13088 fi
13089
13090
13091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13092 See \`config.log' for more details." >&5
13093 echo "$as_me: error: no acceptable C compiler found in \$PATH
13094 See \`config.log' for more details." >&2;}
13095    { (exit 1); exit 1; }; }
13096
13097 # Provide some information about the compiler.
13098 echo "$as_me:$LINENO: checking for C compiler version" >&5
13099 ac_compiler=`set X $ac_compile; echo $2`
13100 { (ac_try="$ac_compiler --version >&5"
13101 case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_compiler --version >&5") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }
13110 { (ac_try="$ac_compiler -v >&5"
13111 case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_compiler -v >&5") 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); }
13120 { (ac_try="$ac_compiler -V >&5"
13121 case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_compiler -V >&5") 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }
13130
13131 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13132 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13133 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142
13143 int
13144 main ()
13145 {
13146 #ifndef __GNUC__
13147        choke me
13148 #endif
13149
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_compile") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } && {
13168          test -z "$ac_c_werror_flag" ||
13169          test ! -s conftest.err
13170        } && test -s conftest.$ac_objext; then
13171   ac_compiler_gnu=yes
13172 else
13173   echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176         ac_compiler_gnu=no
13177 fi
13178
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13181
13182 fi
13183 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13185 GCC=`test $ac_compiler_gnu = yes && echo yes`
13186 ac_test_CFLAGS=${CFLAGS+set}
13187 ac_save_CFLAGS=$CFLAGS
13188 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13189 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13190 if test "${ac_cv_prog_cc_g+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   ac_save_c_werror_flag=$ac_c_werror_flag
13194    ac_c_werror_flag=yes
13195    ac_cv_prog_cc_g=no
13196    CFLAGS="-g"
13197    cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203
13204 int
13205 main ()
13206 {
13207
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219   (eval "$ac_compile") 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } && {
13226          test -z "$ac_c_werror_flag" ||
13227          test ! -s conftest.err
13228        } && test -s conftest.$ac_objext; then
13229   ac_cv_prog_cc_g=yes
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234         CFLAGS=""
13235       cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241
13242 int
13243 main ()
13244 {
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257   (eval "$ac_compile") 2>conftest.er1
13258   ac_status=$?
13259   grep -v '^ *+' conftest.er1 >conftest.err
13260   rm -f conftest.er1
13261   cat conftest.err >&5
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } && {
13264          test -z "$ac_c_werror_flag" ||
13265          test ! -s conftest.err
13266        } && test -s conftest.$ac_objext; then
13267   :
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272         ac_c_werror_flag=$ac_save_c_werror_flag
13273          CFLAGS="-g"
13274          cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281 int
13282 main ()
13283 {
13284
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_compile") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } && {
13303          test -z "$ac_c_werror_flag" ||
13304          test ! -s conftest.err
13305        } && test -s conftest.$ac_objext; then
13306   ac_cv_prog_cc_g=yes
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311
13312 fi
13313
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 fi
13316
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321    ac_c_werror_flag=$ac_save_c_werror_flag
13322 fi
13323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13324 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13325 if test "$ac_test_CFLAGS" = set; then
13326   CFLAGS=$ac_save_CFLAGS
13327 elif test $ac_cv_prog_cc_g = yes; then
13328   if test "$GCC" = yes; then
13329     CFLAGS="-g -O2"
13330   else
13331     CFLAGS="-g"
13332   fi
13333 else
13334   if test "$GCC" = yes; then
13335     CFLAGS="-O2"
13336   else
13337     CFLAGS=
13338   fi
13339 fi
13340 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13341 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13342 if test "${ac_cv_prog_cc_c89+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   ac_cv_prog_cc_c89=no
13346 ac_save_CC=$CC
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353 #include <stdarg.h>
13354 #include <stdio.h>
13355 #include <sys/types.h>
13356 #include <sys/stat.h>
13357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13358 struct buf { int x; };
13359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13360 static char *e (p, i)
13361      char **p;
13362      int i;
13363 {
13364   return p[i];
13365 }
13366 static char *f (char * (*g) (char **, int), char **p, ...)
13367 {
13368   char *s;
13369   va_list v;
13370   va_start (v,p);
13371   s = g (p, va_arg (v,int));
13372   va_end (v);
13373   return s;
13374 }
13375
13376 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13377    function prototypes and stuff, but not '\xHH' hex character constants.
13378    These don't provoke an error unfortunately, instead are silently treated
13379    as 'x'.  The following induces an error, until -std is added to get
13380    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13381    array size at least.  It's necessary to write '\x00'==0 to get something
13382    that's true only with -std.  */
13383 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13384
13385 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13386    inside strings and character constants.  */
13387 #define FOO(x) 'x'
13388 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13389
13390 int test (int i, double x);
13391 struct s1 {int (*f) (int a);};
13392 struct s2 {int (*f) (double a);};
13393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13394 int argc;
13395 char **argv;
13396 int
13397 main ()
13398 {
13399 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13405         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13406 do
13407   CC="$ac_save_CC $ac_arg"
13408   rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_compile") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } && {
13422          test -z "$ac_c_werror_flag" ||
13423          test ! -s conftest.err
13424        } && test -s conftest.$ac_objext; then
13425   ac_cv_prog_cc_c89=$ac_arg
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext
13434   test "x$ac_cv_prog_cc_c89" != "xno" && break
13435 done
13436 rm -f conftest.$ac_ext
13437 CC=$ac_save_CC
13438
13439 fi
13440 # AC_CACHE_VAL
13441 case "x$ac_cv_prog_cc_c89" in
13442   x)
13443     { echo "$as_me:$LINENO: result: none needed" >&5
13444 echo "${ECHO_T}none needed" >&6; } ;;
13445   xno)
13446     { echo "$as_me:$LINENO: result: unsupported" >&5
13447 echo "${ECHO_T}unsupported" >&6; } ;;
13448   *)
13449     CC="$CC $ac_cv_prog_cc_c89"
13450     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13451 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13452 esac
13453
13454
13455 ac_ext=c
13456 ac_cpp='$CPP $CPPFLAGS'
13457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13460
13461 depcc="$CC"   am_compiler_list=
13462
13463 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13464 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13469   # We make a subdir and do the tests there.  Otherwise we can end up
13470   # making bogus files that we don't know about and never remove.  For
13471   # instance it was reported that on HP-UX the gcc test will end up
13472   # making a dummy file named `D' -- because `-MD' means `put the output
13473   # in D'.
13474   mkdir conftest.dir
13475   # Copy depcomp to subdir because otherwise we won't find it if we're
13476   # using a relative directory.
13477   cp "$am_depcomp" conftest.dir
13478   cd conftest.dir
13479   # We will build objects and dependencies in a subdirectory because
13480   # it helps to detect inapplicable dependency modes.  For instance
13481   # both Tru64's cc and ICC support -MD to output dependencies as a
13482   # side effect of compilation, but ICC will put the dependencies in
13483   # the current directory while Tru64 will put them in the object
13484   # directory.
13485   mkdir sub
13486
13487   am_cv_CC_dependencies_compiler_type=none
13488   if test "$am_compiler_list" = ""; then
13489      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13490   fi
13491   for depmode in $am_compiler_list; do
13492     # Setup a source with many dependencies, because some compilers
13493     # like to wrap large dependency lists on column 80 (with \), and
13494     # we should not choose a depcomp mode which is confused by this.
13495     #
13496     # We need to recreate these files for each test, as the compiler may
13497     # overwrite some of them when testing with obscure command lines.
13498     # This happens at least with the AIX C compiler.
13499     : > sub/conftest.c
13500     for i in 1 2 3 4 5 6; do
13501       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13502       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13503       # Solaris 8's {/usr,}/bin/sh.
13504       touch sub/conftst$i.h
13505     done
13506     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13507
13508     case $depmode in
13509     nosideeffect)
13510       # after this tag, mechanisms are not by side-effect, so they'll
13511       # only be used when explicitly requested
13512       if test "x$enable_dependency_tracking" = xyes; then
13513         continue
13514       else
13515         break
13516       fi
13517       ;;
13518     none) break ;;
13519     esac
13520     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13521     # mode.  It turns out that the SunPro C++ compiler does not properly
13522     # handle `-M -o', and we need to detect this.
13523     if depmode=$depmode \
13524        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13525        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13526        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13527          >/dev/null 2>conftest.err &&
13528        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13529        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13530        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13531       # icc doesn't choke on unknown options, it will just issue warnings
13532       # or remarks (even with -Werror).  So we grep stderr for any message
13533       # that says an option was ignored or not supported.
13534       # When given -MP, icc 7.0 and 7.1 complain thusly:
13535       #   icc: Command line warning: ignoring option '-M'; no argument required
13536       # The diagnosis changed in icc 8.0:
13537       #   icc: Command line remark: option '-MP' not supported
13538       if (grep 'ignoring option' conftest.err ||
13539           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13540         am_cv_CC_dependencies_compiler_type=$depmode
13541         break
13542       fi
13543     fi
13544   done
13545
13546   cd ..
13547   rm -rf conftest.dir
13548 else
13549   am_cv_CC_dependencies_compiler_type=none
13550 fi
13551
13552 fi
13553 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13554 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13556
13557
13558
13559 if
13560   test "x$enable_dependency_tracking" != xno \
13561   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13562   am__fastdepCC_TRUE=
13563   am__fastdepCC_FALSE='#'
13564 else
13565   am__fastdepCC_TRUE='#'
13566   am__fastdepCC_FALSE=
13567 fi
13568
13569
13570 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13571         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13572 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13573    { (exit 1); exit 1; }; }
13574 fi
13575
13576 # test for make depend flag
13577 OL_MKDEP=
13578 OL_MKDEP_FLAGS=
13579 if test -z "${MKDEP}"; then
13580         OL_MKDEP="${CC-cc}"
13581         if test -z "${MKDEP_FLAGS}"; then
13582                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13583 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13584 if test "${ol_cv_mkdep+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587
13588                         ol_cv_mkdep=no
13589                         for flag in "-M" "-xM"; do
13590                                 cat > conftest.c <<EOF
13591  noCode;
13592 EOF
13593                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } \
13599                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13600                                 then
13601                                         if test ! -f conftest."${ac_object}" ; then
13602                                                 ol_cv_mkdep=$flag
13603                                                 OL_MKDEP_FLAGS="$flag"
13604                                                 break
13605                                         fi
13606                                 fi
13607                         done
13608                         rm -f conftest*
13609
13610 fi
13611 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13612 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13613                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13614         else
13615                 cc_cv_mkdep=yes
13616                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13617         fi
13618 else
13619         cc_cv_mkdep=yes
13620         OL_MKDEP="${MKDEP}"
13621         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13622 fi
13623
13624
13625
13626 if test "${ol_cv_mkdep}" = no ; then
13627         # this will soon become an error
13628         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13629 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13630 fi
13631
13632 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13633 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_s_afopen+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-ls  $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647    Use char because int might match the return type of a GCC
13648    builtin and then its argument prototype would still apply.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char afopen ();
13653 int
13654 main ()
13655 {
13656 return afopen ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_link") 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } && {
13675          test -z "$ac_c_werror_flag" ||
13676          test ! -s conftest.err
13677        } && test -s conftest$ac_exeext &&
13678        $as_test_x conftest$ac_exeext; then
13679   ac_cv_lib_s_afopen=yes
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684         ac_cv_lib_s_afopen=no
13685 fi
13686
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688       conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13690 fi
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13692 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13693 if test $ac_cv_lib_s_afopen = yes; then
13694
13695         AUTH_LIBS=-ls
13696
13697 cat >>confdefs.h <<\_ACEOF
13698 #define HAVE_AIX_SECURITY 1
13699 _ACEOF
13700
13701
13702 fi
13703
13704
13705 case "$target" in
13706 *-ibm-openedition)
13707         ac_cv_func_getopt=no
13708
13709 cat >>confdefs.h <<\_ACEOF
13710 #define BOTH_STRINGS_H 1
13711 _ACEOF
13712
13713         ;;
13714 esac
13715
13716 ol_link_modules=no
13717 WITH_MODULES_ENABLED=no
13718 if test $ol_enable_modules != no ; then
13719
13720 for ac_header in ltdl.h
13721 do
13722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 fi
13729 ac_res=`eval echo '${'$as_ac_Header'}'`
13730                { echo "$as_me:$LINENO: result: $ac_res" >&5
13731 echo "${ECHO_T}$ac_res" >&6; }
13732 else
13733   # Is the header compilable?
13734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 $ac_includes_default
13743 #include <$ac_header>
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_compile") 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } && {
13759          test -z "$ac_c_werror_flag" ||
13760          test ! -s conftest.err
13761        } && test -s conftest.$ac_objext; then
13762   ac_header_compiler=yes
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767         ac_header_compiler=no
13768 fi
13769
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 echo "${ECHO_T}$ac_header_compiler" >&6; }
13773
13774 # Is the header present?
13775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783 #include <$ac_header>
13784 _ACEOF
13785 if { (ac_try="$ac_cpp conftest.$ac_ext"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } >/dev/null && {
13798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13799          test ! -s conftest.err
13800        }; then
13801   ac_header_preproc=yes
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806   ac_header_preproc=no
13807 fi
13808
13809 rm -f conftest.err conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13811 echo "${ECHO_T}$ac_header_preproc" >&6; }
13812
13813 # So?  What about this header?
13814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13815   yes:no: )
13816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13820     ac_header_preproc=yes
13821     ;;
13822   no:yes:* )
13823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13835     ( cat <<\_ASBOX
13836 ## --------------------------------------------- ##
13837 ## Report this to <http://www.openldap.org/its/> ##
13838 ## --------------------------------------------- ##
13839 _ASBOX
13840      ) | sed "s/^/$as_me: WARNING:     /" >&2
13841     ;;
13842 esac
13843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   eval "$as_ac_Header=\$ac_header_preproc"
13849 fi
13850 ac_res=`eval echo '${'$as_ac_Header'}'`
13851                { echo "$as_me:$LINENO: result: $ac_res" >&5
13852 echo "${ECHO_T}$ac_res" >&6; }
13853
13854 fi
13855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856   cat >>confdefs.h <<_ACEOF
13857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 _ACEOF
13859
13860 fi
13861
13862 done
13863
13864
13865         if test $ac_cv_header_ltdl_h = no ; then
13866                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13867 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13868    { (exit 1); exit 1; }; }
13869         fi
13870
13871         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13872 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13873 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lltdl  $LIBS"
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884
13885 /* Override any GCC internal prototype to avoid an error.
13886    Use char because int might match the return type of a GCC
13887    builtin and then its argument prototype would still apply.  */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 char lt_dlinit ();
13892 int
13893 main ()
13894 {
13895 return lt_dlinit ();
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_link") 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } && {
13914          test -z "$ac_c_werror_flag" ||
13915          test ! -s conftest.err
13916        } && test -s conftest$ac_exeext &&
13917        $as_test_x conftest$ac_exeext; then
13918   ac_cv_lib_ltdl_lt_dlinit=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         ac_cv_lib_ltdl_lt_dlinit=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927       conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13929 fi
13930 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13931 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13932 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13933
13934                 MODULES_LIBS=-lltdl
13935
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_LIBLTDL 1
13938 _ACEOF
13939
13940
13941 fi
13942
13943
13944         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13945                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13946 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13947    { (exit 1); exit 1; }; }
13948         fi
13949         ol_link_modules=yes
13950         WITH_MODULES_ENABLED=yes
13951
13952 else
13953         for i in $Backends; do
13954                 eval "ol_tmp=\$ol_enable_$i"
13955                 if test $ol_tmp = mod ; then
13956                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13957 echo "$as_me: WARNING: building static $i backend" >&2;}
13958                         eval "ol_enable_$i=yes"
13959                 fi
13960         done
13961         for i in $Overlays; do
13962                 eval "ol_tmp=\$ol_enable_$i"
13963                 if test $ol_tmp = mod ; then
13964                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13965 echo "$as_me: WARNING: building static $i overlay" >&2;}
13966                         eval "ol_enable_$i=yes"
13967                 fi
13968         done
13969 fi
13970
13971 # test for EBCDIC
13972 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13973 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13974 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977
13978         cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984
13985 #if !('M' == 0xd4)
13986 #include <__ASCII__/generate_error.h>
13987 #endif
13988
13989 _ACEOF
13990 if { (ac_try="$ac_cpp conftest.$ac_ext"
13991 case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } >/dev/null && {
14003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14004          test ! -s conftest.err
14005        }; then
14006   ol_cv_cpp_ebcdic=yes
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011   ol_cv_cpp_ebcdic=no
14012 fi
14013
14014 rm -f conftest.err conftest.$ac_ext
14015 fi
14016 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14017 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14018 if test $ol_cv_cpp_ebcdic = yes ; then
14019
14020 cat >>confdefs.h <<\_ACEOF
14021 #define HAVE_EBCDIC 1
14022 _ACEOF
14023
14024 fi
14025
14026 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14027 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14028 if test "${ol_cv_header_stdc+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h.  */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h.  */
14037 #include <stdlib.h>
14038 #include <stdarg.h>
14039 #include <string.h>
14040 #include <float.h>
14041 _ACEOF
14042 if { (ac_try="$ac_cpp conftest.$ac_ext"
14043 case "(($ac_try" in
14044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045   *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } >/dev/null && {
14055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056          test ! -s conftest.err
14057        }; then
14058   ol_cv_header_stdc=yes
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063   ol_cv_header_stdc=no
14064 fi
14065
14066 rm -f conftest.err conftest.$ac_ext
14067
14068 if test $ol_cv_header_stdc = yes; then
14069   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076 #include <string.h>
14077
14078 _ACEOF
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080   $EGREP "memchr" >/dev/null 2>&1; then
14081   :
14082 else
14083   ol_cv_header_stdc=no
14084 fi
14085 rm -f conftest*
14086
14087 fi
14088
14089 if test $ol_cv_header_stdc = yes; then
14090   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 #include <stdlib.h>
14098
14099 _ACEOF
14100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14101   $EGREP "free" >/dev/null 2>&1; then
14102   :
14103 else
14104   ol_cv_header_stdc=no
14105 fi
14106 rm -f conftest*
14107
14108 fi
14109
14110 if test $ol_cv_header_stdc = yes; then
14111   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14112 if test "$cross_compiling" = yes; then
14113   :
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121 #include <ctype.h>
14122 #ifndef HAVE_EBCDIC
14123 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14124 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14125 #else
14126 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14127                 || ('j' <= (c) && (c) <= 'r') \
14128                 || ('s' <= (c) && (c) <= 'z'))
14129 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14130 #endif
14131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14132 int main () { int i; for (i = 0; i < 256; i++)
14133 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14134 exit (0); }
14135
14136 _ACEOF
14137 rm -f conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_link") 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14148   { (case "(($ac_try" in
14149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150   *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153   (eval "$ac_try") 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; }; then
14157   :
14158 else
14159   echo "$as_me: program exited with status $ac_status" >&5
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ( exit $ac_status )
14164 ol_cv_header_stdc=no
14165 fi
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14167 fi
14168
14169
14170 fi
14171 fi
14172 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14173 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14174 if test $ol_cv_header_stdc = yes; then
14175   cat >>confdefs.h <<\_ACEOF
14176 #define STDC_HEADERS 1
14177 _ACEOF
14178
14179 fi
14180 ac_cv_header_stdc=disable
14181
14182
14183 if test $ol_cv_header_stdc != yes; then
14184         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14185 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14186 fi
14187
14188
14189
14190
14191
14192
14193 ac_header_dirent=no
14194 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14195   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14196 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14197 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14199   echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201   cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 #include <sys/types.h>
14208 #include <$ac_hdr>
14209
14210 int
14211 main ()
14212 {
14213 if ((DIR *) 0)
14214 return 0;
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (ac_try="$ac_compile"
14221 case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_compile") 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } && {
14233          test -z "$ac_c_werror_flag" ||
14234          test ! -s conftest.err
14235        } && test -s conftest.$ac_objext; then
14236   eval "$as_ac_Header=yes"
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241         eval "$as_ac_Header=no"
14242 fi
14243
14244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 fi
14246 ac_res=`eval echo '${'$as_ac_Header'}'`
14247                { echo "$as_me:$LINENO: result: $ac_res" >&5
14248 echo "${ECHO_T}$ac_res" >&6; }
14249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14250   cat >>confdefs.h <<_ACEOF
14251 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14252 _ACEOF
14253
14254 ac_header_dirent=$ac_hdr; break
14255 fi
14256
14257 done
14258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14259 if test $ac_header_dirent = dirent.h; then
14260   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14262 if test "${ac_cv_search_opendir+set}" = set; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   ac_func_search_save_LIBS=$LIBS
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272
14273 /* Override any GCC internal prototype to avoid an error.
14274    Use char because int might match the return type of a GCC
14275    builtin and then its argument prototype would still apply.  */
14276 #ifdef __cplusplus
14277 extern "C"
14278 #endif
14279 char opendir ();
14280 int
14281 main ()
14282 {
14283 return opendir ();
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 for ac_lib in '' dir; do
14289   if test -z "$ac_lib"; then
14290     ac_res="none required"
14291   else
14292     ac_res=-l$ac_lib
14293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14294   fi
14295   rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_link") 2>conftest.er1
14303   ac_status=$?
14304   grep -v '^ *+' conftest.er1 >conftest.err
14305   rm -f conftest.er1
14306   cat conftest.err >&5
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } && {
14309          test -z "$ac_c_werror_flag" ||
14310          test ! -s conftest.err
14311        } && test -s conftest$ac_exeext &&
14312        $as_test_x conftest$ac_exeext; then
14313   ac_cv_search_opendir=$ac_res
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14322       conftest$ac_exeext
14323   if test "${ac_cv_search_opendir+set}" = set; then
14324   break
14325 fi
14326 done
14327 if test "${ac_cv_search_opendir+set}" = set; then
14328   :
14329 else
14330   ac_cv_search_opendir=no
14331 fi
14332 rm conftest.$ac_ext
14333 LIBS=$ac_func_search_save_LIBS
14334 fi
14335 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14336 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14337 ac_res=$ac_cv_search_opendir
14338 if test "$ac_res" != no; then
14339   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14340
14341 fi
14342
14343 else
14344   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14345 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14346 if test "${ac_cv_search_opendir+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   ac_func_search_save_LIBS=$LIBS
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h.  */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h.  */
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358    Use char because int might match the return type of a GCC
14359    builtin and then its argument prototype would still apply.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char opendir ();
14364 int
14365 main ()
14366 {
14367 return opendir ();
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 for ac_lib in '' x; do
14373   if test -z "$ac_lib"; then
14374     ac_res="none required"
14375   else
14376     ac_res=-l$ac_lib
14377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14378   fi
14379   rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_link") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } && {
14393          test -z "$ac_c_werror_flag" ||
14394          test ! -s conftest.err
14395        } && test -s conftest$ac_exeext &&
14396        $as_test_x conftest$ac_exeext; then
14397   ac_cv_search_opendir=$ac_res
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402
14403 fi
14404
14405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14406       conftest$ac_exeext
14407   if test "${ac_cv_search_opendir+set}" = set; then
14408   break
14409 fi
14410 done
14411 if test "${ac_cv_search_opendir+set}" = set; then
14412   :
14413 else
14414   ac_cv_search_opendir=no
14415 fi
14416 rm conftest.$ac_ext
14417 LIBS=$ac_func_search_save_LIBS
14418 fi
14419 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14420 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14421 ac_res=$ac_cv_search_opendir
14422 if test "$ac_res" != no; then
14423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14424
14425 fi
14426
14427 fi
14428
14429 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14430 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14431 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 #include <sys/types.h>
14441 #include <sys/wait.h>
14442 #ifndef WEXITSTATUS
14443 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14444 #endif
14445 #ifndef WIFEXITED
14446 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14447 #endif
14448
14449 int
14450 main ()
14451 {
14452   int s;
14453   wait (&s);
14454   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (ac_try="$ac_compile"
14461 case "(($ac_try" in
14462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463   *) ac_try_echo=$ac_try;;
14464 esac
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466   (eval "$ac_compile") 2>conftest.er1
14467   ac_status=$?
14468   grep -v '^ *+' conftest.er1 >conftest.err
14469   rm -f conftest.er1
14470   cat conftest.err >&5
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } && {
14473          test -z "$ac_c_werror_flag" ||
14474          test ! -s conftest.err
14475        } && test -s conftest.$ac_objext; then
14476   ac_cv_header_sys_wait_h=yes
14477 else
14478   echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14480
14481         ac_cv_header_sys_wait_h=no
14482 fi
14483
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 fi
14486 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14487 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14488 if test $ac_cv_header_sys_wait_h = yes; then
14489
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_SYS_WAIT_H 1
14492 _ACEOF
14493
14494 fi
14495
14496 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14497 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14498 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 #include <sys/types.h>
14508 #include <termios.h>
14509 #ifdef TIOCGWINSZ
14510   yes
14511 #endif
14512
14513 _ACEOF
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515   $EGREP "yes" >/dev/null 2>&1; then
14516   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14517 else
14518   ac_cv_sys_tiocgwinsz_in_termios_h=no
14519 fi
14520 rm -f conftest*
14521
14522 fi
14523 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14524 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14525
14526 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14527   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14528 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14529 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538 #include <sys/types.h>
14539 #include <sys/ioctl.h>
14540 #ifdef TIOCGWINSZ
14541   yes
14542 #endif
14543
14544 _ACEOF
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546   $EGREP "yes" >/dev/null 2>&1; then
14547   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14548 else
14549   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14550 fi
14551 rm -f conftest*
14552
14553 fi
14554 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14555 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14556
14557   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define GWINSZ_IN_SYS_IOCTL 1
14561 _ACEOF
14562
14563   fi
14564 fi
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
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614 for ac_header in \
14615         arpa/inet.h             \
14616         arpa/nameser.h  \
14617         assert.h                \
14618         bits/types.h    \
14619         conio.h                 \
14620         crypt.h                 \
14621         direct.h                \
14622         errno.h                 \
14623         fcntl.h                 \
14624         filio.h                 \
14625         getopt.h                \
14626         grp.h                   \
14627         io.h                    \
14628         libutil.h               \
14629         limits.h                \
14630         locale.h                \
14631         malloc.h                \
14632         memory.h                \
14633         psap.h                  \
14634         pwd.h                   \
14635         process.h               \
14636         sgtty.h                 \
14637         shadow.h                \
14638         stddef.h                \
14639         string.h                \
14640         strings.h               \
14641         sysexits.h              \
14642         sys/file.h              \
14643         sys/filio.h             \
14644         sys/fstyp.h             \
14645         sys/errno.h             \
14646         sys/ioctl.h             \
14647         sys/param.h             \
14648         sys/privgrp.h   \
14649         sys/resource.h  \
14650         sys/select.h    \
14651         sys/socket.h    \
14652         sys/stat.h              \
14653         sys/syslog.h    \
14654         sys/time.h              \
14655         sys/types.h             \
14656         sys/uio.h               \
14657         sys/vmount.h    \
14658         syslog.h                \
14659         termios.h               \
14660         unistd.h                \
14661         utime.h                 \
14662
14663 do
14664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 fi
14671 ac_res=`eval echo '${'$as_ac_Header'}'`
14672                { echo "$as_me:$LINENO: result: $ac_res" >&5
14673 echo "${ECHO_T}$ac_res" >&6; }
14674 else
14675   # Is the header compilable?
14676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 #include <$ac_header>
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_compile") 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } && {
14701          test -z "$ac_c_werror_flag" ||
14702          test ! -s conftest.err
14703        } && test -s conftest.$ac_objext; then
14704   ac_header_compiler=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709         ac_header_compiler=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <$ac_header>
14726 _ACEOF
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } >/dev/null && {
14740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14741          test ! -s conftest.err
14742        }; then
14743   ac_header_preproc=yes
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748   ac_header_preproc=no
14749 fi
14750
14751 rm -f conftest.err conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14753 echo "${ECHO_T}$ac_header_preproc" >&6; }
14754
14755 # So?  What about this header?
14756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14757   yes:no: )
14758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14762     ac_header_preproc=yes
14763     ;;
14764   no:yes:* )
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14777     ( cat <<\_ASBOX
14778 ## --------------------------------------------- ##
14779 ## Report this to <http://www.openldap.org/its/> ##
14780 ## --------------------------------------------- ##
14781 _ASBOX
14782      ) | sed "s/^/$as_me: WARNING:     /" >&2
14783     ;;
14784 esac
14785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788   echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790   eval "$as_ac_Header=\$ac_header_preproc"
14791 fi
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795
14796 fi
14797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14798   cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14800 _ACEOF
14801
14802 fi
14803
14804 done
14805
14806
14807 if test "$ac_cv_mingw32" = yes \
14808         -o "$ac_cv_interix" = yes \
14809         -o "$ol_cv_msvc" = yes
14810 then
14811
14812
14813 for ac_header in winsock.h winsock2.h
14814 do
14815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 fi
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823                { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14825 else
14826   # Is the header compilable?
14827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 $ac_includes_default
14836 #include <$ac_header>
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842   *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845   (eval "$ac_compile") 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } && {
14852          test -z "$ac_c_werror_flag" ||
14853          test ! -s conftest.err
14854        } && test -s conftest.$ac_objext; then
14855   ac_header_compiler=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860         ac_header_compiler=no
14861 fi
14862
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6; }
14866
14867 # Is the header present?
14868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h.  */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h.  */
14876 #include <$ac_header>
14877 _ACEOF
14878 if { (ac_try="$ac_cpp conftest.$ac_ext"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14885   ac_status=$?
14886   grep -v '^ *+' conftest.er1 >conftest.err
14887   rm -f conftest.er1
14888   cat conftest.err >&5
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } >/dev/null && {
14891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14892          test ! -s conftest.err
14893        }; then
14894   ac_header_preproc=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899   ac_header_preproc=no
14900 fi
14901
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14905
14906 # So?  What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14908   yes:no: )
14909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913     ac_header_preproc=yes
14914     ;;
14915   no:yes:* )
14916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14928     ( cat <<\_ASBOX
14929 ## --------------------------------------------- ##
14930 ## Report this to <http://www.openldap.org/its/> ##
14931 ## --------------------------------------------- ##
14932 _ASBOX
14933      ) | sed "s/^/$as_me: WARNING:     /" >&2
14934     ;;
14935 esac
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   eval "$as_ac_Header=\$ac_header_preproc"
14942 fi
14943 ac_res=`eval echo '${'$as_ac_Header'}'`
14944                { echo "$as_me:$LINENO: result: $ac_res" >&5
14945 echo "${ECHO_T}$ac_res" >&6; }
14946
14947 fi
14948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949   cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14951 _ACEOF
14952
14953 fi
14954
14955 done
14956
14957 fi
14958
14959
14960 for ac_header in resolv.h
14961 do
14962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974 $ac_includes_default
14975 #include <netinet/in.h>
14976
14977
14978 #include <$ac_header>
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_compile") 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } && {
14994          test -z "$ac_c_werror_flag" ||
14995          test ! -s conftest.err
14996        } && test -s conftest.$ac_objext; then
14997   eval "$as_ac_Header=yes"
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         eval "$as_ac_Header=no"
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 fi
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008                { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15011   cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15013 _ACEOF
15014
15015 fi
15016
15017 done
15018
15019
15020
15021 for ac_header in netinet/tcp.h
15022 do
15023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 $ac_includes_default
15036 #include <netinet/in.h>
15037
15038
15039 #include <$ac_header>
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048   (eval "$ac_compile") 2>conftest.er1
15049   ac_status=$?
15050   grep -v '^ *+' conftest.er1 >conftest.err
15051   rm -f conftest.er1
15052   cat conftest.err >&5
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } && {
15055          test -z "$ac_c_werror_flag" ||
15056          test ! -s conftest.err
15057        } && test -s conftest.$ac_objext; then
15058   eval "$as_ac_Header=yes"
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063         eval "$as_ac_Header=no"
15064 fi
15065
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 fi
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069                { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072   cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074 _ACEOF
15075
15076 fi
15077
15078 done
15079
15080
15081
15082 for ac_header in sys/ucred.h
15083 do
15084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 $ac_includes_default
15097 #ifdef HAVE_SYS_PARAM_H
15098 #include <sys/param.h>
15099 #endif
15100
15101
15102 #include <$ac_header>
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111   (eval "$ac_compile") 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } && {
15118          test -z "$ac_c_werror_flag" ||
15119          test ! -s conftest.err
15120        } && test -s conftest.$ac_objext; then
15121   eval "$as_ac_Header=yes"
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126         eval "$as_ac_Header=no"
15127 fi
15128
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 ac_res=`eval echo '${'$as_ac_Header'}'`
15132                { echo "$as_me:$LINENO: result: $ac_res" >&5
15133 echo "${ECHO_T}$ac_res" >&6; }
15134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15135   cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15137 _ACEOF
15138
15139 fi
15140
15141 done
15142
15143
15144
15145
15146
15147 for ac_func in sigaction sigset
15148 do
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155   cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15163 #define $ac_func innocuous_$ac_func
15164
15165 /* System header to define __stub macros and hopefully few prototypes,
15166     which can conflict with char $ac_func (); below.
15167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168     <limits.h> exists even on freestanding compilers.  */
15169
15170 #ifdef __STDC__
15171 # include <limits.h>
15172 #else
15173 # include <assert.h>
15174 #endif
15175
15176 #undef $ac_func
15177
15178 /* Override any GCC internal prototype to avoid an error.
15179    Use char because int might match the return type of a GCC
15180    builtin and then its argument prototype would still apply.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char $ac_func ();
15185 /* The GNU C library defines this for functions which it implements
15186     to always fail with ENOSYS.  Some functions are actually named
15187     something starting with __ and the normal name is an alias.  */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15189 choke me
15190 #endif
15191
15192 int
15193 main ()
15194 {
15195 return $ac_func ();
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204   *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207   (eval "$ac_link") 2>conftest.er1
15208   ac_status=$?
15209   grep -v '^ *+' conftest.er1 >conftest.err
15210   rm -f conftest.er1
15211   cat conftest.err >&5
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } && {
15214          test -z "$ac_c_werror_flag" ||
15215          test ! -s conftest.err
15216        } && test -s conftest$ac_exeext &&
15217        $as_test_x conftest$ac_exeext; then
15218   eval "$as_ac_var=yes"
15219 else
15220   echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15222
15223         eval "$as_ac_var=no"
15224 fi
15225
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227       conftest$ac_exeext conftest.$ac_ext
15228 fi
15229 ac_res=`eval echo '${'$as_ac_var'}'`
15230                { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232 if test `eval echo '${'$as_ac_var'}'` = yes; then
15233   cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15235 _ACEOF
15236
15237 fi
15238 done
15239
15240
15241 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15242
15243 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15244 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15245 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15246   echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248   ac_check_lib_save_LIBS=$LIBS
15249 LIBS="-lV3  $LIBS"
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256
15257 /* Override any GCC internal prototype to avoid an error.
15258    Use char because int might match the return type of a GCC
15259    builtin and then its argument prototype would still apply.  */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 char sigset ();
15264 int
15265 main ()
15266 {
15267 return sigset ();
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_link") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } && {
15286          test -z "$ac_c_werror_flag" ||
15287          test ! -s conftest.err
15288        } && test -s conftest$ac_exeext &&
15289        $as_test_x conftest$ac_exeext; then
15290   ac_cv_lib_V3_sigset=yes
15291 else
15292   echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295         ac_cv_lib_V3_sigset=no
15296 fi
15297
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299       conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15301 fi
15302 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15303 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15304 if test $ac_cv_lib_V3_sigset = yes; then
15305   cat >>confdefs.h <<_ACEOF
15306 #define HAVE_LIBV3 1
15307 _ACEOF
15308
15309   LIBS="-lV3 $LIBS"
15310
15311 fi
15312
15313 fi
15314
15315 if test $ol_cv_msvc = yes ; then
15316    ol_cv_winsock=yes
15317 fi
15318
15319 if test "$ac_cv_header_winsock_h" = yes; then
15320         { echo "$as_me:$LINENO: checking for winsock" >&5
15321 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15322 if test "${ol_cv_winsock+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325
15326         save_LIBS="$LIBS"
15327         for curlib in none ws2_32 wsock32; do
15328                 if test $curlib != none ; then
15329                 LIBS="$save_LIBS -l$curlib"
15330                 fi
15331                 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 #include <winsock.h>
15338
15339 int
15340 main ()
15341 {
15342
15343                         socket(0,0,0);
15344                         select(0,NULL,NULL,NULL,NULL);
15345                         closesocket(0);
15346                         gethostname(NULL,0);
15347
15348   ;
15349   return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356   *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359   (eval "$ac_link") 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } && {
15366          test -z "$ac_c_werror_flag" ||
15367          test ! -s conftest.err
15368        } && test -s conftest$ac_exeext &&
15369        $as_test_x conftest$ac_exeext; then
15370   ol_cv_winsock=$curlib
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375         ol_cv_winsock=no
15376 fi
15377
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379       conftest$ac_exeext conftest.$ac_ext
15380
15381                 test "$ol_cv_winsock" != no && break
15382         done
15383         LIBS="$save_LIBS"
15384
15385 fi
15386 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15387 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15388
15389         if test $ol_cv_winsock != no ; then
15390
15391 cat >>confdefs.h <<\_ACEOF
15392 #define HAVE_WINSOCK 1
15393 _ACEOF
15394
15395         ac_cv_func_socket=yes
15396         ac_cv_func_select=yes
15397         ac_cv_func_closesocket=yes
15398         ac_cv_func_gethostname=yes
15399
15400                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15401                 LIBS="$LIBS -l$ol_cv_winsock"
15402                 fi
15403
15404         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15405
15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_WINSOCK2 1
15408 _ACEOF
15409
15410         fi
15411         fi
15412 fi
15413
15414
15415 { echo "$as_me:$LINENO: checking for socket" >&5
15416 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15417 if test "${ac_cv_func_socket+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15428 #define socket innocuous_socket
15429
15430 /* System header to define __stub macros and hopefully few prototypes,
15431     which can conflict with char socket (); below.
15432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433     <limits.h> exists even on freestanding compilers.  */
15434
15435 #ifdef __STDC__
15436 # include <limits.h>
15437 #else
15438 # include <assert.h>
15439 #endif
15440
15441 #undef socket
15442
15443 /* Override any GCC internal prototype to avoid an error.
15444    Use char because int might match the return type of a GCC
15445    builtin and then its argument prototype would still apply.  */
15446 #ifdef __cplusplus
15447 extern "C"
15448 #endif
15449 char socket ();
15450 /* The GNU C library defines this for functions which it implements
15451     to always fail with ENOSYS.  Some functions are actually named
15452     something starting with __ and the normal name is an alias.  */
15453 #if defined __stub_socket || defined __stub___socket
15454 choke me
15455 #endif
15456
15457 int
15458 main ()
15459 {
15460 return socket ();
15461   ;
15462   return 0;
15463 }
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_link") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } && {
15479          test -z "$ac_c_werror_flag" ||
15480          test ! -s conftest.err
15481        } && test -s conftest$ac_exeext &&
15482        $as_test_x conftest$ac_exeext; then
15483   ac_cv_func_socket=yes
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488         ac_cv_func_socket=no
15489 fi
15490
15491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492       conftest$ac_exeext conftest.$ac_ext
15493 fi
15494 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15495 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15496 if test $ac_cv_func_socket = yes; then
15497   :
15498 else
15499
15500
15501 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15502 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15503 if test "${ac_cv_lib_socket_main+set}" = set; then
15504   echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506   ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lsocket  $LIBS"
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514
15515
15516 int
15517 main ()
15518 {
15519 return main ();
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_link") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } && {
15538          test -z "$ac_c_werror_flag" ||
15539          test ! -s conftest.err
15540        } && test -s conftest$ac_exeext &&
15541        $as_test_x conftest$ac_exeext; then
15542   ac_cv_lib_socket_main=yes
15543 else
15544   echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15546
15547         ac_cv_lib_socket_main=no
15548 fi
15549
15550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551       conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15553 fi
15554 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15555 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15556 if test $ac_cv_lib_socket_main = yes; then
15557   cat >>confdefs.h <<_ACEOF
15558 #define HAVE_LIBSOCKET 1
15559 _ACEOF
15560
15561   LIBS="-lsocket $LIBS"
15562
15563 fi
15564
15565
15566 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15567 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15568 if test "${ac_cv_lib_net_main+set}" = set; then
15569   echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571   ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lnet  $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579
15580
15581 int
15582 main ()
15583 {
15584 return main ();
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_link") 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } && {
15603          test -z "$ac_c_werror_flag" ||
15604          test ! -s conftest.err
15605        } && test -s conftest$ac_exeext &&
15606        $as_test_x conftest$ac_exeext; then
15607   ac_cv_lib_net_main=yes
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612         ac_cv_lib_net_main=no
15613 fi
15614
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616       conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15618 fi
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15620 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15621 if test $ac_cv_lib_net_main = yes; then
15622   cat >>confdefs.h <<_ACEOF
15623 #define HAVE_LIBNET 1
15624 _ACEOF
15625
15626   LIBS="-lnet $LIBS"
15627
15628 fi
15629
15630
15631 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15632 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lnsl_s  $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644
15645
15646 int
15647 main ()
15648 {
15649 return main ();
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_link") 2>conftest.er1
15662   ac_status=$?
15663   grep -v '^ *+' conftest.er1 >conftest.err
15664   rm -f conftest.er1
15665   cat conftest.err >&5
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); } && {
15668          test -z "$ac_c_werror_flag" ||
15669          test ! -s conftest.err
15670        } && test -s conftest$ac_exeext &&
15671        $as_test_x conftest$ac_exeext; then
15672   ac_cv_lib_nsl_s_main=yes
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677         ac_cv_lib_nsl_s_main=no
15678 fi
15679
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681       conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15683 fi
15684 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15685 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15686 if test $ac_cv_lib_nsl_s_main = yes; then
15687   cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBNSL_S 1
15689 _ACEOF
15690
15691   LIBS="-lnsl_s $LIBS"
15692
15693 fi
15694
15695
15696 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15697 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_nsl_main+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-lnsl  $LIBS"
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709
15710
15711 int
15712 main ()
15713 {
15714 return main ();
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_link") 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } && {
15733          test -z "$ac_c_werror_flag" ||
15734          test ! -s conftest.err
15735        } && test -s conftest$ac_exeext &&
15736        $as_test_x conftest$ac_exeext; then
15737   ac_cv_lib_nsl_main=yes
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742         ac_cv_lib_nsl_main=no
15743 fi
15744
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746       conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15748 fi
15749 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15750 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15751 if test $ac_cv_lib_nsl_main = yes; then
15752   cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBNSL 1
15754 _ACEOF
15755
15756   LIBS="-lnsl $LIBS"
15757
15758 fi
15759
15760
15761 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15762 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_inet_socket+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-linet  $LIBS"
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774
15775 /* Override any GCC internal prototype to avoid an error.
15776    Use char because int might match the return type of a GCC
15777    builtin and then its argument prototype would still apply.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 char socket ();
15782 int
15783 main ()
15784 {
15785 return socket ();
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_link") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } && {
15804          test -z "$ac_c_werror_flag" ||
15805          test ! -s conftest.err
15806        } && test -s conftest$ac_exeext &&
15807        $as_test_x conftest$ac_exeext; then
15808   ac_cv_lib_inet_socket=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813         ac_cv_lib_inet_socket=no
15814 fi
15815
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817       conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15819 fi
15820 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15821 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15822 if test $ac_cv_lib_inet_socket = yes; then
15823   cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBINET 1
15825 _ACEOF
15826
15827   LIBS="-linet $LIBS"
15828
15829 fi
15830
15831
15832 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15833 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_gen_main+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lgen  $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845
15846
15847 int
15848 main ()
15849 {
15850 return main ();
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859   *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862   (eval "$ac_link") 2>conftest.er1
15863   ac_status=$?
15864   grep -v '^ *+' conftest.er1 >conftest.err
15865   rm -f conftest.er1
15866   cat conftest.err >&5
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); } && {
15869          test -z "$ac_c_werror_flag" ||
15870          test ! -s conftest.err
15871        } && test -s conftest$ac_exeext &&
15872        $as_test_x conftest$ac_exeext; then
15873   ac_cv_lib_gen_main=yes
15874 else
15875   echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878         ac_cv_lib_gen_main=no
15879 fi
15880
15881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882       conftest$ac_exeext conftest.$ac_ext
15883 LIBS=$ac_check_lib_save_LIBS
15884 fi
15885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15886 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15887 if test $ac_cv_lib_gen_main = yes; then
15888   cat >>confdefs.h <<_ACEOF
15889 #define HAVE_LIBGEN 1
15890 _ACEOF
15891
15892   LIBS="-lgen $LIBS"
15893
15894 fi
15895
15896
15897 fi
15898
15899
15900 { echo "$as_me:$LINENO: checking for select" >&5
15901 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15902 if test "${ac_cv_func_select+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 /* Define select to an innocuous variant, in case <limits.h> declares select.
15912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15913 #define select innocuous_select
15914
15915 /* System header to define __stub macros and hopefully few prototypes,
15916     which can conflict with char select (); below.
15917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918     <limits.h> exists even on freestanding compilers.  */
15919
15920 #ifdef __STDC__
15921 # include <limits.h>
15922 #else
15923 # include <assert.h>
15924 #endif
15925
15926 #undef select
15927
15928 /* Override any GCC internal prototype to avoid an error.
15929    Use char because int might match the return type of a GCC
15930    builtin and then its argument prototype would still apply.  */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 char select ();
15935 /* The GNU C library defines this for functions which it implements
15936     to always fail with ENOSYS.  Some functions are actually named
15937     something starting with __ and the normal name is an alias.  */
15938 #if defined __stub_select || defined __stub___select
15939 choke me
15940 #endif
15941
15942 int
15943 main ()
15944 {
15945 return select ();
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (ac_try="$ac_link"
15952 case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_link") 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } && {
15964          test -z "$ac_c_werror_flag" ||
15965          test ! -s conftest.err
15966        } && test -s conftest$ac_exeext &&
15967        $as_test_x conftest$ac_exeext; then
15968   ac_cv_func_select=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973         ac_cv_func_select=no
15974 fi
15975
15976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15977       conftest$ac_exeext conftest.$ac_ext
15978 fi
15979 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15980 echo "${ECHO_T}$ac_cv_func_select" >&6; }
15981 if test $ac_cv_func_select = yes; then
15982   :
15983 else
15984   { { echo "$as_me:$LINENO: error: select() required." >&5
15985 echo "$as_me: error: select() required." >&2;}
15986    { (exit 1); exit 1; }; }
15987 fi
15988
15989
15990 if test "${ac_cv_header_winsock_h}" != yes; then
15991
15992
15993 for ac_header in sys/select.h sys/socket.h
15994 do
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 fi
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003                { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16005 else
16006   # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 $ac_includes_default
16016 #include <$ac_header>
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_compile") 2>conftest.er1
16026   ac_status=$?
16027   grep -v '^ *+' conftest.er1 >conftest.err
16028   rm -f conftest.er1
16029   cat conftest.err >&5
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); } && {
16032          test -z "$ac_c_werror_flag" ||
16033          test ! -s conftest.err
16034        } && test -s conftest.$ac_objext; then
16035   ac_header_compiler=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_header_compiler=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #include <$ac_header>
16057 _ACEOF
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } >/dev/null && {
16071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16072          test ! -s conftest.err
16073        }; then
16074   ac_header_preproc=yes
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079   ac_header_preproc=no
16080 fi
16081
16082 rm -f conftest.err conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16084 echo "${ECHO_T}$ac_header_preproc" >&6; }
16085
16086 # So?  What about this header?
16087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16088   yes:no: )
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16093     ac_header_preproc=yes
16094     ;;
16095   no:yes:* )
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16108     ( cat <<\_ASBOX
16109 ## --------------------------------------------- ##
16110 ## Report this to <http://www.openldap.org/its/> ##
16111 ## --------------------------------------------- ##
16112 _ASBOX
16113      ) | sed "s/^/$as_me: WARNING:     /" >&2
16114     ;;
16115 esac
16116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   eval "$as_ac_Header=\$ac_header_preproc"
16122 fi
16123 ac_res=`eval echo '${'$as_ac_Header'}'`
16124                { echo "$as_me:$LINENO: result: $ac_res" >&5
16125 echo "${ECHO_T}$ac_res" >&6; }
16126
16127 fi
16128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16129   cat >>confdefs.h <<_ACEOF
16130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16131 _ACEOF
16132
16133 fi
16134
16135 done
16136
16137 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16138 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16139 if test "${ac_cv_func_select_args+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16143  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16144   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16145    cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 $ac_includes_default
16152 #ifdef HAVE_SYS_SELECT_H
16153 # include <sys/select.h>
16154 #endif
16155 #ifdef HAVE_SYS_SOCKET_H
16156 # include <sys/socket.h>
16157 #endif
16158
16159 int
16160 main ()
16161 {
16162 extern int select ($ac_arg1,
16163                                             $ac_arg234, $ac_arg234, $ac_arg234,
16164                                             $ac_arg5);
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_compile") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } && {
16183          test -z "$ac_c_werror_flag" ||
16184          test ! -s conftest.err
16185        } && test -s conftest.$ac_objext; then
16186   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191
16192 fi
16193
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195   done
16196  done
16197 done
16198 # Provide a safe default value.
16199 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16200
16201 fi
16202 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16203 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16204 ac_save_IFS=$IFS; IFS=','
16205 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16206 IFS=$ac_save_IFS
16207 shift
16208
16209 cat >>confdefs.h <<_ACEOF
16210 #define SELECT_TYPE_ARG1 $1
16211 _ACEOF
16212
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define SELECT_TYPE_ARG234 ($2)
16216 _ACEOF
16217
16218
16219 cat >>confdefs.h <<_ACEOF
16220 #define SELECT_TYPE_ARG5 ($3)
16221 _ACEOF
16222
16223 rm -f conftest*
16224
16225 fi
16226
16227
16228
16229 for ac_func in poll
16230 do
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16245 #define $ac_func innocuous_$ac_func
16246
16247 /* System header to define __stub macros and hopefully few prototypes,
16248     which can conflict with char $ac_func (); below.
16249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250     <limits.h> exists even on freestanding compilers.  */
16251
16252 #ifdef __STDC__
16253 # include <limits.h>
16254 #else
16255 # include <assert.h>
16256 #endif
16257
16258 #undef $ac_func
16259
16260 /* Override any GCC internal prototype to avoid an error.
16261    Use char because int might match the return type of a GCC
16262    builtin and then its argument prototype would still apply.  */
16263 #ifdef __cplusplus
16264 extern "C"
16265 #endif
16266 char $ac_func ();
16267 /* The GNU C library defines this for functions which it implements
16268     to always fail with ENOSYS.  Some functions are actually named
16269     something starting with __ and the normal name is an alias.  */
16270 #if defined __stub_$ac_func || defined __stub___$ac_func
16271 choke me
16272 #endif
16273
16274 int
16275 main ()
16276 {
16277 return $ac_func ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_link") 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } && {
16296          test -z "$ac_c_werror_flag" ||
16297          test ! -s conftest.err
16298        } && test -s conftest$ac_exeext &&
16299        $as_test_x conftest$ac_exeext; then
16300   eval "$as_ac_var=yes"
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305         eval "$as_ac_var=no"
16306 fi
16307
16308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309       conftest$ac_exeext conftest.$ac_ext
16310 fi
16311 ac_res=`eval echo '${'$as_ac_var'}'`
16312                { echo "$as_me:$LINENO: result: $ac_res" >&5
16313 echo "${ECHO_T}$ac_res" >&6; }
16314 if test `eval echo '${'$as_ac_var'}'` = yes; then
16315   cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16317 _ACEOF
16318
16319 fi
16320 done
16321
16322 if test $ac_cv_func_poll = yes; then
16323
16324
16325 for ac_header in poll.h sys/poll.h
16326 do
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 fi
16334 ac_res=`eval echo '${'$as_ac_Header'}'`
16335                { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 else
16338   # Is the header compilable?
16339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 #include <$ac_header>
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_compile") 2>conftest.er1
16358   ac_status=$?
16359   grep -v '^ *+' conftest.er1 >conftest.err
16360   rm -f conftest.er1
16361   cat conftest.err >&5
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } && {
16364          test -z "$ac_c_werror_flag" ||
16365          test ! -s conftest.err
16366        } && test -s conftest.$ac_objext; then
16367   ac_header_compiler=yes
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372         ac_header_compiler=no
16373 fi
16374
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377 echo "${ECHO_T}$ac_header_compiler" >&6; }
16378
16379 # Is the header present?
16380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #include <$ac_header>
16389 _ACEOF
16390 if { (ac_try="$ac_cpp conftest.$ac_ext"
16391 case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16397   ac_status=$?
16398   grep -v '^ *+' conftest.er1 >conftest.err
16399   rm -f conftest.er1
16400   cat conftest.err >&5
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); } >/dev/null && {
16403          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16404          test ! -s conftest.err
16405        }; then
16406   ac_header_preproc=yes
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411   ac_header_preproc=no
16412 fi
16413
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16417
16418 # So?  What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420   yes:no: )
16421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425     ac_header_preproc=yes
16426     ;;
16427   no:yes:* )
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440     ( cat <<\_ASBOX
16441 ## --------------------------------------------- ##
16442 ## Report this to <http://www.openldap.org/its/> ##
16443 ## --------------------------------------------- ##
16444 _ASBOX
16445      ) | sed "s/^/$as_me: WARNING:     /" >&2
16446     ;;
16447 esac
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   eval "$as_ac_Header=\$ac_header_preproc"
16454 fi
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456                { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458
16459 fi
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461   cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466
16467 done
16468
16469 fi
16470
16471
16472 for ac_header in sys/epoll.h
16473 do
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 fi
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482                { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16484 else
16485   # Is the header compilable?
16486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 $ac_includes_default
16495 #include <$ac_header>
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_compile") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } && {
16511          test -z "$ac_c_werror_flag" ||
16512          test ! -s conftest.err
16513        } && test -s conftest.$ac_objext; then
16514   ac_header_compiler=yes
16515 else
16516   echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519         ac_header_compiler=no
16520 fi
16521
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16524 echo "${ECHO_T}$ac_header_compiler" >&6; }
16525
16526 # Is the header present?
16527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535 #include <$ac_header>
16536 _ACEOF
16537 if { (ac_try="$ac_cpp conftest.$ac_ext"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } >/dev/null && {
16550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16551          test ! -s conftest.err
16552        }; then
16553   ac_header_preproc=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558   ac_header_preproc=no
16559 fi
16560
16561 rm -f conftest.err conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 echo "${ECHO_T}$ac_header_preproc" >&6; }
16564
16565 # So?  What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16567   yes:no: )
16568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16572     ac_header_preproc=yes
16573     ;;
16574   no:yes:* )
16575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16577     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16578 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16579     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16581     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16582 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16585     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16587     ( cat <<\_ASBOX
16588 ## --------------------------------------------- ##
16589 ## Report this to <http://www.openldap.org/its/> ##
16590 ## --------------------------------------------- ##
16591 _ASBOX
16592      ) | sed "s/^/$as_me: WARNING:     /" >&2
16593     ;;
16594 esac
16595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   eval "$as_ac_Header=\$ac_header_preproc"
16601 fi
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603                { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16605
16606 fi
16607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16608   cat >>confdefs.h <<_ACEOF
16609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16610 _ACEOF
16611
16612 fi
16613
16614 done
16615
16616 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16617         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16618 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16619         if test "$cross_compiling" = yes; then
16620   { echo "$as_me:$LINENO: result: no" >&5
16621 echo "${ECHO_T}no" >&6; }
16622 else
16623   cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629 int main(int argc, char **argv)
16630 {
16631         int epfd = epoll_create(256);
16632         exit (epfd == -1 ? 1 : 0);
16633 }
16634 _ACEOF
16635 rm -f conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_link") 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16646   { (case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651   (eval "$ac_try") 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }; then
16655   { echo "$as_me:$LINENO: result: yes" >&5
16656 echo "${ECHO_T}yes" >&6; }
16657
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_EPOLL 1
16660 _ACEOF
16661
16662 else
16663   echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ( exit $ac_status )
16668 { echo "$as_me:$LINENO: result: no" >&5
16669 echo "${ECHO_T}no" >&6; }
16670 fi
16671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16672 fi
16673
16674
16675 fi
16676
16677
16678 for ac_header in sys/devpoll.h
16679 do
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 fi
16687 ac_res=`eval echo '${'$as_ac_Header'}'`
16688                { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 else
16691   # Is the header compilable?
16692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 #include <$ac_header>
16702 _ACEOF
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_compile") 2>conftest.er1
16711   ac_status=$?
16712   grep -v '^ *+' conftest.er1 >conftest.err
16713   rm -f conftest.er1
16714   cat conftest.err >&5
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); } && {
16717          test -z "$ac_c_werror_flag" ||
16718          test ! -s conftest.err
16719        } && test -s conftest.$ac_objext; then
16720   ac_header_compiler=yes
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725         ac_header_compiler=no
16726 fi
16727
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731
16732 # Is the header present?
16733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <$ac_header>
16742 _ACEOF
16743 if { (ac_try="$ac_cpp conftest.$ac_ext"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } >/dev/null && {
16756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16757          test ! -s conftest.err
16758        }; then
16759   ac_header_preproc=yes
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764   ac_header_preproc=no
16765 fi
16766
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16770
16771 # So?  What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16773   yes:no: )
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16778     ac_header_preproc=yes
16779     ;;
16780   no:yes:* )
16781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16793     ( cat <<\_ASBOX
16794 ## --------------------------------------------- ##
16795 ## Report this to <http://www.openldap.org/its/> ##
16796 ## --------------------------------------------- ##
16797 _ASBOX
16798      ) | sed "s/^/$as_me: WARNING:     /" >&2
16799     ;;
16800 esac
16801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   eval "$as_ac_Header=\$ac_header_preproc"
16807 fi
16808 ac_res=`eval echo '${'$as_ac_Header'}'`
16809                { echo "$as_me:$LINENO: result: $ac_res" >&5
16810 echo "${ECHO_T}$ac_res" >&6; }
16811
16812 fi
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814   cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 _ACEOF
16817
16818 fi
16819
16820 done
16821
16822 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16823                 -a "${ac_cv_header_poll_h}" = yes ; \
16824 then
16825         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16826 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16827         if test "$cross_compiling" = yes; then
16828   { echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6; }
16830 else
16831   cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837 int main(int argc, char **argv)
16838 {
16839         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16840         exit (devpollfd == -1 ? 1 : 0);
16841 }
16842 _ACEOF
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847   *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850   (eval "$ac_link") 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16854   { (case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_try") 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   { echo "$as_me:$LINENO: result: yes" >&5
16864 echo "${ECHO_T}yes" >&6; }
16865
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_DEVPOLL 1
16868 _ACEOF
16869
16870 else
16871   echo "$as_me: program exited with status $ac_status" >&5
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875 ( exit $ac_status )
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16878 fi
16879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16880 fi
16881
16882
16883 fi
16884
16885 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16886 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16887 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890
16891         cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897
16898 #include <stdio.h>
16899 #include <sys/types.h>
16900 #include <errno.h>
16901 #ifdef _WIN32
16902 #include <stdlib.h>
16903 #endif
16904 int
16905 main ()
16906 {
16907 char *c = (char *) *sys_errlist
16908   ;
16909   return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext
16913 if { (ac_try="$ac_compile"
16914 case "(($ac_try" in
16915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916   *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919   (eval "$ac_compile") 2>conftest.er1
16920   ac_status=$?
16921   grep -v '^ *+' conftest.er1 >conftest.err
16922   rm -f conftest.er1
16923   cat conftest.err >&5
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } && {
16926          test -z "$ac_c_werror_flag" ||
16927          test ! -s conftest.err
16928        } && test -s conftest.$ac_objext; then
16929   ol_cv_dcl_sys_errlist=yes
16930         ol_cv_have_sys_errlist=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935         ol_cv_dcl_sys_errlist=no
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16941 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16942 #
16943 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16944 if test $ol_cv_dcl_sys_errlist = no ; then
16945
16946 cat >>confdefs.h <<\_ACEOF
16947 #define DECL_SYS_ERRLIST 1
16948 _ACEOF
16949
16950
16951         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16952 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16953 if test "${ol_cv_have_sys_errlist+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956
16957                 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 #include <errno.h>
16964 int
16965 main ()
16966 {
16967 char *c = (char *) *sys_errlist
16968   ;
16969   return 0;
16970 }
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (ac_try="$ac_link"
16974 case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_link") 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } && {
16986          test -z "$ac_c_werror_flag" ||
16987          test ! -s conftest.err
16988        } && test -s conftest$ac_exeext &&
16989        $as_test_x conftest$ac_exeext; then
16990   ol_cv_have_sys_errlist=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995         ol_cv_have_sys_errlist=no
16996 fi
16997
16998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16999       conftest$ac_exeext conftest.$ac_ext
17000 fi
17001 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17002 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17003 fi
17004 if test $ol_cv_have_sys_errlist = yes ; then
17005
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_SYS_ERRLIST 1
17008 _ACEOF
17009
17010 fi
17011
17012
17013 for ac_func in strerror strerror_r
17014 do
17015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17019   echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021   cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17029 #define $ac_func innocuous_$ac_func
17030
17031 /* System header to define __stub macros and hopefully few prototypes,
17032     which can conflict with char $ac_func (); below.
17033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034     <limits.h> exists even on freestanding compilers.  */
17035
17036 #ifdef __STDC__
17037 # include <limits.h>
17038 #else
17039 # include <assert.h>
17040 #endif
17041
17042 #undef $ac_func
17043
17044 /* Override any GCC internal prototype to avoid an error.
17045    Use char because int might match the return type of a GCC
17046    builtin and then its argument prototype would still apply.  */
17047 #ifdef __cplusplus
17048 extern "C"
17049 #endif
17050 char $ac_func ();
17051 /* The GNU C library defines this for functions which it implements
17052     to always fail with ENOSYS.  Some functions are actually named
17053     something starting with __ and the normal name is an alias.  */
17054 #if defined __stub_$ac_func || defined __stub___$ac_func
17055 choke me
17056 #endif
17057
17058 int
17059 main ()
17060 {
17061 return $ac_func ();
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_link") 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } && {
17080          test -z "$ac_c_werror_flag" ||
17081          test ! -s conftest.err
17082        } && test -s conftest$ac_exeext &&
17083        $as_test_x conftest$ac_exeext; then
17084   eval "$as_ac_var=yes"
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089         eval "$as_ac_var=no"
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093       conftest$ac_exeext conftest.$ac_ext
17094 fi
17095 ac_res=`eval echo '${'$as_ac_var'}'`
17096                { echo "$as_me:$LINENO: result: $ac_res" >&5
17097 echo "${ECHO_T}$ac_res" >&6; }
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099   cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17101 _ACEOF
17102
17103 fi
17104 done
17105
17106 ol_cv_func_strerror_r=no
17107 if test "${ac_cv_func_strerror_r}" = yes ; then
17108         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17109 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17110 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113
17114         cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120 #include <string.h>
17121 _ACEOF
17122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17123   $EGREP "strerror_r" >/dev/null 2>&1; then
17124   ol_decl_strerror_r=yes
17125 else
17126   ol_decl_strerror_r=no
17127 fi
17128 rm -f conftest*
17129
17130         if test $ol_decl_strerror_r = yes ; then
17131                 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 #include <string.h>
17138 int
17139 main ()
17140 {
17141    /* from autoconf 2.59 */
17142                                 char buf[100];
17143                                 char x = *strerror_r (0, buf, sizeof buf);
17144                                 char *p = strerror_r (0, buf, sizeof buf);
17145
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157   (eval "$ac_compile") 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } && {
17164          test -z "$ac_c_werror_flag" ||
17165          test ! -s conftest.err
17166        } && test -s conftest.$ac_objext; then
17167   ol_cv_nonposix_strerror_r=yes
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172         ol_cv_nonposix_strerror_r=no
17173 fi
17174
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176         else
17177                 if test "$cross_compiling" = yes; then
17178   ol_cv_nonposix_strerror=no
17179 else
17180   cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186
17187                         main() {
17188                                 char buf[100];
17189                                 buf[0] = 0;
17190                                 strerror_r( 1, buf, sizeof buf );
17191                                 exit( buf[0] == 0 );
17192                         }
17193
17194 _ACEOF
17195 rm -f conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_link") 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; }; then
17215   ol_cv_nonposix_strerror_r=yes
17216 else
17217   echo "$as_me: program exited with status $ac_status" >&5
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 ( exit $ac_status )
17222 ol_cv_nonposix_strerror=no
17223 fi
17224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17225 fi
17226
17227
17228         fi
17229
17230 fi
17231 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17232 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17233 if test $ol_cv_nonposix_strerror_r = yes ; then
17234
17235 cat >>confdefs.h <<\_ACEOF
17236 #define HAVE_NONPOSIX_STRERROR_R 1
17237 _ACEOF
17238
17239 fi
17240
17241 elif test "${ac_cv_func_strerror}" = no ; then
17242         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17243 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17244 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17245   echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247
17248         cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254
17255 #include <stdio.h>
17256 #include <sys/types.h>
17257 #include <errno.h>
17258 #ifdef _WIN32
17259 #include <stdlib.h>
17260 #endif
17261 int
17262 main ()
17263 {
17264 char *c = (char *) *sys_errlist
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276   (eval "$ac_compile") 2>conftest.er1
17277   ac_status=$?
17278   grep -v '^ *+' conftest.er1 >conftest.err
17279   rm -f conftest.er1
17280   cat conftest.err >&5
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } && {
17283          test -z "$ac_c_werror_flag" ||
17284          test ! -s conftest.err
17285        } && test -s conftest.$ac_objext; then
17286   ol_cv_dcl_sys_errlist=yes
17287         ol_cv_have_sys_errlist=yes
17288 else
17289   echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292         ol_cv_dcl_sys_errlist=no
17293 fi
17294
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17296 fi
17297 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17298 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17299 #
17300 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17301 if test $ol_cv_dcl_sys_errlist = no ; then
17302
17303 cat >>confdefs.h <<\_ACEOF
17304 #define DECL_SYS_ERRLIST 1
17305 _ACEOF
17306
17307
17308         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17309 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17310 if test "${ol_cv_have_sys_errlist+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313
17314                 cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320 #include <errno.h>
17321 int
17322 main ()
17323 {
17324 char *c = (char *) *sys_errlist
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_link") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest$ac_exeext &&
17346        $as_test_x conftest$ac_exeext; then
17347   ol_cv_have_sys_errlist=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352         ol_cv_have_sys_errlist=no
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356       conftest$ac_exeext conftest.$ac_ext
17357 fi
17358 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17359 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17360 fi
17361 if test $ol_cv_have_sys_errlist = yes ; then
17362
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_SYS_ERRLIST 1
17365 _ACEOF
17366
17367 fi
17368
17369 fi
17370
17371
17372
17373 for ac_header in regex.h
17374 do
17375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 $ac_includes_default
17388 #ifdef HAVE_SYS_TYPES_H
17389 #include <sys/types.h>
17390 #endif
17391
17392
17393 #include <$ac_header>
17394 _ACEOF
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_compile") 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } && {
17409          test -z "$ac_c_werror_flag" ||
17410          test ! -s conftest.err
17411        } && test -s conftest.$ac_objext; then
17412   eval "$as_ac_Header=yes"
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         eval "$as_ac_Header=no"
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 fi
17422 ac_res=`eval echo '${'$as_ac_Header'}'`
17423                { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426   cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 fi
17431
17432 done
17433
17434
17435 if test "$ac_cv_header_regex_h" != yes ; then
17436         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17437 echo "$as_me: error: POSIX regex.h required." >&2;}
17438    { (exit 1); exit 1; }; }
17439 fi
17440 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17441 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17442 if test "${ac_cv_search_regfree+set}" = set; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   ac_func_search_save_LIBS=$LIBS
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452
17453 /* Override any GCC internal prototype to avoid an error.
17454    Use char because int might match the return type of a GCC
17455    builtin and then its argument prototype would still apply.  */
17456 #ifdef __cplusplus
17457 extern "C"
17458 #endif
17459 char regfree ();
17460 int
17461 main ()
17462 {
17463 return regfree ();
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 for ac_lib in '' regex gnuregex; do
17469   if test -z "$ac_lib"; then
17470     ac_res="none required"
17471   else
17472     ac_res=-l$ac_lib
17473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17474   fi
17475   rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_link") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } && {
17489          test -z "$ac_c_werror_flag" ||
17490          test ! -s conftest.err
17491        } && test -s conftest$ac_exeext &&
17492        $as_test_x conftest$ac_exeext; then
17493   ac_cv_search_regfree=$ac_res
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17502       conftest$ac_exeext
17503   if test "${ac_cv_search_regfree+set}" = set; then
17504   break
17505 fi
17506 done
17507 if test "${ac_cv_search_regfree+set}" = set; then
17508   :
17509 else
17510   ac_cv_search_regfree=no
17511 fi
17512 rm conftest.$ac_ext
17513 LIBS=$ac_func_search_save_LIBS
17514 fi
17515 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17516 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17517 ac_res=$ac_cv_search_regfree
17518 if test "$ac_res" != no; then
17519   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17520   :
17521 else
17522   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17523 echo "$as_me: error: POSIX regex required." >&2;}
17524    { (exit 1); exit 1; }; }
17525 fi
17526
17527
17528
17529 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17530 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17531 if test "${ol_cv_c_posix_regex+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534
17535         if test "$cross_compiling" = yes; then
17536   ol_cv_c_posix_regex=cross
17537 else
17538   cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h.  */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h.  */
17544
17545 #include <sys/types.h>
17546 #include <regex.h>
17547 static char *pattern, *string;
17548 main()
17549 {
17550         int rc;
17551         regex_t re;
17552
17553         pattern = "^A";
17554
17555         if(regcomp(&re, pattern, 0)) {
17556                 return -1;
17557         }
17558
17559         string = "ALL MATCH";
17560
17561         rc = regexec(&re, string, 0, (void*)0, 0);
17562
17563         regfree(&re);
17564
17565         return rc;
17566 }
17567 _ACEOF
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_link") 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579   { (case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_try") 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   ol_cv_c_posix_regex=yes
17589 else
17590   echo "$as_me: program exited with status $ac_status" >&5
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ( exit $ac_status )
17595 ol_cv_c_posix_regex=no
17596 fi
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17598 fi
17599
17600
17601 fi
17602 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17603 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17604
17605 if test "$ol_cv_c_posix_regex" = no ; then
17606         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17607 echo "$as_me: error: broken POSIX regex!" >&2;}
17608    { (exit 1); exit 1; }; }
17609 fi
17610
17611
17612 have_uuid=no
17613
17614 for ac_header in sys/uuid.h
17615 do
17616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17618   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 fi
17623 ac_res=`eval echo '${'$as_ac_Header'}'`
17624                { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17626 else
17627   # Is the header compilable?
17628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636 $ac_includes_default
17637 #include <$ac_header>
17638 _ACEOF
17639 rm -f conftest.$ac_objext
17640 if { (ac_try="$ac_compile"
17641 case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_compile") 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } && {
17653          test -z "$ac_c_werror_flag" ||
17654          test ! -s conftest.err
17655        } && test -s conftest.$ac_objext; then
17656   ac_header_compiler=yes
17657 else
17658   echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661         ac_header_compiler=no
17662 fi
17663
17664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17666 echo "${ECHO_T}$ac_header_compiler" >&6; }
17667
17668 # Is the header present?
17669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677 #include <$ac_header>
17678 _ACEOF
17679 if { (ac_try="$ac_cpp conftest.$ac_ext"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } >/dev/null && {
17692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17693          test ! -s conftest.err
17694        }; then
17695   ac_header_preproc=yes
17696 else
17697   echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700   ac_header_preproc=no
17701 fi
17702
17703 rm -f conftest.err conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17705 echo "${ECHO_T}$ac_header_preproc" >&6; }
17706
17707 # So?  What about this header?
17708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17709   yes:no: )
17710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17714     ac_header_preproc=yes
17715     ;;
17716   no:yes:* )
17717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17729     ( cat <<\_ASBOX
17730 ## --------------------------------------------- ##
17731 ## Report this to <http://www.openldap.org/its/> ##
17732 ## --------------------------------------------- ##
17733 _ASBOX
17734      ) | sed "s/^/$as_me: WARNING:     /" >&2
17735     ;;
17736 esac
17737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17740   echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742   eval "$as_ac_Header=\$ac_header_preproc"
17743 fi
17744 ac_res=`eval echo '${'$as_ac_Header'}'`
17745                { echo "$as_me:$LINENO: result: $ac_res" >&5
17746 echo "${ECHO_T}$ac_res" >&6; }
17747
17748 fi
17749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17750   cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17752 _ACEOF
17753
17754 fi
17755
17756 done
17757
17758 if test $ac_cv_header_sys_uuid_h = yes ; then
17759         save_LIBS="$LIBS"
17760         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17761 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17762 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   ac_func_search_save_LIBS=$LIBS
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772
17773 /* Override any GCC internal prototype to avoid an error.
17774    Use char because int might match the return type of a GCC
17775    builtin and then its argument prototype would still apply.  */
17776 #ifdef __cplusplus
17777 extern "C"
17778 #endif
17779 char uuid_to_str ();
17780 int
17781 main ()
17782 {
17783 return uuid_to_str ();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 for ac_lib in '' uuid; do
17789   if test -z "$ac_lib"; then
17790     ac_res="none required"
17791   else
17792     ac_res=-l$ac_lib
17793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17794   fi
17795   rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (ac_try="$ac_link"
17797 case "(($ac_try" in
17798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799   *) ac_try_echo=$ac_try;;
17800 esac
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802   (eval "$ac_link") 2>conftest.er1
17803   ac_status=$?
17804   grep -v '^ *+' conftest.er1 >conftest.err
17805   rm -f conftest.er1
17806   cat conftest.err >&5
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } && {
17809          test -z "$ac_c_werror_flag" ||
17810          test ! -s conftest.err
17811        } && test -s conftest$ac_exeext &&
17812        $as_test_x conftest$ac_exeext; then
17813   ac_cv_search_uuid_to_str=$ac_res
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818
17819 fi
17820
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822       conftest$ac_exeext
17823   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17824   break
17825 fi
17826 done
17827 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17828   :
17829 else
17830   ac_cv_search_uuid_to_str=no
17831 fi
17832 rm conftest.$ac_ext
17833 LIBS=$ac_func_search_save_LIBS
17834 fi
17835 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17836 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17837 ac_res=$ac_cv_search_uuid_to_str
17838 if test "$ac_res" != no; then
17839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17840   have_uuid=yes
17841 else
17842   :
17843 fi
17844
17845         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17846 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17847 if test "${ac_cv_search_uuid_create+set}" = set; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850   ac_func_search_save_LIBS=$LIBS
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h.  */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h.  */
17857
17858 /* Override any GCC internal prototype to avoid an error.
17859    Use char because int might match the return type of a GCC
17860    builtin and then its argument prototype would still apply.  */
17861 #ifdef __cplusplus
17862 extern "C"
17863 #endif
17864 char uuid_create ();
17865 int
17866 main ()
17867 {
17868 return uuid_create ();
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 for ac_lib in '' uuid; do
17874   if test -z "$ac_lib"; then
17875     ac_res="none required"
17876   else
17877     ac_res=-l$ac_lib
17878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17879   fi
17880   rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887   (eval "$ac_link") 2>conftest.er1
17888   ac_status=$?
17889   grep -v '^ *+' conftest.er1 >conftest.err
17890   rm -f conftest.er1
17891   cat conftest.err >&5
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && {
17894          test -z "$ac_c_werror_flag" ||
17895          test ! -s conftest.err
17896        } && test -s conftest$ac_exeext &&
17897        $as_test_x conftest$ac_exeext; then
17898   ac_cv_search_uuid_create=$ac_res
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903
17904 fi
17905
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17907       conftest$ac_exeext
17908   if test "${ac_cv_search_uuid_create+set}" = set; then
17909   break
17910 fi
17911 done
17912 if test "${ac_cv_search_uuid_create+set}" = set; then
17913   :
17914 else
17915   ac_cv_search_uuid_create=no
17916 fi
17917 rm conftest.$ac_ext
17918 LIBS=$ac_func_search_save_LIBS
17919 fi
17920 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17921 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17922 ac_res=$ac_cv_search_uuid_create
17923 if test "$ac_res" != no; then
17924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17925   :
17926 else
17927   have_uuid=no
17928 fi
17929
17930         LIBS="$save_LIBS"
17931
17932         if test $have_uuid = yes ; then
17933
17934 cat >>confdefs.h <<\_ACEOF
17935 #define HAVE_UUID_TO_STR 1
17936 _ACEOF
17937
17938
17939                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17940                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17941         fi
17942 fi
17943
17944 if test $have_uuid = no ; then
17945
17946 for ac_header in uuid/uuid.h
17947 do
17948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 fi
17955 ac_res=`eval echo '${'$as_ac_Header'}'`
17956                { echo "$as_me:$LINENO: result: $ac_res" >&5
17957 echo "${ECHO_T}$ac_res" >&6; }
17958 else
17959   # Is the header compilable?
17960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 $ac_includes_default
17969 #include <$ac_header>
17970 _ACEOF
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_compile") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } && {
17985          test -z "$ac_c_werror_flag" ||
17986          test ! -s conftest.err
17987        } && test -s conftest.$ac_objext; then
17988   ac_header_compiler=yes
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993         ac_header_compiler=no
17994 fi
17995
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17998 echo "${ECHO_T}$ac_header_compiler" >&6; }
17999
18000 # Is the header present?
18001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h.  */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h.  */
18009 #include <$ac_header>
18010 _ACEOF
18011 if { (ac_try="$ac_cpp conftest.$ac_ext"
18012 case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18018   ac_status=$?
18019   grep -v '^ *+' conftest.er1 >conftest.err
18020   rm -f conftest.er1
18021   cat conftest.err >&5
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } >/dev/null && {
18024          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18025          test ! -s conftest.err
18026        }; then
18027   ac_header_preproc=yes
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032   ac_header_preproc=no
18033 fi
18034
18035 rm -f conftest.err conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18037 echo "${ECHO_T}$ac_header_preproc" >&6; }
18038
18039 # So?  What about this header?
18040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18041   yes:no: )
18042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18046     ac_header_preproc=yes
18047     ;;
18048   no:yes:* )
18049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18061     ( cat <<\_ASBOX
18062 ## --------------------------------------------- ##
18063 ## Report this to <http://www.openldap.org/its/> ##
18064 ## --------------------------------------------- ##
18065 _ASBOX
18066      ) | sed "s/^/$as_me: WARNING:     /" >&2
18067     ;;
18068 esac
18069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18072   echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074   eval "$as_ac_Header=\$ac_header_preproc"
18075 fi
18076 ac_res=`eval echo '${'$as_ac_Header'}'`
18077                { echo "$as_me:$LINENO: result: $ac_res" >&5
18078 echo "${ECHO_T}$ac_res" >&6; }
18079
18080 fi
18081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18082   cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 fi
18087
18088 done
18089
18090         if test $ac_cv_header_uuid_uuid_h = yes ; then
18091                 save_LIBS="$LIBS"
18092                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18093 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18094 if test "${ac_cv_search_uuid_generate+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   ac_func_search_save_LIBS=$LIBS
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104
18105 /* Override any GCC internal prototype to avoid an error.
18106    Use char because int might match the return type of a GCC
18107    builtin and then its argument prototype would still apply.  */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 char uuid_generate ();
18112 int
18113 main ()
18114 {
18115 return uuid_generate ();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 for ac_lib in '' uuid; do
18121   if test -z "$ac_lib"; then
18122     ac_res="none required"
18123   else
18124     ac_res=-l$ac_lib
18125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18126   fi
18127   rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_link") 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } && {
18141          test -z "$ac_c_werror_flag" ||
18142          test ! -s conftest.err
18143        } && test -s conftest$ac_exeext &&
18144        $as_test_x conftest$ac_exeext; then
18145   ac_cv_search_uuid_generate=$ac_res
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150
18151 fi
18152
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18154       conftest$ac_exeext
18155   if test "${ac_cv_search_uuid_generate+set}" = set; then
18156   break
18157 fi
18158 done
18159 if test "${ac_cv_search_uuid_generate+set}" = set; then
18160   :
18161 else
18162   ac_cv_search_uuid_generate=no
18163 fi
18164 rm conftest.$ac_ext
18165 LIBS=$ac_func_search_save_LIBS
18166 fi
18167 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18168 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18169 ac_res=$ac_cv_search_uuid_generate
18170 if test "$ac_res" != no; then
18171   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18172   have_uuid=yes
18173 else
18174   :
18175 fi
18176
18177                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18178 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18179 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18180   echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182   ac_func_search_save_LIBS=$LIBS
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191    Use char because int might match the return type of a GCC
18192    builtin and then its argument prototype would still apply.  */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char uuid_unparse_lower ();
18197 int
18198 main ()
18199 {
18200 return uuid_unparse_lower ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 for ac_lib in '' uuid; do
18206   if test -z "$ac_lib"; then
18207     ac_res="none required"
18208   else
18209     ac_res=-l$ac_lib
18210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18211   fi
18212   rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && {
18226          test -z "$ac_c_werror_flag" ||
18227          test ! -s conftest.err
18228        } && test -s conftest$ac_exeext &&
18229        $as_test_x conftest$ac_exeext; then
18230   ac_cv_search_uuid_unparse_lower=$ac_res
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235
18236 fi
18237
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18239       conftest$ac_exeext
18240   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18241   break
18242 fi
18243 done
18244 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18245   :
18246 else
18247   ac_cv_search_uuid_unparse_lower=no
18248 fi
18249 rm conftest.$ac_ext
18250 LIBS=$ac_func_search_save_LIBS
18251 fi
18252 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18253 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18254 ac_res=$ac_cv_search_uuid_unparse_lower
18255 if test "$ac_res" != no; then
18256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18257   :
18258 else
18259   have_uuid=no
18260 fi
18261
18262                 LIBS="$save_LIBS"
18263
18264                 if test $have_uuid = yes ; then
18265
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_UUID_GENERATE 1
18268 _ACEOF
18269
18270
18271                         test "$ac_cv_search_uuid_generate" = "none required" || \
18272                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18273                 fi
18274         fi
18275 fi
18276
18277 if test $have_uuid = no ; then
18278         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18279 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18280         save_LIBS="$LIBS"
18281         LIBS="$LIBS -lrpcrt4"
18282         cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288
18289                 int __stdcall UuidCreate(void *);
18290                 int __stdcall UuidToStringA(void *,void **);
18291
18292 int
18293 main ()
18294 {
18295
18296                 UuidCreate(0);
18297                 UuidToStringA(0,0);
18298
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307   *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310   (eval "$ac_link") 2>conftest.er1
18311   ac_status=$?
18312   grep -v '^ *+' conftest.er1 >conftest.err
18313   rm -f conftest.er1
18314   cat conftest.err >&5
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); } && {
18317          test -z "$ac_c_werror_flag" ||
18318          test ! -s conftest.err
18319        } && test -s conftest$ac_exeext &&
18320        $as_test_x conftest$ac_exeext; then
18321   need_rpcrt=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326         need_rpcrt=no
18327 fi
18328
18329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18330       conftest$ac_exeext conftest.$ac_ext
18331         if test $need_rpcrt = yes; then
18332                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18333         fi
18334         LIBS="$save_LIBS"
18335         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18336 echo "${ECHO_T}$need_rpcrt" >&6; }
18337 fi
18338
18339 ol_cv_lib_resolver=no
18340 if test $ol_cv_lib_resolver = no ; then
18341         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18342 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18343 if test "${ol_cv_resolver_none+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346
18347         ol_RESOLVER_LIB=
18348         ol_LIBS=$LIBS
18349         LIBS="$ol_RESOLVER_LIB $LIBS"
18350
18351         cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357
18358 #ifdef HAVE_SYS_TYPES_H
18359 #       include <sys/types.h>
18360 #endif
18361 #include <netinet/in.h>
18362 #ifdef HAVE_ARPA_NAMESER_H
18363 #       include <arpa/nameser.h>
18364 #endif
18365 #ifdef HAVE_RESOLV_H
18366 #       include <resolv.h>
18367 #endif
18368
18369 int
18370 main ()
18371 {
18372 {
18373         int len, status;
18374         char *request = NULL;
18375         unsigned char reply[64*1024];
18376         unsigned char host[64*1024];
18377         unsigned char *p;
18378
18379 #ifdef NS_HFIXEDSZ
18380         /* Bind 8/9 interface */
18381         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18382 #else
18383         /* Bind 4 interface */
18384 # ifndef T_SRV
18385 #  define T_SRV 33
18386 # endif
18387         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18388 #endif
18389         p = reply;
18390 #ifdef NS_HFIXEDSZ
18391         /* Bind 8/9 interface */
18392         p += NS_HFIXEDSZ;
18393 #elif defined(HFIXEDSZ)
18394         /* Bind 4 interface w/ HFIXEDSZ */
18395         p += HFIXEDSZ;
18396 #else
18397         /* Bind 4 interface w/o HFIXEDSZ */
18398         p += sizeof(HEADER);
18399 #endif
18400         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18401 }
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_c_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest$ac_exeext &&
18423        $as_test_x conftest$ac_exeext; then
18424   ol_cv_resolver_none=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ol_cv_resolver_none=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433       conftest$ac_exeext conftest.$ac_ext
18434
18435         LIBS="$ol_LIBS"
18436
18437 fi
18438 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18439 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18440
18441         if test $ol_cv_resolver_none = yes ; then
18442                 ol_cv_lib_resolver=yes
18443         fi
18444 fi
18445
18446 if test $ol_cv_lib_resolver = no ; then
18447         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18448 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18449 if test "${ol_cv_resolver_resolv+set}" = set; then
18450   echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452
18453         ol_RESOLVER_LIB=-lresolv
18454         ol_LIBS=$LIBS
18455         LIBS="$ol_RESOLVER_LIB $LIBS"
18456
18457         cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 #ifdef HAVE_SYS_TYPES_H
18465 #       include <sys/types.h>
18466 #endif
18467 #include <netinet/in.h>
18468 #ifdef HAVE_ARPA_NAMESER_H
18469 #       include <arpa/nameser.h>
18470 #endif
18471 #ifdef HAVE_RESOLV_H
18472 #       include <resolv.h>
18473 #endif
18474
18475 int
18476 main ()
18477 {
18478 {
18479         int len, status;
18480         char *request = NULL;
18481         unsigned char reply[64*1024];
18482         unsigned char host[64*1024];
18483         unsigned char *p;
18484
18485 #ifdef NS_HFIXEDSZ
18486         /* Bind 8/9 interface */
18487         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18488 #else
18489         /* Bind 4 interface */
18490 # ifndef T_SRV
18491 #  define T_SRV 33
18492 # endif
18493         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18494 #endif
18495         p = reply;
18496 #ifdef NS_HFIXEDSZ
18497         /* Bind 8/9 interface */
18498         p += NS_HFIXEDSZ;
18499 #elif defined(HFIXEDSZ)
18500         /* Bind 4 interface w/ HFIXEDSZ */
18501         p += HFIXEDSZ;
18502 #else
18503         /* Bind 4 interface w/o HFIXEDSZ */
18504         p += sizeof(HEADER);
18505 #endif
18506         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18507 }
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_link") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } && {
18526          test -z "$ac_c_werror_flag" ||
18527          test ! -s conftest.err
18528        } && test -s conftest$ac_exeext &&
18529        $as_test_x conftest$ac_exeext; then
18530   ol_cv_resolver_resolv=yes
18531 else
18532   echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18534
18535         ol_cv_resolver_resolv=no
18536 fi
18537
18538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18539       conftest$ac_exeext conftest.$ac_ext
18540
18541         LIBS="$ol_LIBS"
18542
18543 fi
18544 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18545 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18546
18547         if test $ol_cv_resolver_resolv = yes ; then
18548                 ol_cv_lib_resolver=-lresolv
18549         fi
18550 fi
18551
18552 if test $ol_cv_lib_resolver = no ; then
18553         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18554 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18555 if test "${ol_cv_resolver_bind+set}" = set; then
18556   echo $ECHO_N "(cached) $ECHO_C" >&6
18557 else
18558
18559         ol_RESOLVER_LIB=-lbind
18560         ol_LIBS=$LIBS
18561         LIBS="$ol_RESOLVER_LIB $LIBS"
18562
18563         cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h.  */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h.  */
18569
18570 #ifdef HAVE_SYS_TYPES_H
18571 #       include <sys/types.h>
18572 #endif
18573 #include <netinet/in.h>
18574 #ifdef HAVE_ARPA_NAMESER_H
18575 #       include <arpa/nameser.h>
18576 #endif
18577 #ifdef HAVE_RESOLV_H
18578 #       include <resolv.h>
18579 #endif
18580
18581 int
18582 main ()
18583 {
18584 {
18585         int len, status;
18586         char *request = NULL;
18587         unsigned char reply[64*1024];
18588         unsigned char host[64*1024];
18589         unsigned char *p;
18590
18591 #ifdef NS_HFIXEDSZ
18592         /* Bind 8/9 interface */
18593         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18594 #else
18595         /* Bind 4 interface */
18596 # ifndef T_SRV
18597 #  define T_SRV 33
18598 # endif
18599         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18600 #endif
18601         p = reply;
18602 #ifdef NS_HFIXEDSZ
18603         /* Bind 8/9 interface */
18604         p += NS_HFIXEDSZ;
18605 #elif defined(HFIXEDSZ)
18606         /* Bind 4 interface w/ HFIXEDSZ */
18607         p += HFIXEDSZ;
18608 #else
18609         /* Bind 4 interface w/o HFIXEDSZ */
18610         p += sizeof(HEADER);
18611 #endif
18612         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18613 }
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (ac_try="$ac_link"
18620 case "(($ac_try" in
18621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622   *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625   (eval "$ac_link") 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } && {
18632          test -z "$ac_c_werror_flag" ||
18633          test ! -s conftest.err
18634        } && test -s conftest$ac_exeext &&
18635        $as_test_x conftest$ac_exeext; then
18636   ol_cv_resolver_bind=yes
18637 else
18638   echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18640
18641         ol_cv_resolver_bind=no
18642 fi
18643
18644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18645       conftest$ac_exeext conftest.$ac_ext
18646
18647         LIBS="$ol_LIBS"
18648
18649 fi
18650 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18651 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18652
18653         if test $ol_cv_resolver_bind = yes ; then
18654                 ol_cv_lib_resolver=-lbind
18655         fi
18656 fi
18657
18658
18659
18660 ol_link_dnssrv=no
18661 if test "$ol_cv_lib_resolver" != no ; then
18662
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_RES_QUERY 1
18665 _ACEOF
18666
18667
18668         if test "$ol_enable_dnssrv" != no ; then
18669                 ol_link_dnssrv=yes
18670         fi
18671
18672         if test "$ol_cv_lib_resolver" != yes ; then
18673                 LIBS="$ol_cv_lib_resolver $LIBS"
18674         fi
18675 fi
18676
18677 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18678         if test "$ol_link_dnssrv" = no ; then
18679                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18680 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18681    { (exit 1); exit 1; }; }
18682         fi
18683 else
18684         ol_enable_dnssrv=no
18685 fi
18686
18687
18688 for ac_func in hstrerror
18689 do
18690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694   echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696   cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18704 #define $ac_func innocuous_$ac_func
18705
18706 /* System header to define __stub macros and hopefully few prototypes,
18707     which can conflict with char $ac_func (); below.
18708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709     <limits.h> exists even on freestanding compilers.  */
18710
18711 #ifdef __STDC__
18712 # include <limits.h>
18713 #else
18714 # include <assert.h>
18715 #endif
18716
18717 #undef $ac_func
18718
18719 /* Override any GCC internal prototype to avoid an error.
18720    Use char because int might match the return type of a GCC
18721    builtin and then its argument prototype would still apply.  */
18722 #ifdef __cplusplus
18723 extern "C"
18724 #endif
18725 char $ac_func ();
18726 /* The GNU C library defines this for functions which it implements
18727     to always fail with ENOSYS.  Some functions are actually named
18728     something starting with __ and the normal name is an alias.  */
18729 #if defined __stub_$ac_func || defined __stub___$ac_func
18730 choke me
18731 #endif
18732
18733 int
18734 main ()
18735 {
18736 return $ac_func ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_link") 2>conftest.er1
18749   ac_status=$?
18750   grep -v '^ *+' conftest.er1 >conftest.err
18751   rm -f conftest.er1
18752   cat conftest.err >&5
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); } && {
18755          test -z "$ac_c_werror_flag" ||
18756          test ! -s conftest.err
18757        } && test -s conftest$ac_exeext &&
18758        $as_test_x conftest$ac_exeext; then
18759   eval "$as_ac_var=yes"
18760 else
18761   echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764         eval "$as_ac_var=no"
18765 fi
18766
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768       conftest$ac_exeext conftest.$ac_ext
18769 fi
18770 ac_res=`eval echo '${'$as_ac_var'}'`
18771                { echo "$as_me:$LINENO: result: $ac_res" >&5
18772 echo "${ECHO_T}$ac_res" >&6; }
18773 if test `eval echo '${'$as_ac_var'}'` = yes; then
18774   cat >>confdefs.h <<_ACEOF
18775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18776 _ACEOF
18777
18778 fi
18779 done
18780
18781
18782
18783
18784
18785
18786 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18787 do
18788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18792   echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794   cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18802 #define $ac_func innocuous_$ac_func
18803
18804 /* System header to define __stub macros and hopefully few prototypes,
18805     which can conflict with char $ac_func (); below.
18806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807     <limits.h> exists even on freestanding compilers.  */
18808
18809 #ifdef __STDC__
18810 # include <limits.h>
18811 #else
18812 # include <assert.h>
18813 #endif
18814
18815 #undef $ac_func
18816
18817 /* Override any GCC internal prototype to avoid an error.
18818    Use char because int might match the return type of a GCC
18819    builtin and then its argument prototype would still apply.  */
18820 #ifdef __cplusplus
18821 extern "C"
18822 #endif
18823 char $ac_func ();
18824 /* The GNU C library defines this for functions which it implements
18825     to always fail with ENOSYS.  Some functions are actually named
18826     something starting with __ and the normal name is an alias.  */
18827 #if defined __stub_$ac_func || defined __stub___$ac_func
18828 choke me
18829 #endif
18830
18831 int
18832 main ()
18833 {
18834 return $ac_func ();
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest$ac_exeext &&
18856        $as_test_x conftest$ac_exeext; then
18857   eval "$as_ac_var=yes"
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         eval "$as_ac_var=no"
18863 fi
18864
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866       conftest$ac_exeext conftest.$ac_ext
18867 fi
18868 ac_res=`eval echo '${'$as_ac_var'}'`
18869                { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_var'}'` = yes; then
18872   cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18874 _ACEOF
18875
18876 fi
18877 done
18878
18879
18880 ol_link_ipv6=no
18881 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18882         if test $ol_enable_ipv6 = yes ; then
18883                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18884 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18885    { (exit 1); exit 1; }; }
18886         fi
18887 elif test $ol_enable_ipv6 != no ; then
18888         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18889 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18890 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893
18894                 cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900
18901 #                       include <netinet/in.h>
18902 #                       ifdef INET6_ADDRSTRLEN
18903                                 __has_inet6_addrstrlen__;
18904 #                       endif
18905
18906 _ACEOF
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18909   ol_cv_inet6_addrstrlen=yes
18910 else
18911   ol_cv_inet6_addrstrlen=no
18912 fi
18913 rm -f conftest*
18914
18915 fi
18916 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18917 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18918
18919
18920         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18921 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18922 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925
18926                 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932
18933 #include <sys/types.h>
18934 #include <sys/socket.h>
18935
18936 int
18937 main ()
18938 {
18939
18940                         struct sockaddr_storage ss;
18941
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (ac_try="$ac_compile"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_compile") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } && {
18960          test -z "$ac_c_werror_flag" ||
18961          test ! -s conftest.err
18962        } && test -s conftest.$ac_objext; then
18963   ol_cv_struct_sockaddr_storage=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         ol_cv_struct_sockaddr_storage=no
18969 fi
18970
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972 fi
18973 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18974 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18975
18976         if test $ol_cv_inet6_addrstrlen = yes &&
18977            test $ol_cv_struct_sockaddr_storage = yes ; then
18978                 ol_link_ipv6=yes
18979         elif test $ol_enable_ipv6 = yes &&
18980              test $ol_cv_inet6_addrstrlen = no ; then
18981                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18982 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18983    { (exit 1); exit 1; }; }
18984         elif test $ol_enable_ipv6 = yes &&
18985              test $ol_cv_struct_sockaddr_storage = no ; then
18986                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18987 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18988    { (exit 1); exit 1; }; }
18989         fi
18990 fi
18991
18992 if test $ol_enable_local != no ; then
18993
18994 for ac_header in sys/un.h
18995 do
18996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18998   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 fi
19003 ac_res=`eval echo '${'$as_ac_Header'}'`
19004                { echo "$as_me:$LINENO: result: $ac_res" >&5
19005 echo "${ECHO_T}$ac_res" >&6; }
19006 else
19007   # Is the header compilable?
19008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016 $ac_includes_default
19017 #include <$ac_header>
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (ac_try="$ac_compile"
19021 case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_compile") 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } && {
19033          test -z "$ac_c_werror_flag" ||
19034          test ! -s conftest.err
19035        } && test -s conftest.$ac_objext; then
19036   ac_header_compiler=yes
19037 else
19038   echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041         ac_header_compiler=no
19042 fi
19043
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19046 echo "${ECHO_T}$ac_header_compiler" >&6; }
19047
19048 # Is the header present?
19049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057 #include <$ac_header>
19058 _ACEOF
19059 if { (ac_try="$ac_cpp conftest.$ac_ext"
19060 case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19066   ac_status=$?
19067   grep -v '^ *+' conftest.er1 >conftest.err
19068   rm -f conftest.er1
19069   cat conftest.err >&5
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); } >/dev/null && {
19072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19073          test ! -s conftest.err
19074        }; then
19075   ac_header_preproc=yes
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080   ac_header_preproc=no
19081 fi
19082
19083 rm -f conftest.err conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19085 echo "${ECHO_T}$ac_header_preproc" >&6; }
19086
19087 # So?  What about this header?
19088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19089   yes:no: )
19090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19094     ac_header_preproc=yes
19095     ;;
19096   no:yes:* )
19097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19109     ( cat <<\_ASBOX
19110 ## --------------------------------------------- ##
19111 ## Report this to <http://www.openldap.org/its/> ##
19112 ## --------------------------------------------- ##
19113 _ASBOX
19114      ) | sed "s/^/$as_me: WARNING:     /" >&2
19115     ;;
19116 esac
19117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   eval "$as_ac_Header=\$ac_header_preproc"
19123 fi
19124 ac_res=`eval echo '${'$as_ac_Header'}'`
19125                { echo "$as_me:$LINENO: result: $ac_res" >&5
19126 echo "${ECHO_T}$ac_res" >&6; }
19127
19128 fi
19129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19130   cat >>confdefs.h <<_ACEOF
19131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19132 _ACEOF
19133
19134 fi
19135
19136 done
19137
19138
19139         if test $ol_enable_local = auto ; then
19140                 ol_enable_local=$ac_cv_header_sys_un_h
19141         elif test $ac_cv_header_sys_un_h = no ; then
19142                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19143 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19144    { (exit 1); exit 1; }; }
19145         fi
19146 fi
19147
19148
19149 if test $ol_with_tls = yes ; then
19150         ol_with_tls=auto
19151 fi
19152
19153 ol_link_tls=no
19154 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19155
19156 for ac_header in openssl/ssl.h
19157 do
19158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 fi
19165 ac_res=`eval echo '${'$as_ac_Header'}'`
19166                { echo "$as_me:$LINENO: result: $ac_res" >&5
19167 echo "${ECHO_T}$ac_res" >&6; }
19168 else
19169   # Is the header compilable?
19170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178 $ac_includes_default
19179 #include <$ac_header>
19180 _ACEOF
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_compile") 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } && {
19195          test -z "$ac_c_werror_flag" ||
19196          test ! -s conftest.err
19197        } && test -s conftest.$ac_objext; then
19198   ac_header_compiler=yes
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203         ac_header_compiler=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 echo "${ECHO_T}$ac_header_compiler" >&6; }
19209
19210 # Is the header present?
19211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h.  */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h.  */
19219 #include <$ac_header>
19220 _ACEOF
19221 if { (ac_try="$ac_cpp conftest.$ac_ext"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } >/dev/null && {
19234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19235          test ! -s conftest.err
19236        }; then
19237   ac_header_preproc=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242   ac_header_preproc=no
19243 fi
19244
19245 rm -f conftest.err conftest.$ac_ext
19246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19247 echo "${ECHO_T}$ac_header_preproc" >&6; }
19248
19249 # So?  What about this header?
19250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19251   yes:no: )
19252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19256     ac_header_preproc=yes
19257     ;;
19258   no:yes:* )
19259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19271     ( cat <<\_ASBOX
19272 ## --------------------------------------------- ##
19273 ## Report this to <http://www.openldap.org/its/> ##
19274 ## --------------------------------------------- ##
19275 _ASBOX
19276      ) | sed "s/^/$as_me: WARNING:     /" >&2
19277     ;;
19278 esac
19279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19282   echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284   eval "$as_ac_Header=\$ac_header_preproc"
19285 fi
19286 ac_res=`eval echo '${'$as_ac_Header'}'`
19287                { echo "$as_me:$LINENO: result: $ac_res" >&5
19288 echo "${ECHO_T}$ac_res" >&6; }
19289
19290 fi
19291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19292   cat >>confdefs.h <<_ACEOF
19293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19294 _ACEOF
19295
19296 fi
19297
19298 done
19299
19300
19301         if test $ac_cv_header_openssl_ssl_h = yes ; then
19302                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19303 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19304 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307   ac_check_lib_save_LIBS=$LIBS
19308 LIBS="-lssl -lcrypto $LIBS"
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315
19316 /* Override any GCC internal prototype to avoid an error.
19317    Use char because int might match the return type of a GCC
19318    builtin and then its argument prototype would still apply.  */
19319 #ifdef __cplusplus
19320 extern "C"
19321 #endif
19322 char SSL_library_init ();
19323 int
19324 main ()
19325 {
19326 return SSL_library_init ();
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_link") 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } && {
19345          test -z "$ac_c_werror_flag" ||
19346          test ! -s conftest.err
19347        } && test -s conftest$ac_exeext &&
19348        $as_test_x conftest$ac_exeext; then
19349   ac_cv_lib_ssl_SSL_library_init=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354         ac_cv_lib_ssl_SSL_library_init=no
19355 fi
19356
19357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19358       conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19360 fi
19361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19362 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19363 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19364   have_openssl=yes
19365                         need_rsaref=no
19366 else
19367   have_openssl=no
19368 fi
19369
19370
19371                 if test $have_openssl = no ; then
19372                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19373 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19374 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19379 cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385
19386 /* Override any GCC internal prototype to avoid an error.
19387    Use char because int might match the return type of a GCC
19388    builtin and then its argument prototype would still apply.  */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 char ssl3_accept ();
19393 int
19394 main ()
19395 {
19396 return ssl3_accept ();
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405   *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408   (eval "$ac_link") 2>conftest.er1
19409   ac_status=$?
19410   grep -v '^ *+' conftest.er1 >conftest.err
19411   rm -f conftest.er1
19412   cat conftest.err >&5
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } && {
19415          test -z "$ac_c_werror_flag" ||
19416          test ! -s conftest.err
19417        } && test -s conftest$ac_exeext &&
19418        $as_test_x conftest$ac_exeext; then
19419   ac_cv_lib_ssl_ssl3_accept=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         ac_cv_lib_ssl_ssl3_accept=no
19425 fi
19426
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19428       conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19430 fi
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19432 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19433 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19434   have_openssl=yes
19435                                 need_rsaref=yes
19436 else
19437   have_openssl=no
19438 fi
19439
19440                 fi
19441
19442                 if test $have_openssl = yes ; then
19443                         ol_with_tls=openssl
19444                         ol_link_tls=yes
19445
19446
19447 cat >>confdefs.h <<\_ACEOF
19448 #define HAVE_OPENSSL 1
19449 _ACEOF
19450
19451
19452                         if test $need_rsaref = yes; then
19453
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_RSAREF 1
19456 _ACEOF
19457
19458
19459                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19460                         else
19461                                 TLS_LIBS="-lssl -lcrypto"
19462                         fi
19463
19464                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19465 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19466 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469
19470                 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476
19477 #ifdef HAVE_OPENSSL_SSL_H
19478 #include <openssl/ssl.h>
19479 #endif
19480
19481 /* Require 0.9.7d+ */
19482 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19483         char *__ssl_compat = "0.9.7d";
19484 #endif
19485
19486 _ACEOF
19487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19488   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19489   ol_cv_ssl_crl_compat=yes
19490 else
19491   ol_cv_ssl_crl_compat=no
19492 fi
19493 rm -f conftest*
19494
19495 fi
19496 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19497 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19498
19499                         if test $ol_cv_ssl_crl_compat = yes ; then
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_OPENSSL_CRL 1
19503 _ACEOF
19504
19505                         fi
19506                 fi
19507         fi
19508 fi
19509
19510 if test $ol_link_tls = no ; then
19511         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19512
19513 for ac_header in gnutls/gnutls.h
19514 do
19515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 fi
19522 ac_res=`eval echo '${'$as_ac_Header'}'`
19523                { echo "$as_me:$LINENO: result: $ac_res" >&5
19524 echo "${ECHO_T}$ac_res" >&6; }
19525 else
19526   # Is the header compilable?
19527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h.  */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h.  */
19535 $ac_includes_default
19536 #include <$ac_header>
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542   *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545   (eval "$ac_compile") 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } && {
19552          test -z "$ac_c_werror_flag" ||
19553          test ! -s conftest.err
19554        } && test -s conftest.$ac_objext; then
19555   ac_header_compiler=yes
19556 else
19557   echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560         ac_header_compiler=no
19561 fi
19562
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19565 echo "${ECHO_T}$ac_header_compiler" >&6; }
19566
19567 # Is the header present?
19568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h.  */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h.  */
19576 #include <$ac_header>
19577 _ACEOF
19578 if { (ac_try="$ac_cpp conftest.$ac_ext"
19579 case "(($ac_try" in
19580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581   *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19585   ac_status=$?
19586   grep -v '^ *+' conftest.er1 >conftest.err
19587   rm -f conftest.er1
19588   cat conftest.err >&5
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); } >/dev/null && {
19591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19592          test ! -s conftest.err
19593        }; then
19594   ac_header_preproc=yes
19595 else
19596   echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599   ac_header_preproc=no
19600 fi
19601
19602 rm -f conftest.err conftest.$ac_ext
19603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19604 echo "${ECHO_T}$ac_header_preproc" >&6; }
19605
19606 # So?  What about this header?
19607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19608   yes:no: )
19609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19613     ac_header_preproc=yes
19614     ;;
19615   no:yes:* )
19616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19628     ( cat <<\_ASBOX
19629 ## --------------------------------------------- ##
19630 ## Report this to <http://www.openldap.org/its/> ##
19631 ## --------------------------------------------- ##
19632 _ASBOX
19633      ) | sed "s/^/$as_me: WARNING:     /" >&2
19634     ;;
19635 esac
19636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641   eval "$as_ac_Header=\$ac_header_preproc"
19642 fi
19643 ac_res=`eval echo '${'$as_ac_Header'}'`
19644                { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 echo "${ECHO_T}$ac_res" >&6; }
19646
19647 fi
19648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19649   cat >>confdefs.h <<_ACEOF
19650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19651 _ACEOF
19652
19653 fi
19654
19655 done
19656
19657
19658                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19659                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19660 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgnutls  $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672
19673 /* Override any GCC internal prototype to avoid an error.
19674    Use char because int might match the return type of a GCC
19675    builtin and then its argument prototype would still apply.  */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 char gnutls_init ();
19680 int
19681 main ()
19682 {
19683 return gnutls_init ();
19684   ;
19685   return 0;
19686 }
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_link") 2>conftest.er1
19696   ac_status=$?
19697   grep -v '^ *+' conftest.er1 >conftest.err
19698   rm -f conftest.er1
19699   cat conftest.err >&5
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); } && {
19702          test -z "$ac_c_werror_flag" ||
19703          test ! -s conftest.err
19704        } && test -s conftest$ac_exeext &&
19705        $as_test_x conftest$ac_exeext; then
19706   ac_cv_lib_gnutls_gnutls_init=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711         ac_cv_lib_gnutls_gnutls_init=no
19712 fi
19713
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715       conftest$ac_exeext conftest.$ac_ext
19716 LIBS=$ac_check_lib_save_LIBS
19717 fi
19718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19719 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19720 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19721   have_gnutls=yes
19722 else
19723   have_gnutls=no
19724 fi
19725
19726
19727                         if test $have_gnutls = yes ; then
19728                                 ol_with_tls=gnutls
19729                                 ol_link_tls=yes
19730
19731                                 TLS_LIBS="-lgnutls"
19732
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_GNUTLS 1
19736 _ACEOF
19737
19738                         fi
19739                 fi
19740         fi
19741 fi
19742
19743 WITH_TLS=no
19744 if test $ol_link_tls = yes ; then
19745
19746 cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_TLS 1
19748 _ACEOF
19749
19750         WITH_TLS=yes
19751 elif test $ol_with_tls = auto ; then
19752         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19753 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19754         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19755 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19756 elif test $ol_with_tls != no ; then
19757         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19758 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19759    { (exit 1); exit 1; }; }
19760 else
19761         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19762 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19763 fi
19764
19765 if test $ol_enable_lmpasswd != no; then
19766         if test $ol_link_tls != yes ; then
19767                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19768 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19769    { (exit 1); exit 1; }; }
19770         fi
19771
19772
19773 cat >>confdefs.h <<\_ACEOF
19774 #define SLAPD_LMHASH 1
19775 _ACEOF
19776
19777 fi
19778
19779 ol_link_threads=no
19780
19781 case $ol_with_threads in auto | yes | nt)
19782
19783
19784         { echo "$as_me:$LINENO: checking for _beginthread" >&5
19785 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19786 if test "${ac_cv_func__beginthread+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789   cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19797 #define _beginthread innocuous__beginthread
19798
19799 /* System header to define __stub macros and hopefully few prototypes,
19800     which can conflict with char _beginthread (); below.
19801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802     <limits.h> exists even on freestanding compilers.  */
19803
19804 #ifdef __STDC__
19805 # include <limits.h>
19806 #else
19807 # include <assert.h>
19808 #endif
19809
19810 #undef _beginthread
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813    Use char because int might match the return type of a GCC
19814    builtin and then its argument prototype would still apply.  */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char _beginthread ();
19819 /* The GNU C library defines this for functions which it implements
19820     to always fail with ENOSYS.  Some functions are actually named
19821     something starting with __ and the normal name is an alias.  */
19822 #if defined __stub__beginthread || defined __stub____beginthread
19823 choke me
19824 #endif
19825
19826 int
19827 main ()
19828 {
19829 return _beginthread ();
19830   ;
19831   return 0;
19832 }
19833 _ACEOF
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838   *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841   (eval "$ac_link") 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } && {
19848          test -z "$ac_c_werror_flag" ||
19849          test ! -s conftest.err
19850        } && test -s conftest$ac_exeext &&
19851        $as_test_x conftest$ac_exeext; then
19852   ac_cv_func__beginthread=yes
19853 else
19854   echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857         ac_cv_func__beginthread=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19861       conftest$ac_exeext conftest.$ac_ext
19862 fi
19863 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19864 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19865
19866
19867         if test $ac_cv_func__beginthread = yes ; then
19868
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_NT_THREADS 1
19871 _ACEOF
19872
19873                 ol_cv_nt_threads=yes
19874         fi
19875
19876
19877         if test "$ol_cv_nt_threads" = yes ; then
19878                 ol_link_threads=nt
19879                 ol_with_threads=found
19880                 ol_with_yielding_select=yes
19881
19882
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE_NT_SERVICE_MANAGER 1
19885 _ACEOF
19886
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_NT_EVENT_LOG 1
19890 _ACEOF
19891
19892         fi
19893
19894         if test $ol_with_threads = nt ; then
19895                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19896 echo "$as_me: error: could not locate NT Threads" >&2;}
19897    { (exit 1); exit 1; }; }
19898         fi
19899         ;;
19900 esac
19901
19902 case $ol_with_threads in auto | yes | posix)
19903
19904
19905 for ac_header in pthread.h
19906 do
19907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912   echo $ECHO_N "(cached) $ECHO_C" >&6
19913 fi
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915                { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19917 else
19918   # Is the header compilable?
19919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 $ac_includes_default
19928 #include <$ac_header>
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_compile") 2>conftest.er1
19938   ac_status=$?
19939   grep -v '^ *+' conftest.er1 >conftest.err
19940   rm -f conftest.er1
19941   cat conftest.err >&5
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } && {
19944          test -z "$ac_c_werror_flag" ||
19945          test ! -s conftest.err
19946        } && test -s conftest.$ac_objext; then
19947   ac_header_compiler=yes
19948 else
19949   echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952         ac_header_compiler=no
19953 fi
19954
19955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957 echo "${ECHO_T}$ac_header_compiler" >&6; }
19958
19959 # Is the header present?
19960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 #include <$ac_header>
19969 _ACEOF
19970 if { (ac_try="$ac_cpp conftest.$ac_ext"
19971 case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19977   ac_status=$?
19978   grep -v '^ *+' conftest.er1 >conftest.err
19979   rm -f conftest.er1
19980   cat conftest.err >&5
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); } >/dev/null && {
19983          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19984          test ! -s conftest.err
19985        }; then
19986   ac_header_preproc=yes
19987 else
19988   echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991   ac_header_preproc=no
19992 fi
19993
19994 rm -f conftest.err conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19996 echo "${ECHO_T}$ac_header_preproc" >&6; }
19997
19998 # So?  What about this header?
19999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20000   yes:no: )
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20005     ac_header_preproc=yes
20006     ;;
20007   no:yes:* )
20008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20020     ( cat <<\_ASBOX
20021 ## --------------------------------------------- ##
20022 ## Report this to <http://www.openldap.org/its/> ##
20023 ## --------------------------------------------- ##
20024 _ASBOX
20025      ) | sed "s/^/$as_me: WARNING:     /" >&2
20026     ;;
20027 esac
20028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   eval "$as_ac_Header=\$ac_header_preproc"
20034 fi
20035 ac_res=`eval echo '${'$as_ac_Header'}'`
20036                { echo "$as_me:$LINENO: result: $ac_res" >&5
20037 echo "${ECHO_T}$ac_res" >&6; }
20038
20039 fi
20040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20041   cat >>confdefs.h <<_ACEOF
20042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20043 _ACEOF
20044
20045 fi
20046
20047 done
20048
20049
20050         if test $ac_cv_header_pthread_h = yes ; then
20051                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20052 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20053 if test "${ol_cv_pthread_version+set}" = set; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056
20057         cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063
20064 #               include <pthread.h>
20065
20066 int
20067 main ()
20068 {
20069
20070                 int i = PTHREAD_CREATE_JOINABLE;
20071
20072   ;
20073   return 0;
20074 }
20075 _ACEOF
20076 rm -f conftest.$ac_objext
20077 if { (ac_try="$ac_compile"
20078 case "(($ac_try" in
20079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080   *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083   (eval "$ac_compile") 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } && {
20090          test -z "$ac_c_werror_flag" ||
20091          test ! -s conftest.err
20092        } && test -s conftest.$ac_objext; then
20093
20094         cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 #include <pthread.h>
20101
20102 _ACEOF
20103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104   $EGREP "pthread_detach" >/dev/null 2>&1; then
20105   ol_cv_pthread_version=10
20106 else
20107   ol_cv_pthread_version=8
20108 fi
20109 rm -f conftest*
20110
20111 else
20112   echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115
20116         cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122
20123 #               include <pthread.h>
20124 #               ifdef PTHREAD_CREATE_UNDETACHED
20125                 draft7
20126 #               endif
20127
20128 _ACEOF
20129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20130   $EGREP "draft7" >/dev/null 2>&1; then
20131   ol_cv_pthread_version=7
20132 else
20133
20134         cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 #include <pthread.h>
20141
20142 _ACEOF
20143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20144   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20145   ol_cv_pthread_version=6
20146 else
20147
20148         cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154
20155 #               include <pthread.h>
20156 #ifdef          PTHREAD_MUTEX_INITIALIZER
20157                 draft5
20158 #endif
20159
20160 _ACEOF
20161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20162   $EGREP "draft5" >/dev/null 2>&1; then
20163   ol_cv_pthread_version=5
20164 else
20165   ol_cv_pthread_version=4
20166 fi
20167 rm -f conftest*
20168
20169 fi
20170 rm -f conftest*
20171
20172 fi
20173 rm -f conftest*
20174
20175 fi
20176
20177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20178
20179 fi
20180 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20181 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20182
20183
20184                 if test $ol_cv_pthread_version != 0 ; then
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_PTHREADS $ol_cv_pthread_version
20188 _ACEOF
20189
20190                 else
20191                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20192 echo "$as_me: error: unknown pthread version" >&2;}
20193    { (exit 1); exit 1; }; }
20194                 fi
20195
20196                 # consider threads found
20197                 ol_with_threads=found
20198
20199
20200         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20201 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20202 if test "${ol_cv_header_linux_threads+set}" = set; then
20203   echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205   cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211 #include <pthread.h>
20212 _ACEOF
20213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20214   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20215   ol_cv_header_linux_threads=yes
20216 else
20217   ol_cv_header_linux_threads=no
20218 fi
20219 rm -f conftest*
20220
20221
20222 fi
20223 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20224 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20225         if test $ol_cv_header_linux_threads = yes; then
20226
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_LINUX_THREADS 1
20229 _ACEOF
20230
20231         fi
20232
20233
20234         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20235 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20236 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 #include <pthread.h>
20246 #ifdef _POSIX_THREAD_IS_GNU_PTH
20247         __gnu_pth__;
20248 #endif
20249
20250 _ACEOF
20251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20252   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20253   ol_cv_header_gnu_pth_pthread_h=yes
20254 else
20255   ol_cv_header_gnu_pth_pthread_h=no
20256 fi
20257 rm -f conftest*
20258
20259
20260 fi
20261 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20262 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20263
20264
20265                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20266
20267 for ac_header in sched.h
20268 do
20269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20271   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 fi
20276 ac_res=`eval echo '${'$as_ac_Header'}'`
20277                { echo "$as_me:$LINENO: result: $ac_res" >&5
20278 echo "${ECHO_T}$ac_res" >&6; }
20279 else
20280   # Is the header compilable?
20281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 $ac_includes_default
20290 #include <$ac_header>
20291 _ACEOF
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296   *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299   (eval "$ac_compile") 2>conftest.er1
20300   ac_status=$?
20301   grep -v '^ *+' conftest.er1 >conftest.err
20302   rm -f conftest.er1
20303   cat conftest.err >&5
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); } && {
20306          test -z "$ac_c_werror_flag" ||
20307          test ! -s conftest.err
20308        } && test -s conftest.$ac_objext; then
20309   ac_header_compiler=yes
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314         ac_header_compiler=no
20315 fi
20316
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20319 echo "${ECHO_T}$ac_header_compiler" >&6; }
20320
20321 # Is the header present?
20322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h.  */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h.  */
20330 #include <$ac_header>
20331 _ACEOF
20332 if { (ac_try="$ac_cpp conftest.$ac_ext"
20333 case "(($ac_try" in
20334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335   *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20339   ac_status=$?
20340   grep -v '^ *+' conftest.er1 >conftest.err
20341   rm -f conftest.er1
20342   cat conftest.err >&5
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } >/dev/null && {
20345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20346          test ! -s conftest.err
20347        }; then
20348   ac_header_preproc=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353   ac_header_preproc=no
20354 fi
20355
20356 rm -f conftest.err conftest.$ac_ext
20357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358 echo "${ECHO_T}$ac_header_preproc" >&6; }
20359
20360 # So?  What about this header?
20361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362   yes:no: )
20363     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20367     ac_header_preproc=yes
20368     ;;
20369   no:yes:* )
20370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20372     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20373 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20377 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20380     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20382     ( cat <<\_ASBOX
20383 ## --------------------------------------------- ##
20384 ## Report this to <http://www.openldap.org/its/> ##
20385 ## --------------------------------------------- ##
20386 _ASBOX
20387      ) | sed "s/^/$as_me: WARNING:     /" >&2
20388     ;;
20389 esac
20390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20393   echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395   eval "$as_ac_Header=\$ac_header_preproc"
20396 fi
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398                { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20400
20401 fi
20402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20403   cat >>confdefs.h <<_ACEOF
20404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20405 _ACEOF
20406
20407 fi
20408
20409 done
20410
20411                 fi
20412
20413
20414                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20415 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20416 if test "${ol_cv_pthread_create+set}" = set; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419
20420                         if test "$cross_compiling" = yes; then
20421   cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h.  */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h.  */
20427
20428 /* pthread test headers */
20429 #include <pthread.h>
20430 #if HAVE_PTHREADS < 7
20431 #include <errno.h>
20432 #endif
20433 #ifndef NULL
20434 #define NULL (void*)0
20435 #endif
20436
20437 static void *task(p)
20438         void *p;
20439 {
20440         return (void *) (p == NULL);
20441 }
20442
20443 int
20444 main ()
20445 {
20446
20447         /* pthread test function */
20448 #ifndef PTHREAD_CREATE_DETACHED
20449 #define PTHREAD_CREATE_DETACHED 1
20450 #endif
20451         pthread_t t;
20452         int status;
20453         int detach = PTHREAD_CREATE_DETACHED;
20454
20455 #if HAVE_PTHREADS > 4
20456         /* Final pthreads */
20457         pthread_attr_t attr;
20458
20459         status = pthread_attr_init(&attr);
20460         if( status ) return status;
20461
20462 #if HAVE_PTHREADS < 7
20463         status = pthread_attr_setdetachstate(&attr, &detach);
20464         if( status < 0 ) status = errno;
20465 #else
20466         status = pthread_attr_setdetachstate(&attr, detach);
20467 #endif
20468         if( status ) return status;
20469         status = pthread_create( &t, &attr, task, NULL );
20470 #if HAVE_PTHREADS < 7
20471         if( status < 0 ) status = errno;
20472 #endif
20473         if( status ) return status;
20474 #else
20475         /* Draft 4 pthreads */
20476         status = pthread_create( &t, pthread_attr_default, task, NULL );
20477         if( status ) return errno;
20478
20479         /* give thread a chance to complete */
20480         /* it should remain joinable and hence detachable */
20481         sleep( 1 );
20482
20483         status = pthread_detach( &t );
20484         if( status ) return errno;
20485 #endif
20486
20487 #ifdef HAVE_LINUX_THREADS
20488         pthread_kill_other_threads_np();
20489 #endif
20490
20491         return 0;
20492
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501   *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504   (eval "$ac_link") 2>conftest.er1
20505   ac_status=$?
20506   grep -v '^ *+' conftest.er1 >conftest.err
20507   rm -f conftest.er1
20508   cat conftest.err >&5
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } && {
20511          test -z "$ac_c_werror_flag" ||
20512          test ! -s conftest.err
20513        } && test -s conftest$ac_exeext &&
20514        $as_test_x conftest$ac_exeext; then
20515   ol_cv_pthread_create=yes
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520         ol_cv_pthread_create=no
20521 fi
20522
20523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20524       conftest$ac_exeext conftest.$ac_ext
20525 else
20526   cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532
20533 /* pthread test headers */
20534 #include <pthread.h>
20535 #if HAVE_PTHREADS < 7
20536 #include <errno.h>
20537 #endif
20538 #ifndef NULL
20539 #define NULL (void*)0
20540 #endif
20541
20542 static void *task(p)
20543         void *p;
20544 {
20545         return (void *) (p == NULL);
20546 }
20547
20548
20549 int main(argc, argv)
20550         int argc;
20551         char **argv;
20552 {
20553
20554         /* pthread test function */
20555 #ifndef PTHREAD_CREATE_DETACHED
20556 #define PTHREAD_CREATE_DETACHED 1
20557 #endif
20558         pthread_t t;
20559         int status;
20560         int detach = PTHREAD_CREATE_DETACHED;
20561
20562 #if HAVE_PTHREADS > 4
20563         /* Final pthreads */
20564         pthread_attr_t attr;
20565
20566         status = pthread_attr_init(&attr);
20567         if( status ) return status;
20568
20569 #if HAVE_PTHREADS < 7
20570         status = pthread_attr_setdetachstate(&attr, &detach);
20571         if( status < 0 ) status = errno;
20572 #else
20573         status = pthread_attr_setdetachstate(&attr, detach);
20574 #endif
20575         if( status ) return status;
20576         status = pthread_create( &t, &attr, task, NULL );
20577 #if HAVE_PTHREADS < 7
20578         if( status < 0 ) status = errno;
20579 #endif
20580         if( status ) return status;
20581 #else
20582         /* Draft 4 pthreads */
20583         status = pthread_create( &t, pthread_attr_default, task, NULL );
20584         if( status ) return errno;
20585
20586         /* give thread a chance to complete */
20587         /* it should remain joinable and hence detachable */
20588         sleep( 1 );
20589
20590         status = pthread_detach( &t );
20591         if( status ) return errno;
20592 #endif
20593
20594 #ifdef HAVE_LINUX_THREADS
20595         pthread_kill_other_threads_np();
20596 #endif
20597
20598         return 0;
20599
20600 }
20601
20602 _ACEOF
20603 rm -f conftest$ac_exeext
20604 if { (ac_try="$ac_link"
20605 case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610   (eval "$ac_link") 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20614   { (case "(($ac_try" in
20615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616   *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619   (eval "$ac_try") 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; }; then
20623   ol_cv_pthread_create=yes
20624 else
20625   echo "$as_me: program exited with status $ac_status" >&5
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ( exit $ac_status )
20630 ol_cv_pthread_create=no
20631 fi
20632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20633 fi
20634
20635
20636 fi
20637 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20638 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20639
20640                 if test $ol_cv_pthread_create != no ; then
20641                         ol_link_threads=posix
20642                         ol_link_pthreads=""
20643                 fi
20644
20645                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20646 if test "$ol_link_threads" = no ; then
20647         # try -kthread
20648         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20649 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20650 if test "${ol_cv_pthread_kthread+set}" = set; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653
20654                 # save the flags
20655                 ol_LIBS="$LIBS"
20656                 LIBS="-kthread $LIBS"
20657
20658                 if test "$cross_compiling" = yes; then
20659   cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h.  */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h.  */
20665
20666 /* pthread test headers */
20667 #include <pthread.h>
20668 #if HAVE_PTHREADS < 7
20669 #include <errno.h>
20670 #endif
20671 #ifndef NULL
20672 #define NULL (void*)0
20673 #endif
20674
20675 static void *task(p)
20676         void *p;
20677 {
20678         return (void *) (p == NULL);
20679 }
20680
20681 int
20682 main ()
20683 {
20684
20685         /* pthread test function */
20686 #ifndef PTHREAD_CREATE_DETACHED
20687 #define PTHREAD_CREATE_DETACHED 1
20688 #endif
20689         pthread_t t;
20690         int status;
20691         int detach = PTHREAD_CREATE_DETACHED;
20692
20693 #if HAVE_PTHREADS > 4
20694         /* Final pthreads */
20695         pthread_attr_t attr;
20696
20697         status = pthread_attr_init(&attr);
20698         if( status ) return status;
20699
20700 #if HAVE_PTHREADS < 7
20701         status = pthread_attr_setdetachstate(&attr, &detach);
20702         if( status < 0 ) status = errno;
20703 #else
20704         status = pthread_attr_setdetachstate(&attr, detach);
20705 #endif
20706         if( status ) return status;
20707         status = pthread_create( &t, &attr, task, NULL );
20708 #if HAVE_PTHREADS < 7
20709         if( status < 0 ) status = errno;
20710 #endif
20711         if( status ) return status;
20712 #else
20713         /* Draft 4 pthreads */
20714         status = pthread_create( &t, pthread_attr_default, task, NULL );
20715         if( status ) return errno;
20716
20717         /* give thread a chance to complete */
20718         /* it should remain joinable and hence detachable */
20719         sleep( 1 );
20720
20721         status = pthread_detach( &t );
20722         if( status ) return errno;
20723 #endif
20724
20725 #ifdef HAVE_LINUX_THREADS
20726         pthread_kill_other_threads_np();
20727 #endif
20728
20729         return 0;
20730
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_link") 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } && {
20749          test -z "$ac_c_werror_flag" ||
20750          test ! -s conftest.err
20751        } && test -s conftest$ac_exeext &&
20752        $as_test_x conftest$ac_exeext; then
20753   ol_cv_pthread_kthread=yes
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758         ol_cv_pthread_kthread=no
20759 fi
20760
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762       conftest$ac_exeext conftest.$ac_ext
20763 else
20764   cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770
20771 /* pthread test headers */
20772 #include <pthread.h>
20773 #if HAVE_PTHREADS < 7
20774 #include <errno.h>
20775 #endif
20776 #ifndef NULL
20777 #define NULL (void*)0
20778 #endif
20779
20780 static void *task(p)
20781         void *p;
20782 {
20783         return (void *) (p == NULL);
20784 }
20785
20786
20787 int main(argc, argv)
20788         int argc;
20789         char **argv;
20790 {
20791
20792         /* pthread test function */
20793 #ifndef PTHREAD_CREATE_DETACHED
20794 #define PTHREAD_CREATE_DETACHED 1
20795 #endif
20796         pthread_t t;
20797         int status;
20798         int detach = PTHREAD_CREATE_DETACHED;
20799
20800 #if HAVE_PTHREADS > 4
20801         /* Final pthreads */
20802         pthread_attr_t attr;
20803
20804         status = pthread_attr_init(&attr);
20805         if( status ) return status;
20806
20807 #if HAVE_PTHREADS < 7
20808         status = pthread_attr_setdetachstate(&attr, &detach);
20809         if( status < 0 ) status = errno;
20810 #else
20811         status = pthread_attr_setdetachstate(&attr, detach);
20812 #endif
20813         if( status ) return status;
20814         status = pthread_create( &t, &attr, task, NULL );
20815 #if HAVE_PTHREADS < 7
20816         if( status < 0 ) status = errno;
20817 #endif
20818         if( status ) return status;
20819 #else
20820         /* Draft 4 pthreads */
20821         status = pthread_create( &t, pthread_attr_default, task, NULL );
20822         if( status ) return errno;
20823
20824         /* give thread a chance to complete */
20825         /* it should remain joinable and hence detachable */
20826         sleep( 1 );
20827
20828         status = pthread_detach( &t );
20829         if( status ) return errno;
20830 #endif
20831
20832 #ifdef HAVE_LINUX_THREADS
20833         pthread_kill_other_threads_np();
20834 #endif
20835
20836         return 0;
20837
20838 }
20839
20840 _ACEOF
20841 rm -f conftest$ac_exeext
20842 if { (ac_try="$ac_link"
20843 case "(($ac_try" in
20844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845   *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848   (eval "$ac_link") 2>&5
20849   ac_status=$?
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852   { (case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_try") 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; }; then
20861   ol_cv_pthread_kthread=yes
20862 else
20863   echo "$as_me: program exited with status $ac_status" >&5
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ( exit $ac_status )
20868 ol_cv_pthread_kthread=no
20869 fi
20870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20871 fi
20872
20873
20874
20875                 # restore the LIBS
20876                 LIBS="$ol_LIBS"
20877
20878 fi
20879 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20880 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20881
20882         if test $ol_cv_pthread_kthread = yes ; then
20883                 ol_link_pthreads="-kthread"
20884                 ol_link_threads=posix
20885         fi
20886 fi
20887
20888                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20889 if test "$ol_link_threads" = no ; then
20890         # try -pthread
20891         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20892 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20893 if test "${ol_cv_pthread_pthread+set}" = set; then
20894   echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896
20897                 # save the flags
20898                 ol_LIBS="$LIBS"
20899                 LIBS="-pthread $LIBS"
20900
20901                 if test "$cross_compiling" = yes; then
20902   cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h.  */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h.  */
20908
20909 /* pthread test headers */
20910 #include <pthread.h>
20911 #if HAVE_PTHREADS < 7
20912 #include <errno.h>
20913 #endif
20914 #ifndef NULL
20915 #define NULL (void*)0
20916 #endif
20917
20918 static void *task(p)
20919         void *p;
20920 {
20921         return (void *) (p == NULL);
20922 }
20923
20924 int
20925 main ()
20926 {
20927
20928         /* pthread test function */
20929 #ifndef PTHREAD_CREATE_DETACHED
20930 #define PTHREAD_CREATE_DETACHED 1
20931 #endif
20932         pthread_t t;
20933         int status;
20934         int detach = PTHREAD_CREATE_DETACHED;
20935
20936 #if HAVE_PTHREADS > 4
20937         /* Final pthreads */
20938         pthread_attr_t attr;
20939
20940         status = pthread_attr_init(&attr);
20941         if( status ) return status;
20942
20943 #if HAVE_PTHREADS < 7
20944         status = pthread_attr_setdetachstate(&attr, &detach);
20945         if( status < 0 ) status = errno;
20946 #else
20947         status = pthread_attr_setdetachstate(&attr, detach);
20948 #endif
20949         if( status ) return status;
20950         status = pthread_create( &t, &attr, task, NULL );
20951 #if HAVE_PTHREADS < 7
20952         if( status < 0 ) status = errno;
20953 #endif
20954         if( status ) return status;
20955 #else
20956         /* Draft 4 pthreads */
20957         status = pthread_create( &t, pthread_attr_default, task, NULL );
20958         if( status ) return errno;
20959
20960         /* give thread a chance to complete */
20961         /* it should remain joinable and hence detachable */
20962         sleep( 1 );
20963
20964         status = pthread_detach( &t );
20965         if( status ) return errno;
20966 #endif
20967
20968 #ifdef HAVE_LINUX_THREADS
20969         pthread_kill_other_threads_np();
20970 #endif
20971
20972         return 0;
20973
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_link") 2>conftest.er1
20986   ac_status=$?
20987   grep -v '^ *+' conftest.er1 >conftest.err
20988   rm -f conftest.er1
20989   cat conftest.err >&5
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } && {
20992          test -z "$ac_c_werror_flag" ||
20993          test ! -s conftest.err
20994        } && test -s conftest$ac_exeext &&
20995        $as_test_x conftest$ac_exeext; then
20996   ol_cv_pthread_pthread=yes
20997 else
20998   echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001         ol_cv_pthread_pthread=no
21002 fi
21003
21004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21005       conftest$ac_exeext conftest.$ac_ext
21006 else
21007   cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h.  */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h.  */
21013
21014 /* pthread test headers */
21015 #include <pthread.h>
21016 #if HAVE_PTHREADS < 7
21017 #include <errno.h>
21018 #endif
21019 #ifndef NULL
21020 #define NULL (void*)0
21021 #endif
21022
21023 static void *task(p)
21024         void *p;
21025 {
21026         return (void *) (p == NULL);
21027 }
21028
21029
21030 int main(argc, argv)
21031         int argc;
21032         char **argv;
21033 {
21034
21035         /* pthread test function */
21036 #ifndef PTHREAD_CREATE_DETACHED
21037 #define PTHREAD_CREATE_DETACHED 1
21038 #endif
21039         pthread_t t;
21040         int status;
21041         int detach = PTHREAD_CREATE_DETACHED;
21042
21043 #if HAVE_PTHREADS > 4
21044         /* Final pthreads */
21045         pthread_attr_t attr;
21046
21047         status = pthread_attr_init(&attr);
21048         if( status ) return status;
21049
21050 #if HAVE_PTHREADS < 7
21051         status = pthread_attr_setdetachstate(&attr, &detach);
21052         if( status < 0 ) status = errno;
21053 #else
21054         status = pthread_attr_setdetachstate(&attr, detach);
21055 #endif
21056         if( status ) return status;
21057         status = pthread_create( &t, &attr, task, NULL );
21058 #if HAVE_PTHREADS < 7
21059         if( status < 0 ) status = errno;
21060 #endif
21061         if( status ) return status;
21062 #else
21063         /* Draft 4 pthreads */
21064         status = pthread_create( &t, pthread_attr_default, task, NULL );
21065         if( status ) return errno;
21066
21067         /* give thread a chance to complete */
21068         /* it should remain joinable and hence detachable */
21069         sleep( 1 );
21070
21071         status = pthread_detach( &t );
21072         if( status ) return errno;
21073 #endif
21074
21075 #ifdef HAVE_LINUX_THREADS
21076         pthread_kill_other_threads_np();
21077 #endif
21078
21079         return 0;
21080
21081 }
21082
21083 _ACEOF
21084 rm -f conftest$ac_exeext
21085 if { (ac_try="$ac_link"
21086 case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091   (eval "$ac_link") 2>&5
21092   ac_status=$?
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21095   { (case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_try") 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; }; then
21104   ol_cv_pthread_pthread=yes
21105 else
21106   echo "$as_me: program exited with status $ac_status" >&5
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110 ( exit $ac_status )
21111 ol_cv_pthread_pthread=no
21112 fi
21113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21114 fi
21115
21116
21117
21118                 # restore the LIBS
21119                 LIBS="$ol_LIBS"
21120
21121 fi
21122 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21123 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21124
21125         if test $ol_cv_pthread_pthread = yes ; then
21126                 ol_link_pthreads="-pthread"
21127                 ol_link_threads=posix
21128         fi
21129 fi
21130
21131                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21132 if test "$ol_link_threads" = no ; then
21133         # try -pthreads
21134         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21135 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21136 if test "${ol_cv_pthread_pthreads+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139
21140                 # save the flags
21141                 ol_LIBS="$LIBS"
21142                 LIBS="-pthreads $LIBS"
21143
21144                 if test "$cross_compiling" = yes; then
21145   cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151
21152 /* pthread test headers */
21153 #include <pthread.h>
21154 #if HAVE_PTHREADS < 7
21155 #include <errno.h>
21156 #endif
21157 #ifndef NULL
21158 #define NULL (void*)0
21159 #endif
21160
21161 static void *task(p)
21162         void *p;
21163 {
21164         return (void *) (p == NULL);
21165 }
21166
21167 int
21168 main ()
21169 {
21170
21171         /* pthread test function */
21172 #ifndef PTHREAD_CREATE_DETACHED
21173 #define PTHREAD_CREATE_DETACHED 1
21174 #endif
21175         pthread_t t;
21176         int status;
21177         int detach = PTHREAD_CREATE_DETACHED;
21178
21179 #if HAVE_PTHREADS > 4
21180         /* Final pthreads */
21181         pthread_attr_t attr;
21182
21183         status = pthread_attr_init(&attr);
21184         if( status ) return status;
21185
21186 #if HAVE_PTHREADS < 7
21187         status = pthread_attr_setdetachstate(&attr, &detach);
21188         if( status < 0 ) status = errno;
21189 #else
21190         status = pthread_attr_setdetachstate(&attr, detach);
21191 #endif
21192         if( status ) return status;
21193         status = pthread_create( &t, &attr, task, NULL );
21194 #if HAVE_PTHREADS < 7
21195         if( status < 0 ) status = errno;
21196 #endif
21197         if( status ) return status;
21198 #else
21199         /* Draft 4 pthreads */
21200         status = pthread_create( &t, pthread_attr_default, task, NULL );
21201         if( status ) return errno;
21202
21203         /* give thread a chance to complete */
21204         /* it should remain joinable and hence detachable */
21205         sleep( 1 );
21206
21207         status = pthread_detach( &t );
21208         if( status ) return errno;
21209 #endif
21210
21211 #ifdef HAVE_LINUX_THREADS
21212         pthread_kill_other_threads_np();
21213 #endif
21214
21215         return 0;
21216
21217   ;
21218   return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225   *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228   (eval "$ac_link") 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } && {
21235          test -z "$ac_c_werror_flag" ||
21236          test ! -s conftest.err
21237        } && test -s conftest$ac_exeext &&
21238        $as_test_x conftest$ac_exeext; then
21239   ol_cv_pthread_pthreads=yes
21240 else
21241   echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244         ol_cv_pthread_pthreads=no
21245 fi
21246
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248       conftest$ac_exeext conftest.$ac_ext
21249 else
21250   cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256
21257 /* pthread test headers */
21258 #include <pthread.h>
21259 #if HAVE_PTHREADS < 7
21260 #include <errno.h>
21261 #endif
21262 #ifndef NULL
21263 #define NULL (void*)0
21264 #endif
21265
21266 static void *task(p)
21267         void *p;
21268 {
21269         return (void *) (p == NULL);
21270 }
21271
21272
21273 int main(argc, argv)
21274         int argc;
21275         char **argv;
21276 {
21277
21278         /* pthread test function */
21279 #ifndef PTHREAD_CREATE_DETACHED
21280 #define PTHREAD_CREATE_DETACHED 1
21281 #endif
21282         pthread_t t;
21283         int status;
21284         int detach = PTHREAD_CREATE_DETACHED;
21285
21286 #if HAVE_PTHREADS > 4
21287         /* Final pthreads */
21288         pthread_attr_t attr;
21289
21290         status = pthread_attr_init(&attr);
21291         if( status ) return status;
21292
21293 #if HAVE_PTHREADS < 7
21294         status = pthread_attr_setdetachstate(&attr, &detach);
21295         if( status < 0 ) status = errno;
21296 #else
21297         status = pthread_attr_setdetachstate(&attr, detach);
21298 #endif
21299         if( status ) return status;
21300         status = pthread_create( &t, &attr, task, NULL );
21301 #if HAVE_PTHREADS < 7
21302         if( status < 0 ) status = errno;
21303 #endif
21304         if( status ) return status;
21305 #else
21306         /* Draft 4 pthreads */
21307         status = pthread_create( &t, pthread_attr_default, task, NULL );
21308         if( status ) return errno;
21309
21310         /* give thread a chance to complete */
21311         /* it should remain joinable and hence detachable */
21312         sleep( 1 );
21313
21314         status = pthread_detach( &t );
21315         if( status ) return errno;
21316 #endif
21317
21318 #ifdef HAVE_LINUX_THREADS
21319         pthread_kill_other_threads_np();
21320 #endif
21321
21322         return 0;
21323
21324 }
21325
21326 _ACEOF
21327 rm -f conftest$ac_exeext
21328 if { (ac_try="$ac_link"
21329 case "(($ac_try" in
21330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331   *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334   (eval "$ac_link") 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338   { (case "(($ac_try" in
21339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340   *) ac_try_echo=$ac_try;;
21341 esac
21342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343   (eval "$ac_try") 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   ol_cv_pthread_pthreads=yes
21348 else
21349   echo "$as_me: program exited with status $ac_status" >&5
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 ( exit $ac_status )
21354 ol_cv_pthread_pthreads=no
21355 fi
21356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21357 fi
21358
21359
21360
21361                 # restore the LIBS
21362                 LIBS="$ol_LIBS"
21363
21364 fi
21365 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21366 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21367
21368         if test $ol_cv_pthread_pthreads = yes ; then
21369                 ol_link_pthreads="-pthreads"
21370                 ol_link_threads=posix
21371         fi
21372 fi
21373
21374                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21375 if test "$ol_link_threads" = no ; then
21376         # try -mthreads
21377         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21378 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21379 if test "${ol_cv_pthread_mthreads+set}" = set; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382
21383                 # save the flags
21384                 ol_LIBS="$LIBS"
21385                 LIBS="-mthreads $LIBS"
21386
21387                 if test "$cross_compiling" = yes; then
21388   cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394
21395 /* pthread test headers */
21396 #include <pthread.h>
21397 #if HAVE_PTHREADS < 7
21398 #include <errno.h>
21399 #endif
21400 #ifndef NULL
21401 #define NULL (void*)0
21402 #endif
21403
21404 static void *task(p)
21405         void *p;
21406 {
21407         return (void *) (p == NULL);
21408 }
21409
21410 int
21411 main ()
21412 {
21413
21414         /* pthread test function */
21415 #ifndef PTHREAD_CREATE_DETACHED
21416 #define PTHREAD_CREATE_DETACHED 1
21417 #endif
21418         pthread_t t;
21419         int status;
21420         int detach = PTHREAD_CREATE_DETACHED;
21421
21422 #if HAVE_PTHREADS > 4
21423         /* Final pthreads */
21424         pthread_attr_t attr;
21425
21426         status = pthread_attr_init(&attr);
21427         if( status ) return status;
21428
21429 #if HAVE_PTHREADS < 7
21430         status = pthread_attr_setdetachstate(&attr, &detach);
21431         if( status < 0 ) status = errno;
21432 #else
21433         status = pthread_attr_setdetachstate(&attr, detach);
21434 #endif
21435         if( status ) return status;
21436         status = pthread_create( &t, &attr, task, NULL );
21437 #if HAVE_PTHREADS < 7
21438         if( status < 0 ) status = errno;
21439 #endif
21440         if( status ) return status;
21441 #else
21442         /* Draft 4 pthreads */
21443         status = pthread_create( &t, pthread_attr_default, task, NULL );
21444         if( status ) return errno;
21445
21446         /* give thread a chance to complete */
21447         /* it should remain joinable and hence detachable */
21448         sleep( 1 );
21449
21450         status = pthread_detach( &t );
21451         if( status ) return errno;
21452 #endif
21453
21454 #ifdef HAVE_LINUX_THREADS
21455         pthread_kill_other_threads_np();
21456 #endif
21457
21458         return 0;
21459
21460   ;
21461   return 0;
21462 }
21463 _ACEOF
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (ac_try="$ac_link"
21466 case "(($ac_try" in
21467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468   *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471   (eval "$ac_link") 2>conftest.er1
21472   ac_status=$?
21473   grep -v '^ *+' conftest.er1 >conftest.err
21474   rm -f conftest.er1
21475   cat conftest.err >&5
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } && {
21478          test -z "$ac_c_werror_flag" ||
21479          test ! -s conftest.err
21480        } && test -s conftest$ac_exeext &&
21481        $as_test_x conftest$ac_exeext; then
21482   ol_cv_pthread_mthreads=yes
21483 else
21484   echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21486
21487         ol_cv_pthread_mthreads=no
21488 fi
21489
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491       conftest$ac_exeext conftest.$ac_ext
21492 else
21493   cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h.  */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h.  */
21499
21500 /* pthread test headers */
21501 #include <pthread.h>
21502 #if HAVE_PTHREADS < 7
21503 #include <errno.h>
21504 #endif
21505 #ifndef NULL
21506 #define NULL (void*)0
21507 #endif
21508
21509 static void *task(p)
21510         void *p;
21511 {
21512         return (void *) (p == NULL);
21513 }
21514
21515
21516 int main(argc, argv)
21517         int argc;
21518         char **argv;
21519 {
21520
21521         /* pthread test function */
21522 #ifndef PTHREAD_CREATE_DETACHED
21523 #define PTHREAD_CREATE_DETACHED 1
21524 #endif
21525         pthread_t t;
21526         int status;
21527         int detach = PTHREAD_CREATE_DETACHED;
21528
21529 #if HAVE_PTHREADS > 4
21530         /* Final pthreads */
21531         pthread_attr_t attr;
21532
21533         status = pthread_attr_init(&attr);
21534         if( status ) return status;
21535
21536 #if HAVE_PTHREADS < 7
21537         status = pthread_attr_setdetachstate(&attr, &detach);
21538         if( status < 0 ) status = errno;
21539 #else
21540         status = pthread_attr_setdetachstate(&attr, detach);
21541 #endif
21542         if( status ) return status;
21543         status = pthread_create( &t, &attr, task, NULL );
21544 #if HAVE_PTHREADS < 7
21545         if( status < 0 ) status = errno;
21546 #endif
21547         if( status ) return status;
21548 #else
21549         /* Draft 4 pthreads */
21550         status = pthread_create( &t, pthread_attr_default, task, NULL );
21551         if( status ) return errno;
21552
21553         /* give thread a chance to complete */
21554         /* it should remain joinable and hence detachable */
21555         sleep( 1 );
21556
21557         status = pthread_detach( &t );
21558         if( status ) return errno;
21559 #endif
21560
21561 #ifdef HAVE_LINUX_THREADS
21562         pthread_kill_other_threads_np();
21563 #endif
21564
21565         return 0;
21566
21567 }
21568
21569 _ACEOF
21570 rm -f conftest$ac_exeext
21571 if { (ac_try="$ac_link"
21572 case "(($ac_try" in
21573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574   *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577   (eval "$ac_link") 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21581   { (case "(($ac_try" in
21582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583   *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586   (eval "$ac_try") 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); }; }; then
21590   ol_cv_pthread_mthreads=yes
21591 else
21592   echo "$as_me: program exited with status $ac_status" >&5
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 ( exit $ac_status )
21597 ol_cv_pthread_mthreads=no
21598 fi
21599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21600 fi
21601
21602
21603
21604                 # restore the LIBS
21605                 LIBS="$ol_LIBS"
21606
21607 fi
21608 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21609 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21610
21611         if test $ol_cv_pthread_mthreads = yes ; then
21612                 ol_link_pthreads="-mthreads"
21613                 ol_link_threads=posix
21614         fi
21615 fi
21616
21617                 # Pthread try link: -thread (ol_cv_pthread_thread)
21618 if test "$ol_link_threads" = no ; then
21619         # try -thread
21620         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21621 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21622 if test "${ol_cv_pthread_thread+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625
21626                 # save the flags
21627                 ol_LIBS="$LIBS"
21628                 LIBS="-thread $LIBS"
21629
21630                 if test "$cross_compiling" = yes; then
21631   cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637
21638 /* pthread test headers */
21639 #include <pthread.h>
21640 #if HAVE_PTHREADS < 7
21641 #include <errno.h>
21642 #endif
21643 #ifndef NULL
21644 #define NULL (void*)0
21645 #endif
21646
21647 static void *task(p)
21648         void *p;
21649 {
21650         return (void *) (p == NULL);
21651 }
21652
21653 int
21654 main ()
21655 {
21656
21657         /* pthread test function */
21658 #ifndef PTHREAD_CREATE_DETACHED
21659 #define PTHREAD_CREATE_DETACHED 1
21660 #endif
21661         pthread_t t;
21662         int status;
21663         int detach = PTHREAD_CREATE_DETACHED;
21664
21665 #if HAVE_PTHREADS > 4
21666         /* Final pthreads */
21667         pthread_attr_t attr;
21668
21669         status = pthread_attr_init(&attr);
21670         if( status ) return status;
21671
21672 #if HAVE_PTHREADS < 7
21673         status = pthread_attr_setdetachstate(&attr, &detach);
21674         if( status < 0 ) status = errno;
21675 #else
21676         status = pthread_attr_setdetachstate(&attr, detach);
21677 #endif
21678         if( status ) return status;
21679         status = pthread_create( &t, &attr, task, NULL );
21680 #if HAVE_PTHREADS < 7
21681         if( status < 0 ) status = errno;
21682 #endif
21683         if( status ) return status;
21684 #else
21685         /* Draft 4 pthreads */
21686         status = pthread_create( &t, pthread_attr_default, task, NULL );
21687         if( status ) return errno;
21688
21689         /* give thread a chance to complete */
21690         /* it should remain joinable and hence detachable */
21691         sleep( 1 );
21692
21693         status = pthread_detach( &t );
21694         if( status ) return errno;
21695 #endif
21696
21697 #ifdef HAVE_LINUX_THREADS
21698         pthread_kill_other_threads_np();
21699 #endif
21700
21701         return 0;
21702
21703   ;
21704   return 0;
21705 }
21706 _ACEOF
21707 rm -f conftest.$ac_objext conftest$ac_exeext
21708 if { (ac_try="$ac_link"
21709 case "(($ac_try" in
21710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21711   *) ac_try_echo=$ac_try;;
21712 esac
21713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21714   (eval "$ac_link") 2>conftest.er1
21715   ac_status=$?
21716   grep -v '^ *+' conftest.er1 >conftest.err
21717   rm -f conftest.er1
21718   cat conftest.err >&5
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } && {
21721          test -z "$ac_c_werror_flag" ||
21722          test ! -s conftest.err
21723        } && test -s conftest$ac_exeext &&
21724        $as_test_x conftest$ac_exeext; then
21725   ol_cv_pthread_thread=yes
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730         ol_cv_pthread_thread=no
21731 fi
21732
21733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21734       conftest$ac_exeext conftest.$ac_ext
21735 else
21736   cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742
21743 /* pthread test headers */
21744 #include <pthread.h>
21745 #if HAVE_PTHREADS < 7
21746 #include <errno.h>
21747 #endif
21748 #ifndef NULL
21749 #define NULL (void*)0
21750 #endif
21751
21752 static void *task(p)
21753         void *p;
21754 {
21755         return (void *) (p == NULL);
21756 }
21757
21758
21759 int main(argc, argv)
21760         int argc;
21761         char **argv;
21762 {
21763
21764         /* pthread test function */
21765 #ifndef PTHREAD_CREATE_DETACHED
21766 #define PTHREAD_CREATE_DETACHED 1
21767 #endif
21768         pthread_t t;
21769         int status;
21770         int detach = PTHREAD_CREATE_DETACHED;
21771
21772 #if HAVE_PTHREADS > 4
21773         /* Final pthreads */
21774         pthread_attr_t attr;
21775
21776         status = pthread_attr_init(&attr);
21777         if( status ) return status;
21778
21779 #if HAVE_PTHREADS < 7
21780         status = pthread_attr_setdetachstate(&attr, &detach);
21781         if( status < 0 ) status = errno;
21782 #else
21783         status = pthread_attr_setdetachstate(&attr, detach);
21784 #endif
21785         if( status ) return status;
21786         status = pthread_create( &t, &attr, task, NULL );
21787 #if HAVE_PTHREADS < 7
21788         if( status < 0 ) status = errno;
21789 #endif
21790         if( status ) return status;
21791 #else
21792         /* Draft 4 pthreads */
21793         status = pthread_create( &t, pthread_attr_default, task, NULL );
21794         if( status ) return errno;
21795
21796         /* give thread a chance to complete */
21797         /* it should remain joinable and hence detachable */
21798         sleep( 1 );
21799
21800         status = pthread_detach( &t );
21801         if( status ) return errno;
21802 #endif
21803
21804 #ifdef HAVE_LINUX_THREADS
21805         pthread_kill_other_threads_np();
21806 #endif
21807
21808         return 0;
21809
21810 }
21811
21812 _ACEOF
21813 rm -f conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_link") 2>&5
21821   ac_status=$?
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21824   { (case "(($ac_try" in
21825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826   *) ac_try_echo=$ac_try;;
21827 esac
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829   (eval "$ac_try") 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; }; then
21833   ol_cv_pthread_thread=yes
21834 else
21835   echo "$as_me: program exited with status $ac_status" >&5
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839 ( exit $ac_status )
21840 ol_cv_pthread_thread=no
21841 fi
21842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21843 fi
21844
21845
21846
21847                 # restore the LIBS
21848                 LIBS="$ol_LIBS"
21849
21850 fi
21851 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21852 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21853
21854         if test $ol_cv_pthread_thread = yes ; then
21855                 ol_link_pthreads="-thread"
21856                 ol_link_threads=posix
21857         fi
21858 fi
21859
21860
21861                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21862 if test "$ol_link_threads" = no ; then
21863         # try -lpthread -lmach -lexc -lc_r
21864         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21865 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21866 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869
21870                 # save the flags
21871                 ol_LIBS="$LIBS"
21872                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21873
21874                 if test "$cross_compiling" = yes; then
21875   cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881
21882 /* pthread test headers */
21883 #include <pthread.h>
21884 #if HAVE_PTHREADS < 7
21885 #include <errno.h>
21886 #endif
21887 #ifndef NULL
21888 #define NULL (void*)0
21889 #endif
21890
21891 static void *task(p)
21892         void *p;
21893 {
21894         return (void *) (p == NULL);
21895 }
21896
21897 int
21898 main ()
21899 {
21900
21901         /* pthread test function */
21902 #ifndef PTHREAD_CREATE_DETACHED
21903 #define PTHREAD_CREATE_DETACHED 1
21904 #endif
21905         pthread_t t;
21906         int status;
21907         int detach = PTHREAD_CREATE_DETACHED;
21908
21909 #if HAVE_PTHREADS > 4
21910         /* Final pthreads */
21911         pthread_attr_t attr;
21912
21913         status = pthread_attr_init(&attr);
21914         if( status ) return status;
21915
21916 #if HAVE_PTHREADS < 7
21917         status = pthread_attr_setdetachstate(&attr, &detach);
21918         if( status < 0 ) status = errno;
21919 #else
21920         status = pthread_attr_setdetachstate(&attr, detach);
21921 #endif
21922         if( status ) return status;
21923         status = pthread_create( &t, &attr, task, NULL );
21924 #if HAVE_PTHREADS < 7
21925         if( status < 0 ) status = errno;
21926 #endif
21927         if( status ) return status;
21928 #else
21929         /* Draft 4 pthreads */
21930         status = pthread_create( &t, pthread_attr_default, task, NULL );
21931         if( status ) return errno;
21932
21933         /* give thread a chance to complete */
21934         /* it should remain joinable and hence detachable */
21935         sleep( 1 );
21936
21937         status = pthread_detach( &t );
21938         if( status ) return errno;
21939 #endif
21940
21941 #ifdef HAVE_LINUX_THREADS
21942         pthread_kill_other_threads_np();
21943 #endif
21944
21945         return 0;
21946
21947   ;
21948   return 0;
21949 }
21950 _ACEOF
21951 rm -f conftest.$ac_objext conftest$ac_exeext
21952 if { (ac_try="$ac_link"
21953 case "(($ac_try" in
21954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955   *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958   (eval "$ac_link") 2>conftest.er1
21959   ac_status=$?
21960   grep -v '^ *+' conftest.er1 >conftest.err
21961   rm -f conftest.er1
21962   cat conftest.err >&5
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } && {
21965          test -z "$ac_c_werror_flag" ||
21966          test ! -s conftest.err
21967        } && test -s conftest$ac_exeext &&
21968        $as_test_x conftest$ac_exeext; then
21969   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21970 else
21971   echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21973
21974         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21975 fi
21976
21977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21978       conftest$ac_exeext conftest.$ac_ext
21979 else
21980   cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986
21987 /* pthread test headers */
21988 #include <pthread.h>
21989 #if HAVE_PTHREADS < 7
21990 #include <errno.h>
21991 #endif
21992 #ifndef NULL
21993 #define NULL (void*)0
21994 #endif
21995
21996 static void *task(p)
21997         void *p;
21998 {
21999         return (void *) (p == NULL);
22000 }
22001
22002
22003 int main(argc, argv)
22004         int argc;
22005         char **argv;
22006 {
22007
22008         /* pthread test function */
22009 #ifndef PTHREAD_CREATE_DETACHED
22010 #define PTHREAD_CREATE_DETACHED 1
22011 #endif
22012         pthread_t t;
22013         int status;
22014         int detach = PTHREAD_CREATE_DETACHED;
22015
22016 #if HAVE_PTHREADS > 4
22017         /* Final pthreads */
22018         pthread_attr_t attr;
22019
22020         status = pthread_attr_init(&attr);
22021         if( status ) return status;
22022
22023 #if HAVE_PTHREADS < 7
22024         status = pthread_attr_setdetachstate(&attr, &detach);
22025         if( status < 0 ) status = errno;
22026 #else
22027         status = pthread_attr_setdetachstate(&attr, detach);
22028 #endif
22029         if( status ) return status;
22030         status = pthread_create( &t, &attr, task, NULL );
22031 #if HAVE_PTHREADS < 7
22032         if( status < 0 ) status = errno;
22033 #endif
22034         if( status ) return status;
22035 #else
22036         /* Draft 4 pthreads */
22037         status = pthread_create( &t, pthread_attr_default, task, NULL );
22038         if( status ) return errno;
22039
22040         /* give thread a chance to complete */
22041         /* it should remain joinable and hence detachable */
22042         sleep( 1 );
22043
22044         status = pthread_detach( &t );
22045         if( status ) return errno;
22046 #endif
22047
22048 #ifdef HAVE_LINUX_THREADS
22049         pthread_kill_other_threads_np();
22050 #endif
22051
22052         return 0;
22053
22054 }
22055
22056 _ACEOF
22057 rm -f conftest$ac_exeext
22058 if { (ac_try="$ac_link"
22059 case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_link") 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22068   { (case "(($ac_try" in
22069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070   *) ac_try_echo=$ac_try;;
22071 esac
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073   (eval "$ac_try") 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); }; }; then
22077   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22078 else
22079   echo "$as_me: program exited with status $ac_status" >&5
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ( exit $ac_status )
22084 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22085 fi
22086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22087 fi
22088
22089
22090
22091                 # restore the LIBS
22092                 LIBS="$ol_LIBS"
22093
22094 fi
22095 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22096 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22097
22098         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22099                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22100                 ol_link_threads=posix
22101         fi
22102 fi
22103
22104                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22105 if test "$ol_link_threads" = no ; then
22106         # try -lpthread -lmach -lexc
22107         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22108 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22109 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112
22113                 # save the flags
22114                 ol_LIBS="$LIBS"
22115                 LIBS="-lpthread -lmach -lexc $LIBS"
22116
22117                 if test "$cross_compiling" = yes; then
22118   cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124
22125 /* pthread test headers */
22126 #include <pthread.h>
22127 #if HAVE_PTHREADS < 7
22128 #include <errno.h>
22129 #endif
22130 #ifndef NULL
22131 #define NULL (void*)0
22132 #endif
22133
22134 static void *task(p)
22135         void *p;
22136 {
22137         return (void *) (p == NULL);
22138 }
22139
22140 int
22141 main ()
22142 {
22143
22144         /* pthread test function */
22145 #ifndef PTHREAD_CREATE_DETACHED
22146 #define PTHREAD_CREATE_DETACHED 1
22147 #endif
22148         pthread_t t;
22149         int status;
22150         int detach = PTHREAD_CREATE_DETACHED;
22151
22152 #if HAVE_PTHREADS > 4
22153         /* Final pthreads */
22154         pthread_attr_t attr;
22155
22156         status = pthread_attr_init(&attr);
22157         if( status ) return status;
22158
22159 #if HAVE_PTHREADS < 7
22160         status = pthread_attr_setdetachstate(&attr, &detach);
22161         if( status < 0 ) status = errno;
22162 #else
22163         status = pthread_attr_setdetachstate(&attr, detach);
22164 #endif
22165         if( status ) return status;
22166         status = pthread_create( &t, &attr, task, NULL );
22167 #if HAVE_PTHREADS < 7
22168         if( status < 0 ) status = errno;
22169 #endif
22170         if( status ) return status;
22171 #else
22172         /* Draft 4 pthreads */
22173         status = pthread_create( &t, pthread_attr_default, task, NULL );
22174         if( status ) return errno;
22175
22176         /* give thread a chance to complete */
22177         /* it should remain joinable and hence detachable */
22178         sleep( 1 );
22179
22180         status = pthread_detach( &t );
22181         if( status ) return errno;
22182 #endif
22183
22184 #ifdef HAVE_LINUX_THREADS
22185         pthread_kill_other_threads_np();
22186 #endif
22187
22188         return 0;
22189
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 rm -f conftest.$ac_objext conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201   (eval "$ac_link") 2>conftest.er1
22202   ac_status=$?
22203   grep -v '^ *+' conftest.er1 >conftest.err
22204   rm -f conftest.er1
22205   cat conftest.err >&5
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); } && {
22208          test -z "$ac_c_werror_flag" ||
22209          test ! -s conftest.err
22210        } && test -s conftest$ac_exeext &&
22211        $as_test_x conftest$ac_exeext; then
22212   ol_cv_pthread_lpthread_lmach_lexc=yes
22213 else
22214   echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217         ol_cv_pthread_lpthread_lmach_lexc=no
22218 fi
22219
22220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22221       conftest$ac_exeext conftest.$ac_ext
22222 else
22223   cat >conftest.$ac_ext <<_ACEOF
22224 /* confdefs.h.  */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h.  */
22229
22230 /* pthread test headers */
22231 #include <pthread.h>
22232 #if HAVE_PTHREADS < 7
22233 #include <errno.h>
22234 #endif
22235 #ifndef NULL
22236 #define NULL (void*)0
22237 #endif
22238
22239 static void *task(p)
22240         void *p;
22241 {
22242         return (void *) (p == NULL);
22243 }
22244
22245
22246 int main(argc, argv)
22247         int argc;
22248         char **argv;
22249 {
22250
22251         /* pthread test function */
22252 #ifndef PTHREAD_CREATE_DETACHED
22253 #define PTHREAD_CREATE_DETACHED 1
22254 #endif
22255         pthread_t t;
22256         int status;
22257         int detach = PTHREAD_CREATE_DETACHED;
22258
22259 #if HAVE_PTHREADS > 4
22260         /* Final pthreads */
22261         pthread_attr_t attr;
22262
22263         status = pthread_attr_init(&attr);
22264         if( status ) return status;
22265
22266 #if HAVE_PTHREADS < 7
22267         status = pthread_attr_setdetachstate(&attr, &detach);
22268         if( status < 0 ) status = errno;
22269 #else
22270         status = pthread_attr_setdetachstate(&attr, detach);
22271 #endif
22272         if( status ) return status;
22273         status = pthread_create( &t, &attr, task, NULL );
22274 #if HAVE_PTHREADS < 7
22275         if( status < 0 ) status = errno;
22276 #endif
22277         if( status ) return status;
22278 #else
22279         /* Draft 4 pthreads */
22280         status = pthread_create( &t, pthread_attr_default, task, NULL );
22281         if( status ) return errno;
22282
22283         /* give thread a chance to complete */
22284         /* it should remain joinable and hence detachable */
22285         sleep( 1 );
22286
22287         status = pthread_detach( &t );
22288         if( status ) return errno;
22289 #endif
22290
22291 #ifdef HAVE_LINUX_THREADS
22292         pthread_kill_other_threads_np();
22293 #endif
22294
22295         return 0;
22296
22297 }
22298
22299 _ACEOF
22300 rm -f conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304   *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307   (eval "$ac_link") 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22311   { (case "(($ac_try" in
22312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313   *) ac_try_echo=$ac_try;;
22314 esac
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316   (eval "$ac_try") 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; }; then
22320   ol_cv_pthread_lpthread_lmach_lexc=yes
22321 else
22322   echo "$as_me: program exited with status $ac_status" >&5
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 ( exit $ac_status )
22327 ol_cv_pthread_lpthread_lmach_lexc=no
22328 fi
22329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22330 fi
22331
22332
22333
22334                 # restore the LIBS
22335                 LIBS="$ol_LIBS"
22336
22337 fi
22338 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22339 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22340
22341         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22342                 ol_link_pthreads="-lpthread -lmach -lexc"
22343                 ol_link_threads=posix
22344         fi
22345 fi
22346
22347
22348                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22349 if test "$ol_link_threads" = no ; then
22350         # try -lpthread -Wl,-woff,85
22351         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22352 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22353 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356
22357                 # save the flags
22358                 ol_LIBS="$LIBS"
22359                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22360
22361                 if test "$cross_compiling" = yes; then
22362   cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368
22369 /* pthread test headers */
22370 #include <pthread.h>
22371 #if HAVE_PTHREADS < 7
22372 #include <errno.h>
22373 #endif
22374 #ifndef NULL
22375 #define NULL (void*)0
22376 #endif
22377
22378 static void *task(p)
22379         void *p;
22380 {
22381         return (void *) (p == NULL);
22382 }
22383
22384 int
22385 main ()
22386 {
22387
22388         /* pthread test function */
22389 #ifndef PTHREAD_CREATE_DETACHED
22390 #define PTHREAD_CREATE_DETACHED 1
22391 #endif
22392         pthread_t t;
22393         int status;
22394         int detach = PTHREAD_CREATE_DETACHED;
22395
22396 #if HAVE_PTHREADS > 4
22397         /* Final pthreads */
22398         pthread_attr_t attr;
22399
22400         status = pthread_attr_init(&attr);
22401         if( status ) return status;
22402
22403 #if HAVE_PTHREADS < 7
22404         status = pthread_attr_setdetachstate(&attr, &detach);
22405         if( status < 0 ) status = errno;
22406 #else
22407         status = pthread_attr_setdetachstate(&attr, detach);
22408 #endif
22409         if( status ) return status;
22410         status = pthread_create( &t, &attr, task, NULL );
22411 #if HAVE_PTHREADS < 7
22412         if( status < 0 ) status = errno;
22413 #endif
22414         if( status ) return status;
22415 #else
22416         /* Draft 4 pthreads */
22417         status = pthread_create( &t, pthread_attr_default, task, NULL );
22418         if( status ) return errno;
22419
22420         /* give thread a chance to complete */
22421         /* it should remain joinable and hence detachable */
22422         sleep( 1 );
22423
22424         status = pthread_detach( &t );
22425         if( status ) return errno;
22426 #endif
22427
22428 #ifdef HAVE_LINUX_THREADS
22429         pthread_kill_other_threads_np();
22430 #endif
22431
22432         return 0;
22433
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 rm -f conftest.$ac_objext conftest$ac_exeext
22439 if { (ac_try="$ac_link"
22440 case "(($ac_try" in
22441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22442   *) ac_try_echo=$ac_try;;
22443 esac
22444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22445   (eval "$ac_link") 2>conftest.er1
22446   ac_status=$?
22447   grep -v '^ *+' conftest.er1 >conftest.err
22448   rm -f conftest.er1
22449   cat conftest.err >&5
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); } && {
22452          test -z "$ac_c_werror_flag" ||
22453          test ! -s conftest.err
22454        } && test -s conftest$ac_exeext &&
22455        $as_test_x conftest$ac_exeext; then
22456   ol_cv_pthread_lib_lpthread_woff=yes
22457 else
22458   echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22460
22461         ol_cv_pthread_lib_lpthread_woff=no
22462 fi
22463
22464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22465       conftest$ac_exeext conftest.$ac_ext
22466 else
22467   cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473
22474 /* pthread test headers */
22475 #include <pthread.h>
22476 #if HAVE_PTHREADS < 7
22477 #include <errno.h>
22478 #endif
22479 #ifndef NULL
22480 #define NULL (void*)0
22481 #endif
22482
22483 static void *task(p)
22484         void *p;
22485 {
22486         return (void *) (p == NULL);
22487 }
22488
22489
22490 int main(argc, argv)
22491         int argc;
22492         char **argv;
22493 {
22494
22495         /* pthread test function */
22496 #ifndef PTHREAD_CREATE_DETACHED
22497 #define PTHREAD_CREATE_DETACHED 1
22498 #endif
22499         pthread_t t;
22500         int status;
22501         int detach = PTHREAD_CREATE_DETACHED;
22502
22503 #if HAVE_PTHREADS > 4
22504         /* Final pthreads */
22505         pthread_attr_t attr;
22506
22507         status = pthread_attr_init(&attr);
22508         if( status ) return status;
22509
22510 #if HAVE_PTHREADS < 7
22511         status = pthread_attr_setdetachstate(&attr, &detach);
22512         if( status < 0 ) status = errno;
22513 #else
22514         status = pthread_attr_setdetachstate(&attr, detach);
22515 #endif
22516         if( status ) return status;
22517         status = pthread_create( &t, &attr, task, NULL );
22518 #if HAVE_PTHREADS < 7
22519         if( status < 0 ) status = errno;
22520 #endif
22521         if( status ) return status;
22522 #else
22523         /* Draft 4 pthreads */
22524         status = pthread_create( &t, pthread_attr_default, task, NULL );
22525         if( status ) return errno;
22526
22527         /* give thread a chance to complete */
22528         /* it should remain joinable and hence detachable */
22529         sleep( 1 );
22530
22531         status = pthread_detach( &t );
22532         if( status ) return errno;
22533 #endif
22534
22535 #ifdef HAVE_LINUX_THREADS
22536         pthread_kill_other_threads_np();
22537 #endif
22538
22539         return 0;
22540
22541 }
22542
22543 _ACEOF
22544 rm -f conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548   *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551   (eval "$ac_link") 2>&5
22552   ac_status=$?
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22555   { (case "(($ac_try" in
22556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557   *) ac_try_echo=$ac_try;;
22558 esac
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560   (eval "$ac_try") 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   ol_cv_pthread_lib_lpthread_woff=yes
22565 else
22566   echo "$as_me: program exited with status $ac_status" >&5
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ( exit $ac_status )
22571 ol_cv_pthread_lib_lpthread_woff=no
22572 fi
22573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22574 fi
22575
22576
22577
22578                 # restore the LIBS
22579                 LIBS="$ol_LIBS"
22580
22581 fi
22582 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22583 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22584
22585         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22586                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22587                 ol_link_threads=posix
22588         fi
22589 fi
22590
22591
22592                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22593 if test "$ol_link_threads" = no ; then
22594         # try -lpthread
22595         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22596 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22597 if test "${ol_cv_pthread_lpthread+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600
22601                 # save the flags
22602                 ol_LIBS="$LIBS"
22603                 LIBS="-lpthread $LIBS"
22604
22605                 if test "$cross_compiling" = yes; then
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612
22613 /* pthread test headers */
22614 #include <pthread.h>
22615 #if HAVE_PTHREADS < 7
22616 #include <errno.h>
22617 #endif
22618 #ifndef NULL
22619 #define NULL (void*)0
22620 #endif
22621
22622 static void *task(p)
22623         void *p;
22624 {
22625         return (void *) (p == NULL);
22626 }
22627
22628 int
22629 main ()
22630 {
22631
22632         /* pthread test function */
22633 #ifndef PTHREAD_CREATE_DETACHED
22634 #define PTHREAD_CREATE_DETACHED 1
22635 #endif
22636         pthread_t t;
22637         int status;
22638         int detach = PTHREAD_CREATE_DETACHED;
22639
22640 #if HAVE_PTHREADS > 4
22641         /* Final pthreads */
22642         pthread_attr_t attr;
22643
22644         status = pthread_attr_init(&attr);
22645         if( status ) return status;
22646
22647 #if HAVE_PTHREADS < 7
22648         status = pthread_attr_setdetachstate(&attr, &detach);
22649         if( status < 0 ) status = errno;
22650 #else
22651         status = pthread_attr_setdetachstate(&attr, detach);
22652 #endif
22653         if( status ) return status;
22654         status = pthread_create( &t, &attr, task, NULL );
22655 #if HAVE_PTHREADS < 7
22656         if( status < 0 ) status = errno;
22657 #endif
22658         if( status ) return status;
22659 #else
22660         /* Draft 4 pthreads */
22661         status = pthread_create( &t, pthread_attr_default, task, NULL );
22662         if( status ) return errno;
22663
22664         /* give thread a chance to complete */
22665         /* it should remain joinable and hence detachable */
22666         sleep( 1 );
22667
22668         status = pthread_detach( &t );
22669         if( status ) return errno;
22670 #endif
22671
22672 #ifdef HAVE_LINUX_THREADS
22673         pthread_kill_other_threads_np();
22674 #endif
22675
22676         return 0;
22677
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686   *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689   (eval "$ac_link") 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } && {
22696          test -z "$ac_c_werror_flag" ||
22697          test ! -s conftest.err
22698        } && test -s conftest$ac_exeext &&
22699        $as_test_x conftest$ac_exeext; then
22700   ol_cv_pthread_lpthread=yes
22701 else
22702   echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705         ol_cv_pthread_lpthread=no
22706 fi
22707
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709       conftest$ac_exeext conftest.$ac_ext
22710 else
22711   cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717
22718 /* pthread test headers */
22719 #include <pthread.h>
22720 #if HAVE_PTHREADS < 7
22721 #include <errno.h>
22722 #endif
22723 #ifndef NULL
22724 #define NULL (void*)0
22725 #endif
22726
22727 static void *task(p)
22728         void *p;
22729 {
22730         return (void *) (p == NULL);
22731 }
22732
22733
22734 int main(argc, argv)
22735         int argc;
22736         char **argv;
22737 {
22738
22739         /* pthread test function */
22740 #ifndef PTHREAD_CREATE_DETACHED
22741 #define PTHREAD_CREATE_DETACHED 1
22742 #endif
22743         pthread_t t;
22744         int status;
22745         int detach = PTHREAD_CREATE_DETACHED;
22746
22747 #if HAVE_PTHREADS > 4
22748         /* Final pthreads */
22749         pthread_attr_t attr;
22750
22751         status = pthread_attr_init(&attr);
22752         if( status ) return status;
22753
22754 #if HAVE_PTHREADS < 7
22755         status = pthread_attr_setdetachstate(&attr, &detach);
22756         if( status < 0 ) status = errno;
22757 #else
22758         status = pthread_attr_setdetachstate(&attr, detach);
22759 #endif
22760         if( status ) return status;
22761         status = pthread_create( &t, &attr, task, NULL );
22762 #if HAVE_PTHREADS < 7
22763         if( status < 0 ) status = errno;
22764 #endif
22765         if( status ) return status;
22766 #else
22767         /* Draft 4 pthreads */
22768         status = pthread_create( &t, pthread_attr_default, task, NULL );
22769         if( status ) return errno;
22770
22771         /* give thread a chance to complete */
22772         /* it should remain joinable and hence detachable */
22773         sleep( 1 );
22774
22775         status = pthread_detach( &t );
22776         if( status ) return errno;
22777 #endif
22778
22779 #ifdef HAVE_LINUX_THREADS
22780         pthread_kill_other_threads_np();
22781 #endif
22782
22783         return 0;
22784
22785 }
22786
22787 _ACEOF
22788 rm -f conftest$ac_exeext
22789 if { (ac_try="$ac_link"
22790 case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_link") 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22799   { (case "(($ac_try" in
22800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801   *) ac_try_echo=$ac_try;;
22802 esac
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804   (eval "$ac_try") 2>&5
22805   ac_status=$?
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); }; }; then
22808   ol_cv_pthread_lpthread=yes
22809 else
22810   echo "$as_me: program exited with status $ac_status" >&5
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22813
22814 ( exit $ac_status )
22815 ol_cv_pthread_lpthread=no
22816 fi
22817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22818 fi
22819
22820
22821
22822                 # restore the LIBS
22823                 LIBS="$ol_LIBS"
22824
22825 fi
22826 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22827 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22828
22829         if test $ol_cv_pthread_lpthread = yes ; then
22830                 ol_link_pthreads="-lpthread"
22831                 ol_link_threads=posix
22832         fi
22833 fi
22834
22835                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22836 if test "$ol_link_threads" = no ; then
22837         # try -lc_r
22838         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22839 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22840 if test "${ol_cv_pthread_lc_r+set}" = set; then
22841   echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843
22844                 # save the flags
22845                 ol_LIBS="$LIBS"
22846                 LIBS="-lc_r $LIBS"
22847
22848                 if test "$cross_compiling" = yes; then
22849   cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h.  */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h.  */
22855
22856 /* pthread test headers */
22857 #include <pthread.h>
22858 #if HAVE_PTHREADS < 7
22859 #include <errno.h>
22860 #endif
22861 #ifndef NULL
22862 #define NULL (void*)0
22863 #endif
22864
22865 static void *task(p)
22866         void *p;
22867 {
22868         return (void *) (p == NULL);
22869 }
22870
22871 int
22872 main ()
22873 {
22874
22875         /* pthread test function */
22876 #ifndef PTHREAD_CREATE_DETACHED
22877 #define PTHREAD_CREATE_DETACHED 1
22878 #endif
22879         pthread_t t;
22880         int status;
22881         int detach = PTHREAD_CREATE_DETACHED;
22882
22883 #if HAVE_PTHREADS > 4
22884         /* Final pthreads */
22885         pthread_attr_t attr;
22886
22887         status = pthread_attr_init(&attr);
22888         if( status ) return status;
22889
22890 #if HAVE_PTHREADS < 7
22891         status = pthread_attr_setdetachstate(&attr, &detach);
22892         if( status < 0 ) status = errno;
22893 #else
22894         status = pthread_attr_setdetachstate(&attr, detach);
22895 #endif
22896         if( status ) return status;
22897         status = pthread_create( &t, &attr, task, NULL );
22898 #if HAVE_PTHREADS < 7
22899         if( status < 0 ) status = errno;
22900 #endif
22901         if( status ) return status;
22902 #else
22903         /* Draft 4 pthreads */
22904         status = pthread_create( &t, pthread_attr_default, task, NULL );
22905         if( status ) return errno;
22906
22907         /* give thread a chance to complete */
22908         /* it should remain joinable and hence detachable */
22909         sleep( 1 );
22910
22911         status = pthread_detach( &t );
22912         if( status ) return errno;
22913 #endif
22914
22915 #ifdef HAVE_LINUX_THREADS
22916         pthread_kill_other_threads_np();
22917 #endif
22918
22919         return 0;
22920
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext conftest$ac_exeext
22926 if { (ac_try="$ac_link"
22927 case "(($ac_try" in
22928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929   *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932   (eval "$ac_link") 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && {
22939          test -z "$ac_c_werror_flag" ||
22940          test ! -s conftest.err
22941        } && test -s conftest$ac_exeext &&
22942        $as_test_x conftest$ac_exeext; then
22943   ol_cv_pthread_lc_r=yes
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948         ol_cv_pthread_lc_r=no
22949 fi
22950
22951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22952       conftest$ac_exeext conftest.$ac_ext
22953 else
22954   cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h.  */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h.  */
22960
22961 /* pthread test headers */
22962 #include <pthread.h>
22963 #if HAVE_PTHREADS < 7
22964 #include <errno.h>
22965 #endif
22966 #ifndef NULL
22967 #define NULL (void*)0
22968 #endif
22969
22970 static void *task(p)
22971         void *p;
22972 {
22973         return (void *) (p == NULL);
22974 }
22975
22976
22977 int main(argc, argv)
22978         int argc;
22979         char **argv;
22980 {
22981
22982         /* pthread test function */
22983 #ifndef PTHREAD_CREATE_DETACHED
22984 #define PTHREAD_CREATE_DETACHED 1
22985 #endif
22986         pthread_t t;
22987         int status;
22988         int detach = PTHREAD_CREATE_DETACHED;
22989
22990 #if HAVE_PTHREADS > 4
22991         /* Final pthreads */
22992         pthread_attr_t attr;
22993
22994         status = pthread_attr_init(&attr);
22995         if( status ) return status;
22996
22997 #if HAVE_PTHREADS < 7
22998         status = pthread_attr_setdetachstate(&attr, &detach);
22999         if( status < 0 ) status = errno;
23000 #else
23001         status = pthread_attr_setdetachstate(&attr, detach);
23002 #endif
23003         if( status ) return status;
23004         status = pthread_create( &t, &attr, task, NULL );
23005 #if HAVE_PTHREADS < 7
23006         if( status < 0 ) status = errno;
23007 #endif
23008         if( status ) return status;
23009 #else
23010         /* Draft 4 pthreads */
23011         status = pthread_create( &t, pthread_attr_default, task, NULL );
23012         if( status ) return errno;
23013
23014         /* give thread a chance to complete */
23015         /* it should remain joinable and hence detachable */
23016         sleep( 1 );
23017
23018         status = pthread_detach( &t );
23019         if( status ) return errno;
23020 #endif
23021
23022 #ifdef HAVE_LINUX_THREADS
23023         pthread_kill_other_threads_np();
23024 #endif
23025
23026         return 0;
23027
23028 }
23029
23030 _ACEOF
23031 rm -f conftest$ac_exeext
23032 if { (ac_try="$ac_link"
23033 case "(($ac_try" in
23034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035   *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038   (eval "$ac_link") 2>&5
23039   ac_status=$?
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23042   { (case "(($ac_try" in
23043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044   *) ac_try_echo=$ac_try;;
23045 esac
23046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047   (eval "$ac_try") 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; }; then
23051   ol_cv_pthread_lc_r=yes
23052 else
23053   echo "$as_me: program exited with status $ac_status" >&5
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ( exit $ac_status )
23058 ol_cv_pthread_lc_r=no
23059 fi
23060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23061 fi
23062
23063
23064
23065                 # restore the LIBS
23066                 LIBS="$ol_LIBS"
23067
23068 fi
23069 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23070 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23071
23072         if test $ol_cv_pthread_lc_r = yes ; then
23073                 ol_link_pthreads="-lc_r"
23074                 ol_link_threads=posix
23075         fi
23076 fi
23077
23078
23079                 # Pthread try link: -threads (ol_cv_pthread_threads)
23080 if test "$ol_link_threads" = no ; then
23081         # try -threads
23082         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23083 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23084 if test "${ol_cv_pthread_threads+set}" = set; then
23085   echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087
23088                 # save the flags
23089                 ol_LIBS="$LIBS"
23090                 LIBS="-threads $LIBS"
23091
23092                 if test "$cross_compiling" = yes; then
23093   cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099
23100 /* pthread test headers */
23101 #include <pthread.h>
23102 #if HAVE_PTHREADS < 7
23103 #include <errno.h>
23104 #endif
23105 #ifndef NULL
23106 #define NULL (void*)0
23107 #endif
23108
23109 static void *task(p)
23110         void *p;
23111 {
23112         return (void *) (p == NULL);
23113 }
23114
23115 int
23116 main ()
23117 {
23118
23119         /* pthread test function */
23120 #ifndef PTHREAD_CREATE_DETACHED
23121 #define PTHREAD_CREATE_DETACHED 1
23122 #endif
23123         pthread_t t;
23124         int status;
23125         int detach = PTHREAD_CREATE_DETACHED;
23126
23127 #if HAVE_PTHREADS > 4
23128         /* Final pthreads */
23129         pthread_attr_t attr;
23130
23131         status = pthread_attr_init(&attr);
23132         if( status ) return status;
23133
23134 #if HAVE_PTHREADS < 7
23135         status = pthread_attr_setdetachstate(&attr, &detach);
23136         if( status < 0 ) status = errno;
23137 #else
23138         status = pthread_attr_setdetachstate(&attr, detach);
23139 #endif
23140         if( status ) return status;
23141         status = pthread_create( &t, &attr, task, NULL );
23142 #if HAVE_PTHREADS < 7
23143         if( status < 0 ) status = errno;
23144 #endif
23145         if( status ) return status;
23146 #else
23147         /* Draft 4 pthreads */
23148         status = pthread_create( &t, pthread_attr_default, task, NULL );
23149         if( status ) return errno;
23150
23151         /* give thread a chance to complete */
23152         /* it should remain joinable and hence detachable */
23153         sleep( 1 );
23154
23155         status = pthread_detach( &t );
23156         if( status ) return errno;
23157 #endif
23158
23159 #ifdef HAVE_LINUX_THREADS
23160         pthread_kill_other_threads_np();
23161 #endif
23162
23163         return 0;
23164
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (ac_try="$ac_link"
23171 case "(($ac_try" in
23172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173   *) ac_try_echo=$ac_try;;
23174 esac
23175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176   (eval "$ac_link") 2>conftest.er1
23177   ac_status=$?
23178   grep -v '^ *+' conftest.er1 >conftest.err
23179   rm -f conftest.er1
23180   cat conftest.err >&5
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); } && {
23183          test -z "$ac_c_werror_flag" ||
23184          test ! -s conftest.err
23185        } && test -s conftest$ac_exeext &&
23186        $as_test_x conftest$ac_exeext; then
23187   ol_cv_pthread_threads=yes
23188 else
23189   echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192         ol_cv_pthread_threads=no
23193 fi
23194
23195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23196       conftest$ac_exeext conftest.$ac_ext
23197 else
23198   cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204
23205 /* pthread test headers */
23206 #include <pthread.h>
23207 #if HAVE_PTHREADS < 7
23208 #include <errno.h>
23209 #endif
23210 #ifndef NULL
23211 #define NULL (void*)0
23212 #endif
23213
23214 static void *task(p)
23215         void *p;
23216 {
23217         return (void *) (p == NULL);
23218 }
23219
23220
23221 int main(argc, argv)
23222         int argc;
23223         char **argv;
23224 {
23225
23226         /* pthread test function */
23227 #ifndef PTHREAD_CREATE_DETACHED
23228 #define PTHREAD_CREATE_DETACHED 1
23229 #endif
23230         pthread_t t;
23231         int status;
23232         int detach = PTHREAD_CREATE_DETACHED;
23233
23234 #if HAVE_PTHREADS > 4
23235         /* Final pthreads */
23236         pthread_attr_t attr;
23237
23238         status = pthread_attr_init(&attr);
23239         if( status ) return status;
23240
23241 #if HAVE_PTHREADS < 7
23242         status = pthread_attr_setdetachstate(&attr, &detach);
23243         if( status < 0 ) status = errno;
23244 #else
23245         status = pthread_attr_setdetachstate(&attr, detach);
23246 #endif
23247         if( status ) return status;
23248         status = pthread_create( &t, &attr, task, NULL );
23249 #if HAVE_PTHREADS < 7
23250         if( status < 0 ) status = errno;
23251 #endif
23252         if( status ) return status;
23253 #else
23254         /* Draft 4 pthreads */
23255         status = pthread_create( &t, pthread_attr_default, task, NULL );
23256         if( status ) return errno;
23257
23258         /* give thread a chance to complete */
23259         /* it should remain joinable and hence detachable */
23260         sleep( 1 );
23261
23262         status = pthread_detach( &t );
23263         if( status ) return errno;
23264 #endif
23265
23266 #ifdef HAVE_LINUX_THREADS
23267         pthread_kill_other_threads_np();
23268 #endif
23269
23270         return 0;
23271
23272 }
23273
23274 _ACEOF
23275 rm -f conftest$ac_exeext
23276 if { (ac_try="$ac_link"
23277 case "(($ac_try" in
23278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279   *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282   (eval "$ac_link") 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23286   { (case "(($ac_try" in
23287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288   *) ac_try_echo=$ac_try;;
23289 esac
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291   (eval "$ac_try") 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ol_cv_pthread_threads=yes
23296 else
23297   echo "$as_me: program exited with status $ac_status" >&5
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 ( exit $ac_status )
23302 ol_cv_pthread_threads=no
23303 fi
23304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23305 fi
23306
23307
23308
23309                 # restore the LIBS
23310                 LIBS="$ol_LIBS"
23311
23312 fi
23313 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23314 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23315
23316         if test $ol_cv_pthread_threads = yes ; then
23317                 ol_link_pthreads="-threads"
23318                 ol_link_threads=posix
23319         fi
23320 fi
23321
23322
23323                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23324 if test "$ol_link_threads" = no ; then
23325         # try -lpthreads -lmach -lexc -lc_r
23326         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23327 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23328 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23329   echo $ECHO_N "(cached) $ECHO_C" >&6
23330 else
23331
23332                 # save the flags
23333                 ol_LIBS="$LIBS"
23334                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23335
23336                 if test "$cross_compiling" = yes; then
23337   cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h.  */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h.  */
23343
23344 /* pthread test headers */
23345 #include <pthread.h>
23346 #if HAVE_PTHREADS < 7
23347 #include <errno.h>
23348 #endif
23349 #ifndef NULL
23350 #define NULL (void*)0
23351 #endif
23352
23353 static void *task(p)
23354         void *p;
23355 {
23356         return (void *) (p == NULL);
23357 }
23358
23359 int
23360 main ()
23361 {
23362
23363         /* pthread test function */
23364 #ifndef PTHREAD_CREATE_DETACHED
23365 #define PTHREAD_CREATE_DETACHED 1
23366 #endif
23367         pthread_t t;
23368         int status;
23369         int detach = PTHREAD_CREATE_DETACHED;
23370
23371 #if HAVE_PTHREADS > 4
23372         /* Final pthreads */
23373         pthread_attr_t attr;
23374
23375         status = pthread_attr_init(&attr);
23376         if( status ) return status;
23377
23378 #if HAVE_PTHREADS < 7
23379         status = pthread_attr_setdetachstate(&attr, &detach);
23380         if( status < 0 ) status = errno;
23381 #else
23382         status = pthread_attr_setdetachstate(&attr, detach);
23383 #endif
23384         if( status ) return status;
23385         status = pthread_create( &t, &attr, task, NULL );
23386 #if HAVE_PTHREADS < 7
23387         if( status < 0 ) status = errno;
23388 #endif
23389         if( status ) return status;
23390 #else
23391         /* Draft 4 pthreads */
23392         status = pthread_create( &t, pthread_attr_default, task, NULL );
23393         if( status ) return errno;
23394
23395         /* give thread a chance to complete */
23396         /* it should remain joinable and hence detachable */
23397         sleep( 1 );
23398
23399         status = pthread_detach( &t );
23400         if( status ) return errno;
23401 #endif
23402
23403 #ifdef HAVE_LINUX_THREADS
23404         pthread_kill_other_threads_np();
23405 #endif
23406
23407         return 0;
23408
23409   ;
23410   return 0;
23411 }
23412 _ACEOF
23413 rm -f conftest.$ac_objext conftest$ac_exeext
23414 if { (ac_try="$ac_link"
23415 case "(($ac_try" in
23416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417   *) ac_try_echo=$ac_try;;
23418 esac
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420   (eval "$ac_link") 2>conftest.er1
23421   ac_status=$?
23422   grep -v '^ *+' conftest.er1 >conftest.err
23423   rm -f conftest.er1
23424   cat conftest.err >&5
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); } && {
23427          test -z "$ac_c_werror_flag" ||
23428          test ! -s conftest.err
23429        } && test -s conftest$ac_exeext &&
23430        $as_test_x conftest$ac_exeext; then
23431   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23432 else
23433   echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23437 fi
23438
23439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23440       conftest$ac_exeext conftest.$ac_ext
23441 else
23442   cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h.  */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h.  */
23448
23449 /* pthread test headers */
23450 #include <pthread.h>
23451 #if HAVE_PTHREADS < 7
23452 #include <errno.h>
23453 #endif
23454 #ifndef NULL
23455 #define NULL (void*)0
23456 #endif
23457
23458 static void *task(p)
23459         void *p;
23460 {
23461         return (void *) (p == NULL);
23462 }
23463
23464
23465 int main(argc, argv)
23466         int argc;
23467         char **argv;
23468 {
23469
23470         /* pthread test function */
23471 #ifndef PTHREAD_CREATE_DETACHED
23472 #define PTHREAD_CREATE_DETACHED 1
23473 #endif
23474         pthread_t t;
23475         int status;
23476         int detach = PTHREAD_CREATE_DETACHED;
23477
23478 #if HAVE_PTHREADS > 4
23479         /* Final pthreads */
23480         pthread_attr_t attr;
23481
23482         status = pthread_attr_init(&attr);
23483         if( status ) return status;
23484
23485 #if HAVE_PTHREADS < 7
23486         status = pthread_attr_setdetachstate(&attr, &detach);
23487         if( status < 0 ) status = errno;
23488 #else
23489         status = pthread_attr_setdetachstate(&attr, detach);
23490 #endif
23491         if( status ) return status;
23492         status = pthread_create( &t, &attr, task, NULL );
23493 #if HAVE_PTHREADS < 7
23494         if( status < 0 ) status = errno;
23495 #endif
23496         if( status ) return status;
23497 #else
23498         /* Draft 4 pthreads */
23499         status = pthread_create( &t, pthread_attr_default, task, NULL );
23500         if( status ) return errno;
23501
23502         /* give thread a chance to complete */
23503         /* it should remain joinable and hence detachable */
23504         sleep( 1 );
23505
23506         status = pthread_detach( &t );
23507         if( status ) return errno;
23508 #endif
23509
23510 #ifdef HAVE_LINUX_THREADS
23511         pthread_kill_other_threads_np();
23512 #endif
23513
23514         return 0;
23515
23516 }
23517
23518 _ACEOF
23519 rm -f conftest$ac_exeext
23520 if { (ac_try="$ac_link"
23521 case "(($ac_try" in
23522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523   *) ac_try_echo=$ac_try;;
23524 esac
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526   (eval "$ac_link") 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23530   { (case "(($ac_try" in
23531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532   *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535   (eval "$ac_try") 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; }; then
23539   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23540 else
23541   echo "$as_me: program exited with status $ac_status" >&5
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ( exit $ac_status )
23546 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23547 fi
23548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23549 fi
23550
23551
23552
23553                 # restore the LIBS
23554                 LIBS="$ol_LIBS"
23555
23556 fi
23557 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23558 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23559
23560         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23561                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23562                 ol_link_threads=posix
23563         fi
23564 fi
23565
23566                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23567 if test "$ol_link_threads" = no ; then
23568         # try -lpthreads -lmach -lexc
23569         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23570 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23571 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23572   echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574
23575                 # save the flags
23576                 ol_LIBS="$LIBS"
23577                 LIBS="-lpthreads -lmach -lexc $LIBS"
23578
23579                 if test "$cross_compiling" = yes; then
23580   cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h.  */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h.  */
23586
23587 /* pthread test headers */
23588 #include <pthread.h>
23589 #if HAVE_PTHREADS < 7
23590 #include <errno.h>
23591 #endif
23592 #ifndef NULL
23593 #define NULL (void*)0
23594 #endif
23595
23596 static void *task(p)
23597         void *p;
23598 {
23599         return (void *) (p == NULL);
23600 }
23601
23602 int
23603 main ()
23604 {
23605
23606         /* pthread test function */
23607 #ifndef PTHREAD_CREATE_DETACHED
23608 #define PTHREAD_CREATE_DETACHED 1
23609 #endif
23610         pthread_t t;
23611         int status;
23612         int detach = PTHREAD_CREATE_DETACHED;
23613
23614 #if HAVE_PTHREADS > 4
23615         /* Final pthreads */
23616         pthread_attr_t attr;
23617
23618         status = pthread_attr_init(&attr);
23619         if( status ) return status;
23620
23621 #if HAVE_PTHREADS < 7
23622         status = pthread_attr_setdetachstate(&attr, &detach);
23623         if( status < 0 ) status = errno;
23624 #else
23625         status = pthread_attr_setdetachstate(&attr, detach);
23626 #endif
23627         if( status ) return status;
23628         status = pthread_create( &t, &attr, task, NULL );
23629 #if HAVE_PTHREADS < 7
23630         if( status < 0 ) status = errno;
23631 #endif
23632         if( status ) return status;
23633 #else
23634         /* Draft 4 pthreads */
23635         status = pthread_create( &t, pthread_attr_default, task, NULL );
23636         if( status ) return errno;
23637
23638         /* give thread a chance to complete */
23639         /* it should remain joinable and hence detachable */
23640         sleep( 1 );
23641
23642         status = pthread_detach( &t );
23643         if( status ) return errno;
23644 #endif
23645
23646 #ifdef HAVE_LINUX_THREADS
23647         pthread_kill_other_threads_np();
23648 #endif
23649
23650         return 0;
23651
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext conftest$ac_exeext
23657 if { (ac_try="$ac_link"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_link") 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } && {
23670          test -z "$ac_c_werror_flag" ||
23671          test ! -s conftest.err
23672        } && test -s conftest$ac_exeext &&
23673        $as_test_x conftest$ac_exeext; then
23674   ol_cv_pthread_lpthreads_lmach_lexc=yes
23675 else
23676   echo "$as_me: failed program was:" >&5
23677 sed 's/^/| /' conftest.$ac_ext >&5
23678
23679         ol_cv_pthread_lpthreads_lmach_lexc=no
23680 fi
23681
23682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23683       conftest$ac_exeext conftest.$ac_ext
23684 else
23685   cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h.  */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h.  */
23691
23692 /* pthread test headers */
23693 #include <pthread.h>
23694 #if HAVE_PTHREADS < 7
23695 #include <errno.h>
23696 #endif
23697 #ifndef NULL
23698 #define NULL (void*)0
23699 #endif
23700
23701 static void *task(p)
23702         void *p;
23703 {
23704         return (void *) (p == NULL);
23705 }
23706
23707
23708 int main(argc, argv)
23709         int argc;
23710         char **argv;
23711 {
23712
23713         /* pthread test function */
23714 #ifndef PTHREAD_CREATE_DETACHED
23715 #define PTHREAD_CREATE_DETACHED 1
23716 #endif
23717         pthread_t t;
23718         int status;
23719         int detach = PTHREAD_CREATE_DETACHED;
23720
23721 #if HAVE_PTHREADS > 4
23722         /* Final pthreads */
23723         pthread_attr_t attr;
23724
23725         status = pthread_attr_init(&attr);
23726         if( status ) return status;
23727
23728 #if HAVE_PTHREADS < 7
23729         status = pthread_attr_setdetachstate(&attr, &detach);
23730         if( status < 0 ) status = errno;
23731 #else
23732         status = pthread_attr_setdetachstate(&attr, detach);
23733 #endif
23734         if( status ) return status;
23735         status = pthread_create( &t, &attr, task, NULL );
23736 #if HAVE_PTHREADS < 7
23737         if( status < 0 ) status = errno;
23738 #endif
23739         if( status ) return status;
23740 #else
23741         /* Draft 4 pthreads */
23742         status = pthread_create( &t, pthread_attr_default, task, NULL );
23743         if( status ) return errno;
23744
23745         /* give thread a chance to complete */
23746         /* it should remain joinable and hence detachable */
23747         sleep( 1 );
23748
23749         status = pthread_detach( &t );
23750         if( status ) return errno;
23751 #endif
23752
23753 #ifdef HAVE_LINUX_THREADS
23754         pthread_kill_other_threads_np();
23755 #endif
23756
23757         return 0;
23758
23759 }
23760
23761 _ACEOF
23762 rm -f conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766   *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769   (eval "$ac_link") 2>&5
23770   ac_status=$?
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23773   { (case "(($ac_try" in
23774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775   *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778   (eval "$ac_try") 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); }; }; then
23782   ol_cv_pthread_lpthreads_lmach_lexc=yes
23783 else
23784   echo "$as_me: program exited with status $ac_status" >&5
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23787
23788 ( exit $ac_status )
23789 ol_cv_pthread_lpthreads_lmach_lexc=no
23790 fi
23791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23792 fi
23793
23794
23795
23796                 # restore the LIBS
23797                 LIBS="$ol_LIBS"
23798
23799 fi
23800 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23801 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23802
23803         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23804                 ol_link_pthreads="-lpthreads -lmach -lexc"
23805                 ol_link_threads=posix
23806         fi
23807 fi
23808
23809                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23810 if test "$ol_link_threads" = no ; then
23811         # try -lpthreads -lexc
23812         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23813 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23814 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23815   echo $ECHO_N "(cached) $ECHO_C" >&6
23816 else
23817
23818                 # save the flags
23819                 ol_LIBS="$LIBS"
23820                 LIBS="-lpthreads -lexc $LIBS"
23821
23822                 if test "$cross_compiling" = yes; then
23823   cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829
23830 /* pthread test headers */
23831 #include <pthread.h>
23832 #if HAVE_PTHREADS < 7
23833 #include <errno.h>
23834 #endif
23835 #ifndef NULL
23836 #define NULL (void*)0
23837 #endif
23838
23839 static void *task(p)
23840         void *p;
23841 {
23842         return (void *) (p == NULL);
23843 }
23844
23845 int
23846 main ()
23847 {
23848
23849         /* pthread test function */
23850 #ifndef PTHREAD_CREATE_DETACHED
23851 #define PTHREAD_CREATE_DETACHED 1
23852 #endif
23853         pthread_t t;
23854         int status;
23855         int detach = PTHREAD_CREATE_DETACHED;
23856
23857 #if HAVE_PTHREADS > 4
23858         /* Final pthreads */
23859         pthread_attr_t attr;
23860
23861         status = pthread_attr_init(&attr);
23862         if( status ) return status;
23863
23864 #if HAVE_PTHREADS < 7
23865         status = pthread_attr_setdetachstate(&attr, &detach);
23866         if( status < 0 ) status = errno;
23867 #else
23868         status = pthread_attr_setdetachstate(&attr, detach);
23869 #endif
23870         if( status ) return status;
23871         status = pthread_create( &t, &attr, task, NULL );
23872 #if HAVE_PTHREADS < 7
23873         if( status < 0 ) status = errno;
23874 #endif
23875         if( status ) return status;
23876 #else
23877         /* Draft 4 pthreads */
23878         status = pthread_create( &t, pthread_attr_default, task, NULL );
23879         if( status ) return errno;
23880
23881         /* give thread a chance to complete */
23882         /* it should remain joinable and hence detachable */
23883         sleep( 1 );
23884
23885         status = pthread_detach( &t );
23886         if( status ) return errno;
23887 #endif
23888
23889 #ifdef HAVE_LINUX_THREADS
23890         pthread_kill_other_threads_np();
23891 #endif
23892
23893         return 0;
23894
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 rm -f conftest.$ac_objext conftest$ac_exeext
23900 if { (ac_try="$ac_link"
23901 case "(($ac_try" in
23902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903   *) ac_try_echo=$ac_try;;
23904 esac
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906   (eval "$ac_link") 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } && {
23913          test -z "$ac_c_werror_flag" ||
23914          test ! -s conftest.err
23915        } && test -s conftest$ac_exeext &&
23916        $as_test_x conftest$ac_exeext; then
23917   ol_cv_pthread_lpthreads_lexc=yes
23918 else
23919   echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23921
23922         ol_cv_pthread_lpthreads_lexc=no
23923 fi
23924
23925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23926       conftest$ac_exeext conftest.$ac_ext
23927 else
23928   cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934
23935 /* pthread test headers */
23936 #include <pthread.h>
23937 #if HAVE_PTHREADS < 7
23938 #include <errno.h>
23939 #endif
23940 #ifndef NULL
23941 #define NULL (void*)0
23942 #endif
23943
23944 static void *task(p)
23945         void *p;
23946 {
23947         return (void *) (p == NULL);
23948 }
23949
23950
23951 int main(argc, argv)
23952         int argc;
23953         char **argv;
23954 {
23955
23956         /* pthread test function */
23957 #ifndef PTHREAD_CREATE_DETACHED
23958 #define PTHREAD_CREATE_DETACHED 1
23959 #endif
23960         pthread_t t;
23961         int status;
23962         int detach = PTHREAD_CREATE_DETACHED;
23963
23964 #if HAVE_PTHREADS > 4
23965         /* Final pthreads */
23966         pthread_attr_t attr;
23967
23968         status = pthread_attr_init(&attr);
23969         if( status ) return status;
23970
23971 #if HAVE_PTHREADS < 7
23972         status = pthread_attr_setdetachstate(&attr, &detach);
23973         if( status < 0 ) status = errno;
23974 #else
23975         status = pthread_attr_setdetachstate(&attr, detach);
23976 #endif
23977         if( status ) return status;
23978         status = pthread_create( &t, &attr, task, NULL );
23979 #if HAVE_PTHREADS < 7
23980         if( status < 0 ) status = errno;
23981 #endif
23982         if( status ) return status;
23983 #else
23984         /* Draft 4 pthreads */
23985         status = pthread_create( &t, pthread_attr_default, task, NULL );
23986         if( status ) return errno;
23987
23988         /* give thread a chance to complete */
23989         /* it should remain joinable and hence detachable */
23990         sleep( 1 );
23991
23992         status = pthread_detach( &t );
23993         if( status ) return errno;
23994 #endif
23995
23996 #ifdef HAVE_LINUX_THREADS
23997         pthread_kill_other_threads_np();
23998 #endif
23999
24000         return 0;
24001
24002 }
24003
24004 _ACEOF
24005 rm -f conftest$ac_exeext
24006 if { (ac_try="$ac_link"
24007 case "(($ac_try" in
24008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009   *) ac_try_echo=$ac_try;;
24010 esac
24011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012   (eval "$ac_link") 2>&5
24013   ac_status=$?
24014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24016   { (case "(($ac_try" in
24017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018   *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021   (eval "$ac_try") 2>&5
24022   ac_status=$?
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); }; }; then
24025   ol_cv_pthread_lpthreads_lexc=yes
24026 else
24027   echo "$as_me: program exited with status $ac_status" >&5
24028 echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031 ( exit $ac_status )
24032 ol_cv_pthread_lpthreads_lexc=no
24033 fi
24034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24035 fi
24036
24037
24038
24039                 # restore the LIBS
24040                 LIBS="$ol_LIBS"
24041
24042 fi
24043 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24044 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24045
24046         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24047                 ol_link_pthreads="-lpthreads -lexc"
24048                 ol_link_threads=posix
24049         fi
24050 fi
24051
24052
24053                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24054 if test "$ol_link_threads" = no ; then
24055         # try -lpthreads
24056         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24057 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24058 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24059   echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061
24062                 # save the flags
24063                 ol_LIBS="$LIBS"
24064                 LIBS="-lpthreads $LIBS"
24065
24066                 if test "$cross_compiling" = yes; then
24067   cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073
24074 /* pthread test headers */
24075 #include <pthread.h>
24076 #if HAVE_PTHREADS < 7
24077 #include <errno.h>
24078 #endif
24079 #ifndef NULL
24080 #define NULL (void*)0
24081 #endif
24082
24083 static void *task(p)
24084         void *p;
24085 {
24086         return (void *) (p == NULL);
24087 }
24088
24089 int
24090 main ()
24091 {
24092
24093         /* pthread test function */
24094 #ifndef PTHREAD_CREATE_DETACHED
24095 #define PTHREAD_CREATE_DETACHED 1
24096 #endif
24097         pthread_t t;
24098         int status;
24099         int detach = PTHREAD_CREATE_DETACHED;
24100
24101 #if HAVE_PTHREADS > 4
24102         /* Final pthreads */
24103         pthread_attr_t attr;
24104
24105         status = pthread_attr_init(&attr);
24106         if( status ) return status;
24107
24108 #if HAVE_PTHREADS < 7
24109         status = pthread_attr_setdetachstate(&attr, &detach);
24110         if( status < 0 ) status = errno;
24111 #else
24112         status = pthread_attr_setdetachstate(&attr, detach);
24113 #endif
24114         if( status ) return status;
24115         status = pthread_create( &t, &attr, task, NULL );
24116 #if HAVE_PTHREADS < 7
24117         if( status < 0 ) status = errno;
24118 #endif
24119         if( status ) return status;
24120 #else
24121         /* Draft 4 pthreads */
24122         status = pthread_create( &t, pthread_attr_default, task, NULL );
24123         if( status ) return errno;
24124
24125         /* give thread a chance to complete */
24126         /* it should remain joinable and hence detachable */
24127         sleep( 1 );
24128
24129         status = pthread_detach( &t );
24130         if( status ) return errno;
24131 #endif
24132
24133 #ifdef HAVE_LINUX_THREADS
24134         pthread_kill_other_threads_np();
24135 #endif
24136
24137         return 0;
24138
24139   ;
24140   return 0;
24141 }
24142 _ACEOF
24143 rm -f conftest.$ac_objext conftest$ac_exeext
24144 if { (ac_try="$ac_link"
24145 case "(($ac_try" in
24146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147   *) ac_try_echo=$ac_try;;
24148 esac
24149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24150   (eval "$ac_link") 2>conftest.er1
24151   ac_status=$?
24152   grep -v '^ *+' conftest.er1 >conftest.err
24153   rm -f conftest.er1
24154   cat conftest.err >&5
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); } && {
24157          test -z "$ac_c_werror_flag" ||
24158          test ! -s conftest.err
24159        } && test -s conftest$ac_exeext &&
24160        $as_test_x conftest$ac_exeext; then
24161   ol_cv_pthread_lib_lpthreads=yes
24162 else
24163   echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24165
24166         ol_cv_pthread_lib_lpthreads=no
24167 fi
24168
24169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24170       conftest$ac_exeext conftest.$ac_ext
24171 else
24172   cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h.  */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h.  */
24178
24179 /* pthread test headers */
24180 #include <pthread.h>
24181 #if HAVE_PTHREADS < 7
24182 #include <errno.h>
24183 #endif
24184 #ifndef NULL
24185 #define NULL (void*)0
24186 #endif
24187
24188 static void *task(p)
24189         void *p;
24190 {
24191         return (void *) (p == NULL);
24192 }
24193
24194
24195 int main(argc, argv)
24196         int argc;
24197         char **argv;
24198 {
24199
24200         /* pthread test function */
24201 #ifndef PTHREAD_CREATE_DETACHED
24202 #define PTHREAD_CREATE_DETACHED 1
24203 #endif
24204         pthread_t t;
24205         int status;
24206         int detach = PTHREAD_CREATE_DETACHED;
24207
24208 #if HAVE_PTHREADS > 4
24209         /* Final pthreads */
24210         pthread_attr_t attr;
24211
24212         status = pthread_attr_init(&attr);
24213         if( status ) return status;
24214
24215 #if HAVE_PTHREADS < 7
24216         status = pthread_attr_setdetachstate(&attr, &detach);
24217         if( status < 0 ) status = errno;
24218 #else
24219         status = pthread_attr_setdetachstate(&attr, detach);
24220 #endif
24221         if( status ) return status;
24222         status = pthread_create( &t, &attr, task, NULL );
24223 #if HAVE_PTHREADS < 7
24224         if( status < 0 ) status = errno;
24225 #endif
24226         if( status ) return status;
24227 #else
24228         /* Draft 4 pthreads */
24229         status = pthread_create( &t, pthread_attr_default, task, NULL );
24230         if( status ) return errno;
24231
24232         /* give thread a chance to complete */
24233         /* it should remain joinable and hence detachable */
24234         sleep( 1 );
24235
24236         status = pthread_detach( &t );
24237         if( status ) return errno;
24238 #endif
24239
24240 #ifdef HAVE_LINUX_THREADS
24241         pthread_kill_other_threads_np();
24242 #endif
24243
24244         return 0;
24245
24246 }
24247
24248 _ACEOF
24249 rm -f conftest$ac_exeext
24250 if { (ac_try="$ac_link"
24251 case "(($ac_try" in
24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253   *) ac_try_echo=$ac_try;;
24254 esac
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256   (eval "$ac_link") 2>&5
24257   ac_status=$?
24258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24260   { (case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265   (eval "$ac_try") 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; }; then
24269   ol_cv_pthread_lib_lpthreads=yes
24270 else
24271   echo "$as_me: program exited with status $ac_status" >&5
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275 ( exit $ac_status )
24276 ol_cv_pthread_lib_lpthreads=no
24277 fi
24278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 fi
24280
24281
24282
24283                 # restore the LIBS
24284                 LIBS="$ol_LIBS"
24285
24286 fi
24287 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24288 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24289
24290         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24291                 ol_link_pthreads="-lpthreads"
24292                 ol_link_threads=posix
24293         fi
24294 fi
24295
24296
24297                 if test $ol_link_threads != no ; then
24298                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24299
24300                                                 save_CPPFLAGS="$CPPFLAGS"
24301                         save_LIBS="$LIBS"
24302                         LIBS="$LTHREAD_LIBS $LIBS"
24303
24304
24305
24306
24307 for ac_func in sched_yield pthread_yield thr_yield
24308 do
24309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24313   echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315   cat >conftest.$ac_ext <<_ACEOF
24316 /* confdefs.h.  */
24317 _ACEOF
24318 cat confdefs.h >>conftest.$ac_ext
24319 cat >>conftest.$ac_ext <<_ACEOF
24320 /* end confdefs.h.  */
24321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24323 #define $ac_func innocuous_$ac_func
24324
24325 /* System header to define __stub macros and hopefully few prototypes,
24326     which can conflict with char $ac_func (); below.
24327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24328     <limits.h> exists even on freestanding compilers.  */
24329
24330 #ifdef __STDC__
24331 # include <limits.h>
24332 #else
24333 # include <assert.h>
24334 #endif
24335
24336 #undef $ac_func
24337
24338 /* Override any GCC internal prototype to avoid an error.
24339    Use char because int might match the return type of a GCC
24340    builtin and then its argument prototype would still apply.  */
24341 #ifdef __cplusplus
24342 extern "C"
24343 #endif
24344 char $ac_func ();
24345 /* The GNU C library defines this for functions which it implements
24346     to always fail with ENOSYS.  Some functions are actually named
24347     something starting with __ and the normal name is an alias.  */
24348 #if defined __stub_$ac_func || defined __stub___$ac_func
24349 choke me
24350 #endif
24351
24352 int
24353 main ()
24354 {
24355 return $ac_func ();
24356   ;
24357   return 0;
24358 }
24359 _ACEOF
24360 rm -f conftest.$ac_objext conftest$ac_exeext
24361 if { (ac_try="$ac_link"
24362 case "(($ac_try" in
24363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364   *) ac_try_echo=$ac_try;;
24365 esac
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367   (eval "$ac_link") 2>conftest.er1
24368   ac_status=$?
24369   grep -v '^ *+' conftest.er1 >conftest.err
24370   rm -f conftest.er1
24371   cat conftest.err >&5
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); } && {
24374          test -z "$ac_c_werror_flag" ||
24375          test ! -s conftest.err
24376        } && test -s conftest$ac_exeext &&
24377        $as_test_x conftest$ac_exeext; then
24378   eval "$as_ac_var=yes"
24379 else
24380   echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383         eval "$as_ac_var=no"
24384 fi
24385
24386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24387       conftest$ac_exeext conftest.$ac_ext
24388 fi
24389 ac_res=`eval echo '${'$as_ac_var'}'`
24390                { echo "$as_me:$LINENO: result: $ac_res" >&5
24391 echo "${ECHO_T}$ac_res" >&6; }
24392 if test `eval echo '${'$as_ac_var'}'` = yes; then
24393   cat >>confdefs.h <<_ACEOF
24394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24395 _ACEOF
24396
24397 fi
24398 done
24399
24400
24401                         if test $ac_cv_func_sched_yield = no &&
24402                            test $ac_cv_func_pthread_yield = no &&
24403                            test $ac_cv_func_thr_yield = no ; then
24404                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24405 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24406 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24407   echo $ECHO_N "(cached) $ECHO_C" >&6
24408 else
24409   ac_check_lib_save_LIBS=$LIBS
24410 LIBS="-lrt  $LIBS"
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417
24418 /* Override any GCC internal prototype to avoid an error.
24419    Use char because int might match the return type of a GCC
24420    builtin and then its argument prototype would still apply.  */
24421 #ifdef __cplusplus
24422 extern "C"
24423 #endif
24424 char sched_yield ();
24425 int
24426 main ()
24427 {
24428 return sched_yield ();
24429   ;
24430   return 0;
24431 }
24432 _ACEOF
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437   *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440   (eval "$ac_link") 2>conftest.er1
24441   ac_status=$?
24442   grep -v '^ *+' conftest.er1 >conftest.err
24443   rm -f conftest.er1
24444   cat conftest.err >&5
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); } && {
24447          test -z "$ac_c_werror_flag" ||
24448          test ! -s conftest.err
24449        } && test -s conftest$ac_exeext &&
24450        $as_test_x conftest$ac_exeext; then
24451   ac_cv_lib_rt_sched_yield=yes
24452 else
24453   echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456         ac_cv_lib_rt_sched_yield=no
24457 fi
24458
24459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24460       conftest$ac_exeext conftest.$ac_ext
24461 LIBS=$ac_check_lib_save_LIBS
24462 fi
24463 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24464 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24465 if test $ac_cv_lib_rt_sched_yield = yes; then
24466   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24467
24468 cat >>confdefs.h <<\_ACEOF
24469 #define HAVE_SCHED_YIELD 1
24470 _ACEOF
24471
24472                                         ac_cv_func_sched_yield=yes
24473 else
24474   ac_cv_func_sched_yield=no
24475 fi
24476
24477                         fi
24478                         if test $ac_cv_func_sched_yield = no &&
24479                            test $ac_cv_func_pthread_yield = no &&
24480                            test "$ac_cv_func_thr_yield" = no ; then
24481                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24482 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24483                         fi
24484
24485
24486 for ac_func in pthread_kill
24487 do
24488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24492   echo $ECHO_N "(cached) $ECHO_C" >&6
24493 else
24494   cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24502 #define $ac_func innocuous_$ac_func
24503
24504 /* System header to define __stub macros and hopefully few prototypes,
24505     which can conflict with char $ac_func (); below.
24506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507     <limits.h> exists even on freestanding compilers.  */
24508
24509 #ifdef __STDC__
24510 # include <limits.h>
24511 #else
24512 # include <assert.h>
24513 #endif
24514
24515 #undef $ac_func
24516
24517 /* Override any GCC internal prototype to avoid an error.
24518    Use char because int might match the return type of a GCC
24519    builtin and then its argument prototype would still apply.  */
24520 #ifdef __cplusplus
24521 extern "C"
24522 #endif
24523 char $ac_func ();
24524 /* The GNU C library defines this for functions which it implements
24525     to always fail with ENOSYS.  Some functions are actually named
24526     something starting with __ and the normal name is an alias.  */
24527 #if defined __stub_$ac_func || defined __stub___$ac_func
24528 choke me
24529 #endif
24530
24531 int
24532 main ()
24533 {
24534 return $ac_func ();
24535   ;
24536   return 0;
24537 }
24538 _ACEOF
24539 rm -f conftest.$ac_objext conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543   *) ac_try_echo=$ac_try;;
24544 esac
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546   (eval "$ac_link") 2>conftest.er1
24547   ac_status=$?
24548   grep -v '^ *+' conftest.er1 >conftest.err
24549   rm -f conftest.er1
24550   cat conftest.err >&5
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); } && {
24553          test -z "$ac_c_werror_flag" ||
24554          test ! -s conftest.err
24555        } && test -s conftest$ac_exeext &&
24556        $as_test_x conftest$ac_exeext; then
24557   eval "$as_ac_var=yes"
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         eval "$as_ac_var=no"
24563 fi
24564
24565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24566       conftest$ac_exeext conftest.$ac_ext
24567 fi
24568 ac_res=`eval echo '${'$as_ac_var'}'`
24569                { echo "$as_me:$LINENO: result: $ac_res" >&5
24570 echo "${ECHO_T}$ac_res" >&6; }
24571 if test `eval echo '${'$as_ac_var'}'` = yes; then
24572   cat >>confdefs.h <<_ACEOF
24573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24574 _ACEOF
24575
24576 fi
24577 done
24578
24579
24580                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24581 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24582 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24583   echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585
24586                                                                 cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h.  */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h.  */
24592
24593 #include <pthread.h>
24594 pthread_rwlock_t rwlock;
24595
24596 int
24597 main ()
24598 {
24599 pthread_rwlock_destroy(&rwlock);
24600   ;
24601   return 0;
24602 }
24603 _ACEOF
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (ac_try="$ac_link"
24606 case "(($ac_try" in
24607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608   *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611   (eval "$ac_link") 2>conftest.er1
24612   ac_status=$?
24613   grep -v '^ *+' conftest.er1 >conftest.err
24614   rm -f conftest.er1
24615   cat conftest.err >&5
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); } && {
24618          test -z "$ac_c_werror_flag" ||
24619          test ! -s conftest.err
24620        } && test -s conftest$ac_exeext &&
24621        $as_test_x conftest$ac_exeext; then
24622   ol_cv_func_pthread_rwlock_destroy=yes
24623 else
24624   echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24626
24627         ol_cv_func_pthread_rwlock_destroy=no
24628 fi
24629
24630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24631       conftest$ac_exeext conftest.$ac_ext
24632
24633 fi
24634 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24635 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24636                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24637
24638 cat >>confdefs.h <<\_ACEOF
24639 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24640 _ACEOF
24641
24642                         fi
24643
24644                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24645 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24646 if test "${ol_cv_func_pthread_detach+set}" = set; then
24647   echo $ECHO_N "(cached) $ECHO_C" >&6
24648 else
24649
24650                                                                 cat >conftest.$ac_ext <<_ACEOF
24651 /* confdefs.h.  */
24652 _ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h.  */
24656
24657 #include <pthread.h>
24658 #ifndef NULL
24659 #define NULL (void*)0
24660 #endif
24661
24662 int
24663 main ()
24664 {
24665 pthread_detach(NULL);
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest.$ac_objext conftest$ac_exeext
24671 if { (ac_try="$ac_link"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677   (eval "$ac_link") 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } && {
24684          test -z "$ac_c_werror_flag" ||
24685          test ! -s conftest.err
24686        } && test -s conftest$ac_exeext &&
24687        $as_test_x conftest$ac_exeext; then
24688   ol_cv_func_pthread_detach=yes
24689 else
24690   echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24692
24693         ol_cv_func_pthread_detach=no
24694 fi
24695
24696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24697       conftest$ac_exeext conftest.$ac_ext
24698
24699 fi
24700 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24701 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24702
24703                         if test $ol_cv_func_pthread_detach = no ; then
24704                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24705 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24706    { (exit 1); exit 1; }; }
24707                         fi
24708
24709
24710 cat >>confdefs.h <<\_ACEOF
24711 #define HAVE_PTHREAD_DETACH 1
24712 _ACEOF
24713
24714
24715
24716
24717
24718
24719 for ac_func in \
24720                                 pthread_setconcurrency \
24721                                 pthread_getconcurrency \
24722                                 thr_setconcurrency \
24723                                 thr_getconcurrency \
24724
24725 do
24726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24730   echo $ECHO_N "(cached) $ECHO_C" >&6
24731 else
24732   cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h.  */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h.  */
24738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24740 #define $ac_func innocuous_$ac_func
24741
24742 /* System header to define __stub macros and hopefully few prototypes,
24743     which can conflict with char $ac_func (); below.
24744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24745     <limits.h> exists even on freestanding compilers.  */
24746
24747 #ifdef __STDC__
24748 # include <limits.h>
24749 #else
24750 # include <assert.h>
24751 #endif
24752
24753 #undef $ac_func
24754
24755 /* Override any GCC internal prototype to avoid an error.
24756    Use char because int might match the return type of a GCC
24757    builtin and then its argument prototype would still apply.  */
24758 #ifdef __cplusplus
24759 extern "C"
24760 #endif
24761 char $ac_func ();
24762 /* The GNU C library defines this for functions which it implements
24763     to always fail with ENOSYS.  Some functions are actually named
24764     something starting with __ and the normal name is an alias.  */
24765 #if defined __stub_$ac_func || defined __stub___$ac_func
24766 choke me
24767 #endif
24768
24769 int
24770 main ()
24771 {
24772 return $ac_func ();
24773   ;
24774   return 0;
24775 }
24776 _ACEOF
24777 rm -f conftest.$ac_objext conftest$ac_exeext
24778 if { (ac_try="$ac_link"
24779 case "(($ac_try" in
24780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781   *) ac_try_echo=$ac_try;;
24782 esac
24783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24784   (eval "$ac_link") 2>conftest.er1
24785   ac_status=$?
24786   grep -v '^ *+' conftest.er1 >conftest.err
24787   rm -f conftest.er1
24788   cat conftest.err >&5
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } && {
24791          test -z "$ac_c_werror_flag" ||
24792          test ! -s conftest.err
24793        } && test -s conftest$ac_exeext &&
24794        $as_test_x conftest$ac_exeext; then
24795   eval "$as_ac_var=yes"
24796 else
24797   echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24799
24800         eval "$as_ac_var=no"
24801 fi
24802
24803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24804       conftest$ac_exeext conftest.$ac_ext
24805 fi
24806 ac_res=`eval echo '${'$as_ac_var'}'`
24807                { echo "$as_me:$LINENO: result: $ac_res" >&5
24808 echo "${ECHO_T}$ac_res" >&6; }
24809 if test `eval echo '${'$as_ac_var'}'` = yes; then
24810   cat >>confdefs.h <<_ACEOF
24811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24812 _ACEOF
24813
24814 fi
24815 done
24816
24817
24818
24819
24820 for ac_func in pthread_kill_other_threads_np
24821 do
24822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828   cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h.  */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h.  */
24834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24836 #define $ac_func innocuous_$ac_func
24837
24838 /* System header to define __stub macros and hopefully few prototypes,
24839     which can conflict with char $ac_func (); below.
24840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24841     <limits.h> exists even on freestanding compilers.  */
24842
24843 #ifdef __STDC__
24844 # include <limits.h>
24845 #else
24846 # include <assert.h>
24847 #endif
24848
24849 #undef $ac_func
24850
24851 /* Override any GCC internal prototype to avoid an error.
24852    Use char because int might match the return type of a GCC
24853    builtin and then its argument prototype would still apply.  */
24854 #ifdef __cplusplus
24855 extern "C"
24856 #endif
24857 char $ac_func ();
24858 /* The GNU C library defines this for functions which it implements
24859     to always fail with ENOSYS.  Some functions are actually named
24860     something starting with __ and the normal name is an alias.  */
24861 #if defined __stub_$ac_func || defined __stub___$ac_func
24862 choke me
24863 #endif
24864
24865 int
24866 main ()
24867 {
24868 return $ac_func ();
24869   ;
24870   return 0;
24871 }
24872 _ACEOF
24873 rm -f conftest.$ac_objext conftest$ac_exeext
24874 if { (ac_try="$ac_link"
24875 case "(($ac_try" in
24876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877   *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880   (eval "$ac_link") 2>conftest.er1
24881   ac_status=$?
24882   grep -v '^ *+' conftest.er1 >conftest.err
24883   rm -f conftest.er1
24884   cat conftest.err >&5
24885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886   (exit $ac_status); } && {
24887          test -z "$ac_c_werror_flag" ||
24888          test ! -s conftest.err
24889        } && test -s conftest$ac_exeext &&
24890        $as_test_x conftest$ac_exeext; then
24891   eval "$as_ac_var=yes"
24892 else
24893   echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24895
24896         eval "$as_ac_var=no"
24897 fi
24898
24899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24900       conftest$ac_exeext conftest.$ac_ext
24901 fi
24902 ac_res=`eval echo '${'$as_ac_var'}'`
24903                { echo "$as_me:$LINENO: result: $ac_res" >&5
24904 echo "${ECHO_T}$ac_res" >&6; }
24905 if test `eval echo '${'$as_ac_var'}'` = yes; then
24906   cat >>confdefs.h <<_ACEOF
24907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24908 _ACEOF
24909
24910 fi
24911 done
24912
24913         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24914 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24915 if test "${ol_cv_sys_linux_threads+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24919 fi
24920 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24921 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24922
24923
24924
24925
24926         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24927 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24928 if test "${ol_cv_linux_threads+set}" = set; then
24929   echo $ECHO_N "(cached) $ECHO_C" >&6
24930 else
24931
24932                 if test $ol_cv_header_linux_threads = yes &&
24933                    test $ol_cv_sys_linux_threads = yes; then
24934                         ol_cv_linux_threads=yes
24935                 elif test $ol_cv_header_linux_threads = no &&
24936                      test $ol_cv_sys_linux_threads = no; then
24937                         ol_cv_linux_threads=no
24938                 else
24939                         ol_cv_linux_threads=error
24940                 fi
24941
24942 fi
24943 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24944 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24945
24946
24947                         if test $ol_cv_linux_threads = error; then
24948                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24949 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24950    { (exit 1); exit 1; }; };
24951                         fi
24952
24953                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24954 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24955 if test "${ol_cv_pthread_create_works+set}" = set; then
24956   echo $ECHO_N "(cached) $ECHO_C" >&6
24957 else
24958
24959                         if test "$cross_compiling" = yes; then
24960                                 ol_cv_pthread_create_works=yes
24961 else
24962   cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968
24969 /* pthread test headers */
24970 #include <pthread.h>
24971 #if HAVE_PTHREADS < 7
24972 #include <errno.h>
24973 #endif
24974 #ifndef NULL
24975 #define NULL (void*)0
24976 #endif
24977
24978 static void *task(p)
24979         void *p;
24980 {
24981         return (void *) (p == NULL);
24982 }
24983
24984
24985 int main(argc, argv)
24986         int argc;
24987         char **argv;
24988 {
24989
24990         /* pthread test function */
24991 #ifndef PTHREAD_CREATE_DETACHED
24992 #define PTHREAD_CREATE_DETACHED 1
24993 #endif
24994         pthread_t t;
24995         int status;
24996         int detach = PTHREAD_CREATE_DETACHED;
24997
24998 #if HAVE_PTHREADS > 4
24999         /* Final pthreads */
25000         pthread_attr_t attr;
25001
25002         status = pthread_attr_init(&attr);
25003         if( status ) return status;
25004
25005 #if HAVE_PTHREADS < 7
25006         status = pthread_attr_setdetachstate(&attr, &detach);
25007         if( status < 0 ) status = errno;
25008 #else
25009         status = pthread_attr_setdetachstate(&attr, detach);
25010 #endif
25011         if( status ) return status;
25012         status = pthread_create( &t, &attr, task, NULL );
25013 #if HAVE_PTHREADS < 7
25014         if( status < 0 ) status = errno;
25015 #endif
25016         if( status ) return status;
25017 #else
25018         /* Draft 4 pthreads */
25019         status = pthread_create( &t, pthread_attr_default, task, NULL );
25020         if( status ) return errno;
25021
25022         /* give thread a chance to complete */
25023         /* it should remain joinable and hence detachable */
25024         sleep( 1 );
25025
25026         status = pthread_detach( &t );
25027         if( status ) return errno;
25028 #endif
25029
25030 #ifdef HAVE_LINUX_THREADS
25031         pthread_kill_other_threads_np();
25032 #endif
25033
25034         return 0;
25035
25036 }
25037
25038 _ACEOF
25039 rm -f conftest$ac_exeext
25040 if { (ac_try="$ac_link"
25041 case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_link") 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25050   { (case "(($ac_try" in
25051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052   *) ac_try_echo=$ac_try;;
25053 esac
25054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25055   (eval "$ac_try") 2>&5
25056   ac_status=$?
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); }; }; then
25059   ol_cv_pthread_create_works=yes
25060 else
25061   echo "$as_me: program exited with status $ac_status" >&5
25062 echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25064
25065 ( exit $ac_status )
25066 ol_cv_pthread_create_works=no
25067 fi
25068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25069 fi
25070
25071
25072 fi
25073 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25074 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25075
25076                         if test $ol_cv_pthread_create_works = no ; then
25077                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25078 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25079    { (exit 1); exit 1; }; }
25080                         fi
25081
25082                         ol_replace_broken_yield=no
25083
25084                         if test $ol_replace_broken_yield = yes ; then
25085
25086 cat >>confdefs.h <<\_ACEOF
25087 #define REPLACE_BROKEN_YIELD 1
25088 _ACEOF
25089
25090                         fi
25091
25092                                                 if test $ol_with_yielding_select = auto ; then
25093                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25094 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25095 if test "${ol_cv_pthread_select_yields+set}" = set; then
25096   echo $ECHO_N "(cached) $ECHO_C" >&6
25097 else
25098
25099                                 if test "$cross_compiling" = yes; then
25100   ol_cv_pthread_select_yields=cross
25101 else
25102   cat >conftest.$ac_ext <<_ACEOF
25103 /* confdefs.h.  */
25104 _ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h.  */
25108
25109 #include <sys/types.h>
25110 #include <sys/time.h>
25111 #include <unistd.h>
25112 #include <pthread.h>
25113 #ifndef NULL
25114 #define NULL (void*) 0
25115 #endif
25116
25117 static int fildes[2];
25118
25119 static void *task(p)
25120         void *p;
25121 {
25122         int i;
25123         struct timeval tv;
25124
25125         fd_set rfds;
25126
25127         tv.tv_sec=10;
25128         tv.tv_usec=0;
25129
25130         FD_ZERO(&rfds);
25131         FD_SET(fildes[0], &rfds);
25132
25133         /* we're not interested in any fds */
25134         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25135
25136         if(i < 0) {
25137                 perror("select");
25138                 exit(10);
25139         }
25140
25141         exit(0); /* if we exit here, the select blocked the whole process */
25142 }
25143
25144 int main(argc, argv)
25145         int argc;
25146         char **argv;
25147 {
25148         pthread_t t;
25149
25150         /* create a pipe to select */
25151         if(pipe(&fildes[0])) {
25152                 perror("select");
25153                 exit(1);
25154         }
25155
25156 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25157         (void) pthread_setconcurrency(2);
25158 #else
25159 #ifdef HAVE_THR_SETCONCURRENCY
25160         /* Set Solaris LWP concurrency to 2 */
25161         thr_setconcurrency(2);
25162 #endif
25163 #endif
25164
25165 #if HAVE_PTHREADS < 6
25166         pthread_create(&t, pthread_attr_default, task, NULL);
25167 #else
25168         pthread_create(&t, NULL, task, NULL);
25169 #endif
25170
25171         /* make sure task runs first */
25172 #ifdef HAVE_THR_YIELD
25173         thr_yield();
25174 #elif defined( HAVE_SCHED_YIELD )
25175         sched_yield();
25176 #elif defined( HAVE_PTHREAD_YIELD )
25177         pthread_yield();
25178 #endif
25179
25180         exit(2);
25181 }
25182 _ACEOF
25183 rm -f conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187   *) ac_try_echo=$ac_try;;
25188 esac
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190   (eval "$ac_link") 2>&5
25191   ac_status=$?
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25194   { (case "(($ac_try" in
25195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196   *) ac_try_echo=$ac_try;;
25197 esac
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199   (eval "$ac_try") 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; }; then
25203   ol_cv_pthread_select_yields=no
25204 else
25205   echo "$as_me: program exited with status $ac_status" >&5
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25208
25209 ( exit $ac_status )
25210 ol_cv_pthread_select_yields=yes
25211 fi
25212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25213 fi
25214
25215
25216 fi
25217 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25218 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25219
25220                                 if test $ol_cv_pthread_select_yields = cross ; then
25221                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25222 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25223    { (exit 1); exit 1; }; }
25224                                 fi
25225
25226                                 if test $ol_cv_pthread_select_yields = yes ; then
25227                                         ol_with_yielding_select=yes
25228                                 fi
25229                         fi
25230
25231                                                 CPPFLAGS="$save_CPPFLAGS"
25232                         LIBS="$save_LIBS"
25233                 else
25234                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25235 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25236    { (exit 1); exit 1; }; }
25237                 fi
25238         fi
25239
25240         if test $ol_with_threads = posix ; then
25241                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25242 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25243    { (exit 1); exit 1; }; }
25244         fi
25245         ;;
25246 esac
25247
25248 case $ol_with_threads in auto | yes | mach)
25249
25250
25251
25252 for ac_header in mach/cthreads.h cthreads.h
25253 do
25254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25259   echo $ECHO_N "(cached) $ECHO_C" >&6
25260 fi
25261 ac_res=`eval echo '${'$as_ac_Header'}'`
25262                { echo "$as_me:$LINENO: result: $ac_res" >&5
25263 echo "${ECHO_T}$ac_res" >&6; }
25264 else
25265   # Is the header compilable?
25266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25268 cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h.  */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h.  */
25274 $ac_includes_default
25275 #include <$ac_header>
25276 _ACEOF
25277 rm -f conftest.$ac_objext
25278 if { (ac_try="$ac_compile"
25279 case "(($ac_try" in
25280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281   *) ac_try_echo=$ac_try;;
25282 esac
25283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25284   (eval "$ac_compile") 2>conftest.er1
25285   ac_status=$?
25286   grep -v '^ *+' conftest.er1 >conftest.err
25287   rm -f conftest.er1
25288   cat conftest.err >&5
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); } && {
25291          test -z "$ac_c_werror_flag" ||
25292          test ! -s conftest.err
25293        } && test -s conftest.$ac_objext; then
25294   ac_header_compiler=yes
25295 else
25296   echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299         ac_header_compiler=no
25300 fi
25301
25302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25304 echo "${ECHO_T}$ac_header_compiler" >&6; }
25305
25306 # Is the header present?
25307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25309 cat >conftest.$ac_ext <<_ACEOF
25310 /* confdefs.h.  */
25311 _ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h.  */
25315 #include <$ac_header>
25316 _ACEOF
25317 if { (ac_try="$ac_cpp conftest.$ac_ext"
25318 case "(($ac_try" in
25319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25320   *) ac_try_echo=$ac_try;;
25321 esac
25322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25324   ac_status=$?
25325   grep -v '^ *+' conftest.er1 >conftest.err
25326   rm -f conftest.er1
25327   cat conftest.err >&5
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); } >/dev/null && {
25330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25331          test ! -s conftest.err
25332        }; then
25333   ac_header_preproc=yes
25334 else
25335   echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338   ac_header_preproc=no
25339 fi
25340
25341 rm -f conftest.err conftest.$ac_ext
25342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25343 echo "${ECHO_T}$ac_header_preproc" >&6; }
25344
25345 # So?  What about this header?
25346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25347   yes:no: )
25348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25352     ac_header_preproc=yes
25353     ;;
25354   no:yes:* )
25355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25367     ( cat <<\_ASBOX
25368 ## --------------------------------------------- ##
25369 ## Report this to <http://www.openldap.org/its/> ##
25370 ## --------------------------------------------- ##
25371 _ASBOX
25372      ) | sed "s/^/$as_me: WARNING:     /" >&2
25373     ;;
25374 esac
25375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25378   echo $ECHO_N "(cached) $ECHO_C" >&6
25379 else
25380   eval "$as_ac_Header=\$ac_header_preproc"
25381 fi
25382 ac_res=`eval echo '${'$as_ac_Header'}'`
25383                { echo "$as_me:$LINENO: result: $ac_res" >&5
25384 echo "${ECHO_T}$ac_res" >&6; }
25385
25386 fi
25387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25388   cat >>confdefs.h <<_ACEOF
25389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25390 _ACEOF
25391
25392 fi
25393
25394 done
25395
25396         if test $ac_cv_header_mach_cthreads_h = yes ; then
25397                 ol_with_threads=found
25398
25399                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25400 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25401 if test "${ac_cv_func_cthread_fork+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   cat >conftest.$ac_ext <<_ACEOF
25405 /* confdefs.h.  */
25406 _ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h.  */
25410 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25412 #define cthread_fork innocuous_cthread_fork
25413
25414 /* System header to define __stub macros and hopefully few prototypes,
25415     which can conflict with char cthread_fork (); below.
25416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25417     <limits.h> exists even on freestanding compilers.  */
25418
25419 #ifdef __STDC__
25420 # include <limits.h>
25421 #else
25422 # include <assert.h>
25423 #endif
25424
25425 #undef cthread_fork
25426
25427 /* Override any GCC internal prototype to avoid an error.
25428    Use char because int might match the return type of a GCC
25429    builtin and then its argument prototype would still apply.  */
25430 #ifdef __cplusplus
25431 extern "C"
25432 #endif
25433 char cthread_fork ();
25434 /* The GNU C library defines this for functions which it implements
25435     to always fail with ENOSYS.  Some functions are actually named
25436     something starting with __ and the normal name is an alias.  */
25437 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25438 choke me
25439 #endif
25440
25441 int
25442 main ()
25443 {
25444 return cthread_fork ();
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 rm -f conftest.$ac_objext conftest$ac_exeext
25450 if { (ac_try="$ac_link"
25451 case "(($ac_try" in
25452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453   *) ac_try_echo=$ac_try;;
25454 esac
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456   (eval "$ac_link") 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } && {
25463          test -z "$ac_c_werror_flag" ||
25464          test ! -s conftest.err
25465        } && test -s conftest$ac_exeext &&
25466        $as_test_x conftest$ac_exeext; then
25467   ac_cv_func_cthread_fork=yes
25468 else
25469   echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472         ac_cv_func_cthread_fork=no
25473 fi
25474
25475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25476       conftest$ac_exeext conftest.$ac_ext
25477 fi
25478 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25479 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25480 if test $ac_cv_func_cthread_fork = yes; then
25481   ol_link_threads=yes
25482 fi
25483
25484
25485                 if test $ol_link_threads = no ; then
25486                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25487 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25488 if test "${ol_cv_cthread_all_load+set}" = set; then
25489   echo $ECHO_N "(cached) $ECHO_C" >&6
25490 else
25491
25492                                                                 save_LIBS="$LIBS"
25493                                 LIBS="-all_load $LIBS"
25494                                 cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h.  */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h.  */
25500 #include <mach/cthreads.h>
25501 int
25502 main ()
25503 {
25504
25505                                         cthread_fork((void *)0, (void *)0);
25506
25507   ;
25508   return 0;
25509 }
25510 _ACEOF
25511 rm -f conftest.$ac_objext conftest$ac_exeext
25512 if { (ac_try="$ac_link"
25513 case "(($ac_try" in
25514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25515   *) ac_try_echo=$ac_try;;
25516 esac
25517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25518   (eval "$ac_link") 2>conftest.er1
25519   ac_status=$?
25520   grep -v '^ *+' conftest.er1 >conftest.err
25521   rm -f conftest.er1
25522   cat conftest.err >&5
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } && {
25525          test -z "$ac_c_werror_flag" ||
25526          test ! -s conftest.err
25527        } && test -s conftest$ac_exeext &&
25528        $as_test_x conftest$ac_exeext; then
25529   ol_cv_cthread_all_load=yes
25530 else
25531   echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25533
25534         ol_cv_cthread_all_load=no
25535 fi
25536
25537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25538       conftest$ac_exeext conftest.$ac_ext
25539                                                                 LIBS="$save_LIBS"
25540
25541 fi
25542 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25543 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25544
25545                         if test $ol_cv_cthread_all_load = yes ; then
25546                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25547                                 ol_link_threads=mach
25548                                 ol_with_threads=found
25549                         fi
25550                 fi
25551
25552         elif test $ac_cv_header_cthreads_h = yes ; then
25553
25554                 ol_with_threads=found
25555
25556                                 save_LIBS="$LIBS"
25557                 LIBS="$LIBS -lthreads"
25558                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25559 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25560 if test "${ac_cv_func_cthread_fork+set}" = set; then
25561   echo $ECHO_N "(cached) $ECHO_C" >&6
25562 else
25563   cat >conftest.$ac_ext <<_ACEOF
25564 /* confdefs.h.  */
25565 _ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h.  */
25569 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25571 #define cthread_fork innocuous_cthread_fork
25572
25573 /* System header to define __stub macros and hopefully few prototypes,
25574     which can conflict with char cthread_fork (); below.
25575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25576     <limits.h> exists even on freestanding compilers.  */
25577
25578 #ifdef __STDC__
25579 # include <limits.h>
25580 #else
25581 # include <assert.h>
25582 #endif
25583
25584 #undef cthread_fork
25585
25586 /* Override any GCC internal prototype to avoid an error.
25587    Use char because int might match the return type of a GCC
25588    builtin and then its argument prototype would still apply.  */
25589 #ifdef __cplusplus
25590 extern "C"
25591 #endif
25592 char cthread_fork ();
25593 /* The GNU C library defines this for functions which it implements
25594     to always fail with ENOSYS.  Some functions are actually named
25595     something starting with __ and the normal name is an alias.  */
25596 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25597 choke me
25598 #endif
25599
25600 int
25601 main ()
25602 {
25603 return cthread_fork ();
25604   ;
25605   return 0;
25606 }
25607 _ACEOF
25608 rm -f conftest.$ac_objext conftest$ac_exeext
25609 if { (ac_try="$ac_link"
25610 case "(($ac_try" in
25611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612   *) ac_try_echo=$ac_try;;
25613 esac
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615   (eval "$ac_link") 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } && {
25622          test -z "$ac_c_werror_flag" ||
25623          test ! -s conftest.err
25624        } && test -s conftest$ac_exeext &&
25625        $as_test_x conftest$ac_exeext; then
25626   ac_cv_func_cthread_fork=yes
25627 else
25628   echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631         ac_cv_func_cthread_fork=no
25632 fi
25633
25634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25635       conftest$ac_exeext conftest.$ac_ext
25636 fi
25637 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25638 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25639 if test $ac_cv_func_cthread_fork = yes; then
25640   ol_link_threads=yes
25641 fi
25642
25643                 LIBS="$save_LIBS"
25644
25645                 if test $ol_link_threads = yes ; then
25646                         LTHREAD_LIBS="-lthreads"
25647                         ol_link_threads=mach
25648                         ol_with_threads=found
25649                 else
25650                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25651 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25652    { (exit 1); exit 1; }; }
25653                 fi
25654
25655         elif test $ol_with_threads = mach ; then
25656                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25657 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25658    { (exit 1); exit 1; }; }
25659         fi
25660
25661         if test $ol_link_threads = mach ; then
25662
25663 cat >>confdefs.h <<\_ACEOF
25664 #define HAVE_MACH_CTHREADS 1
25665 _ACEOF
25666
25667         elif test $ol_with_threads = found ; then
25668                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25669 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25670    { (exit 1); exit 1; }; }
25671         fi
25672         ;;
25673 esac
25674
25675 case $ol_with_threads in auto | yes | pth)
25676
25677
25678 for ac_header in pth.h
25679 do
25680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25685   echo $ECHO_N "(cached) $ECHO_C" >&6
25686 fi
25687 ac_res=`eval echo '${'$as_ac_Header'}'`
25688                { echo "$as_me:$LINENO: result: $ac_res" >&5
25689 echo "${ECHO_T}$ac_res" >&6; }
25690 else
25691   # Is the header compilable?
25692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25694 cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h.  */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h.  */
25700 $ac_includes_default
25701 #include <$ac_header>
25702 _ACEOF
25703 rm -f conftest.$ac_objext
25704 if { (ac_try="$ac_compile"
25705 case "(($ac_try" in
25706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707   *) ac_try_echo=$ac_try;;
25708 esac
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710   (eval "$ac_compile") 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } && {
25717          test -z "$ac_c_werror_flag" ||
25718          test ! -s conftest.err
25719        } && test -s conftest.$ac_objext; then
25720   ac_header_compiler=yes
25721 else
25722   echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725         ac_header_compiler=no
25726 fi
25727
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6; }
25731
25732 # Is the header present?
25733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741 #include <$ac_header>
25742 _ACEOF
25743 if { (ac_try="$ac_cpp conftest.$ac_ext"
25744 case "(($ac_try" in
25745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746   *) ac_try_echo=$ac_try;;
25747 esac
25748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25750   ac_status=$?
25751   grep -v '^ *+' conftest.er1 >conftest.err
25752   rm -f conftest.er1
25753   cat conftest.err >&5
25754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755   (exit $ac_status); } >/dev/null && {
25756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25757          test ! -s conftest.err
25758        }; then
25759   ac_header_preproc=yes
25760 else
25761   echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25763
25764   ac_header_preproc=no
25765 fi
25766
25767 rm -f conftest.err conftest.$ac_ext
25768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6; }
25770
25771 # So?  What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25773   yes:no: )
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25778     ac_header_preproc=yes
25779     ;;
25780   no:yes:* )
25781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25793     ( cat <<\_ASBOX
25794 ## --------------------------------------------- ##
25795 ## Report this to <http://www.openldap.org/its/> ##
25796 ## --------------------------------------------- ##
25797 _ASBOX
25798      ) | sed "s/^/$as_me: WARNING:     /" >&2
25799     ;;
25800 esac
25801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25804   echo $ECHO_N "(cached) $ECHO_C" >&6
25805 else
25806   eval "$as_ac_Header=\$ac_header_preproc"
25807 fi
25808 ac_res=`eval echo '${'$as_ac_Header'}'`
25809                { echo "$as_me:$LINENO: result: $ac_res" >&5
25810 echo "${ECHO_T}$ac_res" >&6; }
25811
25812 fi
25813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25814   cat >>confdefs.h <<_ACEOF
25815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25816 _ACEOF
25817
25818 fi
25819
25820 done
25821
25822
25823         if test $ac_cv_header_pth_h = yes ; then
25824                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25825 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25826 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25827   echo $ECHO_N "(cached) $ECHO_C" >&6
25828 else
25829   ac_check_lib_save_LIBS=$LIBS
25830 LIBS="-lpth  $LIBS"
25831 cat >conftest.$ac_ext <<_ACEOF
25832 /* confdefs.h.  */
25833 _ACEOF
25834 cat confdefs.h >>conftest.$ac_ext
25835 cat >>conftest.$ac_ext <<_ACEOF
25836 /* end confdefs.h.  */
25837
25838 /* Override any GCC internal prototype to avoid an error.
25839    Use char because int might match the return type of a GCC
25840    builtin and then its argument prototype would still apply.  */
25841 #ifdef __cplusplus
25842 extern "C"
25843 #endif
25844 char pth_version ();
25845 int
25846 main ()
25847 {
25848 return pth_version ();
25849   ;
25850   return 0;
25851 }
25852 _ACEOF
25853 rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_link") 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && {
25867          test -z "$ac_c_werror_flag" ||
25868          test ! -s conftest.err
25869        } && test -s conftest$ac_exeext &&
25870        $as_test_x conftest$ac_exeext; then
25871   ac_cv_lib_pth_pth_version=yes
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876         ac_cv_lib_pth_pth_version=no
25877 fi
25878
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880       conftest$ac_exeext conftest.$ac_ext
25881 LIBS=$ac_check_lib_save_LIBS
25882 fi
25883 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25884 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25885 if test $ac_cv_lib_pth_pth_version = yes; then
25886   have_pth=yes
25887 else
25888   have_pth=no
25889 fi
25890
25891
25892                 if test $have_pth = yes ; then
25893
25894 cat >>confdefs.h <<\_ACEOF
25895 #define HAVE_GNU_PTH 1
25896 _ACEOF
25897
25898                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25899                         ol_link_threads=pth
25900                         ol_with_threads=found
25901
25902                         if test $ol_with_yielding_select = auto ; then
25903                                 ol_with_yielding_select=yes
25904                         fi
25905                 fi
25906         fi
25907         ;;
25908 esac
25909
25910 case $ol_with_threads in auto | yes | lwp)
25911
25912
25913
25914 for ac_header in thread.h synch.h
25915 do
25916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25918   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25921   echo $ECHO_N "(cached) $ECHO_C" >&6
25922 fi
25923 ac_res=`eval echo '${'$as_ac_Header'}'`
25924                { echo "$as_me:$LINENO: result: $ac_res" >&5
25925 echo "${ECHO_T}$ac_res" >&6; }
25926 else
25927   # Is the header compilable?
25928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25930 cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 $ac_includes_default
25937 #include <$ac_header>
25938 _ACEOF
25939 rm -f conftest.$ac_objext
25940 if { (ac_try="$ac_compile"
25941 case "(($ac_try" in
25942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943   *) ac_try_echo=$ac_try;;
25944 esac
25945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25946   (eval "$ac_compile") 2>conftest.er1
25947   ac_status=$?
25948   grep -v '^ *+' conftest.er1 >conftest.err
25949   rm -f conftest.er1
25950   cat conftest.err >&5
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); } && {
25953          test -z "$ac_c_werror_flag" ||
25954          test ! -s conftest.err
25955        } && test -s conftest.$ac_objext; then
25956   ac_header_compiler=yes
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961         ac_header_compiler=no
25962 fi
25963
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25966 echo "${ECHO_T}$ac_header_compiler" >&6; }
25967
25968 # Is the header present?
25969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25971 cat >conftest.$ac_ext <<_ACEOF
25972 /* confdefs.h.  */
25973 _ACEOF
25974 cat confdefs.h >>conftest.$ac_ext
25975 cat >>conftest.$ac_ext <<_ACEOF
25976 /* end confdefs.h.  */
25977 #include <$ac_header>
25978 _ACEOF
25979 if { (ac_try="$ac_cpp conftest.$ac_ext"
25980 case "(($ac_try" in
25981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982   *) ac_try_echo=$ac_try;;
25983 esac
25984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25986   ac_status=$?
25987   grep -v '^ *+' conftest.er1 >conftest.err
25988   rm -f conftest.er1
25989   cat conftest.err >&5
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); } >/dev/null && {
25992          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25993          test ! -s conftest.err
25994        }; then
25995   ac_header_preproc=yes
25996 else
25997   echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.$ac_ext >&5
25999
26000   ac_header_preproc=no
26001 fi
26002
26003 rm -f conftest.err conftest.$ac_ext
26004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26005 echo "${ECHO_T}$ac_header_preproc" >&6; }
26006
26007 # So?  What about this header?
26008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26009   yes:no: )
26010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26014     ac_header_preproc=yes
26015     ;;
26016   no:yes:* )
26017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26019     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26020 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26021     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26023     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26024 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26027     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26029     ( cat <<\_ASBOX
26030 ## --------------------------------------------- ##
26031 ## Report this to <http://www.openldap.org/its/> ##
26032 ## --------------------------------------------- ##
26033 _ASBOX
26034      ) | sed "s/^/$as_me: WARNING:     /" >&2
26035     ;;
26036 esac
26037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26040   echo $ECHO_N "(cached) $ECHO_C" >&6
26041 else
26042   eval "$as_ac_Header=\$ac_header_preproc"
26043 fi
26044 ac_res=`eval echo '${'$as_ac_Header'}'`
26045                { echo "$as_me:$LINENO: result: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26047
26048 fi
26049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26050   cat >>confdefs.h <<_ACEOF
26051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26052 _ACEOF
26053
26054 fi
26055
26056 done
26057
26058         if test $ac_cv_header_thread_h = yes &&
26059            test $ac_cv_header_synch_h = yes ; then
26060                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26061 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26062 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26063   echo $ECHO_N "(cached) $ECHO_C" >&6
26064 else
26065   ac_check_lib_save_LIBS=$LIBS
26066 LIBS="-lthread  $LIBS"
26067 cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h.  */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h.  */
26073
26074 /* Override any GCC internal prototype to avoid an error.
26075    Use char because int might match the return type of a GCC
26076    builtin and then its argument prototype would still apply.  */
26077 #ifdef __cplusplus
26078 extern "C"
26079 #endif
26080 char thr_create ();
26081 int
26082 main ()
26083 {
26084 return thr_create ();
26085   ;
26086   return 0;
26087 }
26088 _ACEOF
26089 rm -f conftest.$ac_objext conftest$ac_exeext
26090 if { (ac_try="$ac_link"
26091 case "(($ac_try" in
26092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093   *) ac_try_echo=$ac_try;;
26094 esac
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096   (eval "$ac_link") 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } && {
26103          test -z "$ac_c_werror_flag" ||
26104          test ! -s conftest.err
26105        } && test -s conftest$ac_exeext &&
26106        $as_test_x conftest$ac_exeext; then
26107   ac_cv_lib_thread_thr_create=yes
26108 else
26109   echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26111
26112         ac_cv_lib_thread_thr_create=no
26113 fi
26114
26115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26116       conftest$ac_exeext conftest.$ac_ext
26117 LIBS=$ac_check_lib_save_LIBS
26118 fi
26119 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26120 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26121 if test $ac_cv_lib_thread_thr_create = yes; then
26122   have_thr=yes
26123 else
26124   have_thr=no
26125 fi
26126
26127
26128                 if test $have_thr = yes ; then
26129
26130 cat >>confdefs.h <<\_ACEOF
26131 #define HAVE_THR 1
26132 _ACEOF
26133
26134                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26135                         ol_link_threads=thr
26136
26137                         if test $ol_with_yielding_select = auto ; then
26138                                 ol_with_yielding_select=yes
26139                         fi
26140
26141
26142
26143 for ac_func in \
26144                                 thr_setconcurrency \
26145                                 thr_getconcurrency \
26146
26147 do
26148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26152   echo $ECHO_N "(cached) $ECHO_C" >&6
26153 else
26154   cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26162 #define $ac_func innocuous_$ac_func
26163
26164 /* System header to define __stub macros and hopefully few prototypes,
26165     which can conflict with char $ac_func (); below.
26166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26167     <limits.h> exists even on freestanding compilers.  */
26168
26169 #ifdef __STDC__
26170 # include <limits.h>
26171 #else
26172 # include <assert.h>
26173 #endif
26174
26175 #undef $ac_func
26176
26177 /* Override any GCC internal prototype to avoid an error.
26178    Use char because int might match the return type of a GCC
26179    builtin and then its argument prototype would still apply.  */
26180 #ifdef __cplusplus
26181 extern "C"
26182 #endif
26183 char $ac_func ();
26184 /* The GNU C library defines this for functions which it implements
26185     to always fail with ENOSYS.  Some functions are actually named
26186     something starting with __ and the normal name is an alias.  */
26187 #if defined __stub_$ac_func || defined __stub___$ac_func
26188 choke me
26189 #endif
26190
26191 int
26192 main ()
26193 {
26194 return $ac_func ();
26195   ;
26196   return 0;
26197 }
26198 _ACEOF
26199 rm -f conftest.$ac_objext conftest$ac_exeext
26200 if { (ac_try="$ac_link"
26201 case "(($ac_try" in
26202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203   *) ac_try_echo=$ac_try;;
26204 esac
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206   (eval "$ac_link") 2>conftest.er1
26207   ac_status=$?
26208   grep -v '^ *+' conftest.er1 >conftest.err
26209   rm -f conftest.er1
26210   cat conftest.err >&5
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); } && {
26213          test -z "$ac_c_werror_flag" ||
26214          test ! -s conftest.err
26215        } && test -s conftest$ac_exeext &&
26216        $as_test_x conftest$ac_exeext; then
26217   eval "$as_ac_var=yes"
26218 else
26219   echo "$as_me: failed program was:" >&5
26220 sed 's/^/| /' conftest.$ac_ext >&5
26221
26222         eval "$as_ac_var=no"
26223 fi
26224
26225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26226       conftest$ac_exeext conftest.$ac_ext
26227 fi
26228 ac_res=`eval echo '${'$as_ac_var'}'`
26229                { echo "$as_me:$LINENO: result: $ac_res" >&5
26230 echo "${ECHO_T}$ac_res" >&6; }
26231 if test `eval echo '${'$as_ac_var'}'` = yes; then
26232   cat >>confdefs.h <<_ACEOF
26233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26234 _ACEOF
26235
26236 fi
26237 done
26238
26239                 fi
26240         fi
26241
26242
26243 for ac_header in lwp/lwp.h
26244 do
26245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26247   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26250   echo $ECHO_N "(cached) $ECHO_C" >&6
26251 fi
26252 ac_res=`eval echo '${'$as_ac_Header'}'`
26253                { echo "$as_me:$LINENO: result: $ac_res" >&5
26254 echo "${ECHO_T}$ac_res" >&6; }
26255 else
26256   # Is the header compilable?
26257 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26259 cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265 $ac_includes_default
26266 #include <$ac_header>
26267 _ACEOF
26268 rm -f conftest.$ac_objext
26269 if { (ac_try="$ac_compile"
26270 case "(($ac_try" in
26271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272   *) ac_try_echo=$ac_try;;
26273 esac
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275   (eval "$ac_compile") 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } && {
26282          test -z "$ac_c_werror_flag" ||
26283          test ! -s conftest.err
26284        } && test -s conftest.$ac_objext; then
26285   ac_header_compiler=yes
26286 else
26287   echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290         ac_header_compiler=no
26291 fi
26292
26293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26295 echo "${ECHO_T}$ac_header_compiler" >&6; }
26296
26297 # Is the header present?
26298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26300 cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h.  */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h.  */
26306 #include <$ac_header>
26307 _ACEOF
26308 if { (ac_try="$ac_cpp conftest.$ac_ext"
26309 case "(($ac_try" in
26310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311   *) ac_try_echo=$ac_try;;
26312 esac
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } >/dev/null && {
26321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26322          test ! -s conftest.err
26323        }; then
26324   ac_header_preproc=yes
26325 else
26326   echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26328
26329   ac_header_preproc=no
26330 fi
26331
26332 rm -f conftest.err conftest.$ac_ext
26333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26334 echo "${ECHO_T}$ac_header_preproc" >&6; }
26335
26336 # So?  What about this header?
26337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26338   yes:no: )
26339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26343     ac_header_preproc=yes
26344     ;;
26345   no:yes:* )
26346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26358     ( cat <<\_ASBOX
26359 ## --------------------------------------------- ##
26360 ## Report this to <http://www.openldap.org/its/> ##
26361 ## --------------------------------------------- ##
26362 _ASBOX
26363      ) | sed "s/^/$as_me: WARNING:     /" >&2
26364     ;;
26365 esac
26366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26369   echo $ECHO_N "(cached) $ECHO_C" >&6
26370 else
26371   eval "$as_ac_Header=\$ac_header_preproc"
26372 fi
26373 ac_res=`eval echo '${'$as_ac_Header'}'`
26374                { echo "$as_me:$LINENO: result: $ac_res" >&5
26375 echo "${ECHO_T}$ac_res" >&6; }
26376
26377 fi
26378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26379   cat >>confdefs.h <<_ACEOF
26380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26381 _ACEOF
26382
26383 fi
26384
26385 done
26386
26387         if test $ac_cv_header_lwp_lwp_h = yes ; then
26388                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26389 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26390 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26391   echo $ECHO_N "(cached) $ECHO_C" >&6
26392 else
26393   ac_check_lib_save_LIBS=$LIBS
26394 LIBS="-llwp  $LIBS"
26395 cat >conftest.$ac_ext <<_ACEOF
26396 /* confdefs.h.  */
26397 _ACEOF
26398 cat confdefs.h >>conftest.$ac_ext
26399 cat >>conftest.$ac_ext <<_ACEOF
26400 /* end confdefs.h.  */
26401
26402 /* Override any GCC internal prototype to avoid an error.
26403    Use char because int might match the return type of a GCC
26404    builtin and then its argument prototype would still apply.  */
26405 #ifdef __cplusplus
26406 extern "C"
26407 #endif
26408 char lwp_create ();
26409 int
26410 main ()
26411 {
26412 return lwp_create ();
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 rm -f conftest.$ac_objext conftest$ac_exeext
26418 if { (ac_try="$ac_link"
26419 case "(($ac_try" in
26420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421   *) ac_try_echo=$ac_try;;
26422 esac
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424   (eval "$ac_link") 2>conftest.er1
26425   ac_status=$?
26426   grep -v '^ *+' conftest.er1 >conftest.err
26427   rm -f conftest.er1
26428   cat conftest.err >&5
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); } && {
26431          test -z "$ac_c_werror_flag" ||
26432          test ! -s conftest.err
26433        } && test -s conftest$ac_exeext &&
26434        $as_test_x conftest$ac_exeext; then
26435   ac_cv_lib_lwp_lwp_create=yes
26436 else
26437   echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26439
26440         ac_cv_lib_lwp_lwp_create=no
26441 fi
26442
26443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26444       conftest$ac_exeext conftest.$ac_ext
26445 LIBS=$ac_check_lib_save_LIBS
26446 fi
26447 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26448 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26449 if test $ac_cv_lib_lwp_lwp_create = yes; then
26450   have_lwp=yes
26451 else
26452   have_lwp=no
26453 fi
26454
26455
26456                 if test $have_lwp = yes ; then
26457
26458 cat >>confdefs.h <<\_ACEOF
26459 #define HAVE_LWP 1
26460 _ACEOF
26461
26462                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26463                         ol_link_threads=lwp
26464
26465                         if test $ol_with_yielding_select = auto ; then
26466                                 ol_with_yielding_select=no
26467                         fi
26468                 fi
26469         fi
26470         ;;
26471 esac
26472
26473 if test $ol_with_yielding_select = yes ; then
26474
26475 cat >>confdefs.h <<\_ACEOF
26476 #define HAVE_YIELDING_SELECT 1
26477 _ACEOF
26478
26479 fi
26480
26481 if test $ol_with_threads = manual ; then
26482                 ol_link_threads=yes
26483
26484         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26485 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26486
26487
26488
26489 for ac_header in pthread.h sched.h
26490 do
26491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26496   echo $ECHO_N "(cached) $ECHO_C" >&6
26497 fi
26498 ac_res=`eval echo '${'$as_ac_Header'}'`
26499                { echo "$as_me:$LINENO: result: $ac_res" >&5
26500 echo "${ECHO_T}$ac_res" >&6; }
26501 else
26502   # Is the header compilable?
26503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26505 cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h.  */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h.  */
26511 $ac_includes_default
26512 #include <$ac_header>
26513 _ACEOF
26514 rm -f conftest.$ac_objext
26515 if { (ac_try="$ac_compile"
26516 case "(($ac_try" in
26517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518   *) ac_try_echo=$ac_try;;
26519 esac
26520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26521   (eval "$ac_compile") 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } && {
26528          test -z "$ac_c_werror_flag" ||
26529          test ! -s conftest.err
26530        } && test -s conftest.$ac_objext; then
26531   ac_header_compiler=yes
26532 else
26533   echo "$as_me: failed program was:" >&5
26534 sed 's/^/| /' conftest.$ac_ext >&5
26535
26536         ac_header_compiler=no
26537 fi
26538
26539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26541 echo "${ECHO_T}$ac_header_compiler" >&6; }
26542
26543 # Is the header present?
26544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26546 cat >conftest.$ac_ext <<_ACEOF
26547 /* confdefs.h.  */
26548 _ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h.  */
26552 #include <$ac_header>
26553 _ACEOF
26554 if { (ac_try="$ac_cpp conftest.$ac_ext"
26555 case "(($ac_try" in
26556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557   *) ac_try_echo=$ac_try;;
26558 esac
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26561   ac_status=$?
26562   grep -v '^ *+' conftest.er1 >conftest.err
26563   rm -f conftest.er1
26564   cat conftest.err >&5
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); } >/dev/null && {
26567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26568          test ! -s conftest.err
26569        }; then
26570   ac_header_preproc=yes
26571 else
26572   echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26574
26575   ac_header_preproc=no
26576 fi
26577
26578 rm -f conftest.err conftest.$ac_ext
26579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26580 echo "${ECHO_T}$ac_header_preproc" >&6; }
26581
26582 # So?  What about this header?
26583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26584   yes:no: )
26585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26589     ac_header_preproc=yes
26590     ;;
26591   no:yes:* )
26592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26604     ( cat <<\_ASBOX
26605 ## --------------------------------------------- ##
26606 ## Report this to <http://www.openldap.org/its/> ##
26607 ## --------------------------------------------- ##
26608 _ASBOX
26609      ) | sed "s/^/$as_me: WARNING:     /" >&2
26610     ;;
26611 esac
26612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26615   echo $ECHO_N "(cached) $ECHO_C" >&6
26616 else
26617   eval "$as_ac_Header=\$ac_header_preproc"
26618 fi
26619 ac_res=`eval echo '${'$as_ac_Header'}'`
26620                { echo "$as_me:$LINENO: result: $ac_res" >&5
26621 echo "${ECHO_T}$ac_res" >&6; }
26622
26623 fi
26624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26625   cat >>confdefs.h <<_ACEOF
26626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26627 _ACEOF
26628
26629 fi
26630
26631 done
26632
26633
26634
26635 for ac_func in sched_yield pthread_yield
26636 do
26637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26641   echo $ECHO_N "(cached) $ECHO_C" >&6
26642 else
26643   cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26651 #define $ac_func innocuous_$ac_func
26652
26653 /* System header to define __stub macros and hopefully few prototypes,
26654     which can conflict with char $ac_func (); below.
26655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26656     <limits.h> exists even on freestanding compilers.  */
26657
26658 #ifdef __STDC__
26659 # include <limits.h>
26660 #else
26661 # include <assert.h>
26662 #endif
26663
26664 #undef $ac_func
26665
26666 /* Override any GCC internal prototype to avoid an error.
26667    Use char because int might match the return type of a GCC
26668    builtin and then its argument prototype would still apply.  */
26669 #ifdef __cplusplus
26670 extern "C"
26671 #endif
26672 char $ac_func ();
26673 /* The GNU C library defines this for functions which it implements
26674     to always fail with ENOSYS.  Some functions are actually named
26675     something starting with __ and the normal name is an alias.  */
26676 #if defined __stub_$ac_func || defined __stub___$ac_func
26677 choke me
26678 #endif
26679
26680 int
26681 main ()
26682 {
26683 return $ac_func ();
26684   ;
26685   return 0;
26686 }
26687 _ACEOF
26688 rm -f conftest.$ac_objext conftest$ac_exeext
26689 if { (ac_try="$ac_link"
26690 case "(($ac_try" in
26691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692   *) ac_try_echo=$ac_try;;
26693 esac
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695   (eval "$ac_link") 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } && {
26702          test -z "$ac_c_werror_flag" ||
26703          test ! -s conftest.err
26704        } && test -s conftest$ac_exeext &&
26705        $as_test_x conftest$ac_exeext; then
26706   eval "$as_ac_var=yes"
26707 else
26708   echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26710
26711         eval "$as_ac_var=no"
26712 fi
26713
26714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26715       conftest$ac_exeext conftest.$ac_ext
26716 fi
26717 ac_res=`eval echo '${'$as_ac_var'}'`
26718                { echo "$as_me:$LINENO: result: $ac_res" >&5
26719 echo "${ECHO_T}$ac_res" >&6; }
26720 if test `eval echo '${'$as_ac_var'}'` = yes; then
26721   cat >>confdefs.h <<_ACEOF
26722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26723 _ACEOF
26724
26725 fi
26726 done
26727
26728
26729         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26730 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26731 if test "${ol_cv_header_linux_threads+set}" = set; then
26732   echo $ECHO_N "(cached) $ECHO_C" >&6
26733 else
26734   cat >conftest.$ac_ext <<_ACEOF
26735 /* confdefs.h.  */
26736 _ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h.  */
26740 #include <pthread.h>
26741 _ACEOF
26742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26743   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26744   ol_cv_header_linux_threads=yes
26745 else
26746   ol_cv_header_linux_threads=no
26747 fi
26748 rm -f conftest*
26749
26750
26751 fi
26752 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26753 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26754         if test $ol_cv_header_linux_threads = yes; then
26755
26756 cat >>confdefs.h <<\_ACEOF
26757 #define HAVE_LINUX_THREADS 1
26758 _ACEOF
26759
26760         fi
26761
26762
26763
26764 for ac_header in mach/cthreads.h
26765 do
26766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26768   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26771   echo $ECHO_N "(cached) $ECHO_C" >&6
26772 fi
26773 ac_res=`eval echo '${'$as_ac_Header'}'`
26774                { echo "$as_me:$LINENO: result: $ac_res" >&5
26775 echo "${ECHO_T}$ac_res" >&6; }
26776 else
26777   # Is the header compilable?
26778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26780 cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 $ac_includes_default
26787 #include <$ac_header>
26788 _ACEOF
26789 rm -f conftest.$ac_objext
26790 if { (ac_try="$ac_compile"
26791 case "(($ac_try" in
26792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793   *) ac_try_echo=$ac_try;;
26794 esac
26795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796   (eval "$ac_compile") 2>conftest.er1
26797   ac_status=$?
26798   grep -v '^ *+' conftest.er1 >conftest.err
26799   rm -f conftest.er1
26800   cat conftest.err >&5
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); } && {
26803          test -z "$ac_c_werror_flag" ||
26804          test ! -s conftest.err
26805        } && test -s conftest.$ac_objext; then
26806   ac_header_compiler=yes
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811         ac_header_compiler=no
26812 fi
26813
26814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26816 echo "${ECHO_T}$ac_header_compiler" >&6; }
26817
26818 # Is the header present?
26819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26821 cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827 #include <$ac_header>
26828 _ACEOF
26829 if { (ac_try="$ac_cpp conftest.$ac_ext"
26830 case "(($ac_try" in
26831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832   *) ac_try_echo=$ac_try;;
26833 esac
26834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26836   ac_status=$?
26837   grep -v '^ *+' conftest.er1 >conftest.err
26838   rm -f conftest.er1
26839   cat conftest.err >&5
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); } >/dev/null && {
26842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26843          test ! -s conftest.err
26844        }; then
26845   ac_header_preproc=yes
26846 else
26847   echo "$as_me: failed program was:" >&5
26848 sed 's/^/| /' conftest.$ac_ext >&5
26849
26850   ac_header_preproc=no
26851 fi
26852
26853 rm -f conftest.err conftest.$ac_ext
26854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26855 echo "${ECHO_T}$ac_header_preproc" >&6; }
26856
26857 # So?  What about this header?
26858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26859   yes:no: )
26860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26864     ac_header_preproc=yes
26865     ;;
26866   no:yes:* )
26867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26879     ( cat <<\_ASBOX
26880 ## --------------------------------------------- ##
26881 ## Report this to <http://www.openldap.org/its/> ##
26882 ## --------------------------------------------- ##
26883 _ASBOX
26884      ) | sed "s/^/$as_me: WARNING:     /" >&2
26885     ;;
26886 esac
26887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26890   echo $ECHO_N "(cached) $ECHO_C" >&6
26891 else
26892   eval "$as_ac_Header=\$ac_header_preproc"
26893 fi
26894 ac_res=`eval echo '${'$as_ac_Header'}'`
26895                { echo "$as_me:$LINENO: result: $ac_res" >&5
26896 echo "${ECHO_T}$ac_res" >&6; }
26897
26898 fi
26899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26900   cat >>confdefs.h <<_ACEOF
26901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26902 _ACEOF
26903
26904 fi
26905
26906 done
26907
26908
26909 for ac_header in lwp/lwp.h
26910 do
26911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26916   echo $ECHO_N "(cached) $ECHO_C" >&6
26917 fi
26918 ac_res=`eval echo '${'$as_ac_Header'}'`
26919                { echo "$as_me:$LINENO: result: $ac_res" >&5
26920 echo "${ECHO_T}$ac_res" >&6; }
26921 else
26922   # Is the header compilable?
26923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26925 cat >conftest.$ac_ext <<_ACEOF
26926 /* confdefs.h.  */
26927 _ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h.  */
26931 $ac_includes_default
26932 #include <$ac_header>
26933 _ACEOF
26934 rm -f conftest.$ac_objext
26935 if { (ac_try="$ac_compile"
26936 case "(($ac_try" in
26937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938   *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941   (eval "$ac_compile") 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } && {
26948          test -z "$ac_c_werror_flag" ||
26949          test ! -s conftest.err
26950        } && test -s conftest.$ac_objext; then
26951   ac_header_compiler=yes
26952 else
26953   echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956         ac_header_compiler=no
26957 fi
26958
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26961 echo "${ECHO_T}$ac_header_compiler" >&6; }
26962
26963 # Is the header present?
26964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26966 cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h.  */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h.  */
26972 #include <$ac_header>
26973 _ACEOF
26974 if { (ac_try="$ac_cpp conftest.$ac_ext"
26975 case "(($ac_try" in
26976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977   *) ac_try_echo=$ac_try;;
26978 esac
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26981   ac_status=$?
26982   grep -v '^ *+' conftest.er1 >conftest.err
26983   rm -f conftest.er1
26984   cat conftest.err >&5
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); } >/dev/null && {
26987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26988          test ! -s conftest.err
26989        }; then
26990   ac_header_preproc=yes
26991 else
26992   echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26994
26995   ac_header_preproc=no
26996 fi
26997
26998 rm -f conftest.err conftest.$ac_ext
26999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27000 echo "${ECHO_T}$ac_header_preproc" >&6; }
27001
27002 # So?  What about this header?
27003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27004   yes:no: )
27005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27009     ac_header_preproc=yes
27010     ;;
27011   no:yes:* )
27012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27024     ( cat <<\_ASBOX
27025 ## --------------------------------------------- ##
27026 ## Report this to <http://www.openldap.org/its/> ##
27027 ## --------------------------------------------- ##
27028 _ASBOX
27029      ) | sed "s/^/$as_me: WARNING:     /" >&2
27030     ;;
27031 esac
27032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27035   echo $ECHO_N "(cached) $ECHO_C" >&6
27036 else
27037   eval "$as_ac_Header=\$ac_header_preproc"
27038 fi
27039 ac_res=`eval echo '${'$as_ac_Header'}'`
27040                { echo "$as_me:$LINENO: result: $ac_res" >&5
27041 echo "${ECHO_T}$ac_res" >&6; }
27042
27043 fi
27044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27045   cat >>confdefs.h <<_ACEOF
27046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27047 _ACEOF
27048
27049 fi
27050
27051 done
27052
27053
27054
27055 for ac_header in thread.h synch.h
27056 do
27057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27059   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27062   echo $ECHO_N "(cached) $ECHO_C" >&6
27063 fi
27064 ac_res=`eval echo '${'$as_ac_Header'}'`
27065                { echo "$as_me:$LINENO: result: $ac_res" >&5
27066 echo "${ECHO_T}$ac_res" >&6; }
27067 else
27068   # Is the header compilable?
27069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27071 cat >conftest.$ac_ext <<_ACEOF
27072 /* confdefs.h.  */
27073 _ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h.  */
27077 $ac_includes_default
27078 #include <$ac_header>
27079 _ACEOF
27080 rm -f conftest.$ac_objext
27081 if { (ac_try="$ac_compile"
27082 case "(($ac_try" in
27083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084   *) ac_try_echo=$ac_try;;
27085 esac
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087   (eval "$ac_compile") 2>conftest.er1
27088   ac_status=$?
27089   grep -v '^ *+' conftest.er1 >conftest.err
27090   rm -f conftest.er1
27091   cat conftest.err >&5
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); } && {
27094          test -z "$ac_c_werror_flag" ||
27095          test ! -s conftest.err
27096        } && test -s conftest.$ac_objext; then
27097   ac_header_compiler=yes
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102         ac_header_compiler=no
27103 fi
27104
27105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27107 echo "${ECHO_T}$ac_header_compiler" >&6; }
27108
27109 # Is the header present?
27110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27112 cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h.  */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h.  */
27118 #include <$ac_header>
27119 _ACEOF
27120 if { (ac_try="$ac_cpp conftest.$ac_ext"
27121 case "(($ac_try" in
27122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123   *) ac_try_echo=$ac_try;;
27124 esac
27125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27127   ac_status=$?
27128   grep -v '^ *+' conftest.er1 >conftest.err
27129   rm -f conftest.er1
27130   cat conftest.err >&5
27131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132   (exit $ac_status); } >/dev/null && {
27133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27134          test ! -s conftest.err
27135        }; then
27136   ac_header_preproc=yes
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141   ac_header_preproc=no
27142 fi
27143
27144 rm -f conftest.err conftest.$ac_ext
27145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27146 echo "${ECHO_T}$ac_header_preproc" >&6; }
27147
27148 # So?  What about this header?
27149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150   yes:no: )
27151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27155     ac_header_preproc=yes
27156     ;;
27157   no:yes:* )
27158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27170     ( cat <<\_ASBOX
27171 ## --------------------------------------------- ##
27172 ## Report this to <http://www.openldap.org/its/> ##
27173 ## --------------------------------------------- ##
27174 _ASBOX
27175      ) | sed "s/^/$as_me: WARNING:     /" >&2
27176     ;;
27177 esac
27178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181   echo $ECHO_N "(cached) $ECHO_C" >&6
27182 else
27183   eval "$as_ac_Header=\$ac_header_preproc"
27184 fi
27185 ac_res=`eval echo '${'$as_ac_Header'}'`
27186                { echo "$as_me:$LINENO: result: $ac_res" >&5
27187 echo "${ECHO_T}$ac_res" >&6; }
27188
27189 fi
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191   cat >>confdefs.h <<_ACEOF
27192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27193 _ACEOF
27194
27195 fi
27196
27197 done
27198
27199 fi
27200
27201 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27202                         cat >>confdefs.h <<\_ACEOF
27203 #define REENTRANT 1
27204 _ACEOF
27205
27206         cat >>confdefs.h <<\_ACEOF
27207 #define _REENTRANT 1
27208 _ACEOF
27209
27210         cat >>confdefs.h <<\_ACEOF
27211 #define THREAD_SAFE 1
27212 _ACEOF
27213
27214         cat >>confdefs.h <<\_ACEOF
27215 #define _THREAD_SAFE 1
27216 _ACEOF
27217
27218         cat >>confdefs.h <<\_ACEOF
27219 #define THREADSAFE 1
27220 _ACEOF
27221
27222         cat >>confdefs.h <<\_ACEOF
27223 #define _THREADSAFE 1
27224 _ACEOF
27225
27226         cat >>confdefs.h <<\_ACEOF
27227 #define _SGI_MP_SOURCE 1
27228 _ACEOF
27229
27230
27231                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27232 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27233 if test "${ol_cv_errno_thread_specific+set}" = set; then
27234   echo $ECHO_N "(cached) $ECHO_C" >&6
27235 else
27236
27237                 cat >conftest.$ac_ext <<_ACEOF
27238 /* confdefs.h.  */
27239 _ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h.  */
27243 #include <errno.h>
27244 int
27245 main ()
27246 {
27247 errno = 0;
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 rm -f conftest.$ac_objext conftest$ac_exeext
27253 if { (ac_try="$ac_link"
27254 case "(($ac_try" in
27255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256   *) ac_try_echo=$ac_try;;
27257 esac
27258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27259   (eval "$ac_link") 2>conftest.er1
27260   ac_status=$?
27261   grep -v '^ *+' conftest.er1 >conftest.err
27262   rm -f conftest.er1
27263   cat conftest.err >&5
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); } && {
27266          test -z "$ac_c_werror_flag" ||
27267          test ! -s conftest.err
27268        } && test -s conftest$ac_exeext &&
27269        $as_test_x conftest$ac_exeext; then
27270   ol_cv_errno_thread_specific=yes
27271 else
27272   echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275         ol_cv_errno_thread_specific=no
27276 fi
27277
27278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27279       conftest$ac_exeext conftest.$ac_ext
27280
27281 fi
27282 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27283 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27284
27285                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27286 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27287 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27288   echo $ECHO_N "(cached) $ECHO_C" >&6
27289 else
27290
27291                 cat >conftest.$ac_ext <<_ACEOF
27292 /* confdefs.h.  */
27293 _ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h.  */
27297 #include <netdb.h>
27298 int
27299 main ()
27300 {
27301 h_errno = 0;
27302   ;
27303   return 0;
27304 }
27305 _ACEOF
27306 rm -f conftest.$ac_objext conftest$ac_exeext
27307 if { (ac_try="$ac_link"
27308 case "(($ac_try" in
27309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310   *) ac_try_echo=$ac_try;;
27311 esac
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313   (eval "$ac_link") 2>conftest.er1
27314   ac_status=$?
27315   grep -v '^ *+' conftest.er1 >conftest.err
27316   rm -f conftest.er1
27317   cat conftest.err >&5
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); } && {
27320          test -z "$ac_c_werror_flag" ||
27321          test ! -s conftest.err
27322        } && test -s conftest$ac_exeext &&
27323        $as_test_x conftest$ac_exeext; then
27324   ol_cv_h_errno_thread_specific=yes
27325 else
27326   echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27328
27329         ol_cv_h_errno_thread_specific=no
27330 fi
27331
27332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27333       conftest$ac_exeext conftest.$ac_ext
27334
27335 fi
27336 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27337 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27338
27339         if test $ol_cv_errno_thread_specific != yes ||
27340            test $ol_cv_h_errno_thread_specific != yes ; then
27341                 LIBS="$LTHREAD_LIBS $LIBS"
27342                 LTHREAD_LIBS=""
27343         fi
27344
27345 fi
27346
27347 if test $ol_link_threads = no ; then
27348         if test $ol_with_threads = yes ; then
27349                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27350 echo "$as_me: error: no suitable thread support" >&2;}
27351    { (exit 1); exit 1; }; }
27352         fi
27353
27354         if test $ol_with_threads = auto ; then
27355                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27356 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27357                 ol_with_threads=no
27358         fi
27359
27360
27361 cat >>confdefs.h <<\_ACEOF
27362 #define NO_THREADS 1
27363 _ACEOF
27364
27365         LTHREAD_LIBS=""
27366         BUILD_THREAD=no
27367 else
27368         BUILD_THREAD=yes
27369 fi
27370
27371 if test $ol_link_threads != no ; then
27372
27373 cat >>confdefs.h <<\_ACEOF
27374 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27375 _ACEOF
27376
27377 fi
27378
27379
27380
27381
27382 for ac_func in \
27383         ctime_r                 \
27384         gethostbyname_r gethostbyaddr_r \
27385
27386 do
27387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h.  */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h.  */
27399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27401 #define $ac_func innocuous_$ac_func
27402
27403 /* System header to define __stub macros and hopefully few prototypes,
27404     which can conflict with char $ac_func (); below.
27405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27406     <limits.h> exists even on freestanding compilers.  */
27407
27408 #ifdef __STDC__
27409 # include <limits.h>
27410 #else
27411 # include <assert.h>
27412 #endif
27413
27414 #undef $ac_func
27415
27416 /* Override any GCC internal prototype to avoid an error.
27417    Use char because int might match the return type of a GCC
27418    builtin and then its argument prototype would still apply.  */
27419 #ifdef __cplusplus
27420 extern "C"
27421 #endif
27422 char $ac_func ();
27423 /* The GNU C library defines this for functions which it implements
27424     to always fail with ENOSYS.  Some functions are actually named
27425     something starting with __ and the normal name is an alias.  */
27426 #if defined __stub_$ac_func || defined __stub___$ac_func
27427 choke me
27428 #endif
27429
27430 int
27431 main ()
27432 {
27433 return $ac_func ();
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442   *) ac_try_echo=$ac_try;;
27443 esac
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445   (eval "$ac_link") 2>conftest.er1
27446   ac_status=$?
27447   grep -v '^ *+' conftest.er1 >conftest.err
27448   rm -f conftest.er1
27449   cat conftest.err >&5
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); } && {
27452          test -z "$ac_c_werror_flag" ||
27453          test ! -s conftest.err
27454        } && test -s conftest$ac_exeext &&
27455        $as_test_x conftest$ac_exeext; then
27456   eval "$as_ac_var=yes"
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461         eval "$as_ac_var=no"
27462 fi
27463
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465       conftest$ac_exeext conftest.$ac_ext
27466 fi
27467 ac_res=`eval echo '${'$as_ac_var'}'`
27468                { echo "$as_me:$LINENO: result: $ac_res" >&5
27469 echo "${ECHO_T}$ac_res" >&6; }
27470 if test `eval echo '${'$as_ac_var'}'` = yes; then
27471   cat >>confdefs.h <<_ACEOF
27472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27473 _ACEOF
27474
27475 fi
27476 done
27477
27478
27479 if test "$ac_cv_func_ctime_r" = no ; then
27480         ol_cv_func_ctime_r_nargs=0
27481 else
27482         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27483 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27484 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27485   echo $ECHO_N "(cached) $ECHO_C" >&6
27486 else
27487   cat >conftest.$ac_ext <<_ACEOF
27488 /* confdefs.h.  */
27489 _ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h.  */
27493 #include <time.h>
27494 int
27495 main ()
27496 {
27497 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27498   ;
27499   return 0;
27500 }
27501 _ACEOF
27502 rm -f conftest.$ac_objext
27503 if { (ac_try="$ac_compile"
27504 case "(($ac_try" in
27505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506   *) ac_try_echo=$ac_try;;
27507 esac
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509   (eval "$ac_compile") 2>conftest.er1
27510   ac_status=$?
27511   grep -v '^ *+' conftest.er1 >conftest.err
27512   rm -f conftest.er1
27513   cat conftest.err >&5
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); } && {
27516          test -z "$ac_c_werror_flag" ||
27517          test ! -s conftest.err
27518        } && test -s conftest.$ac_objext; then
27519   ol_cv_func_ctime_r_nargs3=yes
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524         ol_cv_func_ctime_r_nargs3=no
27525 fi
27526
27527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27528
27529         cat >conftest.$ac_ext <<_ACEOF
27530 /* confdefs.h.  */
27531 _ACEOF
27532 cat confdefs.h >>conftest.$ac_ext
27533 cat >>conftest.$ac_ext <<_ACEOF
27534 /* end confdefs.h.  */
27535 #include <time.h>
27536 int
27537 main ()
27538 {
27539 time_t ti; char *buffer; ctime_r(&ti,buffer);
27540   ;
27541   return 0;
27542 }
27543 _ACEOF
27544 rm -f conftest.$ac_objext
27545 if { (ac_try="$ac_compile"
27546 case "(($ac_try" in
27547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548   *) ac_try_echo=$ac_try;;
27549 esac
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551   (eval "$ac_compile") 2>conftest.er1
27552   ac_status=$?
27553   grep -v '^ *+' conftest.er1 >conftest.err
27554   rm -f conftest.er1
27555   cat conftest.err >&5
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); } && {
27558          test -z "$ac_c_werror_flag" ||
27559          test ! -s conftest.err
27560        } && test -s conftest.$ac_objext; then
27561   ol_cv_func_ctime_r_nargs2=yes
27562 else
27563   echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27565
27566         ol_cv_func_ctime_r_nargs2=no
27567 fi
27568
27569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27570
27571         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27572            test $ol_cv_func_ctime_r_nargs2 = no ; then
27573
27574                 ol_cv_func_ctime_r_nargs=3
27575
27576         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27577              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27578
27579                 ol_cv_func_ctime_r_nargs=2
27580
27581         else
27582                 ol_cv_func_ctime_r_nargs=0
27583         fi
27584
27585 fi
27586 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27587 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27588
27589   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27590
27591 cat >>confdefs.h <<_ACEOF
27592 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27593 _ACEOF
27594
27595   fi
27596
27597 fi
27598
27599 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27600         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27601 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27602 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27603   echo $ECHO_N "(cached) $ECHO_C" >&6
27604 else
27605   cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 #include <sys/types.h>
27612 #include <sys/socket.h>
27613 #include <netinet/in.h>
27614 #include <netdb.h>
27615 #define BUFSIZE (sizeof(struct hostent)+10)
27616 int
27617 main ()
27618 {
27619 struct hostent hent; char buffer[BUFSIZE];
27620                 int bufsize=BUFSIZE;int h_errno;
27621                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27622                         buffer, bufsize, &h_errno);
27623   ;
27624   return 0;
27625 }
27626 _ACEOF
27627 rm -f conftest.$ac_objext
27628 if { (ac_try="$ac_compile"
27629 case "(($ac_try" in
27630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631   *) ac_try_echo=$ac_try;;
27632 esac
27633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634   (eval "$ac_compile") 2>conftest.er1
27635   ac_status=$?
27636   grep -v '^ *+' conftest.er1 >conftest.err
27637   rm -f conftest.er1
27638   cat conftest.err >&5
27639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640   (exit $ac_status); } && {
27641          test -z "$ac_c_werror_flag" ||
27642          test ! -s conftest.err
27643        } && test -s conftest.$ac_objext; then
27644   ol_cv_func_gethostbyname_r_nargs5=yes
27645 else
27646   echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649         ol_cv_func_gethostbyname_r_nargs5=no
27650 fi
27651
27652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27653
27654         cat >conftest.$ac_ext <<_ACEOF
27655 /* confdefs.h.  */
27656 _ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h.  */
27660 #include <sys/types.h>
27661 #include <sys/socket.h>
27662 #include <netinet/in.h>
27663 #include <netdb.h>
27664 #define BUFSIZE (sizeof(struct hostent)+10)
27665 int
27666 main ()
27667 {
27668 struct hostent hent;struct hostent *rhent;
27669                 char buffer[BUFSIZE];
27670                 int bufsize=BUFSIZE;int h_errno;
27671                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27672                         &rhent, &h_errno);
27673   ;
27674   return 0;
27675 }
27676 _ACEOF
27677 rm -f conftest.$ac_objext
27678 if { (ac_try="$ac_compile"
27679 case "(($ac_try" in
27680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681   *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684   (eval "$ac_compile") 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } && {
27691          test -z "$ac_c_werror_flag" ||
27692          test ! -s conftest.err
27693        } && test -s conftest.$ac_objext; then
27694   ol_cv_func_gethostbyname_r_nargs6=yes
27695 else
27696   echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27698
27699         ol_cv_func_gethostbyname_r_nargs6=no
27700 fi
27701
27702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27703
27704         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27705            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27706
27707                 ol_cv_func_gethostbyname_r_nargs=5
27708
27709         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27710              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27711
27712                 ol_cv_func_gethostbyname_r_nargs=6
27713
27714         else
27715                 ol_cv_func_gethostbyname_r_nargs=0
27716         fi
27717
27718 fi
27719 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27720 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27721   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27722
27723 cat >>confdefs.h <<_ACEOF
27724 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27725 _ACEOF
27726
27727   fi
27728
27729 else
27730         ol_cv_func_gethostbyname_r_nargs=0
27731 fi
27732
27733 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27734         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27735 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27736 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27737   echo $ECHO_N "(cached) $ECHO_C" >&6
27738 else
27739   cat >conftest.$ac_ext <<_ACEOF
27740 /* confdefs.h.  */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h.  */
27745 #include <sys/types.h>
27746 #include <sys/socket.h>
27747 #include <netinet/in.h>
27748 #include <netdb.h>
27749 #define BUFSIZE (sizeof(struct hostent)+10)
27750 int
27751 main ()
27752 {
27753 struct hostent hent; char buffer[BUFSIZE];
27754             struct in_addr add;
27755             size_t alen=sizeof(struct in_addr);
27756             int bufsize=BUFSIZE;int h_errno;
27757                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27758                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27759   ;
27760   return 0;
27761 }
27762 _ACEOF
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770   (eval "$ac_compile") 2>conftest.er1
27771   ac_status=$?
27772   grep -v '^ *+' conftest.er1 >conftest.err
27773   rm -f conftest.er1
27774   cat conftest.err >&5
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); } && {
27777          test -z "$ac_c_werror_flag" ||
27778          test ! -s conftest.err
27779        } && test -s conftest.$ac_objext; then
27780   ol_cv_func_gethostbyaddr_r_nargs7=yes
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785         ol_cv_func_gethostbyaddr_r_nargs7=no
27786 fi
27787
27788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27789
27790         cat >conftest.$ac_ext <<_ACEOF
27791 /* confdefs.h.  */
27792 _ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h.  */
27796 #include <sys/types.h>
27797 #include <sys/socket.h>
27798 #include <netinet/in.h>
27799 #include <netdb.h>
27800 #define BUFSIZE (sizeof(struct hostent)+10)
27801 int
27802 main ()
27803 {
27804 struct hostent hent;
27805                 struct hostent *rhent; char buffer[BUFSIZE];
27806                 struct in_addr add;
27807                 size_t alen=sizeof(struct in_addr);
27808                 int bufsize=BUFSIZE;int h_errno;
27809                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27810                         alen, AF_INET, &hent, buffer, bufsize,
27811                         &rhent, &h_errno);
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 rm -f conftest.$ac_objext
27817 if { (ac_try="$ac_compile"
27818 case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_compile") 2>conftest.er1
27824   ac_status=$?
27825   grep -v '^ *+' conftest.er1 >conftest.err
27826   rm -f conftest.er1
27827   cat conftest.err >&5
27828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829   (exit $ac_status); } && {
27830          test -z "$ac_c_werror_flag" ||
27831          test ! -s conftest.err
27832        } && test -s conftest.$ac_objext; then
27833   ol_cv_func_gethostbyaddr_r_nargs8=yes
27834 else
27835   echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27837
27838         ol_cv_func_gethostbyaddr_r_nargs8=no
27839 fi
27840
27841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27842
27843         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27844            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27845
27846                 ol_cv_func_gethostbyaddr_r_nargs=7
27847
27848         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27849              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27850
27851                 ol_cv_func_gethostbyaddr_r_nargs=8
27852
27853         else
27854                 ol_cv_func_gethostbyaddr_r_nargs=0
27855         fi
27856
27857 fi
27858 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27859 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27860   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27861
27862 cat >>confdefs.h <<_ACEOF
27863 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27864 _ACEOF
27865
27866   fi
27867
27868 else
27869         ol_cv_func_gethostbyaddr_r_nargs=0
27870 fi
27871
27872 ol_link_bdb=no
27873
27874 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27875         ol_cv_berkeley_db=no
27876
27877 for ac_header in db.h
27878 do
27879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27881   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27884   echo $ECHO_N "(cached) $ECHO_C" >&6
27885 fi
27886 ac_res=`eval echo '${'$as_ac_Header'}'`
27887                { echo "$as_me:$LINENO: result: $ac_res" >&5
27888 echo "${ECHO_T}$ac_res" >&6; }
27889 else
27890   # Is the header compilable?
27891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27893 cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899 $ac_includes_default
27900 #include <$ac_header>
27901 _ACEOF
27902 rm -f conftest.$ac_objext
27903 if { (ac_try="$ac_compile"
27904 case "(($ac_try" in
27905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27906   *) ac_try_echo=$ac_try;;
27907 esac
27908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27909   (eval "$ac_compile") 2>conftest.er1
27910   ac_status=$?
27911   grep -v '^ *+' conftest.er1 >conftest.err
27912   rm -f conftest.er1
27913   cat conftest.err >&5
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); } && {
27916          test -z "$ac_c_werror_flag" ||
27917          test ! -s conftest.err
27918        } && test -s conftest.$ac_objext; then
27919   ac_header_compiler=yes
27920 else
27921   echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27923
27924         ac_header_compiler=no
27925 fi
27926
27927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27929 echo "${ECHO_T}$ac_header_compiler" >&6; }
27930
27931 # Is the header present?
27932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940 #include <$ac_header>
27941 _ACEOF
27942 if { (ac_try="$ac_cpp conftest.$ac_ext"
27943 case "(($ac_try" in
27944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945   *) ac_try_echo=$ac_try;;
27946 esac
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27949   ac_status=$?
27950   grep -v '^ *+' conftest.er1 >conftest.err
27951   rm -f conftest.er1
27952   cat conftest.err >&5
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); } >/dev/null && {
27955          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27956          test ! -s conftest.err
27957        }; then
27958   ac_header_preproc=yes
27959 else
27960   echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27962
27963   ac_header_preproc=no
27964 fi
27965
27966 rm -f conftest.err conftest.$ac_ext
27967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27968 echo "${ECHO_T}$ac_header_preproc" >&6; }
27969
27970 # So?  What about this header?
27971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27972   yes:no: )
27973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27977     ac_header_preproc=yes
27978     ;;
27979   no:yes:* )
27980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27992     ( cat <<\_ASBOX
27993 ## --------------------------------------------- ##
27994 ## Report this to <http://www.openldap.org/its/> ##
27995 ## --------------------------------------------- ##
27996 _ASBOX
27997      ) | sed "s/^/$as_me: WARNING:     /" >&2
27998     ;;
27999 esac
28000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28003   echo $ECHO_N "(cached) $ECHO_C" >&6
28004 else
28005   eval "$as_ac_Header=\$ac_header_preproc"
28006 fi
28007 ac_res=`eval echo '${'$as_ac_Header'}'`
28008                { echo "$as_me:$LINENO: result: $ac_res" >&5
28009 echo "${ECHO_T}$ac_res" >&6; }
28010
28011 fi
28012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28013   cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28015 _ACEOF
28016
28017 fi
28018
28019 done
28020
28021 if test $ac_cv_header_db_h = yes; then
28022         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28023 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28024 if test "${ol_cv_bdb_major+set}" = set; then
28025   echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027
28028         cat >conftest.$ac_ext <<_ACEOF
28029
28030 #include <db.h>
28031 #ifndef DB_VERSION_MAJOR
28032 #       define DB_VERSION_MAJOR 1
28033 #endif
28034 __db_version DB_VERSION_MAJOR
28035
28036 _ACEOF
28037         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28038         ol_cv_bdb_major=${3}
28039
28040 fi
28041 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28042 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28043 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28044         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28045 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28046    { (exit 1); exit 1; }; } ;;
28047 esac
28048
28049 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28050 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28051 if test "${ol_cv_bdb_minor+set}" = set; then
28052   echo $ECHO_N "(cached) $ECHO_C" >&6
28053 else
28054
28055         cat >conftest.$ac_ext <<_ACEOF
28056
28057 #include <db.h>
28058 #ifndef DB_VERSION_MINOR
28059 #       define DB_VERSION_MINOR 0
28060 #endif
28061 __db_version DB_VERSION_MINOR
28062
28063 _ACEOF
28064         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28065         ol_cv_bdb_minor=${3}
28066
28067 fi
28068 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28069 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28070 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28071         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28072 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28073    { (exit 1); exit 1; }; } ;;
28074 esac
28075
28076         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28077 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28078 if test "${ol_cv_bdb_compat+set}" = set; then
28079   echo $ECHO_N "(cached) $ECHO_C" >&6
28080 else
28081
28082         cat >conftest.$ac_ext <<_ACEOF
28083 /* confdefs.h.  */
28084 _ACEOF
28085 cat confdefs.h >>conftest.$ac_ext
28086 cat >>conftest.$ac_ext <<_ACEOF
28087 /* end confdefs.h.  */
28088
28089 #include <db.h>
28090
28091  /* this check could be improved */
28092 #ifndef DB_VERSION_MAJOR
28093 #       define DB_VERSION_MAJOR 1
28094 #endif
28095 #ifndef DB_VERSION_MINOR
28096 #       define DB_VERSION_MINOR 0
28097 #endif
28098
28099 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28100
28101 /* require 4.4 or later */
28102 #if DB_VERSION_MM >= 0x0404
28103         __db_version_compat
28104 #endif
28105
28106 _ACEOF
28107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28108   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28109   ol_cv_bdb_compat=yes
28110 else
28111   ol_cv_bdb_compat=no
28112 fi
28113 rm -f conftest*
28114
28115 fi
28116 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28117 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28118
28119
28120         if test $ol_cv_bdb_compat != yes ; then
28121                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28122 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28123    { (exit 1); exit 1; }; }
28124         fi
28125
28126         ol_cv_lib_db=no
28127
28128 if test $ol_cv_bdb_major = 4 ; then
28129         if test $ol_cv_lib_db = no ; then
28130         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28132 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28133   echo $ECHO_N "(cached) $ECHO_C" >&6
28134 else
28135
28136         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28137         ol_LIBS=$LIBS
28138         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28139
28140         cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h.  */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h.  */
28146
28147 #ifdef HAVE_DB_185_H
28148 # include <db_185.h>
28149 #else
28150 # include <db.h>
28151 #endif
28152
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28155 #endif
28156
28157 #ifndef NULL
28158 #define NULL ((void*)0)
28159 #endif
28160
28161 int
28162 main ()
28163 {
28164
28165 #if DB_VERSION_MAJOR > 2
28166         db_env_create( NULL, 0 );
28167 #elif DB_VERSION_MAJOR > 1
28168         db_appexit( NULL );
28169 #else
28170         (void) dbopen( NULL, 0, 0, 0, NULL);
28171 #endif
28172
28173   ;
28174   return 0;
28175 }
28176 _ACEOF
28177 rm -f conftest.$ac_objext conftest$ac_exeext
28178 if { (ac_try="$ac_link"
28179 case "(($ac_try" in
28180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181   *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184   (eval "$ac_link") 2>conftest.er1
28185   ac_status=$?
28186   grep -v '^ *+' conftest.er1 >conftest.err
28187   rm -f conftest.er1
28188   cat conftest.err >&5
28189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); } && {
28191          test -z "$ac_c_werror_flag" ||
28192          test ! -s conftest.err
28193        } && test -s conftest$ac_exeext &&
28194        $as_test_x conftest$ac_exeext; then
28195   ol_cv_db_db_4_dot_m=yes
28196 else
28197   echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28199
28200         ol_cv_db_db_4_dot_m=no
28201 fi
28202
28203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28204       conftest$ac_exeext conftest.$ac_ext
28205
28206         LIBS="$ol_LIBS"
28207
28208 fi
28209 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28210 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28211
28212         if test $ol_cv_db_db_4_dot_m = yes ; then
28213                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28214         fi
28215 fi
28216
28217         if test $ol_cv_lib_db = no ; then
28218         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28219 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28220 if test "${ol_cv_db_db4m+set}" = set; then
28221   echo $ECHO_N "(cached) $ECHO_C" >&6
28222 else
28223
28224         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28225         ol_LIBS=$LIBS
28226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28227
28228         cat >conftest.$ac_ext <<_ACEOF
28229 /* confdefs.h.  */
28230 _ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h.  */
28234
28235 #ifdef HAVE_DB_185_H
28236 # include <db_185.h>
28237 #else
28238 # include <db.h>
28239 #endif
28240
28241 #ifndef DB_VERSION_MAJOR
28242 # define DB_VERSION_MAJOR 1
28243 #endif
28244
28245 #ifndef NULL
28246 #define NULL ((void*)0)
28247 #endif
28248
28249 int
28250 main ()
28251 {
28252
28253 #if DB_VERSION_MAJOR > 2
28254         db_env_create( NULL, 0 );
28255 #elif DB_VERSION_MAJOR > 1
28256         db_appexit( NULL );
28257 #else
28258         (void) dbopen( NULL, 0, 0, 0, NULL);
28259 #endif
28260
28261   ;
28262   return 0;
28263 }
28264 _ACEOF
28265 rm -f conftest.$ac_objext conftest$ac_exeext
28266 if { (ac_try="$ac_link"
28267 case "(($ac_try" in
28268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269   *) ac_try_echo=$ac_try;;
28270 esac
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272   (eval "$ac_link") 2>conftest.er1
28273   ac_status=$?
28274   grep -v '^ *+' conftest.er1 >conftest.err
28275   rm -f conftest.er1
28276   cat conftest.err >&5
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); } && {
28279          test -z "$ac_c_werror_flag" ||
28280          test ! -s conftest.err
28281        } && test -s conftest$ac_exeext &&
28282        $as_test_x conftest$ac_exeext; then
28283   ol_cv_db_db4m=yes
28284 else
28285   echo "$as_me: failed program was:" >&5
28286 sed 's/^/| /' conftest.$ac_ext >&5
28287
28288         ol_cv_db_db4m=no
28289 fi
28290
28291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28292       conftest$ac_exeext conftest.$ac_ext
28293
28294         LIBS="$ol_LIBS"
28295
28296 fi
28297 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28298 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28299
28300         if test $ol_cv_db_db4m = yes ; then
28301                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28302         fi
28303 fi
28304
28305         if test $ol_cv_lib_db = no ; then
28306         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28307 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28308 if test "${ol_cv_db_db_4m+set}" = set; then
28309   echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311
28312         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28313         ol_LIBS=$LIBS
28314         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28315
28316         cat >conftest.$ac_ext <<_ACEOF
28317 /* confdefs.h.  */
28318 _ACEOF
28319 cat confdefs.h >>conftest.$ac_ext
28320 cat >>conftest.$ac_ext <<_ACEOF
28321 /* end confdefs.h.  */
28322
28323 #ifdef HAVE_DB_185_H
28324 # include <db_185.h>
28325 #else
28326 # include <db.h>
28327 #endif
28328
28329 #ifndef DB_VERSION_MAJOR
28330 # define DB_VERSION_MAJOR 1
28331 #endif
28332
28333 #ifndef NULL
28334 #define NULL ((void*)0)
28335 #endif
28336
28337 int
28338 main ()
28339 {
28340
28341 #if DB_VERSION_MAJOR > 2
28342         db_env_create( NULL, 0 );
28343 #elif DB_VERSION_MAJOR > 1
28344         db_appexit( NULL );
28345 #else
28346         (void) dbopen( NULL, 0, 0, 0, NULL);
28347 #endif
28348
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 rm -f conftest.$ac_objext conftest$ac_exeext
28354 if { (ac_try="$ac_link"
28355 case "(($ac_try" in
28356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357   *) ac_try_echo=$ac_try;;
28358 esac
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360   (eval "$ac_link") 2>conftest.er1
28361   ac_status=$?
28362   grep -v '^ *+' conftest.er1 >conftest.err
28363   rm -f conftest.er1
28364   cat conftest.err >&5
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); } && {
28367          test -z "$ac_c_werror_flag" ||
28368          test ! -s conftest.err
28369        } && test -s conftest$ac_exeext &&
28370        $as_test_x conftest$ac_exeext; then
28371   ol_cv_db_db_4m=yes
28372 else
28373   echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28375
28376         ol_cv_db_db_4m=no
28377 fi
28378
28379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28380       conftest$ac_exeext conftest.$ac_ext
28381
28382         LIBS="$ol_LIBS"
28383
28384 fi
28385 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28386 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28387
28388         if test $ol_cv_db_db_4m = yes ; then
28389                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28390         fi
28391 fi
28392
28393         if test $ol_cv_lib_db = no ; then
28394         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28395 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28396 if test "${ol_cv_db_db_4_m+set}" = set; then
28397   echo $ECHO_N "(cached) $ECHO_C" >&6
28398 else
28399
28400         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28401         ol_LIBS=$LIBS
28402         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28403
28404         cat >conftest.$ac_ext <<_ACEOF
28405 /* confdefs.h.  */
28406 _ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h.  */
28410
28411 #ifdef HAVE_DB_185_H
28412 # include <db_185.h>
28413 #else
28414 # include <db.h>
28415 #endif
28416
28417 #ifndef DB_VERSION_MAJOR
28418 # define DB_VERSION_MAJOR 1
28419 #endif
28420
28421 #ifndef NULL
28422 #define NULL ((void*)0)
28423 #endif
28424
28425 int
28426 main ()
28427 {
28428
28429 #if DB_VERSION_MAJOR > 2
28430         db_env_create( NULL, 0 );
28431 #elif DB_VERSION_MAJOR > 1
28432         db_appexit( NULL );
28433 #else
28434         (void) dbopen( NULL, 0, 0, 0, NULL);
28435 #endif
28436
28437   ;
28438   return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest.$ac_objext conftest$ac_exeext
28442 if { (ac_try="$ac_link"
28443 case "(($ac_try" in
28444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445   *) ac_try_echo=$ac_try;;
28446 esac
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448   (eval "$ac_link") 2>conftest.er1
28449   ac_status=$?
28450   grep -v '^ *+' conftest.er1 >conftest.err
28451   rm -f conftest.er1
28452   cat conftest.err >&5
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); } && {
28455          test -z "$ac_c_werror_flag" ||
28456          test ! -s conftest.err
28457        } && test -s conftest$ac_exeext &&
28458        $as_test_x conftest$ac_exeext; then
28459   ol_cv_db_db_4_m=yes
28460 else
28461   echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464         ol_cv_db_db_4_m=no
28465 fi
28466
28467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28468       conftest$ac_exeext conftest.$ac_ext
28469
28470         LIBS="$ol_LIBS"
28471
28472 fi
28473 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28474 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28475
28476         if test $ol_cv_db_db_4_m = yes ; then
28477                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28478         fi
28479 fi
28480
28481         if test $ol_cv_lib_db = no ; then
28482         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28483 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28484 if test "${ol_cv_db_db_4+set}" = set; then
28485   echo $ECHO_N "(cached) $ECHO_C" >&6
28486 else
28487
28488         ol_DB_LIB=-ldb-4
28489         ol_LIBS=$LIBS
28490         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28491
28492         cat >conftest.$ac_ext <<_ACEOF
28493 /* confdefs.h.  */
28494 _ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h.  */
28498
28499 #ifdef HAVE_DB_185_H
28500 # include <db_185.h>
28501 #else
28502 # include <db.h>
28503 #endif
28504
28505 #ifndef DB_VERSION_MAJOR
28506 # define DB_VERSION_MAJOR 1
28507 #endif
28508
28509 #ifndef NULL
28510 #define NULL ((void*)0)
28511 #endif
28512
28513 int
28514 main ()
28515 {
28516
28517 #if DB_VERSION_MAJOR > 2
28518         db_env_create( NULL, 0 );
28519 #elif DB_VERSION_MAJOR > 1
28520         db_appexit( NULL );
28521 #else
28522         (void) dbopen( NULL, 0, 0, 0, NULL);
28523 #endif
28524
28525   ;
28526   return 0;
28527 }
28528 _ACEOF
28529 rm -f conftest.$ac_objext conftest$ac_exeext
28530 if { (ac_try="$ac_link"
28531 case "(($ac_try" in
28532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533   *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536   (eval "$ac_link") 2>conftest.er1
28537   ac_status=$?
28538   grep -v '^ *+' conftest.er1 >conftest.err
28539   rm -f conftest.er1
28540   cat conftest.err >&5
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); } && {
28543          test -z "$ac_c_werror_flag" ||
28544          test ! -s conftest.err
28545        } && test -s conftest$ac_exeext &&
28546        $as_test_x conftest$ac_exeext; then
28547   ol_cv_db_db_4=yes
28548 else
28549   echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28551
28552         ol_cv_db_db_4=no
28553 fi
28554
28555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28556       conftest$ac_exeext conftest.$ac_ext
28557
28558         LIBS="$ol_LIBS"
28559
28560 fi
28561 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28562 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28563
28564         if test $ol_cv_db_db_4 = yes ; then
28565                 ol_cv_lib_db=-ldb-4
28566         fi
28567 fi
28568
28569         if test $ol_cv_lib_db = no ; then
28570         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28571 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28572 if test "${ol_cv_db_db4+set}" = set; then
28573   echo $ECHO_N "(cached) $ECHO_C" >&6
28574 else
28575
28576         ol_DB_LIB=-ldb4
28577         ol_LIBS=$LIBS
28578         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28579
28580         cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28586
28587 #ifdef HAVE_DB_185_H
28588 # include <db_185.h>
28589 #else
28590 # include <db.h>
28591 #endif
28592
28593 #ifndef DB_VERSION_MAJOR
28594 # define DB_VERSION_MAJOR 1
28595 #endif
28596
28597 #ifndef NULL
28598 #define NULL ((void*)0)
28599 #endif
28600
28601 int
28602 main ()
28603 {
28604
28605 #if DB_VERSION_MAJOR > 2
28606         db_env_create( NULL, 0 );
28607 #elif DB_VERSION_MAJOR > 1
28608         db_appexit( NULL );
28609 #else
28610         (void) dbopen( NULL, 0, 0, 0, NULL);
28611 #endif
28612
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (ac_try="$ac_link"
28619 case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_link") 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } && {
28631          test -z "$ac_c_werror_flag" ||
28632          test ! -s conftest.err
28633        } && test -s conftest$ac_exeext &&
28634        $as_test_x conftest$ac_exeext; then
28635   ol_cv_db_db4=yes
28636 else
28637   echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640         ol_cv_db_db4=no
28641 fi
28642
28643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28644       conftest$ac_exeext conftest.$ac_ext
28645
28646         LIBS="$ol_LIBS"
28647
28648 fi
28649 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28650 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28651
28652         if test $ol_cv_db_db4 = yes ; then
28653                 ol_cv_lib_db=-ldb4
28654         fi
28655 fi
28656
28657         if test $ol_cv_lib_db = no ; then
28658         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28659 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28660 if test "${ol_cv_db_db+set}" = set; then
28661   echo $ECHO_N "(cached) $ECHO_C" >&6
28662 else
28663
28664         ol_DB_LIB=-ldb
28665         ol_LIBS=$LIBS
28666         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28667
28668         cat >conftest.$ac_ext <<_ACEOF
28669 /* confdefs.h.  */
28670 _ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h.  */
28674
28675 #ifdef HAVE_DB_185_H
28676 # include <db_185.h>
28677 #else
28678 # include <db.h>
28679 #endif
28680
28681 #ifndef DB_VERSION_MAJOR
28682 # define DB_VERSION_MAJOR 1
28683 #endif
28684
28685 #ifndef NULL
28686 #define NULL ((void*)0)
28687 #endif
28688
28689 int
28690 main ()
28691 {
28692
28693 #if DB_VERSION_MAJOR > 2
28694         db_env_create( NULL, 0 );
28695 #elif DB_VERSION_MAJOR > 1
28696         db_appexit( NULL );
28697 #else
28698         (void) dbopen( NULL, 0, 0, 0, NULL);
28699 #endif
28700
28701   ;
28702   return 0;
28703 }
28704 _ACEOF
28705 rm -f conftest.$ac_objext conftest$ac_exeext
28706 if { (ac_try="$ac_link"
28707 case "(($ac_try" in
28708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709   *) ac_try_echo=$ac_try;;
28710 esac
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712   (eval "$ac_link") 2>conftest.er1
28713   ac_status=$?
28714   grep -v '^ *+' conftest.er1 >conftest.err
28715   rm -f conftest.er1
28716   cat conftest.err >&5
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); } && {
28719          test -z "$ac_c_werror_flag" ||
28720          test ! -s conftest.err
28721        } && test -s conftest$ac_exeext &&
28722        $as_test_x conftest$ac_exeext; then
28723   ol_cv_db_db=yes
28724 else
28725   echo "$as_me: failed program was:" >&5
28726 sed 's/^/| /' conftest.$ac_ext >&5
28727
28728         ol_cv_db_db=no
28729 fi
28730
28731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28732       conftest$ac_exeext conftest.$ac_ext
28733
28734         LIBS="$ol_LIBS"
28735
28736 fi
28737 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28738 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28739
28740         if test $ol_cv_db_db = yes ; then
28741                 ol_cv_lib_db=-ldb
28742         fi
28743 fi
28744
28745 fi
28746 if test $ol_cv_lib_db = no ; then
28747         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28748 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28749 if test "${ol_cv_db_none+set}" = set; then
28750   echo $ECHO_N "(cached) $ECHO_C" >&6
28751 else
28752
28753         ol_DB_LIB=
28754         ol_LIBS=$LIBS
28755         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28756
28757         cat >conftest.$ac_ext <<_ACEOF
28758 /* confdefs.h.  */
28759 _ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h.  */
28763
28764 #ifdef HAVE_DB_185_H
28765 # include <db_185.h>
28766 #else
28767 # include <db.h>
28768 #endif
28769
28770 #ifndef DB_VERSION_MAJOR
28771 # define DB_VERSION_MAJOR 1
28772 #endif
28773
28774 #ifndef NULL
28775 #define NULL ((void*)0)
28776 #endif
28777
28778 int
28779 main ()
28780 {
28781
28782 #if DB_VERSION_MAJOR > 2
28783         db_env_create( NULL, 0 );
28784 #elif DB_VERSION_MAJOR > 1
28785         db_appexit( NULL );
28786 #else
28787         (void) dbopen( NULL, 0, 0, 0, NULL);
28788 #endif
28789
28790   ;
28791   return 0;
28792 }
28793 _ACEOF
28794 rm -f conftest.$ac_objext conftest$ac_exeext
28795 if { (ac_try="$ac_link"
28796 case "(($ac_try" in
28797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798   *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801   (eval "$ac_link") 2>conftest.er1
28802   ac_status=$?
28803   grep -v '^ *+' conftest.er1 >conftest.err
28804   rm -f conftest.er1
28805   cat conftest.err >&5
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); } && {
28808          test -z "$ac_c_werror_flag" ||
28809          test ! -s conftest.err
28810        } && test -s conftest$ac_exeext &&
28811        $as_test_x conftest$ac_exeext; then
28812   ol_cv_db_none=yes
28813 else
28814   echo "$as_me: failed program was:" >&5
28815 sed 's/^/| /' conftest.$ac_ext >&5
28816
28817         ol_cv_db_none=no
28818 fi
28819
28820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28821       conftest$ac_exeext conftest.$ac_ext
28822
28823         LIBS="$ol_LIBS"
28824
28825 fi
28826 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28827 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28828
28829         if test $ol_cv_db_none = yes ; then
28830                 ol_cv_lib_db=yes
28831         fi
28832 fi
28833
28834
28835         if test "$ol_cv_lib_db" != no ; then
28836                 ol_cv_berkeley_db=yes
28837                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28838 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28839 if test "${ol_cv_berkeley_db_version+set}" = set; then
28840   echo $ECHO_N "(cached) $ECHO_C" >&6
28841 else
28842
28843         ol_LIBS="$LIBS"
28844         LIBS="$LTHREAD_LIBS $LIBS"
28845         if test $ol_cv_lib_db != yes ; then
28846                 LIBS="$ol_cv_lib_db $LIBS"
28847         fi
28848
28849         if test "$cross_compiling" = yes; then
28850   ol_cv_berkeley_db_version=cross
28851 else
28852   cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858
28859 #ifdef HAVE_DB_185_H
28860         choke me;
28861 #else
28862 #include <db.h>
28863 #endif
28864 #ifndef DB_VERSION_MAJOR
28865 # define DB_VERSION_MAJOR 1
28866 #endif
28867 #ifndef NULL
28868 #define NULL ((void *)0)
28869 #endif
28870 main()
28871 {
28872 #if DB_VERSION_MAJOR > 1
28873         char *version;
28874         int major, minor, patch;
28875
28876         version = db_version( &major, &minor, &patch );
28877
28878         if( major != DB_VERSION_MAJOR ||
28879                 minor != DB_VERSION_MINOR ||
28880                 patch != DB_VERSION_PATCH )
28881         {
28882                 printf("Berkeley DB version mismatch\n"
28883                         "\theader: %s\n\tlibrary: %s\n",
28884                         DB_VERSION_STRING, version);
28885                 return 1;
28886         }
28887 #endif
28888
28889         return 0;
28890 }
28891 _ACEOF
28892 rm -f conftest$ac_exeext
28893 if { (ac_try="$ac_link"
28894 case "(($ac_try" in
28895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896   *) ac_try_echo=$ac_try;;
28897 esac
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899   (eval "$ac_link") 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28903   { (case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908   (eval "$ac_try") 2>&5
28909   ac_status=$?
28910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911   (exit $ac_status); }; }; then
28912   ol_cv_berkeley_db_version=yes
28913 else
28914   echo "$as_me: program exited with status $ac_status" >&5
28915 echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28917
28918 ( exit $ac_status )
28919 ol_cv_berkeley_db_version=no
28920 fi
28921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28922 fi
28923
28924
28925
28926         LIBS="$ol_LIBS"
28927
28928 fi
28929 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28930 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28931
28932         if test $ol_cv_berkeley_db_version = no ; then
28933                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28934 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28935    { (exit 1); exit 1; }; }
28936         fi
28937
28938                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28939 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28940 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28941   echo $ECHO_N "(cached) $ECHO_C" >&6
28942 else
28943
28944         ol_LIBS="$LIBS"
28945         LIBS="$LTHREAD_LIBS $LIBS"
28946         if test $ol_cv_lib_db != yes ; then
28947                 LIBS="$ol_cv_lib_db $LIBS"
28948         fi
28949
28950         if test "$cross_compiling" = yes; then
28951   ol_cv_berkeley_db_thread=cross
28952 else
28953   cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h.  */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h.  */
28959
28960 #ifdef HAVE_DB_185_H
28961         choke me;
28962 #else
28963 #include <db.h>
28964 #endif
28965 #ifndef NULL
28966 #define NULL ((void *)0)
28967 #endif
28968 main()
28969 {
28970         int rc;
28971         u_int32_t flags = DB_CREATE |
28972 #ifdef DB_PRIVATE
28973                 DB_PRIVATE |
28974 #endif
28975                 DB_THREAD;
28976
28977 #if DB_VERSION_MAJOR > 2
28978         DB_ENV *env = NULL;
28979
28980         rc = db_env_create( &env, 0 );
28981
28982         flags |= DB_INIT_MPOOL;
28983 #ifdef DB_MPOOL_PRIVATE
28984         flags |= DB_MPOOL_PRIVATE;
28985 #endif
28986
28987         if( rc ) {
28988                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
28989                 return rc;
28990         }
28991
28992 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
28993         rc = (env->open)( env, NULL, flags, 0 );
28994 #else
28995         rc = (env->open)( env, NULL, NULL, flags, 0 );
28996 #endif
28997
28998         if ( rc == 0 ) {
28999                 rc = env->close( env, 0 );
29000         }
29001
29002         if( rc ) {
29003                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29004                 return rc;
29005         }
29006
29007 #else
29008         DB_ENV env;
29009         memset( &env, '\0', sizeof(env) );
29010
29011         rc = db_appinit( NULL, NULL, &env, flags );
29012
29013         if( rc == 0 ) {
29014                 db_appexit( &env );
29015         }
29016
29017         unlink("__db_mpool.share");
29018         unlink("__db_lock.share");
29019 #endif
29020
29021         return rc;
29022 }
29023 _ACEOF
29024 rm -f conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028   *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031   (eval "$ac_link") 2>&5
29032   ac_status=$?
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29035   { (case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_try") 2>&5
29041   ac_status=$?
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); }; }; then
29044   ol_cv_berkeley_db_thread=yes
29045 else
29046   echo "$as_me: program exited with status $ac_status" >&5
29047 echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29049
29050 ( exit $ac_status )
29051 ol_cv_berkeley_db_thread=no
29052 fi
29053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29054 fi
29055
29056
29057
29058         LIBS="$ol_LIBS"
29059
29060 fi
29061 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29062 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29063
29064         if test $ol_cv_berkeley_db_thread != no ; then
29065
29066 cat >>confdefs.h <<\_ACEOF
29067 #define HAVE_BERKELEY_DB_THREAD 1
29068 _ACEOF
29069
29070         fi
29071
29072         fi
29073 fi
29074
29075
29076         if test $ol_cv_berkeley_db = no ; then
29077                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29078 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29079    { (exit 1); exit 1; }; }
29080         fi
29081
29082
29083 cat >>confdefs.h <<\_ACEOF
29084 #define HAVE_BERKELEY_DB 1
29085 _ACEOF
29086
29087
29088                         if test $ol_cv_lib_db != yes ; then
29089                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29090         fi
29091
29092         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29093
29094         ol_link_bdb=yes
29095 fi
29096
29097
29098 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29099         BUILD_LIBS_DYNAMIC=shared
29100
29101 cat >>confdefs.h <<\_ACEOF
29102 #define LDAP_LIBS_DYNAMIC 1
29103 _ACEOF
29104
29105         LTSTATIC=""
29106 else
29107         BUILD_LIBS_DYNAMIC=static
29108         LTSTATIC="-static"
29109 fi
29110
29111 if test $ol_enable_wrappers != no ; then
29112
29113 for ac_header in tcpd.h
29114 do
29115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29117   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29120   echo $ECHO_N "(cached) $ECHO_C" >&6
29121 fi
29122 ac_res=`eval echo '${'$as_ac_Header'}'`
29123                { echo "$as_me:$LINENO: result: $ac_res" >&5
29124 echo "${ECHO_T}$ac_res" >&6; }
29125 else
29126   # Is the header compilable?
29127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29129 cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135 $ac_includes_default
29136 #include <$ac_header>
29137 _ACEOF
29138 rm -f conftest.$ac_objext
29139 if { (ac_try="$ac_compile"
29140 case "(($ac_try" in
29141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142   *) ac_try_echo=$ac_try;;
29143 esac
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145   (eval "$ac_compile") 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } && {
29152          test -z "$ac_c_werror_flag" ||
29153          test ! -s conftest.err
29154        } && test -s conftest.$ac_objext; then
29155   ac_header_compiler=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160         ac_header_compiler=no
29161 fi
29162
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29166
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29171 /* confdefs.h.  */
29172 _ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h.  */
29176 #include <$ac_header>
29177 _ACEOF
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181   *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185   ac_status=$?
29186   grep -v '^ *+' conftest.er1 >conftest.err
29187   rm -f conftest.er1
29188   cat conftest.err >&5
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); } >/dev/null && {
29191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29192          test ! -s conftest.err
29193        }; then
29194   ac_header_preproc=yes
29195 else
29196   echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29198
29199   ac_header_preproc=no
29200 fi
29201
29202 rm -f conftest.err conftest.$ac_ext
29203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29204 echo "${ECHO_T}$ac_header_preproc" >&6; }
29205
29206 # So?  What about this header?
29207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29208   yes:no: )
29209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29213     ac_header_preproc=yes
29214     ;;
29215   no:yes:* )
29216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29228     ( cat <<\_ASBOX
29229 ## --------------------------------------------- ##
29230 ## Report this to <http://www.openldap.org/its/> ##
29231 ## --------------------------------------------- ##
29232 _ASBOX
29233      ) | sed "s/^/$as_me: WARNING:     /" >&2
29234     ;;
29235 esac
29236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29239   echo $ECHO_N "(cached) $ECHO_C" >&6
29240 else
29241   eval "$as_ac_Header=\$ac_header_preproc"
29242 fi
29243 ac_res=`eval echo '${'$as_ac_Header'}'`
29244                { echo "$as_me:$LINENO: result: $ac_res" >&5
29245 echo "${ECHO_T}$ac_res" >&6; }
29246
29247 fi
29248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29249   cat >>confdefs.h <<_ACEOF
29250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29251 _ACEOF
29252
29253                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29254 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29255                 save_LIBS="$LIBS"
29256                 LIBS="$LIBS -lwrap"
29257                 cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h.  */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h.  */
29263
29264 #include <tcpd.h>
29265 int allow_severity = 0;
29266 int deny_severity  = 0;
29267
29268 struct request_info *req;
29269
29270 int
29271 main ()
29272 {
29273
29274 hosts_access(req)
29275
29276   ;
29277   return 0;
29278 }
29279 _ACEOF
29280 rm -f conftest.$ac_objext conftest$ac_exeext
29281 if { (ac_try="$ac_link"
29282 case "(($ac_try" in
29283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284   *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287   (eval "$ac_link") 2>conftest.er1
29288   ac_status=$?
29289   grep -v '^ *+' conftest.er1 >conftest.err
29290   rm -f conftest.er1
29291   cat conftest.err >&5
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); } && {
29294          test -z "$ac_c_werror_flag" ||
29295          test ! -s conftest.err
29296        } && test -s conftest$ac_exeext &&
29297        $as_test_x conftest$ac_exeext; then
29298   { echo "$as_me:$LINENO: result: -lwrap" >&5
29299 echo "${ECHO_T}-lwrap" >&6; }
29300                 have_wrappers=yes
29301                 LIBS="$save_LIBS"
29302 else
29303   echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29305
29306
29307                                 LIBS="$LIBS -lnsl"
29308                 cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h.  */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h.  */
29314
29315 #include <tcpd.h>
29316 int allow_severity = 0;
29317 int deny_severity  = 0;
29318
29319 struct request_info *req;
29320
29321 int
29322 main ()
29323 {
29324
29325 hosts_access(req)
29326
29327   ;
29328   return 0;
29329 }
29330 _ACEOF
29331 rm -f conftest.$ac_objext conftest$ac_exeext
29332 if { (ac_try="$ac_link"
29333 case "(($ac_try" in
29334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335   *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338   (eval "$ac_link") 2>conftest.er1
29339   ac_status=$?
29340   grep -v '^ *+' conftest.er1 >conftest.err
29341   rm -f conftest.er1
29342   cat conftest.err >&5
29343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344   (exit $ac_status); } && {
29345          test -z "$ac_c_werror_flag" ||
29346          test ! -s conftest.err
29347        } && test -s conftest$ac_exeext &&
29348        $as_test_x conftest$ac_exeext; then
29349   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29350 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29351                 have_wrappers=yes
29352                 LIBS="$save_LIBS -lnsl"
29353 else
29354   echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29356
29357
29358                 { echo "$as_me:$LINENO: result: no" >&5
29359 echo "${ECHO_T}no" >&6; }
29360                 have_wrappers=no
29361                 LIBS=$save_LIBS
29362 fi
29363
29364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29365       conftest$ac_exeext conftest.$ac_ext
29366 fi
29367
29368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29369       conftest$ac_exeext conftest.$ac_ext
29370 else
29371   have_wrappers=no
29372 fi
29373
29374 done
29375
29376
29377         if test $have_wrappers = yes ; then
29378
29379 cat >>confdefs.h <<\_ACEOF
29380 #define HAVE_TCPD 1
29381 _ACEOF
29382
29383                 WRAP_LIBS="-lwrap"
29384         elif test $ol_enable_wrappers = yes ; then
29385                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29386 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29387    { (exit 1); exit 1; }; }
29388         else
29389                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29390 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29391                 WRAP_LIBS=""
29392         fi
29393 fi
29394
29395 if test $ol_enable_syslog != no ; then
29396         { echo "$as_me:$LINENO: checking for openlog" >&5
29397 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29398 if test "${ac_cv_func_openlog+set}" = set; then
29399   echo $ECHO_N "(cached) $ECHO_C" >&6
29400 else
29401   cat >conftest.$ac_ext <<_ACEOF
29402 /* confdefs.h.  */
29403 _ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h.  */
29407 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29409 #define openlog innocuous_openlog
29410
29411 /* System header to define __stub macros and hopefully few prototypes,
29412     which can conflict with char openlog (); below.
29413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29414     <limits.h> exists even on freestanding compilers.  */
29415
29416 #ifdef __STDC__
29417 # include <limits.h>
29418 #else
29419 # include <assert.h>
29420 #endif
29421
29422 #undef openlog
29423
29424 /* Override any GCC internal prototype to avoid an error.
29425    Use char because int might match the return type of a GCC
29426    builtin and then its argument prototype would still apply.  */
29427 #ifdef __cplusplus
29428 extern "C"
29429 #endif
29430 char openlog ();
29431 /* The GNU C library defines this for functions which it implements
29432     to always fail with ENOSYS.  Some functions are actually named
29433     something starting with __ and the normal name is an alias.  */
29434 #if defined __stub_openlog || defined __stub___openlog
29435 choke me
29436 #endif
29437
29438 int
29439 main ()
29440 {
29441 return openlog ();
29442   ;
29443   return 0;
29444 }
29445 _ACEOF
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (ac_try="$ac_link"
29448 case "(($ac_try" in
29449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450   *) ac_try_echo=$ac_try;;
29451 esac
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453   (eval "$ac_link") 2>conftest.er1
29454   ac_status=$?
29455   grep -v '^ *+' conftest.er1 >conftest.err
29456   rm -f conftest.er1
29457   cat conftest.err >&5
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); } && {
29460          test -z "$ac_c_werror_flag" ||
29461          test ! -s conftest.err
29462        } && test -s conftest$ac_exeext &&
29463        $as_test_x conftest$ac_exeext; then
29464   ac_cv_func_openlog=yes
29465 else
29466   echo "$as_me: failed program was:" >&5
29467 sed 's/^/| /' conftest.$ac_ext >&5
29468
29469         ac_cv_func_openlog=no
29470 fi
29471
29472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29473       conftest$ac_exeext conftest.$ac_ext
29474 fi
29475 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29476 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29477
29478         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29479                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29480 echo "$as_me: error: could not find syslog" >&2;}
29481    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29482         fi
29483         ol_enable_syslog=$ac_cv_func_openlog
29484 fi
29485
29486 ol_link_sql=no
29487 if test $ol_enable_sql != no ; then
29488
29489
29490 for ac_header in sql.h sqlext.h
29491 do
29492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29494   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29497   echo $ECHO_N "(cached) $ECHO_C" >&6
29498 fi
29499 ac_res=`eval echo '${'$as_ac_Header'}'`
29500                { echo "$as_me:$LINENO: result: $ac_res" >&5
29501 echo "${ECHO_T}$ac_res" >&6; }
29502 else
29503   # Is the header compilable?
29504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h.  */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h.  */
29512 $ac_includes_default
29513 #include <$ac_header>
29514 _ACEOF
29515 rm -f conftest.$ac_objext
29516 if { (ac_try="$ac_compile"
29517 case "(($ac_try" in
29518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519   *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522   (eval "$ac_compile") 2>conftest.er1
29523   ac_status=$?
29524   grep -v '^ *+' conftest.er1 >conftest.err
29525   rm -f conftest.er1
29526   cat conftest.err >&5
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); } && {
29529          test -z "$ac_c_werror_flag" ||
29530          test ! -s conftest.err
29531        } && test -s conftest.$ac_objext; then
29532   ac_header_compiler=yes
29533 else
29534   echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537         ac_header_compiler=no
29538 fi
29539
29540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29542 echo "${ECHO_T}$ac_header_compiler" >&6; }
29543
29544 # Is the header present?
29545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29547 cat >conftest.$ac_ext <<_ACEOF
29548 /* confdefs.h.  */
29549 _ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h.  */
29553 #include <$ac_header>
29554 _ACEOF
29555 if { (ac_try="$ac_cpp conftest.$ac_ext"
29556 case "(($ac_try" in
29557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558   *) ac_try_echo=$ac_try;;
29559 esac
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29562   ac_status=$?
29563   grep -v '^ *+' conftest.er1 >conftest.err
29564   rm -f conftest.er1
29565   cat conftest.err >&5
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); } >/dev/null && {
29568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29569          test ! -s conftest.err
29570        }; then
29571   ac_header_preproc=yes
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576   ac_header_preproc=no
29577 fi
29578
29579 rm -f conftest.err conftest.$ac_ext
29580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29581 echo "${ECHO_T}$ac_header_preproc" >&6; }
29582
29583 # So?  What about this header?
29584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29585   yes:no: )
29586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29590     ac_header_preproc=yes
29591     ;;
29592   no:yes:* )
29593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29605     ( cat <<\_ASBOX
29606 ## --------------------------------------------- ##
29607 ## Report this to <http://www.openldap.org/its/> ##
29608 ## --------------------------------------------- ##
29609 _ASBOX
29610      ) | sed "s/^/$as_me: WARNING:     /" >&2
29611     ;;
29612 esac
29613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618   eval "$as_ac_Header=\$ac_header_preproc"
29619 fi
29620 ac_res=`eval echo '${'$as_ac_Header'}'`
29621                { echo "$as_me:$LINENO: result: $ac_res" >&5
29622 echo "${ECHO_T}$ac_res" >&6; }
29623
29624 fi
29625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29626   cat >>confdefs.h <<_ACEOF
29627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29628 _ACEOF
29629
29630 else
29631
29632                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29633 echo "$as_me: error: could not locate SQL headers" >&2;}
29634    { (exit 1); exit 1; }; }
29635
29636 fi
29637
29638 done
29639
29640
29641         sql_LIBS="$LIBS"
29642         LIBS="$LTHREAD_LIBS"
29643
29644         if test $ol_with_odbc = auto ; then
29645                 ol_with_odbc="iodbc unixodbc odbc32"
29646         fi
29647
29648         for odbc in $ol_with_odbc ; do
29649                 if test $ol_link_sql = no ; then
29650                         case $odbc in
29651                         iodbc)
29652                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29653 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29654 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29655   echo $ECHO_N "(cached) $ECHO_C" >&6
29656 else
29657   ac_check_lib_save_LIBS=$LIBS
29658 LIBS="-liodbc  $LIBS"
29659 cat >conftest.$ac_ext <<_ACEOF
29660 /* confdefs.h.  */
29661 _ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h.  */
29665
29666 /* Override any GCC internal prototype to avoid an error.
29667    Use char because int might match the return type of a GCC
29668    builtin and then its argument prototype would still apply.  */
29669 #ifdef __cplusplus
29670 extern "C"
29671 #endif
29672 char SQLDriverConnect ();
29673 int
29674 main ()
29675 {
29676 return SQLDriverConnect ();
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_link") 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } && {
29695          test -z "$ac_c_werror_flag" ||
29696          test ! -s conftest.err
29697        } && test -s conftest$ac_exeext &&
29698        $as_test_x conftest$ac_exeext; then
29699   ac_cv_lib_iodbc_SQLDriverConnect=yes
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704         ac_cv_lib_iodbc_SQLDriverConnect=no
29705 fi
29706
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708       conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29710 fi
29711 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29712 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29713 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29714   have_iodbc=yes
29715 else
29716   have_iodbc=no
29717 fi
29718
29719                                 if test $have_iodbc = yes ; then
29720                                         ol_link_sql="-liodbc"
29721                                 fi
29722                                 ;;
29723
29724                         unixodbc)
29725                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29726 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29727 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29728   echo $ECHO_N "(cached) $ECHO_C" >&6
29729 else
29730   ac_check_lib_save_LIBS=$LIBS
29731 LIBS="-lodbc  $LIBS"
29732 cat >conftest.$ac_ext <<_ACEOF
29733 /* confdefs.h.  */
29734 _ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h.  */
29738
29739 /* Override any GCC internal prototype to avoid an error.
29740    Use char because int might match the return type of a GCC
29741    builtin and then its argument prototype would still apply.  */
29742 #ifdef __cplusplus
29743 extern "C"
29744 #endif
29745 char SQLDriverConnect ();
29746 int
29747 main ()
29748 {
29749 return SQLDriverConnect ();
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (ac_try="$ac_link"
29756 case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_link") 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } && {
29768          test -z "$ac_c_werror_flag" ||
29769          test ! -s conftest.err
29770        } && test -s conftest$ac_exeext &&
29771        $as_test_x conftest$ac_exeext; then
29772   ac_cv_lib_odbc_SQLDriverConnect=yes
29773 else
29774   echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777         ac_cv_lib_odbc_SQLDriverConnect=no
29778 fi
29779
29780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29781       conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29783 fi
29784 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29785 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29786 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29787   have_odbc=yes
29788 else
29789   have_odbc=no
29790 fi
29791
29792                                 if test $have_odbc = yes ; then
29793                                         ol_link_sql="-lodbc"
29794                                 fi
29795                                 ;;
29796
29797                         odbc32)
29798                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29799 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29800 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29801   echo $ECHO_N "(cached) $ECHO_C" >&6
29802 else
29803   ac_check_lib_save_LIBS=$LIBS
29804 LIBS="-lodbc32  $LIBS"
29805 cat >conftest.$ac_ext <<_ACEOF
29806 /* confdefs.h.  */
29807 _ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h.  */
29811
29812 /* Override any GCC internal prototype to avoid an error.
29813    Use char because int might match the return type of a GCC
29814    builtin and then its argument prototype would still apply.  */
29815 #ifdef __cplusplus
29816 extern "C"
29817 #endif
29818 char SQLDriverConnect ();
29819 int
29820 main ()
29821 {
29822 return SQLDriverConnect ();
29823   ;
29824   return 0;
29825 }
29826 _ACEOF
29827 rm -f conftest.$ac_objext conftest$ac_exeext
29828 if { (ac_try="$ac_link"
29829 case "(($ac_try" in
29830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831   *) ac_try_echo=$ac_try;;
29832 esac
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834   (eval "$ac_link") 2>conftest.er1
29835   ac_status=$?
29836   grep -v '^ *+' conftest.er1 >conftest.err
29837   rm -f conftest.er1
29838   cat conftest.err >&5
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); } && {
29841          test -z "$ac_c_werror_flag" ||
29842          test ! -s conftest.err
29843        } && test -s conftest$ac_exeext &&
29844        $as_test_x conftest$ac_exeext; then
29845   ac_cv_lib_odbc32_SQLDriverConnect=yes
29846 else
29847   echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29849
29850         ac_cv_lib_odbc32_SQLDriverConnect=no
29851 fi
29852
29853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29854       conftest$ac_exeext conftest.$ac_ext
29855 LIBS=$ac_check_lib_save_LIBS
29856 fi
29857 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29858 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29859 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29860   have_odbc32=yes
29861 else
29862   have_odbc32=no
29863 fi
29864
29865                                 if test $have_odbc32 = yes ; then
29866                                         ol_link_sql="-lodbc32"
29867                                 fi
29868                                 ;;
29869
29870                         *)
29871                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29872 echo "$as_me: error: unknown ODBC library" >&2;}
29873    { (exit 1); exit 1; }; }
29874                                 ;;
29875                         esac
29876                 fi
29877         done
29878
29879         LIBS="$sql_LIBS"
29880
29881         if test $ol_link_sql != no ; then
29882                 SLAPD_SQL_LIBS="$ol_link_sql"
29883
29884         elif test $ol_enable_sql != auto ; then
29885                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29886 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29887    { (exit 1); exit 1; }; }
29888         fi
29889 fi
29890
29891 ol_link_ndb=no
29892 if test $ol_enable_ndb != no ; then
29893         # Extract the first word of "mysql_config", so it can be a program name with args.
29894 set dummy mysql_config; ac_word=$2
29895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29897 if test "${ac_cv_prog_MYSQL+set}" = set; then
29898   echo $ECHO_N "(cached) $ECHO_C" >&6
29899 else
29900   if test -n "$MYSQL"; then
29901   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29902 else
29903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29904 for as_dir in $PATH
29905 do
29906   IFS=$as_save_IFS
29907   test -z "$as_dir" && as_dir=.
29908   for ac_exec_ext in '' $ac_executable_extensions; do
29909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29910     ac_cv_prog_MYSQL="yes"
29911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29912     break 2
29913   fi
29914 done
29915 done
29916 IFS=$as_save_IFS
29917
29918 fi
29919 fi
29920 MYSQL=$ac_cv_prog_MYSQL
29921 if test -n "$MYSQL"; then
29922   { echo "$as_me:$LINENO: result: $MYSQL" >&5
29923 echo "${ECHO_T}$MYSQL" >&6; }
29924 else
29925   { echo "$as_me:$LINENO: result: no" >&5
29926 echo "${ECHO_T}no" >&6; }
29927 fi
29928
29929
29930         if test "$MYSQL" != yes ; then
29931                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29932 echo "$as_me: error: could not locate mysql_config" >&2;}
29933    { (exit 1); exit 1; }; }
29934         fi
29935
29936         SQL_INC=`mysql_config --include`
29937         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29938
29939         save_CPPFLAGS="$CPPFLAGS"
29940         CPPFLAGS="$SLAPD_NDB_INCS"
29941         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29942 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29943         cat >conftest.$ac_ext <<_ACEOF
29944 /* confdefs.h.  */
29945 _ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h.  */
29949 #include <NdbApi.hpp>
29950 _ACEOF
29951 if { (ac_try="$ac_cpp conftest.$ac_ext"
29952 case "(($ac_try" in
29953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954   *) ac_try_echo=$ac_try;;
29955 esac
29956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29958   ac_status=$?
29959   grep -v '^ *+' conftest.er1 >conftest.err
29960   rm -f conftest.er1
29961   cat conftest.err >&5
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); } >/dev/null && {
29964          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29965          test ! -s conftest.err
29966        }; then
29967   { echo "$as_me:$LINENO: result: yes" >&5
29968 echo "${ECHO_T}yes" >&6; }
29969 else
29970   echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.$ac_ext >&5
29972
29973   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
29974 echo "$as_me: error: could not locate NdbApi headers" >&2;}
29975    { (exit 1); exit 1; }; }
29976
29977 fi
29978
29979 rm -f conftest.err conftest.$ac_ext
29980         CPPFLAGS="$save_CPPFLAGS"
29981
29982         SQL_LIB=`mysql_config --libs_r`
29983         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
29984
29985         save_LDFLAGS="$LDFLAGS"
29986         save_LIBS="$LIBS"
29987         LDFLAGS="$SQL_LIB"
29988         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
29989 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
29990 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
29991   echo $ECHO_N "(cached) $ECHO_C" >&6
29992 else
29993   ac_check_lib_save_LIBS=$LIBS
29994 LIBS="-lndbclient -lstdc++ $LIBS"
29995 cat >conftest.$ac_ext <<_ACEOF
29996 /* confdefs.h.  */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h.  */
30001
30002 /* Override any GCC internal prototype to avoid an error.
30003    Use char because int might match the return type of a GCC
30004    builtin and then its argument prototype would still apply.  */
30005 #ifdef __cplusplus
30006 extern "C"
30007 #endif
30008 char ndb_init ();
30009 int
30010 main ()
30011 {
30012 return ndb_init ();
30013   ;
30014   return 0;
30015 }
30016 _ACEOF
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (ac_try="$ac_link"
30019 case "(($ac_try" in
30020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021   *) ac_try_echo=$ac_try;;
30022 esac
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024   (eval "$ac_link") 2>conftest.er1
30025   ac_status=$?
30026   grep -v '^ *+' conftest.er1 >conftest.err
30027   rm -f conftest.er1
30028   cat conftest.err >&5
30029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); } && {
30031          test -z "$ac_c_werror_flag" ||
30032          test ! -s conftest.err
30033        } && test -s conftest$ac_exeext &&
30034        $as_test_x conftest$ac_exeext; then
30035   ac_cv_lib_ndbclient_ndb_init=yes
30036 else
30037   echo "$as_me: failed program was:" >&5
30038 sed 's/^/| /' conftest.$ac_ext >&5
30039
30040         ac_cv_lib_ndbclient_ndb_init=no
30041 fi
30042
30043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30044       conftest$ac_exeext conftest.$ac_ext
30045 LIBS=$ac_check_lib_save_LIBS
30046 fi
30047 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30048 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30049 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30050   : ok
30051 else
30052
30053                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30054 echo "$as_me: error: could not locate ndbclient library" >&2;}
30055    { (exit 1); exit 1; }; }
30056
30057 fi
30058
30059         LIBS="$save_LIBS"
30060         LDFLAGS="$save_LDFLAGS"
30061
30062         if test "$ol_enable_ndb" = yes ; then
30063                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30064         fi
30065 fi
30066
30067 ol_icu=no
30068
30069 for ac_header in unicode/utypes.h
30070 do
30071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30076   echo $ECHO_N "(cached) $ECHO_C" >&6
30077 fi
30078 ac_res=`eval echo '${'$as_ac_Header'}'`
30079                { echo "$as_me:$LINENO: result: $ac_res" >&5
30080 echo "${ECHO_T}$ac_res" >&6; }
30081 else
30082   # Is the header compilable?
30083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30085 cat >conftest.$ac_ext <<_ACEOF
30086 /* confdefs.h.  */
30087 _ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h.  */
30091 $ac_includes_default
30092 #include <$ac_header>
30093 _ACEOF
30094 rm -f conftest.$ac_objext
30095 if { (ac_try="$ac_compile"
30096 case "(($ac_try" in
30097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098   *) ac_try_echo=$ac_try;;
30099 esac
30100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101   (eval "$ac_compile") 2>conftest.er1
30102   ac_status=$?
30103   grep -v '^ *+' conftest.er1 >conftest.err
30104   rm -f conftest.er1
30105   cat conftest.err >&5
30106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107   (exit $ac_status); } && {
30108          test -z "$ac_c_werror_flag" ||
30109          test ! -s conftest.err
30110        } && test -s conftest.$ac_objext; then
30111   ac_header_compiler=yes
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116         ac_header_compiler=no
30117 fi
30118
30119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30121 echo "${ECHO_T}$ac_header_compiler" >&6; }
30122
30123 # Is the header present?
30124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30126 cat >conftest.$ac_ext <<_ACEOF
30127 /* confdefs.h.  */
30128 _ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h.  */
30132 #include <$ac_header>
30133 _ACEOF
30134 if { (ac_try="$ac_cpp conftest.$ac_ext"
30135 case "(($ac_try" in
30136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137   *) ac_try_echo=$ac_try;;
30138 esac
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30141   ac_status=$?
30142   grep -v '^ *+' conftest.er1 >conftest.err
30143   rm -f conftest.er1
30144   cat conftest.err >&5
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); } >/dev/null && {
30147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30148          test ! -s conftest.err
30149        }; then
30150   ac_header_preproc=yes
30151 else
30152   echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30154
30155   ac_header_preproc=no
30156 fi
30157
30158 rm -f conftest.err conftest.$ac_ext
30159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30160 echo "${ECHO_T}$ac_header_preproc" >&6; }
30161
30162 # So?  What about this header?
30163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30164   yes:no: )
30165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30169     ac_header_preproc=yes
30170     ;;
30171   no:yes:* )
30172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30184     ( cat <<\_ASBOX
30185 ## --------------------------------------------- ##
30186 ## Report this to <http://www.openldap.org/its/> ##
30187 ## --------------------------------------------- ##
30188 _ASBOX
30189      ) | sed "s/^/$as_me: WARNING:     /" >&2
30190     ;;
30191 esac
30192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30195   echo $ECHO_N "(cached) $ECHO_C" >&6
30196 else
30197   eval "$as_ac_Header=\$ac_header_preproc"
30198 fi
30199 ac_res=`eval echo '${'$as_ac_Header'}'`
30200                { echo "$as_me:$LINENO: result: $ac_res" >&5
30201 echo "${ECHO_T}$ac_res" >&6; }
30202
30203 fi
30204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30205   cat >>confdefs.h <<_ACEOF
30206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30207 _ACEOF
30208
30209 fi
30210
30211 done
30212
30213 if test $ac_cv_header_unicode_utypes_h = yes ; then
30214                 OL_ICULIBS="-licuuc -licudata"
30215
30216         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30217 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30218 if test "${ol_cv_lib_icu+set}" = set; then
30219   echo $ECHO_N "(cached) $ECHO_C" >&6
30220 else
30221
30222                 ol_LIBS="$LIBS"
30223                 LIBS="$OL_ICULIBS $LIBS"
30224                 cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230
30231 #include <unicode/utypes.h>
30232
30233 int
30234 main ()
30235 {
30236
30237 (void) u_errorName(0);
30238
30239   ;
30240   return 0;
30241 }
30242 _ACEOF
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247   *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250   (eval "$ac_link") 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } && {
30257          test -z "$ac_c_werror_flag" ||
30258          test ! -s conftest.err
30259        } && test -s conftest$ac_exeext &&
30260        $as_test_x conftest$ac_exeext; then
30261   ol_cv_lib_icu=yes
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         ol_cv_lib_icu=no
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270       conftest$ac_exeext conftest.$ac_ext
30271                 LIBS="$ol_LIBS"
30272
30273 fi
30274 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30275 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30276
30277         if test $ol_cv_lib_icu != no ; then
30278                 ol_icu="$OL_ICULIBS"
30279
30280 cat >>confdefs.h <<\_ACEOF
30281 #define HAVE_ICU 1
30282 _ACEOF
30283
30284         fi
30285 fi
30286
30287 if test "$ol_icu" = no ; then
30288         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30289 echo "$as_me: WARNING: ICU not available" >&2;}
30290 else
30291         ICU_LIBS="$ol_icu"
30292 fi
30293 WITH_SASL=no
30294 ol_link_sasl=no
30295 ol_link_spasswd=no
30296 if test $ol_with_cyrus_sasl != no ; then
30297
30298
30299 for ac_header in sasl/sasl.h sasl.h
30300 do
30301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30306   echo $ECHO_N "(cached) $ECHO_C" >&6
30307 fi
30308 ac_res=`eval echo '${'$as_ac_Header'}'`
30309                { echo "$as_me:$LINENO: result: $ac_res" >&5
30310 echo "${ECHO_T}$ac_res" >&6; }
30311 else
30312   # Is the header compilable?
30313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30315 cat >conftest.$ac_ext <<_ACEOF
30316 /* confdefs.h.  */
30317 _ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h.  */
30321 $ac_includes_default
30322 #include <$ac_header>
30323 _ACEOF
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328   *) ac_try_echo=$ac_try;;
30329 esac
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331   (eval "$ac_compile") 2>conftest.er1
30332   ac_status=$?
30333   grep -v '^ *+' conftest.er1 >conftest.err
30334   rm -f conftest.er1
30335   cat conftest.err >&5
30336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337   (exit $ac_status); } && {
30338          test -z "$ac_c_werror_flag" ||
30339          test ! -s conftest.err
30340        } && test -s conftest.$ac_objext; then
30341   ac_header_compiler=yes
30342 else
30343   echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30345
30346         ac_header_compiler=no
30347 fi
30348
30349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30351 echo "${ECHO_T}$ac_header_compiler" >&6; }
30352
30353 # Is the header present?
30354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30356 cat >conftest.$ac_ext <<_ACEOF
30357 /* confdefs.h.  */
30358 _ACEOF
30359 cat confdefs.h >>conftest.$ac_ext
30360 cat >>conftest.$ac_ext <<_ACEOF
30361 /* end confdefs.h.  */
30362 #include <$ac_header>
30363 _ACEOF
30364 if { (ac_try="$ac_cpp conftest.$ac_ext"
30365 case "(($ac_try" in
30366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367   *) ac_try_echo=$ac_try;;
30368 esac
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30371   ac_status=$?
30372   grep -v '^ *+' conftest.er1 >conftest.err
30373   rm -f conftest.er1
30374   cat conftest.err >&5
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); } >/dev/null && {
30377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30378          test ! -s conftest.err
30379        }; then
30380   ac_header_preproc=yes
30381 else
30382   echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30384
30385   ac_header_preproc=no
30386 fi
30387
30388 rm -f conftest.err conftest.$ac_ext
30389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30390 echo "${ECHO_T}$ac_header_preproc" >&6; }
30391
30392 # So?  What about this header?
30393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30394   yes:no: )
30395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30399     ac_header_preproc=yes
30400     ;;
30401   no:yes:* )
30402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30414     ( cat <<\_ASBOX
30415 ## --------------------------------------------- ##
30416 ## Report this to <http://www.openldap.org/its/> ##
30417 ## --------------------------------------------- ##
30418 _ASBOX
30419      ) | sed "s/^/$as_me: WARNING:     /" >&2
30420     ;;
30421 esac
30422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30425   echo $ECHO_N "(cached) $ECHO_C" >&6
30426 else
30427   eval "$as_ac_Header=\$ac_header_preproc"
30428 fi
30429 ac_res=`eval echo '${'$as_ac_Header'}'`
30430                { echo "$as_me:$LINENO: result: $ac_res" >&5
30431 echo "${ECHO_T}$ac_res" >&6; }
30432
30433 fi
30434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30435   cat >>confdefs.h <<_ACEOF
30436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30437 _ACEOF
30438
30439 fi
30440
30441 done
30442
30443
30444         if test $ac_cv_header_sasl_sasl_h = yes ||
30445            test $ac_cv_header_sasl_h = yes; then
30446                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30447 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30448 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30449   echo $ECHO_N "(cached) $ECHO_C" >&6
30450 else
30451   ac_check_lib_save_LIBS=$LIBS
30452 LIBS="-lsasl2  $LIBS"
30453 cat >conftest.$ac_ext <<_ACEOF
30454 /* confdefs.h.  */
30455 _ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h.  */
30459
30460 /* Override any GCC internal prototype to avoid an error.
30461    Use char because int might match the return type of a GCC
30462    builtin and then its argument prototype would still apply.  */
30463 #ifdef __cplusplus
30464 extern "C"
30465 #endif
30466 char sasl_client_init ();
30467 int
30468 main ()
30469 {
30470 return sasl_client_init ();
30471   ;
30472   return 0;
30473 }
30474 _ACEOF
30475 rm -f conftest.$ac_objext conftest$ac_exeext
30476 if { (ac_try="$ac_link"
30477 case "(($ac_try" in
30478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479   *) ac_try_echo=$ac_try;;
30480 esac
30481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482   (eval "$ac_link") 2>conftest.er1
30483   ac_status=$?
30484   grep -v '^ *+' conftest.er1 >conftest.err
30485   rm -f conftest.er1
30486   cat conftest.err >&5
30487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488   (exit $ac_status); } && {
30489          test -z "$ac_c_werror_flag" ||
30490          test ! -s conftest.err
30491        } && test -s conftest$ac_exeext &&
30492        $as_test_x conftest$ac_exeext; then
30493   ac_cv_lib_sasl2_sasl_client_init=yes
30494 else
30495   echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30497
30498         ac_cv_lib_sasl2_sasl_client_init=no
30499 fi
30500
30501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30502       conftest$ac_exeext conftest.$ac_ext
30503 LIBS=$ac_check_lib_save_LIBS
30504 fi
30505 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30506 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30507 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30508   ol_link_sasl="-lsasl2"
30509 else
30510   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30511 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30512 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30513   echo $ECHO_N "(cached) $ECHO_C" >&6
30514 else
30515   ac_check_lib_save_LIBS=$LIBS
30516 LIBS="-lsasl  $LIBS"
30517 cat >conftest.$ac_ext <<_ACEOF
30518 /* confdefs.h.  */
30519 _ACEOF
30520 cat confdefs.h >>conftest.$ac_ext
30521 cat >>conftest.$ac_ext <<_ACEOF
30522 /* end confdefs.h.  */
30523
30524 /* Override any GCC internal prototype to avoid an error.
30525    Use char because int might match the return type of a GCC
30526    builtin and then its argument prototype would still apply.  */
30527 #ifdef __cplusplus
30528 extern "C"
30529 #endif
30530 char sasl_client_init ();
30531 int
30532 main ()
30533 {
30534 return sasl_client_init ();
30535   ;
30536   return 0;
30537 }
30538 _ACEOF
30539 rm -f conftest.$ac_objext conftest$ac_exeext
30540 if { (ac_try="$ac_link"
30541 case "(($ac_try" in
30542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543   *) ac_try_echo=$ac_try;;
30544 esac
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546   (eval "$ac_link") 2>conftest.er1
30547   ac_status=$?
30548   grep -v '^ *+' conftest.er1 >conftest.err
30549   rm -f conftest.er1
30550   cat conftest.err >&5
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); } && {
30553          test -z "$ac_c_werror_flag" ||
30554          test ! -s conftest.err
30555        } && test -s conftest$ac_exeext &&
30556        $as_test_x conftest$ac_exeext; then
30557   ac_cv_lib_sasl_sasl_client_init=yes
30558 else
30559   echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30561
30562         ac_cv_lib_sasl_sasl_client_init=no
30563 fi
30564
30565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30566       conftest$ac_exeext conftest.$ac_ext
30567 LIBS=$ac_check_lib_save_LIBS
30568 fi
30569 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30570 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30571 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30572   ol_link_sasl="-lsasl"
30573 fi
30574
30575 fi
30576
30577         fi
30578
30579         if test $ol_link_sasl = no ; then
30580                 if test $ol_with_cyrus_sasl != auto ; then
30581                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30582 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30583    { (exit 1); exit 1; }; }
30584                 else
30585                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30586 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30587                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30588 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30589                         if test $ol_link_tls = no ; then
30590                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30591 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30592                         fi
30593                 fi
30594         else
30595                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30596 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30597 if test "${ol_cv_sasl_compat+set}" = set; then
30598   echo $ECHO_N "(cached) $ECHO_C" >&6
30599 else
30600
30601         cat >conftest.$ac_ext <<_ACEOF
30602 /* confdefs.h.  */
30603 _ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h.  */
30607
30608 #ifdef HAVE_SASL_SASL_H
30609 #include <sasl/sasl.h>
30610 #else
30611 #include <sasl.h>
30612 #endif
30613
30614 /* Require 2.1.15+ */
30615 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30616         char *__sasl_compat = "2.2+ or better okay (we guess)";
30617 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30618         && SASL_VERSION_STEP >=15
30619         char *__sasl_compat = "2.1.15+ or better okay";
30620 #endif
30621
30622 _ACEOF
30623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30624   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30625   ol_cv_sasl_compat=yes
30626 else
30627   ol_cv_sasl_compat=no
30628 fi
30629 rm -f conftest*
30630
30631 fi
30632 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30633 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30634
30635                 if test $ol_cv_sasl_compat = no ; then
30636                         ol_link_sasl=no
30637                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30638 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30639    { (exit 1); exit 1; }; }
30640                 fi
30641
30642
30643 cat >>confdefs.h <<\_ACEOF
30644 #define HAVE_CYRUS_SASL 1
30645 _ACEOF
30646
30647                 SASL_LIBS="$ol_link_sasl"
30648                 if test $ol_enable_spasswd != no ; then
30649                         ol_link_spasswd=yes
30650                 fi
30651
30652                 ac_save_LIBS="$LIBS"
30653                 LIBS="$LIBS $ol_link_sasl"
30654                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30655 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30656 if test "${ac_cv_func_sasl_version+set}" = set; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659   cat >conftest.$ac_ext <<_ACEOF
30660 /* confdefs.h.  */
30661 _ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h.  */
30665 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30667 #define sasl_version innocuous_sasl_version
30668
30669 /* System header to define __stub macros and hopefully few prototypes,
30670     which can conflict with char sasl_version (); below.
30671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30672     <limits.h> exists even on freestanding compilers.  */
30673
30674 #ifdef __STDC__
30675 # include <limits.h>
30676 #else
30677 # include <assert.h>
30678 #endif
30679
30680 #undef sasl_version
30681
30682 /* Override any GCC internal prototype to avoid an error.
30683    Use char because int might match the return type of a GCC
30684    builtin and then its argument prototype would still apply.  */
30685 #ifdef __cplusplus
30686 extern "C"
30687 #endif
30688 char sasl_version ();
30689 /* The GNU C library defines this for functions which it implements
30690     to always fail with ENOSYS.  Some functions are actually named
30691     something starting with __ and the normal name is an alias.  */
30692 #if defined __stub_sasl_version || defined __stub___sasl_version
30693 choke me
30694 #endif
30695
30696 int
30697 main ()
30698 {
30699 return sasl_version ();
30700   ;
30701   return 0;
30702 }
30703 _ACEOF
30704 rm -f conftest.$ac_objext conftest$ac_exeext
30705 if { (ac_try="$ac_link"
30706 case "(($ac_try" in
30707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708   *) ac_try_echo=$ac_try;;
30709 esac
30710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711   (eval "$ac_link") 2>conftest.er1
30712   ac_status=$?
30713   grep -v '^ *+' conftest.er1 >conftest.err
30714   rm -f conftest.er1
30715   cat conftest.err >&5
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); } && {
30718          test -z "$ac_c_werror_flag" ||
30719          test ! -s conftest.err
30720        } && test -s conftest$ac_exeext &&
30721        $as_test_x conftest$ac_exeext; then
30722   ac_cv_func_sasl_version=yes
30723 else
30724   echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30726
30727         ac_cv_func_sasl_version=no
30728 fi
30729
30730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30731       conftest$ac_exeext conftest.$ac_ext
30732 fi
30733 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30734 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30735 if test $ac_cv_func_sasl_version = yes; then
30736
30737 cat >>confdefs.h <<\_ACEOF
30738 #define HAVE_SASL_VERSION 1
30739 _ACEOF
30740
30741 fi
30742
30743                 LIBS="$ac_save_LIBS"
30744
30745                 WITH_SASL=yes
30746         fi
30747
30748 else
30749         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30750 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30751         if test $ol_link_tls = no ; then
30752                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30753 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30754         fi
30755 fi
30756
30757 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30758         dev=no
30759         if test -r /dev/urandom ; then
30760                 dev="/dev/urandom";
30761         elif test -r /idev/urandom ; then
30762                 dev="/idev/urandom";
30763         elif test -r /dev/srandom ; then
30764                 dev="/dev/srandom";
30765         elif test -r /dev/random ; then
30766                 dev="/dev/random";
30767         elif test -r /idev/random ; then
30768                 dev="/idev/random";
30769         fi
30770
30771         if test $dev != no ; then
30772
30773 cat >>confdefs.h <<_ACEOF
30774 #define URANDOM_DEVICE "$dev"
30775 _ACEOF
30776
30777         fi
30778 fi
30779
30780 ol_link_fetch=no
30781 if test $ol_with_fetch != no ; then
30782         ol_LIBS=$LIBS
30783 LIBS="-lfetch -lcom_err $LIBS"
30784 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30785 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30786 if test "${ol_cv_lib_fetch+set}" = set; then
30787   echo $ECHO_N "(cached) $ECHO_C" >&6
30788 else
30789
30790         cat >conftest.$ac_ext <<_ACEOF
30791 /* confdefs.h.  */
30792 _ACEOF
30793 cat confdefs.h >>conftest.$ac_ext
30794 cat >>conftest.$ac_ext <<_ACEOF
30795 /* end confdefs.h.  */
30796
30797 #ifdef HAVE_SYS_PARAM_H
30798 #include <sys/param.h>
30799 #endif
30800 #include <stdio.h>
30801 #include <fetch.h>
30802 int
30803 main ()
30804 {
30805 struct url *u = fetchParseURL("file:///");
30806   ;
30807   return 0;
30808 }
30809 _ACEOF
30810 rm -f conftest.$ac_objext conftest$ac_exeext
30811 if { (ac_try="$ac_link"
30812 case "(($ac_try" in
30813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814   *) ac_try_echo=$ac_try;;
30815 esac
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817   (eval "$ac_link") 2>conftest.er1
30818   ac_status=$?
30819   grep -v '^ *+' conftest.er1 >conftest.err
30820   rm -f conftest.er1
30821   cat conftest.err >&5
30822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); } && {
30824          test -z "$ac_c_werror_flag" ||
30825          test ! -s conftest.err
30826        } && test -s conftest$ac_exeext &&
30827        $as_test_x conftest$ac_exeext; then
30828   ol_cv_lib_fetch=yes
30829 else
30830   echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833         ol_cv_lib_fetch=no
30834 fi
30835
30836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30837       conftest$ac_exeext conftest.$ac_ext
30838 fi
30839 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30840 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30841 LIBS=$ol_LIBS
30842 if test $ol_cv_lib_fetch != no ; then
30843         ol_link_fetch="-lfetch -lcom_err"
30844
30845 cat >>confdefs.h <<\_ACEOF
30846 #define HAVE_FETCH 1
30847 _ACEOF
30848
30849 fi
30850
30851
30852         if test $ol_cv_lib_fetch != no ; then
30853                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30854                 ol_link_fetch=freebsd
30855
30856         elif test $ol_with_fetch != auto ; then
30857                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30858 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30859    { (exit 1); exit 1; }; }
30860         fi
30861 fi
30862
30863 if test $ol_enable_crypt != no ; then
30864         save_LIBS="$LIBS"
30865         LIBS="$TLS_LIBS $LIBS"
30866
30867         { echo "$as_me:$LINENO: checking for crypt" >&5
30868 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30869 if test "${ac_cv_func_crypt+set}" = set; then
30870   echo $ECHO_N "(cached) $ECHO_C" >&6
30871 else
30872   cat >conftest.$ac_ext <<_ACEOF
30873 /* confdefs.h.  */
30874 _ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h.  */
30878 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30880 #define crypt innocuous_crypt
30881
30882 /* System header to define __stub macros and hopefully few prototypes,
30883     which can conflict with char crypt (); below.
30884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885     <limits.h> exists even on freestanding compilers.  */
30886
30887 #ifdef __STDC__
30888 # include <limits.h>
30889 #else
30890 # include <assert.h>
30891 #endif
30892
30893 #undef crypt
30894
30895 /* Override any GCC internal prototype to avoid an error.
30896    Use char because int might match the return type of a GCC
30897    builtin and then its argument prototype would still apply.  */
30898 #ifdef __cplusplus
30899 extern "C"
30900 #endif
30901 char crypt ();
30902 /* The GNU C library defines this for functions which it implements
30903     to always fail with ENOSYS.  Some functions are actually named
30904     something starting with __ and the normal name is an alias.  */
30905 #if defined __stub_crypt || defined __stub___crypt
30906 choke me
30907 #endif
30908
30909 int
30910 main ()
30911 {
30912 return crypt ();
30913   ;
30914   return 0;
30915 }
30916 _ACEOF
30917 rm -f conftest.$ac_objext conftest$ac_exeext
30918 if { (ac_try="$ac_link"
30919 case "(($ac_try" in
30920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921   *) ac_try_echo=$ac_try;;
30922 esac
30923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924   (eval "$ac_link") 2>conftest.er1
30925   ac_status=$?
30926   grep -v '^ *+' conftest.er1 >conftest.err
30927   rm -f conftest.er1
30928   cat conftest.err >&5
30929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930   (exit $ac_status); } && {
30931          test -z "$ac_c_werror_flag" ||
30932          test ! -s conftest.err
30933        } && test -s conftest$ac_exeext &&
30934        $as_test_x conftest$ac_exeext; then
30935   ac_cv_func_crypt=yes
30936 else
30937   echo "$as_me: failed program was:" >&5
30938 sed 's/^/| /' conftest.$ac_ext >&5
30939
30940         ac_cv_func_crypt=no
30941 fi
30942
30943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30944       conftest$ac_exeext conftest.$ac_ext
30945 fi
30946 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30947 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30948 if test $ac_cv_func_crypt = yes; then
30949   have_crypt=yes
30950 else
30951
30952                 LIBS="$save_LIBS"
30953                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30954 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30955 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30956   echo $ECHO_N "(cached) $ECHO_C" >&6
30957 else
30958   ac_check_lib_save_LIBS=$LIBS
30959 LIBS="-lcrypt  $LIBS"
30960 cat >conftest.$ac_ext <<_ACEOF
30961 /* confdefs.h.  */
30962 _ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h.  */
30966
30967 /* Override any GCC internal prototype to avoid an error.
30968    Use char because int might match the return type of a GCC
30969    builtin and then its argument prototype would still apply.  */
30970 #ifdef __cplusplus
30971 extern "C"
30972 #endif
30973 char crypt ();
30974 int
30975 main ()
30976 {
30977 return crypt ();
30978   ;
30979   return 0;
30980 }
30981 _ACEOF
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (ac_try="$ac_link"
30984 case "(($ac_try" in
30985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986   *) ac_try_echo=$ac_try;;
30987 esac
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989   (eval "$ac_link") 2>conftest.er1
30990   ac_status=$?
30991   grep -v '^ *+' conftest.er1 >conftest.err
30992   rm -f conftest.er1
30993   cat conftest.err >&5
30994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995   (exit $ac_status); } && {
30996          test -z "$ac_c_werror_flag" ||
30997          test ! -s conftest.err
30998        } && test -s conftest$ac_exeext &&
30999        $as_test_x conftest$ac_exeext; then
31000   ac_cv_lib_crypt_crypt=yes
31001 else
31002   echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005         ac_cv_lib_crypt_crypt=no
31006 fi
31007
31008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31009       conftest$ac_exeext conftest.$ac_ext
31010 LIBS=$ac_check_lib_save_LIBS
31011 fi
31012 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31013 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31014 if test $ac_cv_lib_crypt_crypt = yes; then
31015   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31016                         have_crypt=yes
31017 else
31018   have_crypt=no
31019 fi
31020
31021 fi
31022
31023
31024         LIBS="$save_LIBS"
31025
31026         if test $have_crypt = yes ; then
31027
31028 cat >>confdefs.h <<\_ACEOF
31029 #define HAVE_CRYPT 1
31030 _ACEOF
31031
31032         else
31033                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31034 echo "$as_me: WARNING: could not find crypt" >&2;}
31035                 if test $ol_enable_crypt = yes ; then
31036                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31037 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31038    { (exit 1); exit 1; }; }
31039                 fi
31040
31041                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31042 echo "$as_me: WARNING: disabling crypt support" >&2;}
31043                 ol_enable_crypt=no
31044         fi
31045 fi
31046
31047 if test $ol_enable_proctitle != no ; then
31048         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31049 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31050 if test "${ac_cv_func_setproctitle+set}" = set; then
31051   echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053   cat >conftest.$ac_ext <<_ACEOF
31054 /* confdefs.h.  */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h.  */
31059 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31061 #define setproctitle innocuous_setproctitle
31062
31063 /* System header to define __stub macros and hopefully few prototypes,
31064     which can conflict with char setproctitle (); below.
31065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31066     <limits.h> exists even on freestanding compilers.  */
31067
31068 #ifdef __STDC__
31069 # include <limits.h>
31070 #else
31071 # include <assert.h>
31072 #endif
31073
31074 #undef setproctitle
31075
31076 /* Override any GCC internal prototype to avoid an error.
31077    Use char because int might match the return type of a GCC
31078    builtin and then its argument prototype would still apply.  */
31079 #ifdef __cplusplus
31080 extern "C"
31081 #endif
31082 char setproctitle ();
31083 /* The GNU C library defines this for functions which it implements
31084     to always fail with ENOSYS.  Some functions are actually named
31085     something starting with __ and the normal name is an alias.  */
31086 #if defined __stub_setproctitle || defined __stub___setproctitle
31087 choke me
31088 #endif
31089
31090 int
31091 main ()
31092 {
31093 return setproctitle ();
31094   ;
31095   return 0;
31096 }
31097 _ACEOF
31098 rm -f conftest.$ac_objext conftest$ac_exeext
31099 if { (ac_try="$ac_link"
31100 case "(($ac_try" in
31101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31102   *) ac_try_echo=$ac_try;;
31103 esac
31104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31105   (eval "$ac_link") 2>conftest.er1
31106   ac_status=$?
31107   grep -v '^ *+' conftest.er1 >conftest.err
31108   rm -f conftest.er1
31109   cat conftest.err >&5
31110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111   (exit $ac_status); } && {
31112          test -z "$ac_c_werror_flag" ||
31113          test ! -s conftest.err
31114        } && test -s conftest$ac_exeext &&
31115        $as_test_x conftest$ac_exeext; then
31116   ac_cv_func_setproctitle=yes
31117 else
31118   echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31120
31121         ac_cv_func_setproctitle=no
31122 fi
31123
31124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31125       conftest$ac_exeext conftest.$ac_ext
31126 fi
31127 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31128 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31129 if test $ac_cv_func_setproctitle = yes; then
31130   have_setproctitle=yes
31131 else
31132
31133                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31134 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31135 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31136   echo $ECHO_N "(cached) $ECHO_C" >&6
31137 else
31138   ac_check_lib_save_LIBS=$LIBS
31139 LIBS="-lutil  $LIBS"
31140 cat >conftest.$ac_ext <<_ACEOF
31141 /* confdefs.h.  */
31142 _ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h.  */
31146
31147 /* Override any GCC internal prototype to avoid an error.
31148    Use char because int might match the return type of a GCC
31149    builtin and then its argument prototype would still apply.  */
31150 #ifdef __cplusplus
31151 extern "C"
31152 #endif
31153 char setproctitle ();
31154 int
31155 main ()
31156 {
31157 return setproctitle ();
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (ac_try="$ac_link"
31164 case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_link") 2>conftest.er1
31170   ac_status=$?
31171   grep -v '^ *+' conftest.er1 >conftest.err
31172   rm -f conftest.er1
31173   cat conftest.err >&5
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); } && {
31176          test -z "$ac_c_werror_flag" ||
31177          test ! -s conftest.err
31178        } && test -s conftest$ac_exeext &&
31179        $as_test_x conftest$ac_exeext; then
31180   ac_cv_lib_util_setproctitle=yes
31181 else
31182   echo "$as_me: failed program was:" >&5
31183 sed 's/^/| /' conftest.$ac_ext >&5
31184
31185         ac_cv_lib_util_setproctitle=no
31186 fi
31187
31188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31189       conftest$ac_exeext conftest.$ac_ext
31190 LIBS=$ac_check_lib_save_LIBS
31191 fi
31192 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31193 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31194 if test $ac_cv_lib_util_setproctitle = yes; then
31195   have_setproctitle=yes
31196                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31197 else
31198   have_setproctitle=no
31199                         case " $LIBOBJS " in
31200   *" setproctitle.$ac_objext "* ) ;;
31201   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31202  ;;
31203 esac
31204
31205                         LIBSRCS="$LIBSRCS setproctitle.c"
31206 fi
31207
31208 fi
31209
31210
31211         if test $have_setproctitle = yes ; then
31212
31213 cat >>confdefs.h <<\_ACEOF
31214 #define HAVE_SETPROCTITLE 1
31215 _ACEOF
31216
31217         fi
31218 fi
31219
31220 if test $ol_enable_slp != no ; then
31221
31222 for ac_header in slp.h
31223 do
31224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31229   echo $ECHO_N "(cached) $ECHO_C" >&6
31230 fi
31231 ac_res=`eval echo '${'$as_ac_Header'}'`
31232                { echo "$as_me:$LINENO: result: $ac_res" >&5
31233 echo "${ECHO_T}$ac_res" >&6; }
31234 else
31235   # Is the header compilable?
31236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31238 cat >conftest.$ac_ext <<_ACEOF
31239 /* confdefs.h.  */
31240 _ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h.  */
31244 $ac_includes_default
31245 #include <$ac_header>
31246 _ACEOF
31247 rm -f conftest.$ac_objext
31248 if { (ac_try="$ac_compile"
31249 case "(($ac_try" in
31250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251   *) ac_try_echo=$ac_try;;
31252 esac
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254   (eval "$ac_compile") 2>conftest.er1
31255   ac_status=$?
31256   grep -v '^ *+' conftest.er1 >conftest.err
31257   rm -f conftest.er1
31258   cat conftest.err >&5
31259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260   (exit $ac_status); } && {
31261          test -z "$ac_c_werror_flag" ||
31262          test ! -s conftest.err
31263        } && test -s conftest.$ac_objext; then
31264   ac_header_compiler=yes
31265 else
31266   echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31268
31269         ac_header_compiler=no
31270 fi
31271
31272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31274 echo "${ECHO_T}$ac_header_compiler" >&6; }
31275
31276 # Is the header present?
31277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31279 cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 #include <$ac_header>
31286 _ACEOF
31287 if { (ac_try="$ac_cpp conftest.$ac_ext"
31288 case "(($ac_try" in
31289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290   *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31294   ac_status=$?
31295   grep -v '^ *+' conftest.er1 >conftest.err
31296   rm -f conftest.er1
31297   cat conftest.err >&5
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); } >/dev/null && {
31300          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31301          test ! -s conftest.err
31302        }; then
31303   ac_header_preproc=yes
31304 else
31305   echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31307
31308   ac_header_preproc=no
31309 fi
31310
31311 rm -f conftest.err conftest.$ac_ext
31312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31313 echo "${ECHO_T}$ac_header_preproc" >&6; }
31314
31315 # So?  What about this header?
31316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31317   yes:no: )
31318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31322     ac_header_preproc=yes
31323     ;;
31324   no:yes:* )
31325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31337     ( cat <<\_ASBOX
31338 ## --------------------------------------------- ##
31339 ## Report this to <http://www.openldap.org/its/> ##
31340 ## --------------------------------------------- ##
31341 _ASBOX
31342      ) | sed "s/^/$as_me: WARNING:     /" >&2
31343     ;;
31344 esac
31345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348   echo $ECHO_N "(cached) $ECHO_C" >&6
31349 else
31350   eval "$as_ac_Header=\$ac_header_preproc"
31351 fi
31352 ac_res=`eval echo '${'$as_ac_Header'}'`
31353                { echo "$as_me:$LINENO: result: $ac_res" >&5
31354 echo "${ECHO_T}$ac_res" >&6; }
31355
31356 fi
31357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31358   cat >>confdefs.h <<_ACEOF
31359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31360 _ACEOF
31361
31362 fi
31363
31364 done
31365
31366
31367         if test $ac_cv_header_slp_h = yes ; then
31368                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31369 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31370 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31371   echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373   ac_check_lib_save_LIBS=$LIBS
31374 LIBS="-lslp  $LIBS"
31375 cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381
31382 /* Override any GCC internal prototype to avoid an error.
31383    Use char because int might match the return type of a GCC
31384    builtin and then its argument prototype would still apply.  */
31385 #ifdef __cplusplus
31386 extern "C"
31387 #endif
31388 char SLPOpen ();
31389 int
31390 main ()
31391 {
31392 return SLPOpen ();
31393   ;
31394   return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (ac_try="$ac_link"
31399 case "(($ac_try" in
31400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401   *) ac_try_echo=$ac_try;;
31402 esac
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404   (eval "$ac_link") 2>conftest.er1
31405   ac_status=$?
31406   grep -v '^ *+' conftest.er1 >conftest.err
31407   rm -f conftest.er1
31408   cat conftest.err >&5
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); } && {
31411          test -z "$ac_c_werror_flag" ||
31412          test ! -s conftest.err
31413        } && test -s conftest$ac_exeext &&
31414        $as_test_x conftest$ac_exeext; then
31415   ac_cv_lib_slp_SLPOpen=yes
31416 else
31417   echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31419
31420         ac_cv_lib_slp_SLPOpen=no
31421 fi
31422
31423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31424       conftest$ac_exeext conftest.$ac_ext
31425 LIBS=$ac_check_lib_save_LIBS
31426 fi
31427 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31428 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31429 if test $ac_cv_lib_slp_SLPOpen = yes; then
31430   have_slp=yes
31431 else
31432   have_slp=no
31433 fi
31434
31435                 if test $have_slp = yes ; then
31436
31437 cat >>confdefs.h <<\_ACEOF
31438 #define HAVE_SLP 1
31439 _ACEOF
31440
31441                         SLAPD_SLP_LIBS=-lslp
31442                 fi
31443
31444         elif test $ol_enable_slp = yes ; then
31445                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31446 echo "$as_me: error: SLP not found" >&2;}
31447    { (exit 1); exit 1; }; }
31448         fi
31449 fi
31450
31451
31452 { echo "$as_me:$LINENO: checking for mode_t" >&5
31453 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31454 if test "${ac_cv_type_mode_t+set}" = set; then
31455   echo $ECHO_N "(cached) $ECHO_C" >&6
31456 else
31457   cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463 $ac_includes_default
31464 typedef mode_t ac__type_new_;
31465 int
31466 main ()
31467 {
31468 if ((ac__type_new_ *) 0)
31469   return 0;
31470 if (sizeof (ac__type_new_))
31471   return 0;
31472   ;
31473   return 0;
31474 }
31475 _ACEOF
31476 rm -f conftest.$ac_objext
31477 if { (ac_try="$ac_compile"
31478 case "(($ac_try" in
31479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480   *) ac_try_echo=$ac_try;;
31481 esac
31482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483   (eval "$ac_compile") 2>conftest.er1
31484   ac_status=$?
31485   grep -v '^ *+' conftest.er1 >conftest.err
31486   rm -f conftest.er1
31487   cat conftest.err >&5
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); } && {
31490          test -z "$ac_c_werror_flag" ||
31491          test ! -s conftest.err
31492        } && test -s conftest.$ac_objext; then
31493   ac_cv_type_mode_t=yes
31494 else
31495   echo "$as_me: failed program was:" >&5
31496 sed 's/^/| /' conftest.$ac_ext >&5
31497
31498         ac_cv_type_mode_t=no
31499 fi
31500
31501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31502 fi
31503 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31504 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31505 if test $ac_cv_type_mode_t = yes; then
31506   :
31507 else
31508
31509 cat >>confdefs.h <<_ACEOF
31510 #define mode_t int
31511 _ACEOF
31512
31513 fi
31514
31515 { echo "$as_me:$LINENO: checking for off_t" >&5
31516 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31517 if test "${ac_cv_type_off_t+set}" = set; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 else
31520   cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h.  */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h.  */
31526 $ac_includes_default
31527 typedef off_t ac__type_new_;
31528 int
31529 main ()
31530 {
31531 if ((ac__type_new_ *) 0)
31532   return 0;
31533 if (sizeof (ac__type_new_))
31534   return 0;
31535   ;
31536   return 0;
31537 }
31538 _ACEOF
31539 rm -f conftest.$ac_objext
31540 if { (ac_try="$ac_compile"
31541 case "(($ac_try" in
31542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543   *) ac_try_echo=$ac_try;;
31544 esac
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546   (eval "$ac_compile") 2>conftest.er1
31547   ac_status=$?
31548   grep -v '^ *+' conftest.er1 >conftest.err
31549   rm -f conftest.er1
31550   cat conftest.err >&5
31551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552   (exit $ac_status); } && {
31553          test -z "$ac_c_werror_flag" ||
31554          test ! -s conftest.err
31555        } && test -s conftest.$ac_objext; then
31556   ac_cv_type_off_t=yes
31557 else
31558   echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31560
31561         ac_cv_type_off_t=no
31562 fi
31563
31564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31565 fi
31566 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31567 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31568 if test $ac_cv_type_off_t = yes; then
31569   :
31570 else
31571
31572 cat >>confdefs.h <<_ACEOF
31573 #define off_t long
31574 _ACEOF
31575
31576 fi
31577
31578 { echo "$as_me:$LINENO: checking for pid_t" >&5
31579 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31580 if test "${ac_cv_type_pid_t+set}" = set; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583   cat >conftest.$ac_ext <<_ACEOF
31584 /* confdefs.h.  */
31585 _ACEOF
31586 cat confdefs.h >>conftest.$ac_ext
31587 cat >>conftest.$ac_ext <<_ACEOF
31588 /* end confdefs.h.  */
31589 $ac_includes_default
31590 typedef pid_t ac__type_new_;
31591 int
31592 main ()
31593 {
31594 if ((ac__type_new_ *) 0)
31595   return 0;
31596 if (sizeof (ac__type_new_))
31597   return 0;
31598   ;
31599   return 0;
31600 }
31601 _ACEOF
31602 rm -f conftest.$ac_objext
31603 if { (ac_try="$ac_compile"
31604 case "(($ac_try" in
31605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606   *) ac_try_echo=$ac_try;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609   (eval "$ac_compile") 2>conftest.er1
31610   ac_status=$?
31611   grep -v '^ *+' conftest.er1 >conftest.err
31612   rm -f conftest.er1
31613   cat conftest.err >&5
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); } && {
31616          test -z "$ac_c_werror_flag" ||
31617          test ! -s conftest.err
31618        } && test -s conftest.$ac_objext; then
31619   ac_cv_type_pid_t=yes
31620 else
31621   echo "$as_me: failed program was:" >&5
31622 sed 's/^/| /' conftest.$ac_ext >&5
31623
31624         ac_cv_type_pid_t=no
31625 fi
31626
31627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31628 fi
31629 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31630 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31631 if test $ac_cv_type_pid_t = yes; then
31632   :
31633 else
31634
31635 cat >>confdefs.h <<_ACEOF
31636 #define pid_t int
31637 _ACEOF
31638
31639 fi
31640
31641 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31642 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31643 if test "${ac_cv_type_ssize_t+set}" = set; then
31644   echo $ECHO_N "(cached) $ECHO_C" >&6
31645 else
31646   cat >conftest.$ac_ext <<_ACEOF
31647 /* confdefs.h.  */
31648 _ACEOF
31649 cat confdefs.h >>conftest.$ac_ext
31650 cat >>conftest.$ac_ext <<_ACEOF
31651 /* end confdefs.h.  */
31652 $ac_includes_default
31653 typedef ssize_t ac__type_new_;
31654 int
31655 main ()
31656 {
31657 if ((ac__type_new_ *) 0)
31658   return 0;
31659 if (sizeof (ac__type_new_))
31660   return 0;
31661   ;
31662   return 0;
31663 }
31664 _ACEOF
31665 rm -f conftest.$ac_objext
31666 if { (ac_try="$ac_compile"
31667 case "(($ac_try" in
31668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669   *) ac_try_echo=$ac_try;;
31670 esac
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672   (eval "$ac_compile") 2>conftest.er1
31673   ac_status=$?
31674   grep -v '^ *+' conftest.er1 >conftest.err
31675   rm -f conftest.er1
31676   cat conftest.err >&5
31677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678   (exit $ac_status); } && {
31679          test -z "$ac_c_werror_flag" ||
31680          test ! -s conftest.err
31681        } && test -s conftest.$ac_objext; then
31682   ac_cv_type_ssize_t=yes
31683 else
31684   echo "$as_me: failed program was:" >&5
31685 sed 's/^/| /' conftest.$ac_ext >&5
31686
31687         ac_cv_type_ssize_t=no
31688 fi
31689
31690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31691 fi
31692 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31693 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31694 if test $ac_cv_type_ssize_t = yes; then
31695   :
31696 else
31697
31698 cat >>confdefs.h <<_ACEOF
31699 #define ssize_t signed int
31700 _ACEOF
31701
31702 fi
31703
31704 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31705 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31706 if test "${ac_cv_type_caddr_t+set}" = set; then
31707   echo $ECHO_N "(cached) $ECHO_C" >&6
31708 else
31709   cat >conftest.$ac_ext <<_ACEOF
31710 /* confdefs.h.  */
31711 _ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h.  */
31715 $ac_includes_default
31716 typedef caddr_t ac__type_new_;
31717 int
31718 main ()
31719 {
31720 if ((ac__type_new_ *) 0)
31721   return 0;
31722 if (sizeof (ac__type_new_))
31723   return 0;
31724   ;
31725   return 0;
31726 }
31727 _ACEOF
31728 rm -f conftest.$ac_objext
31729 if { (ac_try="$ac_compile"
31730 case "(($ac_try" in
31731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732   *) ac_try_echo=$ac_try;;
31733 esac
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735   (eval "$ac_compile") 2>conftest.er1
31736   ac_status=$?
31737   grep -v '^ *+' conftest.er1 >conftest.err
31738   rm -f conftest.er1
31739   cat conftest.err >&5
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); } && {
31742          test -z "$ac_c_werror_flag" ||
31743          test ! -s conftest.err
31744        } && test -s conftest.$ac_objext; then
31745   ac_cv_type_caddr_t=yes
31746 else
31747   echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31749
31750         ac_cv_type_caddr_t=no
31751 fi
31752
31753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31754 fi
31755 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31756 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31757 if test $ac_cv_type_caddr_t = yes; then
31758   :
31759 else
31760
31761 cat >>confdefs.h <<_ACEOF
31762 #define caddr_t char *
31763 _ACEOF
31764
31765 fi
31766
31767 { echo "$as_me:$LINENO: checking for size_t" >&5
31768 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31769 if test "${ac_cv_type_size_t+set}" = set; then
31770   echo $ECHO_N "(cached) $ECHO_C" >&6
31771 else
31772   cat >conftest.$ac_ext <<_ACEOF
31773 /* confdefs.h.  */
31774 _ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h.  */
31778 $ac_includes_default
31779 typedef size_t ac__type_new_;
31780 int
31781 main ()
31782 {
31783 if ((ac__type_new_ *) 0)
31784   return 0;
31785 if (sizeof (ac__type_new_))
31786   return 0;
31787   ;
31788   return 0;
31789 }
31790 _ACEOF
31791 rm -f conftest.$ac_objext
31792 if { (ac_try="$ac_compile"
31793 case "(($ac_try" in
31794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795   *) ac_try_echo=$ac_try;;
31796 esac
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798   (eval "$ac_compile") 2>conftest.er1
31799   ac_status=$?
31800   grep -v '^ *+' conftest.er1 >conftest.err
31801   rm -f conftest.er1
31802   cat conftest.err >&5
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); } && {
31805          test -z "$ac_c_werror_flag" ||
31806          test ! -s conftest.err
31807        } && test -s conftest.$ac_objext; then
31808   ac_cv_type_size_t=yes
31809 else
31810   echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31812
31813         ac_cv_type_size_t=no
31814 fi
31815
31816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31817 fi
31818 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31819 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31820 if test $ac_cv_type_size_t = yes; then
31821   :
31822 else
31823
31824 cat >>confdefs.h <<_ACEOF
31825 #define size_t unsigned
31826 _ACEOF
31827
31828 fi
31829
31830
31831 { echo "$as_me:$LINENO: checking for long long" >&5
31832 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31833 if test "${ac_cv_type_long_long+set}" = set; then
31834   echo $ECHO_N "(cached) $ECHO_C" >&6
31835 else
31836   cat >conftest.$ac_ext <<_ACEOF
31837 /* confdefs.h.  */
31838 _ACEOF
31839 cat confdefs.h >>conftest.$ac_ext
31840 cat >>conftest.$ac_ext <<_ACEOF
31841 /* end confdefs.h.  */
31842 $ac_includes_default
31843 typedef long long ac__type_new_;
31844 int
31845 main ()
31846 {
31847 if ((ac__type_new_ *) 0)
31848   return 0;
31849 if (sizeof (ac__type_new_))
31850   return 0;
31851   ;
31852   return 0;
31853 }
31854 _ACEOF
31855 rm -f conftest.$ac_objext
31856 if { (ac_try="$ac_compile"
31857 case "(($ac_try" in
31858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859   *) ac_try_echo=$ac_try;;
31860 esac
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862   (eval "$ac_compile") 2>conftest.er1
31863   ac_status=$?
31864   grep -v '^ *+' conftest.er1 >conftest.err
31865   rm -f conftest.er1
31866   cat conftest.err >&5
31867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868   (exit $ac_status); } && {
31869          test -z "$ac_c_werror_flag" ||
31870          test ! -s conftest.err
31871        } && test -s conftest.$ac_objext; then
31872   ac_cv_type_long_long=yes
31873 else
31874   echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31876
31877         ac_cv_type_long_long=no
31878 fi
31879
31880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31881 fi
31882 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31883 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31884 if test $ac_cv_type_long_long = yes; then
31885
31886 cat >>confdefs.h <<_ACEOF
31887 #define HAVE_LONG_LONG 1
31888 _ACEOF
31889
31890
31891 fi
31892
31893 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31894 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31895 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31896   echo $ECHO_N "(cached) $ECHO_C" >&6
31897 else
31898   cat >conftest.$ac_ext <<_ACEOF
31899 /* confdefs.h.  */
31900 _ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h.  */
31904 $ac_includes_default
31905 typedef ptrdiff_t ac__type_new_;
31906 int
31907 main ()
31908 {
31909 if ((ac__type_new_ *) 0)
31910   return 0;
31911 if (sizeof (ac__type_new_))
31912   return 0;
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_compile") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_c_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest.$ac_objext; then
31934   ac_cv_type_ptrdiff_t=yes
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939         ac_cv_type_ptrdiff_t=no
31940 fi
31941
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 fi
31944 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31945 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31946 if test $ac_cv_type_ptrdiff_t = yes; then
31947
31948 cat >>confdefs.h <<_ACEOF
31949 #define HAVE_PTRDIFF_T 1
31950 _ACEOF
31951
31952
31953 fi
31954
31955
31956
31957 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31958 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31959 if test "${ac_cv_type_socklen_t+set}" = set; then
31960   echo $ECHO_N "(cached) $ECHO_C" >&6
31961 else
31962   cat >conftest.$ac_ext <<_ACEOF
31963 /* confdefs.h.  */
31964 _ACEOF
31965 cat confdefs.h >>conftest.$ac_ext
31966 cat >>conftest.$ac_ext <<_ACEOF
31967 /* end confdefs.h.  */
31968 $ac_includes_default
31969 #ifdef HAVE_SYS_SOCKET_H
31970 #include <sys/socket.h>
31971 #endif
31972
31973 typedef socklen_t ac__type_new_;
31974 int
31975 main ()
31976 {
31977 if ((ac__type_new_ *) 0)
31978   return 0;
31979 if (sizeof (ac__type_new_))
31980   return 0;
31981   ;
31982   return 0;
31983 }
31984 _ACEOF
31985 rm -f conftest.$ac_objext
31986 if { (ac_try="$ac_compile"
31987 case "(($ac_try" in
31988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989   *) ac_try_echo=$ac_try;;
31990 esac
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992   (eval "$ac_compile") 2>conftest.er1
31993   ac_status=$?
31994   grep -v '^ *+' conftest.er1 >conftest.err
31995   rm -f conftest.er1
31996   cat conftest.err >&5
31997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998   (exit $ac_status); } && {
31999          test -z "$ac_c_werror_flag" ||
32000          test ! -s conftest.err
32001        } && test -s conftest.$ac_objext; then
32002   ac_cv_type_socklen_t=yes
32003 else
32004   echo "$as_me: failed program was:" >&5
32005 sed 's/^/| /' conftest.$ac_ext >&5
32006
32007         ac_cv_type_socklen_t=no
32008 fi
32009
32010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32011 fi
32012 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32013 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32014
32015
32016 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32017 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32018 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32019   echo $ECHO_N "(cached) $ECHO_C" >&6
32020 else
32021
32022         set socklen_t int unsigned "unsigned long" long size_t
32023         test "$ac_cv_type_socklen_t" = yes || shift
32024         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32025         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32026                 cat >conftest.$ac_ext <<_ACEOF
32027 /* confdefs.h.  */
32028 _ACEOF
32029 cat confdefs.h >>conftest.$ac_ext
32030 cat >>conftest.$ac_ext <<_ACEOF
32031 /* end confdefs.h.  */
32032 $ac_includes_default
32033 #ifdef HAVE_SYS_SOCKET_H
32034 #include <sys/socket.h>
32035 #endif
32036 extern int accept(int s, $addrtype *ap, $lentype *lp);
32037
32038 int
32039 main ()
32040 {
32041
32042 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32043
32044   ;
32045   return 0;
32046 }
32047 _ACEOF
32048 rm -f conftest.$ac_objext
32049 if { (ac_try="$ac_compile"
32050 case "(($ac_try" in
32051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052   *) ac_try_echo=$ac_try;;
32053 esac
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055   (eval "$ac_compile") 2>conftest.er1
32056   ac_status=$?
32057   grep -v '^ *+' conftest.er1 >conftest.err
32058   rm -f conftest.er1
32059   cat conftest.err >&5
32060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061   (exit $ac_status); } && {
32062          test -z "$ac_c_werror_flag" ||
32063          test ! -s conftest.err
32064        } && test -s conftest.$ac_objext; then
32065   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32066 else
32067   echo "$as_me: failed program was:" >&5
32068 sed 's/^/| /' conftest.$ac_ext >&5
32069
32070
32071 fi
32072
32073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074         done ; done
32075 fi
32076
32077 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32078 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32079
32080 cat >>confdefs.h <<_ACEOF
32081 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32082 _ACEOF
32083
32084
32085 if test "$ac_cv_type_socklen_t" != yes; then
32086
32087 cat >>confdefs.h <<_ACEOF
32088 #define socklen_t $ol_cv_type_ber_socklen_t
32089 _ACEOF
32090
32091 fi
32092
32093
32094 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32095 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32096 if test "${ac_cv_type_signal+set}" = set; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105 #include <sys/types.h>
32106 #include <signal.h>
32107
32108 int
32109 main ()
32110 {
32111 return *(signal (0, 0)) (0) == 1;
32112   ;
32113   return 0;
32114 }
32115 _ACEOF
32116 rm -f conftest.$ac_objext
32117 if { (ac_try="$ac_compile"
32118 case "(($ac_try" in
32119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120   *) ac_try_echo=$ac_try;;
32121 esac
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123   (eval "$ac_compile") 2>conftest.er1
32124   ac_status=$?
32125   grep -v '^ *+' conftest.er1 >conftest.err
32126   rm -f conftest.er1
32127   cat conftest.err >&5
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); } && {
32130          test -z "$ac_c_werror_flag" ||
32131          test ! -s conftest.err
32132        } && test -s conftest.$ac_objext; then
32133   ac_cv_type_signal=int
32134 else
32135   echo "$as_me: failed program was:" >&5
32136 sed 's/^/| /' conftest.$ac_ext >&5
32137
32138         ac_cv_type_signal=void
32139 fi
32140
32141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32142 fi
32143 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32144 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32145
32146 cat >>confdefs.h <<_ACEOF
32147 #define RETSIGTYPE $ac_cv_type_signal
32148 _ACEOF
32149
32150
32151
32152 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32153 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32154 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32155   echo $ECHO_N "(cached) $ECHO_C" >&6
32156 else
32157   cat >conftest.$ac_ext <<_ACEOF
32158 /* confdefs.h.  */
32159 _ACEOF
32160 cat confdefs.h >>conftest.$ac_ext
32161 cat >>conftest.$ac_ext <<_ACEOF
32162 /* end confdefs.h.  */
32163 $ac_includes_default
32164 #include <signal.h>
32165
32166
32167 typedef sig_atomic_t ac__type_new_;
32168 int
32169 main ()
32170 {
32171 if ((ac__type_new_ *) 0)
32172   return 0;
32173 if (sizeof (ac__type_new_))
32174   return 0;
32175   ;
32176   return 0;
32177 }
32178 _ACEOF
32179 rm -f conftest.$ac_objext
32180 if { (ac_try="$ac_compile"
32181 case "(($ac_try" in
32182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32183   *) ac_try_echo=$ac_try;;
32184 esac
32185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32186   (eval "$ac_compile") 2>conftest.er1
32187   ac_status=$?
32188   grep -v '^ *+' conftest.er1 >conftest.err
32189   rm -f conftest.er1
32190   cat conftest.err >&5
32191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192   (exit $ac_status); } && {
32193          test -z "$ac_c_werror_flag" ||
32194          test ! -s conftest.err
32195        } && test -s conftest.$ac_objext; then
32196   ac_cv_type_sig_atomic_t=yes
32197 else
32198   echo "$as_me: failed program was:" >&5
32199 sed 's/^/| /' conftest.$ac_ext >&5
32200
32201         ac_cv_type_sig_atomic_t=no
32202 fi
32203
32204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32205 fi
32206 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32207 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32208 if test $ac_cv_type_sig_atomic_t = yes; then
32209   :
32210 else
32211
32212 cat >>confdefs.h <<_ACEOF
32213 #define sig_atomic_t int
32214 _ACEOF
32215
32216 fi
32217
32218
32219 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32220 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32221 if test "${ac_cv_type_uid_t+set}" = set; then
32222   echo $ECHO_N "(cached) $ECHO_C" >&6
32223 else
32224   cat >conftest.$ac_ext <<_ACEOF
32225 /* confdefs.h.  */
32226 _ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h.  */
32230 #include <sys/types.h>
32231
32232 _ACEOF
32233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32234   $EGREP "uid_t" >/dev/null 2>&1; then
32235   ac_cv_type_uid_t=yes
32236 else
32237   ac_cv_type_uid_t=no
32238 fi
32239 rm -f conftest*
32240
32241 fi
32242 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32243 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32244 if test $ac_cv_type_uid_t = no; then
32245
32246 cat >>confdefs.h <<\_ACEOF
32247 #define uid_t int
32248 _ACEOF
32249
32250
32251 cat >>confdefs.h <<\_ACEOF
32252 #define gid_t int
32253 _ACEOF
32254
32255 fi
32256
32257
32258 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32259 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32260 if test "${ac_cv_header_time+set}" = set; then
32261   echo $ECHO_N "(cached) $ECHO_C" >&6
32262 else
32263   cat >conftest.$ac_ext <<_ACEOF
32264 /* confdefs.h.  */
32265 _ACEOF
32266 cat confdefs.h >>conftest.$ac_ext
32267 cat >>conftest.$ac_ext <<_ACEOF
32268 /* end confdefs.h.  */
32269 #include <sys/types.h>
32270 #include <sys/time.h>
32271 #include <time.h>
32272
32273 int
32274 main ()
32275 {
32276 if ((struct tm *) 0)
32277 return 0;
32278   ;
32279   return 0;
32280 }
32281 _ACEOF
32282 rm -f conftest.$ac_objext
32283 if { (ac_try="$ac_compile"
32284 case "(($ac_try" in
32285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286   *) ac_try_echo=$ac_try;;
32287 esac
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289   (eval "$ac_compile") 2>conftest.er1
32290   ac_status=$?
32291   grep -v '^ *+' conftest.er1 >conftest.err
32292   rm -f conftest.er1
32293   cat conftest.err >&5
32294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295   (exit $ac_status); } && {
32296          test -z "$ac_c_werror_flag" ||
32297          test ! -s conftest.err
32298        } && test -s conftest.$ac_objext; then
32299   ac_cv_header_time=yes
32300 else
32301   echo "$as_me: failed program was:" >&5
32302 sed 's/^/| /' conftest.$ac_ext >&5
32303
32304         ac_cv_header_time=no
32305 fi
32306
32307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32308 fi
32309 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32310 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32311 if test $ac_cv_header_time = yes; then
32312
32313 cat >>confdefs.h <<\_ACEOF
32314 #define TIME_WITH_SYS_TIME 1
32315 _ACEOF
32316
32317 fi
32318
32319 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32320 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32321 if test "${ac_cv_struct_tm+set}" = set; then
32322   echo $ECHO_N "(cached) $ECHO_C" >&6
32323 else
32324   cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330 #include <sys/types.h>
32331 #include <time.h>
32332
32333 int
32334 main ()
32335 {
32336 struct tm tm;
32337                                      int *p = &tm.tm_sec;
32338                                      return !p;
32339   ;
32340   return 0;
32341 }
32342 _ACEOF
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347   *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350   (eval "$ac_compile") 2>conftest.er1
32351   ac_status=$?
32352   grep -v '^ *+' conftest.er1 >conftest.err
32353   rm -f conftest.er1
32354   cat conftest.err >&5
32355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356   (exit $ac_status); } && {
32357          test -z "$ac_c_werror_flag" ||
32358          test ! -s conftest.err
32359        } && test -s conftest.$ac_objext; then
32360   ac_cv_struct_tm=time.h
32361 else
32362   echo "$as_me: failed program was:" >&5
32363 sed 's/^/| /' conftest.$ac_ext >&5
32364
32365         ac_cv_struct_tm=sys/time.h
32366 fi
32367
32368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32369 fi
32370 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32371 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32372 if test $ac_cv_struct_tm = sys/time.h; then
32373
32374 cat >>confdefs.h <<\_ACEOF
32375 #define TM_IN_SYS_TIME 1
32376 _ACEOF
32377
32378 fi
32379
32380 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32381 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32382 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32383   echo $ECHO_N "(cached) $ECHO_C" >&6
32384 else
32385   cat >conftest.$ac_ext <<_ACEOF
32386 /* confdefs.h.  */
32387 _ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h.  */
32391 $ac_includes_default
32392 int
32393 main ()
32394 {
32395 static struct stat ac_aggr;
32396 if (ac_aggr.st_blksize)
32397 return 0;
32398   ;
32399   return 0;
32400 }
32401 _ACEOF
32402 rm -f conftest.$ac_objext
32403 if { (ac_try="$ac_compile"
32404 case "(($ac_try" in
32405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406   *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409   (eval "$ac_compile") 2>conftest.er1
32410   ac_status=$?
32411   grep -v '^ *+' conftest.er1 >conftest.err
32412   rm -f conftest.er1
32413   cat conftest.err >&5
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); } && {
32416          test -z "$ac_c_werror_flag" ||
32417          test ! -s conftest.err
32418        } && test -s conftest.$ac_objext; then
32419   ac_cv_member_struct_stat_st_blksize=yes
32420 else
32421   echo "$as_me: failed program was:" >&5
32422 sed 's/^/| /' conftest.$ac_ext >&5
32423
32424         cat >conftest.$ac_ext <<_ACEOF
32425 /* confdefs.h.  */
32426 _ACEOF
32427 cat confdefs.h >>conftest.$ac_ext
32428 cat >>conftest.$ac_ext <<_ACEOF
32429 /* end confdefs.h.  */
32430 $ac_includes_default
32431 int
32432 main ()
32433 {
32434 static struct stat ac_aggr;
32435 if (sizeof ac_aggr.st_blksize)
32436 return 0;
32437   ;
32438   return 0;
32439 }
32440 _ACEOF
32441 rm -f conftest.$ac_objext
32442 if { (ac_try="$ac_compile"
32443 case "(($ac_try" in
32444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445   *) ac_try_echo=$ac_try;;
32446 esac
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448   (eval "$ac_compile") 2>conftest.er1
32449   ac_status=$?
32450   grep -v '^ *+' conftest.er1 >conftest.err
32451   rm -f conftest.er1
32452   cat conftest.err >&5
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); } && {
32455          test -z "$ac_c_werror_flag" ||
32456          test ! -s conftest.err
32457        } && test -s conftest.$ac_objext; then
32458   ac_cv_member_struct_stat_st_blksize=yes
32459 else
32460   echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32462
32463         ac_cv_member_struct_stat_st_blksize=no
32464 fi
32465
32466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32467 fi
32468
32469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32470 fi
32471 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32472 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32473 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32474
32475 cat >>confdefs.h <<_ACEOF
32476 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32477 _ACEOF
32478
32479
32480 fi
32481
32482 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32483 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32484 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32485   echo $ECHO_N "(cached) $ECHO_C" >&6
32486 else
32487   cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h.  */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h.  */
32493 $ac_includes_default
32494 #include <pwd.h>
32495
32496 int
32497 main ()
32498 {
32499 static struct passwd ac_aggr;
32500 if (ac_aggr.pw_gecos)
32501 return 0;
32502   ;
32503   return 0;
32504 }
32505 _ACEOF
32506 rm -f conftest.$ac_objext
32507 if { (ac_try="$ac_compile"
32508 case "(($ac_try" in
32509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510   *) ac_try_echo=$ac_try;;
32511 esac
32512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513   (eval "$ac_compile") 2>conftest.er1
32514   ac_status=$?
32515   grep -v '^ *+' conftest.er1 >conftest.err
32516   rm -f conftest.er1
32517   cat conftest.err >&5
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); } && {
32520          test -z "$ac_c_werror_flag" ||
32521          test ! -s conftest.err
32522        } && test -s conftest.$ac_objext; then
32523   ac_cv_member_struct_passwd_pw_gecos=yes
32524 else
32525   echo "$as_me: failed program was:" >&5
32526 sed 's/^/| /' conftest.$ac_ext >&5
32527
32528         cat >conftest.$ac_ext <<_ACEOF
32529 /* confdefs.h.  */
32530 _ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h.  */
32534 $ac_includes_default
32535 #include <pwd.h>
32536
32537 int
32538 main ()
32539 {
32540 static struct passwd ac_aggr;
32541 if (sizeof ac_aggr.pw_gecos)
32542 return 0;
32543   ;
32544   return 0;
32545 }
32546 _ACEOF
32547 rm -f conftest.$ac_objext
32548 if { (ac_try="$ac_compile"
32549 case "(($ac_try" in
32550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32551   *) ac_try_echo=$ac_try;;
32552 esac
32553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32554   (eval "$ac_compile") 2>conftest.er1
32555   ac_status=$?
32556   grep -v '^ *+' conftest.er1 >conftest.err
32557   rm -f conftest.er1
32558   cat conftest.err >&5
32559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560   (exit $ac_status); } && {
32561          test -z "$ac_c_werror_flag" ||
32562          test ! -s conftest.err
32563        } && test -s conftest.$ac_objext; then
32564   ac_cv_member_struct_passwd_pw_gecos=yes
32565 else
32566   echo "$as_me: failed program was:" >&5
32567 sed 's/^/| /' conftest.$ac_ext >&5
32568
32569         ac_cv_member_struct_passwd_pw_gecos=no
32570 fi
32571
32572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32573 fi
32574
32575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32576 fi
32577 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32578 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32579 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32580
32581 cat >>confdefs.h <<_ACEOF
32582 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32583 _ACEOF
32584
32585
32586 fi
32587
32588 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32589 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32590 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32591   echo $ECHO_N "(cached) $ECHO_C" >&6
32592 else
32593   cat >conftest.$ac_ext <<_ACEOF
32594 /* confdefs.h.  */
32595 _ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h.  */
32599 $ac_includes_default
32600 #include <pwd.h>
32601
32602 int
32603 main ()
32604 {
32605 static struct passwd ac_aggr;
32606 if (ac_aggr.pw_passwd)
32607 return 0;
32608   ;
32609   return 0;
32610 }
32611 _ACEOF
32612 rm -f conftest.$ac_objext
32613 if { (ac_try="$ac_compile"
32614 case "(($ac_try" in
32615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616   *) ac_try_echo=$ac_try;;
32617 esac
32618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619   (eval "$ac_compile") 2>conftest.er1
32620   ac_status=$?
32621   grep -v '^ *+' conftest.er1 >conftest.err
32622   rm -f conftest.er1
32623   cat conftest.err >&5
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); } && {
32626          test -z "$ac_c_werror_flag" ||
32627          test ! -s conftest.err
32628        } && test -s conftest.$ac_objext; then
32629   ac_cv_member_struct_passwd_pw_passwd=yes
32630 else
32631   echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32633
32634         cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h.  */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h.  */
32640 $ac_includes_default
32641 #include <pwd.h>
32642
32643 int
32644 main ()
32645 {
32646 static struct passwd ac_aggr;
32647 if (sizeof ac_aggr.pw_passwd)
32648 return 0;
32649   ;
32650   return 0;
32651 }
32652 _ACEOF
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657   *) ac_try_echo=$ac_try;;
32658 esac
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660   (eval "$ac_compile") 2>conftest.er1
32661   ac_status=$?
32662   grep -v '^ *+' conftest.er1 >conftest.err
32663   rm -f conftest.er1
32664   cat conftest.err >&5
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); } && {
32667          test -z "$ac_c_werror_flag" ||
32668          test ! -s conftest.err
32669        } && test -s conftest.$ac_objext; then
32670   ac_cv_member_struct_passwd_pw_passwd=yes
32671 else
32672   echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32674
32675         ac_cv_member_struct_passwd_pw_passwd=no
32676 fi
32677
32678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32679 fi
32680
32681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32682 fi
32683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32684 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32685 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32686
32687 cat >>confdefs.h <<_ACEOF
32688 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32689 _ACEOF
32690
32691
32692 fi
32693
32694
32695 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32696 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32697 if test "${ol_cv_c_upper_lower+set}" = set; then
32698   echo $ECHO_N "(cached) $ECHO_C" >&6
32699 else
32700
32701         if test "$cross_compiling" = yes; then
32702   ol_cv_c_upper_lower=safe
32703 else
32704   cat >conftest.$ac_ext <<_ACEOF
32705 /* confdefs.h.  */
32706 _ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h.  */
32710
32711 #include <ctype.h>
32712 main()
32713 {
32714         if ('C' == toupper('C'))
32715                 exit(0);
32716         else
32717                 exit(1);
32718 }
32719 _ACEOF
32720 rm -f conftest$ac_exeext
32721 if { (ac_try="$ac_link"
32722 case "(($ac_try" in
32723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724   *) ac_try_echo=$ac_try;;
32725 esac
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727   (eval "$ac_link") 2>&5
32728   ac_status=$?
32729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32731   { (case "(($ac_try" in
32732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733   *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736   (eval "$ac_try") 2>&5
32737   ac_status=$?
32738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739   (exit $ac_status); }; }; then
32740   ol_cv_c_upper_lower=no
32741 else
32742   echo "$as_me: program exited with status $ac_status" >&5
32743 echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32745
32746 ( exit $ac_status )
32747 ol_cv_c_upper_lower=yes
32748 fi
32749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32750 fi
32751
32752
32753 fi
32754 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32755 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32756 if test $ol_cv_c_upper_lower != no ; then
32757
32758 cat >>confdefs.h <<\_ACEOF
32759 #define C_UPPER_LOWER 1
32760 _ACEOF
32761
32762 fi
32763
32764 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32765 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32766 if test "${ac_cv_c_const+set}" = set; then
32767   echo $ECHO_N "(cached) $ECHO_C" >&6
32768 else
32769   cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h.  */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h.  */
32775
32776 int
32777 main ()
32778 {
32779 /* FIXME: Include the comments suggested by Paul. */
32780 #ifndef __cplusplus
32781   /* Ultrix mips cc rejects this.  */
32782   typedef int charset[2];
32783   const charset cs;
32784   /* SunOS 4.1.1 cc rejects this.  */
32785   char const *const *pcpcc;
32786   char **ppc;
32787   /* NEC SVR4.0.2 mips cc rejects this.  */
32788   struct point {int x, y;};
32789   static struct point const zero = {0,0};
32790   /* AIX XL C 1.02.0.0 rejects this.
32791      It does not let you subtract one const X* pointer from another in
32792      an arm of an if-expression whose if-part is not a constant
32793      expression */
32794   const char *g = "string";
32795   pcpcc = &g + (g ? g-g : 0);
32796   /* HPUX 7.0 cc rejects these. */
32797   ++pcpcc;
32798   ppc = (char**) pcpcc;
32799   pcpcc = (char const *const *) ppc;
32800   { /* SCO 3.2v4 cc rejects this.  */
32801     char *t;
32802     char const *s = 0 ? (char *) 0 : (char const *) 0;
32803
32804     *t++ = 0;
32805     if (s) return 0;
32806   }
32807   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32808     int x[] = {25, 17};
32809     const int *foo = &x[0];
32810     ++foo;
32811   }
32812   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32813     typedef const int *iptr;
32814     iptr p = 0;
32815     ++p;
32816   }
32817   { /* AIX XL C 1.02.0.0 rejects this saying
32818        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32819     struct s { int j; const int *ap[3]; };
32820     struct s *b; b->j = 5;
32821   }
32822   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32823     const int foo = 10;
32824     if (!foo) return 0;
32825   }
32826   return !cs[0] && !zero.x;
32827 #endif
32828
32829   ;
32830   return 0;
32831 }
32832 _ACEOF
32833 rm -f conftest.$ac_objext
32834 if { (ac_try="$ac_compile"
32835 case "(($ac_try" in
32836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32837   *) ac_try_echo=$ac_try;;
32838 esac
32839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32840   (eval "$ac_compile") 2>conftest.er1
32841   ac_status=$?
32842   grep -v '^ *+' conftest.er1 >conftest.err
32843   rm -f conftest.er1
32844   cat conftest.err >&5
32845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846   (exit $ac_status); } && {
32847          test -z "$ac_c_werror_flag" ||
32848          test ! -s conftest.err
32849        } && test -s conftest.$ac_objext; then
32850   ac_cv_c_const=yes
32851 else
32852   echo "$as_me: failed program was:" >&5
32853 sed 's/^/| /' conftest.$ac_ext >&5
32854
32855         ac_cv_c_const=no
32856 fi
32857
32858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32859 fi
32860 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32861 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32862 if test $ac_cv_c_const = no; then
32863
32864 cat >>confdefs.h <<\_ACEOF
32865 #define const
32866 _ACEOF
32867
32868 fi
32869
32870 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32871 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32872 if test "${ol_cv_c_volatile+set}" = set; then
32873   echo $ECHO_N "(cached) $ECHO_C" >&6
32874 else
32875   cat >conftest.$ac_ext <<_ACEOF
32876 /* confdefs.h.  */
32877 _ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h.  */
32881 int x, y, z;
32882 int
32883 main ()
32884 {
32885 volatile int a; int * volatile b = x ? &y : &z;
32886       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32887       *b = 0;
32888   ;
32889   return 0;
32890 }
32891 _ACEOF
32892 rm -f conftest.$ac_objext
32893 if { (ac_try="$ac_compile"
32894 case "(($ac_try" in
32895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896   *) ac_try_echo=$ac_try;;
32897 esac
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899   (eval "$ac_compile") 2>conftest.er1
32900   ac_status=$?
32901   grep -v '^ *+' conftest.er1 >conftest.err
32902   rm -f conftest.er1
32903   cat conftest.err >&5
32904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905   (exit $ac_status); } && {
32906          test -z "$ac_c_werror_flag" ||
32907          test ! -s conftest.err
32908        } && test -s conftest.$ac_objext; then
32909   ol_cv_c_volatile=yes
32910 else
32911   echo "$as_me: failed program was:" >&5
32912 sed 's/^/| /' conftest.$ac_ext >&5
32913
32914         ol_cv_c_volatile=no
32915 fi
32916
32917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32918 fi
32919 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32920 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32921   if test $ol_cv_c_volatile = yes; then
32922     :
32923   else
32924
32925 cat >>confdefs.h <<\_ACEOF
32926 #define volatile
32927 _ACEOF
32928
32929   fi
32930
32931
32932 if test $cross_compiling = yes ; then
32933         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32934 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32935
32936 cat >>confdefs.h <<\_ACEOF
32937 #define CROSS_COMPILING 1
32938 _ACEOF
32939
32940 else
32941         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32942 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32943 if test "${ac_cv_c_bigendian+set}" = set; then
32944   echo $ECHO_N "(cached) $ECHO_C" >&6
32945 else
32946   # See if sys/param.h defines the BYTE_ORDER macro.
32947 cat >conftest.$ac_ext <<_ACEOF
32948 /* confdefs.h.  */
32949 _ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h.  */
32953 #include <sys/types.h>
32954 #include <sys/param.h>
32955
32956 int
32957 main ()
32958 {
32959 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32960         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32961  bogus endian macros
32962 #endif
32963
32964   ;
32965   return 0;
32966 }
32967 _ACEOF
32968 rm -f conftest.$ac_objext
32969 if { (ac_try="$ac_compile"
32970 case "(($ac_try" in
32971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972   *) ac_try_echo=$ac_try;;
32973 esac
32974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975   (eval "$ac_compile") 2>conftest.er1
32976   ac_status=$?
32977   grep -v '^ *+' conftest.er1 >conftest.err
32978   rm -f conftest.er1
32979   cat conftest.err >&5
32980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981   (exit $ac_status); } && {
32982          test -z "$ac_c_werror_flag" ||
32983          test ! -s conftest.err
32984        } && test -s conftest.$ac_objext; then
32985   # It does; now see whether it defined to BIG_ENDIAN or not.
32986 cat >conftest.$ac_ext <<_ACEOF
32987 /* confdefs.h.  */
32988 _ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h.  */
32992 #include <sys/types.h>
32993 #include <sys/param.h>
32994
32995 int
32996 main ()
32997 {
32998 #if BYTE_ORDER != BIG_ENDIAN
32999  not big endian
33000 #endif
33001
33002   ;
33003   return 0;
33004 }
33005 _ACEOF
33006 rm -f conftest.$ac_objext
33007 if { (ac_try="$ac_compile"
33008 case "(($ac_try" in
33009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010   *) ac_try_echo=$ac_try;;
33011 esac
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013   (eval "$ac_compile") 2>conftest.er1
33014   ac_status=$?
33015   grep -v '^ *+' conftest.er1 >conftest.err
33016   rm -f conftest.er1
33017   cat conftest.err >&5
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); } && {
33020          test -z "$ac_c_werror_flag" ||
33021          test ! -s conftest.err
33022        } && test -s conftest.$ac_objext; then
33023   ac_cv_c_bigendian=yes
33024 else
33025   echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33027
33028         ac_cv_c_bigendian=no
33029 fi
33030
33031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33032 else
33033   echo "$as_me: failed program was:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33035
33036         # It does not; compile a test program.
33037 if test "$cross_compiling" = yes; then
33038   # try to guess the endianness by grepping values into an object file
33039   ac_cv_c_bigendian=unknown
33040   cat >conftest.$ac_ext <<_ACEOF
33041 /* confdefs.h.  */
33042 _ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h.  */
33046 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33047 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33048 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33049 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33050 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33051 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33052 int
33053 main ()
33054 {
33055  _ascii (); _ebcdic ();
33056   ;
33057   return 0;
33058 }
33059 _ACEOF
33060 rm -f conftest.$ac_objext
33061 if { (ac_try="$ac_compile"
33062 case "(($ac_try" in
33063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064   *) ac_try_echo=$ac_try;;
33065 esac
33066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33067   (eval "$ac_compile") 2>conftest.er1
33068   ac_status=$?
33069   grep -v '^ *+' conftest.er1 >conftest.err
33070   rm -f conftest.er1
33071   cat conftest.err >&5
33072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073   (exit $ac_status); } && {
33074          test -z "$ac_c_werror_flag" ||
33075          test ! -s conftest.err
33076        } && test -s conftest.$ac_objext; then
33077   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33078   ac_cv_c_bigendian=yes
33079 fi
33080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33081   if test "$ac_cv_c_bigendian" = unknown; then
33082     ac_cv_c_bigendian=no
33083   else
33084     # finding both strings is unlikely to happen, but who knows?
33085     ac_cv_c_bigendian=unknown
33086   fi
33087 fi
33088 else
33089   echo "$as_me: failed program was:" >&5
33090 sed 's/^/| /' conftest.$ac_ext >&5
33091
33092
33093 fi
33094
33095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33096 else
33097   cat >conftest.$ac_ext <<_ACEOF
33098 /* confdefs.h.  */
33099 _ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h.  */
33103 $ac_includes_default
33104 int
33105 main ()
33106 {
33107
33108   /* Are we little or big endian?  From Harbison&Steele.  */
33109   union
33110   {
33111     long int l;
33112     char c[sizeof (long int)];
33113   } u;
33114   u.l = 1;
33115   return u.c[sizeof (long int) - 1] == 1;
33116
33117   ;
33118   return 0;
33119 }
33120 _ACEOF
33121 rm -f conftest$ac_exeext
33122 if { (ac_try="$ac_link"
33123 case "(($ac_try" in
33124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125   *) ac_try_echo=$ac_try;;
33126 esac
33127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128   (eval "$ac_link") 2>&5
33129   ac_status=$?
33130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33132   { (case "(($ac_try" in
33133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134   *) ac_try_echo=$ac_try;;
33135 esac
33136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33137   (eval "$ac_try") 2>&5
33138   ac_status=$?
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); }; }; then
33141   ac_cv_c_bigendian=no
33142 else
33143   echo "$as_me: program exited with status $ac_status" >&5
33144 echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147 ( exit $ac_status )
33148 ac_cv_c_bigendian=yes
33149 fi
33150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33151 fi
33152
33153
33154 fi
33155
33156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33157 fi
33158 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33159 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33160 case $ac_cv_c_bigendian in
33161   yes)
33162
33163 cat >>confdefs.h <<\_ACEOF
33164 #define WORDS_BIGENDIAN 1
33165 _ACEOF
33166  ;;
33167   no)
33168      ;;
33169   *)
33170     { { echo "$as_me:$LINENO: error: unknown endianness
33171 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33172 echo "$as_me: error: unknown endianness
33173 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33174    { (exit 1); exit 1; }; } ;;
33175 esac
33176
33177 fi
33178
33179 { echo "$as_me:$LINENO: checking for short" >&5
33180 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33181 if test "${ac_cv_type_short+set}" = set; then
33182   echo $ECHO_N "(cached) $ECHO_C" >&6
33183 else
33184   cat >conftest.$ac_ext <<_ACEOF
33185 /* confdefs.h.  */
33186 _ACEOF
33187 cat confdefs.h >>conftest.$ac_ext
33188 cat >>conftest.$ac_ext <<_ACEOF
33189 /* end confdefs.h.  */
33190 $ac_includes_default
33191 typedef short ac__type_new_;
33192 int
33193 main ()
33194 {
33195 if ((ac__type_new_ *) 0)
33196   return 0;
33197 if (sizeof (ac__type_new_))
33198   return 0;
33199   ;
33200   return 0;
33201 }
33202 _ACEOF
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207   *) ac_try_echo=$ac_try;;
33208 esac
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210   (eval "$ac_compile") 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } && {
33217          test -z "$ac_c_werror_flag" ||
33218          test ! -s conftest.err
33219        } && test -s conftest.$ac_objext; then
33220   ac_cv_type_short=yes
33221 else
33222   echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33224
33225         ac_cv_type_short=no
33226 fi
33227
33228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33229 fi
33230 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33231 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33232
33233 # The cast to long int works around a bug in the HP C Compiler
33234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33236 # This bug is HP SR number 8606223364.
33237 { echo "$as_me:$LINENO: checking size of short" >&5
33238 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33239 if test "${ac_cv_sizeof_short+set}" = set; then
33240   echo $ECHO_N "(cached) $ECHO_C" >&6
33241 else
33242   if test "$cross_compiling" = yes; then
33243   # Depending upon the size, compute the lo and hi bounds.
33244 cat >conftest.$ac_ext <<_ACEOF
33245 /* confdefs.h.  */
33246 _ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h.  */
33250 $ac_includes_default
33251    typedef short ac__type_sizeof_;
33252 int
33253 main ()
33254 {
33255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33256 test_array [0] = 0
33257
33258   ;
33259   return 0;
33260 }
33261 _ACEOF
33262 rm -f conftest.$ac_objext
33263 if { (ac_try="$ac_compile"
33264 case "(($ac_try" in
33265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266   *) ac_try_echo=$ac_try;;
33267 esac
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269   (eval "$ac_compile") 2>conftest.er1
33270   ac_status=$?
33271   grep -v '^ *+' conftest.er1 >conftest.err
33272   rm -f conftest.er1
33273   cat conftest.err >&5
33274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275   (exit $ac_status); } && {
33276          test -z "$ac_c_werror_flag" ||
33277          test ! -s conftest.err
33278        } && test -s conftest.$ac_objext; then
33279   ac_lo=0 ac_mid=0
33280   while :; do
33281     cat >conftest.$ac_ext <<_ACEOF
33282 /* confdefs.h.  */
33283 _ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h.  */
33287 $ac_includes_default
33288    typedef short ac__type_sizeof_;
33289 int
33290 main ()
33291 {
33292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33293 test_array [0] = 0
33294
33295   ;
33296   return 0;
33297 }
33298 _ACEOF
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303   *) ac_try_echo=$ac_try;;
33304 esac
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306   (eval "$ac_compile") 2>conftest.er1
33307   ac_status=$?
33308   grep -v '^ *+' conftest.er1 >conftest.err
33309   rm -f conftest.er1
33310   cat conftest.err >&5
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); } && {
33313          test -z "$ac_c_werror_flag" ||
33314          test ! -s conftest.err
33315        } && test -s conftest.$ac_objext; then
33316   ac_hi=$ac_mid; break
33317 else
33318   echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33320
33321         ac_lo=`expr $ac_mid + 1`
33322                         if test $ac_lo -le $ac_mid; then
33323                           ac_lo= ac_hi=
33324                           break
33325                         fi
33326                         ac_mid=`expr 2 '*' $ac_mid + 1`
33327 fi
33328
33329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33330   done
33331 else
33332   echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33334
33335         cat >conftest.$ac_ext <<_ACEOF
33336 /* confdefs.h.  */
33337 _ACEOF
33338 cat confdefs.h >>conftest.$ac_ext
33339 cat >>conftest.$ac_ext <<_ACEOF
33340 /* end confdefs.h.  */
33341 $ac_includes_default
33342    typedef short ac__type_sizeof_;
33343 int
33344 main ()
33345 {
33346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33347 test_array [0] = 0
33348
33349   ;
33350   return 0;
33351 }
33352 _ACEOF
33353 rm -f conftest.$ac_objext
33354 if { (ac_try="$ac_compile"
33355 case "(($ac_try" in
33356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357   *) ac_try_echo=$ac_try;;
33358 esac
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360   (eval "$ac_compile") 2>conftest.er1
33361   ac_status=$?
33362   grep -v '^ *+' conftest.er1 >conftest.err
33363   rm -f conftest.er1
33364   cat conftest.err >&5
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } && {
33367          test -z "$ac_c_werror_flag" ||
33368          test ! -s conftest.err
33369        } && test -s conftest.$ac_objext; then
33370   ac_hi=-1 ac_mid=-1
33371   while :; do
33372     cat >conftest.$ac_ext <<_ACEOF
33373 /* confdefs.h.  */
33374 _ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h.  */
33378 $ac_includes_default
33379    typedef short ac__type_sizeof_;
33380 int
33381 main ()
33382 {
33383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33384 test_array [0] = 0
33385
33386   ;
33387   return 0;
33388 }
33389 _ACEOF
33390 rm -f conftest.$ac_objext
33391 if { (ac_try="$ac_compile"
33392 case "(($ac_try" in
33393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394   *) ac_try_echo=$ac_try;;
33395 esac
33396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397   (eval "$ac_compile") 2>conftest.er1
33398   ac_status=$?
33399   grep -v '^ *+' conftest.er1 >conftest.err
33400   rm -f conftest.er1
33401   cat conftest.err >&5
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); } && {
33404          test -z "$ac_c_werror_flag" ||
33405          test ! -s conftest.err
33406        } && test -s conftest.$ac_objext; then
33407   ac_lo=$ac_mid; break
33408 else
33409   echo "$as_me: failed program was:" >&5
33410 sed 's/^/| /' conftest.$ac_ext >&5
33411
33412         ac_hi=`expr '(' $ac_mid ')' - 1`
33413                         if test $ac_mid -le $ac_hi; then
33414                           ac_lo= ac_hi=
33415                           break
33416                         fi
33417                         ac_mid=`expr 2 '*' $ac_mid`
33418 fi
33419
33420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33421   done
33422 else
33423   echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33425
33426         ac_lo= ac_hi=
33427 fi
33428
33429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430 fi
33431
33432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 # Binary search between lo and hi bounds.
33434 while test "x$ac_lo" != "x$ac_hi"; do
33435   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33436   cat >conftest.$ac_ext <<_ACEOF
33437 /* confdefs.h.  */
33438 _ACEOF
33439 cat confdefs.h >>conftest.$ac_ext
33440 cat >>conftest.$ac_ext <<_ACEOF
33441 /* end confdefs.h.  */
33442 $ac_includes_default
33443    typedef short ac__type_sizeof_;
33444 int
33445 main ()
33446 {
33447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33448 test_array [0] = 0
33449
33450   ;
33451   return 0;
33452 }
33453 _ACEOF
33454 rm -f conftest.$ac_objext
33455 if { (ac_try="$ac_compile"
33456 case "(($ac_try" in
33457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458   *) ac_try_echo=$ac_try;;
33459 esac
33460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461   (eval "$ac_compile") 2>conftest.er1
33462   ac_status=$?
33463   grep -v '^ *+' conftest.er1 >conftest.err
33464   rm -f conftest.er1
33465   cat conftest.err >&5
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); } && {
33468          test -z "$ac_c_werror_flag" ||
33469          test ! -s conftest.err
33470        } && test -s conftest.$ac_objext; then
33471   ac_hi=$ac_mid
33472 else
33473   echo "$as_me: failed program was:" >&5
33474 sed 's/^/| /' conftest.$ac_ext >&5
33475
33476         ac_lo=`expr '(' $ac_mid ')' + 1`
33477 fi
33478
33479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33480 done
33481 case $ac_lo in
33482 ?*) ac_cv_sizeof_short=$ac_lo;;
33483 '') if test "$ac_cv_type_short" = yes; then
33484      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33485 See \`config.log' for more details." >&5
33486 echo "$as_me: error: cannot compute sizeof (short)
33487 See \`config.log' for more details." >&2;}
33488    { (exit 77); exit 77; }; }
33489    else
33490      ac_cv_sizeof_short=0
33491    fi ;;
33492 esac
33493 else
33494   cat >conftest.$ac_ext <<_ACEOF
33495 /* confdefs.h.  */
33496 _ACEOF
33497 cat confdefs.h >>conftest.$ac_ext
33498 cat >>conftest.$ac_ext <<_ACEOF
33499 /* end confdefs.h.  */
33500 $ac_includes_default
33501    typedef short ac__type_sizeof_;
33502 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33503 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33504 #include <stdio.h>
33505 #include <stdlib.h>
33506 int
33507 main ()
33508 {
33509
33510   FILE *f = fopen ("conftest.val", "w");
33511   if (! f)
33512     return 1;
33513   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33514     {
33515       long int i = longval ();
33516       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33517         return 1;
33518       fprintf (f, "%ld\n", i);
33519     }
33520   else
33521     {
33522       unsigned long int i = ulongval ();
33523       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33524         return 1;
33525       fprintf (f, "%lu\n", i);
33526     }
33527   return ferror (f) || fclose (f) != 0;
33528
33529   ;
33530   return 0;
33531 }
33532 _ACEOF
33533 rm -f conftest$ac_exeext
33534 if { (ac_try="$ac_link"
33535 case "(($ac_try" in
33536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537   *) ac_try_echo=$ac_try;;
33538 esac
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540   (eval "$ac_link") 2>&5
33541   ac_status=$?
33542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33544   { (case "(($ac_try" in
33545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546   *) ac_try_echo=$ac_try;;
33547 esac
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549   (eval "$ac_try") 2>&5
33550   ac_status=$?
33551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552   (exit $ac_status); }; }; then
33553   ac_cv_sizeof_short=`cat conftest.val`
33554 else
33555   echo "$as_me: program exited with status $ac_status" >&5
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33558
33559 ( exit $ac_status )
33560 if test "$ac_cv_type_short" = yes; then
33561      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33562 See \`config.log' for more details." >&5
33563 echo "$as_me: error: cannot compute sizeof (short)
33564 See \`config.log' for more details." >&2;}
33565    { (exit 77); exit 77; }; }
33566    else
33567      ac_cv_sizeof_short=0
33568    fi
33569 fi
33570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33571 fi
33572 rm -f conftest.val
33573 fi
33574 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33575 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33576
33577
33578
33579 cat >>confdefs.h <<_ACEOF
33580 #define SIZEOF_SHORT $ac_cv_sizeof_short
33581 _ACEOF
33582
33583
33584 { echo "$as_me:$LINENO: checking for int" >&5
33585 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33586 if test "${ac_cv_type_int+set}" = set; then
33587   echo $ECHO_N "(cached) $ECHO_C" >&6
33588 else
33589   cat >conftest.$ac_ext <<_ACEOF
33590 /* confdefs.h.  */
33591 _ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h.  */
33595 $ac_includes_default
33596 typedef int ac__type_new_;
33597 int
33598 main ()
33599 {
33600 if ((ac__type_new_ *) 0)
33601   return 0;
33602 if (sizeof (ac__type_new_))
33603   return 0;
33604   ;
33605   return 0;
33606 }
33607 _ACEOF
33608 rm -f conftest.$ac_objext
33609 if { (ac_try="$ac_compile"
33610 case "(($ac_try" in
33611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612   *) ac_try_echo=$ac_try;;
33613 esac
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615   (eval "$ac_compile") 2>conftest.er1
33616   ac_status=$?
33617   grep -v '^ *+' conftest.er1 >conftest.err
33618   rm -f conftest.er1
33619   cat conftest.err >&5
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); } && {
33622          test -z "$ac_c_werror_flag" ||
33623          test ! -s conftest.err
33624        } && test -s conftest.$ac_objext; then
33625   ac_cv_type_int=yes
33626 else
33627   echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33629
33630         ac_cv_type_int=no
33631 fi
33632
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634 fi
33635 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33636 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33637
33638 # The cast to long int works around a bug in the HP C Compiler
33639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33641 # This bug is HP SR number 8606223364.
33642 { echo "$as_me:$LINENO: checking size of int" >&5
33643 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33644 if test "${ac_cv_sizeof_int+set}" = set; then
33645   echo $ECHO_N "(cached) $ECHO_C" >&6
33646 else
33647   if test "$cross_compiling" = yes; then
33648   # Depending upon the size, compute the lo and hi bounds.
33649 cat >conftest.$ac_ext <<_ACEOF
33650 /* confdefs.h.  */
33651 _ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h.  */
33655 $ac_includes_default
33656    typedef int ac__type_sizeof_;
33657 int
33658 main ()
33659 {
33660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33661 test_array [0] = 0
33662
33663   ;
33664   return 0;
33665 }
33666 _ACEOF
33667 rm -f conftest.$ac_objext
33668 if { (ac_try="$ac_compile"
33669 case "(($ac_try" in
33670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671   *) ac_try_echo=$ac_try;;
33672 esac
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674   (eval "$ac_compile") 2>conftest.er1
33675   ac_status=$?
33676   grep -v '^ *+' conftest.er1 >conftest.err
33677   rm -f conftest.er1
33678   cat conftest.err >&5
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); } && {
33681          test -z "$ac_c_werror_flag" ||
33682          test ! -s conftest.err
33683        } && test -s conftest.$ac_objext; then
33684   ac_lo=0 ac_mid=0
33685   while :; do
33686     cat >conftest.$ac_ext <<_ACEOF
33687 /* confdefs.h.  */
33688 _ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h.  */
33692 $ac_includes_default
33693    typedef int ac__type_sizeof_;
33694 int
33695 main ()
33696 {
33697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33698 test_array [0] = 0
33699
33700   ;
33701   return 0;
33702 }
33703 _ACEOF
33704 rm -f conftest.$ac_objext
33705 if { (ac_try="$ac_compile"
33706 case "(($ac_try" in
33707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708   *) ac_try_echo=$ac_try;;
33709 esac
33710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711   (eval "$ac_compile") 2>conftest.er1
33712   ac_status=$?
33713   grep -v '^ *+' conftest.er1 >conftest.err
33714   rm -f conftest.er1
33715   cat conftest.err >&5
33716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717   (exit $ac_status); } && {
33718          test -z "$ac_c_werror_flag" ||
33719          test ! -s conftest.err
33720        } && test -s conftest.$ac_objext; then
33721   ac_hi=$ac_mid; break
33722 else
33723   echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33725
33726         ac_lo=`expr $ac_mid + 1`
33727                         if test $ac_lo -le $ac_mid; then
33728                           ac_lo= ac_hi=
33729                           break
33730                         fi
33731                         ac_mid=`expr 2 '*' $ac_mid + 1`
33732 fi
33733
33734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33735   done
33736 else
33737   echo "$as_me: failed program was:" >&5
33738 sed 's/^/| /' conftest.$ac_ext >&5
33739
33740         cat >conftest.$ac_ext <<_ACEOF
33741 /* confdefs.h.  */
33742 _ACEOF
33743 cat confdefs.h >>conftest.$ac_ext
33744 cat >>conftest.$ac_ext <<_ACEOF
33745 /* end confdefs.h.  */
33746 $ac_includes_default
33747    typedef int ac__type_sizeof_;
33748 int
33749 main ()
33750 {
33751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33752 test_array [0] = 0
33753
33754   ;
33755   return 0;
33756 }
33757 _ACEOF
33758 rm -f conftest.$ac_objext
33759 if { (ac_try="$ac_compile"
33760 case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_compile") 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } && {
33772          test -z "$ac_c_werror_flag" ||
33773          test ! -s conftest.err
33774        } && test -s conftest.$ac_objext; then
33775   ac_hi=-1 ac_mid=-1
33776   while :; do
33777     cat >conftest.$ac_ext <<_ACEOF
33778 /* confdefs.h.  */
33779 _ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h.  */
33783 $ac_includes_default
33784    typedef int ac__type_sizeof_;
33785 int
33786 main ()
33787 {
33788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33789 test_array [0] = 0
33790
33791   ;
33792   return 0;
33793 }
33794 _ACEOF
33795 rm -f conftest.$ac_objext
33796 if { (ac_try="$ac_compile"
33797 case "(($ac_try" in
33798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799   *) ac_try_echo=$ac_try;;
33800 esac
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802   (eval "$ac_compile") 2>conftest.er1
33803   ac_status=$?
33804   grep -v '^ *+' conftest.er1 >conftest.err
33805   rm -f conftest.er1
33806   cat conftest.err >&5
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); } && {
33809          test -z "$ac_c_werror_flag" ||
33810          test ! -s conftest.err
33811        } && test -s conftest.$ac_objext; then
33812   ac_lo=$ac_mid; break
33813 else
33814   echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33816
33817         ac_hi=`expr '(' $ac_mid ')' - 1`
33818                         if test $ac_mid -le $ac_hi; then
33819                           ac_lo= ac_hi=
33820                           break
33821                         fi
33822                         ac_mid=`expr 2 '*' $ac_mid`
33823 fi
33824
33825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33826   done
33827 else
33828   echo "$as_me: failed program was:" >&5
33829 sed 's/^/| /' conftest.$ac_ext >&5
33830
33831         ac_lo= ac_hi=
33832 fi
33833
33834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33835 fi
33836
33837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33838 # Binary search between lo and hi bounds.
33839 while test "x$ac_lo" != "x$ac_hi"; do
33840   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33841   cat >conftest.$ac_ext <<_ACEOF
33842 /* confdefs.h.  */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h.  */
33847 $ac_includes_default
33848    typedef int ac__type_sizeof_;
33849 int
33850 main ()
33851 {
33852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33853 test_array [0] = 0
33854
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext
33860 if { (ac_try="$ac_compile"
33861 case "(($ac_try" in
33862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863   *) ac_try_echo=$ac_try;;
33864 esac
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866   (eval "$ac_compile") 2>conftest.er1
33867   ac_status=$?
33868   grep -v '^ *+' conftest.er1 >conftest.err
33869   rm -f conftest.er1
33870   cat conftest.err >&5
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); } && {
33873          test -z "$ac_c_werror_flag" ||
33874          test ! -s conftest.err
33875        } && test -s conftest.$ac_objext; then
33876   ac_hi=$ac_mid
33877 else
33878   echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33880
33881         ac_lo=`expr '(' $ac_mid ')' + 1`
33882 fi
33883
33884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33885 done
33886 case $ac_lo in
33887 ?*) ac_cv_sizeof_int=$ac_lo;;
33888 '') if test "$ac_cv_type_int" = yes; then
33889      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33890 See \`config.log' for more details." >&5
33891 echo "$as_me: error: cannot compute sizeof (int)
33892 See \`config.log' for more details." >&2;}
33893    { (exit 77); exit 77; }; }
33894    else
33895      ac_cv_sizeof_int=0
33896    fi ;;
33897 esac
33898 else
33899   cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905 $ac_includes_default
33906    typedef int ac__type_sizeof_;
33907 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33908 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33909 #include <stdio.h>
33910 #include <stdlib.h>
33911 int
33912 main ()
33913 {
33914
33915   FILE *f = fopen ("conftest.val", "w");
33916   if (! f)
33917     return 1;
33918   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33919     {
33920       long int i = longval ();
33921       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33922         return 1;
33923       fprintf (f, "%ld\n", i);
33924     }
33925   else
33926     {
33927       unsigned long int i = ulongval ();
33928       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33929         return 1;
33930       fprintf (f, "%lu\n", i);
33931     }
33932   return ferror (f) || fclose (f) != 0;
33933
33934   ;
33935   return 0;
33936 }
33937 _ACEOF
33938 rm -f conftest$ac_exeext
33939 if { (ac_try="$ac_link"
33940 case "(($ac_try" in
33941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942   *) ac_try_echo=$ac_try;;
33943 esac
33944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945   (eval "$ac_link") 2>&5
33946   ac_status=$?
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33949   { (case "(($ac_try" in
33950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951   *) ac_try_echo=$ac_try;;
33952 esac
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954   (eval "$ac_try") 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; }; then
33958   ac_cv_sizeof_int=`cat conftest.val`
33959 else
33960   echo "$as_me: program exited with status $ac_status" >&5
33961 echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33963
33964 ( exit $ac_status )
33965 if test "$ac_cv_type_int" = yes; then
33966      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33967 See \`config.log' for more details." >&5
33968 echo "$as_me: error: cannot compute sizeof (int)
33969 See \`config.log' for more details." >&2;}
33970    { (exit 77); exit 77; }; }
33971    else
33972      ac_cv_sizeof_int=0
33973    fi
33974 fi
33975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33976 fi
33977 rm -f conftest.val
33978 fi
33979 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
33980 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
33981
33982
33983
33984 cat >>confdefs.h <<_ACEOF
33985 #define SIZEOF_INT $ac_cv_sizeof_int
33986 _ACEOF
33987
33988
33989 { echo "$as_me:$LINENO: checking for long" >&5
33990 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
33991 if test "${ac_cv_type_long+set}" = set; then
33992   echo $ECHO_N "(cached) $ECHO_C" >&6
33993 else
33994   cat >conftest.$ac_ext <<_ACEOF
33995 /* confdefs.h.  */
33996 _ACEOF
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h.  */
34000 $ac_includes_default
34001 typedef long ac__type_new_;
34002 int
34003 main ()
34004 {
34005 if ((ac__type_new_ *) 0)
34006   return 0;
34007 if (sizeof (ac__type_new_))
34008   return 0;
34009   ;
34010   return 0;
34011 }
34012 _ACEOF
34013 rm -f conftest.$ac_objext
34014 if { (ac_try="$ac_compile"
34015 case "(($ac_try" in
34016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017   *) ac_try_echo=$ac_try;;
34018 esac
34019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020   (eval "$ac_compile") 2>conftest.er1
34021   ac_status=$?
34022   grep -v '^ *+' conftest.er1 >conftest.err
34023   rm -f conftest.er1
34024   cat conftest.err >&5
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); } && {
34027          test -z "$ac_c_werror_flag" ||
34028          test ! -s conftest.err
34029        } && test -s conftest.$ac_objext; then
34030   ac_cv_type_long=yes
34031 else
34032   echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34034
34035         ac_cv_type_long=no
34036 fi
34037
34038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34039 fi
34040 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34041 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34042
34043 # The cast to long int works around a bug in the HP C Compiler
34044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34046 # This bug is HP SR number 8606223364.
34047 { echo "$as_me:$LINENO: checking size of long" >&5
34048 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34049 if test "${ac_cv_sizeof_long+set}" = set; then
34050   echo $ECHO_N "(cached) $ECHO_C" >&6
34051 else
34052   if test "$cross_compiling" = yes; then
34053   # Depending upon the size, compute the lo and hi bounds.
34054 cat >conftest.$ac_ext <<_ACEOF
34055 /* confdefs.h.  */
34056 _ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h.  */
34060 $ac_includes_default
34061    typedef long ac__type_sizeof_;
34062 int
34063 main ()
34064 {
34065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34066 test_array [0] = 0
34067
34068   ;
34069   return 0;
34070 }
34071 _ACEOF
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076   *) ac_try_echo=$ac_try;;
34077 esac
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079   (eval "$ac_compile") 2>conftest.er1
34080   ac_status=$?
34081   grep -v '^ *+' conftest.er1 >conftest.err
34082   rm -f conftest.er1
34083   cat conftest.err >&5
34084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085   (exit $ac_status); } && {
34086          test -z "$ac_c_werror_flag" ||
34087          test ! -s conftest.err
34088        } && test -s conftest.$ac_objext; then
34089   ac_lo=0 ac_mid=0
34090   while :; do
34091     cat >conftest.$ac_ext <<_ACEOF
34092 /* confdefs.h.  */
34093 _ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h.  */
34097 $ac_includes_default
34098    typedef long ac__type_sizeof_;
34099 int
34100 main ()
34101 {
34102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34103 test_array [0] = 0
34104
34105   ;
34106   return 0;
34107 }
34108 _ACEOF
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113   *) ac_try_echo=$ac_try;;
34114 esac
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116   (eval "$ac_compile") 2>conftest.er1
34117   ac_status=$?
34118   grep -v '^ *+' conftest.er1 >conftest.err
34119   rm -f conftest.er1
34120   cat conftest.err >&5
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); } && {
34123          test -z "$ac_c_werror_flag" ||
34124          test ! -s conftest.err
34125        } && test -s conftest.$ac_objext; then
34126   ac_hi=$ac_mid; break
34127 else
34128   echo "$as_me: failed program was:" >&5
34129 sed 's/^/| /' conftest.$ac_ext >&5
34130
34131         ac_lo=`expr $ac_mid + 1`
34132                         if test $ac_lo -le $ac_mid; then
34133                           ac_lo= ac_hi=
34134                           break
34135                         fi
34136                         ac_mid=`expr 2 '*' $ac_mid + 1`
34137 fi
34138
34139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34140   done
34141 else
34142   echo "$as_me: failed program was:" >&5
34143 sed 's/^/| /' conftest.$ac_ext >&5
34144
34145         cat >conftest.$ac_ext <<_ACEOF
34146 /* confdefs.h.  */
34147 _ACEOF
34148 cat confdefs.h >>conftest.$ac_ext
34149 cat >>conftest.$ac_ext <<_ACEOF
34150 /* end confdefs.h.  */
34151 $ac_includes_default
34152    typedef long ac__type_sizeof_;
34153 int
34154 main ()
34155 {
34156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34157 test_array [0] = 0
34158
34159   ;
34160   return 0;
34161 }
34162 _ACEOF
34163 rm -f conftest.$ac_objext
34164 if { (ac_try="$ac_compile"
34165 case "(($ac_try" in
34166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167   *) ac_try_echo=$ac_try;;
34168 esac
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170   (eval "$ac_compile") 2>conftest.er1
34171   ac_status=$?
34172   grep -v '^ *+' conftest.er1 >conftest.err
34173   rm -f conftest.er1
34174   cat conftest.err >&5
34175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176   (exit $ac_status); } && {
34177          test -z "$ac_c_werror_flag" ||
34178          test ! -s conftest.err
34179        } && test -s conftest.$ac_objext; then
34180   ac_hi=-1 ac_mid=-1
34181   while :; do
34182     cat >conftest.$ac_ext <<_ACEOF
34183 /* confdefs.h.  */
34184 _ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h.  */
34188 $ac_includes_default
34189    typedef long ac__type_sizeof_;
34190 int
34191 main ()
34192 {
34193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34194 test_array [0] = 0
34195
34196   ;
34197   return 0;
34198 }
34199 _ACEOF
34200 rm -f conftest.$ac_objext
34201 if { (ac_try="$ac_compile"
34202 case "(($ac_try" in
34203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34204   *) ac_try_echo=$ac_try;;
34205 esac
34206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34207   (eval "$ac_compile") 2>conftest.er1
34208   ac_status=$?
34209   grep -v '^ *+' conftest.er1 >conftest.err
34210   rm -f conftest.er1
34211   cat conftest.err >&5
34212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213   (exit $ac_status); } && {
34214          test -z "$ac_c_werror_flag" ||
34215          test ! -s conftest.err
34216        } && test -s conftest.$ac_objext; then
34217   ac_lo=$ac_mid; break
34218 else
34219   echo "$as_me: failed program was:" >&5
34220 sed 's/^/| /' conftest.$ac_ext >&5
34221
34222         ac_hi=`expr '(' $ac_mid ')' - 1`
34223                         if test $ac_mid -le $ac_hi; then
34224                           ac_lo= ac_hi=
34225                           break
34226                         fi
34227                         ac_mid=`expr 2 '*' $ac_mid`
34228 fi
34229
34230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34231   done
34232 else
34233   echo "$as_me: failed program was:" >&5
34234 sed 's/^/| /' conftest.$ac_ext >&5
34235
34236         ac_lo= ac_hi=
34237 fi
34238
34239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34240 fi
34241
34242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243 # Binary search between lo and hi bounds.
34244 while test "x$ac_lo" != "x$ac_hi"; do
34245   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34246   cat >conftest.$ac_ext <<_ACEOF
34247 /* confdefs.h.  */
34248 _ACEOF
34249 cat confdefs.h >>conftest.$ac_ext
34250 cat >>conftest.$ac_ext <<_ACEOF
34251 /* end confdefs.h.  */
34252 $ac_includes_default
34253    typedef long ac__type_sizeof_;
34254 int
34255 main ()
34256 {
34257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34258 test_array [0] = 0
34259
34260   ;
34261   return 0;
34262 }
34263 _ACEOF
34264 rm -f conftest.$ac_objext
34265 if { (ac_try="$ac_compile"
34266 case "(($ac_try" in
34267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34268   *) ac_try_echo=$ac_try;;
34269 esac
34270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34271   (eval "$ac_compile") 2>conftest.er1
34272   ac_status=$?
34273   grep -v '^ *+' conftest.er1 >conftest.err
34274   rm -f conftest.er1
34275   cat conftest.err >&5
34276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277   (exit $ac_status); } && {
34278          test -z "$ac_c_werror_flag" ||
34279          test ! -s conftest.err
34280        } && test -s conftest.$ac_objext; then
34281   ac_hi=$ac_mid
34282 else
34283   echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34285
34286         ac_lo=`expr '(' $ac_mid ')' + 1`
34287 fi
34288
34289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34290 done
34291 case $ac_lo in
34292 ?*) ac_cv_sizeof_long=$ac_lo;;
34293 '') if test "$ac_cv_type_long" = yes; then
34294      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34295 See \`config.log' for more details." >&5
34296 echo "$as_me: error: cannot compute sizeof (long)
34297 See \`config.log' for more details." >&2;}
34298    { (exit 77); exit 77; }; }
34299    else
34300      ac_cv_sizeof_long=0
34301    fi ;;
34302 esac
34303 else
34304   cat >conftest.$ac_ext <<_ACEOF
34305 /* confdefs.h.  */
34306 _ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h.  */
34310 $ac_includes_default
34311    typedef long ac__type_sizeof_;
34312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34314 #include <stdio.h>
34315 #include <stdlib.h>
34316 int
34317 main ()
34318 {
34319
34320   FILE *f = fopen ("conftest.val", "w");
34321   if (! f)
34322     return 1;
34323   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34324     {
34325       long int i = longval ();
34326       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34327         return 1;
34328       fprintf (f, "%ld\n", i);
34329     }
34330   else
34331     {
34332       unsigned long int i = ulongval ();
34333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34334         return 1;
34335       fprintf (f, "%lu\n", i);
34336     }
34337   return ferror (f) || fclose (f) != 0;
34338
34339   ;
34340   return 0;
34341 }
34342 _ACEOF
34343 rm -f conftest$ac_exeext
34344 if { (ac_try="$ac_link"
34345 case "(($ac_try" in
34346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34347   *) ac_try_echo=$ac_try;;
34348 esac
34349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34350   (eval "$ac_link") 2>&5
34351   ac_status=$?
34352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34354   { (case "(($ac_try" in
34355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34356   *) ac_try_echo=$ac_try;;
34357 esac
34358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34359   (eval "$ac_try") 2>&5
34360   ac_status=$?
34361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362   (exit $ac_status); }; }; then
34363   ac_cv_sizeof_long=`cat conftest.val`
34364 else
34365   echo "$as_me: program exited with status $ac_status" >&5
34366 echo "$as_me: failed program was:" >&5
34367 sed 's/^/| /' conftest.$ac_ext >&5
34368
34369 ( exit $ac_status )
34370 if test "$ac_cv_type_long" = yes; then
34371      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34372 See \`config.log' for more details." >&5
34373 echo "$as_me: error: cannot compute sizeof (long)
34374 See \`config.log' for more details." >&2;}
34375    { (exit 77); exit 77; }; }
34376    else
34377      ac_cv_sizeof_long=0
34378    fi
34379 fi
34380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34381 fi
34382 rm -f conftest.val
34383 fi
34384 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34385 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34386
34387
34388
34389 cat >>confdefs.h <<_ACEOF
34390 #define SIZEOF_LONG $ac_cv_sizeof_long
34391 _ACEOF
34392
34393
34394 { echo "$as_me:$LINENO: checking for long long" >&5
34395 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34396 if test "${ac_cv_type_long_long+set}" = set; then
34397   echo $ECHO_N "(cached) $ECHO_C" >&6
34398 else
34399   cat >conftest.$ac_ext <<_ACEOF
34400 /* confdefs.h.  */
34401 _ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h.  */
34405 $ac_includes_default
34406 typedef long long ac__type_new_;
34407 int
34408 main ()
34409 {
34410 if ((ac__type_new_ *) 0)
34411   return 0;
34412 if (sizeof (ac__type_new_))
34413   return 0;
34414   ;
34415   return 0;
34416 }
34417 _ACEOF
34418 rm -f conftest.$ac_objext
34419 if { (ac_try="$ac_compile"
34420 case "(($ac_try" in
34421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34422   *) ac_try_echo=$ac_try;;
34423 esac
34424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34425   (eval "$ac_compile") 2>conftest.er1
34426   ac_status=$?
34427   grep -v '^ *+' conftest.er1 >conftest.err
34428   rm -f conftest.er1
34429   cat conftest.err >&5
34430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431   (exit $ac_status); } && {
34432          test -z "$ac_c_werror_flag" ||
34433          test ! -s conftest.err
34434        } && test -s conftest.$ac_objext; then
34435   ac_cv_type_long_long=yes
34436 else
34437   echo "$as_me: failed program was:" >&5
34438 sed 's/^/| /' conftest.$ac_ext >&5
34439
34440         ac_cv_type_long_long=no
34441 fi
34442
34443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34444 fi
34445 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34446 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34447
34448 # The cast to long int works around a bug in the HP C Compiler
34449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34451 # This bug is HP SR number 8606223364.
34452 { echo "$as_me:$LINENO: checking size of long long" >&5
34453 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34454 if test "${ac_cv_sizeof_long_long+set}" = set; then
34455   echo $ECHO_N "(cached) $ECHO_C" >&6
34456 else
34457   if test "$cross_compiling" = yes; then
34458   # Depending upon the size, compute the lo and hi bounds.
34459 cat >conftest.$ac_ext <<_ACEOF
34460 /* confdefs.h.  */
34461 _ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h.  */
34465 $ac_includes_default
34466    typedef long long ac__type_sizeof_;
34467 int
34468 main ()
34469 {
34470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34471 test_array [0] = 0
34472
34473   ;
34474   return 0;
34475 }
34476 _ACEOF
34477 rm -f conftest.$ac_objext
34478 if { (ac_try="$ac_compile"
34479 case "(($ac_try" in
34480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481   *) ac_try_echo=$ac_try;;
34482 esac
34483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484   (eval "$ac_compile") 2>conftest.er1
34485   ac_status=$?
34486   grep -v '^ *+' conftest.er1 >conftest.err
34487   rm -f conftest.er1
34488   cat conftest.err >&5
34489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490   (exit $ac_status); } && {
34491          test -z "$ac_c_werror_flag" ||
34492          test ! -s conftest.err
34493        } && test -s conftest.$ac_objext; then
34494   ac_lo=0 ac_mid=0
34495   while :; do
34496     cat >conftest.$ac_ext <<_ACEOF
34497 /* confdefs.h.  */
34498 _ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h.  */
34502 $ac_includes_default
34503    typedef long long ac__type_sizeof_;
34504 int
34505 main ()
34506 {
34507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34508 test_array [0] = 0
34509
34510   ;
34511   return 0;
34512 }
34513 _ACEOF
34514 rm -f conftest.$ac_objext
34515 if { (ac_try="$ac_compile"
34516 case "(($ac_try" in
34517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34518   *) ac_try_echo=$ac_try;;
34519 esac
34520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34521   (eval "$ac_compile") 2>conftest.er1
34522   ac_status=$?
34523   grep -v '^ *+' conftest.er1 >conftest.err
34524   rm -f conftest.er1
34525   cat conftest.err >&5
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); } && {
34528          test -z "$ac_c_werror_flag" ||
34529          test ! -s conftest.err
34530        } && test -s conftest.$ac_objext; then
34531   ac_hi=$ac_mid; break
34532 else
34533   echo "$as_me: failed program was:" >&5
34534 sed 's/^/| /' conftest.$ac_ext >&5
34535
34536         ac_lo=`expr $ac_mid + 1`
34537                         if test $ac_lo -le $ac_mid; then
34538                           ac_lo= ac_hi=
34539                           break
34540                         fi
34541                         ac_mid=`expr 2 '*' $ac_mid + 1`
34542 fi
34543
34544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34545   done
34546 else
34547   echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34549
34550         cat >conftest.$ac_ext <<_ACEOF
34551 /* confdefs.h.  */
34552 _ACEOF
34553 cat confdefs.h >>conftest.$ac_ext
34554 cat >>conftest.$ac_ext <<_ACEOF
34555 /* end confdefs.h.  */
34556 $ac_includes_default
34557    typedef long long ac__type_sizeof_;
34558 int
34559 main ()
34560 {
34561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34562 test_array [0] = 0
34563
34564   ;
34565   return 0;
34566 }
34567 _ACEOF
34568 rm -f conftest.$ac_objext
34569 if { (ac_try="$ac_compile"
34570 case "(($ac_try" in
34571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572   *) ac_try_echo=$ac_try;;
34573 esac
34574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575   (eval "$ac_compile") 2>conftest.er1
34576   ac_status=$?
34577   grep -v '^ *+' conftest.er1 >conftest.err
34578   rm -f conftest.er1
34579   cat conftest.err >&5
34580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581   (exit $ac_status); } && {
34582          test -z "$ac_c_werror_flag" ||
34583          test ! -s conftest.err
34584        } && test -s conftest.$ac_objext; then
34585   ac_hi=-1 ac_mid=-1
34586   while :; do
34587     cat >conftest.$ac_ext <<_ACEOF
34588 /* confdefs.h.  */
34589 _ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h.  */
34593 $ac_includes_default
34594    typedef long long ac__type_sizeof_;
34595 int
34596 main ()
34597 {
34598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34599 test_array [0] = 0
34600
34601   ;
34602   return 0;
34603 }
34604 _ACEOF
34605 rm -f conftest.$ac_objext
34606 if { (ac_try="$ac_compile"
34607 case "(($ac_try" in
34608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34609   *) ac_try_echo=$ac_try;;
34610 esac
34611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34612   (eval "$ac_compile") 2>conftest.er1
34613   ac_status=$?
34614   grep -v '^ *+' conftest.er1 >conftest.err
34615   rm -f conftest.er1
34616   cat conftest.err >&5
34617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618   (exit $ac_status); } && {
34619          test -z "$ac_c_werror_flag" ||
34620          test ! -s conftest.err
34621        } && test -s conftest.$ac_objext; then
34622   ac_lo=$ac_mid; break
34623 else
34624   echo "$as_me: failed program was:" >&5
34625 sed 's/^/| /' conftest.$ac_ext >&5
34626
34627         ac_hi=`expr '(' $ac_mid ')' - 1`
34628                         if test $ac_mid -le $ac_hi; then
34629                           ac_lo= ac_hi=
34630                           break
34631                         fi
34632                         ac_mid=`expr 2 '*' $ac_mid`
34633 fi
34634
34635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34636   done
34637 else
34638   echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34640
34641         ac_lo= ac_hi=
34642 fi
34643
34644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34645 fi
34646
34647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34648 # Binary search between lo and hi bounds.
34649 while test "x$ac_lo" != "x$ac_hi"; do
34650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34651   cat >conftest.$ac_ext <<_ACEOF
34652 /* confdefs.h.  */
34653 _ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h.  */
34657 $ac_includes_default
34658    typedef long long ac__type_sizeof_;
34659 int
34660 main ()
34661 {
34662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34663 test_array [0] = 0
34664
34665   ;
34666   return 0;
34667 }
34668 _ACEOF
34669 rm -f conftest.$ac_objext
34670 if { (ac_try="$ac_compile"
34671 case "(($ac_try" in
34672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34673   *) ac_try_echo=$ac_try;;
34674 esac
34675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34676   (eval "$ac_compile") 2>conftest.er1
34677   ac_status=$?
34678   grep -v '^ *+' conftest.er1 >conftest.err
34679   rm -f conftest.er1
34680   cat conftest.err >&5
34681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682   (exit $ac_status); } && {
34683          test -z "$ac_c_werror_flag" ||
34684          test ! -s conftest.err
34685        } && test -s conftest.$ac_objext; then
34686   ac_hi=$ac_mid
34687 else
34688   echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34690
34691         ac_lo=`expr '(' $ac_mid ')' + 1`
34692 fi
34693
34694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34695 done
34696 case $ac_lo in
34697 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34698 '') if test "$ac_cv_type_long_long" = yes; then
34699      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34700 See \`config.log' for more details." >&5
34701 echo "$as_me: error: cannot compute sizeof (long long)
34702 See \`config.log' for more details." >&2;}
34703    { (exit 77); exit 77; }; }
34704    else
34705      ac_cv_sizeof_long_long=0
34706    fi ;;
34707 esac
34708 else
34709   cat >conftest.$ac_ext <<_ACEOF
34710 /* confdefs.h.  */
34711 _ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h.  */
34715 $ac_includes_default
34716    typedef long long ac__type_sizeof_;
34717 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34718 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34719 #include <stdio.h>
34720 #include <stdlib.h>
34721 int
34722 main ()
34723 {
34724
34725   FILE *f = fopen ("conftest.val", "w");
34726   if (! f)
34727     return 1;
34728   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34729     {
34730       long int i = longval ();
34731       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34732         return 1;
34733       fprintf (f, "%ld\n", i);
34734     }
34735   else
34736     {
34737       unsigned long int i = ulongval ();
34738       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34739         return 1;
34740       fprintf (f, "%lu\n", i);
34741     }
34742   return ferror (f) || fclose (f) != 0;
34743
34744   ;
34745   return 0;
34746 }
34747 _ACEOF
34748 rm -f conftest$ac_exeext
34749 if { (ac_try="$ac_link"
34750 case "(($ac_try" in
34751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752   *) ac_try_echo=$ac_try;;
34753 esac
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755   (eval "$ac_link") 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34759   { (case "(($ac_try" in
34760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34761   *) ac_try_echo=$ac_try;;
34762 esac
34763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764   (eval "$ac_try") 2>&5
34765   ac_status=$?
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); }; }; then
34768   ac_cv_sizeof_long_long=`cat conftest.val`
34769 else
34770   echo "$as_me: program exited with status $ac_status" >&5
34771 echo "$as_me: failed program was:" >&5
34772 sed 's/^/| /' conftest.$ac_ext >&5
34773
34774 ( exit $ac_status )
34775 if test "$ac_cv_type_long_long" = yes; then
34776      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34777 See \`config.log' for more details." >&5
34778 echo "$as_me: error: cannot compute sizeof (long long)
34779 See \`config.log' for more details." >&2;}
34780    { (exit 77); exit 77; }; }
34781    else
34782      ac_cv_sizeof_long_long=0
34783    fi
34784 fi
34785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34786 fi
34787 rm -f conftest.val
34788 fi
34789 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34790 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34791
34792
34793
34794 cat >>confdefs.h <<_ACEOF
34795 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34796 _ACEOF
34797
34798
34799 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34800 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34801 if test "${ac_cv_type_wchar_t+set}" = set; then
34802   echo $ECHO_N "(cached) $ECHO_C" >&6
34803 else
34804   cat >conftest.$ac_ext <<_ACEOF
34805 /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810 $ac_includes_default
34811 typedef wchar_t ac__type_new_;
34812 int
34813 main ()
34814 {
34815 if ((ac__type_new_ *) 0)
34816   return 0;
34817 if (sizeof (ac__type_new_))
34818   return 0;
34819   ;
34820   return 0;
34821 }
34822 _ACEOF
34823 rm -f conftest.$ac_objext
34824 if { (ac_try="$ac_compile"
34825 case "(($ac_try" in
34826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34827   *) ac_try_echo=$ac_try;;
34828 esac
34829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34830   (eval "$ac_compile") 2>conftest.er1
34831   ac_status=$?
34832   grep -v '^ *+' conftest.er1 >conftest.err
34833   rm -f conftest.er1
34834   cat conftest.err >&5
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); } && {
34837          test -z "$ac_c_werror_flag" ||
34838          test ! -s conftest.err
34839        } && test -s conftest.$ac_objext; then
34840   ac_cv_type_wchar_t=yes
34841 else
34842   echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.$ac_ext >&5
34844
34845         ac_cv_type_wchar_t=no
34846 fi
34847
34848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34849 fi
34850 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34851 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34852
34853 # The cast to long int works around a bug in the HP C Compiler
34854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34856 # This bug is HP SR number 8606223364.
34857 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34858 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34859 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34860   echo $ECHO_N "(cached) $ECHO_C" >&6
34861 else
34862   if test "$cross_compiling" = yes; then
34863   # Depending upon the size, compute the lo and hi bounds.
34864 cat >conftest.$ac_ext <<_ACEOF
34865 /* confdefs.h.  */
34866 _ACEOF
34867 cat confdefs.h >>conftest.$ac_ext
34868 cat >>conftest.$ac_ext <<_ACEOF
34869 /* end confdefs.h.  */
34870 $ac_includes_default
34871    typedef wchar_t ac__type_sizeof_;
34872 int
34873 main ()
34874 {
34875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34876 test_array [0] = 0
34877
34878   ;
34879   return 0;
34880 }
34881 _ACEOF
34882 rm -f conftest.$ac_objext
34883 if { (ac_try="$ac_compile"
34884 case "(($ac_try" in
34885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886   *) ac_try_echo=$ac_try;;
34887 esac
34888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889   (eval "$ac_compile") 2>conftest.er1
34890   ac_status=$?
34891   grep -v '^ *+' conftest.er1 >conftest.err
34892   rm -f conftest.er1
34893   cat conftest.err >&5
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); } && {
34896          test -z "$ac_c_werror_flag" ||
34897          test ! -s conftest.err
34898        } && test -s conftest.$ac_objext; then
34899   ac_lo=0 ac_mid=0
34900   while :; do
34901     cat >conftest.$ac_ext <<_ACEOF
34902 /* confdefs.h.  */
34903 _ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h.  */
34907 $ac_includes_default
34908    typedef wchar_t ac__type_sizeof_;
34909 int
34910 main ()
34911 {
34912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34913 test_array [0] = 0
34914
34915   ;
34916   return 0;
34917 }
34918 _ACEOF
34919 rm -f conftest.$ac_objext
34920 if { (ac_try="$ac_compile"
34921 case "(($ac_try" in
34922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34923   *) ac_try_echo=$ac_try;;
34924 esac
34925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34926   (eval "$ac_compile") 2>conftest.er1
34927   ac_status=$?
34928   grep -v '^ *+' conftest.er1 >conftest.err
34929   rm -f conftest.er1
34930   cat conftest.err >&5
34931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932   (exit $ac_status); } && {
34933          test -z "$ac_c_werror_flag" ||
34934          test ! -s conftest.err
34935        } && test -s conftest.$ac_objext; then
34936   ac_hi=$ac_mid; break
34937 else
34938   echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34940
34941         ac_lo=`expr $ac_mid + 1`
34942                         if test $ac_lo -le $ac_mid; then
34943                           ac_lo= ac_hi=
34944                           break
34945                         fi
34946                         ac_mid=`expr 2 '*' $ac_mid + 1`
34947 fi
34948
34949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34950   done
34951 else
34952   echo "$as_me: failed program was:" >&5
34953 sed 's/^/| /' conftest.$ac_ext >&5
34954
34955         cat >conftest.$ac_ext <<_ACEOF
34956 /* confdefs.h.  */
34957 _ACEOF
34958 cat confdefs.h >>conftest.$ac_ext
34959 cat >>conftest.$ac_ext <<_ACEOF
34960 /* end confdefs.h.  */
34961 $ac_includes_default
34962    typedef wchar_t ac__type_sizeof_;
34963 int
34964 main ()
34965 {
34966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34967 test_array [0] = 0
34968
34969   ;
34970   return 0;
34971 }
34972 _ACEOF
34973 rm -f conftest.$ac_objext
34974 if { (ac_try="$ac_compile"
34975 case "(($ac_try" in
34976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34977   *) ac_try_echo=$ac_try;;
34978 esac
34979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34980   (eval "$ac_compile") 2>conftest.er1
34981   ac_status=$?
34982   grep -v '^ *+' conftest.er1 >conftest.err
34983   rm -f conftest.er1
34984   cat conftest.err >&5
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); } && {
34987          test -z "$ac_c_werror_flag" ||
34988          test ! -s conftest.err
34989        } && test -s conftest.$ac_objext; then
34990   ac_hi=-1 ac_mid=-1
34991   while :; do
34992     cat >conftest.$ac_ext <<_ACEOF
34993 /* confdefs.h.  */
34994 _ACEOF
34995 cat confdefs.h >>conftest.$ac_ext
34996 cat >>conftest.$ac_ext <<_ACEOF
34997 /* end confdefs.h.  */
34998 $ac_includes_default
34999    typedef wchar_t ac__type_sizeof_;
35000 int
35001 main ()
35002 {
35003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35004 test_array [0] = 0
35005
35006   ;
35007   return 0;
35008 }
35009 _ACEOF
35010 rm -f conftest.$ac_objext
35011 if { (ac_try="$ac_compile"
35012 case "(($ac_try" in
35013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35014   *) ac_try_echo=$ac_try;;
35015 esac
35016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35017   (eval "$ac_compile") 2>conftest.er1
35018   ac_status=$?
35019   grep -v '^ *+' conftest.er1 >conftest.err
35020   rm -f conftest.er1
35021   cat conftest.err >&5
35022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023   (exit $ac_status); } && {
35024          test -z "$ac_c_werror_flag" ||
35025          test ! -s conftest.err
35026        } && test -s conftest.$ac_objext; then
35027   ac_lo=$ac_mid; break
35028 else
35029   echo "$as_me: failed program was:" >&5
35030 sed 's/^/| /' conftest.$ac_ext >&5
35031
35032         ac_hi=`expr '(' $ac_mid ')' - 1`
35033                         if test $ac_mid -le $ac_hi; then
35034                           ac_lo= ac_hi=
35035                           break
35036                         fi
35037                         ac_mid=`expr 2 '*' $ac_mid`
35038 fi
35039
35040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35041   done
35042 else
35043   echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.$ac_ext >&5
35045
35046         ac_lo= ac_hi=
35047 fi
35048
35049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35050 fi
35051
35052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35053 # Binary search between lo and hi bounds.
35054 while test "x$ac_lo" != "x$ac_hi"; do
35055   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35056   cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h.  */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h.  */
35062 $ac_includes_default
35063    typedef wchar_t ac__type_sizeof_;
35064 int
35065 main ()
35066 {
35067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35068 test_array [0] = 0
35069
35070   ;
35071   return 0;
35072 }
35073 _ACEOF
35074 rm -f conftest.$ac_objext
35075 if { (ac_try="$ac_compile"
35076 case "(($ac_try" in
35077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078   *) ac_try_echo=$ac_try;;
35079 esac
35080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35081   (eval "$ac_compile") 2>conftest.er1
35082   ac_status=$?
35083   grep -v '^ *+' conftest.er1 >conftest.err
35084   rm -f conftest.er1
35085   cat conftest.err >&5
35086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087   (exit $ac_status); } && {
35088          test -z "$ac_c_werror_flag" ||
35089          test ! -s conftest.err
35090        } && test -s conftest.$ac_objext; then
35091   ac_hi=$ac_mid
35092 else
35093   echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35095
35096         ac_lo=`expr '(' $ac_mid ')' + 1`
35097 fi
35098
35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35100 done
35101 case $ac_lo in
35102 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35103 '') if test "$ac_cv_type_wchar_t" = yes; then
35104      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35105 See \`config.log' for more details." >&5
35106 echo "$as_me: error: cannot compute sizeof (wchar_t)
35107 See \`config.log' for more details." >&2;}
35108    { (exit 77); exit 77; }; }
35109    else
35110      ac_cv_sizeof_wchar_t=0
35111    fi ;;
35112 esac
35113 else
35114   cat >conftest.$ac_ext <<_ACEOF
35115 /* confdefs.h.  */
35116 _ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h.  */
35120 $ac_includes_default
35121    typedef wchar_t ac__type_sizeof_;
35122 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35123 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35124 #include <stdio.h>
35125 #include <stdlib.h>
35126 int
35127 main ()
35128 {
35129
35130   FILE *f = fopen ("conftest.val", "w");
35131   if (! f)
35132     return 1;
35133   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35134     {
35135       long int i = longval ();
35136       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35137         return 1;
35138       fprintf (f, "%ld\n", i);
35139     }
35140   else
35141     {
35142       unsigned long int i = ulongval ();
35143       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35144         return 1;
35145       fprintf (f, "%lu\n", i);
35146     }
35147   return ferror (f) || fclose (f) != 0;
35148
35149   ;
35150   return 0;
35151 }
35152 _ACEOF
35153 rm -f conftest$ac_exeext
35154 if { (ac_try="$ac_link"
35155 case "(($ac_try" in
35156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157   *) ac_try_echo=$ac_try;;
35158 esac
35159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35160   (eval "$ac_link") 2>&5
35161   ac_status=$?
35162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35164   { (case "(($ac_try" in
35165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35166   *) ac_try_echo=$ac_try;;
35167 esac
35168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35169   (eval "$ac_try") 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); }; }; then
35173   ac_cv_sizeof_wchar_t=`cat conftest.val`
35174 else
35175   echo "$as_me: program exited with status $ac_status" >&5
35176 echo "$as_me: failed program was:" >&5
35177 sed 's/^/| /' conftest.$ac_ext >&5
35178
35179 ( exit $ac_status )
35180 if test "$ac_cv_type_wchar_t" = yes; then
35181      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35182 See \`config.log' for more details." >&5
35183 echo "$as_me: error: cannot compute sizeof (wchar_t)
35184 See \`config.log' for more details." >&2;}
35185    { (exit 77); exit 77; }; }
35186    else
35187      ac_cv_sizeof_wchar_t=0
35188    fi
35189 fi
35190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35191 fi
35192 rm -f conftest.val
35193 fi
35194 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35195 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35196
35197
35198
35199 cat >>confdefs.h <<_ACEOF
35200 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35201 _ACEOF
35202
35203
35204
35205 if test "$ac_cv_sizeof_int" -lt 4 ; then
35206         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35207 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35208
35209
35210 cat >>confdefs.h <<\_ACEOF
35211 #define LBER_INT_T long
35212 _ACEOF
35213
35214 else
35215
35216 cat >>confdefs.h <<\_ACEOF
35217 #define LBER_INT_T int
35218 _ACEOF
35219
35220 fi
35221
35222
35223 cat >>confdefs.h <<\_ACEOF
35224 #define LBER_LEN_T long
35225 _ACEOF
35226
35227
35228 cat >>confdefs.h <<\_ACEOF
35229 #define LBER_SOCKET_T int
35230 _ACEOF
35231
35232
35233 cat >>confdefs.h <<\_ACEOF
35234 #define LBER_TAG_T long
35235 _ACEOF
35236
35237
35238 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35239         if test $ac_cv_sizeof_long_long -gt 4 ; then
35240                 ol_with_mp=longlong
35241
35242 cat >>confdefs.h <<\_ACEOF
35243 #define USE_MP_LONG_LONG 1
35244 _ACEOF
35245
35246         elif test $ol_with_mp = longlong ; then
35247                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35248 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35249    { (exit 1); exit 1; }; }
35250         fi
35251 fi
35252 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35253         if test $ac_cv_sizeof_long -gt 4 ; then
35254                 ol_with_mp=long
35255
35256 cat >>confdefs.h <<\_ACEOF
35257 #define USE_MP_LONG 1
35258 _ACEOF
35259
35260         elif test $ol_with_mp = long ; then
35261                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35262 echo "$as_me: error: long unusable for multiple precision" >&2;}
35263    { (exit 1); exit 1; }; }
35264         fi
35265 fi
35266 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35267
35268 for ac_header in openssl/bn.h
35269 do
35270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35272   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35275   echo $ECHO_N "(cached) $ECHO_C" >&6
35276 fi
35277 ac_res=`eval echo '${'$as_ac_Header'}'`
35278                { echo "$as_me:$LINENO: result: $ac_res" >&5
35279 echo "${ECHO_T}$ac_res" >&6; }
35280 else
35281   # Is the header compilable?
35282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35284 cat >conftest.$ac_ext <<_ACEOF
35285 /* confdefs.h.  */
35286 _ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h.  */
35290 $ac_includes_default
35291 #include <$ac_header>
35292 _ACEOF
35293 rm -f conftest.$ac_objext
35294 if { (ac_try="$ac_compile"
35295 case "(($ac_try" in
35296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35297   *) ac_try_echo=$ac_try;;
35298 esac
35299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35300   (eval "$ac_compile") 2>conftest.er1
35301   ac_status=$?
35302   grep -v '^ *+' conftest.er1 >conftest.err
35303   rm -f conftest.er1
35304   cat conftest.err >&5
35305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35306   (exit $ac_status); } && {
35307          test -z "$ac_c_werror_flag" ||
35308          test ! -s conftest.err
35309        } && test -s conftest.$ac_objext; then
35310   ac_header_compiler=yes
35311 else
35312   echo "$as_me: failed program was:" >&5
35313 sed 's/^/| /' conftest.$ac_ext >&5
35314
35315         ac_header_compiler=no
35316 fi
35317
35318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35320 echo "${ECHO_T}$ac_header_compiler" >&6; }
35321
35322 # Is the header present?
35323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35325 cat >conftest.$ac_ext <<_ACEOF
35326 /* confdefs.h.  */
35327 _ACEOF
35328 cat confdefs.h >>conftest.$ac_ext
35329 cat >>conftest.$ac_ext <<_ACEOF
35330 /* end confdefs.h.  */
35331 #include <$ac_header>
35332 _ACEOF
35333 if { (ac_try="$ac_cpp conftest.$ac_ext"
35334 case "(($ac_try" in
35335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336   *) ac_try_echo=$ac_try;;
35337 esac
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35340   ac_status=$?
35341   grep -v '^ *+' conftest.er1 >conftest.err
35342   rm -f conftest.er1
35343   cat conftest.err >&5
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); } >/dev/null && {
35346          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35347          test ! -s conftest.err
35348        }; then
35349   ac_header_preproc=yes
35350 else
35351   echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35353
35354   ac_header_preproc=no
35355 fi
35356
35357 rm -f conftest.err conftest.$ac_ext
35358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35359 echo "${ECHO_T}$ac_header_preproc" >&6; }
35360
35361 # So?  What about this header?
35362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35363   yes:no: )
35364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35368     ac_header_preproc=yes
35369     ;;
35370   no:yes:* )
35371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35383     ( cat <<\_ASBOX
35384 ## --------------------------------------------- ##
35385 ## Report this to <http://www.openldap.org/its/> ##
35386 ## --------------------------------------------- ##
35387 _ASBOX
35388      ) | sed "s/^/$as_me: WARNING:     /" >&2
35389     ;;
35390 esac
35391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35394   echo $ECHO_N "(cached) $ECHO_C" >&6
35395 else
35396   eval "$as_ac_Header=\$ac_header_preproc"
35397 fi
35398 ac_res=`eval echo '${'$as_ac_Header'}'`
35399                { echo "$as_me:$LINENO: result: $ac_res" >&5
35400 echo "${ECHO_T}$ac_res" >&6; }
35401
35402 fi
35403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35404   cat >>confdefs.h <<_ACEOF
35405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35406 _ACEOF
35407
35408 fi
35409
35410 done
35411
35412
35413 for ac_header in openssl/crypto.h
35414 do
35415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35417   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35420   echo $ECHO_N "(cached) $ECHO_C" >&6
35421 fi
35422 ac_res=`eval echo '${'$as_ac_Header'}'`
35423                { echo "$as_me:$LINENO: result: $ac_res" >&5
35424 echo "${ECHO_T}$ac_res" >&6; }
35425 else
35426   # Is the header compilable?
35427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35429 cat >conftest.$ac_ext <<_ACEOF
35430 /* confdefs.h.  */
35431 _ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h.  */
35435 $ac_includes_default
35436 #include <$ac_header>
35437 _ACEOF
35438 rm -f conftest.$ac_objext
35439 if { (ac_try="$ac_compile"
35440 case "(($ac_try" in
35441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442   *) ac_try_echo=$ac_try;;
35443 esac
35444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445   (eval "$ac_compile") 2>conftest.er1
35446   ac_status=$?
35447   grep -v '^ *+' conftest.er1 >conftest.err
35448   rm -f conftest.er1
35449   cat conftest.err >&5
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); } && {
35452          test -z "$ac_c_werror_flag" ||
35453          test ! -s conftest.err
35454        } && test -s conftest.$ac_objext; then
35455   ac_header_compiler=yes
35456 else
35457   echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35459
35460         ac_header_compiler=no
35461 fi
35462
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35465 echo "${ECHO_T}$ac_header_compiler" >&6; }
35466
35467 # Is the header present?
35468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35470 cat >conftest.$ac_ext <<_ACEOF
35471 /* confdefs.h.  */
35472 _ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h.  */
35476 #include <$ac_header>
35477 _ACEOF
35478 if { (ac_try="$ac_cpp conftest.$ac_ext"
35479 case "(($ac_try" in
35480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35481   *) ac_try_echo=$ac_try;;
35482 esac
35483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35485   ac_status=$?
35486   grep -v '^ *+' conftest.er1 >conftest.err
35487   rm -f conftest.er1
35488   cat conftest.err >&5
35489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490   (exit $ac_status); } >/dev/null && {
35491          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35492          test ! -s conftest.err
35493        }; then
35494   ac_header_preproc=yes
35495 else
35496   echo "$as_me: failed program was:" >&5
35497 sed 's/^/| /' conftest.$ac_ext >&5
35498
35499   ac_header_preproc=no
35500 fi
35501
35502 rm -f conftest.err conftest.$ac_ext
35503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35504 echo "${ECHO_T}$ac_header_preproc" >&6; }
35505
35506 # So?  What about this header?
35507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35508   yes:no: )
35509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35513     ac_header_preproc=yes
35514     ;;
35515   no:yes:* )
35516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35528     ( cat <<\_ASBOX
35529 ## --------------------------------------------- ##
35530 ## Report this to <http://www.openldap.org/its/> ##
35531 ## --------------------------------------------- ##
35532 _ASBOX
35533      ) | sed "s/^/$as_me: WARNING:     /" >&2
35534     ;;
35535 esac
35536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35539   echo $ECHO_N "(cached) $ECHO_C" >&6
35540 else
35541   eval "$as_ac_Header=\$ac_header_preproc"
35542 fi
35543 ac_res=`eval echo '${'$as_ac_Header'}'`
35544                { echo "$as_me:$LINENO: result: $ac_res" >&5
35545 echo "${ECHO_T}$ac_res" >&6; }
35546
35547 fi
35548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35549   cat >>confdefs.h <<_ACEOF
35550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35551 _ACEOF
35552
35553 fi
35554
35555 done
35556
35557         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35558                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35559                 test "$ol_with_tls" = "found" ; then
35560                 ol_with_mp=bignum
35561
35562 cat >>confdefs.h <<\_ACEOF
35563 #define USE_MP_BIGNUM 1
35564 _ACEOF
35565
35566         elif test $ol_with_mp = bignum ; then
35567                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35568 echo "$as_me: error: bignum not available" >&2;}
35569    { (exit 1); exit 1; }; }
35570         fi
35571 fi
35572 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35573
35574 for ac_header in gmp.h
35575 do
35576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35578   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35581   echo $ECHO_N "(cached) $ECHO_C" >&6
35582 fi
35583 ac_res=`eval echo '${'$as_ac_Header'}'`
35584                { echo "$as_me:$LINENO: result: $ac_res" >&5
35585 echo "${ECHO_T}$ac_res" >&6; }
35586 else
35587   # Is the header compilable?
35588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35590 cat >conftest.$ac_ext <<_ACEOF
35591 /* confdefs.h.  */
35592 _ACEOF
35593 cat confdefs.h >>conftest.$ac_ext
35594 cat >>conftest.$ac_ext <<_ACEOF
35595 /* end confdefs.h.  */
35596 $ac_includes_default
35597 #include <$ac_header>
35598 _ACEOF
35599 rm -f conftest.$ac_objext
35600 if { (ac_try="$ac_compile"
35601 case "(($ac_try" in
35602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35603   *) ac_try_echo=$ac_try;;
35604 esac
35605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35606   (eval "$ac_compile") 2>conftest.er1
35607   ac_status=$?
35608   grep -v '^ *+' conftest.er1 >conftest.err
35609   rm -f conftest.er1
35610   cat conftest.err >&5
35611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612   (exit $ac_status); } && {
35613          test -z "$ac_c_werror_flag" ||
35614          test ! -s conftest.err
35615        } && test -s conftest.$ac_objext; then
35616   ac_header_compiler=yes
35617 else
35618   echo "$as_me: failed program was:" >&5
35619 sed 's/^/| /' conftest.$ac_ext >&5
35620
35621         ac_header_compiler=no
35622 fi
35623
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35626 echo "${ECHO_T}$ac_header_compiler" >&6; }
35627
35628 # Is the header present?
35629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35631 cat >conftest.$ac_ext <<_ACEOF
35632 /* confdefs.h.  */
35633 _ACEOF
35634 cat confdefs.h >>conftest.$ac_ext
35635 cat >>conftest.$ac_ext <<_ACEOF
35636 /* end confdefs.h.  */
35637 #include <$ac_header>
35638 _ACEOF
35639 if { (ac_try="$ac_cpp conftest.$ac_ext"
35640 case "(($ac_try" in
35641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35642   *) ac_try_echo=$ac_try;;
35643 esac
35644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35646   ac_status=$?
35647   grep -v '^ *+' conftest.er1 >conftest.err
35648   rm -f conftest.er1
35649   cat conftest.err >&5
35650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651   (exit $ac_status); } >/dev/null && {
35652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35653          test ! -s conftest.err
35654        }; then
35655   ac_header_preproc=yes
35656 else
35657   echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35659
35660   ac_header_preproc=no
35661 fi
35662
35663 rm -f conftest.err conftest.$ac_ext
35664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35665 echo "${ECHO_T}$ac_header_preproc" >&6; }
35666
35667 # So?  What about this header?
35668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35669   yes:no: )
35670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35674     ac_header_preproc=yes
35675     ;;
35676   no:yes:* )
35677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35679     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35680 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35681     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35683     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35684 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35687     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35689     ( cat <<\_ASBOX
35690 ## --------------------------------------------- ##
35691 ## Report this to <http://www.openldap.org/its/> ##
35692 ## --------------------------------------------- ##
35693 _ASBOX
35694      ) | sed "s/^/$as_me: WARNING:     /" >&2
35695     ;;
35696 esac
35697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35700   echo $ECHO_N "(cached) $ECHO_C" >&6
35701 else
35702   eval "$as_ac_Header=\$ac_header_preproc"
35703 fi
35704 ac_res=`eval echo '${'$as_ac_Header'}'`
35705                { echo "$as_me:$LINENO: result: $ac_res" >&5
35706 echo "${ECHO_T}$ac_res" >&6; }
35707
35708 fi
35709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35710   cat >>confdefs.h <<_ACEOF
35711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35712 _ACEOF
35713
35714 fi
35715
35716 done
35717
35718
35719 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35720 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35721 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35722   echo $ECHO_N "(cached) $ECHO_C" >&6
35723 else
35724   ac_check_lib_save_LIBS=$LIBS
35725 LIBS="-lgmp  $LIBS"
35726 cat >conftest.$ac_ext <<_ACEOF
35727 /* confdefs.h.  */
35728 _ACEOF
35729 cat confdefs.h >>conftest.$ac_ext
35730 cat >>conftest.$ac_ext <<_ACEOF
35731 /* end confdefs.h.  */
35732
35733 /* Override any GCC internal prototype to avoid an error.
35734    Use char because int might match the return type of a GCC
35735    builtin and then its argument prototype would still apply.  */
35736 #ifdef __cplusplus
35737 extern "C"
35738 #endif
35739 char __gmpz_add_ui ();
35740 int
35741 main ()
35742 {
35743 return __gmpz_add_ui ();
35744   ;
35745   return 0;
35746 }
35747 _ACEOF
35748 rm -f conftest.$ac_objext conftest$ac_exeext
35749 if { (ac_try="$ac_link"
35750 case "(($ac_try" in
35751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35752   *) ac_try_echo=$ac_try;;
35753 esac
35754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35755   (eval "$ac_link") 2>conftest.er1
35756   ac_status=$?
35757   grep -v '^ *+' conftest.er1 >conftest.err
35758   rm -f conftest.er1
35759   cat conftest.err >&5
35760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761   (exit $ac_status); } && {
35762          test -z "$ac_c_werror_flag" ||
35763          test ! -s conftest.err
35764        } && test -s conftest$ac_exeext &&
35765        $as_test_x conftest$ac_exeext; then
35766   ac_cv_lib_gmp___gmpz_add_ui=yes
35767 else
35768   echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35770
35771         ac_cv_lib_gmp___gmpz_add_ui=no
35772 fi
35773
35774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35775       conftest$ac_exeext conftest.$ac_ext
35776 LIBS=$ac_check_lib_save_LIBS
35777 fi
35778 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35779 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35780 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35781   cat >>confdefs.h <<_ACEOF
35782 #define HAVE_LIBGMP 1
35783 _ACEOF
35784
35785   LIBS="-lgmp $LIBS"
35786
35787 fi
35788
35789         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35790
35791 cat >>confdefs.h <<\_ACEOF
35792 #define USE_MP_GMP 1
35793 _ACEOF
35794
35795                 ol_with_mp=gmp
35796         elif test $ol_with_mp = gmp ; then
35797                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35798 echo "$as_me: error: gmp not available" >&2;}
35799    { (exit 1); exit 1; }; }
35800         fi
35801 fi
35802 if test $ol_with_mp = auto ; then
35803         ol_with_mp=no
35804 fi
35805
35806 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35807 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35808 if test "${ac_cv_func_memcmp_working+set}" = set; then
35809   echo $ECHO_N "(cached) $ECHO_C" >&6
35810 else
35811   if test "$cross_compiling" = yes; then
35812   ac_cv_func_memcmp_working=no
35813 else
35814   cat >conftest.$ac_ext <<_ACEOF
35815 /* confdefs.h.  */
35816 _ACEOF
35817 cat confdefs.h >>conftest.$ac_ext
35818 cat >>conftest.$ac_ext <<_ACEOF
35819 /* end confdefs.h.  */
35820 $ac_includes_default
35821 int
35822 main ()
35823 {
35824
35825   /* Some versions of memcmp are not 8-bit clean.  */
35826   char c0 = '\100', c1 = '\200', c2 = '\201';
35827   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35828     return 1;
35829
35830   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35831      or more and with at least one buffer not starting on a 4-byte boundary.
35832      William Lewis provided this test program.   */
35833   {
35834     char foo[21];
35835     char bar[21];
35836     int i;
35837     for (i = 0; i < 4; i++)
35838       {
35839         char *a = foo + i;
35840         char *b = bar + i;
35841         strcpy (a, "--------01111111");
35842         strcpy (b, "--------10000000");
35843         if (memcmp (a, b, 16) >= 0)
35844           return 1;
35845       }
35846     return 0;
35847   }
35848
35849   ;
35850   return 0;
35851 }
35852 _ACEOF
35853 rm -f conftest$ac_exeext
35854 if { (ac_try="$ac_link"
35855 case "(($ac_try" in
35856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857   *) ac_try_echo=$ac_try;;
35858 esac
35859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35860   (eval "$ac_link") 2>&5
35861   ac_status=$?
35862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35864   { (case "(($ac_try" in
35865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866   *) ac_try_echo=$ac_try;;
35867 esac
35868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35869   (eval "$ac_try") 2>&5
35870   ac_status=$?
35871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872   (exit $ac_status); }; }; then
35873   ac_cv_func_memcmp_working=yes
35874 else
35875   echo "$as_me: program exited with status $ac_status" >&5
35876 echo "$as_me: failed program was:" >&5
35877 sed 's/^/| /' conftest.$ac_ext >&5
35878
35879 ( exit $ac_status )
35880 ac_cv_func_memcmp_working=no
35881 fi
35882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35883 fi
35884
35885
35886 fi
35887 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35888 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35889 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35890   *" memcmp.$ac_objext "* ) ;;
35891   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35892  ;;
35893 esac
35894
35895
35896
35897 if test $ac_cv_func_memcmp_working = no ; then
35898
35899 cat >>confdefs.h <<\_ACEOF
35900 #define NEED_MEMCMP_REPLACEMENT 1
35901 _ACEOF
35902
35903 fi
35904
35905
35906 for ac_func in strftime
35907 do
35908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35912   echo $ECHO_N "(cached) $ECHO_C" >&6
35913 else
35914   cat >conftest.$ac_ext <<_ACEOF
35915 /* confdefs.h.  */
35916 _ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h.  */
35920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35922 #define $ac_func innocuous_$ac_func
35923
35924 /* System header to define __stub macros and hopefully few prototypes,
35925     which can conflict with char $ac_func (); below.
35926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35927     <limits.h> exists even on freestanding compilers.  */
35928
35929 #ifdef __STDC__
35930 # include <limits.h>
35931 #else
35932 # include <assert.h>
35933 #endif
35934
35935 #undef $ac_func
35936
35937 /* Override any GCC internal prototype to avoid an error.
35938    Use char because int might match the return type of a GCC
35939    builtin and then its argument prototype would still apply.  */
35940 #ifdef __cplusplus
35941 extern "C"
35942 #endif
35943 char $ac_func ();
35944 /* The GNU C library defines this for functions which it implements
35945     to always fail with ENOSYS.  Some functions are actually named
35946     something starting with __ and the normal name is an alias.  */
35947 #if defined __stub_$ac_func || defined __stub___$ac_func
35948 choke me
35949 #endif
35950
35951 int
35952 main ()
35953 {
35954 return $ac_func ();
35955   ;
35956   return 0;
35957 }
35958 _ACEOF
35959 rm -f conftest.$ac_objext conftest$ac_exeext
35960 if { (ac_try="$ac_link"
35961 case "(($ac_try" in
35962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35963   *) ac_try_echo=$ac_try;;
35964 esac
35965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35966   (eval "$ac_link") 2>conftest.er1
35967   ac_status=$?
35968   grep -v '^ *+' conftest.er1 >conftest.err
35969   rm -f conftest.er1
35970   cat conftest.err >&5
35971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972   (exit $ac_status); } && {
35973          test -z "$ac_c_werror_flag" ||
35974          test ! -s conftest.err
35975        } && test -s conftest$ac_exeext &&
35976        $as_test_x conftest$ac_exeext; then
35977   eval "$as_ac_var=yes"
35978 else
35979   echo "$as_me: failed program was:" >&5
35980 sed 's/^/| /' conftest.$ac_ext >&5
35981
35982         eval "$as_ac_var=no"
35983 fi
35984
35985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35986       conftest$ac_exeext conftest.$ac_ext
35987 fi
35988 ac_res=`eval echo '${'$as_ac_var'}'`
35989                { echo "$as_me:$LINENO: result: $ac_res" >&5
35990 echo "${ECHO_T}$ac_res" >&6; }
35991 if test `eval echo '${'$as_ac_var'}'` = yes; then
35992   cat >>confdefs.h <<_ACEOF
35993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35994 _ACEOF
35995
35996 else
35997   # strftime is in -lintl on SCO UNIX.
35998 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
35999 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36000 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36001   echo $ECHO_N "(cached) $ECHO_C" >&6
36002 else
36003   ac_check_lib_save_LIBS=$LIBS
36004 LIBS="-lintl  $LIBS"
36005 cat >conftest.$ac_ext <<_ACEOF
36006 /* confdefs.h.  */
36007 _ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h.  */
36011
36012 /* Override any GCC internal prototype to avoid an error.
36013    Use char because int might match the return type of a GCC
36014    builtin and then its argument prototype would still apply.  */
36015 #ifdef __cplusplus
36016 extern "C"
36017 #endif
36018 char strftime ();
36019 int
36020 main ()
36021 {
36022 return strftime ();
36023   ;
36024   return 0;
36025 }
36026 _ACEOF
36027 rm -f conftest.$ac_objext conftest$ac_exeext
36028 if { (ac_try="$ac_link"
36029 case "(($ac_try" in
36030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36031   *) ac_try_echo=$ac_try;;
36032 esac
36033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36034   (eval "$ac_link") 2>conftest.er1
36035   ac_status=$?
36036   grep -v '^ *+' conftest.er1 >conftest.err
36037   rm -f conftest.er1
36038   cat conftest.err >&5
36039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040   (exit $ac_status); } && {
36041          test -z "$ac_c_werror_flag" ||
36042          test ! -s conftest.err
36043        } && test -s conftest$ac_exeext &&
36044        $as_test_x conftest$ac_exeext; then
36045   ac_cv_lib_intl_strftime=yes
36046 else
36047   echo "$as_me: failed program was:" >&5
36048 sed 's/^/| /' conftest.$ac_ext >&5
36049
36050         ac_cv_lib_intl_strftime=no
36051 fi
36052
36053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36054       conftest$ac_exeext conftest.$ac_ext
36055 LIBS=$ac_check_lib_save_LIBS
36056 fi
36057 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36058 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36059 if test $ac_cv_lib_intl_strftime = yes; then
36060   cat >>confdefs.h <<\_ACEOF
36061 #define HAVE_STRFTIME 1
36062 _ACEOF
36063
36064 LIBS="-lintl $LIBS"
36065 fi
36066
36067 fi
36068 done
36069
36070
36071 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36072 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36073 if test "${ol_cv_func_inet_aton+set}" = set; then
36074   echo $ECHO_N "(cached) $ECHO_C" >&6
36075 else
36076   cat >conftest.$ac_ext <<_ACEOF
36077 /* confdefs.h.  */
36078 _ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h.  */
36082
36083 #ifdef HAVE_SYS_TYPES_H
36084 #       include <sys/types.h>
36085 #endif
36086 #ifdef HAVE_SYS_SOCKET_H
36087 #       include <sys/socket.h>
36088 #       ifdef HAVE_SYS_SELECT_H
36089 #               include <sys/select.h>
36090 #       endif
36091 #       include <netinet/in.h>
36092 #       ifdef HAVE_ARPA_INET_H
36093 #               include <arpa/inet.h>
36094 #       endif
36095 #endif
36096
36097 int
36098 main ()
36099 {
36100 struct in_addr in;
36101 int rc = inet_aton( "255.255.255.255", &in );
36102   ;
36103   return 0;
36104 }
36105 _ACEOF
36106 rm -f conftest.$ac_objext conftest$ac_exeext
36107 if { (ac_try="$ac_link"
36108 case "(($ac_try" in
36109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36110   *) ac_try_echo=$ac_try;;
36111 esac
36112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36113   (eval "$ac_link") 2>conftest.er1
36114   ac_status=$?
36115   grep -v '^ *+' conftest.er1 >conftest.err
36116   rm -f conftest.er1
36117   cat conftest.err >&5
36118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119   (exit $ac_status); } && {
36120          test -z "$ac_c_werror_flag" ||
36121          test ! -s conftest.err
36122        } && test -s conftest$ac_exeext &&
36123        $as_test_x conftest$ac_exeext; then
36124   ol_cv_func_inet_aton=yes
36125 else
36126   echo "$as_me: failed program was:" >&5
36127 sed 's/^/| /' conftest.$ac_ext >&5
36128
36129         ol_cv_func_inet_aton=no
36130 fi
36131
36132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36133       conftest$ac_exeext conftest.$ac_ext
36134 fi
36135 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36136 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36137   if test $ol_cv_func_inet_aton != no; then
36138
36139 cat >>confdefs.h <<\_ACEOF
36140 #define HAVE_INET_ATON 1
36141 _ACEOF
36142
36143   fi
36144
36145
36146 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36147 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36148 if test "${ac_cv_func__spawnlp+set}" = set; then
36149   echo $ECHO_N "(cached) $ECHO_C" >&6
36150 else
36151   cat >conftest.$ac_ext <<_ACEOF
36152 /* confdefs.h.  */
36153 _ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h.  */
36157 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36159 #define _spawnlp innocuous__spawnlp
36160
36161 /* System header to define __stub macros and hopefully few prototypes,
36162     which can conflict with char _spawnlp (); below.
36163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36164     <limits.h> exists even on freestanding compilers.  */
36165
36166 #ifdef __STDC__
36167 # include <limits.h>
36168 #else
36169 # include <assert.h>
36170 #endif
36171
36172 #undef _spawnlp
36173
36174 /* Override any GCC internal prototype to avoid an error.
36175    Use char because int might match the return type of a GCC
36176    builtin and then its argument prototype would still apply.  */
36177 #ifdef __cplusplus
36178 extern "C"
36179 #endif
36180 char _spawnlp ();
36181 /* The GNU C library defines this for functions which it implements
36182     to always fail with ENOSYS.  Some functions are actually named
36183     something starting with __ and the normal name is an alias.  */
36184 #if defined __stub__spawnlp || defined __stub____spawnlp
36185 choke me
36186 #endif
36187
36188 int
36189 main ()
36190 {
36191 return _spawnlp ();
36192   ;
36193   return 0;
36194 }
36195 _ACEOF
36196 rm -f conftest.$ac_objext conftest$ac_exeext
36197 if { (ac_try="$ac_link"
36198 case "(($ac_try" in
36199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36200   *) ac_try_echo=$ac_try;;
36201 esac
36202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36203   (eval "$ac_link") 2>conftest.er1
36204   ac_status=$?
36205   grep -v '^ *+' conftest.er1 >conftest.err
36206   rm -f conftest.er1
36207   cat conftest.err >&5
36208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209   (exit $ac_status); } && {
36210          test -z "$ac_c_werror_flag" ||
36211          test ! -s conftest.err
36212        } && test -s conftest$ac_exeext &&
36213        $as_test_x conftest$ac_exeext; then
36214   ac_cv_func__spawnlp=yes
36215 else
36216   echo "$as_me: failed program was:" >&5
36217 sed 's/^/| /' conftest.$ac_ext >&5
36218
36219         ac_cv_func__spawnlp=no
36220 fi
36221
36222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36223       conftest$ac_exeext conftest.$ac_ext
36224 fi
36225 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36226 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36227 if test $ac_cv_func__spawnlp = yes; then
36228
36229 cat >>confdefs.h <<\_ACEOF
36230 #define HAVE_SPAWNLP 1
36231 _ACEOF
36232
36233 fi
36234
36235
36236 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36237 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36238 if test "${ac_cv_func__snprintf+set}" = set; then
36239   echo $ECHO_N "(cached) $ECHO_C" >&6
36240 else
36241   cat >conftest.$ac_ext <<_ACEOF
36242 /* confdefs.h.  */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h.  */
36247 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36249 #define _snprintf innocuous__snprintf
36250
36251 /* System header to define __stub macros and hopefully few prototypes,
36252     which can conflict with char _snprintf (); below.
36253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36254     <limits.h> exists even on freestanding compilers.  */
36255
36256 #ifdef __STDC__
36257 # include <limits.h>
36258 #else
36259 # include <assert.h>
36260 #endif
36261
36262 #undef _snprintf
36263
36264 /* Override any GCC internal prototype to avoid an error.
36265    Use char because int might match the return type of a GCC
36266    builtin and then its argument prototype would still apply.  */
36267 #ifdef __cplusplus
36268 extern "C"
36269 #endif
36270 char _snprintf ();
36271 /* The GNU C library defines this for functions which it implements
36272     to always fail with ENOSYS.  Some functions are actually named
36273     something starting with __ and the normal name is an alias.  */
36274 #if defined __stub__snprintf || defined __stub____snprintf
36275 choke me
36276 #endif
36277
36278 int
36279 main ()
36280 {
36281 return _snprintf ();
36282   ;
36283   return 0;
36284 }
36285 _ACEOF
36286 rm -f conftest.$ac_objext conftest$ac_exeext
36287 if { (ac_try="$ac_link"
36288 case "(($ac_try" in
36289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36290   *) ac_try_echo=$ac_try;;
36291 esac
36292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36293   (eval "$ac_link") 2>conftest.er1
36294   ac_status=$?
36295   grep -v '^ *+' conftest.er1 >conftest.err
36296   rm -f conftest.er1
36297   cat conftest.err >&5
36298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299   (exit $ac_status); } && {
36300          test -z "$ac_c_werror_flag" ||
36301          test ! -s conftest.err
36302        } && test -s conftest$ac_exeext &&
36303        $as_test_x conftest$ac_exeext; then
36304   ac_cv_func__snprintf=yes
36305 else
36306   echo "$as_me: failed program was:" >&5
36307 sed 's/^/| /' conftest.$ac_ext >&5
36308
36309         ac_cv_func__snprintf=no
36310 fi
36311
36312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36313       conftest$ac_exeext conftest.$ac_ext
36314 fi
36315 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36316 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36317 if test $ac_cv_func__snprintf = yes; then
36318   ac_cv_func_snprintf=yes
36319
36320 cat >>confdefs.h <<\_ACEOF
36321 #define snprintf _snprintf
36322 _ACEOF
36323
36324
36325 fi
36326
36327
36328
36329
36330 for ac_func in vsnprintf _vsnprintf
36331 do
36332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36336   echo $ECHO_N "(cached) $ECHO_C" >&6
36337 else
36338   cat >conftest.$ac_ext <<_ACEOF
36339 /* confdefs.h.  */
36340 _ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h.  */
36344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36346 #define $ac_func innocuous_$ac_func
36347
36348 /* System header to define __stub macros and hopefully few prototypes,
36349     which can conflict with char $ac_func (); below.
36350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36351     <limits.h> exists even on freestanding compilers.  */
36352
36353 #ifdef __STDC__
36354 # include <limits.h>
36355 #else
36356 # include <assert.h>
36357 #endif
36358
36359 #undef $ac_func
36360
36361 /* Override any GCC internal prototype to avoid an error.
36362    Use char because int might match the return type of a GCC
36363    builtin and then its argument prototype would still apply.  */
36364 #ifdef __cplusplus
36365 extern "C"
36366 #endif
36367 char $ac_func ();
36368 /* The GNU C library defines this for functions which it implements
36369     to always fail with ENOSYS.  Some functions are actually named
36370     something starting with __ and the normal name is an alias.  */
36371 #if defined __stub_$ac_func || defined __stub___$ac_func
36372 choke me
36373 #endif
36374
36375 int
36376 main ()
36377 {
36378 return $ac_func ();
36379   ;
36380   return 0;
36381 }
36382 _ACEOF
36383 rm -f conftest.$ac_objext conftest$ac_exeext
36384 if { (ac_try="$ac_link"
36385 case "(($ac_try" in
36386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36387   *) ac_try_echo=$ac_try;;
36388 esac
36389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36390   (eval "$ac_link") 2>conftest.er1
36391   ac_status=$?
36392   grep -v '^ *+' conftest.er1 >conftest.err
36393   rm -f conftest.er1
36394   cat conftest.err >&5
36395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396   (exit $ac_status); } && {
36397          test -z "$ac_c_werror_flag" ||
36398          test ! -s conftest.err
36399        } && test -s conftest$ac_exeext &&
36400        $as_test_x conftest$ac_exeext; then
36401   eval "$as_ac_var=yes"
36402 else
36403   echo "$as_me: failed program was:" >&5
36404 sed 's/^/| /' conftest.$ac_ext >&5
36405
36406         eval "$as_ac_var=no"
36407 fi
36408
36409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36410       conftest$ac_exeext conftest.$ac_ext
36411 fi
36412 ac_res=`eval echo '${'$as_ac_var'}'`
36413                { echo "$as_me:$LINENO: result: $ac_res" >&5
36414 echo "${ECHO_T}$ac_res" >&6; }
36415 if test `eval echo '${'$as_ac_var'}'` = yes; then
36416   cat >>confdefs.h <<_ACEOF
36417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36418 _ACEOF
36419
36420 fi
36421 done
36422
36423
36424 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36425         ac_cv_func_vsnprintf=yes
36426
36427 cat >>confdefs.h <<\_ACEOF
36428 #define vsnprintf _vsnprintf
36429 _ACEOF
36430
36431 fi
36432
36433
36434 for ac_func in vprintf
36435 do
36436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36440   echo $ECHO_N "(cached) $ECHO_C" >&6
36441 else
36442   cat >conftest.$ac_ext <<_ACEOF
36443 /* confdefs.h.  */
36444 _ACEOF
36445 cat confdefs.h >>conftest.$ac_ext
36446 cat >>conftest.$ac_ext <<_ACEOF
36447 /* end confdefs.h.  */
36448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36450 #define $ac_func innocuous_$ac_func
36451
36452 /* System header to define __stub macros and hopefully few prototypes,
36453     which can conflict with char $ac_func (); below.
36454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36455     <limits.h> exists even on freestanding compilers.  */
36456
36457 #ifdef __STDC__
36458 # include <limits.h>
36459 #else
36460 # include <assert.h>
36461 #endif
36462
36463 #undef $ac_func
36464
36465 /* Override any GCC internal prototype to avoid an error.
36466    Use char because int might match the return type of a GCC
36467    builtin and then its argument prototype would still apply.  */
36468 #ifdef __cplusplus
36469 extern "C"
36470 #endif
36471 char $ac_func ();
36472 /* The GNU C library defines this for functions which it implements
36473     to always fail with ENOSYS.  Some functions are actually named
36474     something starting with __ and the normal name is an alias.  */
36475 #if defined __stub_$ac_func || defined __stub___$ac_func
36476 choke me
36477 #endif
36478
36479 int
36480 main ()
36481 {
36482 return $ac_func ();
36483   ;
36484   return 0;
36485 }
36486 _ACEOF
36487 rm -f conftest.$ac_objext conftest$ac_exeext
36488 if { (ac_try="$ac_link"
36489 case "(($ac_try" in
36490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491   *) ac_try_echo=$ac_try;;
36492 esac
36493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36494   (eval "$ac_link") 2>conftest.er1
36495   ac_status=$?
36496   grep -v '^ *+' conftest.er1 >conftest.err
36497   rm -f conftest.er1
36498   cat conftest.err >&5
36499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500   (exit $ac_status); } && {
36501          test -z "$ac_c_werror_flag" ||
36502          test ! -s conftest.err
36503        } && test -s conftest$ac_exeext &&
36504        $as_test_x conftest$ac_exeext; then
36505   eval "$as_ac_var=yes"
36506 else
36507   echo "$as_me: failed program was:" >&5
36508 sed 's/^/| /' conftest.$ac_ext >&5
36509
36510         eval "$as_ac_var=no"
36511 fi
36512
36513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36514       conftest$ac_exeext conftest.$ac_ext
36515 fi
36516 ac_res=`eval echo '${'$as_ac_var'}'`
36517                { echo "$as_me:$LINENO: result: $ac_res" >&5
36518 echo "${ECHO_T}$ac_res" >&6; }
36519 if test `eval echo '${'$as_ac_var'}'` = yes; then
36520   cat >>confdefs.h <<_ACEOF
36521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36522 _ACEOF
36523
36524 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36525 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36526 if test "${ac_cv_func__doprnt+set}" = set; then
36527   echo $ECHO_N "(cached) $ECHO_C" >&6
36528 else
36529   cat >conftest.$ac_ext <<_ACEOF
36530 /* confdefs.h.  */
36531 _ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h.  */
36535 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36537 #define _doprnt innocuous__doprnt
36538
36539 /* System header to define __stub macros and hopefully few prototypes,
36540     which can conflict with char _doprnt (); below.
36541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36542     <limits.h> exists even on freestanding compilers.  */
36543
36544 #ifdef __STDC__
36545 # include <limits.h>
36546 #else
36547 # include <assert.h>
36548 #endif
36549
36550 #undef _doprnt
36551
36552 /* Override any GCC internal prototype to avoid an error.
36553    Use char because int might match the return type of a GCC
36554    builtin and then its argument prototype would still apply.  */
36555 #ifdef __cplusplus
36556 extern "C"
36557 #endif
36558 char _doprnt ();
36559 /* The GNU C library defines this for functions which it implements
36560     to always fail with ENOSYS.  Some functions are actually named
36561     something starting with __ and the normal name is an alias.  */
36562 #if defined __stub__doprnt || defined __stub____doprnt
36563 choke me
36564 #endif
36565
36566 int
36567 main ()
36568 {
36569 return _doprnt ();
36570   ;
36571   return 0;
36572 }
36573 _ACEOF
36574 rm -f conftest.$ac_objext conftest$ac_exeext
36575 if { (ac_try="$ac_link"
36576 case "(($ac_try" in
36577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36578   *) ac_try_echo=$ac_try;;
36579 esac
36580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36581   (eval "$ac_link") 2>conftest.er1
36582   ac_status=$?
36583   grep -v '^ *+' conftest.er1 >conftest.err
36584   rm -f conftest.er1
36585   cat conftest.err >&5
36586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587   (exit $ac_status); } && {
36588          test -z "$ac_c_werror_flag" ||
36589          test ! -s conftest.err
36590        } && test -s conftest$ac_exeext &&
36591        $as_test_x conftest$ac_exeext; then
36592   ac_cv_func__doprnt=yes
36593 else
36594   echo "$as_me: failed program was:" >&5
36595 sed 's/^/| /' conftest.$ac_ext >&5
36596
36597         ac_cv_func__doprnt=no
36598 fi
36599
36600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36601       conftest$ac_exeext conftest.$ac_ext
36602 fi
36603 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36604 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36605 if test $ac_cv_func__doprnt = yes; then
36606
36607 cat >>confdefs.h <<\_ACEOF
36608 #define HAVE_DOPRNT 1
36609 _ACEOF
36610
36611 fi
36612
36613 fi
36614 done
36615
36616
36617
36618 if test $ac_cv_func_vprintf = yes ; then
36619
36620
36621 for ac_func in snprintf vsnprintf
36622 do
36623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36627   echo $ECHO_N "(cached) $ECHO_C" >&6
36628 else
36629   cat >conftest.$ac_ext <<_ACEOF
36630 /* confdefs.h.  */
36631 _ACEOF
36632 cat confdefs.h >>conftest.$ac_ext
36633 cat >>conftest.$ac_ext <<_ACEOF
36634 /* end confdefs.h.  */
36635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36637 #define $ac_func innocuous_$ac_func
36638
36639 /* System header to define __stub macros and hopefully few prototypes,
36640     which can conflict with char $ac_func (); below.
36641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36642     <limits.h> exists even on freestanding compilers.  */
36643
36644 #ifdef __STDC__
36645 # include <limits.h>
36646 #else
36647 # include <assert.h>
36648 #endif
36649
36650 #undef $ac_func
36651
36652 /* Override any GCC internal prototype to avoid an error.
36653    Use char because int might match the return type of a GCC
36654    builtin and then its argument prototype would still apply.  */
36655 #ifdef __cplusplus
36656 extern "C"
36657 #endif
36658 char $ac_func ();
36659 /* The GNU C library defines this for functions which it implements
36660     to always fail with ENOSYS.  Some functions are actually named
36661     something starting with __ and the normal name is an alias.  */
36662 #if defined __stub_$ac_func || defined __stub___$ac_func
36663 choke me
36664 #endif
36665
36666 int
36667 main ()
36668 {
36669 return $ac_func ();
36670   ;
36671   return 0;
36672 }
36673 _ACEOF
36674 rm -f conftest.$ac_objext conftest$ac_exeext
36675 if { (ac_try="$ac_link"
36676 case "(($ac_try" in
36677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678   *) ac_try_echo=$ac_try;;
36679 esac
36680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36681   (eval "$ac_link") 2>conftest.er1
36682   ac_status=$?
36683   grep -v '^ *+' conftest.er1 >conftest.err
36684   rm -f conftest.er1
36685   cat conftest.err >&5
36686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687   (exit $ac_status); } && {
36688          test -z "$ac_c_werror_flag" ||
36689          test ! -s conftest.err
36690        } && test -s conftest$ac_exeext &&
36691        $as_test_x conftest$ac_exeext; then
36692   eval "$as_ac_var=yes"
36693 else
36694   echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36696
36697         eval "$as_ac_var=no"
36698 fi
36699
36700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36701       conftest$ac_exeext conftest.$ac_ext
36702 fi
36703 ac_res=`eval echo '${'$as_ac_var'}'`
36704                { echo "$as_me:$LINENO: result: $ac_res" >&5
36705 echo "${ECHO_T}$ac_res" >&6; }
36706 if test `eval echo '${'$as_ac_var'}'` = yes; then
36707   cat >>confdefs.h <<_ACEOF
36708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36709 _ACEOF
36710
36711 fi
36712 done
36713
36714 fi
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772 for ac_func in \
36773         bcopy                   \
36774         closesocket             \
36775         chroot                  \
36776         endgrent                \
36777         endpwent                \
36778         fcntl                   \
36779         flock                   \
36780         fstat                   \
36781         getdtablesize           \
36782         geteuid                 \
36783         getgrgid                \
36784         gethostname             \
36785         getpass                 \
36786         getpassphrase           \
36787         getpwuid                \
36788         getpwnam                \
36789         getspnam                \
36790         gettimeofday            \
36791         initgroups              \
36792         inet_ntoa_b             \
36793         ioctl                   \
36794         lockf                   \
36795         memcpy                  \
36796         memmove                 \
36797         memrchr                 \
36798         mkstemp                 \
36799         mktemp                  \
36800         pipe                    \
36801         read                    \
36802         recv                    \
36803         recvfrom                \
36804         setpwfile               \
36805         setgid                  \
36806         setegid                 \
36807         setsid                  \
36808         setuid                  \
36809         seteuid                 \
36810         signal                  \
36811         strdup                  \
36812         strpbrk                 \
36813         strrchr                 \
36814         strsep                  \
36815         strstr                  \
36816         strtol                  \
36817         strtoul                 \
36818         strtoq                  \
36819         strtouq                 \
36820         strtoll                 \
36821         strspn                  \
36822         sysconf                 \
36823         waitpid                 \
36824         wait4                   \
36825         write                   \
36826         send                    \
36827         sendmsg                 \
36828         sendto                  \
36829
36830 do
36831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36835   echo $ECHO_N "(cached) $ECHO_C" >&6
36836 else
36837   cat >conftest.$ac_ext <<_ACEOF
36838 /* confdefs.h.  */
36839 _ACEOF
36840 cat confdefs.h >>conftest.$ac_ext
36841 cat >>conftest.$ac_ext <<_ACEOF
36842 /* end confdefs.h.  */
36843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36845 #define $ac_func innocuous_$ac_func
36846
36847 /* System header to define __stub macros and hopefully few prototypes,
36848     which can conflict with char $ac_func (); below.
36849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36850     <limits.h> exists even on freestanding compilers.  */
36851
36852 #ifdef __STDC__
36853 # include <limits.h>
36854 #else
36855 # include <assert.h>
36856 #endif
36857
36858 #undef $ac_func
36859
36860 /* Override any GCC internal prototype to avoid an error.
36861    Use char because int might match the return type of a GCC
36862    builtin and then its argument prototype would still apply.  */
36863 #ifdef __cplusplus
36864 extern "C"
36865 #endif
36866 char $ac_func ();
36867 /* The GNU C library defines this for functions which it implements
36868     to always fail with ENOSYS.  Some functions are actually named
36869     something starting with __ and the normal name is an alias.  */
36870 #if defined __stub_$ac_func || defined __stub___$ac_func
36871 choke me
36872 #endif
36873
36874 int
36875 main ()
36876 {
36877 return $ac_func ();
36878   ;
36879   return 0;
36880 }
36881 _ACEOF
36882 rm -f conftest.$ac_objext conftest$ac_exeext
36883 if { (ac_try="$ac_link"
36884 case "(($ac_try" in
36885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886   *) ac_try_echo=$ac_try;;
36887 esac
36888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36889   (eval "$ac_link") 2>conftest.er1
36890   ac_status=$?
36891   grep -v '^ *+' conftest.er1 >conftest.err
36892   rm -f conftest.er1
36893   cat conftest.err >&5
36894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895   (exit $ac_status); } && {
36896          test -z "$ac_c_werror_flag" ||
36897          test ! -s conftest.err
36898        } && test -s conftest$ac_exeext &&
36899        $as_test_x conftest$ac_exeext; then
36900   eval "$as_ac_var=yes"
36901 else
36902   echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36904
36905         eval "$as_ac_var=no"
36906 fi
36907
36908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36909       conftest$ac_exeext conftest.$ac_ext
36910 fi
36911 ac_res=`eval echo '${'$as_ac_var'}'`
36912                { echo "$as_me:$LINENO: result: $ac_res" >&5
36913 echo "${ECHO_T}$ac_res" >&6; }
36914 if test `eval echo '${'$as_ac_var'}'` = yes; then
36915   cat >>confdefs.h <<_ACEOF
36916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36917 _ACEOF
36918
36919 fi
36920 done
36921
36922
36923
36924
36925 for ac_func in getopt getpeereid
36926 do
36927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36931   echo $ECHO_N "(cached) $ECHO_C" >&6
36932 else
36933   cat >conftest.$ac_ext <<_ACEOF
36934 /* confdefs.h.  */
36935 _ACEOF
36936 cat confdefs.h >>conftest.$ac_ext
36937 cat >>conftest.$ac_ext <<_ACEOF
36938 /* end confdefs.h.  */
36939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36941 #define $ac_func innocuous_$ac_func
36942
36943 /* System header to define __stub macros and hopefully few prototypes,
36944     which can conflict with char $ac_func (); below.
36945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36946     <limits.h> exists even on freestanding compilers.  */
36947
36948 #ifdef __STDC__
36949 # include <limits.h>
36950 #else
36951 # include <assert.h>
36952 #endif
36953
36954 #undef $ac_func
36955
36956 /* Override any GCC internal prototype to avoid an error.
36957    Use char because int might match the return type of a GCC
36958    builtin and then its argument prototype would still apply.  */
36959 #ifdef __cplusplus
36960 extern "C"
36961 #endif
36962 char $ac_func ();
36963 /* The GNU C library defines this for functions which it implements
36964     to always fail with ENOSYS.  Some functions are actually named
36965     something starting with __ and the normal name is an alias.  */
36966 #if defined __stub_$ac_func || defined __stub___$ac_func
36967 choke me
36968 #endif
36969
36970 int
36971 main ()
36972 {
36973 return $ac_func ();
36974   ;
36975   return 0;
36976 }
36977 _ACEOF
36978 rm -f conftest.$ac_objext conftest$ac_exeext
36979 if { (ac_try="$ac_link"
36980 case "(($ac_try" in
36981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36982   *) ac_try_echo=$ac_try;;
36983 esac
36984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36985   (eval "$ac_link") 2>conftest.er1
36986   ac_status=$?
36987   grep -v '^ *+' conftest.er1 >conftest.err
36988   rm -f conftest.er1
36989   cat conftest.err >&5
36990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991   (exit $ac_status); } && {
36992          test -z "$ac_c_werror_flag" ||
36993          test ! -s conftest.err
36994        } && test -s conftest$ac_exeext &&
36995        $as_test_x conftest$ac_exeext; then
36996   eval "$as_ac_var=yes"
36997 else
36998   echo "$as_me: failed program was:" >&5
36999 sed 's/^/| /' conftest.$ac_ext >&5
37000
37001         eval "$as_ac_var=no"
37002 fi
37003
37004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37005       conftest$ac_exeext conftest.$ac_ext
37006 fi
37007 ac_res=`eval echo '${'$as_ac_var'}'`
37008                { echo "$as_me:$LINENO: result: $ac_res" >&5
37009 echo "${ECHO_T}$ac_res" >&6; }
37010 if test `eval echo '${'$as_ac_var'}'` = yes; then
37011   cat >>confdefs.h <<_ACEOF
37012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37013 _ACEOF
37014
37015 else
37016   case " $LIBOBJS " in
37017   *" $ac_func.$ac_objext "* ) ;;
37018   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37019  ;;
37020 esac
37021
37022 fi
37023 done
37024
37025
37026
37027 if test "$ac_cv_func_getopt" != yes; then
37028         LIBSRCS="$LIBSRCS getopt.c"
37029 fi
37030
37031 if test "$ac_cv_func_getpeereid" != yes; then
37032
37033 for ac_func in getpeerucred
37034 do
37035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37039   echo $ECHO_N "(cached) $ECHO_C" >&6
37040 else
37041   cat >conftest.$ac_ext <<_ACEOF
37042 /* confdefs.h.  */
37043 _ACEOF
37044 cat confdefs.h >>conftest.$ac_ext
37045 cat >>conftest.$ac_ext <<_ACEOF
37046 /* end confdefs.h.  */
37047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37049 #define $ac_func innocuous_$ac_func
37050
37051 /* System header to define __stub macros and hopefully few prototypes,
37052     which can conflict with char $ac_func (); below.
37053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37054     <limits.h> exists even on freestanding compilers.  */
37055
37056 #ifdef __STDC__
37057 # include <limits.h>
37058 #else
37059 # include <assert.h>
37060 #endif
37061
37062 #undef $ac_func
37063
37064 /* Override any GCC internal prototype to avoid an error.
37065    Use char because int might match the return type of a GCC
37066    builtin and then its argument prototype would still apply.  */
37067 #ifdef __cplusplus
37068 extern "C"
37069 #endif
37070 char $ac_func ();
37071 /* The GNU C library defines this for functions which it implements
37072     to always fail with ENOSYS.  Some functions are actually named
37073     something starting with __ and the normal name is an alias.  */
37074 #if defined __stub_$ac_func || defined __stub___$ac_func
37075 choke me
37076 #endif
37077
37078 int
37079 main ()
37080 {
37081 return $ac_func ();
37082   ;
37083   return 0;
37084 }
37085 _ACEOF
37086 rm -f conftest.$ac_objext conftest$ac_exeext
37087 if { (ac_try="$ac_link"
37088 case "(($ac_try" in
37089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090   *) ac_try_echo=$ac_try;;
37091 esac
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093   (eval "$ac_link") 2>conftest.er1
37094   ac_status=$?
37095   grep -v '^ *+' conftest.er1 >conftest.err
37096   rm -f conftest.er1
37097   cat conftest.err >&5
37098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099   (exit $ac_status); } && {
37100          test -z "$ac_c_werror_flag" ||
37101          test ! -s conftest.err
37102        } && test -s conftest$ac_exeext &&
37103        $as_test_x conftest$ac_exeext; then
37104   eval "$as_ac_var=yes"
37105 else
37106   echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37108
37109         eval "$as_ac_var=no"
37110 fi
37111
37112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37113       conftest$ac_exeext conftest.$ac_ext
37114 fi
37115 ac_res=`eval echo '${'$as_ac_var'}'`
37116                { echo "$as_me:$LINENO: result: $ac_res" >&5
37117 echo "${ECHO_T}$ac_res" >&6; }
37118 if test `eval echo '${'$as_ac_var'}'` = yes; then
37119   cat >>confdefs.h <<_ACEOF
37120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37121 _ACEOF
37122
37123 fi
37124 done
37125
37126         if test "$ac_cv_func_getpeerucred" != yes ; then
37127                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37128 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37129 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37130   echo $ECHO_N "(cached) $ECHO_C" >&6
37131 else
37132   cat >conftest.$ac_ext <<_ACEOF
37133 /* confdefs.h.  */
37134 _ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h.  */
37138 $ac_includes_default
37139 #ifdef HAVE_SYS_SOCKET_H
37140 #include <sys/socket.h>
37141 #endif
37142
37143 int
37144 main ()
37145 {
37146 static struct msghdr ac_aggr;
37147 if (ac_aggr.msg_accrightslen)
37148 return 0;
37149   ;
37150   return 0;
37151 }
37152 _ACEOF
37153 rm -f conftest.$ac_objext
37154 if { (ac_try="$ac_compile"
37155 case "(($ac_try" in
37156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37157   *) ac_try_echo=$ac_try;;
37158 esac
37159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37160   (eval "$ac_compile") 2>conftest.er1
37161   ac_status=$?
37162   grep -v '^ *+' conftest.er1 >conftest.err
37163   rm -f conftest.er1
37164   cat conftest.err >&5
37165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166   (exit $ac_status); } && {
37167          test -z "$ac_c_werror_flag" ||
37168          test ! -s conftest.err
37169        } && test -s conftest.$ac_objext; then
37170   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37171 else
37172   echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37174
37175         cat >conftest.$ac_ext <<_ACEOF
37176 /* confdefs.h.  */
37177 _ACEOF
37178 cat confdefs.h >>conftest.$ac_ext
37179 cat >>conftest.$ac_ext <<_ACEOF
37180 /* end confdefs.h.  */
37181 $ac_includes_default
37182 #ifdef HAVE_SYS_SOCKET_H
37183 #include <sys/socket.h>
37184 #endif
37185
37186 int
37187 main ()
37188 {
37189 static struct msghdr ac_aggr;
37190 if (sizeof ac_aggr.msg_accrightslen)
37191 return 0;
37192   ;
37193   return 0;
37194 }
37195 _ACEOF
37196 rm -f conftest.$ac_objext
37197 if { (ac_try="$ac_compile"
37198 case "(($ac_try" in
37199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37200   *) ac_try_echo=$ac_try;;
37201 esac
37202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37203   (eval "$ac_compile") 2>conftest.er1
37204   ac_status=$?
37205   grep -v '^ *+' conftest.er1 >conftest.err
37206   rm -f conftest.er1
37207   cat conftest.err >&5
37208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209   (exit $ac_status); } && {
37210          test -z "$ac_c_werror_flag" ||
37211          test ! -s conftest.err
37212        } && test -s conftest.$ac_objext; then
37213   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37214 else
37215   echo "$as_me: failed program was:" >&5
37216 sed 's/^/| /' conftest.$ac_ext >&5
37217
37218         ac_cv_member_struct_msghdr_msg_accrightslen=no
37219 fi
37220
37221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37222 fi
37223
37224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37225 fi
37226 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37227 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37228 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37229
37230 cat >>confdefs.h <<_ACEOF
37231 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37232 _ACEOF
37233
37234
37235 fi
37236
37237                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37238                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37239 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37240 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37241   echo $ECHO_N "(cached) $ECHO_C" >&6
37242 else
37243   cat >conftest.$ac_ext <<_ACEOF
37244 /* confdefs.h.  */
37245 _ACEOF
37246 cat confdefs.h >>conftest.$ac_ext
37247 cat >>conftest.$ac_ext <<_ACEOF
37248 /* end confdefs.h.  */
37249 $ac_includes_default
37250 #ifdef HAVE_SYS_SOCKET_H
37251 #include <sys/socket.h>
37252 #endif
37253
37254 int
37255 main ()
37256 {
37257 static struct msghdr ac_aggr;
37258 if (ac_aggr.msg_control)
37259 return 0;
37260   ;
37261   return 0;
37262 }
37263 _ACEOF
37264 rm -f conftest.$ac_objext
37265 if { (ac_try="$ac_compile"
37266 case "(($ac_try" in
37267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268   *) ac_try_echo=$ac_try;;
37269 esac
37270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37271   (eval "$ac_compile") 2>conftest.er1
37272   ac_status=$?
37273   grep -v '^ *+' conftest.er1 >conftest.err
37274   rm -f conftest.er1
37275   cat conftest.err >&5
37276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277   (exit $ac_status); } && {
37278          test -z "$ac_c_werror_flag" ||
37279          test ! -s conftest.err
37280        } && test -s conftest.$ac_objext; then
37281   ac_cv_member_struct_msghdr_msg_control=yes
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286         cat >conftest.$ac_ext <<_ACEOF
37287 /* confdefs.h.  */
37288 _ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h.  */
37292 $ac_includes_default
37293 #ifdef HAVE_SYS_SOCKET_H
37294 #include <sys/socket.h>
37295 #endif
37296
37297 int
37298 main ()
37299 {
37300 static struct msghdr ac_aggr;
37301 if (sizeof ac_aggr.msg_control)
37302 return 0;
37303   ;
37304   return 0;
37305 }
37306 _ACEOF
37307 rm -f conftest.$ac_objext
37308 if { (ac_try="$ac_compile"
37309 case "(($ac_try" in
37310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37311   *) ac_try_echo=$ac_try;;
37312 esac
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314   (eval "$ac_compile") 2>conftest.er1
37315   ac_status=$?
37316   grep -v '^ *+' conftest.er1 >conftest.err
37317   rm -f conftest.er1
37318   cat conftest.err >&5
37319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320   (exit $ac_status); } && {
37321          test -z "$ac_c_werror_flag" ||
37322          test ! -s conftest.err
37323        } && test -s conftest.$ac_objext; then
37324   ac_cv_member_struct_msghdr_msg_control=yes
37325 else
37326   echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37328
37329         ac_cv_member_struct_msghdr_msg_control=no
37330 fi
37331
37332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37333 fi
37334
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37336 fi
37337 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37338 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37339 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37340
37341 cat >>confdefs.h <<_ACEOF
37342 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37343 _ACEOF
37344
37345
37346 fi
37347
37348                 fi
37349                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37350 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37351 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37352   echo $ECHO_N "(cached) $ECHO_C" >&6
37353 else
37354   cat >conftest.$ac_ext <<_ACEOF
37355 /* confdefs.h.  */
37356 _ACEOF
37357 cat confdefs.h >>conftest.$ac_ext
37358 cat >>conftest.$ac_ext <<_ACEOF
37359 /* end confdefs.h.  */
37360 $ac_includes_default
37361 int
37362 main ()
37363 {
37364 static struct stat ac_aggr;
37365 if (ac_aggr.st_fstype)
37366 return 0;
37367   ;
37368   return 0;
37369 }
37370 _ACEOF
37371 rm -f conftest.$ac_objext
37372 if { (ac_try="$ac_compile"
37373 case "(($ac_try" in
37374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37375   *) ac_try_echo=$ac_try;;
37376 esac
37377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37378   (eval "$ac_compile") 2>conftest.er1
37379   ac_status=$?
37380   grep -v '^ *+' conftest.er1 >conftest.err
37381   rm -f conftest.er1
37382   cat conftest.err >&5
37383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384   (exit $ac_status); } && {
37385          test -z "$ac_c_werror_flag" ||
37386          test ! -s conftest.err
37387        } && test -s conftest.$ac_objext; then
37388   ac_cv_member_struct_stat_st_fstype=yes
37389 else
37390   echo "$as_me: failed program was:" >&5
37391 sed 's/^/| /' conftest.$ac_ext >&5
37392
37393         cat >conftest.$ac_ext <<_ACEOF
37394 /* confdefs.h.  */
37395 _ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h.  */
37399 $ac_includes_default
37400 int
37401 main ()
37402 {
37403 static struct stat ac_aggr;
37404 if (sizeof ac_aggr.st_fstype)
37405 return 0;
37406   ;
37407   return 0;
37408 }
37409 _ACEOF
37410 rm -f conftest.$ac_objext
37411 if { (ac_try="$ac_compile"
37412 case "(($ac_try" in
37413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414   *) ac_try_echo=$ac_try;;
37415 esac
37416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37417   (eval "$ac_compile") 2>conftest.er1
37418   ac_status=$?
37419   grep -v '^ *+' conftest.er1 >conftest.err
37420   rm -f conftest.er1
37421   cat conftest.err >&5
37422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423   (exit $ac_status); } && {
37424          test -z "$ac_c_werror_flag" ||
37425          test ! -s conftest.err
37426        } && test -s conftest.$ac_objext; then
37427   ac_cv_member_struct_stat_st_fstype=yes
37428 else
37429   echo "$as_me: failed program was:" >&5
37430 sed 's/^/| /' conftest.$ac_ext >&5
37431
37432         ac_cv_member_struct_stat_st_fstype=no
37433 fi
37434
37435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37436 fi
37437
37438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37439 fi
37440 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37441 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37442 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37443
37444 cat >>confdefs.h <<_ACEOF
37445 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37446 _ACEOF
37447
37448
37449 fi
37450 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37451 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37452 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37453   echo $ECHO_N "(cached) $ECHO_C" >&6
37454 else
37455   cat >conftest.$ac_ext <<_ACEOF
37456 /* confdefs.h.  */
37457 _ACEOF
37458 cat confdefs.h >>conftest.$ac_ext
37459 cat >>conftest.$ac_ext <<_ACEOF
37460 /* end confdefs.h.  */
37461 $ac_includes_default
37462 int
37463 main ()
37464 {
37465 static struct stat ac_aggr;
37466 if (ac_aggr.st_vfstype)
37467 return 0;
37468   ;
37469   return 0;
37470 }
37471 _ACEOF
37472 rm -f conftest.$ac_objext
37473 if { (ac_try="$ac_compile"
37474 case "(($ac_try" in
37475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37476   *) ac_try_echo=$ac_try;;
37477 esac
37478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37479   (eval "$ac_compile") 2>conftest.er1
37480   ac_status=$?
37481   grep -v '^ *+' conftest.er1 >conftest.err
37482   rm -f conftest.er1
37483   cat conftest.err >&5
37484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485   (exit $ac_status); } && {
37486          test -z "$ac_c_werror_flag" ||
37487          test ! -s conftest.err
37488        } && test -s conftest.$ac_objext; then
37489   ac_cv_member_struct_stat_st_vfstype=yes
37490 else
37491   echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37493
37494         cat >conftest.$ac_ext <<_ACEOF
37495 /* confdefs.h.  */
37496 _ACEOF
37497 cat confdefs.h >>conftest.$ac_ext
37498 cat >>conftest.$ac_ext <<_ACEOF
37499 /* end confdefs.h.  */
37500 $ac_includes_default
37501 int
37502 main ()
37503 {
37504 static struct stat ac_aggr;
37505 if (sizeof ac_aggr.st_vfstype)
37506 return 0;
37507   ;
37508   return 0;
37509 }
37510 _ACEOF
37511 rm -f conftest.$ac_objext
37512 if { (ac_try="$ac_compile"
37513 case "(($ac_try" in
37514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37515   *) ac_try_echo=$ac_try;;
37516 esac
37517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37518   (eval "$ac_compile") 2>conftest.er1
37519   ac_status=$?
37520   grep -v '^ *+' conftest.er1 >conftest.err
37521   rm -f conftest.er1
37522   cat conftest.err >&5
37523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524   (exit $ac_status); } && {
37525          test -z "$ac_c_werror_flag" ||
37526          test ! -s conftest.err
37527        } && test -s conftest.$ac_objext; then
37528   ac_cv_member_struct_stat_st_vfstype=yes
37529 else
37530   echo "$as_me: failed program was:" >&5
37531 sed 's/^/| /' conftest.$ac_ext >&5
37532
37533         ac_cv_member_struct_stat_st_vfstype=no
37534 fi
37535
37536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37537 fi
37538
37539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37540 fi
37541 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37542 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37543 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37544
37545 cat >>confdefs.h <<_ACEOF
37546 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37547 _ACEOF
37548
37549
37550 fi
37551
37552                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37553                         cat >conftest.$ac_ext <<_ACEOF
37554 struct stat st; char *ptr=st.st_fstype;
37555 _ACEOF
37556 rm -f conftest.$ac_objext
37557 if { (ac_try="$ac_compile"
37558 case "(($ac_try" in
37559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37560   *) ac_try_echo=$ac_try;;
37561 esac
37562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37563   (eval "$ac_compile") 2>conftest.er1
37564   ac_status=$?
37565   grep -v '^ *+' conftest.er1 >conftest.err
37566   rm -f conftest.er1
37567   cat conftest.err >&5
37568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569   (exit $ac_status); } && {
37570          test -z "$ac_c_werror_flag" ||
37571          test ! -s conftest.err
37572        } && test -s conftest.$ac_objext; then
37573
37574 cat >>confdefs.h <<\_ACEOF
37575 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37576 _ACEOF
37577
37578 else
37579   echo "$as_me: failed program was:" >&5
37580 sed 's/^/| /' conftest.$ac_ext >&5
37581
37582
37583 cat >>confdefs.h <<\_ACEOF
37584 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37585 _ACEOF
37586
37587 fi
37588
37589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37590                 fi
37591         fi
37592         LIBSRCS="$LIBSRCS getpeereid.c"
37593 fi
37594
37595 if test "$ac_cv_func_snprintf" != yes ||
37596    test "$ac_cv_func_vsnprintf" != yes; then
37597         if test "$ac_cv_func_snprintf" != yes; then
37598
37599 cat >>confdefs.h <<\_ACEOF
37600 #define snprintf ber_pvt_snprintf
37601 _ACEOF
37602
37603         fi
37604         if test "$ac_cv_func_vsnprintf" != yes; then
37605
37606 cat >>confdefs.h <<\_ACEOF
37607 #define vsnprintf ber_pvt_vsnprintf
37608 _ACEOF
37609
37610         fi
37611 fi
37612
37613
37614 if test "$ol_enable_slapi" != no ; then
37615
37616 for ac_header in ltdl.h
37617 do
37618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37623   echo $ECHO_N "(cached) $ECHO_C" >&6
37624 fi
37625 ac_res=`eval echo '${'$as_ac_Header'}'`
37626                { echo "$as_me:$LINENO: result: $ac_res" >&5
37627 echo "${ECHO_T}$ac_res" >&6; }
37628 else
37629   # Is the header compilable?
37630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37632 cat >conftest.$ac_ext <<_ACEOF
37633 /* confdefs.h.  */
37634 _ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h.  */
37638 $ac_includes_default
37639 #include <$ac_header>
37640 _ACEOF
37641 rm -f conftest.$ac_objext
37642 if { (ac_try="$ac_compile"
37643 case "(($ac_try" in
37644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645   *) ac_try_echo=$ac_try;;
37646 esac
37647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37648   (eval "$ac_compile") 2>conftest.er1
37649   ac_status=$?
37650   grep -v '^ *+' conftest.er1 >conftest.err
37651   rm -f conftest.er1
37652   cat conftest.err >&5
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); } && {
37655          test -z "$ac_c_werror_flag" ||
37656          test ! -s conftest.err
37657        } && test -s conftest.$ac_objext; then
37658   ac_header_compiler=yes
37659 else
37660   echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37662
37663         ac_header_compiler=no
37664 fi
37665
37666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37668 echo "${ECHO_T}$ac_header_compiler" >&6; }
37669
37670 # Is the header present?
37671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37673 cat >conftest.$ac_ext <<_ACEOF
37674 /* confdefs.h.  */
37675 _ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h.  */
37679 #include <$ac_header>
37680 _ACEOF
37681 if { (ac_try="$ac_cpp conftest.$ac_ext"
37682 case "(($ac_try" in
37683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37684   *) ac_try_echo=$ac_try;;
37685 esac
37686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37688   ac_status=$?
37689   grep -v '^ *+' conftest.er1 >conftest.err
37690   rm -f conftest.er1
37691   cat conftest.err >&5
37692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693   (exit $ac_status); } >/dev/null && {
37694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37695          test ! -s conftest.err
37696        }; then
37697   ac_header_preproc=yes
37698 else
37699   echo "$as_me: failed program was:" >&5
37700 sed 's/^/| /' conftest.$ac_ext >&5
37701
37702   ac_header_preproc=no
37703 fi
37704
37705 rm -f conftest.err conftest.$ac_ext
37706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37707 echo "${ECHO_T}$ac_header_preproc" >&6; }
37708
37709 # So?  What about this header?
37710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37711   yes:no: )
37712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37716     ac_header_preproc=yes
37717     ;;
37718   no:yes:* )
37719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37731     ( cat <<\_ASBOX
37732 ## --------------------------------------------- ##
37733 ## Report this to <http://www.openldap.org/its/> ##
37734 ## --------------------------------------------- ##
37735 _ASBOX
37736      ) | sed "s/^/$as_me: WARNING:     /" >&2
37737     ;;
37738 esac
37739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37742   echo $ECHO_N "(cached) $ECHO_C" >&6
37743 else
37744   eval "$as_ac_Header=\$ac_header_preproc"
37745 fi
37746 ac_res=`eval echo '${'$as_ac_Header'}'`
37747                { echo "$as_me:$LINENO: result: $ac_res" >&5
37748 echo "${ECHO_T}$ac_res" >&6; }
37749
37750 fi
37751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37752   cat >>confdefs.h <<_ACEOF
37753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37754 _ACEOF
37755
37756 fi
37757
37758 done
37759
37760
37761         if test $ac_cv_header_ltdl_h != yes ; then
37762                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37763 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37764    { (exit 1); exit 1; }; }
37765         fi
37766         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37767 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37768 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37769   echo $ECHO_N "(cached) $ECHO_C" >&6
37770 else
37771   ac_check_lib_save_LIBS=$LIBS
37772 LIBS="-lltdl  $LIBS"
37773 cat >conftest.$ac_ext <<_ACEOF
37774 /* confdefs.h.  */
37775 _ACEOF
37776 cat confdefs.h >>conftest.$ac_ext
37777 cat >>conftest.$ac_ext <<_ACEOF
37778 /* end confdefs.h.  */
37779
37780 /* Override any GCC internal prototype to avoid an error.
37781    Use char because int might match the return type of a GCC
37782    builtin and then its argument prototype would still apply.  */
37783 #ifdef __cplusplus
37784 extern "C"
37785 #endif
37786 char lt_dlinit ();
37787 int
37788 main ()
37789 {
37790 return lt_dlinit ();
37791   ;
37792   return 0;
37793 }
37794 _ACEOF
37795 rm -f conftest.$ac_objext conftest$ac_exeext
37796 if { (ac_try="$ac_link"
37797 case "(($ac_try" in
37798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37799   *) ac_try_echo=$ac_try;;
37800 esac
37801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37802   (eval "$ac_link") 2>conftest.er1
37803   ac_status=$?
37804   grep -v '^ *+' conftest.er1 >conftest.err
37805   rm -f conftest.er1
37806   cat conftest.err >&5
37807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808   (exit $ac_status); } && {
37809          test -z "$ac_c_werror_flag" ||
37810          test ! -s conftest.err
37811        } && test -s conftest$ac_exeext &&
37812        $as_test_x conftest$ac_exeext; then
37813   ac_cv_lib_ltdl_lt_dlinit=yes
37814 else
37815   echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37817
37818         ac_cv_lib_ltdl_lt_dlinit=no
37819 fi
37820
37821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37822       conftest$ac_exeext conftest.$ac_ext
37823 LIBS=$ac_check_lib_save_LIBS
37824 fi
37825 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37826 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37827 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37828
37829                 SLAPI_LIBS=-lltdl
37830                 LIBSLAPI=libslapi.a
37831                 LIBSLAPITOOLS=../libslapi.a
37832
37833 cat >>confdefs.h <<\_ACEOF
37834 #define HAVE_LIBLTDL 1
37835 _ACEOF
37836
37837
37838 else
37839   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37840 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37841    { (exit 1); exit 1; }; }
37842 fi
37843
37844
37845
37846 cat >>confdefs.h <<\_ACEOF
37847 #define LDAP_SLAPI 1
37848 _ACEOF
37849
37850 fi
37851
37852 if test "$ol_enable_debug" != no ; then
37853         if test "$ol_enable_debug" = traditional; then
37854
37855 cat >>confdefs.h <<\_ACEOF
37856 #define OLD_DEBUG 1
37857 _ACEOF
37858
37859         fi
37860
37861 cat >>confdefs.h <<\_ACEOF
37862 #define LDAP_DEBUG 1
37863 _ACEOF
37864
37865 fi
37866 if test "$ol_enable_syslog" = yes ; then
37867
37868 cat >>confdefs.h <<\_ACEOF
37869 #define LDAP_SYSLOG 1
37870 _ACEOF
37871
37872 fi
37873 if test "$ol_enable_proctitle" != no ; then
37874
37875 cat >>confdefs.h <<\_ACEOF
37876 #define LDAP_PROCTITLE 1
37877 _ACEOF
37878
37879 fi
37880 if test "$ol_enable_referrals" != no ; then
37881
37882 cat >>confdefs.h <<\_ACEOF
37883 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37884 _ACEOF
37885
37886 fi
37887 if test "$ol_enable_local" != no; then
37888
37889 cat >>confdefs.h <<\_ACEOF
37890 #define LDAP_PF_LOCAL 1
37891 _ACEOF
37892
37893 fi
37894 if test "$ol_link_ipv6" != no; then
37895
37896 cat >>confdefs.h <<\_ACEOF
37897 #define LDAP_PF_INET6 1
37898 _ACEOF
37899
37900 fi
37901 if test "$ol_enable_cleartext" != no ; then
37902
37903 cat >>confdefs.h <<\_ACEOF
37904 #define SLAPD_CLEARTEXT 1
37905 _ACEOF
37906
37907 fi
37908 if test "$ol_enable_crypt" != no ; then
37909
37910 cat >>confdefs.h <<\_ACEOF
37911 #define SLAPD_CRYPT 1
37912 _ACEOF
37913
37914 fi
37915 if test "$ol_link_spasswd" != no ; then
37916
37917 cat >>confdefs.h <<\_ACEOF
37918 #define SLAPD_SPASSWD 1
37919 _ACEOF
37920
37921 fi
37922 if test "$ol_enable_rlookups" != no ; then
37923
37924 cat >>confdefs.h <<\_ACEOF
37925 #define SLAPD_RLOOKUPS 1
37926 _ACEOF
37927
37928 fi
37929 if test "$ol_enable_aci" != no ; then
37930         if test $ol_enable_dynacl = no ; then
37931                 ol_enable_dynacl=yes
37932                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37933 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37934         fi
37935         if test "$ol_enable_aci" = mod ; then
37936                 MFLAG=SLAPD_MOD_DYNAMIC
37937                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37938 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37939    { (exit 1); exit 1; }; }
37940         else
37941                 MFLAG=SLAPD_MOD_STATIC
37942         fi
37943         WITH_ACI_ENABLED=$ol_enable_aci
37944
37945 cat >>confdefs.h <<_ACEOF
37946 #define SLAPD_ACI_ENABLED $MFLAG
37947 _ACEOF
37948
37949 else
37950         WITH_ACI_ENABLED=no
37951 fi
37952 if test "$ol_enable_dynacl" != no ; then
37953
37954 cat >>confdefs.h <<\_ACEOF
37955 #define SLAP_DYNACL 1
37956 _ACEOF
37957
37958 fi
37959
37960 if test "$ol_link_modules" != no ; then
37961
37962 cat >>confdefs.h <<\_ACEOF
37963 #define SLAPD_MODULES 1
37964 _ACEOF
37965
37966         BUILD_SLAPD=yes
37967         SLAPD_MODULES_LDFLAGS="-dlopen self"
37968 fi
37969
37970
37971 cat >>confdefs.h <<\_ACEOF
37972 #define SLAPD_MOD_STATIC 1
37973 _ACEOF
37974
37975
37976 cat >>confdefs.h <<\_ACEOF
37977 #define SLAPD_MOD_DYNAMIC 2
37978 _ACEOF
37979
37980
37981 if test "$ol_enable_monitor" != no ; then
37982         BUILD_SLAPD=yes
37983         BUILD_MONITOR=$ol_enable_monitor
37984         if test "$ol_enable_monitor" = mod ; then
37985                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
37986                 MFLAG=SLAPD_MOD_DYNAMIC
37987         else
37988                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
37989                 MFLAG=SLAPD_MOD_STATIC
37990         fi
37991
37992 cat >>confdefs.h <<_ACEOF
37993 #define SLAPD_MONITOR $MFLAG
37994 _ACEOF
37995
37996 fi
37997
37998 if test "$ol_enable_bdb" != no ; then
37999         BUILD_SLAPD=yes
38000         BUILD_BDB=$ol_enable_bdb
38001         if test "$ol_enable_bdb" = mod ; then
38002                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38003                 MFLAG=SLAPD_MOD_DYNAMIC
38004         else
38005                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38006                 MFLAG=SLAPD_MOD_STATIC
38007         fi
38008
38009 cat >>confdefs.h <<_ACEOF
38010 #define SLAPD_BDB $MFLAG
38011 _ACEOF
38012
38013 fi
38014
38015 if test "$ol_enable_dnssrv" != no ; then
38016         BUILD_SLAPD=yes
38017         BUILD_DNSSRV=$ol_enable_dnssrv
38018         if test "$ol_enable_dnssrv" = mod ; then
38019                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38020                 MFLAG=SLAPD_MOD_DYNAMIC
38021         else
38022                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38023                 MFLAG=SLAPD_MOD_STATIC
38024         fi
38025
38026 cat >>confdefs.h <<_ACEOF
38027 #define SLAPD_DNSSRV $MFLAG
38028 _ACEOF
38029
38030 fi
38031
38032 if test "$ol_enable_hdb" != no ; then
38033         BUILD_SLAPD=yes
38034         BUILD_HDB=$ol_enable_hdb
38035         if test "$ol_enable_hdb" = mod ; then
38036                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38037                 MFLAG=SLAPD_MOD_DYNAMIC
38038         else
38039                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38040                 MFLAG=SLAPD_MOD_STATIC
38041         fi
38042
38043 cat >>confdefs.h <<_ACEOF
38044 #define SLAPD_HDB $MFLAG
38045 _ACEOF
38046
38047 fi
38048
38049 if test "$ol_enable_ldap" != no ; then
38050         BUILD_SLAPD=yes
38051         BUILD_LDAP=$ol_enable_ldap
38052         if test "$ol_enable_ldap" = mod ; then
38053                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38054                 MFLAG=SLAPD_MOD_DYNAMIC
38055         else
38056                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38057                 MFLAG=SLAPD_MOD_STATIC
38058         fi
38059
38060 cat >>confdefs.h <<_ACEOF
38061 #define SLAPD_LDAP $MFLAG
38062 _ACEOF
38063
38064 fi
38065
38066 if test "$ol_enable_meta" != no ; then
38067         BUILD_SLAPD=yes
38068         BUILD_META=$ol_enable_meta
38069         BUILD_REWRITE=yes
38070         if test "$ol_enable_meta" = mod ; then
38071                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38072                 MFLAG=SLAPD_MOD_DYNAMIC
38073         else
38074                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38075                 MFLAG=SLAPD_MOD_STATIC
38076         fi
38077
38078 cat >>confdefs.h <<_ACEOF
38079 #define SLAPD_META $MFLAG
38080 _ACEOF
38081
38082 fi
38083
38084 if test "$ol_enable_ndb" != no ; then
38085         BUILD_SLAPD=yes
38086         BUILD_NDB=$ol_enable_ndb
38087         if test "$ol_enable_ndb" = mod ; then
38088                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38089                 MFLAG=SLAPD_MOD_DYNAMIC
38090         else
38091                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38092                 MFLAG=SLAPD_MOD_STATIC
38093         fi
38094
38095 cat >>confdefs.h <<_ACEOF
38096 #define SLAPD_NDB $MFLAG
38097 _ACEOF
38098
38099 fi
38100
38101 if test "$ol_enable_null" != no ; then
38102         BUILD_SLAPD=yes
38103         BUILD_NULL=$ol_enable_null
38104         if test "$ol_enable_null" = mod ; then
38105                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38106                 MFLAG=SLAPD_MOD_DYNAMIC
38107         else
38108                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38109                 MFLAG=SLAPD_MOD_STATIC
38110         fi
38111
38112 cat >>confdefs.h <<_ACEOF
38113 #define SLAPD_NULL $MFLAG
38114 _ACEOF
38115
38116 fi
38117
38118 if test "$ol_enable_passwd" != no ; then
38119         BUILD_SLAPD=yes
38120         BUILD_PASSWD=$ol_enable_passwd
38121         if test "$ol_enable_passwd" = mod ; then
38122                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38123                 MFLAG=SLAPD_MOD_DYNAMIC
38124         else
38125                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38126                 MFLAG=SLAPD_MOD_STATIC
38127         fi
38128
38129 cat >>confdefs.h <<_ACEOF
38130 #define SLAPD_PASSWD $MFLAG
38131 _ACEOF
38132
38133 fi
38134
38135 if test "$ol_link_perl" != no ; then
38136         BUILD_SLAPD=yes
38137         BUILD_PERL=$ol_enable_perl
38138         if test "$ol_enable_perl" = mod ; then
38139                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38140                 MFLAG=SLAPD_MOD_DYNAMIC
38141         else
38142                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38143                 MFLAG=SLAPD_MOD_STATIC
38144         fi
38145
38146 cat >>confdefs.h <<_ACEOF
38147 #define SLAPD_PERL $MFLAG
38148 _ACEOF
38149
38150 fi
38151
38152 if test "$ol_enable_relay" != no ; then
38153         BUILD_SLAPD=yes
38154         BUILD_RELAY=$ol_enable_relay
38155         if test "$ol_enable_relay" = mod ; then
38156                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38157                 MFLAG=SLAPD_MOD_DYNAMIC
38158         else
38159                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38160                 MFLAG=SLAPD_MOD_STATIC
38161         fi
38162
38163 cat >>confdefs.h <<_ACEOF
38164 #define SLAPD_RELAY $MFLAG
38165 _ACEOF
38166
38167 fi
38168
38169 if test "$ol_enable_shell" != no ; then
38170         if test "$ol_link_threads" != no ; then
38171                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38172 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38173         fi
38174         BUILD_SLAPD=yes
38175         BUILD_SHELL=$ol_enable_shell
38176         if test "$ol_enable_shell" = mod ; then
38177                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38178                 MFLAG=SLAPD_MOD_DYNAMIC
38179         else
38180                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38181                 MFLAG=SLAPD_MOD_STATIC
38182         fi
38183
38184 cat >>confdefs.h <<_ACEOF
38185 #define SLAPD_SHELL $MFLAG
38186 _ACEOF
38187
38188 fi
38189
38190 if test "$ol_enable_sock" != no ; then
38191         BUILD_SLAPD=yes
38192         BUILD_SOCK=$ol_enable_sock
38193         if test "$ol_enable_sock" = mod ; then
38194                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38195                 MFLAG=SLAPD_MOD_DYNAMIC
38196         else
38197                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38198                 MFLAG=SLAPD_MOD_STATIC
38199         fi
38200
38201 cat >>confdefs.h <<_ACEOF
38202 #define SLAPD_SOCK $MFLAG
38203 _ACEOF
38204
38205 fi
38206
38207 if test "$ol_link_sql" != no ; then
38208         BUILD_SLAPD=yes
38209         BUILD_SQL=$ol_enable_sql
38210         if test "$ol_enable_sql" = mod; then
38211                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38212                 MFLAG=SLAPD_MOD_DYNAMIC
38213         else
38214                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38215                 MFLAG=SLAPD_MOD_STATIC
38216         fi
38217
38218 cat >>confdefs.h <<_ACEOF
38219 #define SLAPD_SQL $MFLAG
38220 _ACEOF
38221
38222 fi
38223
38224 if test "$ol_enable_accesslog" != no ; then
38225         BUILD_ACCESSLOG=$ol_enable_accesslog
38226         if test "$ol_enable_accesslog" = mod ; then
38227                 MFLAG=SLAPD_MOD_DYNAMIC
38228                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38229         else
38230                 MFLAG=SLAPD_MOD_STATIC
38231                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38232         fi
38233
38234 cat >>confdefs.h <<_ACEOF
38235 #define SLAPD_OVER_ACCESSLOG $MFLAG
38236 _ACEOF
38237
38238 fi
38239
38240 if test "$ol_enable_auditlog" != no ; then
38241         BUILD_AUDITLOG=$ol_enable_auditlog
38242         if test "$ol_enable_auditlog" = mod ; then
38243                 MFLAG=SLAPD_MOD_DYNAMIC
38244                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38245         else
38246                 MFLAG=SLAPD_MOD_STATIC
38247                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38248         fi
38249
38250 cat >>confdefs.h <<_ACEOF
38251 #define SLAPD_OVER_AUDITLOG $MFLAG
38252 _ACEOF
38253
38254 fi
38255
38256 if test "$ol_enable_collect" != no ; then
38257         BUILD_COLLECT=$ol_enable_collect
38258         if test "$ol_enable_collect" = mod ; then
38259                 MFLAG=SLAPD_MOD_DYNAMIC
38260                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38261         else
38262                 MFLAG=SLAPD_MOD_STATIC
38263                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38264         fi
38265
38266 cat >>confdefs.h <<_ACEOF
38267 #define SLAPD_OVER_COLLECT $MFLAG
38268 _ACEOF
38269
38270 fi
38271
38272 if test "$ol_enable_constraint" != no ; then
38273         BUILD_CONSTRAINT=$ol_enable_constraint
38274         if test "$ol_enable_constraint" = mod ; then
38275                 MFLAG=SLAPD_MOD_DYNAMIC
38276                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38277         else
38278                 MFLAG=SLAPD_MOD_STATIC
38279                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38280         fi
38281
38282 cat >>confdefs.h <<_ACEOF
38283 #define SLAPD_OVER_CONSTRAINT $MFLAG
38284 _ACEOF
38285
38286 fi
38287
38288 if test "$ol_enable_dds" != no ; then
38289         BUILD_DDS=$ol_enable_dds
38290         if test "$ol_enable_dds" = mod ; then
38291                 MFLAG=SLAPD_MOD_DYNAMIC
38292                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38293         else
38294                 MFLAG=SLAPD_MOD_STATIC
38295                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38296         fi
38297
38298 cat >>confdefs.h <<_ACEOF
38299 #define SLAPD_OVER_DDS $MFLAG
38300 _ACEOF
38301
38302 fi
38303
38304 if test "$ol_enable_deref" != no ; then
38305         BUILD_DDS=$ol_enable_deref
38306         if test "$ol_enable_deref" = mod ; then
38307                 MFLAG=SLAPD_MOD_DYNAMIC
38308                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38309         else
38310                 MFLAG=SLAPD_MOD_STATIC
38311                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38312         fi
38313
38314 cat >>confdefs.h <<_ACEOF
38315 #define SLAPD_OVER_DEREF $MFLAG
38316 _ACEOF
38317
38318 fi
38319
38320 if test "$ol_enable_dyngroup" != no ; then
38321         BUILD_DYNGROUP=$ol_enable_dyngroup
38322         if test "$ol_enable_dyngroup" = mod ; then
38323                 MFLAG=SLAPD_MOD_DYNAMIC
38324                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38325         else
38326                 MFLAG=SLAPD_MOD_STATIC
38327                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38328         fi
38329
38330 cat >>confdefs.h <<_ACEOF
38331 #define SLAPD_OVER_DYNGROUP $MFLAG
38332 _ACEOF
38333
38334 fi
38335
38336 if test "$ol_enable_dynlist" != no ; then
38337         BUILD_DYNLIST=$ol_enable_dynlist
38338         if test "$ol_enable_dynlist" = mod ; then
38339                 MFLAG=SLAPD_MOD_DYNAMIC
38340                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38341         else
38342                 MFLAG=SLAPD_MOD_STATIC
38343                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38344         fi
38345
38346 cat >>confdefs.h <<_ACEOF
38347 #define SLAPD_OVER_DYNLIST $MFLAG
38348 _ACEOF
38349
38350 fi
38351
38352 if test "$ol_enable_memberof" != no ; then
38353         BUILD_MEMBEROF=$ol_enable_memberof
38354         if test "$ol_enable_memberof" = mod ; then
38355                 MFLAG=SLAPD_MOD_DYNAMIC
38356                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38357         else
38358                 MFLAG=SLAPD_MOD_STATIC
38359                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38360         fi
38361
38362 cat >>confdefs.h <<_ACEOF
38363 #define SLAPD_OVER_MEMBEROF $MFLAG
38364 _ACEOF
38365
38366 fi
38367
38368 if test "$ol_enable_ppolicy" != no ; then
38369         BUILD_PPOLICY=$ol_enable_ppolicy
38370         if test "$ol_enable_ppolicy" = mod ; then
38371                 MFLAG=SLAPD_MOD_DYNAMIC
38372                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38373         else
38374                 MFLAG=SLAPD_MOD_STATIC
38375                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38376         fi
38377
38378 cat >>confdefs.h <<_ACEOF
38379 #define SLAPD_OVER_PPOLICY $MFLAG
38380 _ACEOF
38381
38382 fi
38383
38384 if test "$ol_enable_proxycache" != no ; then
38385         BUILD_PROXYCACHE=$ol_enable_proxycache
38386         if test "$ol_enable_proxycache" = mod ; then
38387                 MFLAG=SLAPD_MOD_DYNAMIC
38388                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38389         else
38390                 MFLAG=SLAPD_MOD_STATIC
38391                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38392         fi
38393
38394 cat >>confdefs.h <<_ACEOF
38395 #define SLAPD_OVER_PROXYCACHE $MFLAG
38396 _ACEOF
38397
38398 fi
38399
38400 if test "$ol_enable_refint" != no ; then
38401         BUILD_REFINT=$ol_enable_refint
38402         if test "$ol_enable_refint" = mod ; then
38403                 MFLAG=SLAPD_MOD_DYNAMIC
38404                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38405         else
38406                 MFLAG=SLAPD_MOD_STATIC
38407                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38408         fi
38409
38410 cat >>confdefs.h <<_ACEOF
38411 #define SLAPD_OVER_REFINT $MFLAG
38412 _ACEOF
38413
38414 fi
38415
38416 if test "$ol_enable_retcode" != no ; then
38417         BUILD_RETCODE=$ol_enable_retcode
38418         if test "$ol_enable_retcode" = mod ; then
38419                 MFLAG=SLAPD_MOD_DYNAMIC
38420                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38421         else
38422                 MFLAG=SLAPD_MOD_STATIC
38423                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38424         fi
38425
38426 cat >>confdefs.h <<_ACEOF
38427 #define SLAPD_OVER_RETCODE $MFLAG
38428 _ACEOF
38429
38430 fi
38431
38432 if test "$ol_enable_rwm" != no ; then
38433         BUILD_REWRITE=yes
38434         BUILD_RWM=$ol_enable_rwm
38435         if test "$ol_enable_rwm" = mod ; then
38436                 MFLAG=SLAPD_MOD_DYNAMIC
38437                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38438         else
38439                 MFLAG=SLAPD_MOD_STATIC
38440                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38441         fi
38442
38443 cat >>confdefs.h <<_ACEOF
38444 #define SLAPD_OVER_RWM $MFLAG
38445 _ACEOF
38446
38447 fi
38448
38449 if test "$ol_enable_seqmod" != no ; then
38450         BUILD_SEQMOD=$ol_enable_seqmod
38451         if test "$ol_enable_seqmod" = mod ; then
38452                 MFLAG=SLAPD_MOD_DYNAMIC
38453                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38454         else
38455                 MFLAG=SLAPD_MOD_STATIC
38456                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38457         fi
38458
38459 cat >>confdefs.h <<_ACEOF
38460 #define SLAPD_OVER_SEQMOD $MFLAG
38461 _ACEOF
38462
38463 fi
38464
38465 if test "$ol_enable_syncprov" != no ; then
38466         BUILD_SYNCPROV=$ol_enable_syncprov
38467         if test "$ol_enable_syncprov" = mod ; then
38468                 MFLAG=SLAPD_MOD_DYNAMIC
38469                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38470         else
38471                 MFLAG=SLAPD_MOD_STATIC
38472                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38473         fi
38474
38475 cat >>confdefs.h <<_ACEOF
38476 #define SLAPD_OVER_SYNCPROV $MFLAG
38477 _ACEOF
38478
38479 fi
38480
38481 if test "$ol_enable_translucent" != no ; then
38482         BUILD_TRANSLUCENT=$ol_enable_translucent
38483         if test "$ol_enable_translucent" = mod ; then
38484                 MFLAG=SLAPD_MOD_DYNAMIC
38485                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38486         else
38487                 MFLAG=SLAPD_MOD_STATIC
38488                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38489         fi
38490
38491 cat >>confdefs.h <<_ACEOF
38492 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38493 _ACEOF
38494
38495 fi
38496
38497 if test "$ol_enable_unique" != no ; then
38498         BUILD_UNIQUE=$ol_enable_unique
38499         if test "$ol_enable_unique" = mod ; then
38500                 MFLAG=SLAPD_MOD_DYNAMIC
38501                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38502         else
38503                 MFLAG=SLAPD_MOD_STATIC
38504                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38505         fi
38506
38507 cat >>confdefs.h <<_ACEOF
38508 #define SLAPD_OVER_UNIQUE $MFLAG
38509 _ACEOF
38510
38511 fi
38512
38513 if test "$ol_enable_valsort" != no ; then
38514         BUILD_VALSORT=$ol_enable_valsort
38515         if test "$ol_enable_valsort" = mod ; then
38516                 MFLAG=SLAPD_MOD_DYNAMIC
38517                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38518         else
38519                 MFLAG=SLAPD_MOD_STATIC
38520                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38521         fi
38522
38523 cat >>confdefs.h <<_ACEOF
38524 #define SLAPD_OVER_VALSORT $MFLAG
38525 _ACEOF
38526
38527 fi
38528
38529 if test "$ol_enable_rewrite" != no ; then
38530
38531 cat >>confdefs.h <<\_ACEOF
38532 #define ENABLE_REWRITE 1
38533 _ACEOF
38534
38535         BUILD_REWRITE=yes
38536 fi
38537
38538 if test "$ol_enable_slapi" != no ; then
38539
38540 cat >>confdefs.h <<\_ACEOF
38541 #define ENABLE_SLAPI 1
38542 _ACEOF
38543
38544         BUILD_SLAPI=yes
38545         SLAPD_SLAPI_DEPEND=libslapi.a
38546 fi
38547
38548
38549
38550 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38551         PLAT=NT
38552         SLAPD_MODULES_LDFLAGS=
38553 else
38554         PLAT=UNIX
38555 fi
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645 # Check whether --with-xxinstall was given.
38646 if test "${with_xxinstall+set}" = set; then
38647   withval=$with_xxinstall;
38648 fi
38649
38650
38651
38652 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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"
38653
38654
38655 ac_config_commands="$ac_config_commands default"
38656
38657
38658
38659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38660 # Let make expand exec_prefix.
38661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38662
38663 DEFS=-DHAVE_CONFIG_H
38664
38665 ac_libobjs=
38666 ac_ltlibobjs=
38667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38668   # 1. Remove the extension, and $U if already installed.
38669   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38670   ac_i=`echo "$ac_i" | sed "$ac_script"`
38671   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38672   #    will be set to the directory where LIBOBJS objects are built.
38673   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38674   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38675 done
38676 LIBOBJS=$ac_libobjs
38677
38678 LTLIBOBJS=$ac_ltlibobjs
38679
38680
38681 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38682   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38683 Usually this means the macro was only invoked conditionally." >&5
38684 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38685 Usually this means the macro was only invoked conditionally." >&2;}
38686    { (exit 1); exit 1; }; }
38687 fi
38688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38689   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38690 Usually this means the macro was only invoked conditionally." >&5
38691 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38692 Usually this means the macro was only invoked conditionally." >&2;}
38693    { (exit 1); exit 1; }; }
38694 fi
38695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38696   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38697 Usually this means the macro was only invoked conditionally." >&5
38698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38699 Usually this means the macro was only invoked conditionally." >&2;}
38700    { (exit 1); exit 1; }; }
38701 fi
38702
38703 : ${CONFIG_STATUS=./config.status}
38704 ac_clean_files_save=$ac_clean_files
38705 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38706 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38707 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38708 cat >$CONFIG_STATUS <<_ACEOF
38709 #! $SHELL
38710 # Generated by $as_me.
38711 # Run this file to recreate the current configuration.
38712 # Compiler output produced by configure, useful for debugging
38713 # configure, is in config.log if it exists.
38714
38715 debug=false
38716 ac_cs_recheck=false
38717 ac_cs_silent=false
38718 SHELL=\${CONFIG_SHELL-$SHELL}
38719 _ACEOF
38720
38721 cat >>$CONFIG_STATUS <<\_ACEOF
38722 ## --------------------- ##
38723 ## M4sh Initialization.  ##
38724 ## --------------------- ##
38725
38726 # Be more Bourne compatible
38727 DUALCASE=1; export DUALCASE # for MKS sh
38728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38729   emulate sh
38730   NULLCMD=:
38731   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38732   # is contrary to our usage.  Disable this feature.
38733   alias -g '${1+"$@"}'='"$@"'
38734   setopt NO_GLOB_SUBST
38735 else
38736   case `(set -o) 2>/dev/null` in
38737   *posix*) set -o posix ;;
38738 esac
38739
38740 fi
38741
38742
38743
38744
38745 # PATH needs CR
38746 # Avoid depending upon Character Ranges.
38747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38750 as_cr_digits='0123456789'
38751 as_cr_alnum=$as_cr_Letters$as_cr_digits
38752
38753 # The user is always right.
38754 if test "${PATH_SEPARATOR+set}" != set; then
38755   echo "#! /bin/sh" >conf$$.sh
38756   echo  "exit 0"   >>conf$$.sh
38757   chmod +x conf$$.sh
38758   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38759     PATH_SEPARATOR=';'
38760   else
38761     PATH_SEPARATOR=:
38762   fi
38763   rm -f conf$$.sh
38764 fi
38765
38766 # Support unset when possible.
38767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38768   as_unset=unset
38769 else
38770   as_unset=false
38771 fi
38772
38773
38774 # IFS
38775 # We need space, tab and new line, in precisely that order.  Quoting is
38776 # there to prevent editors from complaining about space-tab.
38777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38778 # splitting by setting IFS to empty value.)
38779 as_nl='
38780 '
38781 IFS=" ""        $as_nl"
38782
38783 # Find who we are.  Look in the path if we contain no directory separator.
38784 case $0 in
38785   *[\\/]* ) as_myself=$0 ;;
38786   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38787 for as_dir in $PATH
38788 do
38789   IFS=$as_save_IFS
38790   test -z "$as_dir" && as_dir=.
38791   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38792 done
38793 IFS=$as_save_IFS
38794
38795      ;;
38796 esac
38797 # We did not find ourselves, most probably we were run as `sh COMMAND'
38798 # in which case we are not to be found in the path.
38799 if test "x$as_myself" = x; then
38800   as_myself=$0
38801 fi
38802 if test ! -f "$as_myself"; then
38803   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38804   { (exit 1); exit 1; }
38805 fi
38806
38807 # Work around bugs in pre-3.0 UWIN ksh.
38808 for as_var in ENV MAIL MAILPATH
38809 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38810 done
38811 PS1='$ '
38812 PS2='> '
38813 PS4='+ '
38814
38815 # NLS nuisances.
38816 for as_var in \
38817   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38818   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38819   LC_TELEPHONE LC_TIME
38820 do
38821   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38822     eval $as_var=C; export $as_var
38823   else
38824     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38825   fi
38826 done
38827
38828 # Required to use basename.
38829 if expr a : '\(a\)' >/dev/null 2>&1 &&
38830    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38831   as_expr=expr
38832 else
38833   as_expr=false
38834 fi
38835
38836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38837   as_basename=basename
38838 else
38839   as_basename=false
38840 fi
38841
38842
38843 # Name of the executable.
38844 as_me=`$as_basename -- "$0" ||
38845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38846          X"$0" : 'X\(//\)$' \| \
38847          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38848 echo X/"$0" |
38849     sed '/^.*\/\([^/][^/]*\)\/*$/{
38850             s//\1/
38851             q
38852           }
38853           /^X\/\(\/\/\)$/{
38854             s//\1/
38855             q
38856           }
38857           /^X\/\(\/\).*/{
38858             s//\1/
38859             q
38860           }
38861           s/.*/./; q'`
38862
38863 # CDPATH.
38864 $as_unset CDPATH
38865
38866
38867
38868   as_lineno_1=$LINENO
38869   as_lineno_2=$LINENO
38870   test "x$as_lineno_1" != "x$as_lineno_2" &&
38871   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38872
38873   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38874   # uniformly replaced by the line number.  The first 'sed' inserts a
38875   # line-number line after each line using $LINENO; the second 'sed'
38876   # does the real work.  The second script uses 'N' to pair each
38877   # line-number line with the line containing $LINENO, and appends
38878   # trailing '-' during substitution so that $LINENO is not a special
38879   # case at line end.
38880   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38881   # scripts with optimization help from Paolo Bonzini.  Blame Lee
38882   # E. McMahon (1931-1989) for sed's syntax.  :-)
38883   sed -n '
38884     p
38885     /[$]LINENO/=
38886   ' <$as_myself |
38887     sed '
38888       s/[$]LINENO.*/&-/
38889       t lineno
38890       b
38891       :lineno
38892       N
38893       :loop
38894       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38895       t loop
38896       s/-\n.*//
38897     ' >$as_me.lineno &&
38898   chmod +x "$as_me.lineno" ||
38899     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38900    { (exit 1); exit 1; }; }
38901
38902   # Don't try to exec as it changes $[0], causing all sort of problems
38903   # (the dirname of $[0] is not the place where we might find the
38904   # original and so on.  Autoconf is especially sensitive to this).
38905   . "./$as_me.lineno"
38906   # Exit status is that of the last command.
38907   exit
38908 }
38909
38910
38911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38912   as_dirname=dirname
38913 else
38914   as_dirname=false
38915 fi
38916
38917 ECHO_C= ECHO_N= ECHO_T=
38918 case `echo -n x` in
38919 -n*)
38920   case `echo 'x\c'` in
38921   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
38922   *)   ECHO_C='\c';;
38923   esac;;
38924 *)
38925   ECHO_N='-n';;
38926 esac
38927
38928 if expr a : '\(a\)' >/dev/null 2>&1 &&
38929    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38930   as_expr=expr
38931 else
38932   as_expr=false
38933 fi
38934
38935 rm -f conf$$ conf$$.exe conf$$.file
38936 if test -d conf$$.dir; then
38937   rm -f conf$$.dir/conf$$.file
38938 else
38939   rm -f conf$$.dir
38940   mkdir conf$$.dir
38941 fi
38942 echo >conf$$.file
38943 if ln -s conf$$.file conf$$ 2>/dev/null; then
38944   as_ln_s='ln -s'
38945   # ... but there are two gotchas:
38946   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38947   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38948   # In both cases, we have to default to `cp -p'.
38949   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38950     as_ln_s='cp -p'
38951 elif ln conf$$.file conf$$ 2>/dev/null; then
38952   as_ln_s=ln
38953 else
38954   as_ln_s='cp -p'
38955 fi
38956 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38957 rmdir conf$$.dir 2>/dev/null
38958
38959 if mkdir -p . 2>/dev/null; then
38960   as_mkdir_p=:
38961 else
38962   test -d ./-p && rmdir ./-p
38963   as_mkdir_p=false
38964 fi
38965
38966 if test -x / >/dev/null 2>&1; then
38967   as_test_x='test -x'
38968 else
38969   if ls -dL / >/dev/null 2>&1; then
38970     as_ls_L_option=L
38971   else
38972     as_ls_L_option=
38973   fi
38974   as_test_x='
38975     eval sh -c '\''
38976       if test -d "$1"; then
38977         test -d "$1/.";
38978       else
38979         case $1 in
38980         -*)set "./$1";;
38981         esac;
38982         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
38983         ???[sx]*):;;*)false;;esac;fi
38984     '\'' sh
38985   '
38986 fi
38987 as_executable_p=$as_test_x
38988
38989 # Sed expression to map a string onto a valid CPP name.
38990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38991
38992 # Sed expression to map a string onto a valid variable name.
38993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38994
38995
38996 exec 6>&1
38997
38998 # Save the log message, to keep $[0] and so on meaningful, and to
38999 # report actual input values of CONFIG_FILES etc. instead of their
39000 # values after options handling.
39001 ac_log="
39002 This file was extended by $as_me, which was
39003 generated by GNU Autoconf 2.61.  Invocation command line was
39004
39005   CONFIG_FILES    = $CONFIG_FILES
39006   CONFIG_HEADERS  = $CONFIG_HEADERS
39007   CONFIG_LINKS    = $CONFIG_LINKS
39008   CONFIG_COMMANDS = $CONFIG_COMMANDS
39009   $ $0 $@
39010
39011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39012 "
39013
39014 _ACEOF
39015
39016 cat >>$CONFIG_STATUS <<_ACEOF
39017 # Files that config.status was made for.
39018 config_files="$ac_config_files"
39019 config_headers="$ac_config_headers"
39020 config_commands="$ac_config_commands"
39021
39022 _ACEOF
39023
39024 cat >>$CONFIG_STATUS <<\_ACEOF
39025 ac_cs_usage="\
39026 \`$as_me' instantiates files from templates according to the
39027 current configuration.
39028
39029 Usage: $0 [OPTIONS] [FILE]...
39030
39031   -h, --help       print this help, then exit
39032   -V, --version    print version number and configuration settings, then exit
39033   -q, --quiet      do not print progress messages
39034   -d, --debug      don't remove temporary files
39035       --recheck    update $as_me by reconfiguring in the same conditions
39036   --file=FILE[:TEMPLATE]
39037                    instantiate the configuration file FILE
39038   --header=FILE[:TEMPLATE]
39039                    instantiate the configuration header FILE
39040
39041 Configuration files:
39042 $config_files
39043
39044 Configuration headers:
39045 $config_headers
39046
39047 Configuration commands:
39048 $config_commands
39049
39050 Report bugs to <bug-autoconf@gnu.org>."
39051
39052 _ACEOF
39053 cat >>$CONFIG_STATUS <<_ACEOF
39054 ac_cs_version="\\
39055 config.status
39056 configured by $0, generated by GNU Autoconf 2.61,
39057   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39058
39059 Copyright (C) 2006 Free Software Foundation, Inc.
39060 This config.status script is free software; the Free Software Foundation
39061 gives unlimited permission to copy, distribute and modify it."
39062
39063 ac_pwd='$ac_pwd'
39064 srcdir='$srcdir'
39065 INSTALL='$INSTALL'
39066 _ACEOF
39067
39068 cat >>$CONFIG_STATUS <<\_ACEOF
39069 # If no file are specified by the user, then we need to provide default
39070 # value.  By we need to know if files were specified by the user.
39071 ac_need_defaults=:
39072 while test $# != 0
39073 do
39074   case $1 in
39075   --*=*)
39076     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39077     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39078     ac_shift=:
39079     ;;
39080   *)
39081     ac_option=$1
39082     ac_optarg=$2
39083     ac_shift=shift
39084     ;;
39085   esac
39086
39087   case $ac_option in
39088   # Handling of the options.
39089   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39090     ac_cs_recheck=: ;;
39091   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39092     echo "$ac_cs_version"; exit ;;
39093   --debug | --debu | --deb | --de | --d | -d )
39094     debug=: ;;
39095   --file | --fil | --fi | --f )
39096     $ac_shift
39097     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39098     ac_need_defaults=false;;
39099   --header | --heade | --head | --hea )
39100     $ac_shift
39101     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39102     ac_need_defaults=false;;
39103   --he | --h)
39104     # Conflict between --help and --header
39105     { echo "$as_me: error: ambiguous option: $1
39106 Try \`$0 --help' for more information." >&2
39107    { (exit 1); exit 1; }; };;
39108   --help | --hel | -h )
39109     echo "$ac_cs_usage"; exit ;;
39110   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39111   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39112     ac_cs_silent=: ;;
39113
39114   # This is an error.
39115   -*) { echo "$as_me: error: unrecognized option: $1
39116 Try \`$0 --help' for more information." >&2
39117    { (exit 1); exit 1; }; } ;;
39118
39119   *) ac_config_targets="$ac_config_targets $1"
39120      ac_need_defaults=false ;;
39121
39122   esac
39123   shift
39124 done
39125
39126 ac_configure_extra_args=
39127
39128 if $ac_cs_silent; then
39129   exec 6>/dev/null
39130   ac_configure_extra_args="$ac_configure_extra_args --silent"
39131 fi
39132
39133 _ACEOF
39134 cat >>$CONFIG_STATUS <<_ACEOF
39135 if \$ac_cs_recheck; then
39136   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39137   CONFIG_SHELL=$SHELL
39138   export CONFIG_SHELL
39139   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39140 fi
39141
39142 _ACEOF
39143 cat >>$CONFIG_STATUS <<\_ACEOF
39144 exec 5>>config.log
39145 {
39146   echo
39147   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39148 ## Running $as_me. ##
39149 _ASBOX
39150   echo "$ac_log"
39151 } >&5
39152
39153 _ACEOF
39154 cat >>$CONFIG_STATUS <<_ACEOF
39155 #
39156 # INIT-COMMANDS
39157 #
39158 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39159
39160 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39161 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39162
39163
39164 _ACEOF
39165
39166 cat >>$CONFIG_STATUS <<\_ACEOF
39167
39168 # Handling of arguments.
39169 for ac_config_target in $ac_config_targets
39170 do
39171   case $ac_config_target in
39172     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39173     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39174     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39175     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39176     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39177     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39178     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39179     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39180     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39181     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39182     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39183     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39184     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39185     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39186     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39187     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39188     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39189     "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" ;;
39190     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39191     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39192     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39193     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39194     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39195     "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" ;;
39196     "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" ;;
39197     "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" ;;
39198     "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" ;;
39199     "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" ;;
39200     "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" ;;
39201     "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" ;;
39202     "servers/slapd/back-ndb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39203     "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" ;;
39204     "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" ;;
39205     "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" ;;
39206     "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" ;;
39207     "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" ;;
39208     "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" ;;
39209     "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" ;;
39210     "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" ;;
39211     "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" ;;
39212     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39213     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39214     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39215     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39216     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39217
39218   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39219 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39220    { (exit 1); exit 1; }; };;
39221   esac
39222 done
39223
39224
39225 # If the user did not use the arguments to specify the items to instantiate,
39226 # then the envvar interface is used.  Set only those that are not.
39227 # We use the long form for the default assignment because of an extremely
39228 # bizarre bug on SunOS 4.1.3.
39229 if $ac_need_defaults; then
39230   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39231   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39232   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39233 fi
39234
39235 # Have a temporary directory for convenience.  Make it in the build tree
39236 # simply because there is no reason against having it here, and in addition,
39237 # creating and moving files from /tmp can sometimes cause problems.
39238 # Hook for its removal unless debugging.
39239 # Note that there is a small window in which the directory will not be cleaned:
39240 # after its creation but before its name has been assigned to `$tmp'.
39241 $debug ||
39242 {
39243   tmp=
39244   trap 'exit_status=$?
39245   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39246 ' 0
39247   trap '{ (exit 1); exit 1; }' 1 2 13 15
39248 }
39249 # Create a (secure) tmp directory for tmp files.
39250
39251 {
39252   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39253   test -n "$tmp" && test -d "$tmp"
39254 }  ||
39255 {
39256   tmp=./conf$$-$RANDOM
39257   (umask 077 && mkdir "$tmp")
39258 } ||
39259 {
39260    echo "$me: cannot create a temporary directory in ." >&2
39261    { (exit 1); exit 1; }
39262 }
39263
39264 #
39265 # Set up the sed scripts for CONFIG_FILES section.
39266 #
39267
39268 # No need to generate the scripts if there are no CONFIG_FILES.
39269 # This happens for instance when ./config.status config.h
39270 if test -n "$CONFIG_FILES"; then
39271
39272 _ACEOF
39273
39274
39275
39276 ac_delim='%!_!# '
39277 for ac_last_try in false false false false false :; do
39278   cat >conf$$subs.sed <<_ACEOF
39279 SHELL!$SHELL$ac_delim
39280 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39281 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39282 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39283 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39284 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39285 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39286 exec_prefix!$exec_prefix$ac_delim
39287 prefix!$prefix$ac_delim
39288 program_transform_name!$program_transform_name$ac_delim
39289 bindir!$bindir$ac_delim
39290 sbindir!$sbindir$ac_delim
39291 libexecdir!$libexecdir$ac_delim
39292 datarootdir!$datarootdir$ac_delim
39293 datadir!$datadir$ac_delim
39294 sysconfdir!$sysconfdir$ac_delim
39295 sharedstatedir!$sharedstatedir$ac_delim
39296 localstatedir!$localstatedir$ac_delim
39297 includedir!$includedir$ac_delim
39298 oldincludedir!$oldincludedir$ac_delim
39299 docdir!$docdir$ac_delim
39300 infodir!$infodir$ac_delim
39301 htmldir!$htmldir$ac_delim
39302 dvidir!$dvidir$ac_delim
39303 pdfdir!$pdfdir$ac_delim
39304 psdir!$psdir$ac_delim
39305 libdir!$libdir$ac_delim
39306 localedir!$localedir$ac_delim
39307 mandir!$mandir$ac_delim
39308 DEFS!$DEFS$ac_delim
39309 ECHO_C!$ECHO_C$ac_delim
39310 ECHO_N!$ECHO_N$ac_delim
39311 ECHO_T!$ECHO_T$ac_delim
39312 LIBS!$LIBS$ac_delim
39313 build_alias!$build_alias$ac_delim
39314 host_alias!$host_alias$ac_delim
39315 target_alias!$target_alias$ac_delim
39316 build!$build$ac_delim
39317 build_cpu!$build_cpu$ac_delim
39318 build_vendor!$build_vendor$ac_delim
39319 build_os!$build_os$ac_delim
39320 host!$host$ac_delim
39321 host_cpu!$host_cpu$ac_delim
39322 host_vendor!$host_vendor$ac_delim
39323 host_os!$host_os$ac_delim
39324 target!$target$ac_delim
39325 target_cpu!$target_cpu$ac_delim
39326 target_vendor!$target_vendor$ac_delim
39327 target_os!$target_os$ac_delim
39328 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39329 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39330 INSTALL_DATA!$INSTALL_DATA$ac_delim
39331 CYGPATH_W!$CYGPATH_W$ac_delim
39332 PACKAGE!$PACKAGE$ac_delim
39333 VERSION!$VERSION$ac_delim
39334 ACLOCAL!$ACLOCAL$ac_delim
39335 AUTOCONF!$AUTOCONF$ac_delim
39336 AUTOMAKE!$AUTOMAKE$ac_delim
39337 AUTOHEADER!$AUTOHEADER$ac_delim
39338 MAKEINFO!$MAKEINFO$ac_delim
39339 install_sh!$install_sh$ac_delim
39340 STRIP!$STRIP$ac_delim
39341 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39342 mkdir_p!$mkdir_p$ac_delim
39343 AWK!$AWK$ac_delim
39344 SET_MAKE!$SET_MAKE$ac_delim
39345 am__leading_dot!$am__leading_dot$ac_delim
39346 AMTAR!$AMTAR$ac_delim
39347 am__tar!$am__tar$ac_delim
39348 am__untar!$am__untar$ac_delim
39349 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39350 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39351 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39352 top_builddir!$top_builddir$ac_delim
39353 ldap_subdir!$ldap_subdir$ac_delim
39354 CC!$CC$ac_delim
39355 AR!$AR$ac_delim
39356 CFLAGS!$CFLAGS$ac_delim
39357 LDFLAGS!$LDFLAGS$ac_delim
39358 CPPFLAGS!$CPPFLAGS$ac_delim
39359 ac_ct_CC!$ac_ct_CC$ac_delim
39360 EXEEXT!$EXEEXT$ac_delim
39361 OBJEXT!$OBJEXT$ac_delim
39362 DEPDIR!$DEPDIR$ac_delim
39363 am__include!$am__include$ac_delim
39364 am__quote!$am__quote$ac_delim
39365 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39366 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39367 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39368 CCDEPMODE!$CCDEPMODE$ac_delim
39369 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39370 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39371 GREP!$GREP$ac_delim
39372 EGREP!$EGREP$ac_delim
39373 LN_S!$LN_S$ac_delim
39374 ECHO!$ECHO$ac_delim
39375 RANLIB!$RANLIB$ac_delim
39376 _ACEOF
39377
39378   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39379     break
39380   elif $ac_last_try; then
39381     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39382 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39383    { (exit 1); exit 1; }; }
39384   else
39385     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39386   fi
39387 done
39388
39389 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39390 if test -n "$ac_eof"; then
39391   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39392   ac_eof=`expr $ac_eof + 1`
39393 fi
39394
39395 cat >>$CONFIG_STATUS <<_ACEOF
39396 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39398 _ACEOF
39399 sed '
39400 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39401 s/^/s,@/; s/!/@,|#_!!_#|/
39402 :n
39403 t n
39404 s/'"$ac_delim"'$/,g/; t
39405 s/$/\\/; p
39406 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39407 ' >>$CONFIG_STATUS <conf$$subs.sed
39408 rm -f conf$$subs.sed
39409 cat >>$CONFIG_STATUS <<_ACEOF
39410 CEOF$ac_eof
39411 _ACEOF
39412
39413
39414 ac_delim='%!_!# '
39415 for ac_last_try in false false false false false :; do
39416   cat >conf$$subs.sed <<_ACEOF
39417 DLLTOOL!$DLLTOOL$ac_delim
39418 AS!$AS$ac_delim
39419 OBJDUMP!$OBJDUMP$ac_delim
39420 CPP!$CPP$ac_delim
39421 LIBTOOL!$LIBTOOL$ac_delim
39422 PERLBIN!$PERLBIN$ac_delim
39423 OL_MKDEP!$OL_MKDEP$ac_delim
39424 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39425 LTSTATIC!$LTSTATIC$ac_delim
39426 MYSQL!$MYSQL$ac_delim
39427 LIBOBJS!$LIBOBJS$ac_delim
39428 LIBSRCS!$LIBSRCS$ac_delim
39429 PLAT!$PLAT$ac_delim
39430 WITH_SASL!$WITH_SASL$ac_delim
39431 WITH_TLS!$WITH_TLS$ac_delim
39432 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39433 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39434 BUILD_THREAD!$BUILD_THREAD$ac_delim
39435 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39436 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39437 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39438 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39439 BUILD_BDB!$BUILD_BDB$ac_delim
39440 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39441 BUILD_HDB!$BUILD_HDB$ac_delim
39442 BUILD_LDAP!$BUILD_LDAP$ac_delim
39443 BUILD_META!$BUILD_META$ac_delim
39444 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39445 BUILD_NDB!$BUILD_NDB$ac_delim
39446 BUILD_NULL!$BUILD_NULL$ac_delim
39447 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39448 BUILD_RELAY!$BUILD_RELAY$ac_delim
39449 BUILD_PERL!$BUILD_PERL$ac_delim
39450 BUILD_SHELL!$BUILD_SHELL$ac_delim
39451 BUILD_SOCK!$BUILD_SOCK$ac_delim
39452 BUILD_SQL!$BUILD_SQL$ac_delim
39453 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39454 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39455 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39456 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39457 BUILD_DDS!$BUILD_DDS$ac_delim
39458 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39459 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39460 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39461 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39462 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39463 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39464 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39465 BUILD_REFINT!$BUILD_REFINT$ac_delim
39466 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39467 BUILD_RWM!$BUILD_RWM$ac_delim
39468 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39469 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39470 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39471 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39472 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39473 LDAP_LIBS!$LDAP_LIBS$ac_delim
39474 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39475 BDB_LIBS!$BDB_LIBS$ac_delim
39476 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39477 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39478 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39479 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39480 WRAP_LIBS!$WRAP_LIBS$ac_delim
39481 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39482 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39483 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39484 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39485 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39486 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39487 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39488 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39489 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39490 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39491 KRB4_LIBS!$KRB4_LIBS$ac_delim
39492 KRB5_LIBS!$KRB5_LIBS$ac_delim
39493 SASL_LIBS!$SASL_LIBS$ac_delim
39494 TLS_LIBS!$TLS_LIBS$ac_delim
39495 MODULES_LIBS!$MODULES_LIBS$ac_delim
39496 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39497 LIBSLAPI!$LIBSLAPI$ac_delim
39498 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39499 AUTH_LIBS!$AUTH_LIBS$ac_delim
39500 ICU_LIBS!$ICU_LIBS$ac_delim
39501 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39502 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39503 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39504 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39505 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39506 LTLIBOBJS!$LTLIBOBJS$ac_delim
39507 _ACEOF
39508
39509   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
39510     break
39511   elif $ac_last_try; then
39512     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39514    { (exit 1); exit 1; }; }
39515   else
39516     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39517   fi
39518 done
39519
39520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39521 if test -n "$ac_eof"; then
39522   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39523   ac_eof=`expr $ac_eof + 1`
39524 fi
39525
39526 cat >>$CONFIG_STATUS <<_ACEOF
39527 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39529 _ACEOF
39530 sed '
39531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39532 s/^/s,@/; s/!/@,|#_!!_#|/
39533 :n
39534 t n
39535 s/'"$ac_delim"'$/,g/; t
39536 s/$/\\/; p
39537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39538 ' >>$CONFIG_STATUS <conf$$subs.sed
39539 rm -f conf$$subs.sed
39540 cat >>$CONFIG_STATUS <<_ACEOF
39541 :end
39542 s/|#_!!_#|//g
39543 CEOF$ac_eof
39544 _ACEOF
39545
39546
39547 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39548 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39549 # trailing colons and then remove the whole line if VPATH becomes empty
39550 # (actually we leave an empty line to preserve line numbers).
39551 if test "x$srcdir" = x.; then
39552   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39553 s/:*\$(srcdir):*/:/
39554 s/:*\${srcdir}:*/:/
39555 s/:*@srcdir@:*/:/
39556 s/^\([^=]*=[     ]*\):*/\1/
39557 s/:*$//
39558 s/^[^=]*=[       ]*$//
39559 }'
39560 fi
39561
39562 cat >>$CONFIG_STATUS <<\_ACEOF
39563 fi # test -n "$CONFIG_FILES"
39564
39565
39566 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39567 do
39568   case $ac_tag in
39569   :[FHLC]) ac_mode=$ac_tag; continue;;
39570   esac
39571   case $ac_mode$ac_tag in
39572   :[FHL]*:*);;
39573   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39574 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39575    { (exit 1); exit 1; }; };;
39576   :[FH]-) ac_tag=-:-;;
39577   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39578   esac
39579   ac_save_IFS=$IFS
39580   IFS=:
39581   set x $ac_tag
39582   IFS=$ac_save_IFS
39583   shift
39584   ac_file=$1
39585   shift
39586
39587   case $ac_mode in
39588   :L) ac_source=$1;;
39589   :[FH])
39590     ac_file_inputs=
39591     for ac_f
39592     do
39593       case $ac_f in
39594       -) ac_f="$tmp/stdin";;
39595       *) # Look for the file first in the build tree, then in the source tree
39596          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39597          # because $ac_f cannot contain `:'.
39598          test -f "$ac_f" ||
39599            case $ac_f in
39600            [\\/$]*) false;;
39601            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39602            esac ||
39603            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39604 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39605    { (exit 1); exit 1; }; };;
39606       esac
39607       ac_file_inputs="$ac_file_inputs $ac_f"
39608     done
39609
39610     # Let's still pretend it is `configure' which instantiates (i.e., don't
39611     # use $as_me), people would be surprised to read:
39612     #    /* config.h.  Generated by config.status.  */
39613     configure_input="Generated from "`IFS=:
39614           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39615     if test x"$ac_file" != x-; then
39616       configure_input="$ac_file.  $configure_input"
39617       { echo "$as_me:$LINENO: creating $ac_file" >&5
39618 echo "$as_me: creating $ac_file" >&6;}
39619     fi
39620
39621     case $ac_tag in
39622     *:-:* | *:-) cat >"$tmp/stdin";;
39623     esac
39624     ;;
39625   esac
39626
39627   ac_dir=`$as_dirname -- "$ac_file" ||
39628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39629          X"$ac_file" : 'X\(//\)[^/]' \| \
39630          X"$ac_file" : 'X\(//\)$' \| \
39631          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39632 echo X"$ac_file" |
39633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39634             s//\1/
39635             q
39636           }
39637           /^X\(\/\/\)[^/].*/{
39638             s//\1/
39639             q
39640           }
39641           /^X\(\/\/\)$/{
39642             s//\1/
39643             q
39644           }
39645           /^X\(\/\).*/{
39646             s//\1/
39647             q
39648           }
39649           s/.*/./; q'`
39650   { as_dir="$ac_dir"
39651   case $as_dir in #(
39652   -*) as_dir=./$as_dir;;
39653   esac
39654   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39655     as_dirs=
39656     while :; do
39657       case $as_dir in #(
39658       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39659       *) as_qdir=$as_dir;;
39660       esac
39661       as_dirs="'$as_qdir' $as_dirs"
39662       as_dir=`$as_dirname -- "$as_dir" ||
39663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39664          X"$as_dir" : 'X\(//\)[^/]' \| \
39665          X"$as_dir" : 'X\(//\)$' \| \
39666          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39667 echo X"$as_dir" |
39668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39669             s//\1/
39670             q
39671           }
39672           /^X\(\/\/\)[^/].*/{
39673             s//\1/
39674             q
39675           }
39676           /^X\(\/\/\)$/{
39677             s//\1/
39678             q
39679           }
39680           /^X\(\/\).*/{
39681             s//\1/
39682             q
39683           }
39684           s/.*/./; q'`
39685       test -d "$as_dir" && break
39686     done
39687     test -z "$as_dirs" || eval "mkdir $as_dirs"
39688   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39690    { (exit 1); exit 1; }; }; }
39691   ac_builddir=.
39692
39693 case "$ac_dir" in
39694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39695 *)
39696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39697   # A ".." for each directory in $ac_dir_suffix.
39698   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39699   case $ac_top_builddir_sub in
39700   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39701   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39702   esac ;;
39703 esac
39704 ac_abs_top_builddir=$ac_pwd
39705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39706 # for backward compatibility:
39707 ac_top_builddir=$ac_top_build_prefix
39708
39709 case $srcdir in
39710   .)  # We are building in place.
39711     ac_srcdir=.
39712     ac_top_srcdir=$ac_top_builddir_sub
39713     ac_abs_top_srcdir=$ac_pwd ;;
39714   [\\/]* | ?:[\\/]* )  # Absolute name.
39715     ac_srcdir=$srcdir$ac_dir_suffix;
39716     ac_top_srcdir=$srcdir
39717     ac_abs_top_srcdir=$srcdir ;;
39718   *) # Relative name.
39719     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39720     ac_top_srcdir=$ac_top_build_prefix$srcdir
39721     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39722 esac
39723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39724
39725
39726   case $ac_mode in
39727   :F)
39728   #
39729   # CONFIG_FILE
39730   #
39731
39732   case $INSTALL in
39733   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39734   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39735   esac
39736 _ACEOF
39737
39738 cat >>$CONFIG_STATUS <<\_ACEOF
39739 # If the template does not know about datarootdir, expand it.
39740 # FIXME: This hack should be removed a few years after 2.60.
39741 ac_datarootdir_hack=; ac_datarootdir_seen=
39742
39743 case `sed -n '/datarootdir/ {
39744   p
39745   q
39746 }
39747 /@datadir@/p
39748 /@docdir@/p
39749 /@infodir@/p
39750 /@localedir@/p
39751 /@mandir@/p
39752 ' $ac_file_inputs` in
39753 *datarootdir*) ac_datarootdir_seen=yes;;
39754 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39755   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39756 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39757 _ACEOF
39758 cat >>$CONFIG_STATUS <<_ACEOF
39759   ac_datarootdir_hack='
39760   s&@datadir@&$datadir&g
39761   s&@docdir@&$docdir&g
39762   s&@infodir@&$infodir&g
39763   s&@localedir@&$localedir&g
39764   s&@mandir@&$mandir&g
39765     s&\\\${datarootdir}&$datarootdir&g' ;;
39766 esac
39767 _ACEOF
39768
39769 # Neutralize VPATH when `$srcdir' = `.'.
39770 # Shell code in configure.ac might set extrasub.
39771 # FIXME: do we really want to maintain this feature?
39772 cat >>$CONFIG_STATUS <<_ACEOF
39773   sed "$ac_vpsub
39774 $extrasub
39775 _ACEOF
39776 cat >>$CONFIG_STATUS <<\_ACEOF
39777 :t
39778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39779 s&@configure_input@&$configure_input&;t t
39780 s&@top_builddir@&$ac_top_builddir_sub&;t t
39781 s&@srcdir@&$ac_srcdir&;t t
39782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39783 s&@top_srcdir@&$ac_top_srcdir&;t t
39784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39785 s&@builddir@&$ac_builddir&;t t
39786 s&@abs_builddir@&$ac_abs_builddir&;t t
39787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39788 s&@INSTALL@&$ac_INSTALL&;t t
39789 $ac_datarootdir_hack
39790 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39791
39792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39793   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39794   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39795   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39796 which seems to be undefined.  Please make sure it is defined." >&5
39797 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39798 which seems to be undefined.  Please make sure it is defined." >&2;}
39799
39800   rm -f "$tmp/stdin"
39801   case $ac_file in
39802   -) cat "$tmp/out"; rm -f "$tmp/out";;
39803   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39804   esac
39805  ;;
39806   :H)
39807   #
39808   # CONFIG_HEADER
39809   #
39810 _ACEOF
39811
39812 # Transform confdefs.h into a sed script `conftest.defines', that
39813 # substitutes the proper values into config.h.in to produce config.h.
39814 rm -f conftest.defines conftest.tail
39815 # First, append a space to every undef/define line, to ease matching.
39816 echo 's/$/ /' >conftest.defines
39817 # Then, protect against being on the right side of a sed subst, or in
39818 # an unquoted here document, in config.status.  If some macros were
39819 # called several times there might be several #defines for the same
39820 # symbol, which is useless.  But do not sort them, since the last
39821 # AC_DEFINE must be honored.
39822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39823 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39824 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39825 # PARAMS is the parameter list in the macro definition--in most cases, it's
39826 # just an empty string.
39827 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
39828 ac_dB='\\)[      (].*,\\1define\\2'
39829 ac_dC=' '
39830 ac_dD=' ,'
39831
39832 uniq confdefs.h |
39833   sed -n '
39834         t rset
39835         :rset
39836         s/^[     ]*#[    ]*define[       ][      ]*//
39837         t ok
39838         d
39839         :ok
39840         s/[\\&,]/\\&/g
39841         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39842         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39843   ' >>conftest.defines
39844
39845 # Remove the space that was appended to ease matching.
39846 # Then replace #undef with comments.  This is necessary, for
39847 # example, in the case of _POSIX_SOURCE, which is predefined and required
39848 # on some systems where configure will not decide to define it.
39849 # (The regexp can be short, since the line contains either #define or #undef.)
39850 echo 's/ $//
39851 s,^[     #]*u.*,/* & */,' >>conftest.defines
39852
39853 # Break up conftest.defines:
39854 ac_max_sed_lines=50
39855
39856 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39857 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39858 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39859 # et cetera.
39860 ac_in='$ac_file_inputs'
39861 ac_out='"$tmp/out1"'
39862 ac_nxt='"$tmp/out2"'
39863
39864 while :
39865 do
39866   # Write a here document:
39867     cat >>$CONFIG_STATUS <<_ACEOF
39868     # First, check the format of the line:
39869     cat >"\$tmp/defines.sed" <<\\CEOF
39870 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
39871 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
39872 b
39873 :def
39874 _ACEOF
39875   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39876   echo 'CEOF
39877     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39878   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39879   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39880   grep . conftest.tail >/dev/null || break
39881   rm -f conftest.defines
39882   mv conftest.tail conftest.defines
39883 done
39884 rm -f conftest.defines conftest.tail
39885
39886 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39887 cat >>$CONFIG_STATUS <<\_ACEOF
39888   if test x"$ac_file" != x-; then
39889     echo "/* $configure_input  */" >"$tmp/config.h"
39890     cat "$ac_result" >>"$tmp/config.h"
39891     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39892       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39893 echo "$as_me: $ac_file is unchanged" >&6;}
39894     else
39895       rm -f $ac_file
39896       mv "$tmp/config.h" $ac_file
39897     fi
39898   else
39899     echo "/* $configure_input  */"
39900     cat "$ac_result"
39901   fi
39902   rm -f "$tmp/out12"
39903 # Compute $ac_file's index in $config_headers.
39904 _am_stamp_count=1
39905 for _am_header in $config_headers :; do
39906   case $_am_header in
39907     $ac_file | $ac_file:* )
39908       break ;;
39909     * )
39910       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39911   esac
39912 done
39913 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39914 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39915          X$ac_file : 'X\(//\)[^/]' \| \
39916          X$ac_file : 'X\(//\)$' \| \
39917          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39918 echo X$ac_file |
39919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39920             s//\1/
39921             q
39922           }
39923           /^X\(\/\/\)[^/].*/{
39924             s//\1/
39925             q
39926           }
39927           /^X\(\/\/\)$/{
39928             s//\1/
39929             q
39930           }
39931           /^X\(\/\).*/{
39932             s//\1/
39933             q
39934           }
39935           s/.*/./; q'`/stamp-h$_am_stamp_count
39936  ;;
39937
39938   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39939 echo "$as_me: executing $ac_file commands" >&6;}
39940  ;;
39941   esac
39942
39943
39944   case $ac_file$ac_mode in
39945     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39946   # Strip MF so we end up with the name of the file.
39947   mf=`echo "$mf" | sed -e 's/:.*$//'`
39948   # Check whether this is an Automake generated Makefile or not.
39949   # We used to match only the files named `Makefile.in', but
39950   # some people rename them; so instead we look at the file content.
39951   # Grep'ing the first line is not enough: some people post-process
39952   # each Makefile.in and add a new line on top of each file to say so.
39953   # So let's grep whole file.
39954   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39955     dirpart=`$as_dirname -- "$mf" ||
39956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39957          X"$mf" : 'X\(//\)[^/]' \| \
39958          X"$mf" : 'X\(//\)$' \| \
39959          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39960 echo X"$mf" |
39961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39962             s//\1/
39963             q
39964           }
39965           /^X\(\/\/\)[^/].*/{
39966             s//\1/
39967             q
39968           }
39969           /^X\(\/\/\)$/{
39970             s//\1/
39971             q
39972           }
39973           /^X\(\/\).*/{
39974             s//\1/
39975             q
39976           }
39977           s/.*/./; q'`
39978   else
39979     continue
39980   fi
39981   # Extract the definition of DEPDIR, am__include, and am__quote
39982   # from the Makefile without running `make'.
39983   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39984   test -z "$DEPDIR" && continue
39985   am__include=`sed -n 's/^am__include = //p' < "$mf"`
39986   test -z "am__include" && continue
39987   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39988   # When using ansi2knr, U may be empty or an underscore; expand it
39989   U=`sed -n 's/^U = //p' < "$mf"`
39990   # Find all dependency output files, they are included files with
39991   # $(DEPDIR) in their names.  We invoke sed twice because it is the
39992   # simplest approach to changing $(DEPDIR) to its actual value in the
39993   # expansion.
39994   for file in `sed -n "
39995     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39996        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39997     # Make sure the directory exists.
39998     test -f "$dirpart/$file" && continue
39999     fdir=`$as_dirname -- "$file" ||
40000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40001          X"$file" : 'X\(//\)[^/]' \| \
40002          X"$file" : 'X\(//\)$' \| \
40003          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40004 echo X"$file" |
40005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40006             s//\1/
40007             q
40008           }
40009           /^X\(\/\/\)[^/].*/{
40010             s//\1/
40011             q
40012           }
40013           /^X\(\/\/\)$/{
40014             s//\1/
40015             q
40016           }
40017           /^X\(\/\).*/{
40018             s//\1/
40019             q
40020           }
40021           s/.*/./; q'`
40022     { as_dir=$dirpart/$fdir
40023   case $as_dir in #(
40024   -*) as_dir=./$as_dir;;
40025   esac
40026   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40027     as_dirs=
40028     while :; do
40029       case $as_dir in #(
40030       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40031       *) as_qdir=$as_dir;;
40032       esac
40033       as_dirs="'$as_qdir' $as_dirs"
40034       as_dir=`$as_dirname -- "$as_dir" ||
40035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40036          X"$as_dir" : 'X\(//\)[^/]' \| \
40037          X"$as_dir" : 'X\(//\)$' \| \
40038          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40039 echo X"$as_dir" |
40040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40041             s//\1/
40042             q
40043           }
40044           /^X\(\/\/\)[^/].*/{
40045             s//\1/
40046             q
40047           }
40048           /^X\(\/\/\)$/{
40049             s//\1/
40050             q
40051           }
40052           /^X\(\/\).*/{
40053             s//\1/
40054             q
40055           }
40056           s/.*/./; q'`
40057       test -d "$as_dir" && break
40058     done
40059     test -z "$as_dirs" || eval "mkdir $as_dirs"
40060   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40061 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40062    { (exit 1); exit 1; }; }; }
40063     # echo "creating $dirpart/$file"
40064     echo '# dummy' > "$dirpart/$file"
40065   done
40066 done
40067  ;;
40068     "default":C)
40069 chmod +x tests/run
40070 date > stamp-h
40071 BACKENDSC="servers/slapd/backends.c"
40072 echo "Making $BACKENDSC"
40073 rm -f $BACKENDSC
40074 cat > $BACKENDSC << ENDX
40075 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40076  *
40077  * Copyright 1998-2009 The OpenLDAP Foundation.
40078  * All rights reserved.
40079  *
40080  * Redistribution and use in source and binary forms, with or without
40081  * modification, are permitted only as authorized by the OpenLDAP
40082  * Public License.
40083  *
40084  * A copy of this license is available in the file LICENSE in the
40085  * top-level directory of the distribution or, alternatively, at
40086  * <http://www.OpenLDAP.org/license.html>.
40087  */
40088 /* This file is automatically generated by configure; please do not edit. */
40089
40090 #include "portable.h"
40091 #include "slap.h"
40092
40093 ENDX
40094 if test "${STATIC_BACKENDS}"; then
40095         for b in config ${STATIC_BACKENDS}; do
40096                 bb=`echo "${b}" | sed -e 's/back-//'`
40097                 cat >> $BACKENDSC << ENDX
40098 extern BI_init ${bb}_back_initialize;
40099 ENDX
40100         done
40101
40102         cat >> $BACKENDSC << ENDX
40103
40104 BackendInfo slap_binfo[] = {
40105 ENDX
40106
40107         for b in config ${STATIC_BACKENDS}; do
40108                 bb=`echo "${b}" | sed -e 's/back-//'`
40109                 echo "    Add ${bb} ..."
40110                 cat >> $BACKENDSC << ENDX
40111         { "${bb}", ${bb}_back_initialize },
40112 ENDX
40113         done
40114
40115         cat >> $BACKENDSC << ENDX
40116         { NULL, NULL },
40117 };
40118
40119 /* end of generated file */
40120 ENDX
40121 fi
40122 OVERLAYSC="servers/slapd/overlays/statover.c"
40123 echo "Making $OVERLAYSC"
40124 rm -f $OVERLAYSC
40125 cat > $OVERLAYSC << ENDX
40126 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40127  *
40128  * Copyright 1998-2009 The OpenLDAP Foundation.
40129  * All rights reserved.
40130  *
40131  * Redistribution and use in source and binary forms, with or without
40132  * modification, are permitted only as authorized by the OpenLDAP
40133  * Public License.
40134  *
40135  * A copy of this license is available in the file LICENSE in the
40136  * top-level directory of the distribution or, alternatively, at
40137  * <http://www.OpenLDAP.org/license.html>.
40138  */
40139 /* This file is automatically generated by configure; please do not edit. */
40140
40141 #include "portable.h"
40142 #include "slap.h"
40143
40144 ENDX
40145 if test "${STATIC_OVERLAYS}"; then
40146         for o in ${STATIC_OVERLAYS}; do
40147                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40148                 cat >> $OVERLAYSC << ENDX
40149 extern OV_init ${oo}_initialize;
40150 ENDX
40151         done
40152 fi
40153
40154 cat >> $OVERLAYSC << ENDX
40155
40156 OverlayInit slap_oinfo[] = {
40157 ENDX
40158
40159 if test "${STATIC_OVERLAYS}"; then
40160         for o in ${STATIC_OVERLAYS}; do
40161                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40162                 echo "    Add ${oo} ..."
40163                 cat >> $OVERLAYSC << ENDX
40164         { "${oo}", ${oo}_initialize },
40165 ENDX
40166         done
40167 fi
40168
40169         cat >> $OVERLAYSC << ENDX
40170         { NULL, NULL },
40171 };
40172
40173 /* end of generated file */
40174 ENDX
40175
40176 if test "${ol_cv_mkdep}" = no; then
40177         echo '(Do not "make depend"; we do not know how to build dependencies)'
40178 else
40179         echo 'Please run "make depend" to build dependencies'
40180 fi
40181  ;;
40182
40183   esac
40184 done # for ac_tag
40185
40186
40187 { (exit 0); exit 0; }
40188 _ACEOF
40189 chmod +x $CONFIG_STATUS
40190 ac_clean_files=$ac_clean_files_save
40191
40192
40193 # configure is writing to config.log, and then calls config.status.
40194 # config.status does its own redirection, appending to config.log.
40195 # Unfortunately, on DOS this fails, as config.log is still kept open
40196 # by configure, so config.status won't be able to write to it; its
40197 # output is simply discarded.  So we exec the FD to /dev/null,
40198 # effectively closing config.log, so it can be properly (re)opened and
40199 # appended to by config.status.  When coming back to configure, we
40200 # need to make the FD available again.
40201 if test "$no_create" != yes; then
40202   ac_cs_success=:
40203   ac_config_status_args=
40204   test "$silent" = yes &&
40205     ac_config_status_args="$ac_config_status_args --quiet"
40206   exec 5>/dev/null
40207   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40208   exec 5>>config.log
40209   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40210   # would make configure fail if this is the last instruction.
40211   $ac_cs_success || { (exit 1); exit 1; }
40212 fi
40213