]> git.sur5r.net Git - openldap/blob - configure
ITS#6311
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.27 2009/09/30 00:24:39 hyc 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_DEREF
912 BUILD_DYNGROUP
913 BUILD_DYNLIST
914 BUILD_LASTMOD
915 BUILD_MEMBEROF
916 BUILD_PPOLICY
917 BUILD_PROXYCACHE
918 BUILD_REFINT
919 BUILD_RETCODE
920 BUILD_RWM
921 BUILD_SEQMOD
922 BUILD_SSSVLV
923 BUILD_SYNCPROV
924 BUILD_TRANSLUCENT
925 BUILD_UNIQUE
926 BUILD_VALSORT
927 LDAP_LIBS
928 SLAPD_LIBS
929 BDB_LIBS
930 SLAPD_NDB_LIBS
931 SLAPD_NDB_INCS
932 LTHREAD_LIBS
933 LUTIL_LIBS
934 WRAP_LIBS
935 SLAPD_MODULES_CPPFLAGS
936 SLAPD_MODULES_LDFLAGS
937 SLAPD_NO_STATIC
938 SLAPD_STATIC_BACKENDS
939 SLAPD_DYNAMIC_BACKENDS
940 SLAPD_STATIC_OVERLAYS
941 SLAPD_DYNAMIC_OVERLAYS
942 PERL_CPPFLAGS
943 SLAPD_PERL_LDFLAGS
944 MOD_PERL_LDFLAGS
945 KRB4_LIBS
946 KRB5_LIBS
947 SASL_LIBS
948 TLS_LIBS
949 MODULES_LIBS
950 SLAPI_LIBS
951 LIBSLAPI
952 LIBSLAPITOOLS
953 AUTH_LIBS
954 ICU_LIBS
955 SLAPD_SLP_LIBS
956 SLAPD_GMP_LIBS
957 SLAPD_SQL_LDFLAGS
958 SLAPD_SQL_LIBS
959 SLAPD_SQL_INCLUDES
960 LTLIBOBJS'
961 ac_subst_files=''
962       ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CC
966 CFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
970 CPP'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023   # If the previous option needs an argument, assign it.
1024   if test -n "$ac_prev"; then
1025     eval $ac_prev=\$ac_option
1026     ac_prev=
1027     continue
1028   fi
1029
1030   case $ac_option in
1031   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032   *)    ac_optarg=yes ;;
1033   esac
1034
1035   # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037   case $ac_dashdash$ac_option in
1038   --)
1039     ac_dashdash=yes ;;
1040
1041   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042     ac_prev=bindir ;;
1043   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044     bindir=$ac_optarg ;;
1045
1046   -build | --build | --buil | --bui | --bu)
1047     ac_prev=build_alias ;;
1048   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049     build_alias=$ac_optarg ;;
1050
1051   -cache-file | --cache-file | --cache-fil | --cache-fi \
1052   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053     ac_prev=cache_file ;;
1054   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056     cache_file=$ac_optarg ;;
1057
1058   --config-cache | -C)
1059     cache_file=config.cache ;;
1060
1061   -datadir | --datadir | --datadi | --datad)
1062     ac_prev=datadir ;;
1063   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064     datadir=$ac_optarg ;;
1065
1066   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067   | --dataroo | --dataro | --datar)
1068     ac_prev=datarootdir ;;
1069   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071     datarootdir=$ac_optarg ;;
1072
1073   -disable-* | --disable-*)
1074     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080     eval enable_$ac_feature=no ;;
1081
1082   -docdir | --docdir | --docdi | --doc | --do)
1083     ac_prev=docdir ;;
1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085     docdir=$ac_optarg ;;
1086
1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088     ac_prev=dvidir ;;
1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090     dvidir=$ac_optarg ;;
1091
1092   -enable-* | --enable-*)
1093     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099     eval enable_$ac_feature=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245     ac_prev=sbindir ;;
1246   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247   | --sbi=* | --sb=*)
1248     sbindir=$ac_optarg ;;
1249
1250   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252   | --sharedst | --shareds | --shared | --share | --shar \
1253   | --sha | --sh)
1254     ac_prev=sharedstatedir ;;
1255   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258   | --sha=* | --sh=*)
1259     sharedstatedir=$ac_optarg ;;
1260
1261   -site | --site | --sit)
1262     ac_prev=site ;;
1263   -site=* | --site=* | --sit=*)
1264     site=$ac_optarg ;;
1265
1266   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267     ac_prev=srcdir ;;
1268   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269     srcdir=$ac_optarg ;;
1270
1271   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272   | --syscon | --sysco | --sysc | --sys | --sy)
1273     ac_prev=sysconfdir ;;
1274   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276     sysconfdir=$ac_optarg ;;
1277
1278   -target | --target | --targe | --targ | --tar | --ta | --t)
1279     ac_prev=target_alias ;;
1280   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281     target_alias=$ac_optarg ;;
1282
1283   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284     verbose=yes ;;
1285
1286   -version | --version | --versio | --versi | --vers | -V)
1287     ac_init_version=: ;;
1288
1289   -with-* | --with-*)
1290     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid package name: $ac_package" >&2
1294    { (exit 1); exit 1; }; }
1295     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296     eval with_$ac_package=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       { echo "$as_me: error: invalid package name: $ac_package" >&2
1303    { (exit 1); exit 1; }; }
1304     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305     eval with_$ac_package=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327    { (exit 1); exit 1; }; }
1328     ;;
1329
1330   *=*)
1331     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332     # Reject names that are not valid shell variable names.
1333     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335    { (exit 1); exit 1; }; }
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   { echo "$as_me: error: missing argument to $ac_option" >&2
1353    { (exit 1); exit 1; }; }
1354 fi
1355
1356 # Be sure to have absolute directory names.
1357 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358                 datadir sysconfdir sharedstatedir localstatedir includedir \
1359                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360                 libdir localedir mandir
1361 do
1362   eval ac_val=\$$ac_var
1363   case $ac_val in
1364     [\\/$]* | ?:[\\/]* )  continue;;
1365     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366   esac
1367   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368    { (exit 1); exit 1; }; }
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383     If a cross compiler is detected then cross compile mode will be used." >&2
1384   elif test "x$build_alias" != "x$host_alias"; then
1385     cross_compiling=yes
1386   fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398   { echo "$as_me: error: Working directory cannot be determined" >&2
1399    { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401   { echo "$as_me: error: pwd does not report name of working directory" >&2
1402    { (exit 1); exit 1; }; }
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407   ac_srcdir_defaulted=yes
1408   # Try the directory containing this script, then the parent directory.
1409   ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411          X"$0" : 'X\(//\)[^/]' \| \
1412          X"$0" : 'X\(//\)$' \| \
1413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 echo X"$0" |
1415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)[^/].*/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\).*/{
1428             s//\1/
1429             q
1430           }
1431           s/.*/./; q'`
1432   srcdir=$ac_confdir
1433   if test ! -r "$srcdir/$ac_unique_file"; then
1434     srcdir=..
1435   fi
1436 else
1437   ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447    { (exit 1); exit 1; }; }
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures this package to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR           user executables [EPREFIX/bin]
1508   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR       program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1511   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR           object code libraries [EPREFIX/lib]
1514   --includedir=DIR       C header files [PREFIX/include]
1515   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR          info documentation [DATAROOTDIR/info]
1519   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR           man documentation [DATAROOTDIR/man]
1521   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1522   --htmldir=DIR          html documentation [DOCDIR]
1523   --dvidir=DIR           dvi documentation [DOCDIR]
1524   --pdfdir=DIR           pdf documentation [DOCDIR]
1525   --psdir=DIR            ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538   --target=TARGET   configure for building compilers for TARGET [HOST]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-debug          enable debugging no|yes|traditional [yes]
1550   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1551   --enable-syslog         enable syslog support [auto]
1552   --enable-proctitle      enable proctitle support [yes]
1553   --enable-ipv6           enable IPv6 support [auto]
1554   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1555
1556 SLAPD (Standalone LDAP Daemon) Options:
1557   --enable-slapd          enable building slapd [yes]
1558     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1559     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1560     --enable-cleartext    enable cleartext passwords [yes]
1561     --enable-crypt        enable crypt(3) passwords [no]
1562     --enable-lmpasswd     enable LAN Manager passwords [no]
1563     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1564     --enable-modules      enable dynamic module support [no]
1565     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1566     --enable-rlookups     enable reverse lookups of client hostnames [no]
1567     --enable-slapi        enable SLAPI support (experimental) [no]
1568     --enable-slp          enable SLPv2 support [no]
1569     --enable-wrappers     enable tcp wrapper support [no]
1570
1571 SLAPD Backend Options:
1572     --enable-backends     enable all available backends no|yes|mod
1573     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1574     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1575     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1576     --enable-ldap         enable ldap backend no|yes|mod [no]
1577     --enable-meta         enable metadirectory backend no|yes|mod [no]
1578     --enable-monitor      enable monitor backend no|yes|mod [yes]
1579     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1580     --enable-null         enable null backend no|yes|mod [no]
1581     --enable-passwd       enable passwd backend no|yes|mod [no]
1582     --enable-perl         enable perl backend no|yes|mod [no]
1583     --enable-relay        enable relay backend no|yes|mod [yes]
1584     --enable-shell        enable shell backend no|yes|mod [no]
1585     --enable-sock         enable sock backend no|yes|mod [no]
1586     --enable-sql          enable sql backend no|yes|mod [no]
1587
1588 SLAPD Overlay Options:
1589     --enable-overlays     enable all available overlays no|yes|mod
1590     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1591     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1592     --enable-collect      Collect overlay no|yes|mod [no]
1593     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1594     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1595     --enable-deref        Dereference overlay no|yes|mod [no]
1596     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1597     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1598     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1599     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1600     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1601     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1602     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1603     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1604     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1605     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1606     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1607     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1608     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1609     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1610
1611 Library Generation & Linking Options
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-dependency-tracking  speeds up one-time build
1617   --enable-dependency-tracking   do not reject slow dependency extractors
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619
1620 Optional Packages:
1621   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623   --with-subdir=DIR       change default subdirectory used for installs
1624   --with-cyrus-sasl       with Cyrus SASL support [auto]
1625   --with-fetch            with fetch(3) URL support [auto]
1626   --with-threads          with threads [auto]
1627   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1628   --with-yielding-select  with implicitly yielding select [auto]
1629   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632   --with-pic              try to use only PIC/non-PIC objects [default=use
1633                           both]
1634   --with-tags[=TAGS]      include additional configurations [automatic]
1635
1636 See INSTALL file for further details.
1637
1638 Some influential environment variables:
1639   CC          C compiler command
1640   CFLAGS      C compiler flags
1641   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1642               nonstandard directory <lib dir>
1643   LIBS        libraries to pass to the linker, e.g. -l<library>
1644   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645               you have headers in a nonstandard directory <include dir>
1646   CPP         C preprocessor
1647
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1650
1651 _ACEOF
1652 ac_status=$?
1653 fi
1654
1655 if test "$ac_init_help" = "recursive"; then
1656   # If there are subdirs, report their specific --help.
1657   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658     test -d "$ac_dir" || continue
1659     ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665   # A ".." for each directory in $ac_dir_suffix.
1666   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667   case $ac_top_builddir_sub in
1668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670   esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678   .)  # We are building in place.
1679     ac_srcdir=.
1680     ac_top_srcdir=$ac_top_builddir_sub
1681     ac_abs_top_srcdir=$ac_pwd ;;
1682   [\\/]* | ?:[\\/]* )  # Absolute name.
1683     ac_srcdir=$srcdir$ac_dir_suffix;
1684     ac_top_srcdir=$srcdir
1685     ac_abs_top_srcdir=$srcdir ;;
1686   *) # Relative name.
1687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_build_prefix$srcdir
1689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693     cd "$ac_dir" || { ac_status=$?; continue; }
1694     # Check for guested configure.
1695     if test -f "$ac_srcdir/configure.gnu"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698     elif test -f "$ac_srcdir/configure"; then
1699       echo &&
1700       $SHELL "$ac_srcdir/configure" --help=recursive
1701     else
1702       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703     fi || ac_status=$?
1704     cd "$ac_pwd" || { ac_status=$?; break; }
1705   done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710   cat <<\_ACEOF
1711 configure
1712 generated by GNU Autoconf 2.61
1713
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718
1719 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1721 _ACEOF
1722   exit
1723 fi
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1727
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61.  Invocation command line was
1730
1731   $ $0 $@
1732
1733 _ACEOF
1734 exec 5>>config.log
1735 {
1736 cat <<_ASUNAME
1737 ## --------- ##
1738 ## Platform. ##
1739 ## --------- ##
1740
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758 _ASUNAME
1759
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   echo "PATH: $as_dir"
1766 done
1767 IFS=$as_save_IFS
1768
1769 } >&5
1770
1771 cat >&5 <<_ACEOF
1772
1773
1774 ## ----------- ##
1775 ## Core tests. ##
1776 ## ----------- ##
1777
1778 _ACEOF
1779
1780
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_configure_args=
1787 ac_configure_args0=
1788 ac_configure_args1=
1789 ac_must_keep_next=false
1790 for ac_pass in 1 2
1791 do
1792   for ac_arg
1793   do
1794     case $ac_arg in
1795     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797     | -silent | --silent | --silen | --sile | --sil)
1798       continue ;;
1799     *\'*)
1800       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801     esac
1802     case $ac_pass in
1803     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804     2)
1805       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806       if test $ac_must_keep_next = true; then
1807         ac_must_keep_next=false # Got value, back to normal.
1808       else
1809         case $ac_arg in
1810           *=* | --config-cache | -C | -disable-* | --disable-* \
1811           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813           | -with-* | --with-* | -without-* | --without-* | --x)
1814             case "$ac_configure_args0 " in
1815               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816             esac
1817             ;;
1818           -* ) ac_must_keep_next=true ;;
1819         esac
1820       fi
1821       ac_configure_args="$ac_configure_args '$ac_arg'"
1822       ;;
1823     esac
1824   done
1825 done
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log.  We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835   # Save into config.log some information that might help in debugging.
1836   {
1837     echo
1838
1839     cat <<\_ASBOX
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1843 _ASBOX
1844     echo
1845     # The following way of writing the cache mishandles newlines in values,
1846 (
1847   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848     eval ac_val=\$$ac_var
1849     case $ac_val in #(
1850     *${as_nl}*)
1851       case $ac_var in #(
1852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1854       esac
1855       case $ac_var in #(
1856       _ | IFS | as_nl) ;; #(
1857       *) $as_unset $ac_var ;;
1858       esac ;;
1859     esac
1860   done
1861   (set) 2>&1 |
1862     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863     *${as_nl}ac_space=\ *)
1864       sed -n \
1865         "s/'\''/'\''\\\\'\'''\''/g;
1866           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867       ;; #(
1868     *)
1869       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870       ;;
1871     esac |
1872     sort
1873 )
1874     echo
1875
1876     cat <<\_ASBOX
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1880 _ASBOX
1881     echo
1882     for ac_var in $ac_subst_vars
1883     do
1884       eval ac_val=\$$ac_var
1885       case $ac_val in
1886       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887       esac
1888       echo "$ac_var='\''$ac_val'\''"
1889     done | sort
1890     echo
1891
1892     if test -n "$ac_subst_files"; then
1893       cat <<\_ASBOX
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1897 _ASBOX
1898       echo
1899       for ac_var in $ac_subst_files
1900       do
1901         eval ac_val=\$$ac_var
1902         case $ac_val in
1903         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904         esac
1905         echo "$ac_var='\''$ac_val'\''"
1906       done | sort
1907       echo
1908     fi
1909
1910     if test -s confdefs.h; then
1911       cat <<\_ASBOX
1912 ## ----------- ##
1913 ## confdefs.h. ##
1914 ## ----------- ##
1915 _ASBOX
1916       echo
1917       cat confdefs.h
1918       echo
1919     fi
1920     test "$ac_signal" != 0 &&
1921       echo "$as_me: caught signal $ac_signal"
1922     echo "$as_me: exit $exit_status"
1923   } >&5
1924   rm -f core *.core core.conftest.* &&
1925     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926     exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 # Predefined preprocessor variables.
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945 _ACEOF
1946
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 _ACEOF
1961
1962
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966   set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1969 else
1970   set x "$ac_default_prefix/share/config.site" \
1971         "$ac_default_prefix/etc/config.site"
1972 fi
1973 shift
1974 for ac_site_file
1975 do
1976   if test -r "$ac_site_file"; then
1977     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979     sed 's/^/| /' "$ac_site_file" >&5
1980     . "$ac_site_file"
1981   fi
1982 done
1983
1984
1985 # Check that the precious variables saved in the cache have kept the same
1986 # value.
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990   eval ac_new_set=\$ac_env_${ac_var}_set
1991   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992   eval ac_new_val=\$ac_env_${ac_var}_value
1993   case $ac_old_set,$ac_new_set in
1994     set,)
1995       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997       ac_cache_corrupted=: ;;
1998     ,set)
1999       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001       ac_cache_corrupted=: ;;
2002     ,);;
2003     *)
2004       if test "x$ac_old_val" != "x$ac_new_val"; then
2005         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2008 echo "$as_me:   former value:  $ac_old_val" >&2;}
2009         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2010 echo "$as_me:   current value: $ac_new_val" >&2;}
2011         ac_cache_corrupted=:
2012       fi;;
2013   esac
2014   # Pass precious variables to config.status.
2015   if test "$ac_new_set" = set; then
2016     case $ac_new_val in
2017     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     *) ac_arg=$ac_var=$ac_new_val ;;
2019     esac
2020     case " $ac_configure_args " in
2021       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2022       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023     esac
2024   fi
2025 done
2026 if $ac_cache_corrupted; then
2027   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2081
2082
2083 ac_aux_dir=
2084 for ac_dir in build "$srcdir"/build; do
2085   if test -f "$ac_dir/install-sh"; then
2086     ac_aux_dir=$ac_dir
2087     ac_install_sh="$ac_aux_dir/install-sh -c"
2088     break
2089   elif test -f "$ac_dir/install.sh"; then
2090     ac_aux_dir=$ac_dir
2091     ac_install_sh="$ac_aux_dir/install.sh -c"
2092     break
2093   elif test -f "$ac_dir/shtool"; then
2094     ac_aux_dir=$ac_dir
2095     ac_install_sh="$ac_aux_dir/shtool install -c"
2096     break
2097   fi
2098 done
2099 if test -z "$ac_aux_dir"; then
2100   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2112
2113
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122         ac_cv_shtool="$ac_aux_dir/shtool"
2123 else
2124         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128
2129 SHTOOL="$ac_cv_shtool"
2130
2131 TB="" TN=""
2132 if test -t 1; then
2133         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2135 fi
2136
2137 OPENLDAP_CVS=""
2138 if test -d $ac_aux_dir/CVS; then
2139         OPENLDAP_CVS="(from CVS sources) "
2140 fi
2141
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2143
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148    { (exit 1); exit 1; }; }
2149
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161    { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166
2167 fi
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2171 *-*-*) ;;
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&2;}
2174    { (exit 1); exit 1; }; };;
2175 esac
2176 build=$ac_cv_build
2177 ac_save_IFS=$IFS; IFS='-'
2178 set x $ac_cv_build
2179 shift
2180 build_cpu=$1
2181 build_vendor=$2
2182 shift; shift
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2185 build_os=$*
2186 IFS=$ac_save_IFS
2187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188
2189
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test "x$host_alias" = x; then
2196   ac_cv_host=$ac_cv_build
2197 else
2198   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2203
2204 fi
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 case $ac_cv_host in
2208 *-*-*) ;;
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211    { (exit 1); exit 1; }; };;
2212 esac
2213 host=$ac_cv_host
2214 ac_save_IFS=$IFS; IFS='-'
2215 set x $ac_cv_host
2216 shift
2217 host_cpu=$1
2218 host_vendor=$2
2219 shift; shift
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2222 host_os=$*
2223 IFS=$ac_save_IFS
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225
2226
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test "x$target_alias" = x; then
2233   ac_cv_target=$ac_cv_host
2234 else
2235   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 fi
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2245 *-*-*) ;;
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248    { (exit 1); exit 1; }; };;
2249 esac
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_target
2253 shift
2254 target_cpu=$1
2255 target_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 target_os=$*
2260 IFS=$ac_save_IFS
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262
2263
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267   test "$program_prefix$program_suffix$program_transform_name" = \
2268     NONENONEs,x,x, &&
2269   program_prefix=${target_alias}-
2270
2271 am__api_version="1.9"
2272 # Find a good install program.  We prefer a C program (faster),
2273 # so one script is as good as another.  But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2278 # AIX /bin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # OS/2's system install, which has a completely different semantic
2284 # ./install, which can be erroneously created by make from ./install.sh.
2285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   # Account for people who put trailing slashes in PATH elements.
2297 case $as_dir/ in
2298   ./ | .// | /cC/* | \
2299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2301   /usr/ucb/* ) ;;
2302   *)
2303     # OSF1 and SCO ODT 3.0 have their own names for install.
2304     # Don't use installbsd from OSF since it installs stuff as root
2305     # by default.
2306     for ac_prog in ginstall scoinst install; do
2307       for ac_exec_ext in '' $ac_executable_extensions; do
2308         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309           if test $ac_prog = install &&
2310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311             # AIX install.  It has an incompatible calling convention.
2312             :
2313           elif test $ac_prog = install &&
2314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315             # program-specific install script used by HP pwplus--don't use.
2316             :
2317           else
2318             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2319             break 3
2320           fi
2321         fi
2322       done
2323     done
2324     ;;
2325 esac
2326 done
2327 IFS=$as_save_IFS
2328
2329
2330 fi
2331   if test "${ac_cv_path_install+set}" = set; then
2332     INSTALL=$ac_cv_path_install
2333   else
2334     # As a last resort, use the slow shell script.  Don't cache a
2335     # value for INSTALL within a source directory, because that will
2336     # break other packages using the cache if that directory is
2337     # removed, or if the value is a relative name.
2338     INSTALL=$ac_install_sh
2339   fi
2340 fi
2341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2342 echo "${ECHO_T}$INSTALL" >&6; }
2343
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2354 # Just in case
2355 sleep 1
2356 echo timestamp > conftest.file
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments.  Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2361 # directory).
2362 if (
2363    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2364    if test "$*" = "X"; then
2365       # -L didn't work.
2366       set X `ls -t $srcdir/configure conftest.file`
2367    fi
2368    rm -f conftest.file
2369    if test "$*" != "X $srcdir/configure conftest.file" \
2370       && test "$*" != "X conftest.file $srcdir/configure"; then
2371
2372       # If neither matched, then we have a broken ls.  This can happen
2373       # if, for instance, CONFIG_SHELL is bash and it inherits a
2374       # broken ls alias from the environment.  This has actually
2375       # happened.  Such a system could not be considered "sane".
2376       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2377 alias in your environment" >&5
2378 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2379 alias in your environment" >&2;}
2380    { (exit 1); exit 1; }; }
2381    fi
2382
2383    test "$2" = conftest.file
2384    )
2385 then
2386    # Ok.
2387    :
2388 else
2389    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2390 Check your system clock" >&5
2391 echo "$as_me: error: newly created file is older than distributed files!
2392 Check your system clock" >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395 { echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6; }
2397 test "$program_prefix" != NONE &&
2398   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $.  echo might interpret backslashes.
2403 # By default was `s,x,x', remove it if useless.
2404 cat <<\_ACEOF >conftest.sed
2405 s/[\\$]/&&/g;s/;s,x,x,$//
2406 _ACEOF
2407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2408 rm -f conftest.sed
2409
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2412
2413 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --run true"; then
2416   am_missing_run="$MISSING --run "
2417 else
2418   am_missing_run=
2419   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2420 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2421 fi
2422
2423 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2424   # We used to keeping the `.' as first argument, in order to
2425   # allow $(mkdir_p) to be used without argument.  As in
2426   #   $(mkdir_p) $(somedir)
2427   # where $(somedir) is conditionally defined.  However this is wrong
2428   # for two reasons:
2429   #  1. if the package is installed by a user who cannot write `.'
2430   #     make install will fail,
2431   #  2. the above comment should most certainly read
2432   #     $(mkdir_p) $(DESTDIR)$(somedir)
2433   #     so it does not work when $(somedir) is undefined and
2434   #     $(DESTDIR) is not.
2435   #  To support the latter case, we have to write
2436   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2437   #  so the `.' trick is pointless.
2438   mkdir_p='mkdir -p --'
2439 else
2440   # On NextStep and OpenStep, the `mkdir' command does not
2441   # recognize any option.  It will interpret all options as
2442   # directories to create, and then abort because `.' already
2443   # exists.
2444   for d in ./-p ./--version;
2445   do
2446     test -d $d && rmdir $d
2447   done
2448   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2449   if test -f "$ac_aux_dir/mkinstalldirs"; then
2450     mkdir_p='$(mkinstalldirs)'
2451   else
2452     mkdir_p='$(install_sh) -d'
2453   fi
2454 fi
2455
2456 for ac_prog in gawk mawk nawk awk
2457 do
2458   # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_AWK+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$AWK"; then
2466   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_AWK="$ac_prog"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 AWK=$ac_cv_prog_AWK
2486 if test -n "$AWK"; then
2487   { echo "$as_me:$LINENO: result: $AWK" >&5
2488 echo "${ECHO_T}$AWK" >&6; }
2489 else
2490   { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495   test -n "$AWK" && break
2496 done
2497
2498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   cat >conftest.make <<\_ACEOF
2505 SHELL = /bin/sh
2506 all:
2507         @echo '@@@%%%=$(MAKE)=@@@%%%'
2508 _ACEOF
2509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2511   *@@@%%%=?*=@@@%%%*)
2512     eval ac_cv_prog_make_${ac_make}_set=yes;;
2513   *)
2514     eval ac_cv_prog_make_${ac_make}_set=no;;
2515 esac
2516 rm -f conftest.make
2517 fi
2518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2519   { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2521   SET_MAKE=
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525   SET_MAKE="MAKE=${MAKE-make}"
2526 fi
2527
2528 rm -rf .tst 2>/dev/null
2529 mkdir .tst 2>/dev/null
2530 if test -d .tst; then
2531   am__leading_dot=.
2532 else
2533   am__leading_dot=_
2534 fi
2535 rmdir .tst 2>/dev/null
2536
2537 # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539    test -f $srcdir/config.status; then
2540   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542    { (exit 1); exit 1; }; }
2543 fi
2544
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547   if (cygpath --version) >/dev/null 2>/dev/null; then
2548     CYGPATH_W='cygpath -w'
2549   else
2550     CYGPATH_W=echo
2551   fi
2552 fi
2553
2554
2555 # Define the identity of the package.
2556  PACKAGE=$OL_PACKAGE
2557  VERSION=$OL_VERSION
2558
2559
2560 # Some tools Automake needs.
2561
2562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2563
2564
2565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2566
2567
2568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2569
2570
2571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2572
2573
2574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2575
2576 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2577
2578 # Installed binaries are usually stripped using `strip' when the user
2579 # run `make install-strip'.  However `strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the `STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583   if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_STRIP+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$STRIP"; then
2592   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613   { echo "$as_me:$LINENO: result: $STRIP" >&5
2614 echo "${ECHO_T}$STRIP" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_STRIP"; then
2623   ac_ct_STRIP=$STRIP
2624   # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_STRIP"; then
2632   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_ac_ct_STRIP="strip"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2654 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_STRIP" = x; then
2661     STRIP=":"
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { echo "$as_me:$LINENO: 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." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet.  If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673     STRIP=$ac_ct_STRIP
2674   fi
2675 else
2676   STRIP="$ac_cv_prog_STRIP"
2677 fi
2678
2679 fi
2680 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2681
2682 # We need awk for the "check" target.  The system "awk" is bad on
2683 # some platforms.
2684 # Always define AMTAR for backward compatibility.
2685
2686 AMTAR=${AMTAR-"${am_missing_run}tar"}
2687
2688 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2689
2690
2691
2692
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define OPENLDAP_PACKAGE "$PACKAGE"
2696 _ACEOF
2697
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define OPENLDAP_VERSION "$VERSION"
2701 _ACEOF
2702
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define LDAP_VENDOR_VERSION $OL_API_INC
2707 _ACEOF
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2712 _ACEOF
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2717 _ACEOF
2718
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2722 _ACEOF
2723
2724
2725 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2726
2727 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2728
2729 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2730
2731
2732
2733
2734
2735
2736
2737 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2738
2739 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2740
2741 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2742
2743
2744 { echo "$as_me:$LINENO: checking configure arguments" >&5
2745 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2746
2747
2748 top_builddir=`pwd`
2749
2750 ldap_subdir="/openldap"
2751
2752
2753 # Check whether --with-subdir was given.
2754 if test "${with_subdir+set}" = set; then
2755   withval=$with_subdir; case "$withval" in
2756         no) ldap_subdir=""
2757                 ;;
2758         yes)
2759                 ;;
2760         /*|\\*)
2761                 ldap_subdir="$withval"
2762                 ;;
2763         *)
2764                 ldap_subdir="/$withval"
2765                 ;;
2766 esac
2767
2768 fi
2769
2770
2771 # OpenLDAP --enable-debug
2772
2773         # Check whether --enable-debug was given.
2774 if test "${enable_debug+set}" = set; then
2775   enableval=$enable_debug;
2776         ol_arg=invalid
2777         for ol_val in no yes traditional ; do
2778                 if test "$enableval" = "$ol_val" ; then
2779                         ol_arg="$ol_val"
2780                 fi
2781         done
2782         if test "$ol_arg" = "invalid" ; then
2783                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2785    { (exit 1); exit 1; }; }
2786         fi
2787         ol_enable_debug="$ol_arg"
2788
2789 else
2790         ol_enable_debug=yes
2791 fi
2792
2793 # end --enable-debug
2794 # OpenLDAP --enable-dynamic
2795
2796         # Check whether --enable-dynamic was given.
2797 if test "${enable_dynamic+set}" = set; then
2798   enableval=$enable_dynamic;
2799         ol_arg=invalid
2800         for ol_val in auto yes no ; do
2801                 if test "$enableval" = "$ol_val" ; then
2802                         ol_arg="$ol_val"
2803                 fi
2804         done
2805         if test "$ol_arg" = "invalid" ; then
2806                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2807 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2808    { (exit 1); exit 1; }; }
2809         fi
2810         ol_enable_dynamic="$ol_arg"
2811
2812 else
2813         ol_enable_dynamic=no
2814 fi
2815
2816 # end --enable-dynamic
2817 # OpenLDAP --enable-syslog
2818
2819         # Check whether --enable-syslog was given.
2820 if test "${enable_syslog+set}" = set; then
2821   enableval=$enable_syslog;
2822         ol_arg=invalid
2823         for ol_val in auto yes no ; do
2824                 if test "$enableval" = "$ol_val" ; then
2825                         ol_arg="$ol_val"
2826                 fi
2827         done
2828         if test "$ol_arg" = "invalid" ; then
2829                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2831    { (exit 1); exit 1; }; }
2832         fi
2833         ol_enable_syslog="$ol_arg"
2834
2835 else
2836         ol_enable_syslog=auto
2837 fi
2838
2839 # end --enable-syslog
2840 # OpenLDAP --enable-proctitle
2841
2842         # Check whether --enable-proctitle was given.
2843 if test "${enable_proctitle+set}" = set; then
2844   enableval=$enable_proctitle;
2845         ol_arg=invalid
2846         for ol_val in auto yes no ; do
2847                 if test "$enableval" = "$ol_val" ; then
2848                         ol_arg="$ol_val"
2849                 fi
2850         done
2851         if test "$ol_arg" = "invalid" ; then
2852                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2854    { (exit 1); exit 1; }; }
2855         fi
2856         ol_enable_proctitle="$ol_arg"
2857
2858 else
2859         ol_enable_proctitle=yes
2860 fi
2861
2862 # end --enable-proctitle
2863 ol_enable_referrals=${ol_enable_referrals-no}
2864 # OpenLDAP --enable-ipv6
2865
2866         # Check whether --enable-ipv6 was given.
2867 if test "${enable_ipv6+set}" = set; then
2868   enableval=$enable_ipv6;
2869         ol_arg=invalid
2870         for ol_val in auto yes no ; do
2871                 if test "$enableval" = "$ol_val" ; then
2872                         ol_arg="$ol_val"
2873                 fi
2874         done
2875         if test "$ol_arg" = "invalid" ; then
2876                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2878    { (exit 1); exit 1; }; }
2879         fi
2880         ol_enable_ipv6="$ol_arg"
2881
2882 else
2883         ol_enable_ipv6=auto
2884 fi
2885
2886 # end --enable-ipv6
2887 # OpenLDAP --enable-local
2888
2889         # Check whether --enable-local was given.
2890 if test "${enable_local+set}" = set; then
2891   enableval=$enable_local;
2892         ol_arg=invalid
2893         for ol_val in auto yes no ; do
2894                 if test "$enableval" = "$ol_val" ; then
2895                         ol_arg="$ol_val"
2896                 fi
2897         done
2898         if test "$ol_arg" = "invalid" ; then
2899                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2901    { (exit 1); exit 1; }; }
2902         fi
2903         ol_enable_local="$ol_arg"
2904
2905 else
2906         ol_enable_local=auto
2907 fi
2908
2909 # end --enable-local
2910
2911 # OpenLDAP --with-cyrus_sasl
2912
2913 # Check whether --with-cyrus_sasl was given.
2914 if test "${with_cyrus_sasl+set}" = set; then
2915   withval=$with_cyrus_sasl;
2916         ol_arg=invalid
2917         for ol_val in auto yes no  ; do
2918                 if test "$withval" = "$ol_val" ; then
2919                         ol_arg="$ol_val"
2920                 fi
2921         done
2922         if test "$ol_arg" = "invalid" ; then
2923                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2924 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2925    { (exit 1); exit 1; }; }
2926         fi
2927         ol_with_cyrus_sasl="$ol_arg"
2928
2929 else
2930         ol_with_cyrus_sasl="auto"
2931 fi
2932 # end --with-cyrus_sasl
2933
2934 # OpenLDAP --with-fetch
2935
2936 # Check whether --with-fetch was given.
2937 if test "${with_fetch+set}" = set; then
2938   withval=$with_fetch;
2939         ol_arg=invalid
2940         for ol_val in auto yes no  ; do
2941                 if test "$withval" = "$ol_val" ; then
2942                         ol_arg="$ol_val"
2943                 fi
2944         done
2945         if test "$ol_arg" = "invalid" ; then
2946                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2947 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2948    { (exit 1); exit 1; }; }
2949         fi
2950         ol_with_fetch="$ol_arg"
2951
2952 else
2953         ol_with_fetch="auto"
2954 fi
2955 # end --with-fetch
2956
2957 # OpenLDAP --with-threads
2958
2959 # Check whether --with-threads was given.
2960 if test "${with_threads+set}" = set; then
2961   withval=$with_threads;
2962         ol_arg=invalid
2963         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2964                 if test "$withval" = "$ol_val" ; then
2965                         ol_arg="$ol_val"
2966                 fi
2967         done
2968         if test "$ol_arg" = "invalid" ; then
2969                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2970 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2971    { (exit 1); exit 1; }; }
2972         fi
2973         ol_with_threads="$ol_arg"
2974
2975 else
2976         ol_with_threads="auto"
2977 fi
2978 # end --with-threads
2979
2980 # OpenLDAP --with-tls
2981
2982 # Check whether --with-tls was given.
2983 if test "${with_tls+set}" = set; then
2984   withval=$with_tls;
2985         ol_arg=invalid
2986         for ol_val in auto openssl gnutls yes no  ; do
2987                 if test "$withval" = "$ol_val" ; then
2988                         ol_arg="$ol_val"
2989                 fi
2990         done
2991         if test "$ol_arg" = "invalid" ; then
2992                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2993 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2994    { (exit 1); exit 1; }; }
2995         fi
2996         ol_with_tls="$ol_arg"
2997
2998 else
2999         ol_with_tls="auto"
3000 fi
3001 # end --with-tls
3002
3003 # OpenLDAP --with-yielding_select
3004
3005 # Check whether --with-yielding_select was given.
3006 if test "${with_yielding_select+set}" = set; then
3007   withval=$with_yielding_select;
3008         ol_arg=invalid
3009         for ol_val in auto yes no manual  ; do
3010                 if test "$withval" = "$ol_val" ; then
3011                         ol_arg="$ol_val"
3012                 fi
3013         done
3014         if test "$ol_arg" = "invalid" ; then
3015                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3016 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3017    { (exit 1); exit 1; }; }
3018         fi
3019         ol_with_yielding_select="$ol_arg"
3020
3021 else
3022         ol_with_yielding_select="auto"
3023 fi
3024 # end --with-yielding_select
3025
3026 # OpenLDAP --with-mp
3027
3028 # Check whether --with-mp was given.
3029 if test "${with_mp+set}" = set; then
3030   withval=$with_mp;
3031         ol_arg=invalid
3032         for ol_val in auto longlong long bignum gmp yes no ; do
3033                 if test "$withval" = "$ol_val" ; then
3034                         ol_arg="$ol_val"
3035                 fi
3036         done
3037         if test "$ol_arg" = "invalid" ; then
3038                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3039 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3040    { (exit 1); exit 1; }; }
3041         fi
3042         ol_with_mp="$ol_arg"
3043
3044 else
3045         ol_with_mp="auto"
3046 fi
3047 # end --with-mp
3048
3049 # OpenLDAP --with-odbc
3050
3051 # Check whether --with-odbc was given.
3052 if test "${with_odbc+set}" = set; then
3053   withval=$with_odbc;
3054         ol_arg=invalid
3055         for ol_val in auto iodbc unixodbc odbc32  ; do
3056                 if test "$withval" = "$ol_val" ; then
3057                         ol_arg="$ol_val"
3058                 fi
3059         done
3060         if test "$ol_arg" = "invalid" ; then
3061                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3062 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3063    { (exit 1); exit 1; }; }
3064         fi
3065         ol_with_odbc="$ol_arg"
3066
3067 else
3068         ol_with_odbc="auto"
3069 fi
3070 # end --with-odbc
3071
3072
3073
3074 # Check whether --enable-xxslapdoptions was given.
3075 if test "${enable_xxslapdoptions+set}" = set; then
3076   enableval=$enable_xxslapdoptions;
3077 fi
3078
3079 # OpenLDAP --enable-slapd
3080
3081         # Check whether --enable-slapd was given.
3082 if test "${enable_slapd+set}" = set; then
3083   enableval=$enable_slapd;
3084         ol_arg=invalid
3085         for ol_val in auto yes no ; do
3086                 if test "$enableval" = "$ol_val" ; then
3087                         ol_arg="$ol_val"
3088                 fi
3089         done
3090         if test "$ol_arg" = "invalid" ; then
3091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3093    { (exit 1); exit 1; }; }
3094         fi
3095         ol_enable_slapd="$ol_arg"
3096
3097 else
3098         ol_enable_slapd=yes
3099 fi
3100
3101 # end --enable-slapd
3102 # OpenLDAP --enable-dynacl
3103
3104         # Check whether --enable-dynacl was given.
3105 if test "${enable_dynacl+set}" = set; then
3106   enableval=$enable_dynacl;
3107         ol_arg=invalid
3108         for ol_val in auto yes no ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_dynacl="$ol_arg"
3119
3120 else
3121         ol_enable_dynacl=no
3122 fi
3123
3124 # end --enable-dynacl
3125 # OpenLDAP --enable-aci
3126
3127         # Check whether --enable-aci was given.
3128 if test "${enable_aci+set}" = set; then
3129   enableval=$enable_aci;
3130         ol_arg=invalid
3131         for ol_val in no yes mod ; do
3132                 if test "$enableval" = "$ol_val" ; then
3133                         ol_arg="$ol_val"
3134                 fi
3135         done
3136         if test "$ol_arg" = "invalid" ; then
3137                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3139    { (exit 1); exit 1; }; }
3140         fi
3141         ol_enable_aci="$ol_arg"
3142
3143 else
3144         ol_enable_aci=no
3145 fi
3146
3147 # end --enable-aci
3148 # OpenLDAP --enable-cleartext
3149
3150         # Check whether --enable-cleartext was given.
3151 if test "${enable_cleartext+set}" = set; then
3152   enableval=$enable_cleartext;
3153         ol_arg=invalid
3154         for ol_val in auto yes no ; do
3155                 if test "$enableval" = "$ol_val" ; then
3156                         ol_arg="$ol_val"
3157                 fi
3158         done
3159         if test "$ol_arg" = "invalid" ; then
3160                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3161 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3162    { (exit 1); exit 1; }; }
3163         fi
3164         ol_enable_cleartext="$ol_arg"
3165
3166 else
3167         ol_enable_cleartext=yes
3168 fi
3169
3170 # end --enable-cleartext
3171 # OpenLDAP --enable-crypt
3172
3173         # Check whether --enable-crypt was given.
3174 if test "${enable_crypt+set}" = set; then
3175   enableval=$enable_crypt;
3176         ol_arg=invalid
3177         for ol_val in auto yes no ; do
3178                 if test "$enableval" = "$ol_val" ; then
3179                         ol_arg="$ol_val"
3180                 fi
3181         done
3182         if test "$ol_arg" = "invalid" ; then
3183                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3185    { (exit 1); exit 1; }; }
3186         fi
3187         ol_enable_crypt="$ol_arg"
3188
3189 else
3190         ol_enable_crypt=no
3191 fi
3192
3193 # end --enable-crypt
3194 # OpenLDAP --enable-lmpasswd
3195
3196         # Check whether --enable-lmpasswd was given.
3197 if test "${enable_lmpasswd+set}" = set; then
3198   enableval=$enable_lmpasswd;
3199         ol_arg=invalid
3200         for ol_val in auto yes no ; do
3201                 if test "$enableval" = "$ol_val" ; then
3202                         ol_arg="$ol_val"
3203                 fi
3204         done
3205         if test "$ol_arg" = "invalid" ; then
3206                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3207 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3208    { (exit 1); exit 1; }; }
3209         fi
3210         ol_enable_lmpasswd="$ol_arg"
3211
3212 else
3213         ol_enable_lmpasswd=no
3214 fi
3215
3216 # end --enable-lmpasswd
3217 # OpenLDAP --enable-spasswd
3218
3219         # Check whether --enable-spasswd was given.
3220 if test "${enable_spasswd+set}" = set; then
3221   enableval=$enable_spasswd;
3222         ol_arg=invalid
3223         for ol_val in auto yes no ; do
3224                 if test "$enableval" = "$ol_val" ; then
3225                         ol_arg="$ol_val"
3226                 fi
3227         done
3228         if test "$ol_arg" = "invalid" ; then
3229                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3231    { (exit 1); exit 1; }; }
3232         fi
3233         ol_enable_spasswd="$ol_arg"
3234
3235 else
3236         ol_enable_spasswd=no
3237 fi
3238
3239 # end --enable-spasswd
3240 # OpenLDAP --enable-modules
3241
3242         # Check whether --enable-modules was given.
3243 if test "${enable_modules+set}" = set; then
3244   enableval=$enable_modules;
3245         ol_arg=invalid
3246         for ol_val in auto yes no ; do
3247                 if test "$enableval" = "$ol_val" ; then
3248                         ol_arg="$ol_val"
3249                 fi
3250         done
3251         if test "$ol_arg" = "invalid" ; then
3252                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3253 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3254    { (exit 1); exit 1; }; }
3255         fi
3256         ol_enable_modules="$ol_arg"
3257
3258 else
3259         ol_enable_modules=no
3260 fi
3261
3262 # end --enable-modules
3263 # OpenLDAP --enable-rewrite
3264
3265         # Check whether --enable-rewrite was given.
3266 if test "${enable_rewrite+set}" = set; then
3267   enableval=$enable_rewrite;
3268         ol_arg=invalid
3269         for ol_val in auto yes no ; do
3270                 if test "$enableval" = "$ol_val" ; then
3271                         ol_arg="$ol_val"
3272                 fi
3273         done
3274         if test "$ol_arg" = "invalid" ; then
3275                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3277    { (exit 1); exit 1; }; }
3278         fi
3279         ol_enable_rewrite="$ol_arg"
3280
3281 else
3282         ol_enable_rewrite=auto
3283 fi
3284
3285 # end --enable-rewrite
3286 # OpenLDAP --enable-rlookups
3287
3288         # Check whether --enable-rlookups was given.
3289 if test "${enable_rlookups+set}" = set; then
3290   enableval=$enable_rlookups;
3291         ol_arg=invalid
3292         for ol_val in auto yes no ; do
3293                 if test "$enableval" = "$ol_val" ; then
3294                         ol_arg="$ol_val"
3295                 fi
3296         done
3297         if test "$ol_arg" = "invalid" ; then
3298                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3300    { (exit 1); exit 1; }; }
3301         fi
3302         ol_enable_rlookups="$ol_arg"
3303
3304 else
3305         ol_enable_rlookups=no
3306 fi
3307
3308 # end --enable-rlookups
3309 # OpenLDAP --enable-slapi
3310
3311         # Check whether --enable-slapi was given.
3312 if test "${enable_slapi+set}" = set; then
3313   enableval=$enable_slapi;
3314         ol_arg=invalid
3315         for ol_val in auto yes no ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_slapi="$ol_arg"
3326
3327 else
3328         ol_enable_slapi=no
3329 fi
3330
3331 # end --enable-slapi
3332 # OpenLDAP --enable-slp
3333
3334         # Check whether --enable-slp was given.
3335 if test "${enable_slp+set}" = set; then
3336   enableval=$enable_slp;
3337         ol_arg=invalid
3338         for ol_val in auto yes no ; do
3339                 if test "$enableval" = "$ol_val" ; then
3340                         ol_arg="$ol_val"
3341                 fi
3342         done
3343         if test "$ol_arg" = "invalid" ; then
3344                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3346    { (exit 1); exit 1; }; }
3347         fi
3348         ol_enable_slp="$ol_arg"
3349
3350 else
3351         ol_enable_slp=no
3352 fi
3353
3354 # end --enable-slp
3355 # OpenLDAP --enable-wrappers
3356
3357         # Check whether --enable-wrappers was given.
3358 if test "${enable_wrappers+set}" = set; then
3359   enableval=$enable_wrappers;
3360         ol_arg=invalid
3361         for ol_val in auto yes no ; do
3362                 if test "$enableval" = "$ol_val" ; then
3363                         ol_arg="$ol_val"
3364                 fi
3365         done
3366         if test "$ol_arg" = "invalid" ; then
3367                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3369    { (exit 1); exit 1; }; }
3370         fi
3371         ol_enable_wrappers="$ol_arg"
3372
3373 else
3374         ol_enable_wrappers=no
3375 fi
3376
3377 # end --enable-wrappers
3378
3379 Backends="bdb \
3380         dnssrv \
3381         hdb \
3382         ldap \
3383         meta \
3384         monitor \
3385         ndb \
3386         null \
3387         passwd \
3388         perl \
3389         relay \
3390         shell \
3391         sock \
3392         sql"
3393
3394 # Check whether --enable-xxslapbackends was given.
3395 if test "${enable_xxslapbackends+set}" = set; then
3396   enableval=$enable_xxslapbackends;
3397 fi
3398
3399
3400 # OpenLDAP --enable-backends
3401
3402         # Check whether --enable-backends was given.
3403 if test "${enable_backends+set}" = set; then
3404   enableval=$enable_backends;
3405         ol_arg=invalid
3406         for ol_val in no yes mod ; do
3407                 if test "$enableval" = "$ol_val" ; then
3408                         ol_arg="$ol_val"
3409                 fi
3410         done
3411         if test "$ol_arg" = "invalid" ; then
3412                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3413 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3414    { (exit 1); exit 1; }; }
3415         fi
3416         ol_enable_backends="$ol_arg"
3417
3418 fi
3419
3420 # end --enable-backends
3421 # OpenLDAP --enable-bdb
3422
3423         # Check whether --enable-bdb was given.
3424 if test "${enable_bdb+set}" = set; then
3425   enableval=$enable_bdb;
3426         ol_arg=invalid
3427         for ol_val in no yes mod ; do
3428                 if test "$enableval" = "$ol_val" ; then
3429                         ol_arg="$ol_val"
3430                 fi
3431         done
3432         if test "$ol_arg" = "invalid" ; then
3433                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3435    { (exit 1); exit 1; }; }
3436         fi
3437         ol_enable_bdb="$ol_arg"
3438
3439 else
3440         ol_enable_bdb=${ol_enable_backends:-yes}
3441 fi
3442
3443 # end --enable-bdb
3444 # OpenLDAP --enable-dnssrv
3445
3446         # Check whether --enable-dnssrv was given.
3447 if test "${enable_dnssrv+set}" = set; then
3448   enableval=$enable_dnssrv;
3449         ol_arg=invalid
3450         for ol_val in no yes mod ; do
3451                 if test "$enableval" = "$ol_val" ; then
3452                         ol_arg="$ol_val"
3453                 fi
3454         done
3455         if test "$ol_arg" = "invalid" ; then
3456                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3457 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3458    { (exit 1); exit 1; }; }
3459         fi
3460         ol_enable_dnssrv="$ol_arg"
3461
3462 else
3463         ol_enable_dnssrv=${ol_enable_backends:-no}
3464 fi
3465
3466 # end --enable-dnssrv
3467 # OpenLDAP --enable-hdb
3468
3469         # Check whether --enable-hdb was given.
3470 if test "${enable_hdb+set}" = set; then
3471   enableval=$enable_hdb;
3472         ol_arg=invalid
3473         for ol_val in no yes mod ; do
3474                 if test "$enableval" = "$ol_val" ; then
3475                         ol_arg="$ol_val"
3476                 fi
3477         done
3478         if test "$ol_arg" = "invalid" ; then
3479                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3480 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3481    { (exit 1); exit 1; }; }
3482         fi
3483         ol_enable_hdb="$ol_arg"
3484
3485 else
3486         ol_enable_hdb=${ol_enable_backends:-yes}
3487 fi
3488
3489 # end --enable-hdb
3490 # OpenLDAP --enable-ldap
3491
3492         # Check whether --enable-ldap was given.
3493 if test "${enable_ldap+set}" = set; then
3494   enableval=$enable_ldap;
3495         ol_arg=invalid
3496         for ol_val in no yes mod ; do
3497                 if test "$enableval" = "$ol_val" ; then
3498                         ol_arg="$ol_val"
3499                 fi
3500         done
3501         if test "$ol_arg" = "invalid" ; then
3502                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3503 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3504    { (exit 1); exit 1; }; }
3505         fi
3506         ol_enable_ldap="$ol_arg"
3507
3508 else
3509         ol_enable_ldap=${ol_enable_backends:-no}
3510 fi
3511
3512 # end --enable-ldap
3513 # OpenLDAP --enable-meta
3514
3515         # Check whether --enable-meta was given.
3516 if test "${enable_meta+set}" = set; then
3517   enableval=$enable_meta;
3518         ol_arg=invalid
3519         for ol_val in no yes mod ; do
3520                 if test "$enableval" = "$ol_val" ; then
3521                         ol_arg="$ol_val"
3522                 fi
3523         done
3524         if test "$ol_arg" = "invalid" ; then
3525                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3526 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3527    { (exit 1); exit 1; }; }
3528         fi
3529         ol_enable_meta="$ol_arg"
3530
3531 else
3532         ol_enable_meta=${ol_enable_backends:-no}
3533 fi
3534
3535 # end --enable-meta
3536 # OpenLDAP --enable-monitor
3537
3538         # Check whether --enable-monitor was given.
3539 if test "${enable_monitor+set}" = set; then
3540   enableval=$enable_monitor;
3541         ol_arg=invalid
3542         for ol_val in no yes mod ; do
3543                 if test "$enableval" = "$ol_val" ; then
3544                         ol_arg="$ol_val"
3545                 fi
3546         done
3547         if test "$ol_arg" = "invalid" ; then
3548                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3549 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3550    { (exit 1); exit 1; }; }
3551         fi
3552         ol_enable_monitor="$ol_arg"
3553
3554 else
3555         ol_enable_monitor=${ol_enable_backends:-yes}
3556 fi
3557
3558 # end --enable-monitor
3559 # OpenLDAP --enable-ndb
3560
3561         # Check whether --enable-ndb was given.
3562 if test "${enable_ndb+set}" = set; then
3563   enableval=$enable_ndb;
3564         ol_arg=invalid
3565         for ol_val in no yes mod ; do
3566                 if test "$enableval" = "$ol_val" ; then
3567                         ol_arg="$ol_val"
3568                 fi
3569         done
3570         if test "$ol_arg" = "invalid" ; then
3571                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3573    { (exit 1); exit 1; }; }
3574         fi
3575         ol_enable_ndb="$ol_arg"
3576
3577 else
3578         ol_enable_ndb=${ol_enable_backends:-no}
3579 fi
3580
3581 # end --enable-ndb
3582 # OpenLDAP --enable-null
3583
3584         # Check whether --enable-null was given.
3585 if test "${enable_null+set}" = set; then
3586   enableval=$enable_null;
3587         ol_arg=invalid
3588         for ol_val in no yes mod ; do
3589                 if test "$enableval" = "$ol_val" ; then
3590                         ol_arg="$ol_val"
3591                 fi
3592         done
3593         if test "$ol_arg" = "invalid" ; then
3594                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3595 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3596    { (exit 1); exit 1; }; }
3597         fi
3598         ol_enable_null="$ol_arg"
3599
3600 else
3601         ol_enable_null=${ol_enable_backends:-no}
3602 fi
3603
3604 # end --enable-null
3605 # OpenLDAP --enable-passwd
3606
3607         # Check whether --enable-passwd was given.
3608 if test "${enable_passwd+set}" = set; then
3609   enableval=$enable_passwd;
3610         ol_arg=invalid
3611         for ol_val in no yes mod ; do
3612                 if test "$enableval" = "$ol_val" ; then
3613                         ol_arg="$ol_val"
3614                 fi
3615         done
3616         if test "$ol_arg" = "invalid" ; then
3617                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3619    { (exit 1); exit 1; }; }
3620         fi
3621         ol_enable_passwd="$ol_arg"
3622
3623 else
3624         ol_enable_passwd=${ol_enable_backends:-no}
3625 fi
3626
3627 # end --enable-passwd
3628 # OpenLDAP --enable-perl
3629
3630         # Check whether --enable-perl was given.
3631 if test "${enable_perl+set}" = set; then
3632   enableval=$enable_perl;
3633         ol_arg=invalid
3634         for ol_val in no yes mod ; do
3635                 if test "$enableval" = "$ol_val" ; then
3636                         ol_arg="$ol_val"
3637                 fi
3638         done
3639         if test "$ol_arg" = "invalid" ; then
3640                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3641 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3642    { (exit 1); exit 1; }; }
3643         fi
3644         ol_enable_perl="$ol_arg"
3645
3646 else
3647         ol_enable_perl=${ol_enable_backends:-no}
3648 fi
3649
3650 # end --enable-perl
3651 # OpenLDAP --enable-relay
3652
3653         # Check whether --enable-relay was given.
3654 if test "${enable_relay+set}" = set; then
3655   enableval=$enable_relay;
3656         ol_arg=invalid
3657         for ol_val in no yes mod ; do
3658                 if test "$enableval" = "$ol_val" ; then
3659                         ol_arg="$ol_val"
3660                 fi
3661         done
3662         if test "$ol_arg" = "invalid" ; then
3663                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3664 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3665    { (exit 1); exit 1; }; }
3666         fi
3667         ol_enable_relay="$ol_arg"
3668
3669 else
3670         ol_enable_relay=${ol_enable_backends:-yes}
3671 fi
3672
3673 # end --enable-relay
3674 # OpenLDAP --enable-shell
3675
3676         # Check whether --enable-shell was given.
3677 if test "${enable_shell+set}" = set; then
3678   enableval=$enable_shell;
3679         ol_arg=invalid
3680         for ol_val in no yes mod ; do
3681                 if test "$enableval" = "$ol_val" ; then
3682                         ol_arg="$ol_val"
3683                 fi
3684         done
3685         if test "$ol_arg" = "invalid" ; then
3686                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3687 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3688    { (exit 1); exit 1; }; }
3689         fi
3690         ol_enable_shell="$ol_arg"
3691
3692 else
3693         ol_enable_shell=${ol_enable_backends:-no}
3694 fi
3695
3696 # end --enable-shell
3697 # OpenLDAP --enable-sock
3698
3699         # Check whether --enable-sock was given.
3700 if test "${enable_sock+set}" = set; then
3701   enableval=$enable_sock;
3702         ol_arg=invalid
3703         for ol_val in no yes mod ; do
3704                 if test "$enableval" = "$ol_val" ; then
3705                         ol_arg="$ol_val"
3706                 fi
3707         done
3708         if test "$ol_arg" = "invalid" ; then
3709                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3710 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3711    { (exit 1); exit 1; }; }
3712         fi
3713         ol_enable_sock="$ol_arg"
3714
3715 else
3716         ol_enable_sock=${ol_enable_backends:-no}
3717 fi
3718
3719 # end --enable-sock
3720 # OpenLDAP --enable-sql
3721
3722         # Check whether --enable-sql was given.
3723 if test "${enable_sql+set}" = set; then
3724   enableval=$enable_sql;
3725         ol_arg=invalid
3726         for ol_val in no yes mod ; do
3727                 if test "$enableval" = "$ol_val" ; then
3728                         ol_arg="$ol_val"
3729                 fi
3730         done
3731         if test "$ol_arg" = "invalid" ; then
3732                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3733 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3734    { (exit 1); exit 1; }; }
3735         fi
3736         ol_enable_sql="$ol_arg"
3737
3738 else
3739         ol_enable_sql=${ol_enable_backends:-no}
3740 fi
3741
3742 # end --enable-sql
3743
3744 Overlays="accesslog \
3745         auditlog \
3746         collect \
3747         constraint \
3748         dds \
3749         deref \
3750         dyngroup \
3751         dynlist \
3752         memberof \
3753         ppolicy \
3754         proxycache \
3755         refint \
3756         retcode \
3757         rwm \
3758         seqmod \
3759         sssvlv \
3760         syncprov \
3761         translucent \
3762         unique \
3763         valsort"
3764
3765 # Check whether --enable-xxslapoverlays was given.
3766 if test "${enable_xxslapoverlays+set}" = set; then
3767   enableval=$enable_xxslapoverlays;
3768 fi
3769
3770
3771 # OpenLDAP --enable-overlays
3772
3773         # Check whether --enable-overlays was given.
3774 if test "${enable_overlays+set}" = set; then
3775   enableval=$enable_overlays;
3776         ol_arg=invalid
3777         for ol_val in no yes mod ; do
3778                 if test "$enableval" = "$ol_val" ; then
3779                         ol_arg="$ol_val"
3780                 fi
3781         done
3782         if test "$ol_arg" = "invalid" ; then
3783                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3784 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3785    { (exit 1); exit 1; }; }
3786         fi
3787         ol_enable_overlays="$ol_arg"
3788
3789 fi
3790
3791 # end --enable-overlays
3792 # OpenLDAP --enable-accesslog
3793
3794         # Check whether --enable-accesslog was given.
3795 if test "${enable_accesslog+set}" = set; then
3796   enableval=$enable_accesslog;
3797         ol_arg=invalid
3798         for ol_val in no yes mod ; do
3799                 if test "$enableval" = "$ol_val" ; then
3800                         ol_arg="$ol_val"
3801                 fi
3802         done
3803         if test "$ol_arg" = "invalid" ; then
3804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3806    { (exit 1); exit 1; }; }
3807         fi
3808         ol_enable_accesslog="$ol_arg"
3809
3810 else
3811         ol_enable_accesslog=${ol_enable_overlays:-no}
3812 fi
3813
3814 # end --enable-accesslog
3815
3816 # OpenLDAP --enable-auditlog
3817
3818         # Check whether --enable-auditlog was given.
3819 if test "${enable_auditlog+set}" = set; then
3820   enableval=$enable_auditlog;
3821         ol_arg=invalid
3822         for ol_val in no yes mod ; do
3823                 if test "$enableval" = "$ol_val" ; then
3824                         ol_arg="$ol_val"
3825                 fi
3826         done
3827         if test "$ol_arg" = "invalid" ; then
3828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3829 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3830    { (exit 1); exit 1; }; }
3831         fi
3832         ol_enable_auditlog="$ol_arg"
3833
3834 else
3835         ol_enable_auditlog=${ol_enable_overlays:-no}
3836 fi
3837
3838 # end --enable-auditlog
3839
3840 # OpenLDAP --enable-collect
3841
3842         # Check whether --enable-collect was given.
3843 if test "${enable_collect+set}" = set; then
3844   enableval=$enable_collect;
3845         ol_arg=invalid
3846         for ol_val in no yes mod ; do
3847                 if test "$enableval" = "$ol_val" ; then
3848                         ol_arg="$ol_val"
3849                 fi
3850         done
3851         if test "$ol_arg" = "invalid" ; then
3852                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3853 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3854    { (exit 1); exit 1; }; }
3855         fi
3856         ol_enable_collect="$ol_arg"
3857
3858 else
3859         ol_enable_collect=${ol_enable_overlays:-no}
3860 fi
3861
3862 # end --enable-collect
3863
3864 # OpenLDAP --enable-constraint
3865
3866         # Check whether --enable-constraint was given.
3867 if test "${enable_constraint+set}" = set; then
3868   enableval=$enable_constraint;
3869         ol_arg=invalid
3870         for ol_val in no yes mod ; do
3871                 if test "$enableval" = "$ol_val" ; then
3872                         ol_arg="$ol_val"
3873                 fi
3874         done
3875         if test "$ol_arg" = "invalid" ; then
3876                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3877 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3878    { (exit 1); exit 1; }; }
3879         fi
3880         ol_enable_constraint="$ol_arg"
3881
3882 else
3883         ol_enable_constraint=${ol_enable_overlays:-no}
3884 fi
3885
3886 # end --enable-constraint
3887
3888 # OpenLDAP --enable-dds
3889
3890         # Check whether --enable-dds was given.
3891 if test "${enable_dds+set}" = set; then
3892   enableval=$enable_dds;
3893         ol_arg=invalid
3894         for ol_val in no yes mod ; do
3895                 if test "$enableval" = "$ol_val" ; then
3896                         ol_arg="$ol_val"
3897                 fi
3898         done
3899         if test "$ol_arg" = "invalid" ; then
3900                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3901 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3902    { (exit 1); exit 1; }; }
3903         fi
3904         ol_enable_dds="$ol_arg"
3905
3906 else
3907         ol_enable_dds=${ol_enable_overlays:-no}
3908 fi
3909
3910 # end --enable-dds
3911
3912 # OpenLDAP --enable-deref
3913
3914         # Check whether --enable-deref was given.
3915 if test "${enable_deref+set}" = set; then
3916   enableval=$enable_deref;
3917         ol_arg=invalid
3918         for ol_val in no yes mod ; do
3919                 if test "$enableval" = "$ol_val" ; then
3920                         ol_arg="$ol_val"
3921                 fi
3922         done
3923         if test "$ol_arg" = "invalid" ; then
3924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3925 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3926    { (exit 1); exit 1; }; }
3927         fi
3928         ol_enable_deref="$ol_arg"
3929
3930 else
3931         ol_enable_deref=${ol_enable_overlays:-no}
3932 fi
3933
3934 # end --enable-deref
3935
3936 # OpenLDAP --enable-dyngroup
3937
3938         # Check whether --enable-dyngroup was given.
3939 if test "${enable_dyngroup+set}" = set; then
3940   enableval=$enable_dyngroup;
3941         ol_arg=invalid
3942         for ol_val in no yes mod ; do
3943                 if test "$enableval" = "$ol_val" ; then
3944                         ol_arg="$ol_val"
3945                 fi
3946         done
3947         if test "$ol_arg" = "invalid" ; then
3948                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3949 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3950    { (exit 1); exit 1; }; }
3951         fi
3952         ol_enable_dyngroup="$ol_arg"
3953
3954 else
3955         ol_enable_dyngroup=${ol_enable_overlays:-no}
3956 fi
3957
3958 # end --enable-dyngroup
3959
3960 # OpenLDAP --enable-dynlist
3961
3962         # Check whether --enable-dynlist was given.
3963 if test "${enable_dynlist+set}" = set; then
3964   enableval=$enable_dynlist;
3965         ol_arg=invalid
3966         for ol_val in no yes mod ; do
3967                 if test "$enableval" = "$ol_val" ; then
3968                         ol_arg="$ol_val"
3969                 fi
3970         done
3971         if test "$ol_arg" = "invalid" ; then
3972                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3973 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3974    { (exit 1); exit 1; }; }
3975         fi
3976         ol_enable_dynlist="$ol_arg"
3977
3978 else
3979         ol_enable_dynlist=${ol_enable_overlays:-no}
3980 fi
3981
3982 # end --enable-dynlist
3983
3984 # OpenLDAP --enable-memberof
3985
3986         # Check whether --enable-memberof was given.
3987 if test "${enable_memberof+set}" = set; then
3988   enableval=$enable_memberof;
3989         ol_arg=invalid
3990         for ol_val in no yes mod ; do
3991                 if test "$enableval" = "$ol_val" ; then
3992                         ol_arg="$ol_val"
3993                 fi
3994         done
3995         if test "$ol_arg" = "invalid" ; then
3996                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3997 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3998    { (exit 1); exit 1; }; }
3999         fi
4000         ol_enable_memberof="$ol_arg"
4001
4002 else
4003         ol_enable_memberof=${ol_enable_overlays:-no}
4004 fi
4005
4006 # end --enable-memberof
4007
4008 # OpenLDAP --enable-ppolicy
4009
4010         # Check whether --enable-ppolicy was given.
4011 if test "${enable_ppolicy+set}" = set; then
4012   enableval=$enable_ppolicy;
4013         ol_arg=invalid
4014         for ol_val in no yes mod ; do
4015                 if test "$enableval" = "$ol_val" ; then
4016                         ol_arg="$ol_val"
4017                 fi
4018         done
4019         if test "$ol_arg" = "invalid" ; then
4020                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4021 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4022    { (exit 1); exit 1; }; }
4023         fi
4024         ol_enable_ppolicy="$ol_arg"
4025
4026 else
4027         ol_enable_ppolicy=${ol_enable_overlays:-no}
4028 fi
4029
4030 # end --enable-ppolicy
4031
4032 # OpenLDAP --enable-proxycache
4033
4034         # Check whether --enable-proxycache was given.
4035 if test "${enable_proxycache+set}" = set; then
4036   enableval=$enable_proxycache;
4037         ol_arg=invalid
4038         for ol_val in no yes mod ; do
4039                 if test "$enableval" = "$ol_val" ; then
4040                         ol_arg="$ol_val"
4041                 fi
4042         done
4043         if test "$ol_arg" = "invalid" ; then
4044                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4045 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4046    { (exit 1); exit 1; }; }
4047         fi
4048         ol_enable_proxycache="$ol_arg"
4049
4050 else
4051         ol_enable_proxycache=${ol_enable_overlays:-no}
4052 fi
4053
4054 # end --enable-proxycache
4055
4056 # OpenLDAP --enable-refint
4057
4058         # Check whether --enable-refint was given.
4059 if test "${enable_refint+set}" = set; then
4060   enableval=$enable_refint;
4061         ol_arg=invalid
4062         for ol_val in no yes mod ; do
4063                 if test "$enableval" = "$ol_val" ; then
4064                         ol_arg="$ol_val"
4065                 fi
4066         done
4067         if test "$ol_arg" = "invalid" ; then
4068                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4069 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4070    { (exit 1); exit 1; }; }
4071         fi
4072         ol_enable_refint="$ol_arg"
4073
4074 else
4075         ol_enable_refint=${ol_enable_overlays:-no}
4076 fi
4077
4078 # end --enable-refint
4079
4080 # OpenLDAP --enable-retcode
4081
4082         # Check whether --enable-retcode was given.
4083 if test "${enable_retcode+set}" = set; then
4084   enableval=$enable_retcode;
4085         ol_arg=invalid
4086         for ol_val in no yes mod ; do
4087                 if test "$enableval" = "$ol_val" ; then
4088                         ol_arg="$ol_val"
4089                 fi
4090         done
4091         if test "$ol_arg" = "invalid" ; then
4092                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4093 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4094    { (exit 1); exit 1; }; }
4095         fi
4096         ol_enable_retcode="$ol_arg"
4097
4098 else
4099         ol_enable_retcode=${ol_enable_overlays:-no}
4100 fi
4101
4102 # end --enable-retcode
4103
4104 # OpenLDAP --enable-rwm
4105
4106         # Check whether --enable-rwm was given.
4107 if test "${enable_rwm+set}" = set; then
4108   enableval=$enable_rwm;
4109         ol_arg=invalid
4110         for ol_val in no yes mod ; do
4111                 if test "$enableval" = "$ol_val" ; then
4112                         ol_arg="$ol_val"
4113                 fi
4114         done
4115         if test "$ol_arg" = "invalid" ; then
4116                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4117 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4118    { (exit 1); exit 1; }; }
4119         fi
4120         ol_enable_rwm="$ol_arg"
4121
4122 else
4123         ol_enable_rwm=${ol_enable_overlays:-no}
4124 fi
4125
4126 # end --enable-rwm
4127
4128 # OpenLDAP --enable-seqmod
4129
4130         # Check whether --enable-seqmod was given.
4131 if test "${enable_seqmod+set}" = set; then
4132   enableval=$enable_seqmod;
4133         ol_arg=invalid
4134         for ol_val in no yes mod ; do
4135                 if test "$enableval" = "$ol_val" ; then
4136                         ol_arg="$ol_val"
4137                 fi
4138         done
4139         if test "$ol_arg" = "invalid" ; then
4140                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4141 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4142    { (exit 1); exit 1; }; }
4143         fi
4144         ol_enable_seqmod="$ol_arg"
4145
4146 else
4147         ol_enable_seqmod=${ol_enable_overlays:-no}
4148 fi
4149
4150 # end --enable-seqmod
4151
4152 # OpenLDAP --enable-sssvlv
4153
4154         # Check whether --enable-sssvlv was given.
4155 if test "${enable_sssvlv+set}" = set; then
4156   enableval=$enable_sssvlv;
4157         ol_arg=invalid
4158         for ol_val in no yes mod ; do
4159                 if test "$enableval" = "$ol_val" ; then
4160                         ol_arg="$ol_val"
4161                 fi
4162         done
4163         if test "$ol_arg" = "invalid" ; then
4164                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4165 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4166    { (exit 1); exit 1; }; }
4167         fi
4168         ol_enable_sssvlv="$ol_arg"
4169
4170 else
4171         ol_enable_sssvlv=${ol_enable_overlays:-no}
4172 fi
4173
4174 # end --enable-sssvlv
4175
4176 # OpenLDAP --enable-syncprov
4177
4178         # Check whether --enable-syncprov was given.
4179 if test "${enable_syncprov+set}" = set; then
4180   enableval=$enable_syncprov;
4181         ol_arg=invalid
4182         for ol_val in no yes mod ; do
4183                 if test "$enableval" = "$ol_val" ; then
4184                         ol_arg="$ol_val"
4185                 fi
4186         done
4187         if test "$ol_arg" = "invalid" ; then
4188                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4189 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4190    { (exit 1); exit 1; }; }
4191         fi
4192         ol_enable_syncprov="$ol_arg"
4193
4194 else
4195         ol_enable_syncprov=${ol_enable_overlays:-yes}
4196 fi
4197
4198 # end --enable-syncprov
4199
4200 # OpenLDAP --enable-translucent
4201
4202         # Check whether --enable-translucent was given.
4203 if test "${enable_translucent+set}" = set; then
4204   enableval=$enable_translucent;
4205         ol_arg=invalid
4206         for ol_val in no yes mod ; do
4207                 if test "$enableval" = "$ol_val" ; then
4208                         ol_arg="$ol_val"
4209                 fi
4210         done
4211         if test "$ol_arg" = "invalid" ; then
4212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4213 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4214    { (exit 1); exit 1; }; }
4215         fi
4216         ol_enable_translucent="$ol_arg"
4217
4218 else
4219         ol_enable_translucent=${ol_enable_overlays:-no}
4220 fi
4221
4222 # end --enable-translucent
4223
4224 # OpenLDAP --enable-unique
4225
4226         # Check whether --enable-unique was given.
4227 if test "${enable_unique+set}" = set; then
4228   enableval=$enable_unique;
4229         ol_arg=invalid
4230         for ol_val in no yes mod ; do
4231                 if test "$enableval" = "$ol_val" ; then
4232                         ol_arg="$ol_val"
4233                 fi
4234         done
4235         if test "$ol_arg" = "invalid" ; then
4236                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4237 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4238    { (exit 1); exit 1; }; }
4239         fi
4240         ol_enable_unique="$ol_arg"
4241
4242 else
4243         ol_enable_unique=${ol_enable_overlays:-no}
4244 fi
4245
4246 # end --enable-unique
4247
4248 # OpenLDAP --enable-valsort
4249
4250         # Check whether --enable-valsort was given.
4251 if test "${enable_valsort+set}" = set; then
4252   enableval=$enable_valsort;
4253         ol_arg=invalid
4254         for ol_val in no yes mod ; do
4255                 if test "$enableval" = "$ol_val" ; then
4256                         ol_arg="$ol_val"
4257                 fi
4258         done
4259         if test "$ol_arg" = "invalid" ; then
4260                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4261 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4262    { (exit 1); exit 1; }; }
4263         fi
4264         ol_enable_valsort="$ol_arg"
4265
4266 else
4267         ol_enable_valsort=${ol_enable_overlays:-no}
4268 fi
4269
4270 # end --enable-valsort
4271
4272
4273 # Check whether --enable-xxliboptions was given.
4274 if test "${enable_xxliboptions+set}" = set; then
4275   enableval=$enable_xxliboptions;
4276 fi
4277
4278 # Check whether --enable-static was given.
4279 if test "${enable_static+set}" = set; then
4280   enableval=$enable_static; p=${PACKAGE-default}
4281     case $enableval in
4282     yes) enable_static=yes ;;
4283     no) enable_static=no ;;
4284     *)
4285      enable_static=no
4286       # Look at the argument we got.  We use all the common list separators.
4287       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288       for pkg in $enableval; do
4289         IFS="$lt_save_ifs"
4290         if test "X$pkg" = "X$p"; then
4291           enable_static=yes
4292         fi
4293       done
4294       IFS="$lt_save_ifs"
4295       ;;
4296     esac
4297 else
4298   enable_static=yes
4299 fi
4300
4301
4302 # Check whether --enable-shared was given.
4303 if test "${enable_shared+set}" = set; then
4304   enableval=$enable_shared; p=${PACKAGE-default}
4305     case $enableval in
4306     yes) enable_shared=yes ;;
4307     no) enable_shared=no ;;
4308     *)
4309       enable_shared=no
4310       # Look at the argument we got.  We use all the common list separators.
4311       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4312       for pkg in $enableval; do
4313         IFS="$lt_save_ifs"
4314         if test "X$pkg" = "X$p"; then
4315           enable_shared=yes
4316         fi
4317       done
4318       IFS="$lt_save_ifs"
4319       ;;
4320     esac
4321 else
4322   enable_shared=yes
4323 fi
4324
4325
4326
4327
4328 # validate options
4329 if test $ol_enable_slapd = no ; then
4330                 if test $ol_enable_slapi = yes ; then
4331                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4333         fi
4334         case "$ol_enable_backends" in yes | mod)
4335                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4337         esac
4338         for i in $Backends; do
4339                 eval "ol_tmp=\$ol_enable_$i"
4340                 if test $ol_tmp != no ; then
4341                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4342 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4343                         eval "ol_enable_$i=no"
4344                 fi
4345         done
4346         if test $ol_enable_modules = yes ; then
4347                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4348 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4349         fi
4350         if test $ol_enable_wrappers = yes ; then
4351                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4353         fi
4354         if test $ol_enable_rlookups = yes ; then
4355                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4357         fi
4358         if test $ol_enable_dynacl = yes ; then
4359                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4360 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4361         fi
4362         if test $ol_enable_aci != no ; then
4363                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4364 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4365         fi
4366         if test $ol_enable_rewrite = yes ; then
4367                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4369         fi
4370                 case "$ol_enable_overlays" in yes | mod)
4371                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4373         esac
4374         for i in $Overlays; do
4375                 eval "ol_tmp=\$ol_enable_$i"
4376                 if test $ol_tmp != no ; then
4377                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4378 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4379                         eval "ol_enable_$i=no"
4380                 fi
4381         done
4382
4383         # force settings to no
4384         ol_enable_slapi=no
4385
4386         ol_enable_backends=
4387         ol_enable_overlays=
4388         ol_enable_modules=no
4389         ol_enable_rlookups=no
4390         ol_enable_dynacl=no
4391         ol_enable_aci=no
4392         ol_enable_wrappers=no
4393
4394         ol_enable_rewrite=no
4395
4396 elif test $ol_enable_modules != yes &&
4397         test $ol_enable_bdb = no &&
4398         test $ol_enable_dnssrv = no &&
4399         test $ol_enable_hdb = no &&
4400         test $ol_enable_ldap = no &&
4401         test $ol_enable_meta = no &&
4402         test $ol_enable_monitor = no &&
4403         test $ol_enable_ndb = no &&
4404         test $ol_enable_null = no &&
4405         test $ol_enable_passwd = no &&
4406         test $ol_enable_perl = no &&
4407         test $ol_enable_relay = no &&
4408         test $ol_enable_shell = no &&
4409         test $ol_enable_sock = no &&
4410         test $ol_enable_sql = no ; then
4411
4412         if test $ol_enable_slapd = yes ; then
4413                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4414 echo "$as_me: error: slapd requires a backend" >&2;}
4415    { (exit 1); exit 1; }; }
4416         else
4417                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4418 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4419                 ol_enable_slapd=no
4420         fi
4421 fi
4422
4423 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4424         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4425 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4426    { (exit 1); exit 1; }; }
4427 fi
4428
4429 if test $ol_enable_lmpasswd = yes ; then
4430         if test $ol_with_tls = no ; then
4431                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4432 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4433    { (exit 1); exit 1; }; }
4434         fi
4435 fi
4436
4437 if test $ol_enable_spasswd = yes ; then
4438         if test $ol_with_cyrus_sasl = no ; then
4439                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4440 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4441    { (exit 1); exit 1; }; }
4442         fi
4443         ol_with_cyrus_sasl=yes
4444 fi
4445
4446 { echo "$as_me:$LINENO: result: done" >&5
4447 echo "${ECHO_T}done" >&6; }
4448
4449 LDAP_LIBS=
4450 BDB_LIBS=
4451 SLAPD_NDB_LIBS=
4452 SLAPD_NDB_INCS=
4453 LTHREAD_LIBS=
4454 LUTIL_LIBS=
4455
4456 SLAPD_LIBS=
4457
4458 BUILD_SLAPD=no
4459
4460 BUILD_THREAD=no
4461
4462 BUILD_SLAPI=no
4463 SLAPD_SLAPI_DEPEND=
4464
4465 BUILD_BDB=no
4466 BUILD_DNSSRV=no
4467 BUILD_HDB=no
4468 BUILD_LDAP=no
4469 BUILD_META=no
4470 BUILD_MONITOR=no
4471 BUILD_NDB=no
4472 BUILD_NULL=no
4473 BUILD_PASSWD=no
4474 BUILD_PERL=no
4475 BUILD_RELAY=no
4476 BUILD_SHELL=no
4477 BUILD_SOCK=no
4478 BUILD_SQL=no
4479
4480 BUILD_ACCESSLOG=no
4481 BUILD_AUDITLOG=no
4482 BUILD_CONSTRAINT=no
4483 BUILD_DDS=no
4484 BUILD_DENYOP=no
4485 BUILD_DEREF=no
4486 BUILD_DYNGROUP=no
4487 BUILD_DYNLIST=no
4488 BUILD_LASTMOD=no
4489 BUILD_MEMBEROF=no
4490 BUILD_PPOLICY=no
4491 BUILD_PROXYCACHE=no
4492 BUILD_REFINT=no
4493 BUILD_RETCODE=no
4494 BUILD_RWM=no
4495 BUILD_SEQMOD=no
4496 BUILD_SSSVLV=no
4497 BUILD_SYNCPROV=no
4498 BUILD_TRANSLUCENT=no
4499 BUILD_UNIQUE=no
4500 BUILD_VALSORT=no
4501
4502 SLAPD_STATIC_OVERLAYS=
4503 SLAPD_DYNAMIC_OVERLAYS=
4504
4505 SLAPD_MODULES_LDFLAGS=
4506 SLAPD_MODULES_CPPFLAGS=
4507
4508 SLAPD_STATIC_BACKENDS=back-ldif
4509 SLAPD_DYNAMIC_BACKENDS=
4510
4511 SLAPD_PERL_LDFLAGS=
4512 MOD_PERL_LDFLAGS=
4513 PERL_CPPFLAGS=
4514
4515 SLAPD_SQL_LDFLAGS=
4516 SLAPD_SQL_LIBS=
4517 SLAPD_SQL_INCLUDES=
4518
4519 KRB4_LIBS=
4520 KRB5_LIBS=
4521 SASL_LIBS=
4522 TLS_LIBS=
4523 MODULES_LIBS=
4524 SLAPI_LIBS=
4525 LIBSLAPI=
4526 LIBSLAPITOOLS=
4527 AUTH_LIBS=
4528 ICU_LIBS=
4529
4530 SLAPD_SLP_LIBS=
4531 SLAPD_GMP_LIBS=
4532
4533
4534
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_MKVERSION 1
4537 _ACEOF
4538
4539
4540
4541
4542 ol_aix_threads=no
4543 case "$target" in
4544 *-*-aix*)       if test -z "$CC" ; then
4545                 case "$ol_with_threads" in
4546                 auto | yes |  posix) ol_aix_threads=yes ;;
4547                 esac
4548         fi
4549 ;;
4550 esac
4551
4552 if test $ol_aix_threads = yes ; then
4553         if test -z "${CC}" ; then
4554                 for ac_prog in cc_r xlc_r cc
4555 do
4556   # Extract the first word of "$ac_prog", so it can be a program name with args.
4557 set dummy $ac_prog; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_CC+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$CC"; then
4564   ac_cv_prog_CC="$CC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     ac_cv_prog_CC="$ac_prog"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579 IFS=$as_save_IFS
4580
4581 fi
4582 fi
4583 CC=$ac_cv_prog_CC
4584 if test -n "$CC"; then
4585   { echo "$as_me:$LINENO: result: $CC" >&5
4586 echo "${ECHO_T}$CC" >&6; }
4587 else
4588   { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4590 fi
4591
4592
4593   test -n "$CC" && break
4594 done
4595
4596
4597                 if test "$CC" = cc ; then
4598                                                 if test $ol_with_threads != auto ; then
4599                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4600 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4601    { (exit 1); exit 1; }; }
4602                         else
4603                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4604 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4605                         fi
4606                         ol_with_threads=no
4607                 fi
4608         fi
4609
4610         case ${CC} in cc_r | xlc_r)
4611                 ol_with_threads=posix
4612                 ol_cv_pthread_create=yes
4613                 ;;
4614         esac
4615 fi
4616
4617 if test -z "${CC}"; then
4618         for ac_prog in cc gcc
4619 do
4620   # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   if test -n "$CC"; then
4628   ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637     ac_cv_prog_CC="$ac_prog"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649   { echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6; }
4651 else
4652   { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4654 fi
4655
4656
4657   test -n "$CC" && break
4658 done
4659 test -n "$CC" || CC="missing"
4660
4661
4662         if test "${CC}" = "missing" ; then
4663                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4664 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4665    { (exit 1); exit 1; }; }
4666         fi
4667 fi
4668
4669 if test -z "${AR}"; then
4670         for ac_prog in ar gar
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_AR+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   if test -n "$AR"; then
4680   ac_cv_prog_AR="$AR" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_prog_AR="$ac_prog"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 AR=$ac_cv_prog_AR
4700 if test -n "$AR"; then
4701   { echo "$as_me:$LINENO: result: $AR" >&5
4702 echo "${ECHO_T}$AR" >&6; }
4703 else
4704   { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 fi
4707
4708
4709   test -n "$AR" && break
4710 done
4711 test -n "$AR" || AR="missing"
4712
4713
4714         if test "${AR}" = "missing" ; then
4715                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4716 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4717    { (exit 1); exit 1; }; }
4718         fi
4719 fi
4720
4721
4722
4723
4724
4725 # Check whether --enable-fast-install was given.
4726 if test "${enable_fast_install+set}" = set; then
4727   enableval=$enable_fast_install; p=${PACKAGE-default}
4728     case $enableval in
4729     yes) enable_fast_install=yes ;;
4730     no) enable_fast_install=no ;;
4731     *)
4732       enable_fast_install=no
4733       # Look at the argument we got.  We use all the common list separators.
4734       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4735       for pkg in $enableval; do
4736         IFS="$lt_save_ifs"
4737         if test "X$pkg" = "X$p"; then
4738           enable_fast_install=yes
4739         fi
4740       done
4741       IFS="$lt_save_ifs"
4742       ;;
4743     esac
4744 else
4745   enable_fast_install=yes
4746 fi
4747
4748
4749 DEPDIR="${am__leading_dot}deps"
4750
4751 ac_config_commands="$ac_config_commands depfiles"
4752
4753
4754 am_make=${MAKE-make}
4755 cat > confinc << 'END'
4756 am__doit:
4757         @echo done
4758 .PHONY: am__doit
4759 END
4760 # If we don't find an include directive, just comment out the code.
4761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4763 am__include="#"
4764 am__quote=
4765 _am_result=none
4766 # First try GNU make style include.
4767 echo "include confinc" > confmf
4768 # We grep out `Entering directory' and `Leaving directory'
4769 # messages which can occur if `w' ends up in MAKEFLAGS.
4770 # In particular we don't look at `^make:' because GNU make might
4771 # be invoked under some other name (usually "gmake"), in which
4772 # case it prints its new name instead of `make'.
4773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4774    am__include=include
4775    am__quote=
4776    _am_result=GNU
4777 fi
4778 # Now try BSD make style include.
4779 if test "$am__include" = "#"; then
4780    echo '.include "confinc"' > confmf
4781    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4782       am__include=.include
4783       am__quote="\""
4784       _am_result=BSD
4785    fi
4786 fi
4787
4788
4789 { echo "$as_me:$LINENO: result: $_am_result" >&5
4790 echo "${ECHO_T}$_am_result" >&6; }
4791 rm -f confinc confmf
4792
4793 # Check whether --enable-dependency-tracking was given.
4794 if test "${enable_dependency_tracking+set}" = set; then
4795   enableval=$enable_dependency_tracking;
4796 fi
4797
4798 if test "x$enable_dependency_tracking" != xno; then
4799   am_depcomp="$ac_aux_dir/depcomp"
4800   AMDEPBACKSLASH='\'
4801 fi
4802
4803
4804 if test "x$enable_dependency_tracking" != xno; then
4805   AMDEP_TRUE=
4806   AMDEP_FALSE='#'
4807 else
4808   AMDEP_TRUE='#'
4809   AMDEP_FALSE=
4810 fi
4811
4812
4813
4814 ac_ext=c
4815 ac_cpp='$CPP $CPPFLAGS'
4816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 if test -n "$ac_tool_prefix"; then
4820   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   if test -n "$CC"; then
4828   ac_cv_prog_CC="$CC" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849   { echo "$as_me:$LINENO: result: $CC" >&5
4850 echo "${ECHO_T}$CC" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857 fi
4858 if test -z "$ac_cv_prog_CC"; then
4859   ac_ct_CC=$CC
4860   # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$ac_ct_CC"; then
4868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_prog_ac_ct_CC="gcc"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4890 echo "${ECHO_T}$ac_ct_CC" >&6; }
4891 else
4892   { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4895
4896   if test "x$ac_ct_CC" = x; then
4897     CC=""
4898   else
4899     case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4902 whose name does not start with the host triplet.  If you think this
4903 configuration is useful to you, please write to autoconf@gnu.org." >&5
4904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4905 whose name does not start with the host triplet.  If you think this
4906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909     CC=$ac_ct_CC
4910   fi
4911 else
4912   CC="$ac_cv_prog_CC"
4913 fi
4914
4915 if test -z "$CC"; then
4916           if test -n "$ac_tool_prefix"; then
4917     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_CC+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   if test -n "$CC"; then
4925   ac_cv_prog_CC="$CC" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   for ac_exec_ext in '' $ac_executable_extensions; do
4933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934     ac_cv_prog_CC="${ac_tool_prefix}cc"
4935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936     break 2
4937   fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 CC=$ac_cv_prog_CC
4945 if test -n "$CC"; then
4946   { echo "$as_me:$LINENO: result: $CC" >&5
4947 echo "${ECHO_T}$CC" >&6; }
4948 else
4949   { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951 fi
4952
4953
4954   fi
4955 fi
4956 if test -z "$CC"; then
4957   # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_CC+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   if test -n "$CC"; then
4965   ac_cv_prog_CC="$CC" # Let the user override the test.
4966 else
4967   ac_prog_rejected=no
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971   IFS=$as_save_IFS
4972   test -z "$as_dir" && as_dir=.
4973   for ac_exec_ext in '' $ac_executable_extensions; do
4974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4976        ac_prog_rejected=yes
4977        continue
4978      fi
4979     ac_cv_prog_CC="cc"
4980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984 done
4985 IFS=$as_save_IFS
4986
4987 if test $ac_prog_rejected = yes; then
4988   # We found a bogon in the path, so make sure we never use it.
4989   set dummy $ac_cv_prog_CC
4990   shift
4991   if test $# != 0; then
4992     # We chose a different compiler from the bogus one.
4993     # However, it has the same basename, so the bogon will be chosen
4994     # first if we set CC to just the basename; use the full file name.
4995     shift
4996     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4997   fi
4998 fi
4999 fi
5000 fi
5001 CC=$ac_cv_prog_CC
5002 if test -n "$CC"; then
5003   { echo "$as_me:$LINENO: result: $CC" >&5
5004 echo "${ECHO_T}$CC" >&6; }
5005 else
5006   { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$CC"; then
5013   if test -n "$ac_tool_prefix"; then
5014   for ac_prog in cl.exe
5015   do
5016     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   if test -n "$CC"; then
5024   ac_cv_prog_CC="$CC" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 CC=$ac_cv_prog_CC
5044 if test -n "$CC"; then
5045   { echo "$as_me:$LINENO: result: $CC" >&5
5046 echo "${ECHO_T}$CC" >&6; }
5047 else
5048   { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5050 fi
5051
5052
5053     test -n "$CC" && break
5054   done
5055 fi
5056 if test -z "$CC"; then
5057   ac_ct_CC=$CC
5058   for ac_prog in cl.exe
5059 do
5060   # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if test -n "$ac_ct_CC"; then
5068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_prog_ac_ct_CC="$ac_prog"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085 fi
5086 fi
5087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5090 echo "${ECHO_T}$ac_ct_CC" >&6; }
5091 else
5092   { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5094 fi
5095
5096
5097   test -n "$ac_ct_CC" && break
5098 done
5099
5100   if test "x$ac_ct_CC" = x; then
5101     CC=""
5102   else
5103     case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet.  If you think this
5107 configuration is useful to you, please write to autoconf@gnu.org." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet.  If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113     CC=$ac_ct_CC
5114   fi
5115 fi
5116
5117 fi
5118
5119
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124    { (exit 1); exit 1; }; }
5125
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5130 case "(($ac_try" in
5131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132   *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135   (eval "$ac_compiler --version >&5") 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5140 case "(($ac_try" in
5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142   *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145   (eval "$ac_compiler -v >&5") 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5150 case "(($ac_try" in
5151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152   *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155   (eval "$ac_compiler -V >&5") 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }
5159
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166
5167 int
5168 main ()
5169 {
5170
5171   ;
5172   return 0;
5173 }
5174 _ACEOF
5175 ac_clean_files_save=$ac_clean_files
5176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5177 # Try to create an executable without -o first, disregard a.out.
5178 # It will help us diagnose broken compilers, and finding out an intuition
5179 # of exeext.
5180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5183 #
5184 # List of possible output files, starting from the most likely.
5185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5186 # only as a last resort.  b.out is created by i960 compilers.
5187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5188 #
5189 # The IRIX 6 linker writes into existing files which may not be
5190 # executable, retaining their permissions.  Remove them first so a
5191 # subsequent execution test works.
5192 ac_rmfiles=
5193 for ac_file in $ac_files
5194 do
5195   case $ac_file in
5196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5197     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5198   esac
5199 done
5200 rm -f $ac_rmfiles
5201
5202 if { (ac_try="$ac_link_default"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208   (eval "$ac_link_default") 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; then
5212   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5214 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5215 # so that the user can short-circuit this test for compilers unknown to
5216 # Autoconf.
5217 for ac_file in $ac_files ''
5218 do
5219   test -f "$ac_file" || continue
5220   case $ac_file in
5221     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5222         ;;
5223     [ab].out )
5224         # We found the default executable, but exeext='' is most
5225         # certainly right.
5226         break;;
5227     *.* )
5228         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5229         then :; else
5230            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5231         fi
5232         # We set ac_cv_exeext here because the later test for it is not
5233         # safe: cross compilers may not add the suffix if given an `-o'
5234         # argument, so we may need to know it at that point already.
5235         # Even if this section looks crufty: it has the advantage of
5236         # actually working.
5237         break;;
5238     * )
5239         break;;
5240   esac
5241 done
5242 test "$ac_cv_exeext" = no && ac_cv_exeext=
5243
5244 else
5245   ac_file=''
5246 fi
5247
5248 { echo "$as_me:$LINENO: result: $ac_file" >&5
5249 echo "${ECHO_T}$ac_file" >&6; }
5250 if test -z "$ac_file"; then
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C compiler cannot create executables
5257 See \`config.log' for more details." >&2;}
5258    { (exit 77); exit 77; }; }
5259 fi
5260
5261 ac_exeext=$ac_cv_exeext
5262
5263 # Check that the compiler produces executables we can run.  If not, either
5264 # the compiler is broken, or we cross compile.
5265 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5266 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5267 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5268 # If not cross compiling, check that we can run a simple program.
5269 if test "$cross_compiling" != yes; then
5270   if { ac_try='./$ac_file'
5271   { (case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_try") 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }; }; then
5280     cross_compiling=no
5281   else
5282     if test "$cross_compiling" = maybe; then
5283         cross_compiling=yes
5284     else
5285         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5286 If you meant to cross compile, use \`--host'.
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: cannot run C compiled programs.
5289 If you meant to cross compile, use \`--host'.
5290 See \`config.log' for more details." >&2;}
5291    { (exit 1); exit 1; }; }
5292     fi
5293   fi
5294 fi
5295 { echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6; }
5297
5298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5299 ac_clean_files=$ac_clean_files_save
5300 # Check that the compiler produces executables we can run.  If not, either
5301 # the compiler is broken, or we cross compile.
5302 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5304 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5305 echo "${ECHO_T}$cross_compiling" >&6; }
5306
5307 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5309 if { (ac_try="$ac_link"
5310 case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315   (eval "$ac_link") 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; then
5319   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5320 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5321 # work properly (i.e., refer to `conftest.exe'), while it won't with
5322 # `rm'.
5323 for ac_file in conftest.exe conftest conftest.*; do
5324   test -f "$ac_file" || continue
5325   case $ac_file in
5326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5327     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5328           break;;
5329     * ) break;;
5330   esac
5331 done
5332 else
5333   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&5
5335 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5336 See \`config.log' for more details." >&2;}
5337    { (exit 1); exit 1; }; }
5338 fi
5339
5340 rm -f conftest$ac_cv_exeext
5341 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5342 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5343
5344 rm -f conftest.$ac_ext
5345 EXEEXT=$ac_cv_exeext
5346 ac_exeext=$EXEEXT
5347 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5348 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5349 if test "${ac_cv_objext+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358
5359 int
5360 main ()
5361 {
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.o conftest.obj
5368 if { (ac_try="$ac_compile"
5369 case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374   (eval "$ac_compile") 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; then
5378   for ac_file in conftest.o conftest.obj conftest.*; do
5379   test -f "$ac_file" || continue;
5380   case $ac_file in
5381     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5382     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5383        break;;
5384   esac
5385 done
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&5
5392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5393 See \`config.log' for more details." >&2;}
5394    { (exit 1); exit 1; }; }
5395 fi
5396
5397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5398 fi
5399 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5400 echo "${ECHO_T}$ac_cv_objext" >&6; }
5401 OBJEXT=$ac_cv_objext
5402 ac_objext=$OBJEXT
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414
5415 int
5416 main ()
5417 {
5418 #ifndef __GNUC__
5419        choke me
5420 #endif
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_compile") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && {
5440          test -z "$ac_c_werror_flag" ||
5441          test ! -s conftest.err
5442        } && test -s conftest.$ac_objext; then
5443   ac_compiler_gnu=yes
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448         ac_compiler_gnu=no
5449 fi
5450
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5453
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5457 GCC=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CFLAGS=${CFLAGS+set}
5459 ac_save_CFLAGS=$CFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cc_g+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   ac_save_c_werror_flag=$ac_c_werror_flag
5466    ac_c_werror_flag=yes
5467    ac_cv_prog_cc_g=no
5468    CFLAGS="-g"
5469    cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475
5476 int
5477 main ()
5478 {
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_compile") 2>conftest.er1
5492   ac_status=$?
5493   grep -v '^ *+' conftest.er1 >conftest.err
5494   rm -f conftest.er1
5495   cat conftest.err >&5
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } && {
5498          test -z "$ac_c_werror_flag" ||
5499          test ! -s conftest.err
5500        } && test -s conftest.$ac_objext; then
5501   ac_cv_prog_cc_g=yes
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506         CFLAGS=""
5507       cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529   (eval "$ac_compile") 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } && {
5536          test -z "$ac_c_werror_flag" ||
5537          test ! -s conftest.err
5538        } && test -s conftest.$ac_objext; then
5539   :
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544         ac_c_werror_flag=$ac_save_c_werror_flag
5545          CFLAGS="-g"
5546          cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552
5553 int
5554 main ()
5555 {
5556
5557   ;
5558   return 0;
5559 }
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565   *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568   (eval "$ac_compile") 2>conftest.er1
5569   ac_status=$?
5570   grep -v '^ *+' conftest.er1 >conftest.err
5571   rm -f conftest.er1
5572   cat conftest.err >&5
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } && {
5575          test -z "$ac_c_werror_flag" ||
5576          test ! -s conftest.err
5577        } && test -s conftest.$ac_objext; then
5578   ac_cv_prog_cc_g=yes
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583
5584 fi
5585
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593    ac_c_werror_flag=$ac_save_c_werror_flag
5594 fi
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5597 if test "$ac_test_CFLAGS" = set; then
5598   CFLAGS=$ac_save_CFLAGS
5599 elif test $ac_cv_prog_cc_g = yes; then
5600   if test "$GCC" = yes; then
5601     CFLAGS="-g -O2"
5602   else
5603     CFLAGS="-g"
5604   fi
5605 else
5606   if test "$GCC" = yes; then
5607     CFLAGS="-O2"
5608   else
5609     CFLAGS=
5610   fi
5611 fi
5612 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5613 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_cc_c89+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_cv_prog_cc_c89=no
5618 ac_save_CC=$CC
5619 cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 #include <stdarg.h>
5626 #include <stdio.h>
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5633      char **p;
5634      int i;
5635 {
5636   return p[i];
5637 }
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5639 {
5640   char *s;
5641   va_list v;
5642   va_start (v,p);
5643   s = g (p, va_arg (v,int));
5644   va_end (v);
5645   return s;
5646 }
5647
5648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5649    function prototypes and stuff, but not '\xHH' hex character constants.
5650    These don't provoke an error unfortunately, instead are silently treated
5651    as 'x'.  The following induces an error, until -std is added to get
5652    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5653    array size at least.  It's necessary to write '\x00'==0 to get something
5654    that's true only with -std.  */
5655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5656
5657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5658    inside strings and character constants.  */
5659 #define FOO(x) 'x'
5660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5661
5662 int test (int i, double x);
5663 struct s1 {int (*f) (int a);};
5664 struct s2 {int (*f) (double a);};
5665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5666 int argc;
5667 char **argv;
5668 int
5669 main ()
5670 {
5671 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5677         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5678 do
5679   CC="$ac_save_CC $ac_arg"
5680   rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_compile") 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } && {
5694          test -z "$ac_c_werror_flag" ||
5695          test ! -s conftest.err
5696        } && test -s conftest.$ac_objext; then
5697   ac_cv_prog_cc_c89=$ac_arg
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702
5703 fi
5704
5705 rm -f core conftest.err conftest.$ac_objext
5706   test "x$ac_cv_prog_cc_c89" != "xno" && break
5707 done
5708 rm -f conftest.$ac_ext
5709 CC=$ac_save_CC
5710
5711 fi
5712 # AC_CACHE_VAL
5713 case "x$ac_cv_prog_cc_c89" in
5714   x)
5715     { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5717   xno)
5718     { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5720   *)
5721     CC="$CC $ac_cv_prog_cc_c89"
5722     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5724 esac
5725
5726
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733 depcc="$CC"   am_compiler_list=
5734
5735 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5736 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5737 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5741   # We make a subdir and do the tests there.  Otherwise we can end up
5742   # making bogus files that we don't know about and never remove.  For
5743   # instance it was reported that on HP-UX the gcc test will end up
5744   # making a dummy file named `D' -- because `-MD' means `put the output
5745   # in D'.
5746   mkdir conftest.dir
5747   # Copy depcomp to subdir because otherwise we won't find it if we're
5748   # using a relative directory.
5749   cp "$am_depcomp" conftest.dir
5750   cd conftest.dir
5751   # We will build objects and dependencies in a subdirectory because
5752   # it helps to detect inapplicable dependency modes.  For instance
5753   # both Tru64's cc and ICC support -MD to output dependencies as a
5754   # side effect of compilation, but ICC will put the dependencies in
5755   # the current directory while Tru64 will put them in the object
5756   # directory.
5757   mkdir sub
5758
5759   am_cv_CC_dependencies_compiler_type=none
5760   if test "$am_compiler_list" = ""; then
5761      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5762   fi
5763   for depmode in $am_compiler_list; do
5764     # Setup a source with many dependencies, because some compilers
5765     # like to wrap large dependency lists on column 80 (with \), and
5766     # we should not choose a depcomp mode which is confused by this.
5767     #
5768     # We need to recreate these files for each test, as the compiler may
5769     # overwrite some of them when testing with obscure command lines.
5770     # This happens at least with the AIX C compiler.
5771     : > sub/conftest.c
5772     for i in 1 2 3 4 5 6; do
5773       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5774       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5775       # Solaris 8's {/usr,}/bin/sh.
5776       touch sub/conftst$i.h
5777     done
5778     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5779
5780     case $depmode in
5781     nosideeffect)
5782       # after this tag, mechanisms are not by side-effect, so they'll
5783       # only be used when explicitly requested
5784       if test "x$enable_dependency_tracking" = xyes; then
5785         continue
5786       else
5787         break
5788       fi
5789       ;;
5790     none) break ;;
5791     esac
5792     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5793     # mode.  It turns out that the SunPro C++ compiler does not properly
5794     # handle `-M -o', and we need to detect this.
5795     if depmode=$depmode \
5796        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5797        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5798        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5799          >/dev/null 2>conftest.err &&
5800        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5801        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5802        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5803       # icc doesn't choke on unknown options, it will just issue warnings
5804       # or remarks (even with -Werror).  So we grep stderr for any message
5805       # that says an option was ignored or not supported.
5806       # When given -MP, icc 7.0 and 7.1 complain thusly:
5807       #   icc: Command line warning: ignoring option '-M'; no argument required
5808       # The diagnosis changed in icc 8.0:
5809       #   icc: Command line remark: option '-MP' not supported
5810       if (grep 'ignoring option' conftest.err ||
5811           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5812         am_cv_CC_dependencies_compiler_type=$depmode
5813         break
5814       fi
5815     fi
5816   done
5817
5818   cd ..
5819   rm -rf conftest.dir
5820 else
5821   am_cv_CC_dependencies_compiler_type=none
5822 fi
5823
5824 fi
5825 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5828
5829
5830
5831 if
5832   test "x$enable_dependency_tracking" != xno \
5833   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5834   am__fastdepCC_TRUE=
5835   am__fastdepCC_FALSE='#'
5836 else
5837   am__fastdepCC_TRUE='#'
5838   am__fastdepCC_FALSE=
5839 fi
5840
5841
5842 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5843 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5844 if test "${lt_cv_path_SED+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   # Loop through the user's path and test for sed and gsed.
5848 # Then use that list of sed's as ones to test for truncation.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854   for lt_ac_prog in sed gsed; do
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5857         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5858       fi
5859     done
5860   done
5861 done
5862 lt_ac_max=0
5863 lt_ac_count=0
5864 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5865 # along with /bin/sed that truncates output.
5866 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5867   test ! -f $lt_ac_sed && continue
5868   cat /dev/null > conftest.in
5869   lt_ac_count=0
5870   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5871   # Check for GNU sed and select it if it is found.
5872   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5873     lt_cv_path_SED=$lt_ac_sed
5874     break
5875   fi
5876   while true; do
5877     cat conftest.in conftest.in >conftest.tmp
5878     mv conftest.tmp conftest.in
5879     cp conftest.in conftest.nl
5880     echo >>conftest.nl
5881     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5882     cmp -s conftest.out conftest.nl || break
5883     # 10000 chars as input seems more than enough
5884     test $lt_ac_count -gt 10 && break
5885     lt_ac_count=`expr $lt_ac_count + 1`
5886     if test $lt_ac_count -gt $lt_ac_max; then
5887       lt_ac_max=$lt_ac_count
5888       lt_cv_path_SED=$lt_ac_sed
5889     fi
5890   done
5891 done
5892
5893 fi
5894
5895 SED=$lt_cv_path_SED
5896 { echo "$as_me:$LINENO: result: $SED" >&5
5897 echo "${ECHO_T}$SED" >&6; }
5898
5899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5901 if test "${ac_cv_path_GREP+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   # Extract the first word of "grep ggrep" to use in msg output
5905 if test -z "$GREP"; then
5906 set dummy grep ggrep; ac_prog_name=$2
5907 if test "${ac_cv_path_GREP+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   ac_path_GREP_found=false
5911 # Loop through the user's path and test for each of PROGNAME-LIST
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_prog in grep ggrep; do
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5920     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5921     # Check for GNU ac_path_GREP and select it if it is found.
5922   # Check for GNU $ac_path_GREP
5923 case `"$ac_path_GREP" --version 2>&1` in
5924 *GNU*)
5925   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5926 *)
5927   ac_count=0
5928   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5929   while :
5930   do
5931     cat "conftest.in" "conftest.in" >"conftest.tmp"
5932     mv "conftest.tmp" "conftest.in"
5933     cp "conftest.in" "conftest.nl"
5934     echo 'GREP' >> "conftest.nl"
5935     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5936     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5937     ac_count=`expr $ac_count + 1`
5938     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5939       # Best one so far, save it but keep looking for a better one
5940       ac_cv_path_GREP="$ac_path_GREP"
5941       ac_path_GREP_max=$ac_count
5942     fi
5943     # 10*(2^10) chars as input seems more than enough
5944     test $ac_count -gt 10 && break
5945   done
5946   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5947 esac
5948
5949
5950     $ac_path_GREP_found && break 3
5951   done
5952 done
5953
5954 done
5955 IFS=$as_save_IFS
5956
5957
5958 fi
5959
5960 GREP="$ac_cv_path_GREP"
5961 if test -z "$GREP"; then
5962   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5964    { (exit 1); exit 1; }; }
5965 fi
5966
5967 else
5968   ac_cv_path_GREP=$GREP
5969 fi
5970
5971
5972 fi
5973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5975  GREP="$ac_cv_path_GREP"
5976
5977
5978 { echo "$as_me:$LINENO: checking for egrep" >&5
5979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_EGREP+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984    then ac_cv_path_EGREP="$GREP -E"
5985    else
5986      # Extract the first word of "egrep" to use in msg output
5987 if test -z "$EGREP"; then
5988 set dummy egrep; ac_prog_name=$2
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   ac_path_EGREP_found=false
5993 # Loop through the user's path and test for each of PROGNAME-LIST
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_prog in egrep; do
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6002     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6003     # Check for GNU ac_path_EGREP and select it if it is found.
6004   # Check for GNU $ac_path_EGREP
6005 case `"$ac_path_EGREP" --version 2>&1` in
6006 *GNU*)
6007   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6008 *)
6009   ac_count=0
6010   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6011   while :
6012   do
6013     cat "conftest.in" "conftest.in" >"conftest.tmp"
6014     mv "conftest.tmp" "conftest.in"
6015     cp "conftest.in" "conftest.nl"
6016     echo 'EGREP' >> "conftest.nl"
6017     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6019     ac_count=`expr $ac_count + 1`
6020     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6021       # Best one so far, save it but keep looking for a better one
6022       ac_cv_path_EGREP="$ac_path_EGREP"
6023       ac_path_EGREP_max=$ac_count
6024     fi
6025     # 10*(2^10) chars as input seems more than enough
6026     test $ac_count -gt 10 && break
6027   done
6028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6029 esac
6030
6031
6032     $ac_path_EGREP_found && break 3
6033   done
6034 done
6035
6036 done
6037 IFS=$as_save_IFS
6038
6039
6040 fi
6041
6042 EGREP="$ac_cv_path_EGREP"
6043 if test -z "$EGREP"; then
6044   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6046    { (exit 1); exit 1; }; }
6047 fi
6048
6049 else
6050   ac_cv_path_EGREP=$EGREP
6051 fi
6052
6053
6054    fi
6055 fi
6056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6058  EGREP="$ac_cv_path_EGREP"
6059
6060
6061
6062 # Check whether --with-gnu-ld was given.
6063 if test "${with_gnu_ld+set}" = set; then
6064   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6065 else
6066   with_gnu_ld=no
6067 fi
6068
6069 ac_prog=ld
6070 if test "$GCC" = yes; then
6071   # Check if gcc -print-prog-name=ld gives a path.
6072   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6074   case $host in
6075   *-*-mingw*)
6076     # gcc leaves a trailing carriage return which upsets mingw
6077     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6078   *)
6079     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6080   esac
6081   case $ac_prog in
6082     # Accept absolute paths.
6083     [\\/]* | ?:[\\/]*)
6084       re_direlt='/[^/][^/]*/\.\./'
6085       # Canonicalize the pathname of ld
6086       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6087       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6088         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6089       done
6090       test -z "$LD" && LD="$ac_prog"
6091       ;;
6092   "")
6093     # If it fails, then pretend we aren't using GCC.
6094     ac_prog=ld
6095     ;;
6096   *)
6097     # If it is relative, then search for the first ld in PATH.
6098     with_gnu_ld=unknown
6099     ;;
6100   esac
6101 elif test "$with_gnu_ld" = yes; then
6102   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6104 else
6105   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6107 fi
6108 if test "${lt_cv_path_LD+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -z "$LD"; then
6112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113   for ac_dir in $PATH; do
6114     IFS="$lt_save_ifs"
6115     test -z "$ac_dir" && ac_dir=.
6116     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6117       lt_cv_path_LD="$ac_dir/$ac_prog"
6118       # Check to see if the program is GNU ld.  I'd rather use --version,
6119       # but apparently some variants of GNU ld only accept -v.
6120       # Break only if it was the GNU/non-GNU ld that we prefer.
6121       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6122       *GNU* | *'with BFD'*)
6123         test "$with_gnu_ld" != no && break
6124         ;;
6125       *)
6126         test "$with_gnu_ld" != yes && break
6127         ;;
6128       esac
6129     fi
6130   done
6131   IFS="$lt_save_ifs"
6132 else
6133   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6134 fi
6135 fi
6136
6137 LD="$lt_cv_path_LD"
6138 if test -n "$LD"; then
6139   { echo "$as_me:$LINENO: result: $LD" >&5
6140 echo "${ECHO_T}$LD" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6144 fi
6145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6147    { (exit 1); exit 1; }; }
6148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6154 case `$LD -v 2>&1 </dev/null` in
6155 *GNU* | *'with BFD'*)
6156   lt_cv_prog_gnu_ld=yes
6157   ;;
6158 *)
6159   lt_cv_prog_gnu_ld=no
6160   ;;
6161 esac
6162 fi
6163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6165 with_gnu_ld=$lt_cv_prog_gnu_ld
6166
6167
6168 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6170 if test "${lt_cv_ld_reload_flag+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   lt_cv_ld_reload_flag='-r'
6174 fi
6175 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6179 "" | " "*) ;;
6180 *) reload_flag=" $reload_flag" ;;
6181 esac
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183 case $host_os in
6184   darwin*)
6185     if test "$GCC" = yes; then
6186       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6187     else
6188       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189     fi
6190     ;;
6191 esac
6192
6193 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6194 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6195 if test "${lt_cv_path_NM+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   if test -n "$NM"; then
6199   # Let the user override the test.
6200   lt_cv_path_NM="$NM"
6201 else
6202   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6203   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6204     IFS="$lt_save_ifs"
6205     test -z "$ac_dir" && ac_dir=.
6206     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6207     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6208       # Check to see if the nm accepts a BSD-compat flag.
6209       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6210       #   nm: unknown option "B" ignored
6211       # Tru64's nm complains that /dev/null is an invalid object file
6212       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6213       */dev/null* | *'Invalid file or object type'*)
6214         lt_cv_path_NM="$tmp_nm -B"
6215         break
6216         ;;
6217       *)
6218         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6219         */dev/null*)
6220           lt_cv_path_NM="$tmp_nm -p"
6221           break
6222           ;;
6223         *)
6224           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6225           continue # so that we can try to find one that supports BSD flags
6226           ;;
6227         esac
6228       esac
6229     fi
6230   done
6231   IFS="$lt_save_ifs"
6232   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6233 fi
6234 fi
6235 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6236 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6237 NM="$lt_cv_path_NM"
6238
6239 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6241 LN_S=$as_ln_s
6242 if test "$LN_S" = "ln -s"; then
6243   { echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6; }
6245 else
6246   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6247 echo "${ECHO_T}no, using $LN_S" >&6; }
6248 fi
6249
6250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6252 if test "${lt_cv_deplibs_check_method+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   lt_cv_file_magic_cmd='$MAGIC_CMD'
6256 lt_cv_file_magic_test_file=
6257 lt_cv_deplibs_check_method='unknown'
6258 # Need to set the preceding variable on all platforms that support
6259 # interlibrary dependencies.
6260 # 'none' -- dependencies not supported.
6261 # `unknown' -- same as none, but documents that we really don't know.
6262 # 'pass_all' -- all dependencies passed with no checks.
6263 # 'test_compile' -- check by making test program.
6264 # 'file_magic [[regex]]' -- check by looking for files in library path
6265 # which responds to the $file_magic_cmd with a given extended regex.
6266 # If you have `file' or equivalent on your system and you're not sure
6267 # whether `pass_all' will *always* work, you probably want this one.
6268
6269 case $host_os in
6270 aix4* | aix5*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 beos*)
6275   lt_cv_deplibs_check_method=pass_all
6276   ;;
6277
6278 bsdi[45]*)
6279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6280   lt_cv_file_magic_cmd='/usr/bin/file -L'
6281   lt_cv_file_magic_test_file=/shlib/libc.so
6282   ;;
6283
6284 cygwin*)
6285   # func_win32_libid is a shell function defined in ltmain.sh
6286   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6287   lt_cv_file_magic_cmd='func_win32_libid'
6288   ;;
6289
6290 mingw* | pw32*)
6291   # Base MSYS/MinGW do not provide the 'file' command needed by
6292   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6293   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6294   lt_cv_file_magic_cmd='$OBJDUMP -f'
6295   ;;
6296
6297 darwin* | rhapsody*)
6298   lt_cv_deplibs_check_method=pass_all
6299   ;;
6300
6301 freebsd* | kfreebsd*-gnu | dragonfly*)
6302   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303     case $host_cpu in
6304     i*86 )
6305       # Not sure whether the presence of OpenBSD here was a mistake.
6306       # Let's accept both of them until this is cleared up.
6307       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308       lt_cv_file_magic_cmd=/usr/bin/file
6309       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6310       ;;
6311     esac
6312   else
6313     lt_cv_deplibs_check_method=pass_all
6314   fi
6315   ;;
6316
6317 gnu*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 hpux10.20* | hpux11*)
6322   lt_cv_file_magic_cmd=/usr/bin/file
6323   case $host_cpu in
6324   ia64*)
6325     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6327     ;;
6328   hppa*64*)
6329     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]'
6330     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6331     ;;
6332   *)
6333     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6335     ;;
6336   esac
6337   ;;
6338
6339 irix5* | irix6* | nonstopux*)
6340   case $LD in
6341   *-32|*"-32 ") libmagic=32-bit;;
6342   *-n32|*"-n32 ") libmagic=N32;;
6343   *-64|*"-64 ") libmagic=64-bit;;
6344   *) libmagic=never-match;;
6345   esac
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 # This must be Linux ELF.
6350 linux*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 netbsd*)
6355   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357   else
6358     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6359   fi
6360   ;;
6361
6362 newos6*)
6363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364   lt_cv_file_magic_cmd=/usr/bin/file
6365   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6366   ;;
6367
6368 nto-qnx*)
6369   lt_cv_deplibs_check_method=unknown
6370   ;;
6371
6372 openbsd*)
6373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6375   else
6376     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377   fi
6378   ;;
6379
6380 osf3* | osf4* | osf5*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 sco3.2v5*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 solaris*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6393   case $host_vendor in
6394   motorola)
6395     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]'
6396     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6397     ;;
6398   ncr)
6399     lt_cv_deplibs_check_method=pass_all
6400     ;;
6401   sequent)
6402     lt_cv_file_magic_cmd='/bin/file'
6403     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6404     ;;
6405   sni)
6406     lt_cv_file_magic_cmd='/bin/file'
6407     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6408     lt_cv_file_magic_test_file=/lib/libc.so
6409     ;;
6410   siemens)
6411     lt_cv_deplibs_check_method=pass_all
6412     ;;
6413   esac
6414   ;;
6415
6416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419 esac
6420
6421 fi
6422 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6424 file_magic_cmd=$lt_cv_file_magic_cmd
6425 deplibs_check_method=$lt_cv_deplibs_check_method
6426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6427
6428
6429
6430
6431 # If no C compiler was specified, use CC.
6432 LTCC=${LTCC-"$CC"}
6433
6434 # Allow CC to be a program name with arguments.
6435 compiler=$CC
6436
6437
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then
6440   enableval=$enable_libtool_lock;
6441 fi
6442
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6444
6445 # Some flags need to be propagated to the compiler or linker for good
6446 # libtool support.
6447 case $host in
6448 ia64-*-hpux*)
6449   # Find out which ABI we are using.
6450   echo 'int i;' > conftest.$ac_ext
6451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; then
6456     case `/usr/bin/file conftest.$ac_objext` in
6457     *ELF-32*)
6458       HPUX_IA64_MODE="32"
6459       ;;
6460     *ELF-64*)
6461       HPUX_IA64_MODE="64"
6462       ;;
6463     esac
6464   fi
6465   rm -rf conftest*
6466   ;;
6467 *-*-irix6*)
6468   # Find out which ABI we are using.
6469   echo '#line 6469 "configure"' > conftest.$ac_ext
6470   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471   (eval $ac_compile) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); }; then
6475    if test "$lt_cv_prog_gnu_ld" = yes; then
6476     case `/usr/bin/file conftest.$ac_objext` in
6477     *32-bit*)
6478       LD="${LD-ld} -melf32bsmip"
6479       ;;
6480     *N32*)
6481       LD="${LD-ld} -melf32bmipn32"
6482       ;;
6483     *64-bit*)
6484       LD="${LD-ld} -melf64bmip"
6485       ;;
6486     esac
6487    else
6488     case `/usr/bin/file conftest.$ac_objext` in
6489     *32-bit*)
6490       LD="${LD-ld} -32"
6491       ;;
6492     *N32*)
6493       LD="${LD-ld} -n32"
6494       ;;
6495     *64-bit*)
6496       LD="${LD-ld} -64"
6497       ;;
6498     esac
6499    fi
6500   fi
6501   rm -rf conftest*
6502   ;;
6503
6504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6505   # Find out which ABI we are using.
6506   echo 'int i;' > conftest.$ac_ext
6507   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508   (eval $ac_compile) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; then
6512     case `/usr/bin/file conftest.o` in
6513     *32-bit*)
6514       case $host in
6515         x86_64-*linux*)
6516           LD="${LD-ld} -m elf_i386"
6517           ;;
6518         ppc64-*linux*|powerpc64-*linux*)
6519           LD="${LD-ld} -m elf32ppclinux"
6520           ;;
6521         s390x-*linux*)
6522           LD="${LD-ld} -m elf_s390"
6523           ;;
6524         sparc64-*linux*)
6525           LD="${LD-ld} -m elf32_sparc"
6526           ;;
6527       esac
6528       ;;
6529     *64-bit*)
6530       case $host in
6531         x86_64-*linux*)
6532           LD="${LD-ld} -m elf_x86_64"
6533           ;;
6534         ppc*-*linux*|powerpc*-*linux*)
6535           LD="${LD-ld} -m elf64ppc"
6536           ;;
6537         s390*-*linux*)
6538           LD="${LD-ld} -m elf64_s390"
6539           ;;
6540         sparc*-*linux*)
6541           LD="${LD-ld} -m elf64_sparc"
6542           ;;
6543       esac
6544       ;;
6545     esac
6546   fi
6547   rm -rf conftest*
6548   ;;
6549
6550 *-*-sco3.2v5*)
6551   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552   SAVE_CFLAGS="$CFLAGS"
6553   CFLAGS="$CFLAGS -belf"
6554   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6556 if test "${lt_cv_cc_needs_belf+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565      cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571
6572 int
6573 main ()
6574 {
6575
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6582 case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587   (eval "$ac_link") 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
6591   cat conftest.err >&5
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } && {
6594          test -z "$ac_c_werror_flag" ||
6595          test ! -s conftest.err
6596        } && test -s conftest$ac_exeext &&
6597        $as_test_x conftest$ac_exeext; then
6598   lt_cv_cc_needs_belf=yes
6599 else
6600   echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603         lt_cv_cc_needs_belf=no
6604 fi
6605
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607       conftest$ac_exeext conftest.$ac_ext
6608      ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 fi
6615 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6617   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6618     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6619     CFLAGS="$SAVE_CFLAGS"
6620   fi
6621   ;;
6622 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6623   if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   if test -n "$DLLTOOL"; then
6632   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 DLLTOOL=$ac_cv_prog_DLLTOOL
6652 if test -n "$DLLTOOL"; then
6653   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6654 echo "${ECHO_T}$DLLTOOL" >&6; }
6655 else
6656   { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_DLLTOOL"; then
6663   ac_ct_DLLTOOL=$DLLTOOL
6664   # Extract the first word of "dlltool", so it can be a program name with args.
6665 set dummy dlltool; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   if test -n "$ac_ct_DLLTOOL"; then
6672   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679   for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6692 if test -n "$ac_ct_DLLTOOL"; then
6693   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6694 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_DLLTOOL" = x; then
6701     DLLTOOL="false"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet.  If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&5
6708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6709 whose name does not start with the host triplet.  If you think this
6710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713     DLLTOOL=$ac_ct_DLLTOOL
6714   fi
6715 else
6716   DLLTOOL="$ac_cv_prog_DLLTOOL"
6717 fi
6718
6719   if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}as; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_AS+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   if test -n "$AS"; then
6728   ac_cv_prog_AS="$AS" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_AS="${ac_tool_prefix}as"
6738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 AS=$ac_cv_prog_AS
6748 if test -n "$AS"; then
6749   { echo "$as_me:$LINENO: result: $AS" >&5
6750 echo "${ECHO_T}$AS" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_AS"; then
6759   ac_ct_AS=$AS
6760   # Extract the first word of "as", so it can be a program name with args.
6761 set dummy as; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   if test -n "$ac_ct_AS"; then
6768   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775   for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_AS="as"
6778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6788 if test -n "$ac_ct_AS"; then
6789   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6790 echo "${ECHO_T}$ac_ct_AS" >&6; }
6791 else
6792   { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6794 fi
6795
6796   if test "x$ac_ct_AS" = x; then
6797     AS="false"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet.  If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&5
6804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet.  If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809     AS=$ac_ct_AS
6810   fi
6811 else
6812   AS="$ac_cv_prog_AS"
6813 fi
6814
6815   if test -n "$ac_tool_prefix"; then
6816   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   if test -n "$OBJDUMP"; then
6824   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831   for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6846 echo "${ECHO_T}$OBJDUMP" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855   ac_ct_OBJDUMP=$OBJDUMP
6856   # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   if test -n "$ac_ct_OBJDUMP"; then
6864   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871   for ac_exec_ext in '' $ac_executable_extensions; do
6872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6886 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6887 else
6888   { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6890 fi
6891
6892   if test "x$ac_ct_OBJDUMP" = x; then
6893     OBJDUMP="false"
6894   else
6895     case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6898 whose name does not start with the host triplet.  If you think this
6899 configuration is useful to you, please write to autoconf@gnu.org." >&5
6900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet.  If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905     OBJDUMP=$ac_ct_OBJDUMP
6906   fi
6907 else
6908   OBJDUMP="$ac_cv_prog_OBJDUMP"
6909 fi
6910
6911   ;;
6912
6913 esac
6914
6915 need_locks="$enable_libtool_lock"
6916
6917
6918 ac_ext=c
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6925 # On Suns, sometimes $CPP names a directory.
6926 if test -n "$CPP" && test -d "$CPP"; then
6927   CPP=
6928 fi
6929 if test -z "$CPP"; then
6930   if test "${ac_cv_prog_CPP+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933       # Double quotes because CPP needs to be expanded
6934     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6935     do
6936       ac_preproc_ok=false
6937 for ac_c_preproc_warn_flag in '' yes
6938 do
6939   # Use a header file that comes with gcc, so configuring glibc
6940   # with a fresh cross-compiler works.
6941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942   # <limits.h> exists even on freestanding compilers.
6943   # On the NeXT, cc -E runs the code through the compiler's parser,
6944   # not just through cpp. "Syntax error" is here to catch this case.
6945   cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 #ifdef __STDC__
6952 # include <limits.h>
6953 #else
6954 # include <assert.h>
6955 #endif
6956                      Syntax error
6957 _ACEOF
6958 if { (ac_try="$ac_cpp conftest.$ac_ext"
6959 case "(($ac_try" in
6960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961   *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } >/dev/null && {
6971          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6972          test ! -s conftest.err
6973        }; then
6974   :
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979   # Broken: fails on valid input.
6980 continue
6981 fi
6982
6983 rm -f conftest.err conftest.$ac_ext
6984
6985   # OK, works on sane cases.  Now check whether nonexistent headers
6986   # can be detected and how.
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 #include <ac_nonexistent.h>
6994 _ACEOF
6995 if { (ac_try="$ac_cpp conftest.$ac_ext"
6996 case "(($ac_try" in
6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998   *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7002   ac_status=$?
7003   grep -v '^ *+' conftest.er1 >conftest.err
7004   rm -f conftest.er1
7005   cat conftest.err >&5
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } >/dev/null && {
7008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009          test ! -s conftest.err
7010        }; then
7011   # Broken: success on invalid input.
7012 continue
7013 else
7014   echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017   # Passes both tests.
7018 ac_preproc_ok=:
7019 break
7020 fi
7021
7022 rm -f conftest.err conftest.$ac_ext
7023
7024 done
7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026 rm -f conftest.err conftest.$ac_ext
7027 if $ac_preproc_ok; then
7028   break
7029 fi
7030
7031     done
7032     ac_cv_prog_CPP=$CPP
7033
7034 fi
7035   CPP=$ac_cv_prog_CPP
7036 else
7037   ac_cv_prog_CPP=$CPP
7038 fi
7039 { echo "$as_me:$LINENO: result: $CPP" >&5
7040 echo "${ECHO_T}$CPP" >&6; }
7041 ac_preproc_ok=false
7042 for ac_c_preproc_warn_flag in '' yes
7043 do
7044   # Use a header file that comes with gcc, so configuring glibc
7045   # with a fresh cross-compiler works.
7046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047   # <limits.h> exists even on freestanding compilers.
7048   # On the NeXT, cc -E runs the code through the compiler's parser,
7049   # not just through cpp. "Syntax error" is here to catch this case.
7050   cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #ifdef __STDC__
7057 # include <limits.h>
7058 #else
7059 # include <assert.h>
7060 #endif
7061                      Syntax error
7062 _ACEOF
7063 if { (ac_try="$ac_cpp conftest.$ac_ext"
7064 case "(($ac_try" in
7065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066   *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } >/dev/null && {
7076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7077          test ! -s conftest.err
7078        }; then
7079   :
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084   # Broken: fails on valid input.
7085 continue
7086 fi
7087
7088 rm -f conftest.err conftest.$ac_ext
7089
7090   # OK, works on sane cases.  Now check whether nonexistent headers
7091   # can be detected and how.
7092   cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h.  */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h.  */
7098 #include <ac_nonexistent.h>
7099 _ACEOF
7100 if { (ac_try="$ac_cpp conftest.$ac_ext"
7101 case "(($ac_try" in
7102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103   *) ac_try_echo=$ac_try;;
7104 esac
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7107   ac_status=$?
7108   grep -v '^ *+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } >/dev/null && {
7113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7114          test ! -s conftest.err
7115        }; then
7116   # Broken: success on invalid input.
7117 continue
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122   # Passes both tests.
7123 ac_preproc_ok=:
7124 break
7125 fi
7126
7127 rm -f conftest.err conftest.$ac_ext
7128
7129 done
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then
7133   :
7134 else
7135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&5
7137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." >&2;}
7139    { (exit 1); exit 1; }; }
7140 fi
7141
7142 ac_ext=c
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148
7149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7151 if test "${ac_cv_header_stdc+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 #include <stdlib.h>
7161 #include <stdarg.h>
7162 #include <string.h>
7163 #include <float.h>
7164
7165 int
7166 main ()
7167 {
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177   *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180   (eval "$ac_compile") 2>conftest.er1
7181   ac_status=$?
7182   grep -v '^ *+' conftest.er1 >conftest.err
7183   rm -f conftest.er1
7184   cat conftest.err >&5
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); } && {
7187          test -z "$ac_c_werror_flag" ||
7188          test ! -s conftest.err
7189        } && test -s conftest.$ac_objext; then
7190   ac_cv_header_stdc=yes
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195         ac_cv_header_stdc=no
7196 fi
7197
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199
7200 if test $ac_cv_header_stdc = yes; then
7201   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202   cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208 #include <string.h>
7209
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212   $EGREP "memchr" >/dev/null 2>&1; then
7213   :
7214 else
7215   ac_cv_header_stdc=no
7216 fi
7217 rm -f conftest*
7218
7219 fi
7220
7221 if test $ac_cv_header_stdc = yes; then
7222   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223   cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 #include <stdlib.h>
7230
7231 _ACEOF
7232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233   $EGREP "free" >/dev/null 2>&1; then
7234   :
7235 else
7236   ac_cv_header_stdc=no
7237 fi
7238 rm -f conftest*
7239
7240 fi
7241
7242 if test $ac_cv_header_stdc = yes; then
7243   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244   if test "$cross_compiling" = yes; then
7245   :
7246 else
7247   cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 #include <ctype.h>
7254 #include <stdlib.h>
7255 #if ((' ' & 0x0FF) == 0x020)
7256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7258 #else
7259 # define ISLOWER(c) \
7260                    (('a' <= (c) && (c) <= 'i') \
7261                      || ('j' <= (c) && (c) <= 'r') \
7262                      || ('s' <= (c) && (c) <= 'z'))
7263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7264 #endif
7265
7266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7267 int
7268 main ()
7269 {
7270   int i;
7271   for (i = 0; i < 256; i++)
7272     if (XOR (islower (i), ISLOWER (i))
7273         || toupper (i) != TOUPPER (i))
7274       return 2;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282   *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285   (eval "$ac_link") 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7289   { (case "(($ac_try" in
7290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291   *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294   (eval "$ac_try") 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; }; then
7298   :
7299 else
7300   echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ( exit $ac_status )
7305 ac_cv_header_stdc=no
7306 fi
7307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7308 fi
7309
7310
7311 fi
7312 fi
7313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7315 if test $ac_cv_header_stdc = yes; then
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define STDC_HEADERS 1
7319 _ACEOF
7320
7321 fi
7322
7323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7334                   inttypes.h stdint.h unistd.h
7335 do
7336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 $ac_includes_default
7349
7350 #include <$ac_header>
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356   *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359   (eval "$ac_compile") 2>conftest.er1
7360   ac_status=$?
7361   grep -v '^ *+' conftest.er1 >conftest.err
7362   rm -f conftest.er1
7363   cat conftest.err >&5
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); } && {
7366          test -z "$ac_c_werror_flag" ||
7367          test ! -s conftest.err
7368        } && test -s conftest.$ac_objext; then
7369   eval "$as_ac_Header=yes"
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374         eval "$as_ac_Header=no"
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 fi
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380                { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383   cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385 _ACEOF
7386
7387 fi
7388
7389 done
7390
7391
7392
7393 for ac_header in dlfcn.h
7394 do
7395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 fi
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403                { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7405 else
7406   # Is the header compilable?
7407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 $ac_includes_default
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422   *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425   (eval "$ac_compile") 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && {
7432          test -z "$ac_c_werror_flag" ||
7433          test ! -s conftest.err
7434        } && test -s conftest.$ac_objext; then
7435   ac_header_compiler=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440         ac_header_compiler=no
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6; }
7446
7447 # Is the header present?
7448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 #include <$ac_header>
7457 _ACEOF
7458 if { (ac_try="$ac_cpp conftest.$ac_ext"
7459 case "(($ac_try" in
7460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461   *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7465   ac_status=$?
7466   grep -v '^ *+' conftest.er1 >conftest.err
7467   rm -f conftest.er1
7468   cat conftest.err >&5
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); } >/dev/null && {
7471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7472          test ! -s conftest.err
7473        }; then
7474   ac_header_preproc=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479   ac_header_preproc=no
7480 fi
7481
7482 rm -f conftest.err conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6; }
7485
7486 # So?  What about this header?
7487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7488   yes:no: )
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7493     ac_header_preproc=yes
7494     ;;
7495   no:yes:* )
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7508     ( cat <<\_ASBOX
7509 ## --------------------------------------------- ##
7510 ## Report this to <http://www.openldap.org/its/> ##
7511 ## --------------------------------------------- ##
7512 _ASBOX
7513      ) | sed "s/^/$as_me: WARNING:     /" >&2
7514     ;;
7515 esac
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521   eval "$as_ac_Header=\$ac_header_preproc"
7522 fi
7523 ac_res=`eval echo '${'$as_ac_Header'}'`
7524                { echo "$as_me:$LINENO: result: $ac_res" >&5
7525 echo "${ECHO_T}$ac_res" >&6; }
7526
7527 fi
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529   cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7531 _ACEOF
7532
7533 fi
7534
7535 done
7536
7537
7538 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7539
7540 # find the maximum length of command line arguments
7541 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7542 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546     i=0
7547   teststring="ABCD"
7548
7549   case $build_os in
7550   msdosdjgpp*)
7551     # On DJGPP, this test can blow up pretty badly due to problems in libc
7552     # (any single argument exceeding 2000 bytes causes a buffer overrun
7553     # during glob expansion).  Even if it were fixed, the result of this
7554     # check would be larger than it should be.
7555     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7556     ;;
7557
7558   gnu*)
7559     # Under GNU Hurd, this test is not required because there is
7560     # no limit to the length of command line arguments.
7561     # Libtool will interpret -1 as no limit whatsoever
7562     lt_cv_sys_max_cmd_len=-1;
7563     ;;
7564
7565   cygwin* | mingw*)
7566     # On Win9x/ME, this test blows up -- it succeeds, but takes
7567     # about 5 minutes as the teststring grows exponentially.
7568     # Worse, since 9x/ME are not pre-emptively multitasking,
7569     # you end up with a "frozen" computer, even though with patience
7570     # the test eventually succeeds (with a max line length of 256k).
7571     # Instead, let's just punt: use the minimum linelength reported by
7572     # all of the supported platforms: 8192 (on NT/2K/XP).
7573     lt_cv_sys_max_cmd_len=8192;
7574     ;;
7575
7576   amigaos*)
7577     # On AmigaOS with pdksh, this test takes hours, literally.
7578     # So we just punt and use a minimum line length of 8192.
7579     lt_cv_sys_max_cmd_len=8192;
7580     ;;
7581
7582   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7583     # This has been around since 386BSD, at least.  Likely further.
7584     if test -x /sbin/sysctl; then
7585       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7586     elif test -x /usr/sbin/sysctl; then
7587       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7588     else
7589       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7590     fi
7591     # And add a safety zone
7592     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7594     ;;
7595   osf*)
7596     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7597     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7598     # nice to cause kernel panics so lets avoid the loop below.
7599     # First set a reasonable default.
7600     lt_cv_sys_max_cmd_len=16384
7601     #
7602     if test -x /sbin/sysconfig; then
7603       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7604         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7605       esac
7606     fi
7607     ;;
7608   *)
7609     # If test is not a shell built-in, we'll probably end up computing a
7610     # maximum length that is only half of the actual maximum length, but
7611     # we can't tell.
7612     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7613     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7614                = "XX$teststring") >/dev/null 2>&1 &&
7615             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7616             lt_cv_sys_max_cmd_len=$new_result &&
7617             test $i != 17 # 1/2 MB should be enough
7618     do
7619       i=`expr $i + 1`
7620       teststring=$teststring$teststring
7621     done
7622     teststring=
7623     # Add a significant safety factor because C++ compilers can tack on massive
7624     # amounts of additional arguments before passing them to the linker.
7625     # It appears as though 1/2 is a usable value.
7626     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7627     ;;
7628   esac
7629
7630 fi
7631
7632 if test -n $lt_cv_sys_max_cmd_len ; then
7633   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7634 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7635 else
7636   { echo "$as_me:$LINENO: result: none" >&5
7637 echo "${ECHO_T}none" >&6; }
7638 fi
7639
7640
7641
7642
7643 # Check for command to grab the raw symbol name followed by C symbol from nm.
7644 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7645 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7646 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649
7650 # These are sane defaults that work on at least a few old systems.
7651 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7652
7653 # Character class describing NM global symbol codes.
7654 symcode='[BCDEGRST]'
7655
7656 # Regexp to match symbols that can be accessed directly from C.
7657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7658
7659 # Transform an extracted symbol line into a proper C declaration
7660 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7661
7662 # Transform an extracted symbol line into symbol name and symbol address
7663 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'"
7664
7665 # Define system-specific variables.
7666 case $host_os in
7667 aix*)
7668   symcode='[BCDT]'
7669   ;;
7670 cygwin* | mingw* | pw32*)
7671   symcode='[ABCDGISTW]'
7672   ;;
7673 hpux*) # Its linker distinguishes data from code symbols
7674   if test "$host_cpu" = ia64; then
7675     symcode='[ABCDEGRST]'
7676   fi
7677   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7678   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'"
7679   ;;
7680 linux*)
7681   if test "$host_cpu" = ia64; then
7682     symcode='[ABCDGIRSTW]'
7683     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7684     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'"
7685   fi
7686   ;;
7687 irix* | nonstopux*)
7688   symcode='[BCDEGRST]'
7689   ;;
7690 osf*)
7691   symcode='[BCDEGQRST]'
7692   ;;
7693 solaris* | sysv5*)
7694   symcode='[BDRT]'
7695   ;;
7696 sysv4)
7697   symcode='[DFNSTU]'
7698   ;;
7699 esac
7700
7701 # Handle CRLF in mingw tool chain
7702 opt_cr=
7703 case $build_os in
7704 mingw*)
7705   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7706   ;;
7707 esac
7708
7709 # If we're using GNU nm, then use its standard symbol codes.
7710 case `$NM -V 2>&1` in
7711 *GNU* | *'with BFD'*)
7712   symcode='[ABCDGIRSTW]' ;;
7713 esac
7714
7715 # Try without a prefix undercore, then with it.
7716 for ac_symprfx in "" "_"; do
7717
7718   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7719   symxfrm="\\1 $ac_symprfx\\2 \\2"
7720
7721   # Write the raw and C identifiers.
7722   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7723
7724   # Check to see that the pipe works correctly.
7725   pipe_works=no
7726
7727   rm -f conftest*
7728   cat > conftest.$ac_ext <<EOF
7729 #ifdef __cplusplus
7730 extern "C" {
7731 #endif
7732 char nm_test_var;
7733 void nm_test_func(){}
7734 #ifdef __cplusplus
7735 }
7736 #endif
7737 int main(){nm_test_var='a';nm_test_func();return(0);}
7738 EOF
7739
7740   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741   (eval $ac_compile) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; then
7745     # Now try to grab the symbols.
7746     nlist=conftest.nm
7747     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7748   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } && test -s "$nlist"; then
7752       # Try sorting and uniquifying the output.
7753       if sort "$nlist" | uniq > "$nlist"T; then
7754         mv -f "$nlist"T "$nlist"
7755       else
7756         rm -f "$nlist"T
7757       fi
7758
7759       # Make sure that we snagged all the symbols we need.
7760       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7761         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7762           cat <<EOF > conftest.$ac_ext
7763 #ifdef __cplusplus
7764 extern "C" {
7765 #endif
7766
7767 EOF
7768           # Now generate the symbol file.
7769           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7770
7771           cat <<EOF >> conftest.$ac_ext
7772 #if defined (__STDC__) && __STDC__
7773 # define lt_ptr_t void *
7774 #else
7775 # define lt_ptr_t char *
7776 # define const
7777 #endif
7778
7779 /* The mapping between symbol names and symbols. */
7780 const struct {
7781   const char *name;
7782   lt_ptr_t address;
7783 }
7784 lt_preloaded_symbols[] =
7785 {
7786 EOF
7787           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7788           cat <<\EOF >> conftest.$ac_ext
7789   {0, (lt_ptr_t) 0}
7790 };
7791
7792 #ifdef __cplusplus
7793 }
7794 #endif
7795 EOF
7796           # Now try linking the two files.
7797           mv conftest.$ac_objext conftstm.$ac_objext
7798           lt_save_LIBS="$LIBS"
7799           lt_save_CFLAGS="$CFLAGS"
7800           LIBS="conftstm.$ac_objext"
7801           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7802           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803   (eval $ac_link) 2>&5
7804   ac_status=$?
7805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7807             pipe_works=yes
7808           fi
7809           LIBS="$lt_save_LIBS"
7810           CFLAGS="$lt_save_CFLAGS"
7811         else
7812           echo "cannot find nm_test_func in $nlist" >&5
7813         fi
7814       else
7815         echo "cannot find nm_test_var in $nlist" >&5
7816       fi
7817     else
7818       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7819     fi
7820   else
7821     echo "$progname: failed program was:" >&5
7822     cat conftest.$ac_ext >&5
7823   fi
7824   rm -f conftest* conftst*
7825
7826   # Do not use the global_symbol_pipe unless it works.
7827   if test "$pipe_works" = yes; then
7828     break
7829   else
7830     lt_cv_sys_global_symbol_pipe=
7831   fi
7832 done
7833
7834 fi
7835
7836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7837   lt_cv_sys_global_symbol_to_cdecl=
7838 fi
7839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7840   { echo "$as_me:$LINENO: result: failed" >&5
7841 echo "${ECHO_T}failed" >&6; }
7842 else
7843   { echo "$as_me:$LINENO: result: ok" >&5
7844 echo "${ECHO_T}ok" >&6; }
7845 fi
7846
7847 { echo "$as_me:$LINENO: checking for objdir" >&5
7848 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7849 if test "${lt_cv_objdir+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   rm -f .libs 2>/dev/null
7853 mkdir .libs 2>/dev/null
7854 if test -d .libs; then
7855   lt_cv_objdir=.libs
7856 else
7857   # MS-DOS does not allow filenames that begin with a dot.
7858   lt_cv_objdir=_libs
7859 fi
7860 rmdir .libs 2>/dev/null
7861 fi
7862 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7863 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7864 objdir=$lt_cv_objdir
7865
7866
7867
7868
7869
7870 case $host_os in
7871 aix3*)
7872   # AIX sometimes has problems with the GCC collect2 program.  For some
7873   # reason, if we set the COLLECT_NAMES environment variable, the problems
7874   # vanish in a puff of smoke.
7875   if test "X${COLLECT_NAMES+set}" != Xset; then
7876     COLLECT_NAMES=
7877     export COLLECT_NAMES
7878   fi
7879   ;;
7880 esac
7881
7882 # Sed substitution that helps us do robust quoting.  It backslashifies
7883 # metacharacters that are still active within double-quoted strings.
7884 Xsed='sed -e 1s/^X//'
7885 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7886
7887 # Same as above, but do not quote variable references.
7888 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7889
7890 # Sed substitution to delay expansion of an escaped shell variable in a
7891 # double_quote_subst'ed string.
7892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7893
7894 # Sed substitution to avoid accidental globbing in evaled expressions
7895 no_glob_subst='s/\*/\\\*/g'
7896
7897 # Constants:
7898 rm="rm -f"
7899
7900 # Global variables:
7901 default_ofile=libtool
7902 can_build_shared=yes
7903
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7906 libext=a
7907 ltmain="$ac_aux_dir/ltmain.sh"
7908 ofile="$default_ofile"
7909 with_gnu_ld="$lt_cv_prog_gnu_ld"
7910
7911 if test -n "$ac_tool_prefix"; then
7912   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}ar; ac_word=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   if test -n "$AR"; then
7920   ac_cv_prog_AR="$AR" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927   for ac_exec_ext in '' $ac_executable_extensions; do
7928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929     ac_cv_prog_AR="${ac_tool_prefix}ar"
7930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 AR=$ac_cv_prog_AR
7940 if test -n "$AR"; then
7941   { echo "$as_me:$LINENO: result: $AR" >&5
7942 echo "${ECHO_T}$AR" >&6; }
7943 else
7944   { echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_AR"; then
7951   ac_ct_AR=$AR
7952   # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   if test -n "$ac_ct_AR"; then
7960   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_prog_ac_ct_AR="ar"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7980 if test -n "$ac_ct_AR"; then
7981   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7982 echo "${ECHO_T}$ac_ct_AR" >&6; }
7983 else
7984   { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7986 fi
7987
7988   if test "x$ac_ct_AR" = x; then
7989     AR="false"
7990   else
7991     case $cross_compiling:$ac_tool_warned in
7992 yes:)
7993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7994 whose name does not start with the host triplet.  If you think this
7995 configuration is useful to you, please write to autoconf@gnu.org." >&5
7996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7997 whose name does not start with the host triplet.  If you think this
7998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7999 ac_tool_warned=yes ;;
8000 esac
8001     AR=$ac_ct_AR
8002   fi
8003 else
8004   AR="$ac_cv_prog_AR"
8005 fi
8006
8007 if test -n "$ac_tool_prefix"; then
8008   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_prog_RANLIB+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   if test -n "$RANLIB"; then
8016   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023   for ac_exec_ext in '' $ac_executable_extensions; do
8024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 RANLIB=$ac_cv_prog_RANLIB
8036 if test -n "$RANLIB"; then
8037   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8038 echo "${ECHO_T}$RANLIB" >&6; }
8039 else
8040   { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8042 fi
8043
8044
8045 fi
8046 if test -z "$ac_cv_prog_RANLIB"; then
8047   ac_ct_RANLIB=$RANLIB
8048   # Extract the first word of "ranlib", so it can be a program name with args.
8049 set dummy ranlib; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055   if test -n "$ac_ct_RANLIB"; then
8056   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063   for ac_exec_ext in '' $ac_executable_extensions; do
8064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065     ac_cv_prog_ac_ct_RANLIB="ranlib"
8066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8076 if test -n "$ac_ct_RANLIB"; then
8077   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8079 else
8080   { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8082 fi
8083
8084   if test "x$ac_ct_RANLIB" = x; then
8085     RANLIB=":"
8086   else
8087     case $cross_compiling:$ac_tool_warned in
8088 yes:)
8089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8090 whose name does not start with the host triplet.  If you think this
8091 configuration is useful to you, please write to autoconf@gnu.org." >&5
8092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8093 whose name does not start with the host triplet.  If you think this
8094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8095 ac_tool_warned=yes ;;
8096 esac
8097     RANLIB=$ac_ct_RANLIB
8098   fi
8099 else
8100   RANLIB="$ac_cv_prog_RANLIB"
8101 fi
8102
8103 if test -n "$ac_tool_prefix"; then
8104   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8105 set dummy ${ac_tool_prefix}strip; ac_word=$2
8106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8108 if test "${ac_cv_prog_STRIP+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   if test -n "$STRIP"; then
8112   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119   for ac_exec_ext in '' $ac_executable_extensions; do
8120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 STRIP=$ac_cv_prog_STRIP
8132 if test -n "$STRIP"; then
8133   { echo "$as_me:$LINENO: result: $STRIP" >&5
8134 echo "${ECHO_T}$STRIP" >&6; }
8135 else
8136   { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8138 fi
8139
8140
8141 fi
8142 if test -z "$ac_cv_prog_STRIP"; then
8143   ac_ct_STRIP=$STRIP
8144   # Extract the first word of "strip", so it can be a program name with args.
8145 set dummy strip; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   if test -n "$ac_ct_STRIP"; then
8152   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157   IFS=$as_save_IFS
8158   test -z "$as_dir" && as_dir=.
8159   for ac_exec_ext in '' $ac_executable_extensions; do
8160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161     ac_cv_prog_ac_ct_STRIP="strip"
8162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163     break 2
8164   fi
8165 done
8166 done
8167 IFS=$as_save_IFS
8168
8169 fi
8170 fi
8171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8172 if test -n "$ac_ct_STRIP"; then
8173   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8174 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8175 else
8176   { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8178 fi
8179
8180   if test "x$ac_ct_STRIP" = x; then
8181     STRIP=":"
8182   else
8183     case $cross_compiling:$ac_tool_warned in
8184 yes:)
8185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8186 whose name does not start with the host triplet.  If you think this
8187 configuration is useful to you, please write to autoconf@gnu.org." >&5
8188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8189 whose name does not start with the host triplet.  If you think this
8190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8191 ac_tool_warned=yes ;;
8192 esac
8193     STRIP=$ac_ct_STRIP
8194   fi
8195 else
8196   STRIP="$ac_cv_prog_STRIP"
8197 fi
8198
8199
8200 old_CC="$CC"
8201 old_CFLAGS="$CFLAGS"
8202
8203 # Set sane defaults for various variables
8204 test -z "$AR" && AR=ar
8205 test -z "$AR_FLAGS" && AR_FLAGS=cru
8206 test -z "$AS" && AS=as
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$DLLTOOL" && DLLTOOL=dlltool
8210 test -z "$LD" && LD=ld
8211 test -z "$LN_S" && LN_S="ln -s"
8212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213 test -z "$NM" && NM=nm
8214 test -z "$SED" && SED=sed
8215 test -z "$OBJDUMP" && OBJDUMP=objdump
8216 test -z "$RANLIB" && RANLIB=:
8217 test -z "$STRIP" && STRIP=:
8218 test -z "$ac_objext" && ac_objext=o
8219
8220 # Determine commands to create old-style static archives.
8221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8222 old_postinstall_cmds='chmod 644 $oldlib'
8223 old_postuninstall_cmds=
8224
8225 if test -n "$RANLIB"; then
8226   case $host_os in
8227   openbsd*)
8228     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8229     ;;
8230   *)
8231     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8232     ;;
8233   esac
8234   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8235 fi
8236
8237 for cc_temp in $compiler""; do
8238   case $cc_temp in
8239     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8240     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8241     \-*) ;;
8242     *) break;;
8243   esac
8244 done
8245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8246
8247
8248 # Only perform the check for file, if the check method requires it
8249 case $deplibs_check_method in
8250 file_magic*)
8251   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8252     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8253 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257   case $MAGIC_CMD in
8258 [\\/*] |  ?:[\\/]*)
8259   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8260   ;;
8261 *)
8262   lt_save_MAGIC_CMD="$MAGIC_CMD"
8263   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8264   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8265   for ac_dir in $ac_dummy; do
8266     IFS="$lt_save_ifs"
8267     test -z "$ac_dir" && ac_dir=.
8268     if test -f $ac_dir/${ac_tool_prefix}file; then
8269       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8270       if test -n "$file_magic_test_file"; then
8271         case $deplibs_check_method in
8272         "file_magic "*)
8273           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8274           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8275           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8276             $EGREP "$file_magic_regex" > /dev/null; then
8277             :
8278           else
8279             cat <<EOF 1>&2
8280
8281 *** Warning: the command libtool uses to detect shared libraries,
8282 *** $file_magic_cmd, produces output that libtool cannot recognize.
8283 *** The result is that libtool may fail to recognize shared libraries
8284 *** as such.  This will affect the creation of libtool libraries that
8285 *** depend on shared libraries, but programs linked with such libtool
8286 *** libraries will work regardless of this problem.  Nevertheless, you
8287 *** may want to report the problem to your system manager and/or to
8288 *** bug-libtool@gnu.org
8289
8290 EOF
8291           fi ;;
8292         esac
8293       fi
8294       break
8295     fi
8296   done
8297   IFS="$lt_save_ifs"
8298   MAGIC_CMD="$lt_save_MAGIC_CMD"
8299   ;;
8300 esac
8301 fi
8302
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if test -n "$MAGIC_CMD"; then
8305   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8307 else
8308   { echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6; }
8310 fi
8311
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313   if test -n "$ac_tool_prefix"; then
8314     { echo "$as_me:$LINENO: checking for file" >&5
8315 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   case $MAGIC_CMD in
8320 [\\/*] |  ?:[\\/]*)
8321   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322   ;;
8323 *)
8324   lt_save_MAGIC_CMD="$MAGIC_CMD"
8325   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327   for ac_dir in $ac_dummy; do
8328     IFS="$lt_save_ifs"
8329     test -z "$ac_dir" && ac_dir=.
8330     if test -f $ac_dir/file; then
8331       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332       if test -n "$file_magic_test_file"; then
8333         case $deplibs_check_method in
8334         "file_magic "*)
8335           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338             $EGREP "$file_magic_regex" > /dev/null; then
8339             :
8340           else
8341             cat <<EOF 1>&2
8342
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such.  This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem.  Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8351
8352 EOF
8353           fi ;;
8354         esac
8355       fi
8356       break
8357     fi
8358   done
8359   IFS="$lt_save_ifs"
8360   MAGIC_CMD="$lt_save_MAGIC_CMD"
8361   ;;
8362 esac
8363 fi
8364
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8368 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8369 else
8370   { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8372 fi
8373
8374   else
8375     MAGIC_CMD=:
8376   fi
8377 fi
8378
8379   fi
8380   ;;
8381 esac
8382
8383 enable_dlopen=yes
8384 enable_win32_dll=yes
8385
8386 # Check whether --enable-libtool-lock was given.
8387 if test "${enable_libtool_lock+set}" = set; then
8388   enableval=$enable_libtool_lock;
8389 fi
8390
8391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8392
8393
8394 # Check whether --with-pic was given.
8395 if test "${with_pic+set}" = set; then
8396   withval=$with_pic; pic_mode="$withval"
8397 else
8398   pic_mode=default
8399 fi
8400
8401 test -z "$pic_mode" && pic_mode=default
8402
8403 # Use C for the default configuration in the libtool script
8404 tagname=
8405 lt_save_CC="$CC"
8406 ac_ext=c
8407 ac_cpp='$CPP $CPPFLAGS'
8408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411
8412
8413 # Source file extension for C test sources.
8414 ac_ext=c
8415
8416 # Object file extension for compiled C test sources.
8417 objext=o
8418 objext=$objext
8419
8420 # Code to be used in simple compile tests
8421 lt_simple_compile_test_code="int some_variable = 0;\n"
8422
8423 # Code to be used in simple link tests
8424 lt_simple_link_test_code='int main(){return(0);}\n'
8425
8426
8427 # If no C compiler was specified, use CC.
8428 LTCC=${LTCC-"$CC"}
8429
8430 # Allow CC to be a program name with arguments.
8431 compiler=$CC
8432
8433
8434 # save warnings/boilerplate of simple test code
8435 ac_outfile=conftest.$ac_objext
8436 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8438 _lt_compiler_boilerplate=`cat conftest.err`
8439 $rm conftest*
8440
8441 ac_outfile=conftest.$ac_objext
8442 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8444 _lt_linker_boilerplate=`cat conftest.err`
8445 $rm conftest*
8446
8447
8448 #
8449 # Check for any special shared library compilation flags.
8450 #
8451 lt_prog_cc_shlib=
8452 if test "$GCC" = no; then
8453   case $host_os in
8454   sco3.2v5*)
8455     lt_prog_cc_shlib='-belf'
8456     ;;
8457   esac
8458 fi
8459 if test -n "$lt_prog_cc_shlib"; then
8460   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8461 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8462   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8463   else
8464     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8465 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8466     lt_cv_prog_cc_can_build_shared=no
8467   fi
8468 fi
8469
8470
8471 #
8472 # Check to make sure the static flag actually works.
8473 #
8474 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8475 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8476 if test "${lt_prog_compiler_static_works+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   lt_prog_compiler_static_works=no
8480    save_LDFLAGS="$LDFLAGS"
8481    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8482    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8483    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484      # The linker can only warn and ignore the option if not recognized
8485      # So say no if there are warnings
8486      if test -s conftest.err; then
8487        # Append any errors to the config.log.
8488        cat conftest.err 1>&5
8489        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8490        $SED '/^$/d' conftest.err >conftest.er2
8491        if diff conftest.exp conftest.er2 >/dev/null; then
8492          lt_prog_compiler_static_works=yes
8493        fi
8494      else
8495        lt_prog_compiler_static_works=yes
8496      fi
8497    fi
8498    $rm conftest*
8499    LDFLAGS="$save_LDFLAGS"
8500
8501 fi
8502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8503 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8504
8505 if test x"$lt_prog_compiler_static_works" = xyes; then
8506     :
8507 else
8508     lt_prog_compiler_static=
8509 fi
8510
8511
8512
8513
8514 lt_prog_compiler_no_builtin_flag=
8515
8516 if test "$GCC" = yes; then
8517   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8518
8519
8520 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   lt_cv_prog_compiler_rtti_exceptions=no
8526   ac_outfile=conftest.$ac_objext
8527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528    lt_compiler_flag="-fno-rtti -fno-exceptions"
8529    # Insert the option either (1) after the last *FLAGS variable, or
8530    # (2) before a word containing "conftest.", or (3) at the end.
8531    # Note that $ac_compile itself does not contain backslashes and begins
8532    # with a dollar sign (not a hyphen), so the echo should work correctly.
8533    # The option is referenced via a variable to avoid confusing sed.
8534    lt_compile=`echo "$ac_compile" | $SED \
8535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537    -e 's:$: $lt_compiler_flag:'`
8538    (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539    (eval "$lt_compile" 2>conftest.err)
8540    ac_status=$?
8541    cat conftest.err >&5
8542    echo "$as_me:8542: \$? = $ac_status" >&5
8543    if (exit $ac_status) && test -s "$ac_outfile"; then
8544      # The compiler can only warn and ignore the option if not recognized
8545      # So say no if there are warnings other than the usual output.
8546      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8547      $SED '/^$/d' conftest.err >conftest.er2
8548      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8549        lt_cv_prog_compiler_rtti_exceptions=yes
8550      fi
8551    fi
8552    $rm conftest*
8553
8554 fi
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8557
8558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8560 else
8561     :
8562 fi
8563
8564 fi
8565
8566 lt_prog_compiler_wl=
8567 lt_prog_compiler_pic=
8568 lt_prog_compiler_static=
8569
8570 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8571 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8572
8573   if test "$GCC" = yes; then
8574     lt_prog_compiler_wl='-Wl,'
8575     lt_prog_compiler_static='-static'
8576
8577     case $host_os in
8578       aix*)
8579       # All AIX code is PIC.
8580       if test "$host_cpu" = ia64; then
8581         # AIX 5 now supports IA64 processor
8582         lt_prog_compiler_static='-Bstatic'
8583       fi
8584       ;;
8585
8586     amigaos*)
8587       # FIXME: we need at least 68020 code to build shared libraries, but
8588       # adding the `-m68020' flag to GCC prevents building anything better,
8589       # like `-m68040'.
8590       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8591       ;;
8592
8593     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594       # PIC is the default for these OSes.
8595       ;;
8596
8597     mingw* | pw32* | os2*)
8598       # This hack is so that the source file can tell whether it is being
8599       # built for inclusion in a dll (and should export symbols for example).
8600       lt_prog_compiler_pic='-DDLL_EXPORT'
8601       ;;
8602
8603     darwin* | rhapsody*)
8604       # PIC is the default on this platform
8605       # Common symbols not allowed in MH_DYLIB files
8606       lt_prog_compiler_pic='-fno-common'
8607       ;;
8608
8609     msdosdjgpp*)
8610       # Just because we use GCC doesn't mean we suddenly get shared libraries
8611       # on systems that don't support them.
8612       lt_prog_compiler_can_build_shared=no
8613       enable_shared=no
8614       ;;
8615
8616     sysv4*MP*)
8617       if test -d /usr/nec; then
8618         lt_prog_compiler_pic=-Kconform_pic
8619       fi
8620       ;;
8621
8622     hpux*)
8623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624       # not for PA HP-UX.
8625       case $host_cpu in
8626       hppa*64*|ia64*)
8627         # +Z the default
8628         ;;
8629       *)
8630         lt_prog_compiler_pic='-fPIC'
8631         ;;
8632       esac
8633       ;;
8634
8635     *)
8636       lt_prog_compiler_pic='-fPIC'
8637       ;;
8638     esac
8639   else
8640     # PORTME Check for flag to pass linker flags through the system compiler.
8641     case $host_os in
8642     aix*)
8643       lt_prog_compiler_wl='-Wl,'
8644       if test "$host_cpu" = ia64; then
8645         # AIX 5 now supports IA64 processor
8646         lt_prog_compiler_static='-Bstatic'
8647       else
8648         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8649       fi
8650       ;;
8651       darwin*)
8652         # PIC is the default on this platform
8653         # Common symbols not allowed in MH_DYLIB files
8654        case $cc_basename in
8655          xlc*)
8656          lt_prog_compiler_pic='-qnocommon'
8657          lt_prog_compiler_wl='-Wl,'
8658          ;;
8659        esac
8660        ;;
8661
8662     mingw* | pw32* | os2*)
8663       # This hack is so that the source file can tell whether it is being
8664       # built for inclusion in a dll (and should export symbols for example).
8665       lt_prog_compiler_pic='-DDLL_EXPORT'
8666       ;;
8667
8668     hpux9* | hpux10* | hpux11*)
8669       lt_prog_compiler_wl='-Wl,'
8670       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8671       # not for PA HP-UX.
8672       case $host_cpu in
8673       hppa*64*|ia64*)
8674         # +Z the default
8675         ;;
8676       *)
8677         lt_prog_compiler_pic='+Z'
8678         ;;
8679       esac
8680       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8681       lt_prog_compiler_static='${wl}-a ${wl}archive'
8682       ;;
8683
8684     irix5* | irix6* | nonstopux*)
8685       lt_prog_compiler_wl='-Wl,'
8686       # PIC (with -KPIC) is the default.
8687       lt_prog_compiler_static='-non_shared'
8688       ;;
8689
8690     newsos6)
8691       lt_prog_compiler_pic='-KPIC'
8692       lt_prog_compiler_static='-Bstatic'
8693       ;;
8694
8695     linux*)
8696       case $cc_basename in
8697       icc* | ecc*)
8698         lt_prog_compiler_wl='-Wl,'
8699         lt_prog_compiler_pic='-KPIC'
8700         lt_prog_compiler_static='-static'
8701         ;;
8702       pgcc* | pgf77* | pgf90* | pgf95*)
8703         # Portland Group compilers (*not* the Pentium gcc compiler,
8704         # which looks to be a dead project)
8705         lt_prog_compiler_wl='-Wl,'
8706         lt_prog_compiler_pic='-fpic'
8707         lt_prog_compiler_static='-Bstatic'
8708         ;;
8709       ccc*)
8710         lt_prog_compiler_wl='-Wl,'
8711         # All Alpha code is PIC.
8712         lt_prog_compiler_static='-non_shared'
8713         ;;
8714       esac
8715       ;;
8716
8717     osf3* | osf4* | osf5*)
8718       lt_prog_compiler_wl='-Wl,'
8719       # All OSF/1 code is PIC.
8720       lt_prog_compiler_static='-non_shared'
8721       ;;
8722
8723     sco3.2v5*)
8724       lt_prog_compiler_pic='-Kpic'
8725       lt_prog_compiler_static='-dn'
8726       ;;
8727
8728     solaris*)
8729       lt_prog_compiler_pic='-KPIC'
8730       lt_prog_compiler_static='-Bstatic'
8731       case $cc_basename in
8732       f77* | f90* | f95*)
8733         lt_prog_compiler_wl='-Qoption ld ';;
8734       *)
8735         lt_prog_compiler_wl='-Wl,';;
8736       esac
8737       ;;
8738
8739     sunos4*)
8740       lt_prog_compiler_wl='-Qoption ld '
8741       lt_prog_compiler_pic='-PIC'
8742       lt_prog_compiler_static='-Bstatic'
8743       ;;
8744
8745     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8746       lt_prog_compiler_wl='-Wl,'
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     sysv4*MP*)
8752       if test -d /usr/nec ;then
8753         lt_prog_compiler_pic='-Kconform_pic'
8754         lt_prog_compiler_static='-Bstatic'
8755       fi
8756       ;;
8757
8758     unicos*)
8759       lt_prog_compiler_wl='-Wl,'
8760       lt_prog_compiler_can_build_shared=no
8761       ;;
8762
8763     uts4*)
8764       lt_prog_compiler_pic='-pic'
8765       lt_prog_compiler_static='-Bstatic'
8766       ;;
8767
8768     *)
8769       lt_prog_compiler_can_build_shared=no
8770       ;;
8771     esac
8772   fi
8773
8774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8775 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8776
8777 #
8778 # Check to make sure the PIC flag actually works.
8779 #
8780 if test -n "$lt_prog_compiler_pic"; then
8781
8782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8784 if test "${lt_prog_compiler_pic_works+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   lt_prog_compiler_pic_works=no
8788   ac_outfile=conftest.$ac_objext
8789    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791    # Insert the option either (1) after the last *FLAGS variable, or
8792    # (2) before a word containing "conftest.", or (3) at the end.
8793    # Note that $ac_compile itself does not contain backslashes and begins
8794    # with a dollar sign (not a hyphen), so the echo should work correctly.
8795    # The option is referenced via a variable to avoid confusing sed.
8796    lt_compile=`echo "$ac_compile" | $SED \
8797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799    -e 's:$: $lt_compiler_flag:'`
8800    (eval echo "\"\$as_me:8800: $lt_compile\"" >&5)
8801    (eval "$lt_compile" 2>conftest.err)
8802    ac_status=$?
8803    cat conftest.err >&5
8804    echo "$as_me:8804: \$? = $ac_status" >&5
8805    if (exit $ac_status) && test -s "$ac_outfile"; then
8806      # The compiler can only warn and ignore the option if not recognized
8807      # So say no if there are warnings other than the usual output.
8808      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8809      $SED '/^$/d' conftest.err >conftest.er2
8810      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8811        lt_prog_compiler_pic_works=yes
8812      fi
8813    fi
8814    $rm conftest*
8815
8816 fi
8817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8818 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8819
8820 if test x"$lt_prog_compiler_pic_works" = xyes; then
8821     case $lt_prog_compiler_pic in
8822      "" | " "*) ;;
8823      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824      esac
8825 else
8826     lt_prog_compiler_pic=
8827      lt_prog_compiler_can_build_shared=no
8828 fi
8829
8830 fi
8831 case $host_os in
8832   # For platforms which do not support PIC, -DPIC is meaningless:
8833   *djgpp*)
8834     lt_prog_compiler_pic=
8835     ;;
8836   *)
8837     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8838     ;;
8839 esac
8840
8841 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   lt_cv_prog_compiler_c_o=no
8847    $rm -r conftest 2>/dev/null
8848    mkdir conftest
8849    cd conftest
8850    mkdir out
8851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853    lt_compiler_flag="-o out/conftest2.$ac_objext"
8854    # Insert the option either (1) after the last *FLAGS variable, or
8855    # (2) before a word containing "conftest.", or (3) at the end.
8856    # Note that $ac_compile itself does not contain backslashes and begins
8857    # with a dollar sign (not a hyphen), so the echo should work correctly.
8858    lt_compile=`echo "$ac_compile" | $SED \
8859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861    -e 's:$: $lt_compiler_flag:'`
8862    (eval echo "\"\$as_me:8862: $lt_compile\"" >&5)
8863    (eval "$lt_compile" 2>out/conftest.err)
8864    ac_status=$?
8865    cat out/conftest.err >&5
8866    echo "$as_me:8866: \$? = $ac_status" >&5
8867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8868    then
8869      # The compiler can only warn and ignore the option if not recognized
8870      # So say no if there are warnings
8871      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8872      $SED '/^$/d' out/conftest.err >out/conftest.er2
8873      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874        lt_cv_prog_compiler_c_o=yes
8875      fi
8876    fi
8877    chmod u+w . 2>&5
8878    $rm conftest*
8879    # SGI C++ compiler will create directory out/ii_files/ for
8880    # template instantiation
8881    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8882    $rm out/* && rmdir out
8883    cd ..
8884    rmdir conftest
8885    $rm conftest*
8886
8887 fi
8888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8890
8891
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894   # do not overwrite the value of need_locks provided by the user
8895   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8896 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8897   hard_links=yes
8898   $rm conftest*
8899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900   touch conftest.a
8901   ln conftest.a conftest.b 2>&5 || hard_links=no
8902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903   { echo "$as_me:$LINENO: result: $hard_links" >&5
8904 echo "${ECHO_T}$hard_links" >&6; }
8905   if test "$hard_links" = no; then
8906     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8908     need_locks=warn
8909   fi
8910 else
8911   need_locks=no
8912 fi
8913
8914 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8916
8917   runpath_var=
8918   allow_undefined_flag=
8919   enable_shared_with_static_runtimes=no
8920   archive_cmds=
8921   archive_expsym_cmds=
8922   old_archive_From_new_cmds=
8923   old_archive_from_expsyms_cmds=
8924   export_dynamic_flag_spec=
8925   whole_archive_flag_spec=
8926   thread_safe_flag_spec=
8927   hardcode_libdir_flag_spec=
8928   hardcode_libdir_flag_spec_ld=
8929   hardcode_libdir_separator=
8930   hardcode_direct=no
8931   hardcode_minus_L=no
8932   hardcode_shlibpath_var=unsupported
8933   link_all_deplibs=unknown
8934   hardcode_automatic=no
8935   module_cmds=
8936   module_expsym_cmds=
8937   always_export_symbols=no
8938   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8939   # include_expsyms should be a list of space-separated symbols to be *always*
8940   # included in the symbol list
8941   include_expsyms=
8942   # exclude_expsyms can be an extended regexp of symbols to exclude
8943   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8944   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8945   # as well as any symbol that contains `d'.
8946   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8947   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8948   # platforms (ab)use it in PIC code, but their linkers get confused if
8949   # the symbol is explicitly referenced.  Since portable code cannot
8950   # rely on this symbol name, it's probably fine to never include it in
8951   # preloaded symbol tables.
8952   extract_expsyms_cmds=
8953   # Just being paranoid about ensuring that cc_basename is set.
8954   for cc_temp in $compiler""; do
8955   case $cc_temp in
8956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8958     \-*) ;;
8959     *) break;;
8960   esac
8961 done
8962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8963
8964   case $host_os in
8965   cygwin* | mingw* | pw32*)
8966     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8967     # When not using gcc, we currently assume that we are using
8968     # Microsoft Visual C++.
8969     if test "$GCC" != yes; then
8970       with_gnu_ld=no
8971     fi
8972     ;;
8973   openbsd*)
8974     with_gnu_ld=no
8975     ;;
8976   esac
8977
8978   ld_shlibs=yes
8979   if test "$with_gnu_ld" = yes; then
8980     # If archive_cmds runs LD, not CC, wlarc should be empty
8981     wlarc='${wl}'
8982
8983     # Set some defaults for GNU ld with shared library support. These
8984     # are reset later if shared libraries are not supported. Putting them
8985     # here allows them to be overridden if necessary.
8986     runpath_var=LD_RUN_PATH
8987     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8988     export_dynamic_flag_spec='${wl}--export-dynamic'
8989     # ancient GNU ld didn't support --whole-archive et. al.
8990     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8991         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8992       else
8993         whole_archive_flag_spec=
8994     fi
8995     supports_anon_versioning=no
8996     case `$LD -v 2>/dev/null` in
8997       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000       *\ 2.11.*) ;; # other 2.11 versions
9001       *) supports_anon_versioning=yes ;;
9002     esac
9003
9004     # See if GNU ld supports shared libraries.
9005     case $host_os in
9006     aix3* | aix4* | aix5*)
9007       # On AIX/PPC, the GNU linker is very broken
9008       if test "$host_cpu" != ia64; then
9009         ld_shlibs=no
9010         cat <<EOF 1>&2
9011
9012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9013 *** to be unable to reliably create shared libraries on AIX.
9014 *** Therefore, libtool is disabling shared libraries support.  If you
9015 *** really care for shared libraries, you may want to modify your PATH
9016 *** so that a non-GNU linker is found, and then restart.
9017
9018 EOF
9019       fi
9020       ;;
9021
9022     amigaos*)
9023       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)'
9024       hardcode_libdir_flag_spec='-L$libdir'
9025       hardcode_minus_L=yes
9026
9027       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9028       # that the semantics of dynamic libraries on AmigaOS, at least up
9029       # to version 4, is to share data among multiple programs linked
9030       # with the same dynamic library.  Since this doesn't match the
9031       # behavior of shared libraries on other platforms, we can't use
9032       # them.
9033       ld_shlibs=no
9034       ;;
9035
9036     beos*)
9037       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9038         allow_undefined_flag=unsupported
9039         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9040         # support --undefined.  This deserves some investigation.  FIXME
9041         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042       else
9043         ld_shlibs=no
9044       fi
9045       ;;
9046
9047     cygwin* | mingw* | pw32*)
9048       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9049       # as there is no search path for DLLs.
9050       hardcode_libdir_flag_spec='-L$libdir'
9051       allow_undefined_flag=unsupported
9052       always_export_symbols=no
9053       enable_shared_with_static_runtimes=yes
9054       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9055
9056       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9057         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9058         # If the export-symbols file already is a .def file (1st line
9059         # is EXPORTS), use it as is; otherwise, prepend...
9060         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061           cp $export_symbols $output_objdir/$soname.def;
9062         else
9063           echo EXPORTS > $output_objdir/$soname.def;
9064           cat $export_symbols >> $output_objdir/$soname.def;
9065         fi~
9066         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9067       else
9068         ld_shlibs=no
9069       fi
9070       ;;
9071
9072     linux*)
9073       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074         tmp_addflag=
9075         case $cc_basename,$host_cpu in
9076         pgcc*)                          # Portland Group C compiler
9077           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'
9078           tmp_addflag=' $pic_flag'
9079           ;;
9080         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9081           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'
9082           tmp_addflag=' $pic_flag -Mnomain' ;;
9083         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9084           tmp_addflag=' -i_dynamic' ;;
9085         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9086           tmp_addflag=' -i_dynamic -nofor_main' ;;
9087         ifc* | ifort*)                  # Intel Fortran compiler
9088           tmp_addflag=' -nofor_main' ;;
9089         esac
9090         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091
9092         if test $supports_anon_versioning = yes; then
9093           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9094   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095   $echo "local: *; };" >> $output_objdir/$libname.ver~
9096           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9097         fi
9098       else
9099         ld_shlibs=no
9100       fi
9101       ;;
9102
9103     netbsd*)
9104       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9106         wlarc=
9107       else
9108         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110       fi
9111       ;;
9112
9113     solaris* | sysv5*)
9114       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9115         ld_shlibs=no
9116         cat <<EOF 1>&2
9117
9118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9119 *** create shared libraries on Solaris systems.  Therefore, libtool
9120 *** is disabling shared libraries support.  We urge you to upgrade GNU
9121 *** binutils to release 2.9.1 or newer.  Another option is to modify
9122 *** your PATH or compiler configuration so that the native linker is
9123 *** used, and then restart.
9124
9125 EOF
9126       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9127         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9129       else
9130         ld_shlibs=no
9131       fi
9132       ;;
9133
9134     sunos4*)
9135       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9136       wlarc=
9137       hardcode_direct=yes
9138       hardcode_shlibpath_var=no
9139       ;;
9140
9141     *)
9142       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9145       else
9146         ld_shlibs=no
9147       fi
9148       ;;
9149     esac
9150
9151     if test "$ld_shlibs" = no; then
9152       runpath_var=
9153       hardcode_libdir_flag_spec=
9154       export_dynamic_flag_spec=
9155       whole_archive_flag_spec=
9156     fi
9157   else
9158     # PORTME fill in a description of your system's linker (not GNU ld)
9159     case $host_os in
9160     aix3*)
9161       allow_undefined_flag=unsupported
9162       always_export_symbols=yes
9163       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'
9164       # Note: this linker hardcodes the directories in LIBPATH if there
9165       # are no directories specified by -L.
9166       hardcode_minus_L=yes
9167       if test "$GCC" = yes && test -z "$link_static_flag"; then
9168         # Neither direct hardcoding nor static linking is supported with a
9169         # broken collect2.
9170         hardcode_direct=unsupported
9171       fi
9172       ;;
9173
9174     aix4* | aix5*)
9175       if test "$host_cpu" = ia64; then
9176         # On IA64, the linker does run time linking by default, so we don't
9177         # have to do anything special.
9178         aix_use_runtimelinking=no
9179         exp_sym_flag='-Bexport'
9180         no_entry_flag=""
9181       else
9182         # If we're using GNU nm, then we don't want the "-C" option.
9183         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9184         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9185           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'
9186         else
9187           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'
9188         fi
9189         aix_use_runtimelinking=no
9190
9191         # Test if we are trying to use run time linking or normal
9192         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193         # need to do runtime linking.
9194         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9195           for ld_flag in $LDFLAGS; do
9196           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197             aix_use_runtimelinking=yes
9198             break
9199           fi
9200           done
9201         esac
9202
9203         exp_sym_flag='-bexport'
9204         no_entry_flag='-bnoentry'
9205       fi
9206
9207       # When large executables or shared objects are built, AIX ld can
9208       # have problems creating the table of contents.  If linking a library
9209       # or program results in "error TOC overflow" add -mminimal-toc to
9210       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9211       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9212
9213       archive_cmds=''
9214       hardcode_direct=yes
9215       hardcode_libdir_separator=':'
9216       link_all_deplibs=yes
9217
9218       if test "$GCC" = yes; then
9219         case $host_os in aix4.[012]|aix4.[012].*)
9220         # We only want to do this on AIX 4.2 and lower, the check
9221         # below for broken collect2 doesn't work under 4.3+
9222           collect2name=`${CC} -print-prog-name=collect2`
9223           if test -f "$collect2name" && \
9224            strings "$collect2name" | grep resolve_lib_name >/dev/null
9225           then
9226           # We have reworked collect2
9227           hardcode_direct=yes
9228           else
9229           # We have old collect2
9230           hardcode_direct=unsupported
9231           # It fails to find uninstalled libraries when the uninstalled
9232           # path is not listed in the libpath.  Setting hardcode_minus_L
9233           # to unsupported forces relinking
9234           hardcode_minus_L=yes
9235           hardcode_libdir_flag_spec='-L$libdir'
9236           hardcode_libdir_separator=
9237           fi
9238         esac
9239         shared_flag='-shared'
9240         if test "$aix_use_runtimelinking" = yes; then
9241           shared_flag="$shared_flag "'${wl}-G'
9242         fi
9243       else
9244         # not using gcc
9245         if test "$host_cpu" = ia64; then
9246         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9247         # chokes on -Wl,-G. The following line is correct:
9248           shared_flag='-G'
9249         else
9250         if test "$aix_use_runtimelinking" = yes; then
9251             shared_flag='${wl}-G'
9252           else
9253             shared_flag='${wl}-bM:SRE'
9254         fi
9255         fi
9256       fi
9257
9258       # It seems that -bexpall does not export symbols beginning with
9259       # underscore (_), so it is better to generate a list of symbols to export.
9260       always_export_symbols=yes
9261       if test "$aix_use_runtimelinking" = yes; then
9262         # Warning - without using the other runtime loading flags (-brtl),
9263         # -berok will link without error, but may produce a broken library.
9264         allow_undefined_flag='-berok'
9265        # Determine the default libpath from the value encoded in an empty executable.
9266        cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272
9273 int
9274 main ()
9275 {
9276
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (ac_try="$ac_link"
9283 case "(($ac_try" in
9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285   *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288   (eval "$ac_link") 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } && {
9295          test -z "$ac_c_werror_flag" ||
9296          test ! -s conftest.err
9297        } && test -s conftest$ac_exeext &&
9298        $as_test_x conftest$ac_exeext; then
9299
9300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9301 }'`
9302 # Check for a 64-bit object if we didn't find anything.
9303 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; }
9304 }'`; fi
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309
9310 fi
9311
9312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313       conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315
9316        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317         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"
9318        else
9319         if test "$host_cpu" = ia64; then
9320           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9321           allow_undefined_flag="-z nodefs"
9322           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"
9323         else
9324          # Determine the default libpath from the value encoded in an empty executable.
9325          cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 int
9333 main ()
9334 {
9335
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_link") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest$ac_exeext &&
9357        $as_test_x conftest$ac_exeext; then
9358
9359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9360 }'`
9361 # Check for a 64-bit object if we didn't find anything.
9362 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; }
9363 }'`; fi
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368
9369 fi
9370
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372       conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376           # Warning - without using the other run time loading flags,
9377           # -berok will link without error, but may produce a broken library.
9378           no_undefined_flag=' ${wl}-bernotok'
9379           allow_undefined_flag=' ${wl}-berok'
9380           # -bexpall does not export symbols beginning with underscore (_)
9381           always_export_symbols=yes
9382           # Exported symbols can be pulled into shared objects from archives
9383           whole_archive_flag_spec=' '
9384           archive_cmds_need_lc=yes
9385           # This is similar to how AIX traditionally builds its shared libraries.
9386           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'
9387         fi
9388       fi
9389       ;;
9390
9391     amigaos*)
9392       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)'
9393       hardcode_libdir_flag_spec='-L$libdir'
9394       hardcode_minus_L=yes
9395       # see comment about different semantics on the GNU ld section
9396       ld_shlibs=no
9397       ;;
9398
9399     bsdi[45]*)
9400       export_dynamic_flag_spec=-rdynamic
9401       ;;
9402
9403     cygwin* | mingw* | pw32*)
9404       # When not using gcc, we currently assume that we are using
9405       # Microsoft Visual C++.
9406       # hardcode_libdir_flag_spec is actually meaningless, as there is
9407       # no search path for DLLs.
9408       hardcode_libdir_flag_spec=' '
9409       allow_undefined_flag=unsupported
9410       # Tell ltmain to make .lib files, not .a files.
9411       libext=lib
9412       # Tell ltmain to make .dll files, not .so files.
9413       shrext_cmds=".dll"
9414       # FIXME: Setting linknames here is a bad hack.
9415       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9416       # The linker will automatically build a .lib file if we build a DLL.
9417       old_archive_From_new_cmds='true'
9418       # FIXME: Should let the user specify the lib program.
9419       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9420       fix_srcfile_path='`cygpath -w "$srcfile"`'
9421       enable_shared_with_static_runtimes=yes
9422       ;;
9423
9424     darwin* | rhapsody*)
9425       case $host_os in
9426         rhapsody* | darwin1.[012])
9427          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9428          ;;
9429        *) # Darwin 1.3 on
9430          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9431            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9432          else
9433            case ${MACOSX_DEPLOYMENT_TARGET} in
9434              10.[012])
9435                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9436                ;;
9437              10.*)
9438                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9439                ;;
9440            esac
9441          fi
9442          ;;
9443       esac
9444       archive_cmds_need_lc=no
9445       hardcode_direct=no
9446       hardcode_automatic=yes
9447       hardcode_shlibpath_var=unsupported
9448       whole_archive_flag_spec=''
9449       link_all_deplibs=yes
9450     if test "$GCC" = yes ; then
9451         output_verbose_link_cmd='echo'
9452         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9453       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455       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}'
9456       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}'
9457     else
9458       case $cc_basename in
9459         xlc*)
9460          output_verbose_link_cmd='echo'
9461          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9462          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9463           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9464          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}'
9465           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}'
9466           ;;
9467        *)
9468          ld_shlibs=no
9469           ;;
9470       esac
9471     fi
9472       ;;
9473
9474     dgux*)
9475       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476       hardcode_libdir_flag_spec='-L$libdir'
9477       hardcode_shlibpath_var=no
9478       ;;
9479
9480     freebsd1*)
9481       ld_shlibs=no
9482       ;;
9483
9484     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485     # support.  Future versions do this automatically, but an explicit c++rt0.o
9486     # does not break anything, and helps significantly (at the cost of a little
9487     # extra space).
9488     freebsd2.2*)
9489       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490       hardcode_libdir_flag_spec='-R$libdir'
9491       hardcode_direct=yes
9492       hardcode_shlibpath_var=no
9493       ;;
9494
9495     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9496     freebsd2*)
9497       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9498       hardcode_direct=yes
9499       hardcode_minus_L=yes
9500       hardcode_shlibpath_var=no
9501       ;;
9502
9503     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9504     freebsd* | kfreebsd*-gnu | dragonfly*)
9505       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506       hardcode_libdir_flag_spec='-R$libdir'
9507       hardcode_direct=yes
9508       hardcode_shlibpath_var=no
9509       ;;
9510
9511     hpux9*)
9512       if test "$GCC" = yes; then
9513         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'
9514       else
9515         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'
9516       fi
9517       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518       hardcode_libdir_separator=:
9519       hardcode_direct=yes
9520
9521       # hardcode_minus_L: Not really in the search PATH,
9522       # but as the default location of the library.
9523       hardcode_minus_L=yes
9524       export_dynamic_flag_spec='${wl}-E'
9525       ;;
9526
9527     hpux10* | hpux11*)
9528       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9529         case $host_cpu in
9530         hppa*64*|ia64*)
9531           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532           ;;
9533         *)
9534           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535           ;;
9536         esac
9537       else
9538         case $host_cpu in
9539         hppa*64*|ia64*)
9540           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9541           ;;
9542         *)
9543           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9544           ;;
9545         esac
9546       fi
9547       if test "$with_gnu_ld" = no; then
9548         case $host_cpu in
9549         hppa*64*)
9550           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551           hardcode_libdir_flag_spec_ld='+b $libdir'
9552           hardcode_libdir_separator=:
9553           hardcode_direct=no
9554           hardcode_shlibpath_var=no
9555           ;;
9556         ia64*)
9557           hardcode_libdir_flag_spec='-L$libdir'
9558           hardcode_direct=no
9559           hardcode_shlibpath_var=no
9560
9561           # hardcode_minus_L: Not really in the search PATH,
9562           # but as the default location of the library.
9563           hardcode_minus_L=yes
9564           ;;
9565         *)
9566           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567           hardcode_libdir_separator=:
9568           hardcode_direct=yes
9569           export_dynamic_flag_spec='${wl}-E'
9570
9571           # hardcode_minus_L: Not really in the search PATH,
9572           # but as the default location of the library.
9573           hardcode_minus_L=yes
9574           ;;
9575         esac
9576       fi
9577       ;;
9578
9579     irix5* | irix6* | nonstopux*)
9580       if test "$GCC" = yes; then
9581         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'
9582       else
9583         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'
9584         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9585       fi
9586       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587       hardcode_libdir_separator=:
9588       link_all_deplibs=yes
9589       ;;
9590
9591     netbsd*)
9592       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9593         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9594       else
9595         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9596       fi
9597       hardcode_libdir_flag_spec='-R$libdir'
9598       hardcode_direct=yes
9599       hardcode_shlibpath_var=no
9600       ;;
9601
9602     newsos6)
9603       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604       hardcode_direct=yes
9605       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606       hardcode_libdir_separator=:
9607       hardcode_shlibpath_var=no
9608       ;;
9609
9610     openbsd*)
9611       hardcode_direct=yes
9612       hardcode_shlibpath_var=no
9613       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9614         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9616         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9617         export_dynamic_flag_spec='${wl}-E'
9618       else
9619        case $host_os in
9620          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9621            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622            hardcode_libdir_flag_spec='-R$libdir'
9623            ;;
9624          *)
9625            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9627            ;;
9628        esac
9629       fi
9630       ;;
9631
9632     os2*)
9633       hardcode_libdir_flag_spec='-L$libdir'
9634       hardcode_minus_L=yes
9635       allow_undefined_flag=unsupported
9636       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'
9637       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9638       ;;
9639
9640     osf3*)
9641       if test "$GCC" = yes; then
9642         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9643         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'
9644       else
9645         allow_undefined_flag=' -expect_unresolved \*'
9646         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'
9647       fi
9648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649       hardcode_libdir_separator=:
9650       ;;
9651
9652     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9653       if test "$GCC" = yes; then
9654         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655         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'
9656         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9657       else
9658         allow_undefined_flag=' -expect_unresolved \*'
9659         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'
9660         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9661         $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'
9662
9663         # Both c and cxx compiler support -rpath directly
9664         hardcode_libdir_flag_spec='-rpath $libdir'
9665       fi
9666       hardcode_libdir_separator=:
9667       ;;
9668
9669     sco3.2v5*)
9670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671       hardcode_shlibpath_var=no
9672       export_dynamic_flag_spec='${wl}-Bexport'
9673       runpath_var=LD_RUN_PATH
9674       hardcode_runpath_var=yes
9675       ;;
9676
9677     solaris*)
9678       no_undefined_flag=' -z text'
9679       if test "$GCC" = yes; then
9680         wlarc='${wl}'
9681         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9684       else
9685         wlarc=''
9686         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9688         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9689       fi
9690       hardcode_libdir_flag_spec='-R$libdir'
9691       hardcode_shlibpath_var=no
9692       case $host_os in
9693       solaris2.[0-5] | solaris2.[0-5].*) ;;
9694       *)
9695         # The compiler driver will combine linker options so we
9696         # cannot just pass the convience library names through
9697         # without $wl, iff we do not link with $LD.
9698         # Luckily, gcc supports the same syntax we need for Sun Studio.
9699         # Supported since Solaris 2.6 (maybe 2.5.1?)
9700         case $wlarc in
9701         '')
9702           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9703         *)
9704           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' ;;
9705         esac ;;
9706       esac
9707       link_all_deplibs=yes
9708       ;;
9709
9710     sunos4*)
9711       if test "x$host_vendor" = xsequent; then
9712         # Use $CC to link under sequent, because it throws in some extra .o
9713         # files that make .init and .fini sections work.
9714         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9715       else
9716         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9717       fi
9718       hardcode_libdir_flag_spec='-L$libdir'
9719       hardcode_direct=yes
9720       hardcode_minus_L=yes
9721       hardcode_shlibpath_var=no
9722       ;;
9723
9724     sysv4)
9725       case $host_vendor in
9726         sni)
9727           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728           hardcode_direct=yes # is this really true???
9729         ;;
9730         siemens)
9731           ## LD is ld it makes a PLAMLIB
9732           ## CC just makes a GrossModule.
9733           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734           reload_cmds='$CC -r -o $output$reload_objs'
9735           hardcode_direct=no
9736         ;;
9737         motorola)
9738           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9740         ;;
9741       esac
9742       runpath_var='LD_RUN_PATH'
9743       hardcode_shlibpath_var=no
9744       ;;
9745
9746     sysv4.3*)
9747       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748       hardcode_shlibpath_var=no
9749       export_dynamic_flag_spec='-Bexport'
9750       ;;
9751
9752     sysv4*MP*)
9753       if test -d /usr/nec; then
9754         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755         hardcode_shlibpath_var=no
9756         runpath_var=LD_RUN_PATH
9757         hardcode_runpath_var=yes
9758         ld_shlibs=yes
9759       fi
9760       ;;
9761
9762     sysv4.2uw2*)
9763       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9764       hardcode_direct=yes
9765       hardcode_minus_L=no
9766       hardcode_shlibpath_var=no
9767       hardcode_runpath_var=yes
9768       runpath_var=LD_RUN_PATH
9769       ;;
9770
9771    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9772       no_undefined_flag='${wl}-z ${wl}text'
9773       if test "$GCC" = yes; then
9774         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775       else
9776         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777       fi
9778       runpath_var='LD_RUN_PATH'
9779       hardcode_shlibpath_var=no
9780       ;;
9781
9782     sysv5*)
9783       no_undefined_flag=' -z text'
9784       # $CC -shared without GNU ld will not create a library from C++
9785       # object files and a static libstdc++, better avoid it by now
9786       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9788                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9789       hardcode_libdir_flag_spec=
9790       hardcode_shlibpath_var=no
9791       runpath_var='LD_RUN_PATH'
9792       ;;
9793
9794     uts4*)
9795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796       hardcode_libdir_flag_spec='-L$libdir'
9797       hardcode_shlibpath_var=no
9798       ;;
9799
9800     *)
9801       ld_shlibs=no
9802       ;;
9803     esac
9804   fi
9805
9806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9807 echo "${ECHO_T}$ld_shlibs" >&6; }
9808 test "$ld_shlibs" = no && can_build_shared=no
9809
9810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811 if test "$GCC" = yes; then
9812   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9813 fi
9814
9815 #
9816 # Do we need to explicitly link libc?
9817 #
9818 case "x$archive_cmds_need_lc" in
9819 x|xyes)
9820   # Assume -lc should be added
9821   archive_cmds_need_lc=yes
9822
9823   if test "$enable_shared" = yes && test "$GCC" = yes; then
9824     case $archive_cmds in
9825     *'~'*)
9826       # FIXME: we may have to deal with multi-command sequences.
9827       ;;
9828     '$CC '*)
9829       # Test whether the compiler implicitly links with -lc since on some
9830       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831       # to ld, don't add -lc before -lgcc.
9832       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9834       $rm conftest*
9835       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9836
9837       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838   (eval $ac_compile) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } 2>conftest.err; then
9842         soname=conftest
9843         lib=conftest
9844         libobjs=conftest.$ac_objext
9845         deplibs=
9846         wl=$lt_prog_compiler_wl
9847         compiler_flags=-v
9848         linker_flags=-v
9849         verstring=
9850         output_objdir=.
9851         libname=conftest
9852         lt_save_allow_undefined_flag=$allow_undefined_flag
9853         allow_undefined_flag=
9854         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9855   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }
9859         then
9860           archive_cmds_need_lc=no
9861         else
9862           archive_cmds_need_lc=yes
9863         fi
9864         allow_undefined_flag=$lt_save_allow_undefined_flag
9865       else
9866         cat conftest.err 1>&5
9867       fi
9868       $rm conftest*
9869       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9870 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9871       ;;
9872     esac
9873   fi
9874   ;;
9875 esac
9876
9877 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9879 library_names_spec=
9880 libname_spec='lib$name'
9881 soname_spec=
9882 shrext_cmds=".so"
9883 postinstall_cmds=
9884 postuninstall_cmds=
9885 finish_cmds=
9886 finish_eval=
9887 shlibpath_var=
9888 shlibpath_overrides_runpath=unknown
9889 version_type=none
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 if test "$GCC" = yes; then
9893   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9895     # if the path contains ";" then we assume it to be the separator
9896     # otherwise default to the standard path separator (i.e. ":") - it is
9897     # assumed that no part of a normal pathname contains ";" but that should
9898     # okay in the real world where ";" in dirpaths is itself problematic.
9899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9900   else
9901     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9902   fi
9903 else
9904   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9905 fi
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9908
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9912
9913 case $host_os in
9914 aix3*)
9915   version_type=linux
9916   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917   shlibpath_var=LIBPATH
9918
9919   # AIX 3 has no versioning support, so we append a major version to the name.
9920   soname_spec='${libname}${release}${shared_ext}$major'
9921   ;;
9922
9923 aix4* | aix5*)
9924   version_type=linux
9925   need_lib_prefix=no
9926   need_version=no
9927   hardcode_into_libs=yes
9928   if test "$host_cpu" = ia64; then
9929     # AIX 5 supports IA64
9930     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931     shlibpath_var=LD_LIBRARY_PATH
9932   else
9933     # With GCC up to 2.95.x, collect2 would create an import file
9934     # for dependence libraries.  The import file would start with
9935     # the line `#! .'.  This would cause the generated library to
9936     # depend on `.', always an invalid library.  This was fixed in
9937     # development snapshots of GCC prior to 3.0.
9938     case $host_os in
9939       aix4 | aix4.[01] | aix4.[01].*)
9940       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9941            echo ' yes '
9942            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9943         :
9944       else
9945         can_build_shared=no
9946       fi
9947       ;;
9948     esac
9949     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950     # soname into executable. Probably we can add versioning support to
9951     # collect2, so additional links can be useful in future.
9952     if test "$aix_use_runtimelinking" = yes; then
9953       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954       # instead of lib<name>.a to let people know that these are not
9955       # typical AIX shared libraries.
9956       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957     else
9958       # We preserve .a as extension for shared libraries through AIX4.2
9959       # and later when we are not doing run time linking.
9960       library_names_spec='${libname}${release}.a $libname.a'
9961       soname_spec='${libname}${release}${shared_ext}$major'
9962     fi
9963     shlibpath_var=LIBPATH
9964   fi
9965   ;;
9966
9967 amigaos*)
9968   library_names_spec='$libname.ixlibrary $libname.a'
9969   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970   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'
9971   ;;
9972
9973 beos*)
9974   library_names_spec='${libname}${shared_ext}'
9975   dynamic_linker="$host_os ld.so"
9976   shlibpath_var=LIBRARY_PATH
9977   ;;
9978
9979 bsdi[45]*)
9980   version_type=linux
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9985   shlibpath_var=LD_LIBRARY_PATH
9986   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9987   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9988   # the default ld.so.conf also contains /usr/contrib/lib and
9989   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9990   # libtool to hard-code these into programs
9991   ;;
9992
9993 cygwin* | mingw* | pw32*)
9994   version_type=windows
9995   shrext_cmds=".dll"
9996   need_version=no
9997   need_lib_prefix=no
9998
9999   case $GCC,$host_os in
10000   yes,cygwin* | yes,mingw* | yes,pw32*)
10001     library_names_spec='$libname.dll.a'
10002     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003     postinstall_cmds='base_file=`basename \${file}`~
10004       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10005       dldir=$destdir/`dirname \$dlpath`~
10006       test -d \$dldir || mkdir -p \$dldir~
10007       $install_prog $dir/$dlname \$dldir/$dlname~
10008       chmod a+x \$dldir/$dlname'
10009     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10010       dlpath=$dir/\$dldll~
10011        $rm \$dlpath'
10012     shlibpath_overrides_runpath=yes
10013
10014     case $host_os in
10015     cygwin*)
10016       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10017       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10019       ;;
10020     mingw*)
10021       # MinGW DLLs use traditional 'lib' prefix
10022       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10024       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10025         # It is most probably a Windows format PATH printed by
10026         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10027         # path with ; separators, and with drive letters. We can handle the
10028         # drive letters (cygwin fileutils understands them), so leave them,
10029         # especially as we might pass files found there to a mingw objdump,
10030         # which wouldn't understand a cygwinified path. Ahh.
10031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10032       else
10033         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10034       fi
10035       ;;
10036     pw32*)
10037       # pw32 DLLs use 'pw' prefix rather than 'lib'
10038       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039       ;;
10040     esac
10041     ;;
10042
10043   *)
10044     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10045     ;;
10046   esac
10047   dynamic_linker='Win32 ld.exe'
10048   # FIXME: first we should search . and the directory the executable is in
10049   shlibpath_var=PATH
10050   ;;
10051
10052 darwin* | rhapsody*)
10053   dynamic_linker="$host_os dyld"
10054   version_type=darwin
10055   need_lib_prefix=no
10056   need_version=no
10057   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10058   soname_spec='${libname}${release}${major}$shared_ext'
10059   shlibpath_overrides_runpath=yes
10060   shlibpath_var=DYLD_LIBRARY_PATH
10061   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10062   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10063   if test "$GCC" = yes; then
10064     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"`
10065   else
10066     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10067   fi
10068   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10069   ;;
10070
10071 dgux*)
10072   version_type=linux
10073   need_lib_prefix=no
10074   need_version=no
10075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10076   soname_spec='${libname}${release}${shared_ext}$major'
10077   shlibpath_var=LD_LIBRARY_PATH
10078   ;;
10079
10080 freebsd1*)
10081   dynamic_linker=no
10082   ;;
10083
10084 kfreebsd*-gnu)
10085   version_type=linux
10086   need_lib_prefix=no
10087   need_version=no
10088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089   soname_spec='${libname}${release}${shared_ext}$major'
10090   shlibpath_var=LD_LIBRARY_PATH
10091   shlibpath_overrides_runpath=no
10092   hardcode_into_libs=yes
10093   dynamic_linker='GNU ld.so'
10094   ;;
10095
10096 freebsd* | dragonfly*)
10097   # DragonFly does not have aout.  When/if they implement a new
10098   # versioning mechanism, adjust this.
10099   if test -x /usr/bin/objformat; then
10100     objformat=`/usr/bin/objformat`
10101   else
10102     case $host_os in
10103     freebsd[123]*) objformat=aout ;;
10104     *) objformat=elf ;;
10105     esac
10106   fi
10107   version_type=freebsd-$objformat
10108   case $version_type in
10109     freebsd-elf*)
10110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10111       need_version=no
10112       need_lib_prefix=no
10113       ;;
10114     freebsd-*)
10115       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10116       need_version=yes
10117       ;;
10118   esac
10119   shlibpath_var=LD_LIBRARY_PATH
10120   case $host_os in
10121   freebsd2*)
10122     shlibpath_overrides_runpath=yes
10123     ;;
10124   freebsd3.[01]* | freebsdelf3.[01]*)
10125     shlibpath_overrides_runpath=yes
10126     hardcode_into_libs=yes
10127     ;;
10128   *) # from 3.2 on
10129     shlibpath_overrides_runpath=no
10130     hardcode_into_libs=yes
10131     ;;
10132   esac
10133   ;;
10134
10135 gnu*)
10136   version_type=linux
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   shlibpath_var=LD_LIBRARY_PATH
10142   hardcode_into_libs=yes
10143   ;;
10144
10145 hpux9* | hpux10* | hpux11*)
10146   # Give a soname corresponding to the major version so that dld.sl refuses to
10147   # link against other versions.
10148   version_type=sunos
10149   need_lib_prefix=no
10150   need_version=no
10151   case $host_cpu in
10152   ia64*)
10153     shrext_cmds='.so'
10154     hardcode_into_libs=yes
10155     dynamic_linker="$host_os dld.so"
10156     shlibpath_var=LD_LIBRARY_PATH
10157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159     soname_spec='${libname}${release}${shared_ext}$major'
10160     if test "X$HPUX_IA64_MODE" = X32; then
10161       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10162     else
10163       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10164     fi
10165     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10166     ;;
10167    hppa*64*)
10168      shrext_cmds='.sl'
10169      hardcode_into_libs=yes
10170      dynamic_linker="$host_os dld.sl"
10171      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10172      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174      soname_spec='${libname}${release}${shared_ext}$major'
10175      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10176      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10177      ;;
10178    *)
10179     shrext_cmds='.sl'
10180     dynamic_linker="$host_os dld.sl"
10181     shlibpath_var=SHLIB_PATH
10182     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184     soname_spec='${libname}${release}${shared_ext}$major'
10185     ;;
10186   esac
10187   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10188   postinstall_cmds='chmod 555 $lib'
10189   ;;
10190
10191 irix5* | irix6* | nonstopux*)
10192   case $host_os in
10193     nonstopux*) version_type=nonstopux ;;
10194     *)
10195         if test "$lt_cv_prog_gnu_ld" = yes; then
10196                 version_type=linux
10197         else
10198                 version_type=irix
10199         fi ;;
10200   esac
10201   need_lib_prefix=no
10202   need_version=no
10203   soname_spec='${libname}${release}${shared_ext}$major'
10204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10205   case $host_os in
10206   irix5* | nonstopux*)
10207     libsuff= shlibsuff=
10208     ;;
10209   *)
10210     case $LD in # libtool.m4 will add one of these switches to LD
10211     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10212       libsuff= shlibsuff= libmagic=32-bit;;
10213     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10214       libsuff=32 shlibsuff=N32 libmagic=N32;;
10215     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10216       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10217     *) libsuff= shlibsuff= libmagic=never-match;;
10218     esac
10219     ;;
10220   esac
10221   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10222   shlibpath_overrides_runpath=no
10223   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10224   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10225   hardcode_into_libs=yes
10226   ;;
10227
10228 # No shared lib support for Linux oldld, aout, or coff.
10229 linux*oldld* | linux*aout* | linux*coff*)
10230   dynamic_linker=no
10231   ;;
10232
10233 # This must be Linux ELF.
10234 linux*)
10235   version_type=linux
10236   need_lib_prefix=no
10237   need_version=no
10238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239   soname_spec='${libname}${release}${shared_ext}$major'
10240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10241   shlibpath_var=LD_LIBRARY_PATH
10242   shlibpath_overrides_runpath=no
10243   # This implies no fast_install, which is unacceptable.
10244   # Some rework will be needed to allow for fast_install
10245   # before this can be enabled.
10246   hardcode_into_libs=yes
10247
10248   # Append ld.so.conf contents to the search path
10249   if test -f /etc/ld.so.conf; then
10250     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' ' '`
10251     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10252   fi
10253
10254   # We used to test for /lib/ld.so.1 and disable shared libraries on
10255   # powerpc, because MkLinux only supported shared libraries with the
10256   # GNU dynamic linker.  Since this was broken with cross compilers,
10257   # most powerpc-linux boxes support dynamic linking these days and
10258   # people can always --disable-shared, the test was removed, and we
10259   # assume the GNU/Linux dynamic linker is in use.
10260   dynamic_linker='GNU/Linux ld.so'
10261   ;;
10262
10263 knetbsd*-gnu)
10264   version_type=linux
10265   need_lib_prefix=no
10266   need_version=no
10267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268   soname_spec='${libname}${release}${shared_ext}$major'
10269   shlibpath_var=LD_LIBRARY_PATH
10270   shlibpath_overrides_runpath=no
10271   hardcode_into_libs=yes
10272   dynamic_linker='GNU ld.so'
10273   ;;
10274
10275 netbsd*)
10276   version_type=sunos
10277   need_lib_prefix=no
10278   need_version=no
10279   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282     dynamic_linker='NetBSD (a.out) ld.so'
10283   else
10284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285     soname_spec='${libname}${release}${shared_ext}$major'
10286     dynamic_linker='NetBSD ld.elf_so'
10287   fi
10288   shlibpath_var=LD_LIBRARY_PATH
10289   shlibpath_overrides_runpath=yes
10290   hardcode_into_libs=yes
10291   ;;
10292
10293 newsos6)
10294   version_type=linux
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   shlibpath_overrides_runpath=yes
10298   ;;
10299
10300 nto-qnx*)
10301   version_type=linux
10302   need_lib_prefix=no
10303   need_version=no
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   ;;
10309
10310 openbsd*)
10311   version_type=sunos
10312   need_lib_prefix=no
10313   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314   case $host_os in
10315     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316     *)                         need_version=no  ;;
10317   esac
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322     case $host_os in
10323       openbsd2.[89] | openbsd2.[89].*)
10324         shlibpath_overrides_runpath=no
10325         ;;
10326       *)
10327         shlibpath_overrides_runpath=yes
10328         ;;
10329       esac
10330   else
10331     shlibpath_overrides_runpath=yes
10332   fi
10333   ;;
10334
10335 os2*)
10336   libname_spec='$name'
10337   shrext_cmds=".dll"
10338   need_lib_prefix=no
10339   library_names_spec='$libname${shared_ext} $libname.a'
10340   dynamic_linker='OS/2 ld.exe'
10341   shlibpath_var=LIBPATH
10342   ;;
10343
10344 osf3* | osf4* | osf5*)
10345   version_type=osf
10346   need_lib_prefix=no
10347   need_version=no
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353   ;;
10354
10355 sco3.2v5*)
10356   version_type=osf
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359   shlibpath_var=LD_LIBRARY_PATH
10360   ;;
10361
10362 solaris*)
10363   version_type=linux
10364   need_lib_prefix=no
10365   need_version=no
10366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367   soname_spec='${libname}${release}${shared_ext}$major'
10368   shlibpath_var=LD_LIBRARY_PATH
10369   shlibpath_overrides_runpath=yes
10370   hardcode_into_libs=yes
10371   # ldd complains unless libraries are executable
10372   postinstall_cmds='chmod +x $lib'
10373   ;;
10374
10375 sunos4*)
10376   version_type=sunos
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10379   shlibpath_var=LD_LIBRARY_PATH
10380   shlibpath_overrides_runpath=yes
10381   if test "$with_gnu_ld" = yes; then
10382     need_lib_prefix=no
10383   fi
10384   need_version=yes
10385   ;;
10386
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10388   version_type=linux
10389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390   soname_spec='${libname}${release}${shared_ext}$major'
10391   shlibpath_var=LD_LIBRARY_PATH
10392   case $host_vendor in
10393     sni)
10394       shlibpath_overrides_runpath=no
10395       need_lib_prefix=no
10396       export_dynamic_flag_spec='${wl}-Blargedynsym'
10397       runpath_var=LD_RUN_PATH
10398       ;;
10399     siemens)
10400       need_lib_prefix=no
10401       ;;
10402     motorola)
10403       need_lib_prefix=no
10404       need_version=no
10405       shlibpath_overrides_runpath=no
10406       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10407       ;;
10408   esac
10409   ;;
10410
10411 sysv4*MP*)
10412   if test -d /usr/nec ;then
10413     version_type=linux
10414     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415     soname_spec='$libname${shared_ext}.$major'
10416     shlibpath_var=LD_LIBRARY_PATH
10417   fi
10418   ;;
10419
10420 uts4*)
10421   version_type=linux
10422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423   soname_spec='${libname}${release}${shared_ext}$major'
10424   shlibpath_var=LD_LIBRARY_PATH
10425   ;;
10426
10427 *)
10428   dynamic_linker=no
10429   ;;
10430 esac
10431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10432 echo "${ECHO_T}$dynamic_linker" >&6; }
10433 test "$dynamic_linker" = no && can_build_shared=no
10434
10435 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10437 hardcode_action=
10438 if test -n "$hardcode_libdir_flag_spec" || \
10439    test -n "$runpath_var" || \
10440    test "X$hardcode_automatic" = "Xyes" ; then
10441
10442   # We can hardcode non-existant directories.
10443   if test "$hardcode_direct" != no &&
10444      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10445      # have to relink, otherwise we might link with an installed library
10446      # when we should be linking with a yet-to-be-installed one
10447      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10448      test "$hardcode_minus_L" != no; then
10449     # Linking always hardcodes the temporary library directory.
10450     hardcode_action=relink
10451   else
10452     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10453     hardcode_action=immediate
10454   fi
10455 else
10456   # We cannot hardcode anything, or else we can only hardcode existing
10457   # directories.
10458   hardcode_action=unsupported
10459 fi
10460 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10461 echo "${ECHO_T}$hardcode_action" >&6; }
10462
10463 if test "$hardcode_action" = relink; then
10464   # Fast installation is not supported
10465   enable_fast_install=no
10466 elif test "$shlibpath_overrides_runpath" = yes ||
10467      test "$enable_shared" = no; then
10468   # Fast installation is not necessary
10469   enable_fast_install=needless
10470 fi
10471
10472 striplib=
10473 old_striplib=
10474 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10477   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10478   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10479   { echo "$as_me:$LINENO: result: yes" >&5
10480 echo "${ECHO_T}yes" >&6; }
10481 else
10482 # FIXME - insert some real tests, host_os isn't really good enough
10483   case $host_os in
10484    darwin*)
10485        if test -n "$STRIP" ; then
10486          striplib="$STRIP -x"
10487          { echo "$as_me:$LINENO: result: yes" >&5
10488 echo "${ECHO_T}yes" >&6; }
10489        else
10490   { echo "$as_me:$LINENO: result: no" >&5
10491 echo "${ECHO_T}no" >&6; }
10492 fi
10493        ;;
10494    *)
10495   { echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6; }
10497     ;;
10498   esac
10499 fi
10500
10501 if test "x$enable_dlopen" != xyes; then
10502   enable_dlopen=unknown
10503   enable_dlopen_self=unknown
10504   enable_dlopen_self_static=unknown
10505 else
10506   lt_cv_dlopen=no
10507   lt_cv_dlopen_libs=
10508
10509   case $host_os in
10510   beos*)
10511     lt_cv_dlopen="load_add_on"
10512     lt_cv_dlopen_libs=
10513     lt_cv_dlopen_self=yes
10514     ;;
10515
10516   mingw* | pw32*)
10517     lt_cv_dlopen="LoadLibrary"
10518     lt_cv_dlopen_libs=
10519    ;;
10520
10521   cygwin*)
10522     lt_cv_dlopen="dlopen"
10523     lt_cv_dlopen_libs=
10524    ;;
10525
10526   darwin*)
10527   # if libdl is installed we need to link against it
10528     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-ldl  $LIBS"
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541
10542 /* Override any GCC internal prototype to avoid an error.
10543    Use char because int might match the return type of a GCC
10544    builtin and then its argument prototype would still apply.  */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char dlopen ();
10549 int
10550 main ()
10551 {
10552 return dlopen ();
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564   (eval "$ac_link") 2>conftest.er1
10565   ac_status=$?
10566   grep -v '^ *+' conftest.er1 >conftest.err
10567   rm -f conftest.er1
10568   cat conftest.err >&5
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } && {
10571          test -z "$ac_c_werror_flag" ||
10572          test ! -s conftest.err
10573        } && test -s conftest$ac_exeext &&
10574        $as_test_x conftest$ac_exeext; then
10575   ac_cv_lib_dl_dlopen=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580         ac_cv_lib_dl_dlopen=no
10581 fi
10582
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584       conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10586 fi
10587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10589 if test $ac_cv_lib_dl_dlopen = yes; then
10590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10591 else
10592
10593     lt_cv_dlopen="dyld"
10594     lt_cv_dlopen_libs=
10595     lt_cv_dlopen_self=yes
10596
10597 fi
10598
10599    ;;
10600
10601   *)
10602     { echo "$as_me:$LINENO: checking for shl_load" >&5
10603 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10604 if test "${ac_cv_func_shl_load+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10615 #define shl_load innocuous_shl_load
10616
10617 /* System header to define __stub macros and hopefully few prototypes,
10618     which can conflict with char shl_load (); below.
10619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620     <limits.h> exists even on freestanding compilers.  */
10621
10622 #ifdef __STDC__
10623 # include <limits.h>
10624 #else
10625 # include <assert.h>
10626 #endif
10627
10628 #undef shl_load
10629
10630 /* Override any GCC internal prototype to avoid an error.
10631    Use char because int might match the return type of a GCC
10632    builtin and then its argument prototype would still apply.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char shl_load ();
10637 /* The GNU C library defines this for functions which it implements
10638     to always fail with ENOSYS.  Some functions are actually named
10639     something starting with __ and the normal name is an alias.  */
10640 #if defined __stub_shl_load || defined __stub___shl_load
10641 choke me
10642 #endif
10643
10644 int
10645 main ()
10646 {
10647 return shl_load ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659   (eval "$ac_link") 2>conftest.er1
10660   ac_status=$?
10661   grep -v '^ *+' conftest.er1 >conftest.err
10662   rm -f conftest.er1
10663   cat conftest.err >&5
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } && {
10666          test -z "$ac_c_werror_flag" ||
10667          test ! -s conftest.err
10668        } && test -s conftest$ac_exeext &&
10669        $as_test_x conftest$ac_exeext; then
10670   ac_cv_func_shl_load=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675         ac_cv_func_shl_load=no
10676 fi
10677
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679       conftest$ac_exeext conftest.$ac_ext
10680 fi
10681 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10682 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10683 if test $ac_cv_func_shl_load = yes; then
10684   lt_cv_dlopen="shl_load"
10685 else
10686   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10687 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10688 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldld  $LIBS"
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701    Use char because int might match the return type of a GCC
10702    builtin and then its argument prototype would still apply.  */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char shl_load ();
10707 int
10708 main ()
10709 {
10710 return shl_load ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722   (eval "$ac_link") 2>conftest.er1
10723   ac_status=$?
10724   grep -v '^ *+' conftest.er1 >conftest.err
10725   rm -f conftest.er1
10726   cat conftest.err >&5
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); } && {
10729          test -z "$ac_c_werror_flag" ||
10730          test ! -s conftest.err
10731        } && test -s conftest$ac_exeext &&
10732        $as_test_x conftest$ac_exeext; then
10733   ac_cv_lib_dld_shl_load=yes
10734 else
10735   echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738         ac_cv_lib_dld_shl_load=no
10739 fi
10740
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742       conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10747 if test $ac_cv_lib_dld_shl_load = yes; then
10748   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10749 else
10750   { echo "$as_me:$LINENO: checking for dlopen" >&5
10751 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10752 if test "${ac_cv_func_dlopen+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h.  */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h.  */
10761 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10763 #define dlopen innocuous_dlopen
10764
10765 /* System header to define __stub macros and hopefully few prototypes,
10766     which can conflict with char dlopen (); below.
10767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768     <limits.h> exists even on freestanding compilers.  */
10769
10770 #ifdef __STDC__
10771 # include <limits.h>
10772 #else
10773 # include <assert.h>
10774 #endif
10775
10776 #undef dlopen
10777
10778 /* Override any GCC internal prototype to avoid an error.
10779    Use char because int might match the return type of a GCC
10780    builtin and then its argument prototype would still apply.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlopen ();
10785 /* The GNU C library defines this for functions which it implements
10786     to always fail with ENOSYS.  Some functions are actually named
10787     something starting with __ and the normal name is an alias.  */
10788 #if defined __stub_dlopen || defined __stub___dlopen
10789 choke me
10790 #endif
10791
10792 int
10793 main ()
10794 {
10795 return dlopen ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_link") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } && {
10814          test -z "$ac_c_werror_flag" ||
10815          test ! -s conftest.err
10816        } && test -s conftest$ac_exeext &&
10817        $as_test_x conftest$ac_exeext; then
10818   ac_cv_func_dlopen=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823         ac_cv_func_dlopen=no
10824 fi
10825
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827       conftest$ac_exeext conftest.$ac_ext
10828 fi
10829 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10830 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10831 if test $ac_cv_func_dlopen = yes; then
10832   lt_cv_dlopen="dlopen"
10833 else
10834   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-ldl  $LIBS"
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847
10848 /* Override any GCC internal prototype to avoid an error.
10849    Use char because int might match the return type of a GCC
10850    builtin and then its argument prototype would still apply.  */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char dlopen ();
10855 int
10856 main ()
10857 {
10858 return dlopen ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_link") 2>conftest.er1
10871   ac_status=$?
10872   grep -v '^ *+' conftest.er1 >conftest.err
10873   rm -f conftest.er1
10874   cat conftest.err >&5
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); } && {
10877          test -z "$ac_c_werror_flag" ||
10878          test ! -s conftest.err
10879        } && test -s conftest$ac_exeext &&
10880        $as_test_x conftest$ac_exeext; then
10881   ac_cv_lib_dl_dlopen=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886         ac_cv_lib_dl_dlopen=no
10887 fi
10888
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890       conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10892 fi
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897 else
10898   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld  $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913    Use char because int might match the return type of a GCC
10914    builtin and then its argument prototype would still apply.  */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dlopen ();
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_link") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } && {
10941          test -z "$ac_c_werror_flag" ||
10942          test ! -s conftest.err
10943        } && test -s conftest$ac_exeext &&
10944        $as_test_x conftest$ac_exeext; then
10945   ac_cv_lib_svld_dlopen=yes
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         ac_cv_lib_svld_dlopen=no
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954       conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10959 if test $ac_cv_lib_svld_dlopen = yes; then
10960   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10961 else
10962   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-ldld  $LIBS"
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975
10976 /* Override any GCC internal prototype to avoid an error.
10977    Use char because int might match the return type of a GCC
10978    builtin and then its argument prototype would still apply.  */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char dld_link ();
10983 int
10984 main ()
10985 {
10986 return dld_link ();
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_link") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest$ac_exeext &&
11008        $as_test_x conftest$ac_exeext; then
11009   ac_cv_lib_dld_dld_link=yes
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014         ac_cv_lib_dld_dld_link=no
11015 fi
11016
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018       conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11023 if test $ac_cv_lib_dld_dld_link = yes; then
11024   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11025 fi
11026
11027
11028 fi
11029
11030
11031 fi
11032
11033
11034 fi
11035
11036
11037 fi
11038
11039
11040 fi
11041
11042     ;;
11043   esac
11044
11045   if test "x$lt_cv_dlopen" != xno; then
11046     enable_dlopen=yes
11047   else
11048     enable_dlopen=no
11049   fi
11050
11051   case $lt_cv_dlopen in
11052   dlopen)
11053     save_CPPFLAGS="$CPPFLAGS"
11054     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11055
11056     save_LDFLAGS="$LDFLAGS"
11057     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11058
11059     save_LIBS="$LIBS"
11060     LIBS="$lt_cv_dlopen_libs $LIBS"
11061
11062     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11064 if test "${lt_cv_dlopen_self+set}" = set; then
11065   echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067           if test "$cross_compiling" = yes; then :
11068   lt_cv_dlopen_self=cross
11069 else
11070   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11071   lt_status=$lt_dlunknown
11072   cat > conftest.$ac_ext <<EOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11075
11076 #if HAVE_DLFCN_H
11077 #include <dlfcn.h>
11078 #endif
11079
11080 #include <stdio.h>
11081
11082 #ifdef RTLD_GLOBAL
11083 #  define LT_DLGLOBAL           RTLD_GLOBAL
11084 #else
11085 #  ifdef DL_GLOBAL
11086 #    define LT_DLGLOBAL         DL_GLOBAL
11087 #  else
11088 #    define LT_DLGLOBAL         0
11089 #  endif
11090 #endif
11091
11092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11093    find out it does not work in some platform. */
11094 #ifndef LT_DLLAZY_OR_NOW
11095 #  ifdef RTLD_LAZY
11096 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11097 #  else
11098 #    ifdef DL_LAZY
11099 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11100 #    else
11101 #      ifdef RTLD_NOW
11102 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11103 #      else
11104 #        ifdef DL_NOW
11105 #          define LT_DLLAZY_OR_NOW      DL_NOW
11106 #        else
11107 #          define LT_DLLAZY_OR_NOW      0
11108 #        endif
11109 #      endif
11110 #    endif
11111 #  endif
11112 #endif
11113
11114 #ifdef __cplusplus
11115 extern "C" void exit (int);
11116 #endif
11117
11118 void fnord() { int i=42;}
11119 int main ()
11120 {
11121   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11122   int status = $lt_dlunknown;
11123
11124   if (self)
11125     {
11126       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11127       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11128       /* dlclose (self); */
11129     }
11130
11131     exit (status);
11132 }
11133 EOF
11134   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135   (eval $ac_link) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139     (./conftest; exit; ) >&5 2>/dev/null
11140     lt_status=$?
11141     case x$lt_status in
11142       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11145     esac
11146   else :
11147     # compilation failed
11148     lt_cv_dlopen_self=no
11149   fi
11150 fi
11151 rm -fr conftest*
11152
11153
11154 fi
11155 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11157
11158     if test "x$lt_cv_dlopen_self" = xyes; then
11159       LDFLAGS="$LDFLAGS $link_static_flag"
11160       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11162 if test "${lt_cv_dlopen_self_static+set}" = set; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165           if test "$cross_compiling" = yes; then :
11166   lt_cv_dlopen_self_static=cross
11167 else
11168   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169   lt_status=$lt_dlunknown
11170   cat > conftest.$ac_ext <<EOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11173
11174 #if HAVE_DLFCN_H
11175 #include <dlfcn.h>
11176 #endif
11177
11178 #include <stdio.h>
11179
11180 #ifdef RTLD_GLOBAL
11181 #  define LT_DLGLOBAL           RTLD_GLOBAL
11182 #else
11183 #  ifdef DL_GLOBAL
11184 #    define LT_DLGLOBAL         DL_GLOBAL
11185 #  else
11186 #    define LT_DLGLOBAL         0
11187 #  endif
11188 #endif
11189
11190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191    find out it does not work in some platform. */
11192 #ifndef LT_DLLAZY_OR_NOW
11193 #  ifdef RTLD_LAZY
11194 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11195 #  else
11196 #    ifdef DL_LAZY
11197 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11198 #    else
11199 #      ifdef RTLD_NOW
11200 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11201 #      else
11202 #        ifdef DL_NOW
11203 #          define LT_DLLAZY_OR_NOW      DL_NOW
11204 #        else
11205 #          define LT_DLLAZY_OR_NOW      0
11206 #        endif
11207 #      endif
11208 #    endif
11209 #  endif
11210 #endif
11211
11212 #ifdef __cplusplus
11213 extern "C" void exit (int);
11214 #endif
11215
11216 void fnord() { int i=42;}
11217 int main ()
11218 {
11219   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220   int status = $lt_dlunknown;
11221
11222   if (self)
11223     {
11224       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11225       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11226       /* dlclose (self); */
11227     }
11228
11229     exit (status);
11230 }
11231 EOF
11232   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233   (eval $ac_link) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11237     (./conftest; exit; ) >&5 2>/dev/null
11238     lt_status=$?
11239     case x$lt_status in
11240       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11241       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11242       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11243     esac
11244   else :
11245     # compilation failed
11246     lt_cv_dlopen_self_static=no
11247   fi
11248 fi
11249 rm -fr conftest*
11250
11251
11252 fi
11253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11254 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11255     fi
11256
11257     CPPFLAGS="$save_CPPFLAGS"
11258     LDFLAGS="$save_LDFLAGS"
11259     LIBS="$save_LIBS"
11260     ;;
11261   esac
11262
11263   case $lt_cv_dlopen_self in
11264   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11265   *) enable_dlopen_self=unknown ;;
11266   esac
11267
11268   case $lt_cv_dlopen_self_static in
11269   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11270   *) enable_dlopen_self_static=unknown ;;
11271   esac
11272 fi
11273
11274
11275 # Report which librarie types wil actually be built
11276 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11277 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11278 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11279 echo "${ECHO_T}$can_build_shared" >&6; }
11280
11281 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11282 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11283 test "$can_build_shared" = "no" && enable_shared=no
11284
11285 # On AIX, shared libraries and static libraries use the same namespace, and
11286 # are all built from PIC.
11287 case $host_os in
11288 aix3*)
11289   test "$enable_shared" = yes && enable_static=no
11290   if test -n "$RANLIB"; then
11291     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11292     postinstall_cmds='$RANLIB $lib'
11293   fi
11294   ;;
11295
11296 aix4* | aix5*)
11297   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11298     test "$enable_shared" = yes && enable_static=no
11299   fi
11300     ;;
11301 esac
11302 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11303 echo "${ECHO_T}$enable_shared" >&6; }
11304
11305 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11306 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11307 # Make sure either enable_shared or enable_static is yes.
11308 test "$enable_shared" = yes || enable_static=yes
11309 { echo "$as_me:$LINENO: result: $enable_static" >&5
11310 echo "${ECHO_T}$enable_static" >&6; }
11311
11312 # The else clause should only fire when bootstrapping the
11313 # libtool distribution, otherwise you forgot to ship ltmain.sh
11314 # with your package, and you will get complaints that there are
11315 # no rules to generate ltmain.sh.
11316 if test -f "$ltmain"; then
11317   # See if we are running on zsh, and set the options which allow our commands through
11318   # without removal of \ escapes.
11319   if test -n "${ZSH_VERSION+set}" ; then
11320     setopt NO_GLOB_SUBST
11321   fi
11322   # Now quote all the things that may contain metacharacters while being
11323   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11324   # variables and quote the copies for generation of the libtool script.
11325   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11326     SED SHELL STRIP \
11327     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11328     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11329     deplibs_check_method reload_flag reload_cmds need_locks \
11330     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11331     lt_cv_sys_global_symbol_to_c_name_address \
11332     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11333     old_postinstall_cmds old_postuninstall_cmds \
11334     compiler \
11335     CC \
11336     LD \
11337     lt_prog_compiler_wl \
11338     lt_prog_compiler_pic \
11339     lt_prog_compiler_static \
11340     lt_prog_compiler_no_builtin_flag \
11341     export_dynamic_flag_spec \
11342     thread_safe_flag_spec \
11343     whole_archive_flag_spec \
11344     enable_shared_with_static_runtimes \
11345     old_archive_cmds \
11346     old_archive_from_new_cmds \
11347     predep_objects \
11348     postdep_objects \
11349     predeps \
11350     postdeps \
11351     compiler_lib_search_path \
11352     archive_cmds \
11353     archive_expsym_cmds \
11354     postinstall_cmds \
11355     postuninstall_cmds \
11356     old_archive_from_expsyms_cmds \
11357     allow_undefined_flag \
11358     no_undefined_flag \
11359     export_symbols_cmds \
11360     hardcode_libdir_flag_spec \
11361     hardcode_libdir_flag_spec_ld \
11362     hardcode_libdir_separator \
11363     hardcode_automatic \
11364     module_cmds \
11365     module_expsym_cmds \
11366     lt_cv_prog_compiler_c_o \
11367     exclude_expsyms \
11368     include_expsyms; do
11369
11370     case $var in
11371     old_archive_cmds | \
11372     old_archive_from_new_cmds | \
11373     archive_cmds | \
11374     archive_expsym_cmds | \
11375     module_cmds | \
11376     module_expsym_cmds | \
11377     old_archive_from_expsyms_cmds | \
11378     export_symbols_cmds | \
11379     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11380     postinstall_cmds | postuninstall_cmds | \
11381     old_postinstall_cmds | old_postuninstall_cmds | \
11382     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11383       # Double-quote double-evaled strings.
11384       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11385       ;;
11386     *)
11387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11388       ;;
11389     esac
11390   done
11391
11392   case $lt_echo in
11393   *'\$0 --fallback-echo"')
11394     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11395     ;;
11396   esac
11397
11398 cfgfile="${ofile}T"
11399   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11400   $rm -f "$cfgfile"
11401   { echo "$as_me:$LINENO: creating $ofile" >&5
11402 echo "$as_me: creating $ofile" >&6;}
11403
11404   cat <<__EOF__ >> "$cfgfile"
11405 #! $SHELL
11406
11407 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11408 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11410 #
11411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11412 # Free Software Foundation, Inc.
11413 #
11414 # This file is part of GNU Libtool:
11415 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11416 #
11417 # This program is free software; you can redistribute it and/or modify
11418 # it under the terms of the GNU General Public License as published by
11419 # the Free Software Foundation; either version 2 of the License, or
11420 # (at your option) any later version.
11421 #
11422 # This program is distributed in the hope that it will be useful, but
11423 # WITHOUT ANY WARRANTY; without even the implied warranty of
11424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11425 # General Public License for more details.
11426 #
11427 # You should have received a copy of the GNU General Public License
11428 # along with this program; if not, write to the Free Software
11429 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11430 #
11431 # As a special exception to the GNU General Public License, if you
11432 # distribute this file as part of a program that contains a
11433 # configuration script generated by Autoconf, you may include it under
11434 # the same distribution terms that you use for the rest of that program.
11435
11436 # A sed program that does not truncate output.
11437 SED=$lt_SED
11438
11439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11440 Xsed="$SED -e 1s/^X//"
11441
11442 # The HP-UX ksh and POSIX shell print the target directory to stdout
11443 # if CDPATH is set.
11444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11445
11446 # The names of the tagged configurations supported by this script.
11447 available_tags=
11448
11449 # ### BEGIN LIBTOOL CONFIG
11450
11451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11452
11453 # Shell to use when invoking shell scripts.
11454 SHELL=$lt_SHELL
11455
11456 # Whether or not to build shared libraries.
11457 build_libtool_libs=$enable_shared
11458
11459 # Whether or not to build static libraries.
11460 build_old_libs=$enable_static
11461
11462 # Whether or not to add -lc for building shared libraries.
11463 build_libtool_need_lc=$archive_cmds_need_lc
11464
11465 # Whether or not to disallow shared libs when runtime libs are static
11466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11467
11468 # Whether or not to optimize for fast installation.
11469 fast_install=$enable_fast_install
11470
11471 # The host system.
11472 host_alias=$host_alias
11473 host=$host
11474 host_os=$host_os
11475
11476 # The build system.
11477 build_alias=$build_alias
11478 build=$build
11479 build_os=$build_os
11480
11481 # An echo program that does not interpret backslashes.
11482 echo=$lt_echo
11483
11484 # The archiver.
11485 AR=$lt_AR
11486 AR_FLAGS=$lt_AR_FLAGS
11487
11488 # A C compiler.
11489 LTCC=$lt_LTCC
11490
11491 # A language-specific compiler.
11492 CC=$lt_compiler
11493
11494 # Is the compiler the GNU C compiler?
11495 with_gcc=$GCC
11496
11497 # An ERE matcher.
11498 EGREP=$lt_EGREP
11499
11500 # The linker used to build libraries.
11501 LD=$lt_LD
11502
11503 # Whether we need hard or soft links.
11504 LN_S=$lt_LN_S
11505
11506 # A BSD-compatible nm program.
11507 NM=$lt_NM
11508
11509 # A symbol stripping program
11510 STRIP=$lt_STRIP
11511
11512 # Used to examine libraries when file_magic_cmd begins "file"
11513 MAGIC_CMD=$MAGIC_CMD
11514
11515 # Used on cygwin: DLL creation program.
11516 DLLTOOL="$DLLTOOL"
11517
11518 # Used on cygwin: object dumper.
11519 OBJDUMP="$OBJDUMP"
11520
11521 # Used on cygwin: assembler.
11522 AS="$AS"
11523
11524 # The name of the directory that contains temporary libtool files.
11525 objdir=$objdir
11526
11527 # How to create reloadable object files.
11528 reload_flag=$lt_reload_flag
11529 reload_cmds=$lt_reload_cmds
11530
11531 # How to pass a linker flag through the compiler.
11532 wl=$lt_lt_prog_compiler_wl
11533
11534 # Object file suffix (normally "o").
11535 objext="$ac_objext"
11536
11537 # Old archive suffix (normally "a").
11538 libext="$libext"
11539
11540 # Shared library suffix (normally ".so").
11541 shrext_cmds='$shrext_cmds'
11542
11543 # Executable file suffix (normally "").
11544 exeext="$exeext"
11545
11546 # Additional compiler flags for building library objects.
11547 pic_flag=$lt_lt_prog_compiler_pic
11548 pic_mode=$pic_mode
11549
11550 # What is the maximum length of a command?
11551 max_cmd_len=$lt_cv_sys_max_cmd_len
11552
11553 # Does compiler simultaneously support -c and -o options?
11554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11555
11556 # Must we lock files when doing compilation?
11557 need_locks=$lt_need_locks
11558
11559 # Do we need the lib prefix for modules?
11560 need_lib_prefix=$need_lib_prefix
11561
11562 # Do we need a version for libraries?
11563 need_version=$need_version
11564
11565 # Whether dlopen is supported.
11566 dlopen_support=$enable_dlopen
11567
11568 # Whether dlopen of programs is supported.
11569 dlopen_self=$enable_dlopen_self
11570
11571 # Whether dlopen of statically linked programs is supported.
11572 dlopen_self_static=$enable_dlopen_self_static
11573
11574 # Compiler flag to prevent dynamic linking.
11575 link_static_flag=$lt_lt_prog_compiler_static
11576
11577 # Compiler flag to turn off builtin functions.
11578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11579
11580 # Compiler flag to allow reflexive dlopens.
11581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11582
11583 # Compiler flag to generate shared objects directly from archives.
11584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11585
11586 # Compiler flag to generate thread-safe objects.
11587 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11588
11589 # Library versioning type.
11590 version_type=$version_type
11591
11592 # Format of library name prefix.
11593 libname_spec=$lt_libname_spec
11594
11595 # List of archive names.  First name is the real one, the rest are links.
11596 # The last name is the one that the linker finds with -lNAME.
11597 library_names_spec=$lt_library_names_spec
11598
11599 # The coded name of the library, if different from the real name.
11600 soname_spec=$lt_soname_spec
11601
11602 # Commands used to build and install an old-style archive.
11603 RANLIB=$lt_RANLIB
11604 old_archive_cmds=$lt_old_archive_cmds
11605 old_postinstall_cmds=$lt_old_postinstall_cmds
11606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11607
11608 # Create an old-style archive from a shared archive.
11609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11610
11611 # Create a temporary old-style archive to link instead of a shared archive.
11612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11613
11614 # Commands used to build and install a shared archive.
11615 archive_cmds=$lt_archive_cmds
11616 archive_expsym_cmds=$lt_archive_expsym_cmds
11617 postinstall_cmds=$lt_postinstall_cmds
11618 postuninstall_cmds=$lt_postuninstall_cmds
11619
11620 # Commands used to build a loadable module (assumed same as above if empty)
11621 module_cmds=$lt_module_cmds
11622 module_expsym_cmds=$lt_module_expsym_cmds
11623
11624 # Commands to strip libraries.
11625 old_striplib=$lt_old_striplib
11626 striplib=$lt_striplib
11627
11628 # Dependencies to place before the objects being linked to create a
11629 # shared library.
11630 predep_objects=$lt_predep_objects
11631
11632 # Dependencies to place after the objects being linked to create a
11633 # shared library.
11634 postdep_objects=$lt_postdep_objects
11635
11636 # Dependencies to place before the objects being linked to create a
11637 # shared library.
11638 predeps=$lt_predeps
11639
11640 # Dependencies to place after the objects being linked to create a
11641 # shared library.
11642 postdeps=$lt_postdeps
11643
11644 # The library search path used internally by the compiler when linking
11645 # a shared library.
11646 compiler_lib_search_path=$lt_compiler_lib_search_path
11647
11648 # Method to check whether dependent libraries are shared objects.
11649 deplibs_check_method=$lt_deplibs_check_method
11650
11651 # Command to use when deplibs_check_method == file_magic.
11652 file_magic_cmd=$lt_file_magic_cmd
11653
11654 # Flag that allows shared libraries with undefined symbols to be built.
11655 allow_undefined_flag=$lt_allow_undefined_flag
11656
11657 # Flag that forces no undefined symbols.
11658 no_undefined_flag=$lt_no_undefined_flag
11659
11660 # Commands used to finish a libtool library installation in a directory.
11661 finish_cmds=$lt_finish_cmds
11662
11663 # Same as above, but a single script fragment to be evaled but not shown.
11664 finish_eval=$lt_finish_eval
11665
11666 # Take the output of nm and produce a listing of raw symbols and C names.
11667 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11668
11669 # Transform the output of nm in a proper C declaration
11670 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11671
11672 # Transform the output of nm in a C name address pair
11673 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11674
11675 # This is the shared library runtime path variable.
11676 runpath_var=$runpath_var
11677
11678 # This is the shared library path variable.
11679 shlibpath_var=$shlibpath_var
11680
11681 # Is shlibpath searched before the hard-coded library search path?
11682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11683
11684 # How to hardcode a shared library path into an executable.
11685 hardcode_action=$hardcode_action
11686
11687 # Whether we should hardcode library paths into libraries.
11688 hardcode_into_libs=$hardcode_into_libs
11689
11690 # Flag to hardcode \$libdir into a binary during linking.
11691 # This must work even if \$libdir does not exist.
11692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11693
11694 # If ld is used when linking, flag to hardcode \$libdir into
11695 # a binary during linking. This must work even if \$libdir does
11696 # not exist.
11697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11698
11699 # Whether we need a single -rpath flag with a separated argument.
11700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11701
11702 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_direct=$hardcode_direct
11705
11706 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_minus_L=$hardcode_minus_L
11709
11710 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11711 # the resulting binary.
11712 hardcode_shlibpath_var=$hardcode_shlibpath_var
11713
11714 # Set to yes if building a shared library automatically hardcodes DIR into the library
11715 # and all subsequent libraries and executables linked against it.
11716 hardcode_automatic=$hardcode_automatic
11717
11718 # Variables whose values should be saved in libtool wrapper scripts and
11719 # restored at relink time.
11720 variables_saved_for_relink="$variables_saved_for_relink"
11721
11722 # Whether libtool must link a program against all its dependency libraries.
11723 link_all_deplibs=$link_all_deplibs
11724
11725 # Compile-time system search path for libraries
11726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11727
11728 # Run-time system search path for libraries
11729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11730
11731 # Fix the shell variable \$srcfile for the compiler.
11732 fix_srcfile_path="$fix_srcfile_path"
11733
11734 # Set to yes if exported symbols are required.
11735 always_export_symbols=$always_export_symbols
11736
11737 # The commands to list exported symbols.
11738 export_symbols_cmds=$lt_export_symbols_cmds
11739
11740 # The commands to extract the exported symbol list from a shared archive.
11741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11742
11743 # Symbols that should not be listed in the preloaded symbols.
11744 exclude_expsyms=$lt_exclude_expsyms
11745
11746 # Symbols that must always be exported.
11747 include_expsyms=$lt_include_expsyms
11748
11749 # ### END LIBTOOL CONFIG
11750
11751 __EOF__
11752
11753
11754   case $host_os in
11755   aix3*)
11756     cat <<\EOF >> "$cfgfile"
11757
11758 # AIX sometimes has problems with the GCC collect2 program.  For some
11759 # reason, if we set the COLLECT_NAMES environment variable, the problems
11760 # vanish in a puff of smoke.
11761 if test "X${COLLECT_NAMES+set}" != Xset; then
11762   COLLECT_NAMES=
11763   export COLLECT_NAMES
11764 fi
11765 EOF
11766     ;;
11767   esac
11768
11769   # We use sed instead of cat because bash on DJGPP gets confused if
11770   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11771   # text mode, it properly converts lines to CR/LF.  This bash problem
11772   # is reportedly fixed, but why not run on old versions too?
11773   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11774
11775   mv -f "$cfgfile" "$ofile" || \
11776     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11777   chmod +x "$ofile"
11778
11779 else
11780   # If there is no Makefile yet, we rely on a make rule to execute
11781   # `config.status --recheck' to rerun these tests and create the
11782   # libtool script then.
11783   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11784   if test -f "$ltmain_in"; then
11785     test -f Makefile && make "$ltmain"
11786   fi
11787 fi
11788
11789
11790 ac_ext=c
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795
11796 CC="$lt_save_CC"
11797
11798
11799 # Check whether --with-tags was given.
11800 if test "${with_tags+set}" = set; then
11801   withval=$with_tags; tagnames="$withval"
11802 fi
11803
11804
11805 if test -f "$ltmain" && test -n "$tagnames"; then
11806   if test ! -f "${ofile}"; then
11807     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11808 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11809   fi
11810
11811   if test -z "$LTCC"; then
11812     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11813     if test -z "$LTCC"; then
11814       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11815 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11816     else
11817       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11818 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11819     fi
11820   fi
11821
11822   # Extract list of available tagged configurations in $ofile.
11823   # Note that this assumes the entire list is on one line.
11824   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11825
11826   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11827   for tagname in $tagnames; do
11828     IFS="$lt_save_ifs"
11829     # Check whether tagname contains only valid characters
11830     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11831     "") ;;
11832     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11834    { (exit 1); exit 1; }; }
11835         ;;
11836     esac
11837
11838     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11839     then
11840       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11842    { (exit 1); exit 1; }; }
11843     fi
11844
11845     # Update the list of available tags.
11846     if test -n "$tagname"; then
11847       echo appending configuration tag \"$tagname\" to $ofile
11848
11849       case $tagname in
11850       CXX)
11851         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11852             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11853             (test "X$CXX" != "Xg++"))) ; then
11854           :
11855         else
11856           tagname=""
11857         fi
11858         ;;
11859
11860       F77)
11861         if test -n "$F77" && test "X$F77" != "Xno"; then
11862           :
11863         else
11864           tagname=""
11865         fi
11866         ;;
11867
11868       GCJ)
11869         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11870           :
11871         else
11872           tagname=""
11873         fi
11874         ;;
11875
11876       RC)
11877
11878
11879 # Source file extension for RC test sources.
11880 ac_ext=rc
11881
11882 # Object file extension for compiled RC test sources.
11883 objext=o
11884 objext_RC=$objext
11885
11886 # Code to be used in simple compile tests
11887 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11888
11889 # Code to be used in simple link tests
11890 lt_simple_link_test_code="$lt_simple_compile_test_code"
11891
11892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11893
11894 # If no C compiler was specified, use CC.
11895 LTCC=${LTCC-"$CC"}
11896
11897 # Allow CC to be a program name with arguments.
11898 compiler=$CC
11899
11900
11901 # save warnings/boilerplate of simple test code
11902 ac_outfile=conftest.$ac_objext
11903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11905 _lt_compiler_boilerplate=`cat conftest.err`
11906 $rm conftest*
11907
11908 ac_outfile=conftest.$ac_objext
11909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11911 _lt_linker_boilerplate=`cat conftest.err`
11912 $rm conftest*
11913
11914
11915 # Allow CC to be a program name with arguments.
11916 lt_save_CC="$CC"
11917 CC=${RC-"windres"}
11918 compiler=$CC
11919 compiler_RC=$CC
11920 for cc_temp in $compiler""; do
11921   case $cc_temp in
11922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11924     \-*) ;;
11925     *) break;;
11926   esac
11927 done
11928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11929
11930 lt_cv_prog_compiler_c_o_RC=yes
11931
11932 # The else clause should only fire when bootstrapping the
11933 # libtool distribution, otherwise you forgot to ship ltmain.sh
11934 # with your package, and you will get complaints that there are
11935 # no rules to generate ltmain.sh.
11936 if test -f "$ltmain"; then
11937   # See if we are running on zsh, and set the options which allow our commands through
11938   # without removal of \ escapes.
11939   if test -n "${ZSH_VERSION+set}" ; then
11940     setopt NO_GLOB_SUBST
11941   fi
11942   # Now quote all the things that may contain metacharacters while being
11943   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11944   # variables and quote the copies for generation of the libtool script.
11945   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11946     SED SHELL STRIP \
11947     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11948     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11949     deplibs_check_method reload_flag reload_cmds need_locks \
11950     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11951     lt_cv_sys_global_symbol_to_c_name_address \
11952     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11953     old_postinstall_cmds old_postuninstall_cmds \
11954     compiler_RC \
11955     CC_RC \
11956     LD_RC \
11957     lt_prog_compiler_wl_RC \
11958     lt_prog_compiler_pic_RC \
11959     lt_prog_compiler_static_RC \
11960     lt_prog_compiler_no_builtin_flag_RC \
11961     export_dynamic_flag_spec_RC \
11962     thread_safe_flag_spec_RC \
11963     whole_archive_flag_spec_RC \
11964     enable_shared_with_static_runtimes_RC \
11965     old_archive_cmds_RC \
11966     old_archive_from_new_cmds_RC \
11967     predep_objects_RC \
11968     postdep_objects_RC \
11969     predeps_RC \
11970     postdeps_RC \
11971     compiler_lib_search_path_RC \
11972     archive_cmds_RC \
11973     archive_expsym_cmds_RC \
11974     postinstall_cmds_RC \
11975     postuninstall_cmds_RC \
11976     old_archive_from_expsyms_cmds_RC \
11977     allow_undefined_flag_RC \
11978     no_undefined_flag_RC \
11979     export_symbols_cmds_RC \
11980     hardcode_libdir_flag_spec_RC \
11981     hardcode_libdir_flag_spec_ld_RC \
11982     hardcode_libdir_separator_RC \
11983     hardcode_automatic_RC \
11984     module_cmds_RC \
11985     module_expsym_cmds_RC \
11986     lt_cv_prog_compiler_c_o_RC \
11987     exclude_expsyms_RC \
11988     include_expsyms_RC; do
11989
11990     case $var in
11991     old_archive_cmds_RC | \
11992     old_archive_from_new_cmds_RC | \
11993     archive_cmds_RC | \
11994     archive_expsym_cmds_RC | \
11995     module_cmds_RC | \
11996     module_expsym_cmds_RC | \
11997     old_archive_from_expsyms_cmds_RC | \
11998     export_symbols_cmds_RC | \
11999     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12000     postinstall_cmds | postuninstall_cmds | \
12001     old_postinstall_cmds | old_postuninstall_cmds | \
12002     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12003       # Double-quote double-evaled strings.
12004       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12005       ;;
12006     *)
12007       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12008       ;;
12009     esac
12010   done
12011
12012   case $lt_echo in
12013   *'\$0 --fallback-echo"')
12014     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12015     ;;
12016   esac
12017
12018 cfgfile="$ofile"
12019
12020   cat <<__EOF__ >> "$cfgfile"
12021 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12022
12023 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12024
12025 # Shell to use when invoking shell scripts.
12026 SHELL=$lt_SHELL
12027
12028 # Whether or not to build shared libraries.
12029 build_libtool_libs=$enable_shared
12030
12031 # Whether or not to build static libraries.
12032 build_old_libs=$enable_static
12033
12034 # Whether or not to add -lc for building shared libraries.
12035 build_libtool_need_lc=$archive_cmds_need_lc_RC
12036
12037 # Whether or not to disallow shared libs when runtime libs are static
12038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12039
12040 # Whether or not to optimize for fast installation.
12041 fast_install=$enable_fast_install
12042
12043 # The host system.
12044 host_alias=$host_alias
12045 host=$host
12046 host_os=$host_os
12047
12048 # The build system.
12049 build_alias=$build_alias
12050 build=$build
12051 build_os=$build_os
12052
12053 # An echo program that does not interpret backslashes.
12054 echo=$lt_echo
12055
12056 # The archiver.
12057 AR=$lt_AR
12058 AR_FLAGS=$lt_AR_FLAGS
12059
12060 # A C compiler.
12061 LTCC=$lt_LTCC
12062
12063 # A language-specific compiler.
12064 CC=$lt_compiler_RC
12065
12066 # Is the compiler the GNU C compiler?
12067 with_gcc=$GCC_RC
12068
12069 # An ERE matcher.
12070 EGREP=$lt_EGREP
12071
12072 # The linker used to build libraries.
12073 LD=$lt_LD_RC
12074
12075 # Whether we need hard or soft links.
12076 LN_S=$lt_LN_S
12077
12078 # A BSD-compatible nm program.
12079 NM=$lt_NM
12080
12081 # A symbol stripping program
12082 STRIP=$lt_STRIP
12083
12084 # Used to examine libraries when file_magic_cmd begins "file"
12085 MAGIC_CMD=$MAGIC_CMD
12086
12087 # Used on cygwin: DLL creation program.
12088 DLLTOOL="$DLLTOOL"
12089
12090 # Used on cygwin: object dumper.
12091 OBJDUMP="$OBJDUMP"
12092
12093 # Used on cygwin: assembler.
12094 AS="$AS"
12095
12096 # The name of the directory that contains temporary libtool files.
12097 objdir=$objdir
12098
12099 # How to create reloadable object files.
12100 reload_flag=$lt_reload_flag
12101 reload_cmds=$lt_reload_cmds
12102
12103 # How to pass a linker flag through the compiler.
12104 wl=$lt_lt_prog_compiler_wl_RC
12105
12106 # Object file suffix (normally "o").
12107 objext="$ac_objext"
12108
12109 # Old archive suffix (normally "a").
12110 libext="$libext"
12111
12112 # Shared library suffix (normally ".so").
12113 shrext_cmds='$shrext_cmds'
12114
12115 # Executable file suffix (normally "").
12116 exeext="$exeext"
12117
12118 # Additional compiler flags for building library objects.
12119 pic_flag=$lt_lt_prog_compiler_pic_RC
12120 pic_mode=$pic_mode
12121
12122 # What is the maximum length of a command?
12123 max_cmd_len=$lt_cv_sys_max_cmd_len
12124
12125 # Does compiler simultaneously support -c and -o options?
12126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12127
12128 # Must we lock files when doing compilation?
12129 need_locks=$lt_need_locks
12130
12131 # Do we need the lib prefix for modules?
12132 need_lib_prefix=$need_lib_prefix
12133
12134 # Do we need a version for libraries?
12135 need_version=$need_version
12136
12137 # Whether dlopen is supported.
12138 dlopen_support=$enable_dlopen
12139
12140 # Whether dlopen of programs is supported.
12141 dlopen_self=$enable_dlopen_self
12142
12143 # Whether dlopen of statically linked programs is supported.
12144 dlopen_self_static=$enable_dlopen_self_static
12145
12146 # Compiler flag to prevent dynamic linking.
12147 link_static_flag=$lt_lt_prog_compiler_static_RC
12148
12149 # Compiler flag to turn off builtin functions.
12150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12151
12152 # Compiler flag to allow reflexive dlopens.
12153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12154
12155 # Compiler flag to generate shared objects directly from archives.
12156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12157
12158 # Compiler flag to generate thread-safe objects.
12159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12160
12161 # Library versioning type.
12162 version_type=$version_type
12163
12164 # Format of library name prefix.
12165 libname_spec=$lt_libname_spec
12166
12167 # List of archive names.  First name is the real one, the rest are links.
12168 # The last name is the one that the linker finds with -lNAME.
12169 library_names_spec=$lt_library_names_spec
12170
12171 # The coded name of the library, if different from the real name.
12172 soname_spec=$lt_soname_spec
12173
12174 # Commands used to build and install an old-style archive.
12175 RANLIB=$lt_RANLIB
12176 old_archive_cmds=$lt_old_archive_cmds_RC
12177 old_postinstall_cmds=$lt_old_postinstall_cmds
12178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12179
12180 # Create an old-style archive from a shared archive.
12181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12182
12183 # Create a temporary old-style archive to link instead of a shared archive.
12184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12185
12186 # Commands used to build and install a shared archive.
12187 archive_cmds=$lt_archive_cmds_RC
12188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12189 postinstall_cmds=$lt_postinstall_cmds
12190 postuninstall_cmds=$lt_postuninstall_cmds
12191
12192 # Commands used to build a loadable module (assumed same as above if empty)
12193 module_cmds=$lt_module_cmds_RC
12194 module_expsym_cmds=$lt_module_expsym_cmds_RC
12195
12196 # Commands to strip libraries.
12197 old_striplib=$lt_old_striplib
12198 striplib=$lt_striplib
12199
12200 # Dependencies to place before the objects being linked to create a
12201 # shared library.
12202 predep_objects=$lt_predep_objects_RC
12203
12204 # Dependencies to place after the objects being linked to create a
12205 # shared library.
12206 postdep_objects=$lt_postdep_objects_RC
12207
12208 # Dependencies to place before the objects being linked to create a
12209 # shared library.
12210 predeps=$lt_predeps_RC
12211
12212 # Dependencies to place after the objects being linked to create a
12213 # shared library.
12214 postdeps=$lt_postdeps_RC
12215
12216 # The library search path used internally by the compiler when linking
12217 # a shared library.
12218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12219
12220 # Method to check whether dependent libraries are shared objects.
12221 deplibs_check_method=$lt_deplibs_check_method
12222
12223 # Command to use when deplibs_check_method == file_magic.
12224 file_magic_cmd=$lt_file_magic_cmd
12225
12226 # Flag that allows shared libraries with undefined symbols to be built.
12227 allow_undefined_flag=$lt_allow_undefined_flag_RC
12228
12229 # Flag that forces no undefined symbols.
12230 no_undefined_flag=$lt_no_undefined_flag_RC
12231
12232 # Commands used to finish a libtool library installation in a directory.
12233 finish_cmds=$lt_finish_cmds
12234
12235 # Same as above, but a single script fragment to be evaled but not shown.
12236 finish_eval=$lt_finish_eval
12237
12238 # Take the output of nm and produce a listing of raw symbols and C names.
12239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12240
12241 # Transform the output of nm in a proper C declaration
12242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12243
12244 # Transform the output of nm in a C name address pair
12245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12246
12247 # This is the shared library runtime path variable.
12248 runpath_var=$runpath_var
12249
12250 # This is the shared library path variable.
12251 shlibpath_var=$shlibpath_var
12252
12253 # Is shlibpath searched before the hard-coded library search path?
12254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12255
12256 # How to hardcode a shared library path into an executable.
12257 hardcode_action=$hardcode_action_RC
12258
12259 # Whether we should hardcode library paths into libraries.
12260 hardcode_into_libs=$hardcode_into_libs
12261
12262 # Flag to hardcode \$libdir into a binary during linking.
12263 # This must work even if \$libdir does not exist.
12264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12265
12266 # If ld is used when linking, flag to hardcode \$libdir into
12267 # a binary during linking. This must work even if \$libdir does
12268 # not exist.
12269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12270
12271 # Whether we need a single -rpath flag with a separated argument.
12272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12273
12274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_direct=$hardcode_direct_RC
12277
12278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_minus_L=$hardcode_minus_L_RC
12281
12282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12283 # the resulting binary.
12284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12285
12286 # Set to yes if building a shared library automatically hardcodes DIR into the library
12287 # and all subsequent libraries and executables linked against it.
12288 hardcode_automatic=$hardcode_automatic_RC
12289
12290 # Variables whose values should be saved in libtool wrapper scripts and
12291 # restored at relink time.
12292 variables_saved_for_relink="$variables_saved_for_relink"
12293
12294 # Whether libtool must link a program against all its dependency libraries.
12295 link_all_deplibs=$link_all_deplibs_RC
12296
12297 # Compile-time system search path for libraries
12298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12299
12300 # Run-time system search path for libraries
12301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12302
12303 # Fix the shell variable \$srcfile for the compiler.
12304 fix_srcfile_path="$fix_srcfile_path_RC"
12305
12306 # Set to yes if exported symbols are required.
12307 always_export_symbols=$always_export_symbols_RC
12308
12309 # The commands to list exported symbols.
12310 export_symbols_cmds=$lt_export_symbols_cmds_RC
12311
12312 # The commands to extract the exported symbol list from a shared archive.
12313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12314
12315 # Symbols that should not be listed in the preloaded symbols.
12316 exclude_expsyms=$lt_exclude_expsyms_RC
12317
12318 # Symbols that must always be exported.
12319 include_expsyms=$lt_include_expsyms_RC
12320
12321 # ### END LIBTOOL TAG CONFIG: $tagname
12322
12323 __EOF__
12324
12325
12326 else
12327   # If there is no Makefile yet, we rely on a make rule to execute
12328   # `config.status --recheck' to rerun these tests and create the
12329   # libtool script then.
12330   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12331   if test -f "$ltmain_in"; then
12332     test -f Makefile && make "$ltmain"
12333   fi
12334 fi
12335
12336
12337 ac_ext=c
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343 CC="$lt_save_CC"
12344
12345         ;;
12346
12347       *)
12348         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12349 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12350    { (exit 1); exit 1; }; }
12351         ;;
12352       esac
12353
12354       # Append the new tag name to the list of available tags.
12355       if test -n "$tagname" ; then
12356       available_tags="$available_tags $tagname"
12357     fi
12358     fi
12359   done
12360   IFS="$lt_save_ifs"
12361
12362   # Now substitute the updated list of available tags.
12363   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12364     mv "${ofile}T" "$ofile"
12365     chmod +x "$ofile"
12366   else
12367     rm -f "${ofile}T"
12368     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12369 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12370    { (exit 1); exit 1; }; }
12371   fi
12372 fi
12373
12374
12375
12376 # This can be used to rebuild libtool when needed
12377 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12378
12379 # Always use our own libtool.
12380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12381
12382 # Prevent multiple expansion
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 ol_link_perl=no
12394 if test $ol_enable_perl != no ; then
12395         # Extract the first word of "perl", so it can be a program name with args.
12396 set dummy perl; ac_word=$2
12397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12399 if test "${ac_cv_path_PERLBIN+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   case $PERLBIN in
12403   [\\/]* | ?:[\\/]*)
12404   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12405   ;;
12406   *)
12407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12409 do
12410   IFS=$as_save_IFS
12411   test -z "$as_dir" && as_dir=.
12412   for ac_exec_ext in '' $ac_executable_extensions; do
12413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12414     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12416     break 2
12417   fi
12418 done
12419 done
12420 IFS=$as_save_IFS
12421
12422   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12423   ;;
12424 esac
12425 fi
12426 PERLBIN=$ac_cv_path_PERLBIN
12427 if test -n "$PERLBIN"; then
12428   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12429 echo "${ECHO_T}$PERLBIN" >&6; }
12430 else
12431   { echo "$as_me:$LINENO: result: no" >&5
12432 echo "${ECHO_T}no" >&6; }
12433 fi
12434
12435
12436
12437         if test "no$PERLBIN" = "no" ; then
12438                 if test $ol_enable_perl = yes ; then
12439                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12440 echo "$as_me: error: could not locate perl" >&2;}
12441    { (exit 1); exit 1; }; }
12442                 fi
12443
12444         else
12445                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12446                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12447
12448                 if test x"$ol_enable_perl" = "xyes" ; then
12449                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12450                 else
12451                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12452                 fi
12453                                 ol_link_perl=yes
12454         fi
12455 fi
12456
12457 ac_ext=c
12458 ac_cpp='$CPP $CPPFLAGS'
12459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12463 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12464 # On Suns, sometimes $CPP names a directory.
12465 if test -n "$CPP" && test -d "$CPP"; then
12466   CPP=
12467 fi
12468 if test -z "$CPP"; then
12469   if test "${ac_cv_prog_CPP+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472       # Double quotes because CPP needs to be expanded
12473     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12474     do
12475       ac_preproc_ok=false
12476 for ac_c_preproc_warn_flag in '' yes
12477 do
12478   # Use a header file that comes with gcc, so configuring glibc
12479   # with a fresh cross-compiler works.
12480   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481   # <limits.h> exists even on freestanding compilers.
12482   # On the NeXT, cc -E runs the code through the compiler's parser,
12483   # not just through cpp. "Syntax error" is here to catch this case.
12484   cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 #ifdef __STDC__
12491 # include <limits.h>
12492 #else
12493 # include <assert.h>
12494 #endif
12495                      Syntax error
12496 _ACEOF
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12504   ac_status=$?
12505   grep -v '^ *+' conftest.er1 >conftest.err
12506   rm -f conftest.er1
12507   cat conftest.err >&5
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); } >/dev/null && {
12510          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511          test ! -s conftest.err
12512        }; then
12513   :
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518   # Broken: fails on valid input.
12519 continue
12520 fi
12521
12522 rm -f conftest.err conftest.$ac_ext
12523
12524   # OK, works on sane cases.  Now check whether nonexistent headers
12525   # can be detected and how.
12526   cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 #include <ac_nonexistent.h>
12533 _ACEOF
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537   *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12541   ac_status=$?
12542   grep -v '^ *+' conftest.er1 >conftest.err
12543   rm -f conftest.er1
12544   cat conftest.err >&5
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } >/dev/null && {
12547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12548          test ! -s conftest.err
12549        }; then
12550   # Broken: success on invalid input.
12551 continue
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556   # Passes both tests.
12557 ac_preproc_ok=:
12558 break
12559 fi
12560
12561 rm -f conftest.err conftest.$ac_ext
12562
12563 done
12564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12565 rm -f conftest.err conftest.$ac_ext
12566 if $ac_preproc_ok; then
12567   break
12568 fi
12569
12570     done
12571     ac_cv_prog_CPP=$CPP
12572
12573 fi
12574   CPP=$ac_cv_prog_CPP
12575 else
12576   ac_cv_prog_CPP=$CPP
12577 fi
12578 { echo "$as_me:$LINENO: result: $CPP" >&5
12579 echo "${ECHO_T}$CPP" >&6; }
12580 ac_preproc_ok=false
12581 for ac_c_preproc_warn_flag in '' yes
12582 do
12583   # Use a header file that comes with gcc, so configuring glibc
12584   # with a fresh cross-compiler works.
12585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586   # <limits.h> exists even on freestanding compilers.
12587   # On the NeXT, cc -E runs the code through the compiler's parser,
12588   # not just through cpp. "Syntax error" is here to catch this case.
12589   cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 #ifdef __STDC__
12596 # include <limits.h>
12597 #else
12598 # include <assert.h>
12599 #endif
12600                      Syntax error
12601 _ACEOF
12602 if { (ac_try="$ac_cpp conftest.$ac_ext"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } >/dev/null && {
12615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12616          test ! -s conftest.err
12617        }; then
12618   :
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623   # Broken: fails on valid input.
12624 continue
12625 fi
12626
12627 rm -f conftest.err conftest.$ac_ext
12628
12629   # OK, works on sane cases.  Now check whether nonexistent headers
12630   # can be detected and how.
12631   cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637 #include <ac_nonexistent.h>
12638 _ACEOF
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } >/dev/null && {
12652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653          test ! -s conftest.err
12654        }; then
12655   # Broken: success on invalid input.
12656 continue
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661   # Passes both tests.
12662 ac_preproc_ok=:
12663 break
12664 fi
12665
12666 rm -f conftest.err conftest.$ac_ext
12667
12668 done
12669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12670 rm -f conftest.err conftest.$ac_ext
12671 if $ac_preproc_ok; then
12672   :
12673 else
12674   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&5
12676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12677 See \`config.log' for more details." >&2;}
12678    { (exit 1); exit 1; }; }
12679 fi
12680
12681 ac_ext=c
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12686
12687 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12688 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12689 if test "${ol_cv_msvc+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698
12699 #ifndef _MSC_VER
12700 #include <__FOO__/generate_error.h>
12701 #endif
12702
12703 _ACEOF
12704 if { (ac_try="$ac_cpp conftest.$ac_ext"
12705 case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12711   ac_status=$?
12712   grep -v '^ *+' conftest.er1 >conftest.err
12713   rm -f conftest.er1
12714   cat conftest.err >&5
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } >/dev/null && {
12717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718          test ! -s conftest.err
12719        }; then
12720   ol_cv_msvc=yes
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725   ol_cv_msvc=no
12726 fi
12727
12728 rm -f conftest.err conftest.$ac_ext
12729 fi
12730 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12731 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12732
12733 case $host_os in
12734   *mingw32* ) ac_cv_mingw32=yes ;;
12735   *cygwin* ) ac_cv_cygwin=yes ;;
12736   *interix* ) ac_cv_interix=yes ;;
12737 esac
12738
12739
12740
12741
12742 cat >>confdefs.h <<_ACEOF
12743 #define EXEEXT "${EXEEXT}"
12744 _ACEOF
12745
12746
12747 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12748 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_be_be_app+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lbe -lroot -lnet $LIBS"
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h.  */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h.  */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762    Use char because int might match the return type of a GCC
12763    builtin and then its argument prototype would still apply.  */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char be_app ();
12768 int
12769 main ()
12770 {
12771 return be_app ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_link") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } && {
12790          test -z "$ac_c_werror_flag" ||
12791          test ! -s conftest.err
12792        } && test -s conftest$ac_exeext &&
12793        $as_test_x conftest$ac_exeext; then
12794   ac_cv_lib_be_be_app=yes
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799         ac_cv_lib_be_be_app=no
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803       conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12805 fi
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12807 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12808 if test $ac_cv_lib_be_be_app = yes; then
12809   LIBS="$LIBS -lbe -lroot -lnet"
12810 else
12811   :
12812 fi
12813
12814
12815 ac_ext=c
12816 ac_cpp='$CPP $CPPFLAGS'
12817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820 if test -n "$ac_tool_prefix"; then
12821   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12825 if test "${ac_cv_prog_CC+set}" = set; then
12826   echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828   if test -n "$CC"; then
12829   ac_cv_prog_CC="$CC" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834   IFS=$as_save_IFS
12835   test -z "$as_dir" && as_dir=.
12836   for ac_exec_ext in '' $ac_executable_extensions; do
12837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12840     break 2
12841   fi
12842 done
12843 done
12844 IFS=$as_save_IFS
12845
12846 fi
12847 fi
12848 CC=$ac_cv_prog_CC
12849 if test -n "$CC"; then
12850   { echo "$as_me:$LINENO: result: $CC" >&5
12851 echo "${ECHO_T}$CC" >&6; }
12852 else
12853   { echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6; }
12855 fi
12856
12857
12858 fi
12859 if test -z "$ac_cv_prog_CC"; then
12860   ac_ct_CC=$CC
12861   # Extract the first word of "gcc", so it can be a program name with args.
12862 set dummy gcc; ac_word=$2
12863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   if test -n "$ac_ct_CC"; then
12869   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12870 else
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12873 do
12874   IFS=$as_save_IFS
12875   test -z "$as_dir" && as_dir=.
12876   for ac_exec_ext in '' $ac_executable_extensions; do
12877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878     ac_cv_prog_ac_ct_CC="gcc"
12879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12880     break 2
12881   fi
12882 done
12883 done
12884 IFS=$as_save_IFS
12885
12886 fi
12887 fi
12888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12889 if test -n "$ac_ct_CC"; then
12890   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12891 echo "${ECHO_T}$ac_ct_CC" >&6; }
12892 else
12893   { echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6; }
12895 fi
12896
12897   if test "x$ac_ct_CC" = x; then
12898     CC=""
12899   else
12900     case $cross_compiling:$ac_tool_warned in
12901 yes:)
12902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12903 whose name does not start with the host triplet.  If you think this
12904 configuration is useful to you, please write to autoconf@gnu.org." >&5
12905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12906 whose name does not start with the host triplet.  If you think this
12907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12908 ac_tool_warned=yes ;;
12909 esac
12910     CC=$ac_ct_CC
12911   fi
12912 else
12913   CC="$ac_cv_prog_CC"
12914 fi
12915
12916 if test -z "$CC"; then
12917           if test -n "$ac_tool_prefix"; then
12918     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}cc; ac_word=$2
12920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12922 if test "${ac_cv_prog_CC+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   if test -n "$CC"; then
12926   ac_cv_prog_CC="$CC" # Let the user override the test.
12927 else
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931   IFS=$as_save_IFS
12932   test -z "$as_dir" && as_dir=.
12933   for ac_exec_ext in '' $ac_executable_extensions; do
12934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935     ac_cv_prog_CC="${ac_tool_prefix}cc"
12936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12937     break 2
12938   fi
12939 done
12940 done
12941 IFS=$as_save_IFS
12942
12943 fi
12944 fi
12945 CC=$ac_cv_prog_CC
12946 if test -n "$CC"; then
12947   { echo "$as_me:$LINENO: result: $CC" >&5
12948 echo "${ECHO_T}$CC" >&6; }
12949 else
12950   { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12952 fi
12953
12954
12955   fi
12956 fi
12957 if test -z "$CC"; then
12958   # Extract the first word of "cc", so it can be a program name with args.
12959 set dummy cc; ac_word=$2
12960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12962 if test "${ac_cv_prog_CC+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   if test -n "$CC"; then
12966   ac_cv_prog_CC="$CC" # Let the user override the test.
12967 else
12968   ac_prog_rejected=no
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12971 do
12972   IFS=$as_save_IFS
12973   test -z "$as_dir" && as_dir=.
12974   for ac_exec_ext in '' $ac_executable_extensions; do
12975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12977        ac_prog_rejected=yes
12978        continue
12979      fi
12980     ac_cv_prog_CC="cc"
12981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12982     break 2
12983   fi
12984 done
12985 done
12986 IFS=$as_save_IFS
12987
12988 if test $ac_prog_rejected = yes; then
12989   # We found a bogon in the path, so make sure we never use it.
12990   set dummy $ac_cv_prog_CC
12991   shift
12992   if test $# != 0; then
12993     # We chose a different compiler from the bogus one.
12994     # However, it has the same basename, so the bogon will be chosen
12995     # first if we set CC to just the basename; use the full file name.
12996     shift
12997     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12998   fi
12999 fi
13000 fi
13001 fi
13002 CC=$ac_cv_prog_CC
13003 if test -n "$CC"; then
13004   { echo "$as_me:$LINENO: result: $CC" >&5
13005 echo "${ECHO_T}$CC" >&6; }
13006 else
13007   { echo "$as_me:$LINENO: result: no" >&5
13008 echo "${ECHO_T}no" >&6; }
13009 fi
13010
13011
13012 fi
13013 if test -z "$CC"; then
13014   if test -n "$ac_tool_prefix"; then
13015   for ac_prog in cl.exe
13016   do
13017     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13021 if test "${ac_cv_prog_CC+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   if test -n "$CC"; then
13025   ac_cv_prog_CC="$CC" # Let the user override the test.
13026 else
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13029 do
13030   IFS=$as_save_IFS
13031   test -z "$as_dir" && as_dir=.
13032   for ac_exec_ext in '' $ac_executable_extensions; do
13033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13036     break 2
13037   fi
13038 done
13039 done
13040 IFS=$as_save_IFS
13041
13042 fi
13043 fi
13044 CC=$ac_cv_prog_CC
13045 if test -n "$CC"; then
13046   { echo "$as_me:$LINENO: result: $CC" >&5
13047 echo "${ECHO_T}$CC" >&6; }
13048 else
13049   { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13051 fi
13052
13053
13054     test -n "$CC" && break
13055   done
13056 fi
13057 if test -z "$CC"; then
13058   ac_ct_CC=$CC
13059   for ac_prog in cl.exe
13060 do
13061   # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   if test -n "$ac_ct_CC"; then
13069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074   IFS=$as_save_IFS
13075   test -z "$as_dir" && as_dir=.
13076   for ac_exec_ext in '' $ac_executable_extensions; do
13077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078     ac_cv_prog_ac_ct_CC="$ac_prog"
13079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13080     break 2
13081   fi
13082 done
13083 done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13089 if test -n "$ac_ct_CC"; then
13090   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13091 echo "${ECHO_T}$ac_ct_CC" >&6; }
13092 else
13093   { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13095 fi
13096
13097
13098   test -n "$ac_ct_CC" && break
13099 done
13100
13101   if test "x$ac_ct_CC" = x; then
13102     CC=""
13103   else
13104     case $cross_compiling:$ac_tool_warned in
13105 yes:)
13106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13107 whose name does not start with the host triplet.  If you think this
13108 configuration is useful to you, please write to autoconf@gnu.org." >&5
13109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13110 whose name does not start with the host triplet.  If you think this
13111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13112 ac_tool_warned=yes ;;
13113 esac
13114     CC=$ac_ct_CC
13115   fi
13116 fi
13117
13118 fi
13119
13120
13121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: no acceptable C compiler found in \$PATH
13124 See \`config.log' for more details." >&2;}
13125    { (exit 1); exit 1; }; }
13126
13127 # Provide some information about the compiler.
13128 echo "$as_me:$LINENO: checking for C compiler version" >&5
13129 ac_compiler=`set X $ac_compile; echo $2`
13130 { (ac_try="$ac_compiler --version >&5"
13131 case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_compiler --version >&5") 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }
13140 { (ac_try="$ac_compiler -v >&5"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_compiler -v >&5") 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }
13150 { (ac_try="$ac_compiler -V >&5"
13151 case "(($ac_try" in
13152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153   *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156   (eval "$ac_compiler -V >&5") 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }
13160
13161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172
13173 int
13174 main ()
13175 {
13176 #ifndef __GNUC__
13177        choke me
13178 #endif
13179
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_compile") 2>conftest.er1
13192   ac_status=$?
13193   grep -v '^ *+' conftest.er1 >conftest.err
13194   rm -f conftest.er1
13195   cat conftest.err >&5
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); } && {
13198          test -z "$ac_c_werror_flag" ||
13199          test ! -s conftest.err
13200        } && test -s conftest.$ac_objext; then
13201   ac_compiler_gnu=yes
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206         ac_compiler_gnu=no
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13211
13212 fi
13213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13215 GCC=`test $ac_compiler_gnu = yes && echo yes`
13216 ac_test_CFLAGS=${CFLAGS+set}
13217 ac_save_CFLAGS=$CFLAGS
13218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13220 if test "${ac_cv_prog_cc_g+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   ac_save_c_werror_flag=$ac_c_werror_flag
13224    ac_c_werror_flag=yes
13225    ac_cv_prog_cc_g=no
13226    CFLAGS="-g"
13227    cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 int
13235 main ()
13236 {
13237
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext
13243 if { (ac_try="$ac_compile"
13244 case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_compile") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } && {
13256          test -z "$ac_c_werror_flag" ||
13257          test ! -s conftest.err
13258        } && test -s conftest.$ac_objext; then
13259   ac_cv_prog_cc_g=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264         CFLAGS=""
13265       cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h.  */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h.  */
13271
13272 int
13273 main ()
13274 {
13275
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
13282 case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_compile") 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } && {
13294          test -z "$ac_c_werror_flag" ||
13295          test ! -s conftest.err
13296        } && test -s conftest.$ac_objext; then
13297   :
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302         ac_c_werror_flag=$ac_save_c_werror_flag
13303          CFLAGS="-g"
13304          cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h.  */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h.  */
13310
13311 int
13312 main ()
13313 {
13314
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_compile") 2>conftest.er1
13327   ac_status=$?
13328   grep -v '^ *+' conftest.er1 >conftest.err
13329   rm -f conftest.er1
13330   cat conftest.err >&5
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } && {
13333          test -z "$ac_c_werror_flag" ||
13334          test ! -s conftest.err
13335        } && test -s conftest.$ac_objext; then
13336   ac_cv_prog_cc_g=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341
13342 fi
13343
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 fi
13346
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351    ac_c_werror_flag=$ac_save_c_werror_flag
13352 fi
13353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13355 if test "$ac_test_CFLAGS" = set; then
13356   CFLAGS=$ac_save_CFLAGS
13357 elif test $ac_cv_prog_cc_g = yes; then
13358   if test "$GCC" = yes; then
13359     CFLAGS="-g -O2"
13360   else
13361     CFLAGS="-g"
13362   fi
13363 else
13364   if test "$GCC" = yes; then
13365     CFLAGS="-O2"
13366   else
13367     CFLAGS=
13368   fi
13369 fi
13370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13372 if test "${ac_cv_prog_cc_c89+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375   ac_cv_prog_cc_c89=no
13376 ac_save_CC=$CC
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383 #include <stdarg.h>
13384 #include <stdio.h>
13385 #include <sys/types.h>
13386 #include <sys/stat.h>
13387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13388 struct buf { int x; };
13389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13390 static char *e (p, i)
13391      char **p;
13392      int i;
13393 {
13394   return p[i];
13395 }
13396 static char *f (char * (*g) (char **, int), char **p, ...)
13397 {
13398   char *s;
13399   va_list v;
13400   va_start (v,p);
13401   s = g (p, va_arg (v,int));
13402   va_end (v);
13403   return s;
13404 }
13405
13406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13407    function prototypes and stuff, but not '\xHH' hex character constants.
13408    These don't provoke an error unfortunately, instead are silently treated
13409    as 'x'.  The following induces an error, until -std is added to get
13410    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13411    array size at least.  It's necessary to write '\x00'==0 to get something
13412    that's true only with -std.  */
13413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13414
13415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13416    inside strings and character constants.  */
13417 #define FOO(x) 'x'
13418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13419
13420 int test (int i, double x);
13421 struct s1 {int (*f) (int a);};
13422 struct s2 {int (*f) (double a);};
13423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13424 int argc;
13425 char **argv;
13426 int
13427 main ()
13428 {
13429 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13435         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13436 do
13437   CC="$ac_save_CC $ac_arg"
13438   rm -f conftest.$ac_objext
13439 if { (ac_try="$ac_compile"
13440 case "(($ac_try" in
13441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442   *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445   (eval "$ac_compile") 2>conftest.er1
13446   ac_status=$?
13447   grep -v '^ *+' conftest.er1 >conftest.err
13448   rm -f conftest.er1
13449   cat conftest.err >&5
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } && {
13452          test -z "$ac_c_werror_flag" ||
13453          test ! -s conftest.err
13454        } && test -s conftest.$ac_objext; then
13455   ac_cv_prog_cc_c89=$ac_arg
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460
13461 fi
13462
13463 rm -f core conftest.err conftest.$ac_objext
13464   test "x$ac_cv_prog_cc_c89" != "xno" && break
13465 done
13466 rm -f conftest.$ac_ext
13467 CC=$ac_save_CC
13468
13469 fi
13470 # AC_CACHE_VAL
13471 case "x$ac_cv_prog_cc_c89" in
13472   x)
13473     { echo "$as_me:$LINENO: result: none needed" >&5
13474 echo "${ECHO_T}none needed" >&6; } ;;
13475   xno)
13476     { echo "$as_me:$LINENO: result: unsupported" >&5
13477 echo "${ECHO_T}unsupported" >&6; } ;;
13478   *)
13479     CC="$CC $ac_cv_prog_cc_c89"
13480     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13482 esac
13483
13484
13485 ac_ext=c
13486 ac_cpp='$CPP $CPPFLAGS'
13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13490
13491 depcc="$CC"   am_compiler_list=
13492
13493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13499   # We make a subdir and do the tests there.  Otherwise we can end up
13500   # making bogus files that we don't know about and never remove.  For
13501   # instance it was reported that on HP-UX the gcc test will end up
13502   # making a dummy file named `D' -- because `-MD' means `put the output
13503   # in D'.
13504   mkdir conftest.dir
13505   # Copy depcomp to subdir because otherwise we won't find it if we're
13506   # using a relative directory.
13507   cp "$am_depcomp" conftest.dir
13508   cd conftest.dir
13509   # We will build objects and dependencies in a subdirectory because
13510   # it helps to detect inapplicable dependency modes.  For instance
13511   # both Tru64's cc and ICC support -MD to output dependencies as a
13512   # side effect of compilation, but ICC will put the dependencies in
13513   # the current directory while Tru64 will put them in the object
13514   # directory.
13515   mkdir sub
13516
13517   am_cv_CC_dependencies_compiler_type=none
13518   if test "$am_compiler_list" = ""; then
13519      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13520   fi
13521   for depmode in $am_compiler_list; do
13522     # Setup a source with many dependencies, because some compilers
13523     # like to wrap large dependency lists on column 80 (with \), and
13524     # we should not choose a depcomp mode which is confused by this.
13525     #
13526     # We need to recreate these files for each test, as the compiler may
13527     # overwrite some of them when testing with obscure command lines.
13528     # This happens at least with the AIX C compiler.
13529     : > sub/conftest.c
13530     for i in 1 2 3 4 5 6; do
13531       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13532       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13533       # Solaris 8's {/usr,}/bin/sh.
13534       touch sub/conftst$i.h
13535     done
13536     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13537
13538     case $depmode in
13539     nosideeffect)
13540       # after this tag, mechanisms are not by side-effect, so they'll
13541       # only be used when explicitly requested
13542       if test "x$enable_dependency_tracking" = xyes; then
13543         continue
13544       else
13545         break
13546       fi
13547       ;;
13548     none) break ;;
13549     esac
13550     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13551     # mode.  It turns out that the SunPro C++ compiler does not properly
13552     # handle `-M -o', and we need to detect this.
13553     if depmode=$depmode \
13554        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13555        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13556        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13557          >/dev/null 2>conftest.err &&
13558        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13559        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13560        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13561       # icc doesn't choke on unknown options, it will just issue warnings
13562       # or remarks (even with -Werror).  So we grep stderr for any message
13563       # that says an option was ignored or not supported.
13564       # When given -MP, icc 7.0 and 7.1 complain thusly:
13565       #   icc: Command line warning: ignoring option '-M'; no argument required
13566       # The diagnosis changed in icc 8.0:
13567       #   icc: Command line remark: option '-MP' not supported
13568       if (grep 'ignoring option' conftest.err ||
13569           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13570         am_cv_CC_dependencies_compiler_type=$depmode
13571         break
13572       fi
13573     fi
13574   done
13575
13576   cd ..
13577   rm -rf conftest.dir
13578 else
13579   am_cv_CC_dependencies_compiler_type=none
13580 fi
13581
13582 fi
13583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13586
13587
13588
13589 if
13590   test "x$enable_dependency_tracking" != xno \
13591   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13592   am__fastdepCC_TRUE=
13593   am__fastdepCC_FALSE='#'
13594 else
13595   am__fastdepCC_TRUE='#'
13596   am__fastdepCC_FALSE=
13597 fi
13598
13599
13600 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13601         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13602 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13603    { (exit 1); exit 1; }; }
13604 fi
13605
13606 # test for make depend flag
13607 OL_MKDEP=
13608 OL_MKDEP_FLAGS=
13609 if test -z "${MKDEP}"; then
13610         OL_MKDEP="${CC-cc}"
13611         if test -z "${MKDEP_FLAGS}"; then
13612                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13613 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13614 if test "${ol_cv_mkdep+set}" = set; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617
13618                         ol_cv_mkdep=no
13619                         for flag in "-M" "-xM"; do
13620                                 cat > conftest.c <<EOF
13621  noCode;
13622 EOF
13623                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } \
13629                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13630                                 then
13631                                         if test ! -f conftest."${ac_object}" ; then
13632                                                 ol_cv_mkdep=$flag
13633                                                 OL_MKDEP_FLAGS="$flag"
13634                                                 break
13635                                         fi
13636                                 fi
13637                         done
13638                         rm -f conftest*
13639
13640 fi
13641 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13642 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13643                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13644         else
13645                 cc_cv_mkdep=yes
13646                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13647         fi
13648 else
13649         cc_cv_mkdep=yes
13650         OL_MKDEP="${MKDEP}"
13651         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13652 fi
13653
13654
13655
13656 if test "${ol_cv_mkdep}" = no ; then
13657         # this will soon become an error
13658         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13659 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13660 fi
13661
13662 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13663 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_s_afopen+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-ls  $LIBS"
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677    Use char because int might match the return type of a GCC
13678    builtin and then its argument prototype would still apply.  */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char afopen ();
13683 int
13684 main ()
13685 {
13686 return afopen ();
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695   *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698   (eval "$ac_link") 2>conftest.er1
13699   ac_status=$?
13700   grep -v '^ *+' conftest.er1 >conftest.err
13701   rm -f conftest.er1
13702   cat conftest.err >&5
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } && {
13705          test -z "$ac_c_werror_flag" ||
13706          test ! -s conftest.err
13707        } && test -s conftest$ac_exeext &&
13708        $as_test_x conftest$ac_exeext; then
13709   ac_cv_lib_s_afopen=yes
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714         ac_cv_lib_s_afopen=no
13715 fi
13716
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718       conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13722 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13723 if test $ac_cv_lib_s_afopen = yes; then
13724
13725         AUTH_LIBS=-ls
13726
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_AIX_SECURITY 1
13729 _ACEOF
13730
13731
13732 fi
13733
13734
13735 case "$target" in
13736 *-ibm-openedition)
13737         ac_cv_func_getopt=no
13738
13739 cat >>confdefs.h <<\_ACEOF
13740 #define BOTH_STRINGS_H 1
13741 _ACEOF
13742
13743         ;;
13744 esac
13745
13746 ol_link_modules=no
13747 WITH_MODULES_ENABLED=no
13748 if test $ol_enable_modules != no ; then
13749
13750 for ac_header in ltdl.h
13751 do
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13754   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 fi
13759 ac_res=`eval echo '${'$as_ac_Header'}'`
13760                { echo "$as_me:$LINENO: result: $ac_res" >&5
13761 echo "${ECHO_T}$ac_res" >&6; }
13762 else
13763   # Is the header compilable?
13764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13766 cat >conftest.$ac_ext <<_ACEOF
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772 $ac_includes_default
13773 #include <$ac_header>
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (ac_try="$ac_compile"
13777 case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782   (eval "$ac_compile") 2>conftest.er1
13783   ac_status=$?
13784   grep -v '^ *+' conftest.er1 >conftest.err
13785   rm -f conftest.er1
13786   cat conftest.err >&5
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); } && {
13789          test -z "$ac_c_werror_flag" ||
13790          test ! -s conftest.err
13791        } && test -s conftest.$ac_objext; then
13792   ac_header_compiler=yes
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13796
13797         ac_header_compiler=no
13798 fi
13799
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802 echo "${ECHO_T}$ac_header_compiler" >&6; }
13803
13804 # Is the header present?
13805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813 #include <$ac_header>
13814 _ACEOF
13815 if { (ac_try="$ac_cpp conftest.$ac_ext"
13816 case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } >/dev/null && {
13828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13829          test ! -s conftest.err
13830        }; then
13831   ac_header_preproc=yes
13832 else
13833   echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836   ac_header_preproc=no
13837 fi
13838
13839 rm -f conftest.err conftest.$ac_ext
13840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13841 echo "${ECHO_T}$ac_header_preproc" >&6; }
13842
13843 # So?  What about this header?
13844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13845   yes:no: )
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13850     ac_header_preproc=yes
13851     ;;
13852   no:yes:* )
13853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13865     ( cat <<\_ASBOX
13866 ## --------------------------------------------- ##
13867 ## Report this to <http://www.openldap.org/its/> ##
13868 ## --------------------------------------------- ##
13869 _ASBOX
13870      ) | sed "s/^/$as_me: WARNING:     /" >&2
13871     ;;
13872 esac
13873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   eval "$as_ac_Header=\$ac_header_preproc"
13879 fi
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881                { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13883
13884 fi
13885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13886   cat >>confdefs.h <<_ACEOF
13887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13888 _ACEOF
13889
13890 fi
13891
13892 done
13893
13894
13895         if test $ac_cv_header_ltdl_h = no ; then
13896                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13897 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13898    { (exit 1); exit 1; }; }
13899         fi
13900
13901         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13902 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13903 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lltdl  $LIBS"
13908 cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914
13915 /* Override any GCC internal prototype to avoid an error.
13916    Use char because int might match the return type of a GCC
13917    builtin and then its argument prototype would still apply.  */
13918 #ifdef __cplusplus
13919 extern "C"
13920 #endif
13921 char lt_dlinit ();
13922 int
13923 main ()
13924 {
13925 return lt_dlinit ();
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_link") 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } && {
13944          test -z "$ac_c_werror_flag" ||
13945          test ! -s conftest.err
13946        } && test -s conftest$ac_exeext &&
13947        $as_test_x conftest$ac_exeext; then
13948   ac_cv_lib_ltdl_lt_dlinit=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953         ac_cv_lib_ltdl_lt_dlinit=no
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13957       conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13959 fi
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13961 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13962 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13963
13964                 MODULES_LIBS=-lltdl
13965
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_LIBLTDL 1
13968 _ACEOF
13969
13970
13971 fi
13972
13973
13974         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13975                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13976 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13977    { (exit 1); exit 1; }; }
13978         fi
13979         ol_link_modules=yes
13980         WITH_MODULES_ENABLED=yes
13981
13982 else
13983         for i in $Backends; do
13984                 eval "ol_tmp=\$ol_enable_$i"
13985                 if test $ol_tmp = mod ; then
13986                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13987 echo "$as_me: WARNING: building static $i backend" >&2;}
13988                         eval "ol_enable_$i=yes"
13989                 fi
13990         done
13991         for i in $Overlays; do
13992                 eval "ol_tmp=\$ol_enable_$i"
13993                 if test $ol_tmp = mod ; then
13994                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13995 echo "$as_me: WARNING: building static $i overlay" >&2;}
13996                         eval "ol_enable_$i=yes"
13997                 fi
13998         done
13999 fi
14000
14001 # test for EBCDIC
14002 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14003 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14004 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007
14008         cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014
14015 #if !('M' == 0xd4)
14016 #include <__ASCII__/generate_error.h>
14017 #endif
14018
14019 _ACEOF
14020 if { (ac_try="$ac_cpp conftest.$ac_ext"
14021 case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14027   ac_status=$?
14028   grep -v '^ *+' conftest.er1 >conftest.err
14029   rm -f conftest.er1
14030   cat conftest.err >&5
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); } >/dev/null && {
14033          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14034          test ! -s conftest.err
14035        }; then
14036   ol_cv_cpp_ebcdic=yes
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041   ol_cv_cpp_ebcdic=no
14042 fi
14043
14044 rm -f conftest.err conftest.$ac_ext
14045 fi
14046 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14047 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14048 if test $ol_cv_cpp_ebcdic = yes ; then
14049
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_EBCDIC 1
14052 _ACEOF
14053
14054 fi
14055
14056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14058 if test "${ol_cv_header_stdc+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067 #include <stdlib.h>
14068 #include <stdarg.h>
14069 #include <string.h>
14070 #include <float.h>
14071 _ACEOF
14072 if { (ac_try="$ac_cpp conftest.$ac_ext"
14073 case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } >/dev/null && {
14085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14086          test ! -s conftest.err
14087        }; then
14088   ol_cv_header_stdc=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093   ol_cv_header_stdc=no
14094 fi
14095
14096 rm -f conftest.err conftest.$ac_ext
14097
14098 if test $ol_cv_header_stdc = yes; then
14099   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 #include <string.h>
14107
14108 _ACEOF
14109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14110   $EGREP "memchr" >/dev/null 2>&1; then
14111   :
14112 else
14113   ol_cv_header_stdc=no
14114 fi
14115 rm -f conftest*
14116
14117 fi
14118
14119 if test $ol_cv_header_stdc = yes; then
14120   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14121 cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127 #include <stdlib.h>
14128
14129 _ACEOF
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131   $EGREP "free" >/dev/null 2>&1; then
14132   :
14133 else
14134   ol_cv_header_stdc=no
14135 fi
14136 rm -f conftest*
14137
14138 fi
14139
14140 if test $ol_cv_header_stdc = yes; then
14141   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14142 if test "$cross_compiling" = yes; then
14143   :
14144 else
14145   cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 #include <ctype.h>
14152 #ifndef HAVE_EBCDIC
14153 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14154 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14155 #else
14156 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14157                 || ('j' <= (c) && (c) <= 'r') \
14158                 || ('s' <= (c) && (c) <= 'z'))
14159 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14160 #endif
14161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14162 int main () { int i; for (i = 0; i < 256; i++)
14163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14164 exit (0); }
14165
14166 _ACEOF
14167 rm -f conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171   *) ac_try_echo=$ac_try;;
14172 esac
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174   (eval "$ac_link") 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14178   { (case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_try") 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   :
14188 else
14189   echo "$as_me: program exited with status $ac_status" >&5
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ( exit $ac_status )
14194 ol_cv_header_stdc=no
14195 fi
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14197 fi
14198
14199
14200 fi
14201 fi
14202 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14203 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14204 if test $ol_cv_header_stdc = yes; then
14205   cat >>confdefs.h <<\_ACEOF
14206 #define STDC_HEADERS 1
14207 _ACEOF
14208
14209 fi
14210 ac_cv_header_stdc=disable
14211
14212
14213 if test $ol_cv_header_stdc != yes; then
14214         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14215 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14216 fi
14217
14218
14219
14220
14221
14222
14223 ac_header_dirent=no
14224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14225   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 #include <sys/types.h>
14238 #include <$ac_hdr>
14239
14240 int
14241 main ()
14242 {
14243 if ((DIR *) 0)
14244 return 0;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253   *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256   (eval "$ac_compile") 2>conftest.er1
14257   ac_status=$?
14258   grep -v '^ *+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } && {
14263          test -z "$ac_c_werror_flag" ||
14264          test ! -s conftest.err
14265        } && test -s conftest.$ac_objext; then
14266   eval "$as_ac_Header=yes"
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271         eval "$as_ac_Header=no"
14272 fi
14273
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 fi
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277                { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14280   cat >>confdefs.h <<_ACEOF
14281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14282 _ACEOF
14283
14284 ac_header_dirent=$ac_hdr; break
14285 fi
14286
14287 done
14288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14289 if test $ac_header_dirent = dirent.h; then
14290   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14292 if test "${ac_cv_search_opendir+set}" = set; then
14293   echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295   ac_func_search_save_LIBS=$LIBS
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302
14303 /* Override any GCC internal prototype to avoid an error.
14304    Use char because int might match the return type of a GCC
14305    builtin and then its argument prototype would still apply.  */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 char opendir ();
14310 int
14311 main ()
14312 {
14313 return opendir ();
14314   ;
14315   return 0;
14316 }
14317 _ACEOF
14318 for ac_lib in '' dir; do
14319   if test -z "$ac_lib"; then
14320     ac_res="none required"
14321   else
14322     ac_res=-l$ac_lib
14323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14324   fi
14325   rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_link") 2>conftest.er1
14333   ac_status=$?
14334   grep -v '^ *+' conftest.er1 >conftest.err
14335   rm -f conftest.er1
14336   cat conftest.err >&5
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } && {
14339          test -z "$ac_c_werror_flag" ||
14340          test ! -s conftest.err
14341        } && test -s conftest$ac_exeext &&
14342        $as_test_x conftest$ac_exeext; then
14343   ac_cv_search_opendir=$ac_res
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348
14349 fi
14350
14351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14352       conftest$ac_exeext
14353   if test "${ac_cv_search_opendir+set}" = set; then
14354   break
14355 fi
14356 done
14357 if test "${ac_cv_search_opendir+set}" = set; then
14358   :
14359 else
14360   ac_cv_search_opendir=no
14361 fi
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14364 fi
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14367 ac_res=$ac_cv_search_opendir
14368 if test "$ac_res" != no; then
14369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370
14371 fi
14372
14373 else
14374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14376 if test "${ac_cv_search_opendir+set}" = set; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   ac_func_search_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386
14387 /* Override any GCC internal prototype to avoid an error.
14388    Use char because int might match the return type of a GCC
14389    builtin and then its argument prototype would still apply.  */
14390 #ifdef __cplusplus
14391 extern "C"
14392 #endif
14393 char opendir ();
14394 int
14395 main ()
14396 {
14397 return opendir ();
14398   ;
14399   return 0;
14400 }
14401 _ACEOF
14402 for ac_lib in '' x; do
14403   if test -z "$ac_lib"; then
14404     ac_res="none required"
14405   else
14406     ac_res=-l$ac_lib
14407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14408   fi
14409   rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413   *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416   (eval "$ac_link") 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && {
14423          test -z "$ac_c_werror_flag" ||
14424          test ! -s conftest.err
14425        } && test -s conftest$ac_exeext &&
14426        $as_test_x conftest$ac_exeext; then
14427   ac_cv_search_opendir=$ac_res
14428 else
14429   echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432
14433 fi
14434
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14436       conftest$ac_exeext
14437   if test "${ac_cv_search_opendir+set}" = set; then
14438   break
14439 fi
14440 done
14441 if test "${ac_cv_search_opendir+set}" = set; then
14442   :
14443 else
14444   ac_cv_search_opendir=no
14445 fi
14446 rm conftest.$ac_ext
14447 LIBS=$ac_func_search_save_LIBS
14448 fi
14449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14451 ac_res=$ac_cv_search_opendir
14452 if test "$ac_res" != no; then
14453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14454
14455 fi
14456
14457 fi
14458
14459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h.  */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h.  */
14470 #include <sys/types.h>
14471 #include <sys/wait.h>
14472 #ifndef WEXITSTATUS
14473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14474 #endif
14475 #ifndef WIFEXITED
14476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14477 #endif
14478
14479 int
14480 main ()
14481 {
14482   int s;
14483   wait (&s);
14484   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_compile") 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } && {
14503          test -z "$ac_c_werror_flag" ||
14504          test ! -s conftest.err
14505        } && test -s conftest.$ac_objext; then
14506   ac_cv_header_sys_wait_h=yes
14507 else
14508   echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511         ac_cv_header_sys_wait_h=no
14512 fi
14513
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 fi
14516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14518 if test $ac_cv_header_sys_wait_h = yes; then
14519
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_SYS_WAIT_H 1
14522 _ACEOF
14523
14524 fi
14525
14526 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14527 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14528 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 #include <sys/types.h>
14538 #include <termios.h>
14539 #ifdef TIOCGWINSZ
14540   yes
14541 #endif
14542
14543 _ACEOF
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545   $EGREP "yes" >/dev/null 2>&1; then
14546   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14547 else
14548   ac_cv_sys_tiocgwinsz_in_termios_h=no
14549 fi
14550 rm -f conftest*
14551
14552 fi
14553 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14554 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14555
14556 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14557   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14558 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14559 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #include <sys/types.h>
14569 #include <sys/ioctl.h>
14570 #ifdef TIOCGWINSZ
14571   yes
14572 #endif
14573
14574 _ACEOF
14575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14576   $EGREP "yes" >/dev/null 2>&1; then
14577   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14578 else
14579   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14580 fi
14581 rm -f conftest*
14582
14583 fi
14584 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14585 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14586
14587   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14588
14589 cat >>confdefs.h <<\_ACEOF
14590 #define GWINSZ_IN_SYS_IOCTL 1
14591 _ACEOF
14592
14593   fi
14594 fi
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644 for ac_header in \
14645         arpa/inet.h             \
14646         arpa/nameser.h  \
14647         assert.h                \
14648         bits/types.h    \
14649         conio.h                 \
14650         crypt.h                 \
14651         direct.h                \
14652         errno.h                 \
14653         fcntl.h                 \
14654         filio.h                 \
14655         getopt.h                \
14656         grp.h                   \
14657         io.h                    \
14658         libutil.h               \
14659         limits.h                \
14660         locale.h                \
14661         malloc.h                \
14662         memory.h                \
14663         psap.h                  \
14664         pwd.h                   \
14665         process.h               \
14666         sgtty.h                 \
14667         shadow.h                \
14668         stddef.h                \
14669         string.h                \
14670         strings.h               \
14671         sysexits.h              \
14672         sys/file.h              \
14673         sys/filio.h             \
14674         sys/fstyp.h             \
14675         sys/errno.h             \
14676         sys/ioctl.h             \
14677         sys/param.h             \
14678         sys/privgrp.h   \
14679         sys/resource.h  \
14680         sys/select.h    \
14681         sys/socket.h    \
14682         sys/stat.h              \
14683         sys/syslog.h    \
14684         sys/time.h              \
14685         sys/types.h             \
14686         sys/uio.h               \
14687         sys/vmount.h    \
14688         syslog.h                \
14689         termios.h               \
14690         unistd.h                \
14691         utime.h                 \
14692
14693 do
14694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 fi
14701 ac_res=`eval echo '${'$as_ac_Header'}'`
14702                { echo "$as_me:$LINENO: result: $ac_res" >&5
14703 echo "${ECHO_T}$ac_res" >&6; }
14704 else
14705   # Is the header compilable?
14706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 $ac_includes_default
14715 #include <$ac_header>
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721   *) ac_try_echo=$ac_try;;
14722 esac
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724   (eval "$ac_compile") 2>conftest.er1
14725   ac_status=$?
14726   grep -v '^ *+' conftest.er1 >conftest.err
14727   rm -f conftest.er1
14728   cat conftest.err >&5
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); } && {
14731          test -z "$ac_c_werror_flag" ||
14732          test ! -s conftest.err
14733        } && test -s conftest.$ac_objext; then
14734   ac_header_compiler=yes
14735 else
14736   echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739         ac_header_compiler=no
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 echo "${ECHO_T}$ac_header_compiler" >&6; }
14745
14746 # Is the header present?
14747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755 #include <$ac_header>
14756 _ACEOF
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764   ac_status=$?
14765   grep -v '^ *+' conftest.er1 >conftest.err
14766   rm -f conftest.er1
14767   cat conftest.err >&5
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } >/dev/null && {
14770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771          test ! -s conftest.err
14772        }; then
14773   ac_header_preproc=yes
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778   ac_header_preproc=no
14779 fi
14780
14781 rm -f conftest.err conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14784
14785 # So?  What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787   yes:no: )
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792     ac_header_preproc=yes
14793     ;;
14794   no:yes:* )
14795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14807     ( cat <<\_ASBOX
14808 ## --------------------------------------------- ##
14809 ## Report this to <http://www.openldap.org/its/> ##
14810 ## --------------------------------------------- ##
14811 _ASBOX
14812      ) | sed "s/^/$as_me: WARNING:     /" >&2
14813     ;;
14814 esac
14815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   eval "$as_ac_Header=\$ac_header_preproc"
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
14826 fi
14827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14828   cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14830 _ACEOF
14831
14832 fi
14833
14834 done
14835
14836
14837 if test "$ac_cv_mingw32" = yes \
14838         -o "$ac_cv_interix" = yes \
14839         -o "$ol_cv_msvc" = yes
14840 then
14841
14842
14843 for ac_header in winsock.h winsock2.h
14844 do
14845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 fi
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853                { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14855 else
14856   # Is the header compilable?
14857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 $ac_includes_default
14866 #include <$ac_header>
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872   *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875   (eval "$ac_compile") 2>conftest.er1
14876   ac_status=$?
14877   grep -v '^ *+' conftest.er1 >conftest.err
14878   rm -f conftest.er1
14879   cat conftest.err >&5
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } && {
14882          test -z "$ac_c_werror_flag" ||
14883          test ! -s conftest.err
14884        } && test -s conftest.$ac_objext; then
14885   ac_header_compiler=yes
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890         ac_header_compiler=no
14891 fi
14892
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14896
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 #include <$ac_header>
14907 _ACEOF
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911   *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14915   ac_status=$?
14916   grep -v '^ *+' conftest.er1 >conftest.err
14917   rm -f conftest.er1
14918   cat conftest.err >&5
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } >/dev/null && {
14921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14922          test ! -s conftest.err
14923        }; then
14924   ac_header_preproc=yes
14925 else
14926   echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929   ac_header_preproc=no
14930 fi
14931
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14935
14936 # So?  What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14938   yes:no: )
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943     ac_header_preproc=yes
14944     ;;
14945   no:yes:* )
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14958     ( cat <<\_ASBOX
14959 ## --------------------------------------------- ##
14960 ## Report this to <http://www.openldap.org/its/> ##
14961 ## --------------------------------------------- ##
14962 _ASBOX
14963      ) | sed "s/^/$as_me: WARNING:     /" >&2
14964     ;;
14965 esac
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   eval "$as_ac_Header=\$ac_header_preproc"
14972 fi
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974                { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14976
14977 fi
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979   cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14981 _ACEOF
14982
14983 fi
14984
14985 done
14986
14987 fi
14988
14989
14990 for ac_header in resolv.h
14991 do
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 $ac_includes_default
15005 #include <netinet/in.h>
15006
15007
15008 #include <$ac_header>
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_compile") 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } && {
15024          test -z "$ac_c_werror_flag" ||
15025          test ! -s conftest.err
15026        } && test -s conftest.$ac_objext; then
15027   eval "$as_ac_Header=yes"
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032         eval "$as_ac_Header=no"
15033 fi
15034
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 fi
15037 ac_res=`eval echo '${'$as_ac_Header'}'`
15038                { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041   cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15043 _ACEOF
15044
15045 fi
15046
15047 done
15048
15049
15050
15051 for ac_header in netinet/tcp.h
15052 do
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059   cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h.  */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h.  */
15065 $ac_includes_default
15066 #include <netinet/in.h>
15067
15068
15069 #include <$ac_header>
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_compile") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } && {
15085          test -z "$ac_c_werror_flag" ||
15086          test ! -s conftest.err
15087        } && test -s conftest.$ac_objext; then
15088   eval "$as_ac_Header=yes"
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093         eval "$as_ac_Header=no"
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 fi
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099                { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102   cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15104 _ACEOF
15105
15106 fi
15107
15108 done
15109
15110
15111
15112 for ac_header in sys/ucred.h
15113 do
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 $ac_includes_default
15127 #ifdef HAVE_SYS_PARAM_H
15128 #include <sys/param.h>
15129 #endif
15130
15131
15132 #include <$ac_header>
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_compile") 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } && {
15148          test -z "$ac_c_werror_flag" ||
15149          test ! -s conftest.err
15150        } && test -s conftest.$ac_objext; then
15151   eval "$as_ac_Header=yes"
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156         eval "$as_ac_Header=no"
15157 fi
15158
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 fi
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162                { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165   cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167 _ACEOF
15168
15169 fi
15170
15171 done
15172
15173
15174
15175
15176
15177 for ac_func in sigaction sigset
15178 do
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15193 #define $ac_func innocuous_$ac_func
15194
15195 /* System header to define __stub macros and hopefully few prototypes,
15196     which can conflict with char $ac_func (); below.
15197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198     <limits.h> exists even on freestanding compilers.  */
15199
15200 #ifdef __STDC__
15201 # include <limits.h>
15202 #else
15203 # include <assert.h>
15204 #endif
15205
15206 #undef $ac_func
15207
15208 /* Override any GCC internal prototype to avoid an error.
15209    Use char because int might match the return type of a GCC
15210    builtin and then its argument prototype would still apply.  */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 char $ac_func ();
15215 /* The GNU C library defines this for functions which it implements
15216     to always fail with ENOSYS.  Some functions are actually named
15217     something starting with __ and the normal name is an alias.  */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15219 choke me
15220 #endif
15221
15222 int
15223 main ()
15224 {
15225 return $ac_func ();
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_link") 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } && {
15244          test -z "$ac_c_werror_flag" ||
15245          test ! -s conftest.err
15246        } && test -s conftest$ac_exeext &&
15247        $as_test_x conftest$ac_exeext; then
15248   eval "$as_ac_var=yes"
15249 else
15250   echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253         eval "$as_ac_var=no"
15254 fi
15255
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257       conftest$ac_exeext conftest.$ac_ext
15258 fi
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260                { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263   cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15265 _ACEOF
15266
15267 fi
15268 done
15269
15270
15271 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15272
15273 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15274 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lV3  $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287 /* Override any GCC internal prototype to avoid an error.
15288    Use char because int might match the return type of a GCC
15289    builtin and then its argument prototype would still apply.  */
15290 #ifdef __cplusplus
15291 extern "C"
15292 #endif
15293 char sigset ();
15294 int
15295 main ()
15296 {
15297 return sigset ();
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_link") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } && {
15316          test -z "$ac_c_werror_flag" ||
15317          test ! -s conftest.err
15318        } && test -s conftest$ac_exeext &&
15319        $as_test_x conftest$ac_exeext; then
15320   ac_cv_lib_V3_sigset=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325         ac_cv_lib_V3_sigset=no
15326 fi
15327
15328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15329       conftest$ac_exeext conftest.$ac_ext
15330 LIBS=$ac_check_lib_save_LIBS
15331 fi
15332 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15333 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15334 if test $ac_cv_lib_V3_sigset = yes; then
15335   cat >>confdefs.h <<_ACEOF
15336 #define HAVE_LIBV3 1
15337 _ACEOF
15338
15339   LIBS="-lV3 $LIBS"
15340
15341 fi
15342
15343 fi
15344
15345 if test $ol_cv_msvc = yes ; then
15346    ol_cv_winsock=yes
15347 fi
15348
15349 if test "$ac_cv_header_winsock_h" = yes; then
15350         { echo "$as_me:$LINENO: checking for winsock" >&5
15351 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15352 if test "${ol_cv_winsock+set}" = set; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355
15356         save_LIBS="$LIBS"
15357         for curlib in none ws2_32 wsock32; do
15358                 if test $curlib != none ; then
15359                 LIBS="$save_LIBS -l$curlib"
15360                 fi
15361                 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 #include <winsock.h>
15368
15369 int
15370 main ()
15371 {
15372
15373                         socket(0,0,0);
15374                         select(0,NULL,NULL,NULL,NULL);
15375                         closesocket(0);
15376                         gethostname(NULL,0);
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386   *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389   (eval "$ac_link") 2>conftest.er1
15390   ac_status=$?
15391   grep -v '^ *+' conftest.er1 >conftest.err
15392   rm -f conftest.er1
15393   cat conftest.err >&5
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } && {
15396          test -z "$ac_c_werror_flag" ||
15397          test ! -s conftest.err
15398        } && test -s conftest$ac_exeext &&
15399        $as_test_x conftest$ac_exeext; then
15400   ol_cv_winsock=$curlib
15401 else
15402   echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405         ol_cv_winsock=no
15406 fi
15407
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409       conftest$ac_exeext conftest.$ac_ext
15410
15411                 test "$ol_cv_winsock" != no && break
15412         done
15413         LIBS="$save_LIBS"
15414
15415 fi
15416 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15417 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15418
15419         if test $ol_cv_winsock != no ; then
15420
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_WINSOCK 1
15423 _ACEOF
15424
15425         ac_cv_func_socket=yes
15426         ac_cv_func_select=yes
15427         ac_cv_func_closesocket=yes
15428         ac_cv_func_gethostname=yes
15429
15430                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15431                 LIBS="$LIBS -l$ol_cv_winsock"
15432                 fi
15433
15434         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15435
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_WINSOCK2 1
15438 _ACEOF
15439
15440         fi
15441         fi
15442 fi
15443
15444
15445 { echo "$as_me:$LINENO: checking for socket" >&5
15446 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15447 if test "${ac_cv_func_socket+set}" = set; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   cat >conftest.$ac_ext <<_ACEOF
15451 /* confdefs.h.  */
15452 _ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h.  */
15456 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15458 #define socket innocuous_socket
15459
15460 /* System header to define __stub macros and hopefully few prototypes,
15461     which can conflict with char socket (); below.
15462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463     <limits.h> exists even on freestanding compilers.  */
15464
15465 #ifdef __STDC__
15466 # include <limits.h>
15467 #else
15468 # include <assert.h>
15469 #endif
15470
15471 #undef socket
15472
15473 /* Override any GCC internal prototype to avoid an error.
15474    Use char because int might match the return type of a GCC
15475    builtin and then its argument prototype would still apply.  */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char socket ();
15480 /* The GNU C library defines this for functions which it implements
15481     to always fail with ENOSYS.  Some functions are actually named
15482     something starting with __ and the normal name is an alias.  */
15483 #if defined __stub_socket || defined __stub___socket
15484 choke me
15485 #endif
15486
15487 int
15488 main ()
15489 {
15490 return socket ();
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_link") 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } && {
15509          test -z "$ac_c_werror_flag" ||
15510          test ! -s conftest.err
15511        } && test -s conftest$ac_exeext &&
15512        $as_test_x conftest$ac_exeext; then
15513   ac_cv_func_socket=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518         ac_cv_func_socket=no
15519 fi
15520
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522       conftest$ac_exeext conftest.$ac_ext
15523 fi
15524 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15525 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15526 if test $ac_cv_func_socket = yes; then
15527   :
15528 else
15529
15530
15531 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15532 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15533 if test "${ac_cv_lib_socket_main+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lsocket  $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h.  */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h.  */
15544
15545
15546 int
15547 main ()
15548 {
15549 return main ();
15550   ;
15551   return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_link") 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } && {
15568          test -z "$ac_c_werror_flag" ||
15569          test ! -s conftest.err
15570        } && test -s conftest$ac_exeext &&
15571        $as_test_x conftest$ac_exeext; then
15572   ac_cv_lib_socket_main=yes
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577         ac_cv_lib_socket_main=no
15578 fi
15579
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581       conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15583 fi
15584 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15585 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15586 if test $ac_cv_lib_socket_main = yes; then
15587   cat >>confdefs.h <<_ACEOF
15588 #define HAVE_LIBSOCKET 1
15589 _ACEOF
15590
15591   LIBS="-lsocket $LIBS"
15592
15593 fi
15594
15595
15596 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15597 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_net_main+set}" = set; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lnet  $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610
15611 int
15612 main ()
15613 {
15614 return main ();
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_link") 2>conftest.er1
15627   ac_status=$?
15628   grep -v '^ *+' conftest.er1 >conftest.err
15629   rm -f conftest.er1
15630   cat conftest.err >&5
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } && {
15633          test -z "$ac_c_werror_flag" ||
15634          test ! -s conftest.err
15635        } && test -s conftest$ac_exeext &&
15636        $as_test_x conftest$ac_exeext; then
15637   ac_cv_lib_net_main=yes
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642         ac_cv_lib_net_main=no
15643 fi
15644
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646       conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15648 fi
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15650 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15651 if test $ac_cv_lib_net_main = yes; then
15652   cat >>confdefs.h <<_ACEOF
15653 #define HAVE_LIBNET 1
15654 _ACEOF
15655
15656   LIBS="-lnet $LIBS"
15657
15658 fi
15659
15660
15661 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15662 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lnsl_s  $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674
15675
15676 int
15677 main ()
15678 {
15679 return main ();
15680   ;
15681   return 0;
15682 }
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688   *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691   (eval "$ac_link") 2>conftest.er1
15692   ac_status=$?
15693   grep -v '^ *+' conftest.er1 >conftest.err
15694   rm -f conftest.er1
15695   cat conftest.err >&5
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } && {
15698          test -z "$ac_c_werror_flag" ||
15699          test ! -s conftest.err
15700        } && test -s conftest$ac_exeext &&
15701        $as_test_x conftest$ac_exeext; then
15702   ac_cv_lib_nsl_s_main=yes
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707         ac_cv_lib_nsl_s_main=no
15708 fi
15709
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711       conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15713 fi
15714 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15715 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15716 if test $ac_cv_lib_nsl_s_main = yes; then
15717   cat >>confdefs.h <<_ACEOF
15718 #define HAVE_LIBNSL_S 1
15719 _ACEOF
15720
15721   LIBS="-lnsl_s $LIBS"
15722
15723 fi
15724
15725
15726 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15727 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15728 if test "${ac_cv_lib_nsl_main+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   ac_check_lib_save_LIBS=$LIBS
15732 LIBS="-lnsl  $LIBS"
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739
15740
15741 int
15742 main ()
15743 {
15744 return main ();
15745   ;
15746   return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753   *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756   (eval "$ac_link") 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } && {
15763          test -z "$ac_c_werror_flag" ||
15764          test ! -s conftest.err
15765        } && test -s conftest$ac_exeext &&
15766        $as_test_x conftest$ac_exeext; then
15767   ac_cv_lib_nsl_main=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772         ac_cv_lib_nsl_main=no
15773 fi
15774
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776       conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15778 fi
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15780 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15781 if test $ac_cv_lib_nsl_main = yes; then
15782   cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBNSL 1
15784 _ACEOF
15785
15786   LIBS="-lnsl $LIBS"
15787
15788 fi
15789
15790
15791 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15792 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_inet_socket+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-linet  $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h.  */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h.  */
15804
15805 /* Override any GCC internal prototype to avoid an error.
15806    Use char because int might match the return type of a GCC
15807    builtin and then its argument prototype would still apply.  */
15808 #ifdef __cplusplus
15809 extern "C"
15810 #endif
15811 char socket ();
15812 int
15813 main ()
15814 {
15815 return socket ();
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827   (eval "$ac_link") 2>conftest.er1
15828   ac_status=$?
15829   grep -v '^ *+' conftest.er1 >conftest.err
15830   rm -f conftest.er1
15831   cat conftest.err >&5
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } && {
15834          test -z "$ac_c_werror_flag" ||
15835          test ! -s conftest.err
15836        } && test -s conftest$ac_exeext &&
15837        $as_test_x conftest$ac_exeext; then
15838   ac_cv_lib_inet_socket=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843         ac_cv_lib_inet_socket=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847       conftest$ac_exeext conftest.$ac_ext
15848 LIBS=$ac_check_lib_save_LIBS
15849 fi
15850 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15851 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15852 if test $ac_cv_lib_inet_socket = yes; then
15853   cat >>confdefs.h <<_ACEOF
15854 #define HAVE_LIBINET 1
15855 _ACEOF
15856
15857   LIBS="-linet $LIBS"
15858
15859 fi
15860
15861
15862 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15863 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gen_main+set}" = set; then
15865   echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867   ac_check_lib_save_LIBS=$LIBS
15868 LIBS="-lgen  $LIBS"
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h.  */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h.  */
15875
15876
15877 int
15878 main ()
15879 {
15880 return main ();
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (ac_try="$ac_link"
15887 case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_link") 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } && {
15899          test -z "$ac_c_werror_flag" ||
15900          test ! -s conftest.err
15901        } && test -s conftest$ac_exeext &&
15902        $as_test_x conftest$ac_exeext; then
15903   ac_cv_lib_gen_main=yes
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908         ac_cv_lib_gen_main=no
15909 fi
15910
15911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15912       conftest$ac_exeext conftest.$ac_ext
15913 LIBS=$ac_check_lib_save_LIBS
15914 fi
15915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15916 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15917 if test $ac_cv_lib_gen_main = yes; then
15918   cat >>confdefs.h <<_ACEOF
15919 #define HAVE_LIBGEN 1
15920 _ACEOF
15921
15922   LIBS="-lgen $LIBS"
15923
15924 fi
15925
15926
15927 fi
15928
15929
15930 { echo "$as_me:$LINENO: checking for select" >&5
15931 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15932 if test "${ac_cv_func_select+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 /* Define select to an innocuous variant, in case <limits.h> declares select.
15942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15943 #define select innocuous_select
15944
15945 /* System header to define __stub macros and hopefully few prototypes,
15946     which can conflict with char select (); below.
15947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15948     <limits.h> exists even on freestanding compilers.  */
15949
15950 #ifdef __STDC__
15951 # include <limits.h>
15952 #else
15953 # include <assert.h>
15954 #endif
15955
15956 #undef select
15957
15958 /* Override any GCC internal prototype to avoid an error.
15959    Use char because int might match the return type of a GCC
15960    builtin and then its argument prototype would still apply.  */
15961 #ifdef __cplusplus
15962 extern "C"
15963 #endif
15964 char select ();
15965 /* The GNU C library defines this for functions which it implements
15966     to always fail with ENOSYS.  Some functions are actually named
15967     something starting with __ and the normal name is an alias.  */
15968 #if defined __stub_select || defined __stub___select
15969 choke me
15970 #endif
15971
15972 int
15973 main ()
15974 {
15975 return select ();
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_link") 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } && {
15994          test -z "$ac_c_werror_flag" ||
15995          test ! -s conftest.err
15996        } && test -s conftest$ac_exeext &&
15997        $as_test_x conftest$ac_exeext; then
15998   ac_cv_func_select=yes
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003         ac_cv_func_select=no
16004 fi
16005
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007       conftest$ac_exeext conftest.$ac_ext
16008 fi
16009 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16010 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16011 if test $ac_cv_func_select = yes; then
16012   :
16013 else
16014   { { echo "$as_me:$LINENO: error: select() required." >&5
16015 echo "$as_me: error: select() required." >&2;}
16016    { (exit 1); exit 1; }; }
16017 fi
16018
16019
16020 if test "${ac_cv_header_winsock_h}" != yes; then
16021
16022
16023 for ac_header in sys/select.h sys/socket.h
16024 do
16025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 fi
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033                { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16035 else
16036   # Is the header compilable?
16037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045 $ac_includes_default
16046 #include <$ac_header>
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055   (eval "$ac_compile") 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } && {
16062          test -z "$ac_c_werror_flag" ||
16063          test ! -s conftest.err
16064        } && test -s conftest.$ac_objext; then
16065   ac_header_compiler=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070         ac_header_compiler=no
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16076
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 #include <$ac_header>
16087 _ACEOF
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } >/dev/null && {
16101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102          test ! -s conftest.err
16103        }; then
16104   ac_header_preproc=yes
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109   ac_header_preproc=no
16110 fi
16111
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16115
16116 # So?  What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118   yes:no: )
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123     ac_header_preproc=yes
16124     ;;
16125   no:yes:* )
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138     ( cat <<\_ASBOX
16139 ## --------------------------------------------- ##
16140 ## Report this to <http://www.openldap.org/its/> ##
16141 ## --------------------------------------------- ##
16142 _ASBOX
16143      ) | sed "s/^/$as_me: WARNING:     /" >&2
16144     ;;
16145 esac
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   eval "$as_ac_Header=\$ac_header_preproc"
16152 fi
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154                { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156
16157 fi
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159   cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16161 _ACEOF
16162
16163 fi
16164
16165 done
16166
16167 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16168 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16169 if test "${ac_cv_func_select_args+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16173  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16174   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16175    cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 $ac_includes_default
16182 #ifdef HAVE_SYS_SELECT_H
16183 # include <sys/select.h>
16184 #endif
16185 #ifdef HAVE_SYS_SOCKET_H
16186 # include <sys/socket.h>
16187 #endif
16188
16189 int
16190 main ()
16191 {
16192 extern int select ($ac_arg1,
16193                                             $ac_arg234, $ac_arg234, $ac_arg234,
16194                                             $ac_arg5);
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_compile") 2>conftest.er1
16207   ac_status=$?
16208   grep -v '^ *+' conftest.er1 >conftest.err
16209   rm -f conftest.er1
16210   cat conftest.err >&5
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } && {
16213          test -z "$ac_c_werror_flag" ||
16214          test ! -s conftest.err
16215        } && test -s conftest.$ac_objext; then
16216   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221
16222 fi
16223
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225   done
16226  done
16227 done
16228 # Provide a safe default value.
16229 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16230
16231 fi
16232 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16233 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16234 ac_save_IFS=$IFS; IFS=','
16235 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16236 IFS=$ac_save_IFS
16237 shift
16238
16239 cat >>confdefs.h <<_ACEOF
16240 #define SELECT_TYPE_ARG1 $1
16241 _ACEOF
16242
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define SELECT_TYPE_ARG234 ($2)
16246 _ACEOF
16247
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define SELECT_TYPE_ARG5 ($3)
16251 _ACEOF
16252
16253 rm -f conftest*
16254
16255 fi
16256
16257
16258
16259 for ac_func in poll
16260 do
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265   echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267   cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h.  */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h.  */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16275 #define $ac_func innocuous_$ac_func
16276
16277 /* System header to define __stub macros and hopefully few prototypes,
16278     which can conflict with char $ac_func (); below.
16279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280     <limits.h> exists even on freestanding compilers.  */
16281
16282 #ifdef __STDC__
16283 # include <limits.h>
16284 #else
16285 # include <assert.h>
16286 #endif
16287
16288 #undef $ac_func
16289
16290 /* Override any GCC internal prototype to avoid an error.
16291    Use char because int might match the return type of a GCC
16292    builtin and then its argument prototype would still apply.  */
16293 #ifdef __cplusplus
16294 extern "C"
16295 #endif
16296 char $ac_func ();
16297 /* The GNU C library defines this for functions which it implements
16298     to always fail with ENOSYS.  Some functions are actually named
16299     something starting with __ and the normal name is an alias.  */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16301 choke me
16302 #endif
16303
16304 int
16305 main ()
16306 {
16307 return $ac_func ();
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316   *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319   (eval "$ac_link") 2>conftest.er1
16320   ac_status=$?
16321   grep -v '^ *+' conftest.er1 >conftest.err
16322   rm -f conftest.er1
16323   cat conftest.err >&5
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); } && {
16326          test -z "$ac_c_werror_flag" ||
16327          test ! -s conftest.err
16328        } && test -s conftest$ac_exeext &&
16329        $as_test_x conftest$ac_exeext; then
16330   eval "$as_ac_var=yes"
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335         eval "$as_ac_var=no"
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339       conftest$ac_exeext conftest.$ac_ext
16340 fi
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342                { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345   cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16347 _ACEOF
16348
16349 fi
16350 done
16351
16352 if test $ac_cv_func_poll = yes; then
16353
16354
16355 for ac_header in poll.h sys/poll.h
16356 do
16357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 fi
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365                { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16367 else
16368   # Is the header compilable?
16369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h.  */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h.  */
16377 $ac_includes_default
16378 #include <$ac_header>
16379 _ACEOF
16380 rm -f conftest.$ac_objext
16381 if { (ac_try="$ac_compile"
16382 case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_compile") 2>conftest.er1
16388   ac_status=$?
16389   grep -v '^ *+' conftest.er1 >conftest.err
16390   rm -f conftest.er1
16391   cat conftest.err >&5
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); } && {
16394          test -z "$ac_c_werror_flag" ||
16395          test ! -s conftest.err
16396        } && test -s conftest.$ac_objext; then
16397   ac_header_compiler=yes
16398 else
16399   echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402         ac_header_compiler=no
16403 fi
16404
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6; }
16408
16409 # Is the header present?
16410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 #include <$ac_header>
16419 _ACEOF
16420 if { (ac_try="$ac_cpp conftest.$ac_ext"
16421 case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } >/dev/null && {
16433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16434          test ! -s conftest.err
16435        }; then
16436   ac_header_preproc=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441   ac_header_preproc=no
16442 fi
16443
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16447
16448 # So?  What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450   yes:no: )
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455     ac_header_preproc=yes
16456     ;;
16457   no:yes:* )
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16470     ( cat <<\_ASBOX
16471 ## --------------------------------------------- ##
16472 ## Report this to <http://www.openldap.org/its/> ##
16473 ## --------------------------------------------- ##
16474 _ASBOX
16475      ) | sed "s/^/$as_me: WARNING:     /" >&2
16476     ;;
16477 esac
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   eval "$as_ac_Header=\$ac_header_preproc"
16484 fi
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486                { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16488
16489 fi
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491   cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16493 _ACEOF
16494
16495 fi
16496
16497 done
16498
16499 fi
16500
16501
16502 for ac_header in sys/epoll.h
16503 do
16504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 fi
16511 ac_res=`eval echo '${'$as_ac_Header'}'`
16512                { echo "$as_me:$LINENO: result: $ac_res" >&5
16513 echo "${ECHO_T}$ac_res" >&6; }
16514 else
16515   # Is the header compilable?
16516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 $ac_includes_default
16525 #include <$ac_header>
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531   *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534   (eval "$ac_compile") 2>conftest.er1
16535   ac_status=$?
16536   grep -v '^ *+' conftest.er1 >conftest.err
16537   rm -f conftest.er1
16538   cat conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); } && {
16541          test -z "$ac_c_werror_flag" ||
16542          test ! -s conftest.err
16543        } && test -s conftest.$ac_objext; then
16544   ac_header_compiler=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549         ac_header_compiler=no
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16554 echo "${ECHO_T}$ac_header_compiler" >&6; }
16555
16556 # Is the header present?
16557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 #include <$ac_header>
16566 _ACEOF
16567 if { (ac_try="$ac_cpp conftest.$ac_ext"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } >/dev/null && {
16580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16581          test ! -s conftest.err
16582        }; then
16583   ac_header_preproc=yes
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588   ac_header_preproc=no
16589 fi
16590
16591 rm -f conftest.err conftest.$ac_ext
16592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6; }
16594
16595 # So?  What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16597   yes:no: )
16598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16602     ac_header_preproc=yes
16603     ;;
16604   no:yes:* )
16605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16617     ( cat <<\_ASBOX
16618 ## --------------------------------------------- ##
16619 ## Report this to <http://www.openldap.org/its/> ##
16620 ## --------------------------------------------- ##
16621 _ASBOX
16622      ) | sed "s/^/$as_me: WARNING:     /" >&2
16623     ;;
16624 esac
16625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16628   echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630   eval "$as_ac_Header=\$ac_header_preproc"
16631 fi
16632 ac_res=`eval echo '${'$as_ac_Header'}'`
16633                { echo "$as_me:$LINENO: result: $ac_res" >&5
16634 echo "${ECHO_T}$ac_res" >&6; }
16635
16636 fi
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638   cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16640 _ACEOF
16641
16642 fi
16643
16644 done
16645
16646 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16647         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16648 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16649         if test "$cross_compiling" = yes; then
16650   { echo "$as_me:$LINENO: result: no" >&5
16651 echo "${ECHO_T}no" >&6; }
16652 else
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 int main(int argc, char **argv)
16660 {
16661         int epfd = epoll_create(256);
16662         exit (epfd == -1 ? 1 : 0);
16663 }
16664 _ACEOF
16665 rm -f conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672   (eval "$ac_link") 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16687
16688 cat >>confdefs.h <<\_ACEOF
16689 #define HAVE_EPOLL 1
16690 _ACEOF
16691
16692 else
16693   echo "$as_me: program exited with status $ac_status" >&5
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ( exit $ac_status )
16698 { echo "$as_me:$LINENO: result: no" >&5
16699 echo "${ECHO_T}no" >&6; }
16700 fi
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16702 fi
16703
16704
16705 fi
16706
16707
16708 for ac_header in sys/devpoll.h
16709 do
16710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 fi
16717 ac_res=`eval echo '${'$as_ac_Header'}'`
16718                { echo "$as_me:$LINENO: result: $ac_res" >&5
16719 echo "${ECHO_T}$ac_res" >&6; }
16720 else
16721   # Is the header compilable?
16722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 $ac_includes_default
16731 #include <$ac_header>
16732 _ACEOF
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737   *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740   (eval "$ac_compile") 2>conftest.er1
16741   ac_status=$?
16742   grep -v '^ *+' conftest.er1 >conftest.err
16743   rm -f conftest.er1
16744   cat conftest.err >&5
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } && {
16747          test -z "$ac_c_werror_flag" ||
16748          test ! -s conftest.err
16749        } && test -s conftest.$ac_objext; then
16750   ac_header_compiler=yes
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755         ac_header_compiler=no
16756 fi
16757
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16760 echo "${ECHO_T}$ac_header_compiler" >&6; }
16761
16762 # Is the header present?
16763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16765 cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771 #include <$ac_header>
16772 _ACEOF
16773 if { (ac_try="$ac_cpp conftest.$ac_ext"
16774 case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } >/dev/null && {
16786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787          test ! -s conftest.err
16788        }; then
16789   ac_header_preproc=yes
16790 else
16791   echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794   ac_header_preproc=no
16795 fi
16796
16797 rm -f conftest.err conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 echo "${ECHO_T}$ac_header_preproc" >&6; }
16800
16801 # So?  What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16803   yes:no: )
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16808     ac_header_preproc=yes
16809     ;;
16810   no:yes:* )
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16823     ( cat <<\_ASBOX
16824 ## --------------------------------------------- ##
16825 ## Report this to <http://www.openldap.org/its/> ##
16826 ## --------------------------------------------- ##
16827 _ASBOX
16828      ) | sed "s/^/$as_me: WARNING:     /" >&2
16829     ;;
16830 esac
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   eval "$as_ac_Header=\$ac_header_preproc"
16837 fi
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839                { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841
16842 fi
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844   cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16846 _ACEOF
16847
16848 fi
16849
16850 done
16851
16852 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16853                 -a "${ac_cv_header_poll_h}" = yes ; \
16854 then
16855         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16856 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16857         if test "$cross_compiling" = yes; then
16858   { echo "$as_me:$LINENO: result: no" >&5
16859 echo "${ECHO_T}no" >&6; }
16860 else
16861   cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 int main(int argc, char **argv)
16868 {
16869         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16870         exit (devpollfd == -1 ? 1 : 0);
16871 }
16872 _ACEOF
16873 rm -f conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_link") 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884   { (case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_try") 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16895
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE_DEVPOLL 1
16898 _ACEOF
16899
16900 else
16901   echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905 ( exit $ac_status )
16906 { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16908 fi
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16910 fi
16911
16912
16913 fi
16914
16915 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16916 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16917 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920
16921         cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927
16928 #include <stdio.h>
16929 #include <sys/types.h>
16930 #include <errno.h>
16931 #ifdef _WIN32
16932 #include <stdlib.h>
16933 #endif
16934 int
16935 main ()
16936 {
16937 char *c = (char *) *sys_errlist
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_compile") 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } && {
16956          test -z "$ac_c_werror_flag" ||
16957          test ! -s conftest.err
16958        } && test -s conftest.$ac_objext; then
16959   ol_cv_dcl_sys_errlist=yes
16960         ol_cv_have_sys_errlist=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965         ol_cv_dcl_sys_errlist=no
16966 fi
16967
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 fi
16970 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16971 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16972 #
16973 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16974 if test $ol_cv_dcl_sys_errlist = no ; then
16975
16976 cat >>confdefs.h <<\_ACEOF
16977 #define DECL_SYS_ERRLIST 1
16978 _ACEOF
16979
16980
16981         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16982 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16983 if test "${ol_cv_have_sys_errlist+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986
16987                 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #include <errno.h>
16994 int
16995 main ()
16996 {
16997 char *c = (char *) *sys_errlist
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_link") 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } && {
17016          test -z "$ac_c_werror_flag" ||
17017          test ! -s conftest.err
17018        } && test -s conftest$ac_exeext &&
17019        $as_test_x conftest$ac_exeext; then
17020   ol_cv_have_sys_errlist=yes
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025         ol_cv_have_sys_errlist=no
17026 fi
17027
17028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17029       conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17032 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17033 fi
17034 if test $ol_cv_have_sys_errlist = yes ; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_SYS_ERRLIST 1
17038 _ACEOF
17039
17040 fi
17041
17042
17043 for ac_func in strerror strerror_r
17044 do
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17059 #define $ac_func innocuous_$ac_func
17060
17061 /* System header to define __stub macros and hopefully few prototypes,
17062     which can conflict with char $ac_func (); below.
17063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064     <limits.h> exists even on freestanding compilers.  */
17065
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071
17072 #undef $ac_func
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075    Use char because int might match the return type of a GCC
17076    builtin and then its argument prototype would still apply.  */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char $ac_func ();
17081 /* The GNU C library defines this for functions which it implements
17082     to always fail with ENOSYS.  Some functions are actually named
17083     something starting with __ and the normal name is an alias.  */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 choke me
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return $ac_func ();
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_link") 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } && {
17110          test -z "$ac_c_werror_flag" ||
17111          test ! -s conftest.err
17112        } && test -s conftest$ac_exeext &&
17113        $as_test_x conftest$ac_exeext; then
17114   eval "$as_ac_var=yes"
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119         eval "$as_ac_var=no"
17120 fi
17121
17122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17123       conftest$ac_exeext conftest.$ac_ext
17124 fi
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126                { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129   cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17131 _ACEOF
17132
17133 fi
17134 done
17135
17136 ol_cv_func_strerror_r=no
17137 if test "${ac_cv_func_strerror_r}" = yes ; then
17138         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17139 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17140 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143
17144         cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150 #include <string.h>
17151 _ACEOF
17152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17153   $EGREP "strerror_r" >/dev/null 2>&1; then
17154   ol_decl_strerror_r=yes
17155 else
17156   ol_decl_strerror_r=no
17157 fi
17158 rm -f conftest*
17159
17160         if test $ol_decl_strerror_r = yes ; then
17161                 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 #include <string.h>
17168 int
17169 main ()
17170 {
17171    /* from autoconf 2.59 */
17172                                 char buf[100];
17173                                 char x = *strerror_r (0, buf, sizeof buf);
17174                                 char *p = strerror_r (0, buf, sizeof buf);
17175
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_compile") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } && {
17194          test -z "$ac_c_werror_flag" ||
17195          test ! -s conftest.err
17196        } && test -s conftest.$ac_objext; then
17197   ol_cv_nonposix_strerror_r=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202         ol_cv_nonposix_strerror_r=no
17203 fi
17204
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206         else
17207                 if test "$cross_compiling" = yes; then
17208   ol_cv_nonposix_strerror=no
17209 else
17210   cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217                         main() {
17218                                 char buf[100];
17219                                 buf[0] = 0;
17220                                 strerror_r( 1, buf, sizeof buf );
17221                                 exit( buf[0] == 0 );
17222                         }
17223
17224 _ACEOF
17225 rm -f conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_link") 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   ol_cv_nonposix_strerror_r=yes
17246 else
17247   echo "$as_me: program exited with status $ac_status" >&5
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ( exit $ac_status )
17252 ol_cv_nonposix_strerror=no
17253 fi
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17255 fi
17256
17257
17258         fi
17259
17260 fi
17261 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17262 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17263 if test $ol_cv_nonposix_strerror_r = yes ; then
17264
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_NONPOSIX_STRERROR_R 1
17267 _ACEOF
17268
17269 fi
17270
17271 elif test "${ac_cv_func_strerror}" = no ; then
17272         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17273 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17274 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277
17278         cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284
17285 #include <stdio.h>
17286 #include <sys/types.h>
17287 #include <errno.h>
17288 #ifdef _WIN32
17289 #include <stdlib.h>
17290 #endif
17291 int
17292 main ()
17293 {
17294 char *c = (char *) *sys_errlist
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_compile") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_c_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest.$ac_objext; then
17316   ol_cv_dcl_sys_errlist=yes
17317         ol_cv_have_sys_errlist=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         ol_cv_dcl_sys_errlist=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 fi
17327 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17328 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17329 #
17330 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17331 if test $ol_cv_dcl_sys_errlist = no ; then
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define DECL_SYS_ERRLIST 1
17335 _ACEOF
17336
17337
17338         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17339 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17340 if test "${ol_cv_have_sys_errlist+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343
17344                 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 #include <errno.h>
17351 int
17352 main ()
17353 {
17354 char *c = (char *) *sys_errlist
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   ol_cv_have_sys_errlist=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         ol_cv_have_sys_errlist=no
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387 fi
17388 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17389 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17390 fi
17391 if test $ol_cv_have_sys_errlist = yes ; then
17392
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_SYS_ERRLIST 1
17395 _ACEOF
17396
17397 fi
17398
17399 fi
17400
17401
17402
17403 for ac_header in regex.h
17404 do
17405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411   cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h.  */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h.  */
17417 $ac_includes_default
17418 #ifdef HAVE_SYS_TYPES_H
17419 #include <sys/types.h>
17420 #endif
17421
17422
17423 #include <$ac_header>
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_compile") 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } && {
17439          test -z "$ac_c_werror_flag" ||
17440          test ! -s conftest.err
17441        } && test -s conftest.$ac_objext; then
17442   eval "$as_ac_Header=yes"
17443 else
17444   echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447         eval "$as_ac_Header=no"
17448 fi
17449
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451 fi
17452 ac_res=`eval echo '${'$as_ac_Header'}'`
17453                { echo "$as_me:$LINENO: result: $ac_res" >&5
17454 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456   cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17458 _ACEOF
17459
17460 fi
17461
17462 done
17463
17464
17465 if test "$ac_cv_header_regex_h" != yes ; then
17466         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17467 echo "$as_me: error: POSIX regex.h required." >&2;}
17468    { (exit 1); exit 1; }; }
17469 fi
17470 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17471 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17472 if test "${ac_cv_search_regfree+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   ac_func_search_save_LIBS=$LIBS
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482
17483 /* Override any GCC internal prototype to avoid an error.
17484    Use char because int might match the return type of a GCC
17485    builtin and then its argument prototype would still apply.  */
17486 #ifdef __cplusplus
17487 extern "C"
17488 #endif
17489 char regfree ();
17490 int
17491 main ()
17492 {
17493 return regfree ();
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 for ac_lib in '' regex gnuregex; do
17499   if test -z "$ac_lib"; then
17500     ac_res="none required"
17501   else
17502     ac_res=-l$ac_lib
17503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17504   fi
17505   rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_link") 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } && {
17519          test -z "$ac_c_werror_flag" ||
17520          test ! -s conftest.err
17521        } && test -s conftest$ac_exeext &&
17522        $as_test_x conftest$ac_exeext; then
17523   ac_cv_search_regfree=$ac_res
17524 else
17525   echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528
17529 fi
17530
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17532       conftest$ac_exeext
17533   if test "${ac_cv_search_regfree+set}" = set; then
17534   break
17535 fi
17536 done
17537 if test "${ac_cv_search_regfree+set}" = set; then
17538   :
17539 else
17540   ac_cv_search_regfree=no
17541 fi
17542 rm conftest.$ac_ext
17543 LIBS=$ac_func_search_save_LIBS
17544 fi
17545 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17546 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17547 ac_res=$ac_cv_search_regfree
17548 if test "$ac_res" != no; then
17549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17550   :
17551 else
17552   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17553 echo "$as_me: error: POSIX regex required." >&2;}
17554    { (exit 1); exit 1; }; }
17555 fi
17556
17557
17558
17559 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17560 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17561 if test "${ol_cv_c_posix_regex+set}" = set; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564
17565         if test "$cross_compiling" = yes; then
17566   ol_cv_c_posix_regex=cross
17567 else
17568   cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h.  */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h.  */
17574
17575 #include <sys/types.h>
17576 #include <regex.h>
17577 static char *pattern, *string;
17578 main()
17579 {
17580         int rc;
17581         regex_t re;
17582
17583         pattern = "^A";
17584
17585         if(regcomp(&re, pattern, 0)) {
17586                 return -1;
17587         }
17588
17589         string = "ALL MATCH";
17590
17591         rc = regexec(&re, string, 0, (void*)0, 0);
17592
17593         regfree(&re);
17594
17595         return rc;
17596 }
17597 _ACEOF
17598 rm -f conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_link") 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609   { (case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_try") 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; }; then
17618   ol_cv_c_posix_regex=yes
17619 else
17620   echo "$as_me: program exited with status $ac_status" >&5
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ( exit $ac_status )
17625 ol_cv_c_posix_regex=no
17626 fi
17627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17628 fi
17629
17630
17631 fi
17632 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17633 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17634
17635 if test "$ol_cv_c_posix_regex" = no ; then
17636         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17637 echo "$as_me: error: broken POSIX regex!" >&2;}
17638    { (exit 1); exit 1; }; }
17639 fi
17640
17641
17642 have_uuid=no
17643
17644 for ac_header in sys/uuid.h
17645 do
17646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 fi
17653 ac_res=`eval echo '${'$as_ac_Header'}'`
17654                { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17656 else
17657   # Is the header compilable?
17658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666 $ac_includes_default
17667 #include <$ac_header>
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_compile") 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } && {
17683          test -z "$ac_c_werror_flag" ||
17684          test ! -s conftest.err
17685        } && test -s conftest.$ac_objext; then
17686   ac_header_compiler=yes
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691         ac_header_compiler=no
17692 fi
17693
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17696 echo "${ECHO_T}$ac_header_compiler" >&6; }
17697
17698 # Is the header present?
17699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707 #include <$ac_header>
17708 _ACEOF
17709 if { (ac_try="$ac_cpp conftest.$ac_ext"
17710 case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } >/dev/null && {
17722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17723          test ! -s conftest.err
17724        }; then
17725   ac_header_preproc=yes
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730   ac_header_preproc=no
17731 fi
17732
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17736
17737 # So?  What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17739   yes:no: )
17740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744     ac_header_preproc=yes
17745     ;;
17746   no:yes:* )
17747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17759     ( cat <<\_ASBOX
17760 ## --------------------------------------------- ##
17761 ## Report this to <http://www.openldap.org/its/> ##
17762 ## --------------------------------------------- ##
17763 _ASBOX
17764      ) | sed "s/^/$as_me: WARNING:     /" >&2
17765     ;;
17766 esac
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   eval "$as_ac_Header=\$ac_header_preproc"
17773 fi
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775                { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777
17778 fi
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780   cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785
17786 done
17787
17788 if test $ac_cv_header_sys_uuid_h = yes ; then
17789         save_LIBS="$LIBS"
17790         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17791 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17792 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795   ac_func_search_save_LIBS=$LIBS
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802
17803 /* Override any GCC internal prototype to avoid an error.
17804    Use char because int might match the return type of a GCC
17805    builtin and then its argument prototype would still apply.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char uuid_to_str ();
17810 int
17811 main ()
17812 {
17813 return uuid_to_str ();
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 for ac_lib in '' uuid; do
17819   if test -z "$ac_lib"; then
17820     ac_res="none required"
17821   else
17822     ac_res=-l$ac_lib
17823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17824   fi
17825   rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_link") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest$ac_exeext &&
17842        $as_test_x conftest$ac_exeext; then
17843   ac_cv_search_uuid_to_str=$ac_res
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17852       conftest$ac_exeext
17853   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17854   break
17855 fi
17856 done
17857 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17858   :
17859 else
17860   ac_cv_search_uuid_to_str=no
17861 fi
17862 rm conftest.$ac_ext
17863 LIBS=$ac_func_search_save_LIBS
17864 fi
17865 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17866 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17867 ac_res=$ac_cv_search_uuid_to_str
17868 if test "$ac_res" != no; then
17869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17870   have_uuid=yes
17871 else
17872   :
17873 fi
17874
17875         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17876 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17877 if test "${ac_cv_search_uuid_create+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   ac_func_search_save_LIBS=$LIBS
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17887
17888 /* Override any GCC internal prototype to avoid an error.
17889    Use char because int might match the return type of a GCC
17890    builtin and then its argument prototype would still apply.  */
17891 #ifdef __cplusplus
17892 extern "C"
17893 #endif
17894 char uuid_create ();
17895 int
17896 main ()
17897 {
17898 return uuid_create ();
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 for ac_lib in '' uuid; do
17904   if test -z "$ac_lib"; then
17905     ac_res="none required"
17906   else
17907     ac_res=-l$ac_lib
17908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17909   fi
17910   rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_link") 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } && {
17924          test -z "$ac_c_werror_flag" ||
17925          test ! -s conftest.err
17926        } && test -s conftest$ac_exeext &&
17927        $as_test_x conftest$ac_exeext; then
17928   ac_cv_search_uuid_create=$ac_res
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937       conftest$ac_exeext
17938   if test "${ac_cv_search_uuid_create+set}" = set; then
17939   break
17940 fi
17941 done
17942 if test "${ac_cv_search_uuid_create+set}" = set; then
17943   :
17944 else
17945   ac_cv_search_uuid_create=no
17946 fi
17947 rm conftest.$ac_ext
17948 LIBS=$ac_func_search_save_LIBS
17949 fi
17950 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17951 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17952 ac_res=$ac_cv_search_uuid_create
17953 if test "$ac_res" != no; then
17954   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17955   :
17956 else
17957   have_uuid=no
17958 fi
17959
17960         LIBS="$save_LIBS"
17961
17962         if test $have_uuid = yes ; then
17963
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_UUID_TO_STR 1
17966 _ACEOF
17967
17968
17969                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17970                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17971         fi
17972 fi
17973
17974 if test $have_uuid = no ; then
17975
17976 for ac_header in uuid/uuid.h
17977 do
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 fi
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986                { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17988 else
17989   # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h.  */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h.  */
17998 $ac_includes_default
17999 #include <$ac_header>
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_compile") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && {
18015          test -z "$ac_c_werror_flag" ||
18016          test ! -s conftest.err
18017        } && test -s conftest.$ac_objext; then
18018   ac_header_compiler=yes
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023         ac_header_compiler=no
18024 fi
18025
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 #include <$ac_header>
18040 _ACEOF
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18048   ac_status=$?
18049   grep -v '^ *+' conftest.er1 >conftest.err
18050   rm -f conftest.er1
18051   cat conftest.err >&5
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); } >/dev/null && {
18054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055          test ! -s conftest.err
18056        }; then
18057   ac_header_preproc=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062   ac_header_preproc=no
18063 fi
18064
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068
18069 # So?  What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071   yes:no: )
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076     ac_header_preproc=yes
18077     ;;
18078   no:yes:* )
18079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18091     ( cat <<\_ASBOX
18092 ## --------------------------------------------- ##
18093 ## Report this to <http://www.openldap.org/its/> ##
18094 ## --------------------------------------------- ##
18095 _ASBOX
18096      ) | sed "s/^/$as_me: WARNING:     /" >&2
18097     ;;
18098 esac
18099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   eval "$as_ac_Header=\$ac_header_preproc"
18105 fi
18106 ac_res=`eval echo '${'$as_ac_Header'}'`
18107                { echo "$as_me:$LINENO: result: $ac_res" >&5
18108 echo "${ECHO_T}$ac_res" >&6; }
18109
18110 fi
18111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18112   cat >>confdefs.h <<_ACEOF
18113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18114 _ACEOF
18115
18116 fi
18117
18118 done
18119
18120         if test $ac_cv_header_uuid_uuid_h = yes ; then
18121                 save_LIBS="$LIBS"
18122                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18123 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18124 if test "${ac_cv_search_uuid_generate+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   ac_func_search_save_LIBS=$LIBS
18128 cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h.  */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h.  */
18134
18135 /* Override any GCC internal prototype to avoid an error.
18136    Use char because int might match the return type of a GCC
18137    builtin and then its argument prototype would still apply.  */
18138 #ifdef __cplusplus
18139 extern "C"
18140 #endif
18141 char uuid_generate ();
18142 int
18143 main ()
18144 {
18145 return uuid_generate ();
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 for ac_lib in '' uuid; do
18151   if test -z "$ac_lib"; then
18152     ac_res="none required"
18153   else
18154     ac_res=-l$ac_lib
18155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18156   fi
18157   rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164   (eval "$ac_link") 2>conftest.er1
18165   ac_status=$?
18166   grep -v '^ *+' conftest.er1 >conftest.err
18167   rm -f conftest.er1
18168   cat conftest.err >&5
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); } && {
18171          test -z "$ac_c_werror_flag" ||
18172          test ! -s conftest.err
18173        } && test -s conftest$ac_exeext &&
18174        $as_test_x conftest$ac_exeext; then
18175   ac_cv_search_uuid_generate=$ac_res
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18184       conftest$ac_exeext
18185   if test "${ac_cv_search_uuid_generate+set}" = set; then
18186   break
18187 fi
18188 done
18189 if test "${ac_cv_search_uuid_generate+set}" = set; then
18190   :
18191 else
18192   ac_cv_search_uuid_generate=no
18193 fi
18194 rm conftest.$ac_ext
18195 LIBS=$ac_func_search_save_LIBS
18196 fi
18197 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18198 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18199 ac_res=$ac_cv_search_uuid_generate
18200 if test "$ac_res" != no; then
18201   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18202   have_uuid=yes
18203 else
18204   :
18205 fi
18206
18207                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18208 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18209 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18210   echo $ECHO_N "(cached) $ECHO_C" >&6
18211 else
18212   ac_func_search_save_LIBS=$LIBS
18213 cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h.  */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h.  */
18219
18220 /* Override any GCC internal prototype to avoid an error.
18221    Use char because int might match the return type of a GCC
18222    builtin and then its argument prototype would still apply.  */
18223 #ifdef __cplusplus
18224 extern "C"
18225 #endif
18226 char uuid_unparse_lower ();
18227 int
18228 main ()
18229 {
18230 return uuid_unparse_lower ();
18231   ;
18232   return 0;
18233 }
18234 _ACEOF
18235 for ac_lib in '' uuid; do
18236   if test -z "$ac_lib"; then
18237     ac_res="none required"
18238   else
18239     ac_res=-l$ac_lib
18240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18241   fi
18242   rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249   (eval "$ac_link") 2>conftest.er1
18250   ac_status=$?
18251   grep -v '^ *+' conftest.er1 >conftest.err
18252   rm -f conftest.er1
18253   cat conftest.err >&5
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } && {
18256          test -z "$ac_c_werror_flag" ||
18257          test ! -s conftest.err
18258        } && test -s conftest$ac_exeext &&
18259        $as_test_x conftest$ac_exeext; then
18260   ac_cv_search_uuid_unparse_lower=$ac_res
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18269       conftest$ac_exeext
18270   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18271   break
18272 fi
18273 done
18274 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18275   :
18276 else
18277   ac_cv_search_uuid_unparse_lower=no
18278 fi
18279 rm conftest.$ac_ext
18280 LIBS=$ac_func_search_save_LIBS
18281 fi
18282 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18283 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18284 ac_res=$ac_cv_search_uuid_unparse_lower
18285 if test "$ac_res" != no; then
18286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18287   :
18288 else
18289   have_uuid=no
18290 fi
18291
18292                 LIBS="$save_LIBS"
18293
18294                 if test $have_uuid = yes ; then
18295
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE_UUID_GENERATE 1
18298 _ACEOF
18299
18300
18301                         test "$ac_cv_search_uuid_generate" = "none required" || \
18302                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18303                 fi
18304         fi
18305 fi
18306
18307 if test $have_uuid = no ; then
18308         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18309 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18310         save_LIBS="$LIBS"
18311         LIBS="$LIBS -lrpcrt4"
18312         cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h.  */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h.  */
18318
18319                 int __stdcall UuidCreate(void *);
18320                 int __stdcall UuidToStringA(void *,void **);
18321
18322 int
18323 main ()
18324 {
18325
18326                 UuidCreate(0);
18327                 UuidToStringA(0,0);
18328
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_link") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_c_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest$ac_exeext &&
18350        $as_test_x conftest$ac_exeext; then
18351   need_rpcrt=yes
18352 else
18353   echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356         need_rpcrt=no
18357 fi
18358
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360       conftest$ac_exeext conftest.$ac_ext
18361         if test $need_rpcrt = yes; then
18362                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18363         fi
18364         LIBS="$save_LIBS"
18365         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18366 echo "${ECHO_T}$need_rpcrt" >&6; }
18367 fi
18368
18369 ol_cv_lib_resolver=no
18370 if test $ol_cv_lib_resolver = no ; then
18371         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18372 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18373 if test "${ol_cv_resolver_none+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376
18377         ol_RESOLVER_LIB=
18378         ol_LIBS=$LIBS
18379         LIBS="$ol_RESOLVER_LIB $LIBS"
18380
18381         cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h.  */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h.  */
18387
18388 #ifdef HAVE_SYS_TYPES_H
18389 #       include <sys/types.h>
18390 #endif
18391 #include <netinet/in.h>
18392 #ifdef HAVE_ARPA_NAMESER_H
18393 #       include <arpa/nameser.h>
18394 #endif
18395 #ifdef HAVE_RESOLV_H
18396 #       include <resolv.h>
18397 #endif
18398
18399 int
18400 main ()
18401 {
18402 {
18403         int len, status;
18404         char *request = NULL;
18405         unsigned char reply[64*1024];
18406         unsigned char host[64*1024];
18407         unsigned char *p;
18408
18409 #ifdef NS_HFIXEDSZ
18410         /* Bind 8/9 interface */
18411         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18412 #else
18413         /* Bind 4 interface */
18414 # ifndef T_SRV
18415 #  define T_SRV 33
18416 # endif
18417         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18418 #endif
18419         p = reply;
18420 #ifdef NS_HFIXEDSZ
18421         /* Bind 8/9 interface */
18422         p += NS_HFIXEDSZ;
18423 #elif defined(HFIXEDSZ)
18424         /* Bind 4 interface w/ HFIXEDSZ */
18425         p += HFIXEDSZ;
18426 #else
18427         /* Bind 4 interface w/o HFIXEDSZ */
18428         p += sizeof(HEADER);
18429 #endif
18430         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18431 }
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_link") 2>conftest.er1
18444   ac_status=$?
18445   grep -v '^ *+' conftest.er1 >conftest.err
18446   rm -f conftest.er1
18447   cat conftest.err >&5
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } && {
18450          test -z "$ac_c_werror_flag" ||
18451          test ! -s conftest.err
18452        } && test -s conftest$ac_exeext &&
18453        $as_test_x conftest$ac_exeext; then
18454   ol_cv_resolver_none=yes
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459         ol_cv_resolver_none=no
18460 fi
18461
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463       conftest$ac_exeext conftest.$ac_ext
18464
18465         LIBS="$ol_LIBS"
18466
18467 fi
18468 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18469 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18470
18471         if test $ol_cv_resolver_none = yes ; then
18472                 ol_cv_lib_resolver=yes
18473         fi
18474 fi
18475
18476 if test $ol_cv_lib_resolver = no ; then
18477         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18478 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18479 if test "${ol_cv_resolver_resolv+set}" = set; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482
18483         ol_RESOLVER_LIB=-lresolv
18484         ol_LIBS=$LIBS
18485         LIBS="$ol_RESOLVER_LIB $LIBS"
18486
18487         cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493
18494 #ifdef HAVE_SYS_TYPES_H
18495 #       include <sys/types.h>
18496 #endif
18497 #include <netinet/in.h>
18498 #ifdef HAVE_ARPA_NAMESER_H
18499 #       include <arpa/nameser.h>
18500 #endif
18501 #ifdef HAVE_RESOLV_H
18502 #       include <resolv.h>
18503 #endif
18504
18505 int
18506 main ()
18507 {
18508 {
18509         int len, status;
18510         char *request = NULL;
18511         unsigned char reply[64*1024];
18512         unsigned char host[64*1024];
18513         unsigned char *p;
18514
18515 #ifdef NS_HFIXEDSZ
18516         /* Bind 8/9 interface */
18517         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18518 #else
18519         /* Bind 4 interface */
18520 # ifndef T_SRV
18521 #  define T_SRV 33
18522 # endif
18523         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18524 #endif
18525         p = reply;
18526 #ifdef NS_HFIXEDSZ
18527         /* Bind 8/9 interface */
18528         p += NS_HFIXEDSZ;
18529 #elif defined(HFIXEDSZ)
18530         /* Bind 4 interface w/ HFIXEDSZ */
18531         p += HFIXEDSZ;
18532 #else
18533         /* Bind 4 interface w/o HFIXEDSZ */
18534         p += sizeof(HEADER);
18535 #endif
18536         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18537 }
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_link") 2>conftest.er1
18550   ac_status=$?
18551   grep -v '^ *+' conftest.er1 >conftest.err
18552   rm -f conftest.er1
18553   cat conftest.err >&5
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); } && {
18556          test -z "$ac_c_werror_flag" ||
18557          test ! -s conftest.err
18558        } && test -s conftest$ac_exeext &&
18559        $as_test_x conftest$ac_exeext; then
18560   ol_cv_resolver_resolv=yes
18561 else
18562   echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565         ol_cv_resolver_resolv=no
18566 fi
18567
18568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18569       conftest$ac_exeext conftest.$ac_ext
18570
18571         LIBS="$ol_LIBS"
18572
18573 fi
18574 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18575 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18576
18577         if test $ol_cv_resolver_resolv = yes ; then
18578                 ol_cv_lib_resolver=-lresolv
18579         fi
18580 fi
18581
18582 if test $ol_cv_lib_resolver = no ; then
18583         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18584 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18585 if test "${ol_cv_resolver_bind+set}" = set; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588
18589         ol_RESOLVER_LIB=-lbind
18590         ol_LIBS=$LIBS
18591         LIBS="$ol_RESOLVER_LIB $LIBS"
18592
18593         cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599
18600 #ifdef HAVE_SYS_TYPES_H
18601 #       include <sys/types.h>
18602 #endif
18603 #include <netinet/in.h>
18604 #ifdef HAVE_ARPA_NAMESER_H
18605 #       include <arpa/nameser.h>
18606 #endif
18607 #ifdef HAVE_RESOLV_H
18608 #       include <resolv.h>
18609 #endif
18610
18611 int
18612 main ()
18613 {
18614 {
18615         int len, status;
18616         char *request = NULL;
18617         unsigned char reply[64*1024];
18618         unsigned char host[64*1024];
18619         unsigned char *p;
18620
18621 #ifdef NS_HFIXEDSZ
18622         /* Bind 8/9 interface */
18623         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18624 #else
18625         /* Bind 4 interface */
18626 # ifndef T_SRV
18627 #  define T_SRV 33
18628 # endif
18629         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18630 #endif
18631         p = reply;
18632 #ifdef NS_HFIXEDSZ
18633         /* Bind 8/9 interface */
18634         p += NS_HFIXEDSZ;
18635 #elif defined(HFIXEDSZ)
18636         /* Bind 4 interface w/ HFIXEDSZ */
18637         p += HFIXEDSZ;
18638 #else
18639         /* Bind 4 interface w/o HFIXEDSZ */
18640         p += sizeof(HEADER);
18641 #endif
18642         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18643 }
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652   *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655   (eval "$ac_link") 2>conftest.er1
18656   ac_status=$?
18657   grep -v '^ *+' conftest.er1 >conftest.err
18658   rm -f conftest.er1
18659   cat conftest.err >&5
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } && {
18662          test -z "$ac_c_werror_flag" ||
18663          test ! -s conftest.err
18664        } && test -s conftest$ac_exeext &&
18665        $as_test_x conftest$ac_exeext; then
18666   ol_cv_resolver_bind=yes
18667 else
18668   echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671         ol_cv_resolver_bind=no
18672 fi
18673
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675       conftest$ac_exeext conftest.$ac_ext
18676
18677         LIBS="$ol_LIBS"
18678
18679 fi
18680 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18681 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18682
18683         if test $ol_cv_resolver_bind = yes ; then
18684                 ol_cv_lib_resolver=-lbind
18685         fi
18686 fi
18687
18688
18689
18690 ol_link_dnssrv=no
18691 if test "$ol_cv_lib_resolver" != no ; then
18692
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE_RES_QUERY 1
18695 _ACEOF
18696
18697
18698         if test "$ol_enable_dnssrv" != no ; then
18699                 ol_link_dnssrv=yes
18700         fi
18701
18702         if test "$ol_cv_lib_resolver" != yes ; then
18703                 LIBS="$ol_cv_lib_resolver $LIBS"
18704         fi
18705 fi
18706
18707 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18708         if test "$ol_link_dnssrv" = no ; then
18709                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18710 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18711    { (exit 1); exit 1; }; }
18712         fi
18713 else
18714         ol_enable_dnssrv=no
18715 fi
18716
18717
18718 for ac_func in hstrerror
18719 do
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h.  */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h.  */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18734 #define $ac_func innocuous_$ac_func
18735
18736 /* System header to define __stub macros and hopefully few prototypes,
18737     which can conflict with char $ac_func (); below.
18738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739     <limits.h> exists even on freestanding compilers.  */
18740
18741 #ifdef __STDC__
18742 # include <limits.h>
18743 #else
18744 # include <assert.h>
18745 #endif
18746
18747 #undef $ac_func
18748
18749 /* Override any GCC internal prototype to avoid an error.
18750    Use char because int might match the return type of a GCC
18751    builtin and then its argument prototype would still apply.  */
18752 #ifdef __cplusplus
18753 extern "C"
18754 #endif
18755 char $ac_func ();
18756 /* The GNU C library defines this for functions which it implements
18757     to always fail with ENOSYS.  Some functions are actually named
18758     something starting with __ and the normal name is an alias.  */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18760 choke me
18761 #endif
18762
18763 int
18764 main ()
18765 {
18766 return $ac_func ();
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775   *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778   (eval "$ac_link") 2>conftest.er1
18779   ac_status=$?
18780   grep -v '^ *+' conftest.er1 >conftest.err
18781   rm -f conftest.er1
18782   cat conftest.err >&5
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } && {
18785          test -z "$ac_c_werror_flag" ||
18786          test ! -s conftest.err
18787        } && test -s conftest$ac_exeext &&
18788        $as_test_x conftest$ac_exeext; then
18789   eval "$as_ac_var=yes"
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794         eval "$as_ac_var=no"
18795 fi
18796
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798       conftest$ac_exeext conftest.$ac_ext
18799 fi
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801                { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804   cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806 _ACEOF
18807
18808 fi
18809 done
18810
18811
18812
18813
18814
18815
18816 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18817 do
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18832 #define $ac_func innocuous_$ac_func
18833
18834 /* System header to define __stub macros and hopefully few prototypes,
18835     which can conflict with char $ac_func (); below.
18836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837     <limits.h> exists even on freestanding compilers.  */
18838
18839 #ifdef __STDC__
18840 # include <limits.h>
18841 #else
18842 # include <assert.h>
18843 #endif
18844
18845 #undef $ac_func
18846
18847 /* Override any GCC internal prototype to avoid an error.
18848    Use char because int might match the return type of a GCC
18849    builtin and then its argument prototype would still apply.  */
18850 #ifdef __cplusplus
18851 extern "C"
18852 #endif
18853 char $ac_func ();
18854 /* The GNU C library defines this for functions which it implements
18855     to always fail with ENOSYS.  Some functions are actually named
18856     something starting with __ and the normal name is an alias.  */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18858 choke me
18859 #endif
18860
18861 int
18862 main ()
18863 {
18864 return $ac_func ();
18865   ;
18866   return 0;
18867 }
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_link") 2>conftest.er1
18877   ac_status=$?
18878   grep -v '^ *+' conftest.er1 >conftest.err
18879   rm -f conftest.er1
18880   cat conftest.err >&5
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } && {
18883          test -z "$ac_c_werror_flag" ||
18884          test ! -s conftest.err
18885        } && test -s conftest$ac_exeext &&
18886        $as_test_x conftest$ac_exeext; then
18887   eval "$as_ac_var=yes"
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892         eval "$as_ac_var=no"
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18896       conftest$ac_exeext conftest.$ac_ext
18897 fi
18898 ac_res=`eval echo '${'$as_ac_var'}'`
18899                { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902   cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18904 _ACEOF
18905
18906 fi
18907 done
18908
18909
18910 ol_link_ipv6=no
18911 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18912         if test $ol_enable_ipv6 = yes ; then
18913                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18914 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18915    { (exit 1); exit 1; }; }
18916         fi
18917 elif test $ol_enable_ipv6 != no ; then
18918         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18919 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18920 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923
18924                 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h.  */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h.  */
18930
18931 #                       include <netinet/in.h>
18932 #                       ifdef INET6_ADDRSTRLEN
18933                                 __has_inet6_addrstrlen__;
18934 #                       endif
18935
18936 _ACEOF
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18939   ol_cv_inet6_addrstrlen=yes
18940 else
18941   ol_cv_inet6_addrstrlen=no
18942 fi
18943 rm -f conftest*
18944
18945 fi
18946 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18947 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18948
18949
18950         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18951 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18952 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955
18956                 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962
18963 #include <sys/types.h>
18964 #include <sys/socket.h>
18965
18966 int
18967 main ()
18968 {
18969
18970                         struct sockaddr_storage ss;
18971
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (ac_try="$ac_compile"
18978 case "(($ac_try" in
18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980   *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983   (eval "$ac_compile") 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } && {
18990          test -z "$ac_c_werror_flag" ||
18991          test ! -s conftest.err
18992        } && test -s conftest.$ac_objext; then
18993   ol_cv_struct_sockaddr_storage=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998         ol_cv_struct_sockaddr_storage=no
18999 fi
19000
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19002 fi
19003 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19004 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19005
19006         if test $ol_cv_inet6_addrstrlen = yes &&
19007            test $ol_cv_struct_sockaddr_storage = yes ; then
19008                 ol_link_ipv6=yes
19009         elif test $ol_enable_ipv6 = yes &&
19010              test $ol_cv_inet6_addrstrlen = no ; then
19011                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19012 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19013    { (exit 1); exit 1; }; }
19014         elif test $ol_enable_ipv6 = yes &&
19015              test $ol_cv_struct_sockaddr_storage = no ; then
19016                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19017 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19018    { (exit 1); exit 1; }; }
19019         fi
19020 fi
19021
19022 if test $ol_enable_local != no ; then
19023
19024 for ac_header in sys/un.h
19025 do
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19028   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 fi
19033 ac_res=`eval echo '${'$as_ac_Header'}'`
19034                { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19036 else
19037   # Is the header compilable?
19038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h.  */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h.  */
19046 $ac_includes_default
19047 #include <$ac_header>
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053   *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056   (eval "$ac_compile") 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } && {
19063          test -z "$ac_c_werror_flag" ||
19064          test ! -s conftest.err
19065        } && test -s conftest.$ac_objext; then
19066   ac_header_compiler=yes
19067 else
19068   echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071         ac_header_compiler=no
19072 fi
19073
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19077
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 #include <$ac_header>
19088 _ACEOF
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19096   ac_status=$?
19097   grep -v '^ *+' conftest.er1 >conftest.err
19098   rm -f conftest.er1
19099   cat conftest.err >&5
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); } >/dev/null && {
19102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19103          test ! -s conftest.err
19104        }; then
19105   ac_header_preproc=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110   ac_header_preproc=no
19111 fi
19112
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19116
19117 # So?  What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19119   yes:no: )
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124     ac_header_preproc=yes
19125     ;;
19126   no:yes:* )
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19139     ( cat <<\_ASBOX
19140 ## --------------------------------------------- ##
19141 ## Report this to <http://www.openldap.org/its/> ##
19142 ## --------------------------------------------- ##
19143 _ASBOX
19144      ) | sed "s/^/$as_me: WARNING:     /" >&2
19145     ;;
19146 esac
19147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150   echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152   eval "$as_ac_Header=\$ac_header_preproc"
19153 fi
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155                { echo "$as_me:$LINENO: result: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19157
19158 fi
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160   cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19162 _ACEOF
19163
19164 fi
19165
19166 done
19167
19168
19169         if test $ol_enable_local = auto ; then
19170                 ol_enable_local=$ac_cv_header_sys_un_h
19171         elif test $ac_cv_header_sys_un_h = no ; then
19172                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19173 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19174    { (exit 1); exit 1; }; }
19175         fi
19176 fi
19177
19178
19179 if test $ol_with_tls = yes ; then
19180         ol_with_tls=auto
19181 fi
19182
19183 ol_link_tls=no
19184 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19185
19186 for ac_header in openssl/ssl.h
19187 do
19188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19193   echo $ECHO_N "(cached) $ECHO_C" >&6
19194 fi
19195 ac_res=`eval echo '${'$as_ac_Header'}'`
19196                { echo "$as_me:$LINENO: result: $ac_res" >&5
19197 echo "${ECHO_T}$ac_res" >&6; }
19198 else
19199   # Is the header compilable?
19200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208 $ac_includes_default
19209 #include <$ac_header>
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_compile") 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } && {
19225          test -z "$ac_c_werror_flag" ||
19226          test ! -s conftest.err
19227        } && test -s conftest.$ac_objext; then
19228   ac_header_compiler=yes
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233         ac_header_compiler=no
19234 fi
19235
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19238 echo "${ECHO_T}$ac_header_compiler" >&6; }
19239
19240 # Is the header present?
19241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19243 cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249 #include <$ac_header>
19250 _ACEOF
19251 if { (ac_try="$ac_cpp conftest.$ac_ext"
19252 case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } >/dev/null && {
19264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19265          test ! -s conftest.err
19266        }; then
19267   ac_header_preproc=yes
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272   ac_header_preproc=no
19273 fi
19274
19275 rm -f conftest.err conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6; }
19278
19279 # So?  What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19281   yes:no: )
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286     ac_header_preproc=yes
19287     ;;
19288   no:yes:* )
19289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19301     ( cat <<\_ASBOX
19302 ## --------------------------------------------- ##
19303 ## Report this to <http://www.openldap.org/its/> ##
19304 ## --------------------------------------------- ##
19305 _ASBOX
19306      ) | sed "s/^/$as_me: WARNING:     /" >&2
19307     ;;
19308 esac
19309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312   echo $ECHO_N "(cached) $ECHO_C" >&6
19313 else
19314   eval "$as_ac_Header=\$ac_header_preproc"
19315 fi
19316 ac_res=`eval echo '${'$as_ac_Header'}'`
19317                { echo "$as_me:$LINENO: result: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19319
19320 fi
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322   cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19324 _ACEOF
19325
19326 fi
19327
19328 done
19329
19330
19331         if test $ac_cv_header_openssl_ssl_h = yes ; then
19332                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19333 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lssl -lcrypto $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347    Use char because int might match the return type of a GCC
19348    builtin and then its argument prototype would still apply.  */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char SSL_library_init ();
19353 int
19354 main ()
19355 {
19356 return SSL_library_init ();
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368   (eval "$ac_link") 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } && {
19375          test -z "$ac_c_werror_flag" ||
19376          test ! -s conftest.err
19377        } && test -s conftest$ac_exeext &&
19378        $as_test_x conftest$ac_exeext; then
19379   ac_cv_lib_ssl_SSL_library_init=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         ac_cv_lib_ssl_SSL_library_init=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388       conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19390 fi
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19392 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19393 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19394   have_openssl=yes
19395                         need_rsaref=no
19396 else
19397   have_openssl=no
19398 fi
19399
19400
19401                 if test $have_openssl = no ; then
19402                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19403 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 /* Override any GCC internal prototype to avoid an error.
19417    Use char because int might match the return type of a GCC
19418    builtin and then its argument prototype would still apply.  */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char ssl3_accept ();
19423 int
19424 main ()
19425 {
19426 return ssl3_accept ();
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_link") 2>conftest.er1
19439   ac_status=$?
19440   grep -v '^ *+' conftest.er1 >conftest.err
19441   rm -f conftest.er1
19442   cat conftest.err >&5
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } && {
19445          test -z "$ac_c_werror_flag" ||
19446          test ! -s conftest.err
19447        } && test -s conftest$ac_exeext &&
19448        $as_test_x conftest$ac_exeext; then
19449   ac_cv_lib_ssl_ssl3_accept=yes
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454         ac_cv_lib_ssl_ssl3_accept=no
19455 fi
19456
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458       conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19460 fi
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19464   have_openssl=yes
19465                                 need_rsaref=yes
19466 else
19467   have_openssl=no
19468 fi
19469
19470                 fi
19471
19472                 if test $have_openssl = yes ; then
19473                         ol_with_tls=openssl
19474                         ol_link_tls=yes
19475
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19479 _ACEOF
19480
19481
19482                         if test $need_rsaref = yes; then
19483
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19486 _ACEOF
19487
19488
19489                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19490                         else
19491                                 TLS_LIBS="-lssl -lcrypto"
19492                         fi
19493
19494                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499
19500                 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19509 #endif
19510
19511 /* Require 0.9.7d+ */
19512 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19513         char *__ssl_compat = "0.9.7d";
19514 #endif
19515
19516 _ACEOF
19517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19518   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19519   ol_cv_ssl_crl_compat=yes
19520 else
19521   ol_cv_ssl_crl_compat=no
19522 fi
19523 rm -f conftest*
19524
19525 fi
19526 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19527 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19528
19529                         if test $ol_cv_ssl_crl_compat = yes ; then
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL_CRL 1
19533 _ACEOF
19534
19535                         fi
19536                 fi
19537         fi
19538 fi
19539
19540 if test $ol_link_tls = no ; then
19541         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19542
19543 for ac_header in gnutls/gnutls.h
19544 do
19545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 fi
19552 ac_res=`eval echo '${'$as_ac_Header'}'`
19553                { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19555 else
19556   # Is the header compilable?
19557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h.  */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h.  */
19565 $ac_includes_default
19566 #include <$ac_header>
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_compile") 2>conftest.er1
19576   ac_status=$?
19577   grep -v '^ *+' conftest.er1 >conftest.err
19578   rm -f conftest.er1
19579   cat conftest.err >&5
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } && {
19582          test -z "$ac_c_werror_flag" ||
19583          test ! -s conftest.err
19584        } && test -s conftest.$ac_objext; then
19585   ac_header_compiler=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590         ac_header_compiler=no
19591 fi
19592
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6; }
19596
19597 # Is the header present?
19598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19600 cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h.  */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h.  */
19606 #include <$ac_header>
19607 _ACEOF
19608 if { (ac_try="$ac_cpp conftest.$ac_ext"
19609 case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } >/dev/null && {
19621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622          test ! -s conftest.err
19623        }; then
19624   ac_header_preproc=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629   ac_header_preproc=no
19630 fi
19631
19632 rm -f conftest.err conftest.$ac_ext
19633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 echo "${ECHO_T}$ac_header_preproc" >&6; }
19635
19636 # So?  What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19638   yes:no: )
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643     ac_header_preproc=yes
19644     ;;
19645   no:yes:* )
19646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19658     ( cat <<\_ASBOX
19659 ## --------------------------------------------- ##
19660 ## Report this to <http://www.openldap.org/its/> ##
19661 ## --------------------------------------------- ##
19662 _ASBOX
19663      ) | sed "s/^/$as_me: WARNING:     /" >&2
19664     ;;
19665 esac
19666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671   eval "$as_ac_Header=\$ac_header_preproc"
19672 fi
19673 ac_res=`eval echo '${'$as_ac_Header'}'`
19674                { echo "$as_me:$LINENO: result: $ac_res" >&5
19675 echo "${ECHO_T}$ac_res" >&6; }
19676
19677 fi
19678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19679   cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19681 _ACEOF
19682
19683 fi
19684
19685 done
19686
19687
19688                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19689                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19690 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19692   echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694   ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgnutls  $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702
19703 /* Override any GCC internal prototype to avoid an error.
19704    Use char because int might match the return type of a GCC
19705    builtin and then its argument prototype would still apply.  */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 char gnutls_init ();
19710 int
19711 main ()
19712 {
19713 return gnutls_init ();
19714   ;
19715   return 0;
19716 }
19717 _ACEOF
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_link") 2>conftest.er1
19726   ac_status=$?
19727   grep -v '^ *+' conftest.er1 >conftest.err
19728   rm -f conftest.er1
19729   cat conftest.err >&5
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } && {
19732          test -z "$ac_c_werror_flag" ||
19733          test ! -s conftest.err
19734        } && test -s conftest$ac_exeext &&
19735        $as_test_x conftest$ac_exeext; then
19736   ac_cv_lib_gnutls_gnutls_init=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_cv_lib_gnutls_gnutls_init=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745       conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19747 fi
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19750 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19751   have_gnutls=yes
19752 else
19753   have_gnutls=no
19754 fi
19755
19756
19757                         if test $have_gnutls = yes ; then
19758                                 ol_with_tls=gnutls
19759                                 ol_link_tls=yes
19760
19761                                 TLS_LIBS="-lgnutls"
19762
19763
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_GNUTLS 1
19766 _ACEOF
19767
19768                         fi
19769                 fi
19770         fi
19771 fi
19772
19773 WITH_TLS=no
19774 if test $ol_link_tls = yes ; then
19775
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_TLS 1
19778 _ACEOF
19779
19780         WITH_TLS=yes
19781 elif test $ol_with_tls = auto ; then
19782         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19783 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19784         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19785 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19786 elif test $ol_with_tls != no ; then
19787         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19788 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19789    { (exit 1); exit 1; }; }
19790 else
19791         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19792 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19793 fi
19794
19795 if test $ol_enable_lmpasswd != no; then
19796         if test $ol_link_tls != yes ; then
19797                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19798 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19799    { (exit 1); exit 1; }; }
19800         fi
19801
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define SLAPD_LMHASH 1
19805 _ACEOF
19806
19807 fi
19808
19809 ol_link_threads=no
19810
19811 case $ol_with_threads in auto | yes | nt)
19812
19813
19814         { echo "$as_me:$LINENO: checking for _beginthread" >&5
19815 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19816 if test "${ac_cv_func__beginthread+set}" = set; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819   cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19827 #define _beginthread innocuous__beginthread
19828
19829 /* System header to define __stub macros and hopefully few prototypes,
19830     which can conflict with char _beginthread (); below.
19831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832     <limits.h> exists even on freestanding compilers.  */
19833
19834 #ifdef __STDC__
19835 # include <limits.h>
19836 #else
19837 # include <assert.h>
19838 #endif
19839
19840 #undef _beginthread
19841
19842 /* Override any GCC internal prototype to avoid an error.
19843    Use char because int might match the return type of a GCC
19844    builtin and then its argument prototype would still apply.  */
19845 #ifdef __cplusplus
19846 extern "C"
19847 #endif
19848 char _beginthread ();
19849 /* The GNU C library defines this for functions which it implements
19850     to always fail with ENOSYS.  Some functions are actually named
19851     something starting with __ and the normal name is an alias.  */
19852 #if defined __stub__beginthread || defined __stub____beginthread
19853 choke me
19854 #endif
19855
19856 int
19857 main ()
19858 {
19859 return _beginthread ();
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_link") 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } && {
19878          test -z "$ac_c_werror_flag" ||
19879          test ! -s conftest.err
19880        } && test -s conftest$ac_exeext &&
19881        $as_test_x conftest$ac_exeext; then
19882   ac_cv_func__beginthread=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887         ac_cv_func__beginthread=no
19888 fi
19889
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891       conftest$ac_exeext conftest.$ac_ext
19892 fi
19893 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19894 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19895
19896
19897         if test $ac_cv_func__beginthread = yes ; then
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_NT_THREADS 1
19901 _ACEOF
19902
19903                 ol_cv_nt_threads=yes
19904         fi
19905
19906
19907         if test "$ol_cv_nt_threads" = yes ; then
19908                 ol_link_threads=nt
19909                 ol_with_threads=found
19910                 ol_with_yielding_select=yes
19911
19912
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_NT_SERVICE_MANAGER 1
19915 _ACEOF
19916
19917
19918 cat >>confdefs.h <<\_ACEOF
19919 #define HAVE_NT_EVENT_LOG 1
19920 _ACEOF
19921
19922         fi
19923
19924         if test $ol_with_threads = nt ; then
19925                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19926 echo "$as_me: error: could not locate NT Threads" >&2;}
19927    { (exit 1); exit 1; }; }
19928         fi
19929         ;;
19930 esac
19931
19932 case $ol_with_threads in auto | yes | posix)
19933
19934
19935 for ac_header in pthread.h
19936 do
19937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 fi
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945                { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19947 else
19948   # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957 $ac_includes_default
19958 #include <$ac_header>
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_compile") 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } && {
19974          test -z "$ac_c_werror_flag" ||
19975          test ! -s conftest.err
19976        } && test -s conftest.$ac_objext; then
19977   ac_header_compiler=yes
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982         ac_header_compiler=no
19983 fi
19984
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6; }
19988
19989 # Is the header present?
19990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 #include <$ac_header>
19999 _ACEOF
20000 if { (ac_try="$ac_cpp conftest.$ac_ext"
20001 case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } >/dev/null && {
20013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20014          test ! -s conftest.err
20015        }; then
20016   ac_header_preproc=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021   ac_header_preproc=no
20022 fi
20023
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20027
20028 # So?  What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030   yes:no: )
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035     ac_header_preproc=yes
20036     ;;
20037   no:yes:* )
20038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20050     ( cat <<\_ASBOX
20051 ## --------------------------------------------- ##
20052 ## Report this to <http://www.openldap.org/its/> ##
20053 ## --------------------------------------------- ##
20054 _ASBOX
20055      ) | sed "s/^/$as_me: WARNING:     /" >&2
20056     ;;
20057 esac
20058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063   eval "$as_ac_Header=\$ac_header_preproc"
20064 fi
20065 ac_res=`eval echo '${'$as_ac_Header'}'`
20066                { echo "$as_me:$LINENO: result: $ac_res" >&5
20067 echo "${ECHO_T}$ac_res" >&6; }
20068
20069 fi
20070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20071   cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20073 _ACEOF
20074
20075 fi
20076
20077 done
20078
20079
20080         if test $ac_cv_header_pthread_h = yes ; then
20081                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20082 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20083 if test "${ol_cv_pthread_version+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086
20087         cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093
20094 #               include <pthread.h>
20095
20096 int
20097 main ()
20098 {
20099
20100                 int i = PTHREAD_CREATE_JOINABLE;
20101
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110   *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113   (eval "$ac_compile") 2>conftest.er1
20114   ac_status=$?
20115   grep -v '^ *+' conftest.er1 >conftest.err
20116   rm -f conftest.er1
20117   cat conftest.err >&5
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } && {
20120          test -z "$ac_c_werror_flag" ||
20121          test ! -s conftest.err
20122        } && test -s conftest.$ac_objext; then
20123
20124         cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130 #include <pthread.h>
20131
20132 _ACEOF
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134   $EGREP "pthread_detach" >/dev/null 2>&1; then
20135   ol_cv_pthread_version=10
20136 else
20137   ol_cv_pthread_version=8
20138 fi
20139 rm -f conftest*
20140
20141 else
20142   echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145
20146         cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 #               include <pthread.h>
20154 #               ifdef PTHREAD_CREATE_UNDETACHED
20155                 draft7
20156 #               endif
20157
20158 _ACEOF
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160   $EGREP "draft7" >/dev/null 2>&1; then
20161   ol_cv_pthread_version=7
20162 else
20163
20164         cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170 #include <pthread.h>
20171
20172 _ACEOF
20173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20174   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20175   ol_cv_pthread_version=6
20176 else
20177
20178         cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184
20185 #               include <pthread.h>
20186 #ifdef          PTHREAD_MUTEX_INITIALIZER
20187                 draft5
20188 #endif
20189
20190 _ACEOF
20191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20192   $EGREP "draft5" >/dev/null 2>&1; then
20193   ol_cv_pthread_version=5
20194 else
20195   ol_cv_pthread_version=4
20196 fi
20197 rm -f conftest*
20198
20199 fi
20200 rm -f conftest*
20201
20202 fi
20203 rm -f conftest*
20204
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208
20209 fi
20210 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20211 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20212
20213
20214                 if test $ol_cv_pthread_version != 0 ; then
20215
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_PTHREADS $ol_cv_pthread_version
20218 _ACEOF
20219
20220                 else
20221                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20222 echo "$as_me: error: unknown pthread version" >&2;}
20223    { (exit 1); exit 1; }; }
20224                 fi
20225
20226                 # consider threads found
20227                 ol_with_threads=found
20228
20229
20230         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20231 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20232 if test "${ol_cv_header_linux_threads+set}" = set; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235   cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h.  */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h.  */
20241 #include <pthread.h>
20242 _ACEOF
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20245   ol_cv_header_linux_threads=yes
20246 else
20247   ol_cv_header_linux_threads=no
20248 fi
20249 rm -f conftest*
20250
20251
20252 fi
20253 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20254 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20255         if test $ol_cv_header_linux_threads = yes; then
20256
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_LINUX_THREADS 1
20259 _ACEOF
20260
20261         fi
20262
20263
20264         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20265 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20266 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 #include <pthread.h>
20276 #ifdef _POSIX_THREAD_IS_GNU_PTH
20277         __gnu_pth__;
20278 #endif
20279
20280 _ACEOF
20281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20282   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20283   ol_cv_header_gnu_pth_pthread_h=yes
20284 else
20285   ol_cv_header_gnu_pth_pthread_h=no
20286 fi
20287 rm -f conftest*
20288
20289
20290 fi
20291 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20292 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20293
20294
20295                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20296
20297 for ac_header in sched.h
20298 do
20299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 fi
20306 ac_res=`eval echo '${'$as_ac_Header'}'`
20307                { echo "$as_me:$LINENO: result: $ac_res" >&5
20308 echo "${ECHO_T}$ac_res" >&6; }
20309 else
20310   # Is the header compilable?
20311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319 $ac_includes_default
20320 #include <$ac_header>
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_compile") 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } && {
20336          test -z "$ac_c_werror_flag" ||
20337          test ! -s conftest.err
20338        } && test -s conftest.$ac_objext; then
20339   ac_header_compiler=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344         ac_header_compiler=no
20345 fi
20346
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20349 echo "${ECHO_T}$ac_header_compiler" >&6; }
20350
20351 # Is the header present?
20352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 #include <$ac_header>
20361 _ACEOF
20362 if { (ac_try="$ac_cpp conftest.$ac_ext"
20363 case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20369   ac_status=$?
20370   grep -v '^ *+' conftest.er1 >conftest.err
20371   rm -f conftest.er1
20372   cat conftest.err >&5
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } >/dev/null && {
20375          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20376          test ! -s conftest.err
20377        }; then
20378   ac_header_preproc=yes
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383   ac_header_preproc=no
20384 fi
20385
20386 rm -f conftest.err conftest.$ac_ext
20387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20388 echo "${ECHO_T}$ac_header_preproc" >&6; }
20389
20390 # So?  What about this header?
20391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20392   yes:no: )
20393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20397     ac_header_preproc=yes
20398     ;;
20399   no:yes:* )
20400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20412     ( cat <<\_ASBOX
20413 ## --------------------------------------------- ##
20414 ## Report this to <http://www.openldap.org/its/> ##
20415 ## --------------------------------------------- ##
20416 _ASBOX
20417      ) | sed "s/^/$as_me: WARNING:     /" >&2
20418     ;;
20419 esac
20420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   eval "$as_ac_Header=\$ac_header_preproc"
20426 fi
20427 ac_res=`eval echo '${'$as_ac_Header'}'`
20428                { echo "$as_me:$LINENO: result: $ac_res" >&5
20429 echo "${ECHO_T}$ac_res" >&6; }
20430
20431 fi
20432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20433   cat >>confdefs.h <<_ACEOF
20434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20435 _ACEOF
20436
20437 fi
20438
20439 done
20440
20441                 fi
20442
20443
20444                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20445 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20446 if test "${ol_cv_pthread_create+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449
20450                         if test "$cross_compiling" = yes; then
20451   cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457
20458 /* pthread test headers */
20459 #include <pthread.h>
20460 #if HAVE_PTHREADS < 7
20461 #include <errno.h>
20462 #endif
20463 #ifndef NULL
20464 #define NULL (void*)0
20465 #endif
20466
20467 static void *task(p)
20468         void *p;
20469 {
20470         return (void *) (p == NULL);
20471 }
20472
20473 int
20474 main ()
20475 {
20476
20477         /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20480 #endif
20481         pthread_t t;
20482         int status;
20483         int detach = PTHREAD_CREATE_DETACHED;
20484
20485 #if HAVE_PTHREADS > 4
20486         /* Final pthreads */
20487         pthread_attr_t attr;
20488
20489         status = pthread_attr_init(&attr);
20490         if( status ) return status;
20491
20492 #if HAVE_PTHREADS < 7
20493         status = pthread_attr_setdetachstate(&attr, &detach);
20494         if( status < 0 ) status = errno;
20495 #else
20496         status = pthread_attr_setdetachstate(&attr, detach);
20497 #endif
20498         if( status ) return status;
20499         status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501         if( status < 0 ) status = errno;
20502 #endif
20503         if( status ) return status;
20504 #else
20505         /* Draft 4 pthreads */
20506         status = pthread_create( &t, pthread_attr_default, task, NULL );
20507         if( status ) return errno;
20508
20509         /* give thread a chance to complete */
20510         /* it should remain joinable and hence detachable */
20511         sleep( 1 );
20512
20513         status = pthread_detach( &t );
20514         if( status ) return errno;
20515 #endif
20516
20517 #ifdef HAVE_LINUX_THREADS
20518         pthread_kill_other_threads_np();
20519 #endif
20520
20521         return 0;
20522
20523   ;
20524   return 0;
20525 }
20526 _ACEOF
20527 rm -f conftest.$ac_objext conftest$ac_exeext
20528 if { (ac_try="$ac_link"
20529 case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_link") 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } && {
20541          test -z "$ac_c_werror_flag" ||
20542          test ! -s conftest.err
20543        } && test -s conftest$ac_exeext &&
20544        $as_test_x conftest$ac_exeext; then
20545   ol_cv_pthread_create=yes
20546 else
20547   echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550         ol_cv_pthread_create=no
20551 fi
20552
20553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20554       conftest$ac_exeext conftest.$ac_ext
20555 else
20556   cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562
20563 /* pthread test headers */
20564 #include <pthread.h>
20565 #if HAVE_PTHREADS < 7
20566 #include <errno.h>
20567 #endif
20568 #ifndef NULL
20569 #define NULL (void*)0
20570 #endif
20571
20572 static void *task(p)
20573         void *p;
20574 {
20575         return (void *) (p == NULL);
20576 }
20577
20578
20579 int main(argc, argv)
20580         int argc;
20581         char **argv;
20582 {
20583
20584         /* pthread test function */
20585 #ifndef PTHREAD_CREATE_DETACHED
20586 #define PTHREAD_CREATE_DETACHED 1
20587 #endif
20588         pthread_t t;
20589         int status;
20590         int detach = PTHREAD_CREATE_DETACHED;
20591
20592 #if HAVE_PTHREADS > 4
20593         /* Final pthreads */
20594         pthread_attr_t attr;
20595
20596         status = pthread_attr_init(&attr);
20597         if( status ) return status;
20598
20599 #if HAVE_PTHREADS < 7
20600         status = pthread_attr_setdetachstate(&attr, &detach);
20601         if( status < 0 ) status = errno;
20602 #else
20603         status = pthread_attr_setdetachstate(&attr, detach);
20604 #endif
20605         if( status ) return status;
20606         status = pthread_create( &t, &attr, task, NULL );
20607 #if HAVE_PTHREADS < 7
20608         if( status < 0 ) status = errno;
20609 #endif
20610         if( status ) return status;
20611 #else
20612         /* Draft 4 pthreads */
20613         status = pthread_create( &t, pthread_attr_default, task, NULL );
20614         if( status ) return errno;
20615
20616         /* give thread a chance to complete */
20617         /* it should remain joinable and hence detachable */
20618         sleep( 1 );
20619
20620         status = pthread_detach( &t );
20621         if( status ) return errno;
20622 #endif
20623
20624 #ifdef HAVE_LINUX_THREADS
20625         pthread_kill_other_threads_np();
20626 #endif
20627
20628         return 0;
20629
20630 }
20631
20632 _ACEOF
20633 rm -f conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_link") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   ol_cv_pthread_create=yes
20654 else
20655   echo "$as_me: program exited with status $ac_status" >&5
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659 ( exit $ac_status )
20660 ol_cv_pthread_create=no
20661 fi
20662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20663 fi
20664
20665
20666 fi
20667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20668 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20669
20670                 if test $ol_cv_pthread_create != no ; then
20671                         ol_link_threads=posix
20672                         ol_link_pthreads=""
20673                 fi
20674
20675                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20676 if test "$ol_link_threads" = no ; then
20677         # try -kthread
20678         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20679 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20680 if test "${ol_cv_pthread_kthread+set}" = set; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683
20684                 # save the flags
20685                 ol_LIBS="$LIBS"
20686                 LIBS="-kthread $LIBS"
20687
20688                 if test "$cross_compiling" = yes; then
20689   cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h.  */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h.  */
20695
20696 /* pthread test headers */
20697 #include <pthread.h>
20698 #if HAVE_PTHREADS < 7
20699 #include <errno.h>
20700 #endif
20701 #ifndef NULL
20702 #define NULL (void*)0
20703 #endif
20704
20705 static void *task(p)
20706         void *p;
20707 {
20708         return (void *) (p == NULL);
20709 }
20710
20711 int
20712 main ()
20713 {
20714
20715         /* pthread test function */
20716 #ifndef PTHREAD_CREATE_DETACHED
20717 #define PTHREAD_CREATE_DETACHED 1
20718 #endif
20719         pthread_t t;
20720         int status;
20721         int detach = PTHREAD_CREATE_DETACHED;
20722
20723 #if HAVE_PTHREADS > 4
20724         /* Final pthreads */
20725         pthread_attr_t attr;
20726
20727         status = pthread_attr_init(&attr);
20728         if( status ) return status;
20729
20730 #if HAVE_PTHREADS < 7
20731         status = pthread_attr_setdetachstate(&attr, &detach);
20732         if( status < 0 ) status = errno;
20733 #else
20734         status = pthread_attr_setdetachstate(&attr, detach);
20735 #endif
20736         if( status ) return status;
20737         status = pthread_create( &t, &attr, task, NULL );
20738 #if HAVE_PTHREADS < 7
20739         if( status < 0 ) status = errno;
20740 #endif
20741         if( status ) return status;
20742 #else
20743         /* Draft 4 pthreads */
20744         status = pthread_create( &t, pthread_attr_default, task, NULL );
20745         if( status ) return errno;
20746
20747         /* give thread a chance to complete */
20748         /* it should remain joinable and hence detachable */
20749         sleep( 1 );
20750
20751         status = pthread_detach( &t );
20752         if( status ) return errno;
20753 #endif
20754
20755 #ifdef HAVE_LINUX_THREADS
20756         pthread_kill_other_threads_np();
20757 #endif
20758
20759         return 0;
20760
20761   ;
20762   return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_link") 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } && {
20779          test -z "$ac_c_werror_flag" ||
20780          test ! -s conftest.err
20781        } && test -s conftest$ac_exeext &&
20782        $as_test_x conftest$ac_exeext; then
20783   ol_cv_pthread_kthread=yes
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788         ol_cv_pthread_kthread=no
20789 fi
20790
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792       conftest$ac_exeext conftest.$ac_ext
20793 else
20794   cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800
20801 /* pthread test headers */
20802 #include <pthread.h>
20803 #if HAVE_PTHREADS < 7
20804 #include <errno.h>
20805 #endif
20806 #ifndef NULL
20807 #define NULL (void*)0
20808 #endif
20809
20810 static void *task(p)
20811         void *p;
20812 {
20813         return (void *) (p == NULL);
20814 }
20815
20816
20817 int main(argc, argv)
20818         int argc;
20819         char **argv;
20820 {
20821
20822         /* pthread test function */
20823 #ifndef PTHREAD_CREATE_DETACHED
20824 #define PTHREAD_CREATE_DETACHED 1
20825 #endif
20826         pthread_t t;
20827         int status;
20828         int detach = PTHREAD_CREATE_DETACHED;
20829
20830 #if HAVE_PTHREADS > 4
20831         /* Final pthreads */
20832         pthread_attr_t attr;
20833
20834         status = pthread_attr_init(&attr);
20835         if( status ) return status;
20836
20837 #if HAVE_PTHREADS < 7
20838         status = pthread_attr_setdetachstate(&attr, &detach);
20839         if( status < 0 ) status = errno;
20840 #else
20841         status = pthread_attr_setdetachstate(&attr, detach);
20842 #endif
20843         if( status ) return status;
20844         status = pthread_create( &t, &attr, task, NULL );
20845 #if HAVE_PTHREADS < 7
20846         if( status < 0 ) status = errno;
20847 #endif
20848         if( status ) return status;
20849 #else
20850         /* Draft 4 pthreads */
20851         status = pthread_create( &t, pthread_attr_default, task, NULL );
20852         if( status ) return errno;
20853
20854         /* give thread a chance to complete */
20855         /* it should remain joinable and hence detachable */
20856         sleep( 1 );
20857
20858         status = pthread_detach( &t );
20859         if( status ) return errno;
20860 #endif
20861
20862 #ifdef HAVE_LINUX_THREADS
20863         pthread_kill_other_threads_np();
20864 #endif
20865
20866         return 0;
20867
20868 }
20869
20870 _ACEOF
20871 rm -f conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_link") 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20882   { (case "(($ac_try" in
20883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884   *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887   (eval "$ac_try") 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); }; }; then
20891   ol_cv_pthread_kthread=yes
20892 else
20893   echo "$as_me: program exited with status $ac_status" >&5
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897 ( exit $ac_status )
20898 ol_cv_pthread_kthread=no
20899 fi
20900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901 fi
20902
20903
20904
20905                 # restore the LIBS
20906                 LIBS="$ol_LIBS"
20907
20908 fi
20909 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20910 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20911
20912         if test $ol_cv_pthread_kthread = yes ; then
20913                 ol_link_pthreads="-kthread"
20914                 ol_link_threads=posix
20915         fi
20916 fi
20917
20918                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20919 if test "$ol_link_threads" = no ; then
20920         # try -pthread
20921         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20922 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20923 if test "${ol_cv_pthread_pthread+set}" = set; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926
20927                 # save the flags
20928                 ol_LIBS="$LIBS"
20929                 LIBS="-pthread $LIBS"
20930
20931                 if test "$cross_compiling" = yes; then
20932   cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938
20939 /* pthread test headers */
20940 #include <pthread.h>
20941 #if HAVE_PTHREADS < 7
20942 #include <errno.h>
20943 #endif
20944 #ifndef NULL
20945 #define NULL (void*)0
20946 #endif
20947
20948 static void *task(p)
20949         void *p;
20950 {
20951         return (void *) (p == NULL);
20952 }
20953
20954 int
20955 main ()
20956 {
20957
20958         /* pthread test function */
20959 #ifndef PTHREAD_CREATE_DETACHED
20960 #define PTHREAD_CREATE_DETACHED 1
20961 #endif
20962         pthread_t t;
20963         int status;
20964         int detach = PTHREAD_CREATE_DETACHED;
20965
20966 #if HAVE_PTHREADS > 4
20967         /* Final pthreads */
20968         pthread_attr_t attr;
20969
20970         status = pthread_attr_init(&attr);
20971         if( status ) return status;
20972
20973 #if HAVE_PTHREADS < 7
20974         status = pthread_attr_setdetachstate(&attr, &detach);
20975         if( status < 0 ) status = errno;
20976 #else
20977         status = pthread_attr_setdetachstate(&attr, detach);
20978 #endif
20979         if( status ) return status;
20980         status = pthread_create( &t, &attr, task, NULL );
20981 #if HAVE_PTHREADS < 7
20982         if( status < 0 ) status = errno;
20983 #endif
20984         if( status ) return status;
20985 #else
20986         /* Draft 4 pthreads */
20987         status = pthread_create( &t, pthread_attr_default, task, NULL );
20988         if( status ) return errno;
20989
20990         /* give thread a chance to complete */
20991         /* it should remain joinable and hence detachable */
20992         sleep( 1 );
20993
20994         status = pthread_detach( &t );
20995         if( status ) return errno;
20996 #endif
20997
20998 #ifdef HAVE_LINUX_THREADS
20999         pthread_kill_other_threads_np();
21000 #endif
21001
21002         return 0;
21003
21004   ;
21005   return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext conftest$ac_exeext
21009 if { (ac_try="$ac_link"
21010 case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_link") 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } && {
21022          test -z "$ac_c_werror_flag" ||
21023          test ! -s conftest.err
21024        } && test -s conftest$ac_exeext &&
21025        $as_test_x conftest$ac_exeext; then
21026   ol_cv_pthread_pthread=yes
21027 else
21028   echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031         ol_cv_pthread_pthread=no
21032 fi
21033
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035       conftest$ac_exeext conftest.$ac_ext
21036 else
21037   cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043
21044 /* pthread test headers */
21045 #include <pthread.h>
21046 #if HAVE_PTHREADS < 7
21047 #include <errno.h>
21048 #endif
21049 #ifndef NULL
21050 #define NULL (void*)0
21051 #endif
21052
21053 static void *task(p)
21054         void *p;
21055 {
21056         return (void *) (p == NULL);
21057 }
21058
21059
21060 int main(argc, argv)
21061         int argc;
21062         char **argv;
21063 {
21064
21065         /* pthread test function */
21066 #ifndef PTHREAD_CREATE_DETACHED
21067 #define PTHREAD_CREATE_DETACHED 1
21068 #endif
21069         pthread_t t;
21070         int status;
21071         int detach = PTHREAD_CREATE_DETACHED;
21072
21073 #if HAVE_PTHREADS > 4
21074         /* Final pthreads */
21075         pthread_attr_t attr;
21076
21077         status = pthread_attr_init(&attr);
21078         if( status ) return status;
21079
21080 #if HAVE_PTHREADS < 7
21081         status = pthread_attr_setdetachstate(&attr, &detach);
21082         if( status < 0 ) status = errno;
21083 #else
21084         status = pthread_attr_setdetachstate(&attr, detach);
21085 #endif
21086         if( status ) return status;
21087         status = pthread_create( &t, &attr, task, NULL );
21088 #if HAVE_PTHREADS < 7
21089         if( status < 0 ) status = errno;
21090 #endif
21091         if( status ) return status;
21092 #else
21093         /* Draft 4 pthreads */
21094         status = pthread_create( &t, pthread_attr_default, task, NULL );
21095         if( status ) return errno;
21096
21097         /* give thread a chance to complete */
21098         /* it should remain joinable and hence detachable */
21099         sleep( 1 );
21100
21101         status = pthread_detach( &t );
21102         if( status ) return errno;
21103 #endif
21104
21105 #ifdef HAVE_LINUX_THREADS
21106         pthread_kill_other_threads_np();
21107 #endif
21108
21109         return 0;
21110
21111 }
21112
21113 _ACEOF
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_link") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125   { (case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130   (eval "$ac_try") 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); }; }; then
21134   ol_cv_pthread_pthread=yes
21135 else
21136   echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 ( exit $ac_status )
21141 ol_cv_pthread_pthread=no
21142 fi
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21144 fi
21145
21146
21147
21148                 # restore the LIBS
21149                 LIBS="$ol_LIBS"
21150
21151 fi
21152 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21153 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21154
21155         if test $ol_cv_pthread_pthread = yes ; then
21156                 ol_link_pthreads="-pthread"
21157                 ol_link_threads=posix
21158         fi
21159 fi
21160
21161                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21162 if test "$ol_link_threads" = no ; then
21163         # try -pthreads
21164         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21165 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21166 if test "${ol_cv_pthread_pthreads+set}" = set; then
21167   echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169
21170                 # save the flags
21171                 ol_LIBS="$LIBS"
21172                 LIBS="-pthreads $LIBS"
21173
21174                 if test "$cross_compiling" = yes; then
21175   cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181
21182 /* pthread test headers */
21183 #include <pthread.h>
21184 #if HAVE_PTHREADS < 7
21185 #include <errno.h>
21186 #endif
21187 #ifndef NULL
21188 #define NULL (void*)0
21189 #endif
21190
21191 static void *task(p)
21192         void *p;
21193 {
21194         return (void *) (p == NULL);
21195 }
21196
21197 int
21198 main ()
21199 {
21200
21201         /* pthread test function */
21202 #ifndef PTHREAD_CREATE_DETACHED
21203 #define PTHREAD_CREATE_DETACHED 1
21204 #endif
21205         pthread_t t;
21206         int status;
21207         int detach = PTHREAD_CREATE_DETACHED;
21208
21209 #if HAVE_PTHREADS > 4
21210         /* Final pthreads */
21211         pthread_attr_t attr;
21212
21213         status = pthread_attr_init(&attr);
21214         if( status ) return status;
21215
21216 #if HAVE_PTHREADS < 7
21217         status = pthread_attr_setdetachstate(&attr, &detach);
21218         if( status < 0 ) status = errno;
21219 #else
21220         status = pthread_attr_setdetachstate(&attr, detach);
21221 #endif
21222         if( status ) return status;
21223         status = pthread_create( &t, &attr, task, NULL );
21224 #if HAVE_PTHREADS < 7
21225         if( status < 0 ) status = errno;
21226 #endif
21227         if( status ) return status;
21228 #else
21229         /* Draft 4 pthreads */
21230         status = pthread_create( &t, pthread_attr_default, task, NULL );
21231         if( status ) return errno;
21232
21233         /* give thread a chance to complete */
21234         /* it should remain joinable and hence detachable */
21235         sleep( 1 );
21236
21237         status = pthread_detach( &t );
21238         if( status ) return errno;
21239 #endif
21240
21241 #ifdef HAVE_LINUX_THREADS
21242         pthread_kill_other_threads_np();
21243 #endif
21244
21245         return 0;
21246
21247   ;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_link") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest$ac_exeext &&
21268        $as_test_x conftest$ac_exeext; then
21269   ol_cv_pthread_pthreads=yes
21270 else
21271   echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274         ol_cv_pthread_pthreads=no
21275 fi
21276
21277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278       conftest$ac_exeext conftest.$ac_ext
21279 else
21280   cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h.  */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h.  */
21286
21287 /* pthread test headers */
21288 #include <pthread.h>
21289 #if HAVE_PTHREADS < 7
21290 #include <errno.h>
21291 #endif
21292 #ifndef NULL
21293 #define NULL (void*)0
21294 #endif
21295
21296 static void *task(p)
21297         void *p;
21298 {
21299         return (void *) (p == NULL);
21300 }
21301
21302
21303 int main(argc, argv)
21304         int argc;
21305         char **argv;
21306 {
21307
21308         /* pthread test function */
21309 #ifndef PTHREAD_CREATE_DETACHED
21310 #define PTHREAD_CREATE_DETACHED 1
21311 #endif
21312         pthread_t t;
21313         int status;
21314         int detach = PTHREAD_CREATE_DETACHED;
21315
21316 #if HAVE_PTHREADS > 4
21317         /* Final pthreads */
21318         pthread_attr_t attr;
21319
21320         status = pthread_attr_init(&attr);
21321         if( status ) return status;
21322
21323 #if HAVE_PTHREADS < 7
21324         status = pthread_attr_setdetachstate(&attr, &detach);
21325         if( status < 0 ) status = errno;
21326 #else
21327         status = pthread_attr_setdetachstate(&attr, detach);
21328 #endif
21329         if( status ) return status;
21330         status = pthread_create( &t, &attr, task, NULL );
21331 #if HAVE_PTHREADS < 7
21332         if( status < 0 ) status = errno;
21333 #endif
21334         if( status ) return status;
21335 #else
21336         /* Draft 4 pthreads */
21337         status = pthread_create( &t, pthread_attr_default, task, NULL );
21338         if( status ) return errno;
21339
21340         /* give thread a chance to complete */
21341         /* it should remain joinable and hence detachable */
21342         sleep( 1 );
21343
21344         status = pthread_detach( &t );
21345         if( status ) return errno;
21346 #endif
21347
21348 #ifdef HAVE_LINUX_THREADS
21349         pthread_kill_other_threads_np();
21350 #endif
21351
21352         return 0;
21353
21354 }
21355
21356 _ACEOF
21357 rm -f conftest$ac_exeext
21358 if { (ac_try="$ac_link"
21359 case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_link") 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21368   { (case "(($ac_try" in
21369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370   *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373   (eval "$ac_try") 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ol_cv_pthread_pthreads=yes
21378 else
21379   echo "$as_me: program exited with status $ac_status" >&5
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 ( exit $ac_status )
21384 ol_cv_pthread_pthreads=no
21385 fi
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21387 fi
21388
21389
21390
21391                 # restore the LIBS
21392                 LIBS="$ol_LIBS"
21393
21394 fi
21395 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21396 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21397
21398         if test $ol_cv_pthread_pthreads = yes ; then
21399                 ol_link_pthreads="-pthreads"
21400                 ol_link_threads=posix
21401         fi
21402 fi
21403
21404                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21405 if test "$ol_link_threads" = no ; then
21406         # try -mthreads
21407         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21408 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21409 if test "${ol_cv_pthread_mthreads+set}" = set; then
21410   echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412
21413                 # save the flags
21414                 ol_LIBS="$LIBS"
21415                 LIBS="-mthreads $LIBS"
21416
21417                 if test "$cross_compiling" = yes; then
21418   cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424
21425 /* pthread test headers */
21426 #include <pthread.h>
21427 #if HAVE_PTHREADS < 7
21428 #include <errno.h>
21429 #endif
21430 #ifndef NULL
21431 #define NULL (void*)0
21432 #endif
21433
21434 static void *task(p)
21435         void *p;
21436 {
21437         return (void *) (p == NULL);
21438 }
21439
21440 int
21441 main ()
21442 {
21443
21444         /* pthread test function */
21445 #ifndef PTHREAD_CREATE_DETACHED
21446 #define PTHREAD_CREATE_DETACHED 1
21447 #endif
21448         pthread_t t;
21449         int status;
21450         int detach = PTHREAD_CREATE_DETACHED;
21451
21452 #if HAVE_PTHREADS > 4
21453         /* Final pthreads */
21454         pthread_attr_t attr;
21455
21456         status = pthread_attr_init(&attr);
21457         if( status ) return status;
21458
21459 #if HAVE_PTHREADS < 7
21460         status = pthread_attr_setdetachstate(&attr, &detach);
21461         if( status < 0 ) status = errno;
21462 #else
21463         status = pthread_attr_setdetachstate(&attr, detach);
21464 #endif
21465         if( status ) return status;
21466         status = pthread_create( &t, &attr, task, NULL );
21467 #if HAVE_PTHREADS < 7
21468         if( status < 0 ) status = errno;
21469 #endif
21470         if( status ) return status;
21471 #else
21472         /* Draft 4 pthreads */
21473         status = pthread_create( &t, pthread_attr_default, task, NULL );
21474         if( status ) return errno;
21475
21476         /* give thread a chance to complete */
21477         /* it should remain joinable and hence detachable */
21478         sleep( 1 );
21479
21480         status = pthread_detach( &t );
21481         if( status ) return errno;
21482 #endif
21483
21484 #ifdef HAVE_LINUX_THREADS
21485         pthread_kill_other_threads_np();
21486 #endif
21487
21488         return 0;
21489
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501   (eval "$ac_link") 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } && {
21508          test -z "$ac_c_werror_flag" ||
21509          test ! -s conftest.err
21510        } && test -s conftest$ac_exeext &&
21511        $as_test_x conftest$ac_exeext; then
21512   ol_cv_pthread_mthreads=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517         ol_cv_pthread_mthreads=no
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521       conftest$ac_exeext conftest.$ac_ext
21522 else
21523   cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h.  */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h.  */
21529
21530 /* pthread test headers */
21531 #include <pthread.h>
21532 #if HAVE_PTHREADS < 7
21533 #include <errno.h>
21534 #endif
21535 #ifndef NULL
21536 #define NULL (void*)0
21537 #endif
21538
21539 static void *task(p)
21540         void *p;
21541 {
21542         return (void *) (p == NULL);
21543 }
21544
21545
21546 int main(argc, argv)
21547         int argc;
21548         char **argv;
21549 {
21550
21551         /* pthread test function */
21552 #ifndef PTHREAD_CREATE_DETACHED
21553 #define PTHREAD_CREATE_DETACHED 1
21554 #endif
21555         pthread_t t;
21556         int status;
21557         int detach = PTHREAD_CREATE_DETACHED;
21558
21559 #if HAVE_PTHREADS > 4
21560         /* Final pthreads */
21561         pthread_attr_t attr;
21562
21563         status = pthread_attr_init(&attr);
21564         if( status ) return status;
21565
21566 #if HAVE_PTHREADS < 7
21567         status = pthread_attr_setdetachstate(&attr, &detach);
21568         if( status < 0 ) status = errno;
21569 #else
21570         status = pthread_attr_setdetachstate(&attr, detach);
21571 #endif
21572         if( status ) return status;
21573         status = pthread_create( &t, &attr, task, NULL );
21574 #if HAVE_PTHREADS < 7
21575         if( status < 0 ) status = errno;
21576 #endif
21577         if( status ) return status;
21578 #else
21579         /* Draft 4 pthreads */
21580         status = pthread_create( &t, pthread_attr_default, task, NULL );
21581         if( status ) return errno;
21582
21583         /* give thread a chance to complete */
21584         /* it should remain joinable and hence detachable */
21585         sleep( 1 );
21586
21587         status = pthread_detach( &t );
21588         if( status ) return errno;
21589 #endif
21590
21591 #ifdef HAVE_LINUX_THREADS
21592         pthread_kill_other_threads_np();
21593 #endif
21594
21595         return 0;
21596
21597 }
21598
21599 _ACEOF
21600 rm -f conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_link") 2>&5
21608   ac_status=$?
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21611   { (case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_try") 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; }; then
21620   ol_cv_pthread_mthreads=yes
21621 else
21622   echo "$as_me: program exited with status $ac_status" >&5
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626 ( exit $ac_status )
21627 ol_cv_pthread_mthreads=no
21628 fi
21629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21630 fi
21631
21632
21633
21634                 # restore the LIBS
21635                 LIBS="$ol_LIBS"
21636
21637 fi
21638 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21639 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21640
21641         if test $ol_cv_pthread_mthreads = yes ; then
21642                 ol_link_pthreads="-mthreads"
21643                 ol_link_threads=posix
21644         fi
21645 fi
21646
21647                 # Pthread try link: -thread (ol_cv_pthread_thread)
21648 if test "$ol_link_threads" = no ; then
21649         # try -thread
21650         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21651 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21652 if test "${ol_cv_pthread_thread+set}" = set; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655
21656                 # save the flags
21657                 ol_LIBS="$LIBS"
21658                 LIBS="-thread $LIBS"
21659
21660                 if test "$cross_compiling" = yes; then
21661   cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667
21668 /* pthread test headers */
21669 #include <pthread.h>
21670 #if HAVE_PTHREADS < 7
21671 #include <errno.h>
21672 #endif
21673 #ifndef NULL
21674 #define NULL (void*)0
21675 #endif
21676
21677 static void *task(p)
21678         void *p;
21679 {
21680         return (void *) (p == NULL);
21681 }
21682
21683 int
21684 main ()
21685 {
21686
21687         /* pthread test function */
21688 #ifndef PTHREAD_CREATE_DETACHED
21689 #define PTHREAD_CREATE_DETACHED 1
21690 #endif
21691         pthread_t t;
21692         int status;
21693         int detach = PTHREAD_CREATE_DETACHED;
21694
21695 #if HAVE_PTHREADS > 4
21696         /* Final pthreads */
21697         pthread_attr_t attr;
21698
21699         status = pthread_attr_init(&attr);
21700         if( status ) return status;
21701
21702 #if HAVE_PTHREADS < 7
21703         status = pthread_attr_setdetachstate(&attr, &detach);
21704         if( status < 0 ) status = errno;
21705 #else
21706         status = pthread_attr_setdetachstate(&attr, detach);
21707 #endif
21708         if( status ) return status;
21709         status = pthread_create( &t, &attr, task, NULL );
21710 #if HAVE_PTHREADS < 7
21711         if( status < 0 ) status = errno;
21712 #endif
21713         if( status ) return status;
21714 #else
21715         /* Draft 4 pthreads */
21716         status = pthread_create( &t, pthread_attr_default, task, NULL );
21717         if( status ) return errno;
21718
21719         /* give thread a chance to complete */
21720         /* it should remain joinable and hence detachable */
21721         sleep( 1 );
21722
21723         status = pthread_detach( &t );
21724         if( status ) return errno;
21725 #endif
21726
21727 #ifdef HAVE_LINUX_THREADS
21728         pthread_kill_other_threads_np();
21729 #endif
21730
21731         return 0;
21732
21733   ;
21734   return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest.$ac_objext conftest$ac_exeext
21738 if { (ac_try="$ac_link"
21739 case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_link") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest$ac_exeext &&
21754        $as_test_x conftest$ac_exeext; then
21755   ol_cv_pthread_thread=yes
21756 else
21757   echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760         ol_cv_pthread_thread=no
21761 fi
21762
21763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21764       conftest$ac_exeext conftest.$ac_ext
21765 else
21766   cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772
21773 /* pthread test headers */
21774 #include <pthread.h>
21775 #if HAVE_PTHREADS < 7
21776 #include <errno.h>
21777 #endif
21778 #ifndef NULL
21779 #define NULL (void*)0
21780 #endif
21781
21782 static void *task(p)
21783         void *p;
21784 {
21785         return (void *) (p == NULL);
21786 }
21787
21788
21789 int main(argc, argv)
21790         int argc;
21791         char **argv;
21792 {
21793
21794         /* pthread test function */
21795 #ifndef PTHREAD_CREATE_DETACHED
21796 #define PTHREAD_CREATE_DETACHED 1
21797 #endif
21798         pthread_t t;
21799         int status;
21800         int detach = PTHREAD_CREATE_DETACHED;
21801
21802 #if HAVE_PTHREADS > 4
21803         /* Final pthreads */
21804         pthread_attr_t attr;
21805
21806         status = pthread_attr_init(&attr);
21807         if( status ) return status;
21808
21809 #if HAVE_PTHREADS < 7
21810         status = pthread_attr_setdetachstate(&attr, &detach);
21811         if( status < 0 ) status = errno;
21812 #else
21813         status = pthread_attr_setdetachstate(&attr, detach);
21814 #endif
21815         if( status ) return status;
21816         status = pthread_create( &t, &attr, task, NULL );
21817 #if HAVE_PTHREADS < 7
21818         if( status < 0 ) status = errno;
21819 #endif
21820         if( status ) return status;
21821 #else
21822         /* Draft 4 pthreads */
21823         status = pthread_create( &t, pthread_attr_default, task, NULL );
21824         if( status ) return errno;
21825
21826         /* give thread a chance to complete */
21827         /* it should remain joinable and hence detachable */
21828         sleep( 1 );
21829
21830         status = pthread_detach( &t );
21831         if( status ) return errno;
21832 #endif
21833
21834 #ifdef HAVE_LINUX_THREADS
21835         pthread_kill_other_threads_np();
21836 #endif
21837
21838         return 0;
21839
21840 }
21841
21842 _ACEOF
21843 rm -f conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_link") 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21854   { (case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_try") 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; }; then
21863   ol_cv_pthread_thread=yes
21864 else
21865   echo "$as_me: program exited with status $ac_status" >&5
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869 ( exit $ac_status )
21870 ol_cv_pthread_thread=no
21871 fi
21872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21873 fi
21874
21875
21876
21877                 # restore the LIBS
21878                 LIBS="$ol_LIBS"
21879
21880 fi
21881 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21882 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21883
21884         if test $ol_cv_pthread_thread = yes ; then
21885                 ol_link_pthreads="-thread"
21886                 ol_link_threads=posix
21887         fi
21888 fi
21889
21890
21891                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21892 if test "$ol_link_threads" = no ; then
21893         # try -lpthread -lmach -lexc -lc_r
21894         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21895 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21896 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899
21900                 # save the flags
21901                 ol_LIBS="$LIBS"
21902                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21903
21904                 if test "$cross_compiling" = yes; then
21905   cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911
21912 /* pthread test headers */
21913 #include <pthread.h>
21914 #if HAVE_PTHREADS < 7
21915 #include <errno.h>
21916 #endif
21917 #ifndef NULL
21918 #define NULL (void*)0
21919 #endif
21920
21921 static void *task(p)
21922         void *p;
21923 {
21924         return (void *) (p == NULL);
21925 }
21926
21927 int
21928 main ()
21929 {
21930
21931         /* pthread test function */
21932 #ifndef PTHREAD_CREATE_DETACHED
21933 #define PTHREAD_CREATE_DETACHED 1
21934 #endif
21935         pthread_t t;
21936         int status;
21937         int detach = PTHREAD_CREATE_DETACHED;
21938
21939 #if HAVE_PTHREADS > 4
21940         /* Final pthreads */
21941         pthread_attr_t attr;
21942
21943         status = pthread_attr_init(&attr);
21944         if( status ) return status;
21945
21946 #if HAVE_PTHREADS < 7
21947         status = pthread_attr_setdetachstate(&attr, &detach);
21948         if( status < 0 ) status = errno;
21949 #else
21950         status = pthread_attr_setdetachstate(&attr, detach);
21951 #endif
21952         if( status ) return status;
21953         status = pthread_create( &t, &attr, task, NULL );
21954 #if HAVE_PTHREADS < 7
21955         if( status < 0 ) status = errno;
21956 #endif
21957         if( status ) return status;
21958 #else
21959         /* Draft 4 pthreads */
21960         status = pthread_create( &t, pthread_attr_default, task, NULL );
21961         if( status ) return errno;
21962
21963         /* give thread a chance to complete */
21964         /* it should remain joinable and hence detachable */
21965         sleep( 1 );
21966
21967         status = pthread_detach( &t );
21968         if( status ) return errno;
21969 #endif
21970
21971 #ifdef HAVE_LINUX_THREADS
21972         pthread_kill_other_threads_np();
21973 #endif
21974
21975         return 0;
21976
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_link") 2>conftest.er1
21989   ac_status=$?
21990   grep -v '^ *+' conftest.er1 >conftest.err
21991   rm -f conftest.er1
21992   cat conftest.err >&5
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } && {
21995          test -z "$ac_c_werror_flag" ||
21996          test ! -s conftest.err
21997        } && test -s conftest$ac_exeext &&
21998        $as_test_x conftest$ac_exeext; then
21999   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22000 else
22001   echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22003
22004         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22005 fi
22006
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008       conftest$ac_exeext conftest.$ac_ext
22009 else
22010   cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h.  */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h.  */
22016
22017 /* pthread test headers */
22018 #include <pthread.h>
22019 #if HAVE_PTHREADS < 7
22020 #include <errno.h>
22021 #endif
22022 #ifndef NULL
22023 #define NULL (void*)0
22024 #endif
22025
22026 static void *task(p)
22027         void *p;
22028 {
22029         return (void *) (p == NULL);
22030 }
22031
22032
22033 int main(argc, argv)
22034         int argc;
22035         char **argv;
22036 {
22037
22038         /* pthread test function */
22039 #ifndef PTHREAD_CREATE_DETACHED
22040 #define PTHREAD_CREATE_DETACHED 1
22041 #endif
22042         pthread_t t;
22043         int status;
22044         int detach = PTHREAD_CREATE_DETACHED;
22045
22046 #if HAVE_PTHREADS > 4
22047         /* Final pthreads */
22048         pthread_attr_t attr;
22049
22050         status = pthread_attr_init(&attr);
22051         if( status ) return status;
22052
22053 #if HAVE_PTHREADS < 7
22054         status = pthread_attr_setdetachstate(&attr, &detach);
22055         if( status < 0 ) status = errno;
22056 #else
22057         status = pthread_attr_setdetachstate(&attr, detach);
22058 #endif
22059         if( status ) return status;
22060         status = pthread_create( &t, &attr, task, NULL );
22061 #if HAVE_PTHREADS < 7
22062         if( status < 0 ) status = errno;
22063 #endif
22064         if( status ) return status;
22065 #else
22066         /* Draft 4 pthreads */
22067         status = pthread_create( &t, pthread_attr_default, task, NULL );
22068         if( status ) return errno;
22069
22070         /* give thread a chance to complete */
22071         /* it should remain joinable and hence detachable */
22072         sleep( 1 );
22073
22074         status = pthread_detach( &t );
22075         if( status ) return errno;
22076 #endif
22077
22078 #ifdef HAVE_LINUX_THREADS
22079         pthread_kill_other_threads_np();
22080 #endif
22081
22082         return 0;
22083
22084 }
22085
22086 _ACEOF
22087 rm -f conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_link") 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22098   { (case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_try") 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; }; then
22107   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22108 else
22109   echo "$as_me: program exited with status $ac_status" >&5
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 ( exit $ac_status )
22114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22115 fi
22116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22117 fi
22118
22119
22120
22121                 # restore the LIBS
22122                 LIBS="$ol_LIBS"
22123
22124 fi
22125 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22126 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22127
22128         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22129                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22130                 ol_link_threads=posix
22131         fi
22132 fi
22133
22134                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22135 if test "$ol_link_threads" = no ; then
22136         # try -lpthread -lmach -lexc
22137         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22138 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22139 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22140   echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142
22143                 # save the flags
22144                 ol_LIBS="$LIBS"
22145                 LIBS="-lpthread -lmach -lexc $LIBS"
22146
22147                 if test "$cross_compiling" = yes; then
22148   cat >conftest.$ac_ext <<_ACEOF
22149 /* confdefs.h.  */
22150 _ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h.  */
22154
22155 /* pthread test headers */
22156 #include <pthread.h>
22157 #if HAVE_PTHREADS < 7
22158 #include <errno.h>
22159 #endif
22160 #ifndef NULL
22161 #define NULL (void*)0
22162 #endif
22163
22164 static void *task(p)
22165         void *p;
22166 {
22167         return (void *) (p == NULL);
22168 }
22169
22170 int
22171 main ()
22172 {
22173
22174         /* pthread test function */
22175 #ifndef PTHREAD_CREATE_DETACHED
22176 #define PTHREAD_CREATE_DETACHED 1
22177 #endif
22178         pthread_t t;
22179         int status;
22180         int detach = PTHREAD_CREATE_DETACHED;
22181
22182 #if HAVE_PTHREADS > 4
22183         /* Final pthreads */
22184         pthread_attr_t attr;
22185
22186         status = pthread_attr_init(&attr);
22187         if( status ) return status;
22188
22189 #if HAVE_PTHREADS < 7
22190         status = pthread_attr_setdetachstate(&attr, &detach);
22191         if( status < 0 ) status = errno;
22192 #else
22193         status = pthread_attr_setdetachstate(&attr, detach);
22194 #endif
22195         if( status ) return status;
22196         status = pthread_create( &t, &attr, task, NULL );
22197 #if HAVE_PTHREADS < 7
22198         if( status < 0 ) status = errno;
22199 #endif
22200         if( status ) return status;
22201 #else
22202         /* Draft 4 pthreads */
22203         status = pthread_create( &t, pthread_attr_default, task, NULL );
22204         if( status ) return errno;
22205
22206         /* give thread a chance to complete */
22207         /* it should remain joinable and hence detachable */
22208         sleep( 1 );
22209
22210         status = pthread_detach( &t );
22211         if( status ) return errno;
22212 #endif
22213
22214 #ifdef HAVE_LINUX_THREADS
22215         pthread_kill_other_threads_np();
22216 #endif
22217
22218         return 0;
22219
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_link") 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && {
22238          test -z "$ac_c_werror_flag" ||
22239          test ! -s conftest.err
22240        } && test -s conftest$ac_exeext &&
22241        $as_test_x conftest$ac_exeext; then
22242   ol_cv_pthread_lpthread_lmach_lexc=yes
22243 else
22244   echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247         ol_cv_pthread_lpthread_lmach_lexc=no
22248 fi
22249
22250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251       conftest$ac_exeext conftest.$ac_ext
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259
22260 /* pthread test headers */
22261 #include <pthread.h>
22262 #if HAVE_PTHREADS < 7
22263 #include <errno.h>
22264 #endif
22265 #ifndef NULL
22266 #define NULL (void*)0
22267 #endif
22268
22269 static void *task(p)
22270         void *p;
22271 {
22272         return (void *) (p == NULL);
22273 }
22274
22275
22276 int main(argc, argv)
22277         int argc;
22278         char **argv;
22279 {
22280
22281         /* pthread test function */
22282 #ifndef PTHREAD_CREATE_DETACHED
22283 #define PTHREAD_CREATE_DETACHED 1
22284 #endif
22285         pthread_t t;
22286         int status;
22287         int detach = PTHREAD_CREATE_DETACHED;
22288
22289 #if HAVE_PTHREADS > 4
22290         /* Final pthreads */
22291         pthread_attr_t attr;
22292
22293         status = pthread_attr_init(&attr);
22294         if( status ) return status;
22295
22296 #if HAVE_PTHREADS < 7
22297         status = pthread_attr_setdetachstate(&attr, &detach);
22298         if( status < 0 ) status = errno;
22299 #else
22300         status = pthread_attr_setdetachstate(&attr, detach);
22301 #endif
22302         if( status ) return status;
22303         status = pthread_create( &t, &attr, task, NULL );
22304 #if HAVE_PTHREADS < 7
22305         if( status < 0 ) status = errno;
22306 #endif
22307         if( status ) return status;
22308 #else
22309         /* Draft 4 pthreads */
22310         status = pthread_create( &t, pthread_attr_default, task, NULL );
22311         if( status ) return errno;
22312
22313         /* give thread a chance to complete */
22314         /* it should remain joinable and hence detachable */
22315         sleep( 1 );
22316
22317         status = pthread_detach( &t );
22318         if( status ) return errno;
22319 #endif
22320
22321 #ifdef HAVE_LINUX_THREADS
22322         pthread_kill_other_threads_np();
22323 #endif
22324
22325         return 0;
22326
22327 }
22328
22329 _ACEOF
22330 rm -f conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337   (eval "$ac_link") 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22341   { (case "(($ac_try" in
22342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343   *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346   (eval "$ac_try") 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); }; }; then
22350   ol_cv_pthread_lpthread_lmach_lexc=yes
22351 else
22352   echo "$as_me: program exited with status $ac_status" >&5
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356 ( exit $ac_status )
22357 ol_cv_pthread_lpthread_lmach_lexc=no
22358 fi
22359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22360 fi
22361
22362
22363
22364                 # restore the LIBS
22365                 LIBS="$ol_LIBS"
22366
22367 fi
22368 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22369 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22370
22371         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22372                 ol_link_pthreads="-lpthread -lmach -lexc"
22373                 ol_link_threads=posix
22374         fi
22375 fi
22376
22377
22378                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22379 if test "$ol_link_threads" = no ; then
22380         # try -lpthread -Wl,-woff,85
22381         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22382 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22383 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22384   echo $ECHO_N "(cached) $ECHO_C" >&6
22385 else
22386
22387                 # save the flags
22388                 ol_LIBS="$LIBS"
22389                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22390
22391                 if test "$cross_compiling" = yes; then
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398
22399 /* pthread test headers */
22400 #include <pthread.h>
22401 #if HAVE_PTHREADS < 7
22402 #include <errno.h>
22403 #endif
22404 #ifndef NULL
22405 #define NULL (void*)0
22406 #endif
22407
22408 static void *task(p)
22409         void *p;
22410 {
22411         return (void *) (p == NULL);
22412 }
22413
22414 int
22415 main ()
22416 {
22417
22418         /* pthread test function */
22419 #ifndef PTHREAD_CREATE_DETACHED
22420 #define PTHREAD_CREATE_DETACHED 1
22421 #endif
22422         pthread_t t;
22423         int status;
22424         int detach = PTHREAD_CREATE_DETACHED;
22425
22426 #if HAVE_PTHREADS > 4
22427         /* Final pthreads */
22428         pthread_attr_t attr;
22429
22430         status = pthread_attr_init(&attr);
22431         if( status ) return status;
22432
22433 #if HAVE_PTHREADS < 7
22434         status = pthread_attr_setdetachstate(&attr, &detach);
22435         if( status < 0 ) status = errno;
22436 #else
22437         status = pthread_attr_setdetachstate(&attr, detach);
22438 #endif
22439         if( status ) return status;
22440         status = pthread_create( &t, &attr, task, NULL );
22441 #if HAVE_PTHREADS < 7
22442         if( status < 0 ) status = errno;
22443 #endif
22444         if( status ) return status;
22445 #else
22446         /* Draft 4 pthreads */
22447         status = pthread_create( &t, pthread_attr_default, task, NULL );
22448         if( status ) return errno;
22449
22450         /* give thread a chance to complete */
22451         /* it should remain joinable and hence detachable */
22452         sleep( 1 );
22453
22454         status = pthread_detach( &t );
22455         if( status ) return errno;
22456 #endif
22457
22458 #ifdef HAVE_LINUX_THREADS
22459         pthread_kill_other_threads_np();
22460 #endif
22461
22462         return 0;
22463
22464   ;
22465   return 0;
22466 }
22467 _ACEOF
22468 rm -f conftest.$ac_objext conftest$ac_exeext
22469 if { (ac_try="$ac_link"
22470 case "(($ac_try" in
22471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472   *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475   (eval "$ac_link") 2>conftest.er1
22476   ac_status=$?
22477   grep -v '^ *+' conftest.er1 >conftest.err
22478   rm -f conftest.er1
22479   cat conftest.err >&5
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } && {
22482          test -z "$ac_c_werror_flag" ||
22483          test ! -s conftest.err
22484        } && test -s conftest$ac_exeext &&
22485        $as_test_x conftest$ac_exeext; then
22486   ol_cv_pthread_lib_lpthread_woff=yes
22487 else
22488   echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22490
22491         ol_cv_pthread_lib_lpthread_woff=no
22492 fi
22493
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495       conftest$ac_exeext conftest.$ac_ext
22496 else
22497   cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503
22504 /* pthread test headers */
22505 #include <pthread.h>
22506 #if HAVE_PTHREADS < 7
22507 #include <errno.h>
22508 #endif
22509 #ifndef NULL
22510 #define NULL (void*)0
22511 #endif
22512
22513 static void *task(p)
22514         void *p;
22515 {
22516         return (void *) (p == NULL);
22517 }
22518
22519
22520 int main(argc, argv)
22521         int argc;
22522         char **argv;
22523 {
22524
22525         /* pthread test function */
22526 #ifndef PTHREAD_CREATE_DETACHED
22527 #define PTHREAD_CREATE_DETACHED 1
22528 #endif
22529         pthread_t t;
22530         int status;
22531         int detach = PTHREAD_CREATE_DETACHED;
22532
22533 #if HAVE_PTHREADS > 4
22534         /* Final pthreads */
22535         pthread_attr_t attr;
22536
22537         status = pthread_attr_init(&attr);
22538         if( status ) return status;
22539
22540 #if HAVE_PTHREADS < 7
22541         status = pthread_attr_setdetachstate(&attr, &detach);
22542         if( status < 0 ) status = errno;
22543 #else
22544         status = pthread_attr_setdetachstate(&attr, detach);
22545 #endif
22546         if( status ) return status;
22547         status = pthread_create( &t, &attr, task, NULL );
22548 #if HAVE_PTHREADS < 7
22549         if( status < 0 ) status = errno;
22550 #endif
22551         if( status ) return status;
22552 #else
22553         /* Draft 4 pthreads */
22554         status = pthread_create( &t, pthread_attr_default, task, NULL );
22555         if( status ) return errno;
22556
22557         /* give thread a chance to complete */
22558         /* it should remain joinable and hence detachable */
22559         sleep( 1 );
22560
22561         status = pthread_detach( &t );
22562         if( status ) return errno;
22563 #endif
22564
22565 #ifdef HAVE_LINUX_THREADS
22566         pthread_kill_other_threads_np();
22567 #endif
22568
22569         return 0;
22570
22571 }
22572
22573 _ACEOF
22574 rm -f conftest$ac_exeext
22575 if { (ac_try="$ac_link"
22576 case "(($ac_try" in
22577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578   *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581   (eval "$ac_link") 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22585   { (case "(($ac_try" in
22586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587   *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590   (eval "$ac_try") 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); }; }; then
22594   ol_cv_pthread_lib_lpthread_woff=yes
22595 else
22596   echo "$as_me: program exited with status $ac_status" >&5
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600 ( exit $ac_status )
22601 ol_cv_pthread_lib_lpthread_woff=no
22602 fi
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22604 fi
22605
22606
22607
22608                 # restore the LIBS
22609                 LIBS="$ol_LIBS"
22610
22611 fi
22612 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22613 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22614
22615         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22616                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22617                 ol_link_threads=posix
22618         fi
22619 fi
22620
22621
22622                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22623 if test "$ol_link_threads" = no ; then
22624         # try -lpthread
22625         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22626 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22627 if test "${ol_cv_pthread_lpthread+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630
22631                 # save the flags
22632                 ol_LIBS="$LIBS"
22633                 LIBS="-lpthread $LIBS"
22634
22635                 if test "$cross_compiling" = yes; then
22636   cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h.  */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h.  */
22642
22643 /* pthread test headers */
22644 #include <pthread.h>
22645 #if HAVE_PTHREADS < 7
22646 #include <errno.h>
22647 #endif
22648 #ifndef NULL
22649 #define NULL (void*)0
22650 #endif
22651
22652 static void *task(p)
22653         void *p;
22654 {
22655         return (void *) (p == NULL);
22656 }
22657
22658 int
22659 main ()
22660 {
22661
22662         /* pthread test function */
22663 #ifndef PTHREAD_CREATE_DETACHED
22664 #define PTHREAD_CREATE_DETACHED 1
22665 #endif
22666         pthread_t t;
22667         int status;
22668         int detach = PTHREAD_CREATE_DETACHED;
22669
22670 #if HAVE_PTHREADS > 4
22671         /* Final pthreads */
22672         pthread_attr_t attr;
22673
22674         status = pthread_attr_init(&attr);
22675         if( status ) return status;
22676
22677 #if HAVE_PTHREADS < 7
22678         status = pthread_attr_setdetachstate(&attr, &detach);
22679         if( status < 0 ) status = errno;
22680 #else
22681         status = pthread_attr_setdetachstate(&attr, detach);
22682 #endif
22683         if( status ) return status;
22684         status = pthread_create( &t, &attr, task, NULL );
22685 #if HAVE_PTHREADS < 7
22686         if( status < 0 ) status = errno;
22687 #endif
22688         if( status ) return status;
22689 #else
22690         /* Draft 4 pthreads */
22691         status = pthread_create( &t, pthread_attr_default, task, NULL );
22692         if( status ) return errno;
22693
22694         /* give thread a chance to complete */
22695         /* it should remain joinable and hence detachable */
22696         sleep( 1 );
22697
22698         status = pthread_detach( &t );
22699         if( status ) return errno;
22700 #endif
22701
22702 #ifdef HAVE_LINUX_THREADS
22703         pthread_kill_other_threads_np();
22704 #endif
22705
22706         return 0;
22707
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (ac_try="$ac_link"
22714 case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719   (eval "$ac_link") 2>conftest.er1
22720   ac_status=$?
22721   grep -v '^ *+' conftest.er1 >conftest.err
22722   rm -f conftest.er1
22723   cat conftest.err >&5
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } && {
22726          test -z "$ac_c_werror_flag" ||
22727          test ! -s conftest.err
22728        } && test -s conftest$ac_exeext &&
22729        $as_test_x conftest$ac_exeext; then
22730   ol_cv_pthread_lpthread=yes
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735         ol_cv_pthread_lpthread=no
22736 fi
22737
22738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739       conftest$ac_exeext conftest.$ac_ext
22740 else
22741   cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h.  */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h.  */
22747
22748 /* pthread test headers */
22749 #include <pthread.h>
22750 #if HAVE_PTHREADS < 7
22751 #include <errno.h>
22752 #endif
22753 #ifndef NULL
22754 #define NULL (void*)0
22755 #endif
22756
22757 static void *task(p)
22758         void *p;
22759 {
22760         return (void *) (p == NULL);
22761 }
22762
22763
22764 int main(argc, argv)
22765         int argc;
22766         char **argv;
22767 {
22768
22769         /* pthread test function */
22770 #ifndef PTHREAD_CREATE_DETACHED
22771 #define PTHREAD_CREATE_DETACHED 1
22772 #endif
22773         pthread_t t;
22774         int status;
22775         int detach = PTHREAD_CREATE_DETACHED;
22776
22777 #if HAVE_PTHREADS > 4
22778         /* Final pthreads */
22779         pthread_attr_t attr;
22780
22781         status = pthread_attr_init(&attr);
22782         if( status ) return status;
22783
22784 #if HAVE_PTHREADS < 7
22785         status = pthread_attr_setdetachstate(&attr, &detach);
22786         if( status < 0 ) status = errno;
22787 #else
22788         status = pthread_attr_setdetachstate(&attr, detach);
22789 #endif
22790         if( status ) return status;
22791         status = pthread_create( &t, &attr, task, NULL );
22792 #if HAVE_PTHREADS < 7
22793         if( status < 0 ) status = errno;
22794 #endif
22795         if( status ) return status;
22796 #else
22797         /* Draft 4 pthreads */
22798         status = pthread_create( &t, pthread_attr_default, task, NULL );
22799         if( status ) return errno;
22800
22801         /* give thread a chance to complete */
22802         /* it should remain joinable and hence detachable */
22803         sleep( 1 );
22804
22805         status = pthread_detach( &t );
22806         if( status ) return errno;
22807 #endif
22808
22809 #ifdef HAVE_LINUX_THREADS
22810         pthread_kill_other_threads_np();
22811 #endif
22812
22813         return 0;
22814
22815 }
22816
22817 _ACEOF
22818 rm -f conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_link") 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22829   { (case "(($ac_try" in
22830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831   *) ac_try_echo=$ac_try;;
22832 esac
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834   (eval "$ac_try") 2>&5
22835   ac_status=$?
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); }; }; then
22838   ol_cv_pthread_lpthread=yes
22839 else
22840   echo "$as_me: program exited with status $ac_status" >&5
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844 ( exit $ac_status )
22845 ol_cv_pthread_lpthread=no
22846 fi
22847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22848 fi
22849
22850
22851
22852                 # restore the LIBS
22853                 LIBS="$ol_LIBS"
22854
22855 fi
22856 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22857 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22858
22859         if test $ol_cv_pthread_lpthread = yes ; then
22860                 ol_link_pthreads="-lpthread"
22861                 ol_link_threads=posix
22862         fi
22863 fi
22864
22865                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22866 if test "$ol_link_threads" = no ; then
22867         # try -lc_r
22868         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22869 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22870 if test "${ol_cv_pthread_lc_r+set}" = set; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873
22874                 # save the flags
22875                 ol_LIBS="$LIBS"
22876                 LIBS="-lc_r $LIBS"
22877
22878                 if test "$cross_compiling" = yes; then
22879   cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h.  */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h.  */
22885
22886 /* pthread test headers */
22887 #include <pthread.h>
22888 #if HAVE_PTHREADS < 7
22889 #include <errno.h>
22890 #endif
22891 #ifndef NULL
22892 #define NULL (void*)0
22893 #endif
22894
22895 static void *task(p)
22896         void *p;
22897 {
22898         return (void *) (p == NULL);
22899 }
22900
22901 int
22902 main ()
22903 {
22904
22905         /* pthread test function */
22906 #ifndef PTHREAD_CREATE_DETACHED
22907 #define PTHREAD_CREATE_DETACHED 1
22908 #endif
22909         pthread_t t;
22910         int status;
22911         int detach = PTHREAD_CREATE_DETACHED;
22912
22913 #if HAVE_PTHREADS > 4
22914         /* Final pthreads */
22915         pthread_attr_t attr;
22916
22917         status = pthread_attr_init(&attr);
22918         if( status ) return status;
22919
22920 #if HAVE_PTHREADS < 7
22921         status = pthread_attr_setdetachstate(&attr, &detach);
22922         if( status < 0 ) status = errno;
22923 #else
22924         status = pthread_attr_setdetachstate(&attr, detach);
22925 #endif
22926         if( status ) return status;
22927         status = pthread_create( &t, &attr, task, NULL );
22928 #if HAVE_PTHREADS < 7
22929         if( status < 0 ) status = errno;
22930 #endif
22931         if( status ) return status;
22932 #else
22933         /* Draft 4 pthreads */
22934         status = pthread_create( &t, pthread_attr_default, task, NULL );
22935         if( status ) return errno;
22936
22937         /* give thread a chance to complete */
22938         /* it should remain joinable and hence detachable */
22939         sleep( 1 );
22940
22941         status = pthread_detach( &t );
22942         if( status ) return errno;
22943 #endif
22944
22945 #ifdef HAVE_LINUX_THREADS
22946         pthread_kill_other_threads_np();
22947 #endif
22948
22949         return 0;
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 if { (ac_try="$ac_link"
22957 case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_link") 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && {
22969          test -z "$ac_c_werror_flag" ||
22970          test ! -s conftest.err
22971        } && test -s conftest$ac_exeext &&
22972        $as_test_x conftest$ac_exeext; then
22973   ol_cv_pthread_lc_r=yes
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978         ol_cv_pthread_lc_r=no
22979 fi
22980
22981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22982       conftest$ac_exeext conftest.$ac_ext
22983 else
22984   cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990
22991 /* pthread test headers */
22992 #include <pthread.h>
22993 #if HAVE_PTHREADS < 7
22994 #include <errno.h>
22995 #endif
22996 #ifndef NULL
22997 #define NULL (void*)0
22998 #endif
22999
23000 static void *task(p)
23001         void *p;
23002 {
23003         return (void *) (p == NULL);
23004 }
23005
23006
23007 int main(argc, argv)
23008         int argc;
23009         char **argv;
23010 {
23011
23012         /* pthread test function */
23013 #ifndef PTHREAD_CREATE_DETACHED
23014 #define PTHREAD_CREATE_DETACHED 1
23015 #endif
23016         pthread_t t;
23017         int status;
23018         int detach = PTHREAD_CREATE_DETACHED;
23019
23020 #if HAVE_PTHREADS > 4
23021         /* Final pthreads */
23022         pthread_attr_t attr;
23023
23024         status = pthread_attr_init(&attr);
23025         if( status ) return status;
23026
23027 #if HAVE_PTHREADS < 7
23028         status = pthread_attr_setdetachstate(&attr, &detach);
23029         if( status < 0 ) status = errno;
23030 #else
23031         status = pthread_attr_setdetachstate(&attr, detach);
23032 #endif
23033         if( status ) return status;
23034         status = pthread_create( &t, &attr, task, NULL );
23035 #if HAVE_PTHREADS < 7
23036         if( status < 0 ) status = errno;
23037 #endif
23038         if( status ) return status;
23039 #else
23040         /* Draft 4 pthreads */
23041         status = pthread_create( &t, pthread_attr_default, task, NULL );
23042         if( status ) return errno;
23043
23044         /* give thread a chance to complete */
23045         /* it should remain joinable and hence detachable */
23046         sleep( 1 );
23047
23048         status = pthread_detach( &t );
23049         if( status ) return errno;
23050 #endif
23051
23052 #ifdef HAVE_LINUX_THREADS
23053         pthread_kill_other_threads_np();
23054 #endif
23055
23056         return 0;
23057
23058 }
23059
23060 _ACEOF
23061 rm -f conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_link") 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072   { (case "(($ac_try" in
23073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074   *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077   (eval "$ac_try") 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ol_cv_pthread_lc_r=yes
23082 else
23083   echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087 ( exit $ac_status )
23088 ol_cv_pthread_lc_r=no
23089 fi
23090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23091 fi
23092
23093
23094
23095                 # restore the LIBS
23096                 LIBS="$ol_LIBS"
23097
23098 fi
23099 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23100 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23101
23102         if test $ol_cv_pthread_lc_r = yes ; then
23103                 ol_link_pthreads="-lc_r"
23104                 ol_link_threads=posix
23105         fi
23106 fi
23107
23108
23109                 # Pthread try link: -threads (ol_cv_pthread_threads)
23110 if test "$ol_link_threads" = no ; then
23111         # try -threads
23112         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23113 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23114 if test "${ol_cv_pthread_threads+set}" = set; then
23115   echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117
23118                 # save the flags
23119                 ol_LIBS="$LIBS"
23120                 LIBS="-threads $LIBS"
23121
23122                 if test "$cross_compiling" = yes; then
23123   cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129
23130 /* pthread test headers */
23131 #include <pthread.h>
23132 #if HAVE_PTHREADS < 7
23133 #include <errno.h>
23134 #endif
23135 #ifndef NULL
23136 #define NULL (void*)0
23137 #endif
23138
23139 static void *task(p)
23140         void *p;
23141 {
23142         return (void *) (p == NULL);
23143 }
23144
23145 int
23146 main ()
23147 {
23148
23149         /* pthread test function */
23150 #ifndef PTHREAD_CREATE_DETACHED
23151 #define PTHREAD_CREATE_DETACHED 1
23152 #endif
23153         pthread_t t;
23154         int status;
23155         int detach = PTHREAD_CREATE_DETACHED;
23156
23157 #if HAVE_PTHREADS > 4
23158         /* Final pthreads */
23159         pthread_attr_t attr;
23160
23161         status = pthread_attr_init(&attr);
23162         if( status ) return status;
23163
23164 #if HAVE_PTHREADS < 7
23165         status = pthread_attr_setdetachstate(&attr, &detach);
23166         if( status < 0 ) status = errno;
23167 #else
23168         status = pthread_attr_setdetachstate(&attr, detach);
23169 #endif
23170         if( status ) return status;
23171         status = pthread_create( &t, &attr, task, NULL );
23172 #if HAVE_PTHREADS < 7
23173         if( status < 0 ) status = errno;
23174 #endif
23175         if( status ) return status;
23176 #else
23177         /* Draft 4 pthreads */
23178         status = pthread_create( &t, pthread_attr_default, task, NULL );
23179         if( status ) return errno;
23180
23181         /* give thread a chance to complete */
23182         /* it should remain joinable and hence detachable */
23183         sleep( 1 );
23184
23185         status = pthread_detach( &t );
23186         if( status ) return errno;
23187 #endif
23188
23189 #ifdef HAVE_LINUX_THREADS
23190         pthread_kill_other_threads_np();
23191 #endif
23192
23193         return 0;
23194
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203   *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206   (eval "$ac_link") 2>conftest.er1
23207   ac_status=$?
23208   grep -v '^ *+' conftest.er1 >conftest.err
23209   rm -f conftest.er1
23210   cat conftest.err >&5
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); } && {
23213          test -z "$ac_c_werror_flag" ||
23214          test ! -s conftest.err
23215        } && test -s conftest$ac_exeext &&
23216        $as_test_x conftest$ac_exeext; then
23217   ol_cv_pthread_threads=yes
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222         ol_cv_pthread_threads=no
23223 fi
23224
23225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23226       conftest$ac_exeext conftest.$ac_ext
23227 else
23228   cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h.  */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h.  */
23234
23235 /* pthread test headers */
23236 #include <pthread.h>
23237 #if HAVE_PTHREADS < 7
23238 #include <errno.h>
23239 #endif
23240 #ifndef NULL
23241 #define NULL (void*)0
23242 #endif
23243
23244 static void *task(p)
23245         void *p;
23246 {
23247         return (void *) (p == NULL);
23248 }
23249
23250
23251 int main(argc, argv)
23252         int argc;
23253         char **argv;
23254 {
23255
23256         /* pthread test function */
23257 #ifndef PTHREAD_CREATE_DETACHED
23258 #define PTHREAD_CREATE_DETACHED 1
23259 #endif
23260         pthread_t t;
23261         int status;
23262         int detach = PTHREAD_CREATE_DETACHED;
23263
23264 #if HAVE_PTHREADS > 4
23265         /* Final pthreads */
23266         pthread_attr_t attr;
23267
23268         status = pthread_attr_init(&attr);
23269         if( status ) return status;
23270
23271 #if HAVE_PTHREADS < 7
23272         status = pthread_attr_setdetachstate(&attr, &detach);
23273         if( status < 0 ) status = errno;
23274 #else
23275         status = pthread_attr_setdetachstate(&attr, detach);
23276 #endif
23277         if( status ) return status;
23278         status = pthread_create( &t, &attr, task, NULL );
23279 #if HAVE_PTHREADS < 7
23280         if( status < 0 ) status = errno;
23281 #endif
23282         if( status ) return status;
23283 #else
23284         /* Draft 4 pthreads */
23285         status = pthread_create( &t, pthread_attr_default, task, NULL );
23286         if( status ) return errno;
23287
23288         /* give thread a chance to complete */
23289         /* it should remain joinable and hence detachable */
23290         sleep( 1 );
23291
23292         status = pthread_detach( &t );
23293         if( status ) return errno;
23294 #endif
23295
23296 #ifdef HAVE_LINUX_THREADS
23297         pthread_kill_other_threads_np();
23298 #endif
23299
23300         return 0;
23301
23302 }
23303
23304 _ACEOF
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
23307 case "(($ac_try" in
23308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309   *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312   (eval "$ac_link") 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316   { (case "(($ac_try" in
23317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318   *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321   (eval "$ac_try") 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ol_cv_pthread_threads=yes
23326 else
23327   echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 ( exit $ac_status )
23332 ol_cv_pthread_threads=no
23333 fi
23334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23335 fi
23336
23337
23338
23339                 # restore the LIBS
23340                 LIBS="$ol_LIBS"
23341
23342 fi
23343 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23344 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23345
23346         if test $ol_cv_pthread_threads = yes ; then
23347                 ol_link_pthreads="-threads"
23348                 ol_link_threads=posix
23349         fi
23350 fi
23351
23352
23353                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23354 if test "$ol_link_threads" = no ; then
23355         # try -lpthreads -lmach -lexc -lc_r
23356         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23357 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23358 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361
23362                 # save the flags
23363                 ol_LIBS="$LIBS"
23364                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23365
23366                 if test "$cross_compiling" = yes; then
23367   cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373
23374 /* pthread test headers */
23375 #include <pthread.h>
23376 #if HAVE_PTHREADS < 7
23377 #include <errno.h>
23378 #endif
23379 #ifndef NULL
23380 #define NULL (void*)0
23381 #endif
23382
23383 static void *task(p)
23384         void *p;
23385 {
23386         return (void *) (p == NULL);
23387 }
23388
23389 int
23390 main ()
23391 {
23392
23393         /* pthread test function */
23394 #ifndef PTHREAD_CREATE_DETACHED
23395 #define PTHREAD_CREATE_DETACHED 1
23396 #endif
23397         pthread_t t;
23398         int status;
23399         int detach = PTHREAD_CREATE_DETACHED;
23400
23401 #if HAVE_PTHREADS > 4
23402         /* Final pthreads */
23403         pthread_attr_t attr;
23404
23405         status = pthread_attr_init(&attr);
23406         if( status ) return status;
23407
23408 #if HAVE_PTHREADS < 7
23409         status = pthread_attr_setdetachstate(&attr, &detach);
23410         if( status < 0 ) status = errno;
23411 #else
23412         status = pthread_attr_setdetachstate(&attr, detach);
23413 #endif
23414         if( status ) return status;
23415         status = pthread_create( &t, &attr, task, NULL );
23416 #if HAVE_PTHREADS < 7
23417         if( status < 0 ) status = errno;
23418 #endif
23419         if( status ) return status;
23420 #else
23421         /* Draft 4 pthreads */
23422         status = pthread_create( &t, pthread_attr_default, task, NULL );
23423         if( status ) return errno;
23424
23425         /* give thread a chance to complete */
23426         /* it should remain joinable and hence detachable */
23427         sleep( 1 );
23428
23429         status = pthread_detach( &t );
23430         if( status ) return errno;
23431 #endif
23432
23433 #ifdef HAVE_LINUX_THREADS
23434         pthread_kill_other_threads_np();
23435 #endif
23436
23437         return 0;
23438
23439   ;
23440   return 0;
23441 }
23442 _ACEOF
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
23445 case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450   (eval "$ac_link") 2>conftest.er1
23451   ac_status=$?
23452   grep -v '^ *+' conftest.er1 >conftest.err
23453   rm -f conftest.er1
23454   cat conftest.err >&5
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); } && {
23457          test -z "$ac_c_werror_flag" ||
23458          test ! -s conftest.err
23459        } && test -s conftest$ac_exeext &&
23460        $as_test_x conftest$ac_exeext; then
23461   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23467 fi
23468
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470       conftest$ac_exeext conftest.$ac_ext
23471 else
23472   cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h.  */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h.  */
23478
23479 /* pthread test headers */
23480 #include <pthread.h>
23481 #if HAVE_PTHREADS < 7
23482 #include <errno.h>
23483 #endif
23484 #ifndef NULL
23485 #define NULL (void*)0
23486 #endif
23487
23488 static void *task(p)
23489         void *p;
23490 {
23491         return (void *) (p == NULL);
23492 }
23493
23494
23495 int main(argc, argv)
23496         int argc;
23497         char **argv;
23498 {
23499
23500         /* pthread test function */
23501 #ifndef PTHREAD_CREATE_DETACHED
23502 #define PTHREAD_CREATE_DETACHED 1
23503 #endif
23504         pthread_t t;
23505         int status;
23506         int detach = PTHREAD_CREATE_DETACHED;
23507
23508 #if HAVE_PTHREADS > 4
23509         /* Final pthreads */
23510         pthread_attr_t attr;
23511
23512         status = pthread_attr_init(&attr);
23513         if( status ) return status;
23514
23515 #if HAVE_PTHREADS < 7
23516         status = pthread_attr_setdetachstate(&attr, &detach);
23517         if( status < 0 ) status = errno;
23518 #else
23519         status = pthread_attr_setdetachstate(&attr, detach);
23520 #endif
23521         if( status ) return status;
23522         status = pthread_create( &t, &attr, task, NULL );
23523 #if HAVE_PTHREADS < 7
23524         if( status < 0 ) status = errno;
23525 #endif
23526         if( status ) return status;
23527 #else
23528         /* Draft 4 pthreads */
23529         status = pthread_create( &t, pthread_attr_default, task, NULL );
23530         if( status ) return errno;
23531
23532         /* give thread a chance to complete */
23533         /* it should remain joinable and hence detachable */
23534         sleep( 1 );
23535
23536         status = pthread_detach( &t );
23537         if( status ) return errno;
23538 #endif
23539
23540 #ifdef HAVE_LINUX_THREADS
23541         pthread_kill_other_threads_np();
23542 #endif
23543
23544         return 0;
23545
23546 }
23547
23548 _ACEOF
23549 rm -f conftest$ac_exeext
23550 if { (ac_try="$ac_link"
23551 case "(($ac_try" in
23552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553   *) ac_try_echo=$ac_try;;
23554 esac
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556   (eval "$ac_link") 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23560   { (case "(($ac_try" in
23561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562   *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565   (eval "$ac_try") 2>&5
23566   ac_status=$?
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); }; }; then
23569   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23570 else
23571   echo "$as_me: program exited with status $ac_status" >&5
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23574
23575 ( exit $ac_status )
23576 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23577 fi
23578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23579 fi
23580
23581
23582
23583                 # restore the LIBS
23584                 LIBS="$ol_LIBS"
23585
23586 fi
23587 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23588 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23589
23590         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23591                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23592                 ol_link_threads=posix
23593         fi
23594 fi
23595
23596                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23597 if test "$ol_link_threads" = no ; then
23598         # try -lpthreads -lmach -lexc
23599         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23600 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23601 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23602   echo $ECHO_N "(cached) $ECHO_C" >&6
23603 else
23604
23605                 # save the flags
23606                 ol_LIBS="$LIBS"
23607                 LIBS="-lpthreads -lmach -lexc $LIBS"
23608
23609                 if test "$cross_compiling" = yes; then
23610   cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617 /* pthread test headers */
23618 #include <pthread.h>
23619 #if HAVE_PTHREADS < 7
23620 #include <errno.h>
23621 #endif
23622 #ifndef NULL
23623 #define NULL (void*)0
23624 #endif
23625
23626 static void *task(p)
23627         void *p;
23628 {
23629         return (void *) (p == NULL);
23630 }
23631
23632 int
23633 main ()
23634 {
23635
23636         /* pthread test function */
23637 #ifndef PTHREAD_CREATE_DETACHED
23638 #define PTHREAD_CREATE_DETACHED 1
23639 #endif
23640         pthread_t t;
23641         int status;
23642         int detach = PTHREAD_CREATE_DETACHED;
23643
23644 #if HAVE_PTHREADS > 4
23645         /* Final pthreads */
23646         pthread_attr_t attr;
23647
23648         status = pthread_attr_init(&attr);
23649         if( status ) return status;
23650
23651 #if HAVE_PTHREADS < 7
23652         status = pthread_attr_setdetachstate(&attr, &detach);
23653         if( status < 0 ) status = errno;
23654 #else
23655         status = pthread_attr_setdetachstate(&attr, detach);
23656 #endif
23657         if( status ) return status;
23658         status = pthread_create( &t, &attr, task, NULL );
23659 #if HAVE_PTHREADS < 7
23660         if( status < 0 ) status = errno;
23661 #endif
23662         if( status ) return status;
23663 #else
23664         /* Draft 4 pthreads */
23665         status = pthread_create( &t, pthread_attr_default, task, NULL );
23666         if( status ) return errno;
23667
23668         /* give thread a chance to complete */
23669         /* it should remain joinable and hence detachable */
23670         sleep( 1 );
23671
23672         status = pthread_detach( &t );
23673         if( status ) return errno;
23674 #endif
23675
23676 #ifdef HAVE_LINUX_THREADS
23677         pthread_kill_other_threads_np();
23678 #endif
23679
23680         return 0;
23681
23682   ;
23683   return 0;
23684 }
23685 _ACEOF
23686 rm -f conftest.$ac_objext conftest$ac_exeext
23687 if { (ac_try="$ac_link"
23688 case "(($ac_try" in
23689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690   *) ac_try_echo=$ac_try;;
23691 esac
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693   (eval "$ac_link") 2>conftest.er1
23694   ac_status=$?
23695   grep -v '^ *+' conftest.er1 >conftest.err
23696   rm -f conftest.er1
23697   cat conftest.err >&5
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } && {
23700          test -z "$ac_c_werror_flag" ||
23701          test ! -s conftest.err
23702        } && test -s conftest$ac_exeext &&
23703        $as_test_x conftest$ac_exeext; then
23704   ol_cv_pthread_lpthreads_lmach_lexc=yes
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709         ol_cv_pthread_lpthreads_lmach_lexc=no
23710 fi
23711
23712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23713       conftest$ac_exeext conftest.$ac_ext
23714 else
23715   cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h.  */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h.  */
23721
23722 /* pthread test headers */
23723 #include <pthread.h>
23724 #if HAVE_PTHREADS < 7
23725 #include <errno.h>
23726 #endif
23727 #ifndef NULL
23728 #define NULL (void*)0
23729 #endif
23730
23731 static void *task(p)
23732         void *p;
23733 {
23734         return (void *) (p == NULL);
23735 }
23736
23737
23738 int main(argc, argv)
23739         int argc;
23740         char **argv;
23741 {
23742
23743         /* pthread test function */
23744 #ifndef PTHREAD_CREATE_DETACHED
23745 #define PTHREAD_CREATE_DETACHED 1
23746 #endif
23747         pthread_t t;
23748         int status;
23749         int detach = PTHREAD_CREATE_DETACHED;
23750
23751 #if HAVE_PTHREADS > 4
23752         /* Final pthreads */
23753         pthread_attr_t attr;
23754
23755         status = pthread_attr_init(&attr);
23756         if( status ) return status;
23757
23758 #if HAVE_PTHREADS < 7
23759         status = pthread_attr_setdetachstate(&attr, &detach);
23760         if( status < 0 ) status = errno;
23761 #else
23762         status = pthread_attr_setdetachstate(&attr, detach);
23763 #endif
23764         if( status ) return status;
23765         status = pthread_create( &t, &attr, task, NULL );
23766 #if HAVE_PTHREADS < 7
23767         if( status < 0 ) status = errno;
23768 #endif
23769         if( status ) return status;
23770 #else
23771         /* Draft 4 pthreads */
23772         status = pthread_create( &t, pthread_attr_default, task, NULL );
23773         if( status ) return errno;
23774
23775         /* give thread a chance to complete */
23776         /* it should remain joinable and hence detachable */
23777         sleep( 1 );
23778
23779         status = pthread_detach( &t );
23780         if( status ) return errno;
23781 #endif
23782
23783 #ifdef HAVE_LINUX_THREADS
23784         pthread_kill_other_threads_np();
23785 #endif
23786
23787         return 0;
23788
23789 }
23790
23791 _ACEOF
23792 rm -f conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799   (eval "$ac_link") 2>&5
23800   ac_status=$?
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23803   { (case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_try") 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }; then
23812   ol_cv_pthread_lpthreads_lmach_lexc=yes
23813 else
23814   echo "$as_me: program exited with status $ac_status" >&5
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23817
23818 ( exit $ac_status )
23819 ol_cv_pthread_lpthreads_lmach_lexc=no
23820 fi
23821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 fi
23823
23824
23825
23826                 # restore the LIBS
23827                 LIBS="$ol_LIBS"
23828
23829 fi
23830 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23831 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23832
23833         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23834                 ol_link_pthreads="-lpthreads -lmach -lexc"
23835                 ol_link_threads=posix
23836         fi
23837 fi
23838
23839                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23840 if test "$ol_link_threads" = no ; then
23841         # try -lpthreads -lexc
23842         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23843 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23844 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23845   echo $ECHO_N "(cached) $ECHO_C" >&6
23846 else
23847
23848                 # save the flags
23849                 ol_LIBS="$LIBS"
23850                 LIBS="-lpthreads -lexc $LIBS"
23851
23852                 if test "$cross_compiling" = yes; then
23853   cat >conftest.$ac_ext <<_ACEOF
23854 /* confdefs.h.  */
23855 _ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h.  */
23859
23860 /* pthread test headers */
23861 #include <pthread.h>
23862 #if HAVE_PTHREADS < 7
23863 #include <errno.h>
23864 #endif
23865 #ifndef NULL
23866 #define NULL (void*)0
23867 #endif
23868
23869 static void *task(p)
23870         void *p;
23871 {
23872         return (void *) (p == NULL);
23873 }
23874
23875 int
23876 main ()
23877 {
23878
23879         /* pthread test function */
23880 #ifndef PTHREAD_CREATE_DETACHED
23881 #define PTHREAD_CREATE_DETACHED 1
23882 #endif
23883         pthread_t t;
23884         int status;
23885         int detach = PTHREAD_CREATE_DETACHED;
23886
23887 #if HAVE_PTHREADS > 4
23888         /* Final pthreads */
23889         pthread_attr_t attr;
23890
23891         status = pthread_attr_init(&attr);
23892         if( status ) return status;
23893
23894 #if HAVE_PTHREADS < 7
23895         status = pthread_attr_setdetachstate(&attr, &detach);
23896         if( status < 0 ) status = errno;
23897 #else
23898         status = pthread_attr_setdetachstate(&attr, detach);
23899 #endif
23900         if( status ) return status;
23901         status = pthread_create( &t, &attr, task, NULL );
23902 #if HAVE_PTHREADS < 7
23903         if( status < 0 ) status = errno;
23904 #endif
23905         if( status ) return status;
23906 #else
23907         /* Draft 4 pthreads */
23908         status = pthread_create( &t, pthread_attr_default, task, NULL );
23909         if( status ) return errno;
23910
23911         /* give thread a chance to complete */
23912         /* it should remain joinable and hence detachable */
23913         sleep( 1 );
23914
23915         status = pthread_detach( &t );
23916         if( status ) return errno;
23917 #endif
23918
23919 #ifdef HAVE_LINUX_THREADS
23920         pthread_kill_other_threads_np();
23921 #endif
23922
23923         return 0;
23924
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_link") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && {
23943          test -z "$ac_c_werror_flag" ||
23944          test ! -s conftest.err
23945        } && test -s conftest$ac_exeext &&
23946        $as_test_x conftest$ac_exeext; then
23947   ol_cv_pthread_lpthreads_lexc=yes
23948 else
23949   echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952         ol_cv_pthread_lpthreads_lexc=no
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956       conftest$ac_exeext conftest.$ac_ext
23957 else
23958   cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h.  */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h.  */
23964
23965 /* pthread test headers */
23966 #include <pthread.h>
23967 #if HAVE_PTHREADS < 7
23968 #include <errno.h>
23969 #endif
23970 #ifndef NULL
23971 #define NULL (void*)0
23972 #endif
23973
23974 static void *task(p)
23975         void *p;
23976 {
23977         return (void *) (p == NULL);
23978 }
23979
23980
23981 int main(argc, argv)
23982         int argc;
23983         char **argv;
23984 {
23985
23986         /* pthread test function */
23987 #ifndef PTHREAD_CREATE_DETACHED
23988 #define PTHREAD_CREATE_DETACHED 1
23989 #endif
23990         pthread_t t;
23991         int status;
23992         int detach = PTHREAD_CREATE_DETACHED;
23993
23994 #if HAVE_PTHREADS > 4
23995         /* Final pthreads */
23996         pthread_attr_t attr;
23997
23998         status = pthread_attr_init(&attr);
23999         if( status ) return status;
24000
24001 #if HAVE_PTHREADS < 7
24002         status = pthread_attr_setdetachstate(&attr, &detach);
24003         if( status < 0 ) status = errno;
24004 #else
24005         status = pthread_attr_setdetachstate(&attr, detach);
24006 #endif
24007         if( status ) return status;
24008         status = pthread_create( &t, &attr, task, NULL );
24009 #if HAVE_PTHREADS < 7
24010         if( status < 0 ) status = errno;
24011 #endif
24012         if( status ) return status;
24013 #else
24014         /* Draft 4 pthreads */
24015         status = pthread_create( &t, pthread_attr_default, task, NULL );
24016         if( status ) return errno;
24017
24018         /* give thread a chance to complete */
24019         /* it should remain joinable and hence detachable */
24020         sleep( 1 );
24021
24022         status = pthread_detach( &t );
24023         if( status ) return errno;
24024 #endif
24025
24026 #ifdef HAVE_LINUX_THREADS
24027         pthread_kill_other_threads_np();
24028 #endif
24029
24030         return 0;
24031
24032 }
24033
24034 _ACEOF
24035 rm -f conftest$ac_exeext
24036 if { (ac_try="$ac_link"
24037 case "(($ac_try" in
24038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039   *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042   (eval "$ac_link") 2>&5
24043   ac_status=$?
24044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24046   { (case "(($ac_try" in
24047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048   *) ac_try_echo=$ac_try;;
24049 esac
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051   (eval "$ac_try") 2>&5
24052   ac_status=$?
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; }; then
24055   ol_cv_pthread_lpthreads_lexc=yes
24056 else
24057   echo "$as_me: program exited with status $ac_status" >&5
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24060
24061 ( exit $ac_status )
24062 ol_cv_pthread_lpthreads_lexc=no
24063 fi
24064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24065 fi
24066
24067
24068
24069                 # restore the LIBS
24070                 LIBS="$ol_LIBS"
24071
24072 fi
24073 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24074 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24075
24076         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24077                 ol_link_pthreads="-lpthreads -lexc"
24078                 ol_link_threads=posix
24079         fi
24080 fi
24081
24082
24083                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24084 if test "$ol_link_threads" = no ; then
24085         # try -lpthreads
24086         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24087 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24088 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24089   echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091
24092                 # save the flags
24093                 ol_LIBS="$LIBS"
24094                 LIBS="-lpthreads $LIBS"
24095
24096                 if test "$cross_compiling" = yes; then
24097   cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103
24104 /* pthread test headers */
24105 #include <pthread.h>
24106 #if HAVE_PTHREADS < 7
24107 #include <errno.h>
24108 #endif
24109 #ifndef NULL
24110 #define NULL (void*)0
24111 #endif
24112
24113 static void *task(p)
24114         void *p;
24115 {
24116         return (void *) (p == NULL);
24117 }
24118
24119 int
24120 main ()
24121 {
24122
24123         /* pthread test function */
24124 #ifndef PTHREAD_CREATE_DETACHED
24125 #define PTHREAD_CREATE_DETACHED 1
24126 #endif
24127         pthread_t t;
24128         int status;
24129         int detach = PTHREAD_CREATE_DETACHED;
24130
24131 #if HAVE_PTHREADS > 4
24132         /* Final pthreads */
24133         pthread_attr_t attr;
24134
24135         status = pthread_attr_init(&attr);
24136         if( status ) return status;
24137
24138 #if HAVE_PTHREADS < 7
24139         status = pthread_attr_setdetachstate(&attr, &detach);
24140         if( status < 0 ) status = errno;
24141 #else
24142         status = pthread_attr_setdetachstate(&attr, detach);
24143 #endif
24144         if( status ) return status;
24145         status = pthread_create( &t, &attr, task, NULL );
24146 #if HAVE_PTHREADS < 7
24147         if( status < 0 ) status = errno;
24148 #endif
24149         if( status ) return status;
24150 #else
24151         /* Draft 4 pthreads */
24152         status = pthread_create( &t, pthread_attr_default, task, NULL );
24153         if( status ) return errno;
24154
24155         /* give thread a chance to complete */
24156         /* it should remain joinable and hence detachable */
24157         sleep( 1 );
24158
24159         status = pthread_detach( &t );
24160         if( status ) return errno;
24161 #endif
24162
24163 #ifdef HAVE_LINUX_THREADS
24164         pthread_kill_other_threads_np();
24165 #endif
24166
24167         return 0;
24168
24169   ;
24170   return 0;
24171 }
24172 _ACEOF
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (ac_try="$ac_link"
24175 case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180   (eval "$ac_link") 2>conftest.er1
24181   ac_status=$?
24182   grep -v '^ *+' conftest.er1 >conftest.err
24183   rm -f conftest.er1
24184   cat conftest.err >&5
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && {
24187          test -z "$ac_c_werror_flag" ||
24188          test ! -s conftest.err
24189        } && test -s conftest$ac_exeext &&
24190        $as_test_x conftest$ac_exeext; then
24191   ol_cv_pthread_lib_lpthreads=yes
24192 else
24193   echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196         ol_cv_pthread_lib_lpthreads=no
24197 fi
24198
24199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24200       conftest$ac_exeext conftest.$ac_ext
24201 else
24202   cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h.  */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h.  */
24208
24209 /* pthread test headers */
24210 #include <pthread.h>
24211 #if HAVE_PTHREADS < 7
24212 #include <errno.h>
24213 #endif
24214 #ifndef NULL
24215 #define NULL (void*)0
24216 #endif
24217
24218 static void *task(p)
24219         void *p;
24220 {
24221         return (void *) (p == NULL);
24222 }
24223
24224
24225 int main(argc, argv)
24226         int argc;
24227         char **argv;
24228 {
24229
24230         /* pthread test function */
24231 #ifndef PTHREAD_CREATE_DETACHED
24232 #define PTHREAD_CREATE_DETACHED 1
24233 #endif
24234         pthread_t t;
24235         int status;
24236         int detach = PTHREAD_CREATE_DETACHED;
24237
24238 #if HAVE_PTHREADS > 4
24239         /* Final pthreads */
24240         pthread_attr_t attr;
24241
24242         status = pthread_attr_init(&attr);
24243         if( status ) return status;
24244
24245 #if HAVE_PTHREADS < 7
24246         status = pthread_attr_setdetachstate(&attr, &detach);
24247         if( status < 0 ) status = errno;
24248 #else
24249         status = pthread_attr_setdetachstate(&attr, detach);
24250 #endif
24251         if( status ) return status;
24252         status = pthread_create( &t, &attr, task, NULL );
24253 #if HAVE_PTHREADS < 7
24254         if( status < 0 ) status = errno;
24255 #endif
24256         if( status ) return status;
24257 #else
24258         /* Draft 4 pthreads */
24259         status = pthread_create( &t, pthread_attr_default, task, NULL );
24260         if( status ) return errno;
24261
24262         /* give thread a chance to complete */
24263         /* it should remain joinable and hence detachable */
24264         sleep( 1 );
24265
24266         status = pthread_detach( &t );
24267         if( status ) return errno;
24268 #endif
24269
24270 #ifdef HAVE_LINUX_THREADS
24271         pthread_kill_other_threads_np();
24272 #endif
24273
24274         return 0;
24275
24276 }
24277
24278 _ACEOF
24279 rm -f conftest$ac_exeext
24280 if { (ac_try="$ac_link"
24281 case "(($ac_try" in
24282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283   *) ac_try_echo=$ac_try;;
24284 esac
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286   (eval "$ac_link") 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24290   { (case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295   (eval "$ac_try") 2>&5
24296   ac_status=$?
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); }; }; then
24299   ol_cv_pthread_lib_lpthreads=yes
24300 else
24301   echo "$as_me: program exited with status $ac_status" >&5
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24304
24305 ( exit $ac_status )
24306 ol_cv_pthread_lib_lpthreads=no
24307 fi
24308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24309 fi
24310
24311
24312
24313                 # restore the LIBS
24314                 LIBS="$ol_LIBS"
24315
24316 fi
24317 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24318 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24319
24320         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24321                 ol_link_pthreads="-lpthreads"
24322                 ol_link_threads=posix
24323         fi
24324 fi
24325
24326
24327                 if test $ol_link_threads != no ; then
24328                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24329
24330                                                 save_CPPFLAGS="$CPPFLAGS"
24331                         save_LIBS="$LIBS"
24332                         LIBS="$LTHREAD_LIBS $LIBS"
24333
24334
24335
24336
24337 for ac_func in sched_yield pthread_yield thr_yield
24338 do
24339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24343   echo $ECHO_N "(cached) $ECHO_C" >&6
24344 else
24345   cat >conftest.$ac_ext <<_ACEOF
24346 /* confdefs.h.  */
24347 _ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h.  */
24351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24353 #define $ac_func innocuous_$ac_func
24354
24355 /* System header to define __stub macros and hopefully few prototypes,
24356     which can conflict with char $ac_func (); below.
24357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24358     <limits.h> exists even on freestanding compilers.  */
24359
24360 #ifdef __STDC__
24361 # include <limits.h>
24362 #else
24363 # include <assert.h>
24364 #endif
24365
24366 #undef $ac_func
24367
24368 /* Override any GCC internal prototype to avoid an error.
24369    Use char because int might match the return type of a GCC
24370    builtin and then its argument prototype would still apply.  */
24371 #ifdef __cplusplus
24372 extern "C"
24373 #endif
24374 char $ac_func ();
24375 /* The GNU C library defines this for functions which it implements
24376     to always fail with ENOSYS.  Some functions are actually named
24377     something starting with __ and the normal name is an alias.  */
24378 #if defined __stub_$ac_func || defined __stub___$ac_func
24379 choke me
24380 #endif
24381
24382 int
24383 main ()
24384 {
24385 return $ac_func ();
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394   *) ac_try_echo=$ac_try;;
24395 esac
24396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397   (eval "$ac_link") 2>conftest.er1
24398   ac_status=$?
24399   grep -v '^ *+' conftest.er1 >conftest.err
24400   rm -f conftest.er1
24401   cat conftest.err >&5
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); } && {
24404          test -z "$ac_c_werror_flag" ||
24405          test ! -s conftest.err
24406        } && test -s conftest$ac_exeext &&
24407        $as_test_x conftest$ac_exeext; then
24408   eval "$as_ac_var=yes"
24409 else
24410   echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24412
24413         eval "$as_ac_var=no"
24414 fi
24415
24416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24417       conftest$ac_exeext conftest.$ac_ext
24418 fi
24419 ac_res=`eval echo '${'$as_ac_var'}'`
24420                { echo "$as_me:$LINENO: result: $ac_res" >&5
24421 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_var'}'` = yes; then
24423   cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24425 _ACEOF
24426
24427 fi
24428 done
24429
24430
24431                         if test $ac_cv_func_sched_yield = no &&
24432                            test $ac_cv_func_pthread_yield = no &&
24433                            test $ac_cv_func_thr_yield = no ; then
24434                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24435 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24436 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24437   echo $ECHO_N "(cached) $ECHO_C" >&6
24438 else
24439   ac_check_lib_save_LIBS=$LIBS
24440 LIBS="-lrt  $LIBS"
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h.  */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h.  */
24447
24448 /* Override any GCC internal prototype to avoid an error.
24449    Use char because int might match the return type of a GCC
24450    builtin and then its argument prototype would still apply.  */
24451 #ifdef __cplusplus
24452 extern "C"
24453 #endif
24454 char sched_yield ();
24455 int
24456 main ()
24457 {
24458 return sched_yield ();
24459   ;
24460   return 0;
24461 }
24462 _ACEOF
24463 rm -f conftest.$ac_objext conftest$ac_exeext
24464 if { (ac_try="$ac_link"
24465 case "(($ac_try" in
24466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467   *) ac_try_echo=$ac_try;;
24468 esac
24469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470   (eval "$ac_link") 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } && {
24477          test -z "$ac_c_werror_flag" ||
24478          test ! -s conftest.err
24479        } && test -s conftest$ac_exeext &&
24480        $as_test_x conftest$ac_exeext; then
24481   ac_cv_lib_rt_sched_yield=yes
24482 else
24483   echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24485
24486         ac_cv_lib_rt_sched_yield=no
24487 fi
24488
24489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24490       conftest$ac_exeext conftest.$ac_ext
24491 LIBS=$ac_check_lib_save_LIBS
24492 fi
24493 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24494 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24495 if test $ac_cv_lib_rt_sched_yield = yes; then
24496   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24497
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_SCHED_YIELD 1
24500 _ACEOF
24501
24502                                         ac_cv_func_sched_yield=yes
24503 else
24504   ac_cv_func_sched_yield=no
24505 fi
24506
24507                         fi
24508                         if test $ac_cv_func_sched_yield = no &&
24509                            test $ac_cv_func_pthread_yield = no &&
24510                            test "$ac_cv_func_thr_yield" = no ; then
24511                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24512 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24513                         fi
24514
24515
24516 for ac_func in pthread_kill
24517 do
24518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24522   echo $ECHO_N "(cached) $ECHO_C" >&6
24523 else
24524   cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24532 #define $ac_func innocuous_$ac_func
24533
24534 /* System header to define __stub macros and hopefully few prototypes,
24535     which can conflict with char $ac_func (); below.
24536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537     <limits.h> exists even on freestanding compilers.  */
24538
24539 #ifdef __STDC__
24540 # include <limits.h>
24541 #else
24542 # include <assert.h>
24543 #endif
24544
24545 #undef $ac_func
24546
24547 /* Override any GCC internal prototype to avoid an error.
24548    Use char because int might match the return type of a GCC
24549    builtin and then its argument prototype would still apply.  */
24550 #ifdef __cplusplus
24551 extern "C"
24552 #endif
24553 char $ac_func ();
24554 /* The GNU C library defines this for functions which it implements
24555     to always fail with ENOSYS.  Some functions are actually named
24556     something starting with __ and the normal name is an alias.  */
24557 #if defined __stub_$ac_func || defined __stub___$ac_func
24558 choke me
24559 #endif
24560
24561 int
24562 main ()
24563 {
24564 return $ac_func ();
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_link") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest$ac_exeext &&
24586        $as_test_x conftest$ac_exeext; then
24587   eval "$as_ac_var=yes"
24588 else
24589   echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592         eval "$as_ac_var=no"
24593 fi
24594
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596       conftest$ac_exeext conftest.$ac_ext
24597 fi
24598 ac_res=`eval echo '${'$as_ac_var'}'`
24599                { echo "$as_me:$LINENO: result: $ac_res" >&5
24600 echo "${ECHO_T}$ac_res" >&6; }
24601 if test `eval echo '${'$as_ac_var'}'` = yes; then
24602   cat >>confdefs.h <<_ACEOF
24603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24604 _ACEOF
24605
24606 fi
24607 done
24608
24609
24610                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24611 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24612 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615
24616                                                                 cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 #include <pthread.h>
24624 pthread_rwlock_t rwlock;
24625
24626 int
24627 main ()
24628 {
24629 pthread_rwlock_destroy(&rwlock);
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest.$ac_objext conftest$ac_exeext
24635 if { (ac_try="$ac_link"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_link") 2>conftest.er1
24642   ac_status=$?
24643   grep -v '^ *+' conftest.er1 >conftest.err
24644   rm -f conftest.er1
24645   cat conftest.err >&5
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); } && {
24648          test -z "$ac_c_werror_flag" ||
24649          test ! -s conftest.err
24650        } && test -s conftest$ac_exeext &&
24651        $as_test_x conftest$ac_exeext; then
24652   ol_cv_func_pthread_rwlock_destroy=yes
24653 else
24654   echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24656
24657         ol_cv_func_pthread_rwlock_destroy=no
24658 fi
24659
24660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24661       conftest$ac_exeext conftest.$ac_ext
24662
24663 fi
24664 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24665 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24666                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24667
24668 cat >>confdefs.h <<\_ACEOF
24669 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24670 _ACEOF
24671
24672                         fi
24673
24674                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24675 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24676 if test "${ol_cv_func_pthread_detach+set}" = set; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679
24680                                                                 cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686
24687 #include <pthread.h>
24688 #ifndef NULL
24689 #define NULL (void*)0
24690 #endif
24691
24692 int
24693 main ()
24694 {
24695 pthread_detach(NULL);
24696   ;
24697   return 0;
24698 }
24699 _ACEOF
24700 rm -f conftest.$ac_objext conftest$ac_exeext
24701 if { (ac_try="$ac_link"
24702 case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707   (eval "$ac_link") 2>conftest.er1
24708   ac_status=$?
24709   grep -v '^ *+' conftest.er1 >conftest.err
24710   rm -f conftest.er1
24711   cat conftest.err >&5
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); } && {
24714          test -z "$ac_c_werror_flag" ||
24715          test ! -s conftest.err
24716        } && test -s conftest$ac_exeext &&
24717        $as_test_x conftest$ac_exeext; then
24718   ol_cv_func_pthread_detach=yes
24719 else
24720   echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24722
24723         ol_cv_func_pthread_detach=no
24724 fi
24725
24726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24727       conftest$ac_exeext conftest.$ac_ext
24728
24729 fi
24730 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24731 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24732
24733                         if test $ol_cv_func_pthread_detach = no ; then
24734                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24735 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24736    { (exit 1); exit 1; }; }
24737                         fi
24738
24739
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_PTHREAD_DETACH 1
24742 _ACEOF
24743
24744
24745
24746
24747
24748
24749 for ac_func in \
24750                                 pthread_setconcurrency \
24751                                 pthread_getconcurrency \
24752                                 thr_setconcurrency \
24753                                 thr_getconcurrency \
24754
24755 do
24756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24760   echo $ECHO_N "(cached) $ECHO_C" >&6
24761 else
24762   cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h.  */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h.  */
24768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24770 #define $ac_func innocuous_$ac_func
24771
24772 /* System header to define __stub macros and hopefully few prototypes,
24773     which can conflict with char $ac_func (); below.
24774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24775     <limits.h> exists even on freestanding compilers.  */
24776
24777 #ifdef __STDC__
24778 # include <limits.h>
24779 #else
24780 # include <assert.h>
24781 #endif
24782
24783 #undef $ac_func
24784
24785 /* Override any GCC internal prototype to avoid an error.
24786    Use char because int might match the return type of a GCC
24787    builtin and then its argument prototype would still apply.  */
24788 #ifdef __cplusplus
24789 extern "C"
24790 #endif
24791 char $ac_func ();
24792 /* The GNU C library defines this for functions which it implements
24793     to always fail with ENOSYS.  Some functions are actually named
24794     something starting with __ and the normal name is an alias.  */
24795 #if defined __stub_$ac_func || defined __stub___$ac_func
24796 choke me
24797 #endif
24798
24799 int
24800 main ()
24801 {
24802 return $ac_func ();
24803   ;
24804   return 0;
24805 }
24806 _ACEOF
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814   (eval "$ac_link") 2>conftest.er1
24815   ac_status=$?
24816   grep -v '^ *+' conftest.er1 >conftest.err
24817   rm -f conftest.er1
24818   cat conftest.err >&5
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); } && {
24821          test -z "$ac_c_werror_flag" ||
24822          test ! -s conftest.err
24823        } && test -s conftest$ac_exeext &&
24824        $as_test_x conftest$ac_exeext; then
24825   eval "$as_ac_var=yes"
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         eval "$as_ac_var=no"
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24834       conftest$ac_exeext conftest.$ac_ext
24835 fi
24836 ac_res=`eval echo '${'$as_ac_var'}'`
24837                { echo "$as_me:$LINENO: result: $ac_res" >&5
24838 echo "${ECHO_T}$ac_res" >&6; }
24839 if test `eval echo '${'$as_ac_var'}'` = yes; then
24840   cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24842 _ACEOF
24843
24844 fi
24845 done
24846
24847
24848
24849
24850 for ac_func in pthread_kill_other_threads_np
24851 do
24852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24856   echo $ECHO_N "(cached) $ECHO_C" >&6
24857 else
24858   cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24866 #define $ac_func innocuous_$ac_func
24867
24868 /* System header to define __stub macros and hopefully few prototypes,
24869     which can conflict with char $ac_func (); below.
24870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24871     <limits.h> exists even on freestanding compilers.  */
24872
24873 #ifdef __STDC__
24874 # include <limits.h>
24875 #else
24876 # include <assert.h>
24877 #endif
24878
24879 #undef $ac_func
24880
24881 /* Override any GCC internal prototype to avoid an error.
24882    Use char because int might match the return type of a GCC
24883    builtin and then its argument prototype would still apply.  */
24884 #ifdef __cplusplus
24885 extern "C"
24886 #endif
24887 char $ac_func ();
24888 /* The GNU C library defines this for functions which it implements
24889     to always fail with ENOSYS.  Some functions are actually named
24890     something starting with __ and the normal name is an alias.  */
24891 #if defined __stub_$ac_func || defined __stub___$ac_func
24892 choke me
24893 #endif
24894
24895 int
24896 main ()
24897 {
24898 return $ac_func ();
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910   (eval "$ac_link") 2>conftest.er1
24911   ac_status=$?
24912   grep -v '^ *+' conftest.er1 >conftest.err
24913   rm -f conftest.er1
24914   cat conftest.err >&5
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); } && {
24917          test -z "$ac_c_werror_flag" ||
24918          test ! -s conftest.err
24919        } && test -s conftest$ac_exeext &&
24920        $as_test_x conftest$ac_exeext; then
24921   eval "$as_ac_var=yes"
24922 else
24923   echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24925
24926         eval "$as_ac_var=no"
24927 fi
24928
24929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24930       conftest$ac_exeext conftest.$ac_ext
24931 fi
24932 ac_res=`eval echo '${'$as_ac_var'}'`
24933                { echo "$as_me:$LINENO: result: $ac_res" >&5
24934 echo "${ECHO_T}$ac_res" >&6; }
24935 if test `eval echo '${'$as_ac_var'}'` = yes; then
24936   cat >>confdefs.h <<_ACEOF
24937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24938 _ACEOF
24939
24940 fi
24941 done
24942
24943         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24944 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24945 if test "${ol_cv_sys_linux_threads+set}" = set; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24949 fi
24950 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24951 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24952
24953
24954
24955
24956         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24957 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24958 if test "${ol_cv_linux_threads+set}" = set; then
24959   echo $ECHO_N "(cached) $ECHO_C" >&6
24960 else
24961
24962                 if test $ol_cv_header_linux_threads = yes &&
24963                    test $ol_cv_sys_linux_threads = yes; then
24964                         ol_cv_linux_threads=yes
24965                 elif test $ol_cv_header_linux_threads = no &&
24966                      test $ol_cv_sys_linux_threads = no; then
24967                         ol_cv_linux_threads=no
24968                 else
24969                         ol_cv_linux_threads=error
24970                 fi
24971
24972 fi
24973 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24974 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24975
24976
24977                         if test $ol_cv_linux_threads = error; then
24978                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24979 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24980    { (exit 1); exit 1; }; };
24981                         fi
24982
24983                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24984 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24985 if test "${ol_cv_pthread_create_works+set}" = set; then
24986   echo $ECHO_N "(cached) $ECHO_C" >&6
24987 else
24988
24989                         if test "$cross_compiling" = yes; then
24990                                 ol_cv_pthread_create_works=yes
24991 else
24992   cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998
24999 /* pthread test headers */
25000 #include <pthread.h>
25001 #if HAVE_PTHREADS < 7
25002 #include <errno.h>
25003 #endif
25004 #ifndef NULL
25005 #define NULL (void*)0
25006 #endif
25007
25008 static void *task(p)
25009         void *p;
25010 {
25011         return (void *) (p == NULL);
25012 }
25013
25014
25015 int main(argc, argv)
25016         int argc;
25017         char **argv;
25018 {
25019
25020         /* pthread test function */
25021 #ifndef PTHREAD_CREATE_DETACHED
25022 #define PTHREAD_CREATE_DETACHED 1
25023 #endif
25024         pthread_t t;
25025         int status;
25026         int detach = PTHREAD_CREATE_DETACHED;
25027
25028 #if HAVE_PTHREADS > 4
25029         /* Final pthreads */
25030         pthread_attr_t attr;
25031
25032         status = pthread_attr_init(&attr);
25033         if( status ) return status;
25034
25035 #if HAVE_PTHREADS < 7
25036         status = pthread_attr_setdetachstate(&attr, &detach);
25037         if( status < 0 ) status = errno;
25038 #else
25039         status = pthread_attr_setdetachstate(&attr, detach);
25040 #endif
25041         if( status ) return status;
25042         status = pthread_create( &t, &attr, task, NULL );
25043 #if HAVE_PTHREADS < 7
25044         if( status < 0 ) status = errno;
25045 #endif
25046         if( status ) return status;
25047 #else
25048         /* Draft 4 pthreads */
25049         status = pthread_create( &t, pthread_attr_default, task, NULL );
25050         if( status ) return errno;
25051
25052         /* give thread a chance to complete */
25053         /* it should remain joinable and hence detachable */
25054         sleep( 1 );
25055
25056         status = pthread_detach( &t );
25057         if( status ) return errno;
25058 #endif
25059
25060 #ifdef HAVE_LINUX_THREADS
25061         pthread_kill_other_threads_np();
25062 #endif
25063
25064         return 0;
25065
25066 }
25067
25068 _ACEOF
25069 rm -f conftest$ac_exeext
25070 if { (ac_try="$ac_link"
25071 case "(($ac_try" in
25072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073   *) ac_try_echo=$ac_try;;
25074 esac
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076   (eval "$ac_link") 2>&5
25077   ac_status=$?
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25080   { (case "(($ac_try" in
25081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082   *) ac_try_echo=$ac_try;;
25083 esac
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085   (eval "$ac_try") 2>&5
25086   ac_status=$?
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); }; }; then
25089   ol_cv_pthread_create_works=yes
25090 else
25091   echo "$as_me: program exited with status $ac_status" >&5
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095 ( exit $ac_status )
25096 ol_cv_pthread_create_works=no
25097 fi
25098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25099 fi
25100
25101
25102 fi
25103 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25104 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25105
25106                         if test $ol_cv_pthread_create_works = no ; then
25107                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25108 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25109    { (exit 1); exit 1; }; }
25110                         fi
25111
25112                         ol_replace_broken_yield=no
25113
25114                         if test $ol_replace_broken_yield = yes ; then
25115
25116 cat >>confdefs.h <<\_ACEOF
25117 #define REPLACE_BROKEN_YIELD 1
25118 _ACEOF
25119
25120                         fi
25121
25122                                                 if test $ol_with_yielding_select = auto ; then
25123                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25124 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25125 if test "${ol_cv_pthread_select_yields+set}" = set; then
25126   echo $ECHO_N "(cached) $ECHO_C" >&6
25127 else
25128
25129                                 if test "$cross_compiling" = yes; then
25130   ol_cv_pthread_select_yields=cross
25131 else
25132   cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h.  */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h.  */
25138
25139 #include <sys/types.h>
25140 #include <sys/time.h>
25141 #include <unistd.h>
25142 #include <pthread.h>
25143 #ifndef NULL
25144 #define NULL (void*) 0
25145 #endif
25146
25147 static int fildes[2];
25148
25149 static void *task(p)
25150         void *p;
25151 {
25152         int i;
25153         struct timeval tv;
25154
25155         fd_set rfds;
25156
25157         tv.tv_sec=10;
25158         tv.tv_usec=0;
25159
25160         FD_ZERO(&rfds);
25161         FD_SET(fildes[0], &rfds);
25162
25163         /* we're not interested in any fds */
25164         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25165
25166         if(i < 0) {
25167                 perror("select");
25168                 exit(10);
25169         }
25170
25171         exit(0); /* if we exit here, the select blocked the whole process */
25172 }
25173
25174 int main(argc, argv)
25175         int argc;
25176         char **argv;
25177 {
25178         pthread_t t;
25179
25180         /* create a pipe to select */
25181         if(pipe(&fildes[0])) {
25182                 perror("select");
25183                 exit(1);
25184         }
25185
25186 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25187         (void) pthread_setconcurrency(2);
25188 #else
25189 #ifdef HAVE_THR_SETCONCURRENCY
25190         /* Set Solaris LWP concurrency to 2 */
25191         thr_setconcurrency(2);
25192 #endif
25193 #endif
25194
25195 #if HAVE_PTHREADS < 6
25196         pthread_create(&t, pthread_attr_default, task, NULL);
25197 #else
25198         pthread_create(&t, NULL, task, NULL);
25199 #endif
25200
25201         /* make sure task runs first */
25202 #ifdef HAVE_THR_YIELD
25203         thr_yield();
25204 #elif defined( HAVE_SCHED_YIELD )
25205         sched_yield();
25206 #elif defined( HAVE_PTHREAD_YIELD )
25207         pthread_yield();
25208 #endif
25209
25210         exit(2);
25211 }
25212 _ACEOF
25213 rm -f conftest$ac_exeext
25214 if { (ac_try="$ac_link"
25215 case "(($ac_try" in
25216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217   *) ac_try_echo=$ac_try;;
25218 esac
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220   (eval "$ac_link") 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25224   { (case "(($ac_try" in
25225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226   *) ac_try_echo=$ac_try;;
25227 esac
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229   (eval "$ac_try") 2>&5
25230   ac_status=$?
25231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232   (exit $ac_status); }; }; then
25233   ol_cv_pthread_select_yields=no
25234 else
25235   echo "$as_me: program exited with status $ac_status" >&5
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239 ( exit $ac_status )
25240 ol_cv_pthread_select_yields=yes
25241 fi
25242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25243 fi
25244
25245
25246 fi
25247 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25248 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25249
25250                                 if test $ol_cv_pthread_select_yields = cross ; then
25251                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25252 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25253    { (exit 1); exit 1; }; }
25254                                 fi
25255
25256                                 if test $ol_cv_pthread_select_yields = yes ; then
25257                                         ol_with_yielding_select=yes
25258                                 fi
25259                         fi
25260
25261                                                 CPPFLAGS="$save_CPPFLAGS"
25262                         LIBS="$save_LIBS"
25263                 else
25264                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25265 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25266    { (exit 1); exit 1; }; }
25267                 fi
25268         fi
25269
25270         if test $ol_with_threads = posix ; then
25271                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25272 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25273    { (exit 1); exit 1; }; }
25274         fi
25275         ;;
25276 esac
25277
25278 case $ol_with_threads in auto | yes | mach)
25279
25280
25281
25282 for ac_header in mach/cthreads.h cthreads.h
25283 do
25284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25286   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 fi
25291 ac_res=`eval echo '${'$as_ac_Header'}'`
25292                { echo "$as_me:$LINENO: result: $ac_res" >&5
25293 echo "${ECHO_T}$ac_res" >&6; }
25294 else
25295   # Is the header compilable?
25296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h.  */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h.  */
25304 $ac_includes_default
25305 #include <$ac_header>
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311   *) ac_try_echo=$ac_try;;
25312 esac
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314   (eval "$ac_compile") 2>conftest.er1
25315   ac_status=$?
25316   grep -v '^ *+' conftest.er1 >conftest.err
25317   rm -f conftest.er1
25318   cat conftest.err >&5
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); } && {
25321          test -z "$ac_c_werror_flag" ||
25322          test ! -s conftest.err
25323        } && test -s conftest.$ac_objext; then
25324   ac_header_compiler=yes
25325 else
25326   echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25328
25329         ac_header_compiler=no
25330 fi
25331
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25334 echo "${ECHO_T}$ac_header_compiler" >&6; }
25335
25336 # Is the header present?
25337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 #include <$ac_header>
25346 _ACEOF
25347 if { (ac_try="$ac_cpp conftest.$ac_ext"
25348 case "(($ac_try" in
25349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350   *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } >/dev/null && {
25360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25361          test ! -s conftest.err
25362        }; then
25363   ac_header_preproc=yes
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368   ac_header_preproc=no
25369 fi
25370
25371 rm -f conftest.err conftest.$ac_ext
25372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25373 echo "${ECHO_T}$ac_header_preproc" >&6; }
25374
25375 # So?  What about this header?
25376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25377   yes:no: )
25378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25382     ac_header_preproc=yes
25383     ;;
25384   no:yes:* )
25385     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25388 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25392 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25397     ( cat <<\_ASBOX
25398 ## --------------------------------------------- ##
25399 ## Report this to <http://www.openldap.org/its/> ##
25400 ## --------------------------------------------- ##
25401 _ASBOX
25402      ) | sed "s/^/$as_me: WARNING:     /" >&2
25403     ;;
25404 esac
25405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410   eval "$as_ac_Header=\$ac_header_preproc"
25411 fi
25412 ac_res=`eval echo '${'$as_ac_Header'}'`
25413                { echo "$as_me:$LINENO: result: $ac_res" >&5
25414 echo "${ECHO_T}$ac_res" >&6; }
25415
25416 fi
25417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25418   cat >>confdefs.h <<_ACEOF
25419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25420 _ACEOF
25421
25422 fi
25423
25424 done
25425
25426         if test $ac_cv_header_mach_cthreads_h = yes ; then
25427                 ol_with_threads=found
25428
25429                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25430 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25431 if test "${ac_cv_func_cthread_fork+set}" = set; then
25432   echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434   cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h.  */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h.  */
25440 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25442 #define cthread_fork innocuous_cthread_fork
25443
25444 /* System header to define __stub macros and hopefully few prototypes,
25445     which can conflict with char cthread_fork (); below.
25446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25447     <limits.h> exists even on freestanding compilers.  */
25448
25449 #ifdef __STDC__
25450 # include <limits.h>
25451 #else
25452 # include <assert.h>
25453 #endif
25454
25455 #undef cthread_fork
25456
25457 /* Override any GCC internal prototype to avoid an error.
25458    Use char because int might match the return type of a GCC
25459    builtin and then its argument prototype would still apply.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 char cthread_fork ();
25464 /* The GNU C library defines this for functions which it implements
25465     to always fail with ENOSYS.  Some functions are actually named
25466     something starting with __ and the normal name is an alias.  */
25467 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25468 choke me
25469 #endif
25470
25471 int
25472 main ()
25473 {
25474 return cthread_fork ();
25475   ;
25476   return 0;
25477 }
25478 _ACEOF
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483   *) ac_try_echo=$ac_try;;
25484 esac
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486   (eval "$ac_link") 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } && {
25493          test -z "$ac_c_werror_flag" ||
25494          test ! -s conftest.err
25495        } && test -s conftest$ac_exeext &&
25496        $as_test_x conftest$ac_exeext; then
25497   ac_cv_func_cthread_fork=yes
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502         ac_cv_func_cthread_fork=no
25503 fi
25504
25505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25506       conftest$ac_exeext conftest.$ac_ext
25507 fi
25508 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25509 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25510 if test $ac_cv_func_cthread_fork = yes; then
25511   ol_link_threads=yes
25512 fi
25513
25514
25515                 if test $ol_link_threads = no ; then
25516                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25517 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25518 if test "${ol_cv_cthread_all_load+set}" = set; then
25519   echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521
25522                                                                 save_LIBS="$LIBS"
25523                                 LIBS="-all_load $LIBS"
25524                                 cat >conftest.$ac_ext <<_ACEOF
25525 /* confdefs.h.  */
25526 _ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h.  */
25530 #include <mach/cthreads.h>
25531 int
25532 main ()
25533 {
25534
25535                                         cthread_fork((void *)0, (void *)0);
25536
25537   ;
25538   return 0;
25539 }
25540 _ACEOF
25541 rm -f conftest.$ac_objext conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548   (eval "$ac_link") 2>conftest.er1
25549   ac_status=$?
25550   grep -v '^ *+' conftest.er1 >conftest.err
25551   rm -f conftest.er1
25552   cat conftest.err >&5
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); } && {
25555          test -z "$ac_c_werror_flag" ||
25556          test ! -s conftest.err
25557        } && test -s conftest$ac_exeext &&
25558        $as_test_x conftest$ac_exeext; then
25559   ol_cv_cthread_all_load=yes
25560 else
25561   echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25563
25564         ol_cv_cthread_all_load=no
25565 fi
25566
25567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25568       conftest$ac_exeext conftest.$ac_ext
25569                                                                 LIBS="$save_LIBS"
25570
25571 fi
25572 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25573 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25574
25575                         if test $ol_cv_cthread_all_load = yes ; then
25576                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25577                                 ol_link_threads=mach
25578                                 ol_with_threads=found
25579                         fi
25580                 fi
25581
25582         elif test $ac_cv_header_cthreads_h = yes ; then
25583
25584                 ol_with_threads=found
25585
25586                                 save_LIBS="$LIBS"
25587                 LIBS="$LIBS -lthreads"
25588                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25589 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25590 if test "${ac_cv_func_cthread_fork+set}" = set; then
25591   echo $ECHO_N "(cached) $ECHO_C" >&6
25592 else
25593   cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h.  */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h.  */
25599 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25601 #define cthread_fork innocuous_cthread_fork
25602
25603 /* System header to define __stub macros and hopefully few prototypes,
25604     which can conflict with char cthread_fork (); below.
25605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25606     <limits.h> exists even on freestanding compilers.  */
25607
25608 #ifdef __STDC__
25609 # include <limits.h>
25610 #else
25611 # include <assert.h>
25612 #endif
25613
25614 #undef cthread_fork
25615
25616 /* Override any GCC internal prototype to avoid an error.
25617    Use char because int might match the return type of a GCC
25618    builtin and then its argument prototype would still apply.  */
25619 #ifdef __cplusplus
25620 extern "C"
25621 #endif
25622 char cthread_fork ();
25623 /* The GNU C library defines this for functions which it implements
25624     to always fail with ENOSYS.  Some functions are actually named
25625     something starting with __ and the normal name is an alias.  */
25626 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25627 choke me
25628 #endif
25629
25630 int
25631 main ()
25632 {
25633 return cthread_fork ();
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_link") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest$ac_exeext &&
25655        $as_test_x conftest$ac_exeext; then
25656   ac_cv_func_cthread_fork=yes
25657 else
25658   echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25660
25661         ac_cv_func_cthread_fork=no
25662 fi
25663
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665       conftest$ac_exeext conftest.$ac_ext
25666 fi
25667 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25668 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25669 if test $ac_cv_func_cthread_fork = yes; then
25670   ol_link_threads=yes
25671 fi
25672
25673                 LIBS="$save_LIBS"
25674
25675                 if test $ol_link_threads = yes ; then
25676                         LTHREAD_LIBS="-lthreads"
25677                         ol_link_threads=mach
25678                         ol_with_threads=found
25679                 else
25680                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25681 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25682    { (exit 1); exit 1; }; }
25683                 fi
25684
25685         elif test $ol_with_threads = mach ; then
25686                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25687 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25688    { (exit 1); exit 1; }; }
25689         fi
25690
25691         if test $ol_link_threads = mach ; then
25692
25693 cat >>confdefs.h <<\_ACEOF
25694 #define HAVE_MACH_CTHREADS 1
25695 _ACEOF
25696
25697         elif test $ol_with_threads = found ; then
25698                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25699 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25700    { (exit 1); exit 1; }; }
25701         fi
25702         ;;
25703 esac
25704
25705 case $ol_with_threads in auto | yes | pth)
25706
25707
25708 for ac_header in pth.h
25709 do
25710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715   echo $ECHO_N "(cached) $ECHO_C" >&6
25716 fi
25717 ac_res=`eval echo '${'$as_ac_Header'}'`
25718                { echo "$as_me:$LINENO: result: $ac_res" >&5
25719 echo "${ECHO_T}$ac_res" >&6; }
25720 else
25721   # Is the header compilable?
25722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h.  */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h.  */
25730 $ac_includes_default
25731 #include <$ac_header>
25732 _ACEOF
25733 rm -f conftest.$ac_objext
25734 if { (ac_try="$ac_compile"
25735 case "(($ac_try" in
25736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737   *) ac_try_echo=$ac_try;;
25738 esac
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740   (eval "$ac_compile") 2>conftest.er1
25741   ac_status=$?
25742   grep -v '^ *+' conftest.er1 >conftest.err
25743   rm -f conftest.er1
25744   cat conftest.err >&5
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); } && {
25747          test -z "$ac_c_werror_flag" ||
25748          test ! -s conftest.err
25749        } && test -s conftest.$ac_objext; then
25750   ac_header_compiler=yes
25751 else
25752   echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755         ac_header_compiler=no
25756 fi
25757
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25760 echo "${ECHO_T}$ac_header_compiler" >&6; }
25761
25762 # Is the header present?
25763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25765 cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h.  */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h.  */
25771 #include <$ac_header>
25772 _ACEOF
25773 if { (ac_try="$ac_cpp conftest.$ac_ext"
25774 case "(($ac_try" in
25775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776   *) ac_try_echo=$ac_try;;
25777 esac
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } >/dev/null && {
25786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25787          test ! -s conftest.err
25788        }; then
25789   ac_header_preproc=yes
25790 else
25791   echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794   ac_header_preproc=no
25795 fi
25796
25797 rm -f conftest.err conftest.$ac_ext
25798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25799 echo "${ECHO_T}$ac_header_preproc" >&6; }
25800
25801 # So?  What about this header?
25802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25803   yes:no: )
25804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25808     ac_header_preproc=yes
25809     ;;
25810   no:yes:* )
25811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25823     ( cat <<\_ASBOX
25824 ## --------------------------------------------- ##
25825 ## Report this to <http://www.openldap.org/its/> ##
25826 ## --------------------------------------------- ##
25827 _ASBOX
25828      ) | sed "s/^/$as_me: WARNING:     /" >&2
25829     ;;
25830 esac
25831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25834   echo $ECHO_N "(cached) $ECHO_C" >&6
25835 else
25836   eval "$as_ac_Header=\$ac_header_preproc"
25837 fi
25838 ac_res=`eval echo '${'$as_ac_Header'}'`
25839                { echo "$as_me:$LINENO: result: $ac_res" >&5
25840 echo "${ECHO_T}$ac_res" >&6; }
25841
25842 fi
25843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25844   cat >>confdefs.h <<_ACEOF
25845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25846 _ACEOF
25847
25848 fi
25849
25850 done
25851
25852
25853         if test $ac_cv_header_pth_h = yes ; then
25854                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25855 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25856 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25857   echo $ECHO_N "(cached) $ECHO_C" >&6
25858 else
25859   ac_check_lib_save_LIBS=$LIBS
25860 LIBS="-lpth  $LIBS"
25861 cat >conftest.$ac_ext <<_ACEOF
25862 /* confdefs.h.  */
25863 _ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h.  */
25867
25868 /* Override any GCC internal prototype to avoid an error.
25869    Use char because int might match the return type of a GCC
25870    builtin and then its argument prototype would still apply.  */
25871 #ifdef __cplusplus
25872 extern "C"
25873 #endif
25874 char pth_version ();
25875 int
25876 main ()
25877 {
25878 return pth_version ();
25879   ;
25880   return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (ac_try="$ac_link"
25885 case "(($ac_try" in
25886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887   *) ac_try_echo=$ac_try;;
25888 esac
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890   (eval "$ac_link") 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && {
25897          test -z "$ac_c_werror_flag" ||
25898          test ! -s conftest.err
25899        } && test -s conftest$ac_exeext &&
25900        $as_test_x conftest$ac_exeext; then
25901   ac_cv_lib_pth_pth_version=yes
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906         ac_cv_lib_pth_pth_version=no
25907 fi
25908
25909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910       conftest$ac_exeext conftest.$ac_ext
25911 LIBS=$ac_check_lib_save_LIBS
25912 fi
25913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25914 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25915 if test $ac_cv_lib_pth_pth_version = yes; then
25916   have_pth=yes
25917 else
25918   have_pth=no
25919 fi
25920
25921
25922                 if test $have_pth = yes ; then
25923
25924 cat >>confdefs.h <<\_ACEOF
25925 #define HAVE_GNU_PTH 1
25926 _ACEOF
25927
25928                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25929                         ol_link_threads=pth
25930                         ol_with_threads=found
25931
25932                         if test $ol_with_yielding_select = auto ; then
25933                                 ol_with_yielding_select=yes
25934                         fi
25935                 fi
25936         fi
25937         ;;
25938 esac
25939
25940 case $ol_with_threads in auto | yes | lwp)
25941
25942
25943
25944 for ac_header in thread.h synch.h
25945 do
25946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25951   echo $ECHO_N "(cached) $ECHO_C" >&6
25952 fi
25953 ac_res=`eval echo '${'$as_ac_Header'}'`
25954                { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25956 else
25957   # Is the header compilable?
25958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 $ac_includes_default
25967 #include <$ac_header>
25968 _ACEOF
25969 rm -f conftest.$ac_objext
25970 if { (ac_try="$ac_compile"
25971 case "(($ac_try" in
25972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973   *) ac_try_echo=$ac_try;;
25974 esac
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976   (eval "$ac_compile") 2>conftest.er1
25977   ac_status=$?
25978   grep -v '^ *+' conftest.er1 >conftest.err
25979   rm -f conftest.er1
25980   cat conftest.err >&5
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } && {
25983          test -z "$ac_c_werror_flag" ||
25984          test ! -s conftest.err
25985        } && test -s conftest.$ac_objext; then
25986   ac_header_compiler=yes
25987 else
25988   echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991         ac_header_compiler=no
25992 fi
25993
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25996 echo "${ECHO_T}$ac_header_compiler" >&6; }
25997
25998 # Is the header present?
25999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26001 cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h.  */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h.  */
26007 #include <$ac_header>
26008 _ACEOF
26009 if { (ac_try="$ac_cpp conftest.$ac_ext"
26010 case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26016   ac_status=$?
26017   grep -v '^ *+' conftest.er1 >conftest.err
26018   rm -f conftest.er1
26019   cat conftest.err >&5
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); } >/dev/null && {
26022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26023          test ! -s conftest.err
26024        }; then
26025   ac_header_preproc=yes
26026 else
26027   echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26029
26030   ac_header_preproc=no
26031 fi
26032
26033 rm -f conftest.err conftest.$ac_ext
26034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26035 echo "${ECHO_T}$ac_header_preproc" >&6; }
26036
26037 # So?  What about this header?
26038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26039   yes:no: )
26040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26044     ac_header_preproc=yes
26045     ;;
26046   no:yes:* )
26047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26059     ( cat <<\_ASBOX
26060 ## --------------------------------------------- ##
26061 ## Report this to <http://www.openldap.org/its/> ##
26062 ## --------------------------------------------- ##
26063 _ASBOX
26064      ) | sed "s/^/$as_me: WARNING:     /" >&2
26065     ;;
26066 esac
26067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26070   echo $ECHO_N "(cached) $ECHO_C" >&6
26071 else
26072   eval "$as_ac_Header=\$ac_header_preproc"
26073 fi
26074 ac_res=`eval echo '${'$as_ac_Header'}'`
26075                { echo "$as_me:$LINENO: result: $ac_res" >&5
26076 echo "${ECHO_T}$ac_res" >&6; }
26077
26078 fi
26079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26080   cat >>confdefs.h <<_ACEOF
26081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26082 _ACEOF
26083
26084 fi
26085
26086 done
26087
26088         if test $ac_cv_header_thread_h = yes &&
26089            test $ac_cv_header_synch_h = yes ; then
26090                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26091 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26092 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26093   echo $ECHO_N "(cached) $ECHO_C" >&6
26094 else
26095   ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-lthread  $LIBS"
26097 cat >conftest.$ac_ext <<_ACEOF
26098 /* confdefs.h.  */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h.  */
26103
26104 /* Override any GCC internal prototype to avoid an error.
26105    Use char because int might match the return type of a GCC
26106    builtin and then its argument prototype would still apply.  */
26107 #ifdef __cplusplus
26108 extern "C"
26109 #endif
26110 char thr_create ();
26111 int
26112 main ()
26113 {
26114 return thr_create ();
26115   ;
26116   return 0;
26117 }
26118 _ACEOF
26119 rm -f conftest.$ac_objext conftest$ac_exeext
26120 if { (ac_try="$ac_link"
26121 case "(($ac_try" in
26122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123   *) ac_try_echo=$ac_try;;
26124 esac
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126   (eval "$ac_link") 2>conftest.er1
26127   ac_status=$?
26128   grep -v '^ *+' conftest.er1 >conftest.err
26129   rm -f conftest.er1
26130   cat conftest.err >&5
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } && {
26133          test -z "$ac_c_werror_flag" ||
26134          test ! -s conftest.err
26135        } && test -s conftest$ac_exeext &&
26136        $as_test_x conftest$ac_exeext; then
26137   ac_cv_lib_thread_thr_create=yes
26138 else
26139   echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26141
26142         ac_cv_lib_thread_thr_create=no
26143 fi
26144
26145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26146       conftest$ac_exeext conftest.$ac_ext
26147 LIBS=$ac_check_lib_save_LIBS
26148 fi
26149 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26150 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26151 if test $ac_cv_lib_thread_thr_create = yes; then
26152   have_thr=yes
26153 else
26154   have_thr=no
26155 fi
26156
26157
26158                 if test $have_thr = yes ; then
26159
26160 cat >>confdefs.h <<\_ACEOF
26161 #define HAVE_THR 1
26162 _ACEOF
26163
26164                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26165                         ol_link_threads=thr
26166
26167                         if test $ol_with_yielding_select = auto ; then
26168                                 ol_with_yielding_select=yes
26169                         fi
26170
26171
26172
26173 for ac_func in \
26174                                 thr_setconcurrency \
26175                                 thr_getconcurrency \
26176
26177 do
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26182   echo $ECHO_N "(cached) $ECHO_C" >&6
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26192 #define $ac_func innocuous_$ac_func
26193
26194 /* System header to define __stub macros and hopefully few prototypes,
26195     which can conflict with char $ac_func (); below.
26196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197     <limits.h> exists even on freestanding compilers.  */
26198
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204
26205 #undef $ac_func
26206
26207 /* Override any GCC internal prototype to avoid an error.
26208    Use char because int might match the return type of a GCC
26209    builtin and then its argument prototype would still apply.  */
26210 #ifdef __cplusplus
26211 extern "C"
26212 #endif
26213 char $ac_func ();
26214 /* The GNU C library defines this for functions which it implements
26215     to always fail with ENOSYS.  Some functions are actually named
26216     something starting with __ and the normal name is an alias.  */
26217 #if defined __stub_$ac_func || defined __stub___$ac_func
26218 choke me
26219 #endif
26220
26221 int
26222 main ()
26223 {
26224 return $ac_func ();
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_link") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_c_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest$ac_exeext &&
26246        $as_test_x conftest$ac_exeext; then
26247   eval "$as_ac_var=yes"
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252         eval "$as_ac_var=no"
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256       conftest$ac_exeext conftest.$ac_ext
26257 fi
26258 ac_res=`eval echo '${'$as_ac_var'}'`
26259                { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262   cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26264 _ACEOF
26265
26266 fi
26267 done
26268
26269                 fi
26270         fi
26271
26272
26273 for ac_header in lwp/lwp.h
26274 do
26275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26277   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26280   echo $ECHO_N "(cached) $ECHO_C" >&6
26281 fi
26282 ac_res=`eval echo '${'$as_ac_Header'}'`
26283                { echo "$as_me:$LINENO: result: $ac_res" >&5
26284 echo "${ECHO_T}$ac_res" >&6; }
26285 else
26286   # Is the header compilable?
26287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26289 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295 $ac_includes_default
26296 #include <$ac_header>
26297 _ACEOF
26298 rm -f conftest.$ac_objext
26299 if { (ac_try="$ac_compile"
26300 case "(($ac_try" in
26301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302   *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305   (eval "$ac_compile") 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } && {
26312          test -z "$ac_c_werror_flag" ||
26313          test ! -s conftest.err
26314        } && test -s conftest.$ac_objext; then
26315   ac_header_compiler=yes
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320         ac_header_compiler=no
26321 fi
26322
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26325 echo "${ECHO_T}$ac_header_compiler" >&6; }
26326
26327 # Is the header present?
26328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336 #include <$ac_header>
26337 _ACEOF
26338 if { (ac_try="$ac_cpp conftest.$ac_ext"
26339 case "(($ac_try" in
26340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341   *) ac_try_echo=$ac_try;;
26342 esac
26343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26345   ac_status=$?
26346   grep -v '^ *+' conftest.er1 >conftest.err
26347   rm -f conftest.er1
26348   cat conftest.err >&5
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } >/dev/null && {
26351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26352          test ! -s conftest.err
26353        }; then
26354   ac_header_preproc=yes
26355 else
26356   echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359   ac_header_preproc=no
26360 fi
26361
26362 rm -f conftest.err conftest.$ac_ext
26363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364 echo "${ECHO_T}$ac_header_preproc" >&6; }
26365
26366 # So?  What about this header?
26367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26368   yes:no: )
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373     ac_header_preproc=yes
26374     ;;
26375   no:yes:* )
26376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26388     ( cat <<\_ASBOX
26389 ## --------------------------------------------- ##
26390 ## Report this to <http://www.openldap.org/its/> ##
26391 ## --------------------------------------------- ##
26392 _ASBOX
26393      ) | sed "s/^/$as_me: WARNING:     /" >&2
26394     ;;
26395 esac
26396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26399   echo $ECHO_N "(cached) $ECHO_C" >&6
26400 else
26401   eval "$as_ac_Header=\$ac_header_preproc"
26402 fi
26403 ac_res=`eval echo '${'$as_ac_Header'}'`
26404                { echo "$as_me:$LINENO: result: $ac_res" >&5
26405 echo "${ECHO_T}$ac_res" >&6; }
26406
26407 fi
26408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26409   cat >>confdefs.h <<_ACEOF
26410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26411 _ACEOF
26412
26413 fi
26414
26415 done
26416
26417         if test $ac_cv_header_lwp_lwp_h = yes ; then
26418                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26419 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26420 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423   ac_check_lib_save_LIBS=$LIBS
26424 LIBS="-llwp  $LIBS"
26425 cat >conftest.$ac_ext <<_ACEOF
26426 /* confdefs.h.  */
26427 _ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h.  */
26431
26432 /* Override any GCC internal prototype to avoid an error.
26433    Use char because int might match the return type of a GCC
26434    builtin and then its argument prototype would still apply.  */
26435 #ifdef __cplusplus
26436 extern "C"
26437 #endif
26438 char lwp_create ();
26439 int
26440 main ()
26441 {
26442 return lwp_create ();
26443   ;
26444   return 0;
26445 }
26446 _ACEOF
26447 rm -f conftest.$ac_objext conftest$ac_exeext
26448 if { (ac_try="$ac_link"
26449 case "(($ac_try" in
26450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451   *) ac_try_echo=$ac_try;;
26452 esac
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454   (eval "$ac_link") 2>conftest.er1
26455   ac_status=$?
26456   grep -v '^ *+' conftest.er1 >conftest.err
26457   rm -f conftest.er1
26458   cat conftest.err >&5
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); } && {
26461          test -z "$ac_c_werror_flag" ||
26462          test ! -s conftest.err
26463        } && test -s conftest$ac_exeext &&
26464        $as_test_x conftest$ac_exeext; then
26465   ac_cv_lib_lwp_lwp_create=yes
26466 else
26467   echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26469
26470         ac_cv_lib_lwp_lwp_create=no
26471 fi
26472
26473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26474       conftest$ac_exeext conftest.$ac_ext
26475 LIBS=$ac_check_lib_save_LIBS
26476 fi
26477 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26478 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26479 if test $ac_cv_lib_lwp_lwp_create = yes; then
26480   have_lwp=yes
26481 else
26482   have_lwp=no
26483 fi
26484
26485
26486                 if test $have_lwp = yes ; then
26487
26488 cat >>confdefs.h <<\_ACEOF
26489 #define HAVE_LWP 1
26490 _ACEOF
26491
26492                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26493                         ol_link_threads=lwp
26494
26495                         if test $ol_with_yielding_select = auto ; then
26496                                 ol_with_yielding_select=no
26497                         fi
26498                 fi
26499         fi
26500         ;;
26501 esac
26502
26503 if test $ol_with_yielding_select = yes ; then
26504
26505 cat >>confdefs.h <<\_ACEOF
26506 #define HAVE_YIELDING_SELECT 1
26507 _ACEOF
26508
26509 fi
26510
26511 if test $ol_with_threads = manual ; then
26512                 ol_link_threads=yes
26513
26514         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26515 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26516
26517
26518
26519 for ac_header in pthread.h sched.h
26520 do
26521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26523   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526   echo $ECHO_N "(cached) $ECHO_C" >&6
26527 fi
26528 ac_res=`eval echo '${'$as_ac_Header'}'`
26529                { echo "$as_me:$LINENO: result: $ac_res" >&5
26530 echo "${ECHO_T}$ac_res" >&6; }
26531 else
26532   # Is the header compilable?
26533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26535 cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 $ac_includes_default
26542 #include <$ac_header>
26543 _ACEOF
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548   *) ac_try_echo=$ac_try;;
26549 esac
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551   (eval "$ac_compile") 2>conftest.er1
26552   ac_status=$?
26553   grep -v '^ *+' conftest.er1 >conftest.err
26554   rm -f conftest.er1
26555   cat conftest.err >&5
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); } && {
26558          test -z "$ac_c_werror_flag" ||
26559          test ! -s conftest.err
26560        } && test -s conftest.$ac_objext; then
26561   ac_header_compiler=yes
26562 else
26563   echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566         ac_header_compiler=no
26567 fi
26568
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26571 echo "${ECHO_T}$ac_header_compiler" >&6; }
26572
26573 # Is the header present?
26574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26576 cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h.  */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h.  */
26582 #include <$ac_header>
26583 _ACEOF
26584 if { (ac_try="$ac_cpp conftest.$ac_ext"
26585 case "(($ac_try" in
26586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26587   *) ac_try_echo=$ac_try;;
26588 esac
26589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26591   ac_status=$?
26592   grep -v '^ *+' conftest.er1 >conftest.err
26593   rm -f conftest.er1
26594   cat conftest.err >&5
26595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596   (exit $ac_status); } >/dev/null && {
26597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26598          test ! -s conftest.err
26599        }; then
26600   ac_header_preproc=yes
26601 else
26602   echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605   ac_header_preproc=no
26606 fi
26607
26608 rm -f conftest.err conftest.$ac_ext
26609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26610 echo "${ECHO_T}$ac_header_preproc" >&6; }
26611
26612 # So?  What about this header?
26613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26614   yes:no: )
26615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26619     ac_header_preproc=yes
26620     ;;
26621   no:yes:* )
26622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26634     ( cat <<\_ASBOX
26635 ## --------------------------------------------- ##
26636 ## Report this to <http://www.openldap.org/its/> ##
26637 ## --------------------------------------------- ##
26638 _ASBOX
26639      ) | sed "s/^/$as_me: WARNING:     /" >&2
26640     ;;
26641 esac
26642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26645   echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647   eval "$as_ac_Header=\$ac_header_preproc"
26648 fi
26649 ac_res=`eval echo '${'$as_ac_Header'}'`
26650                { echo "$as_me:$LINENO: result: $ac_res" >&5
26651 echo "${ECHO_T}$ac_res" >&6; }
26652
26653 fi
26654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26655   cat >>confdefs.h <<_ACEOF
26656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26657 _ACEOF
26658
26659 fi
26660
26661 done
26662
26663
26664
26665 for ac_func in sched_yield pthread_yield
26666 do
26667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26671   echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26673   cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26681 #define $ac_func innocuous_$ac_func
26682
26683 /* System header to define __stub macros and hopefully few prototypes,
26684     which can conflict with char $ac_func (); below.
26685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26686     <limits.h> exists even on freestanding compilers.  */
26687
26688 #ifdef __STDC__
26689 # include <limits.h>
26690 #else
26691 # include <assert.h>
26692 #endif
26693
26694 #undef $ac_func
26695
26696 /* Override any GCC internal prototype to avoid an error.
26697    Use char because int might match the return type of a GCC
26698    builtin and then its argument prototype would still apply.  */
26699 #ifdef __cplusplus
26700 extern "C"
26701 #endif
26702 char $ac_func ();
26703 /* The GNU C library defines this for functions which it implements
26704     to always fail with ENOSYS.  Some functions are actually named
26705     something starting with __ and the normal name is an alias.  */
26706 #if defined __stub_$ac_func || defined __stub___$ac_func
26707 choke me
26708 #endif
26709
26710 int
26711 main ()
26712 {
26713 return $ac_func ();
26714   ;
26715   return 0;
26716 }
26717 _ACEOF
26718 rm -f conftest.$ac_objext conftest$ac_exeext
26719 if { (ac_try="$ac_link"
26720 case "(($ac_try" in
26721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722   *) ac_try_echo=$ac_try;;
26723 esac
26724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26725   (eval "$ac_link") 2>conftest.er1
26726   ac_status=$?
26727   grep -v '^ *+' conftest.er1 >conftest.err
26728   rm -f conftest.er1
26729   cat conftest.err >&5
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } && {
26732          test -z "$ac_c_werror_flag" ||
26733          test ! -s conftest.err
26734        } && test -s conftest$ac_exeext &&
26735        $as_test_x conftest$ac_exeext; then
26736   eval "$as_ac_var=yes"
26737 else
26738   echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26740
26741         eval "$as_ac_var=no"
26742 fi
26743
26744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26745       conftest$ac_exeext conftest.$ac_ext
26746 fi
26747 ac_res=`eval echo '${'$as_ac_var'}'`
26748                { echo "$as_me:$LINENO: result: $ac_res" >&5
26749 echo "${ECHO_T}$ac_res" >&6; }
26750 if test `eval echo '${'$as_ac_var'}'` = yes; then
26751   cat >>confdefs.h <<_ACEOF
26752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26753 _ACEOF
26754
26755 fi
26756 done
26757
26758
26759         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26760 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26761 if test "${ol_cv_header_linux_threads+set}" = set; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 #include <pthread.h>
26771 _ACEOF
26772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26773   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26774   ol_cv_header_linux_threads=yes
26775 else
26776   ol_cv_header_linux_threads=no
26777 fi
26778 rm -f conftest*
26779
26780
26781 fi
26782 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26783 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26784         if test $ol_cv_header_linux_threads = yes; then
26785
26786 cat >>confdefs.h <<\_ACEOF
26787 #define HAVE_LINUX_THREADS 1
26788 _ACEOF
26789
26790         fi
26791
26792
26793
26794 for ac_header in mach/cthreads.h
26795 do
26796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26798   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 fi
26803 ac_res=`eval echo '${'$as_ac_Header'}'`
26804                { echo "$as_me:$LINENO: result: $ac_res" >&5
26805 echo "${ECHO_T}$ac_res" >&6; }
26806 else
26807   # Is the header compilable?
26808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 $ac_includes_default
26817 #include <$ac_header>
26818 _ACEOF
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823   *) ac_try_echo=$ac_try;;
26824 esac
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826   (eval "$ac_compile") 2>conftest.er1
26827   ac_status=$?
26828   grep -v '^ *+' conftest.er1 >conftest.err
26829   rm -f conftest.er1
26830   cat conftest.err >&5
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); } && {
26833          test -z "$ac_c_werror_flag" ||
26834          test ! -s conftest.err
26835        } && test -s conftest.$ac_objext; then
26836   ac_header_compiler=yes
26837 else
26838   echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26840
26841         ac_header_compiler=no
26842 fi
26843
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26846 echo "${ECHO_T}$ac_header_compiler" >&6; }
26847
26848 # Is the header present?
26849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26851 cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h.  */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h.  */
26857 #include <$ac_header>
26858 _ACEOF
26859 if { (ac_try="$ac_cpp conftest.$ac_ext"
26860 case "(($ac_try" in
26861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862   *) ac_try_echo=$ac_try;;
26863 esac
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26866   ac_status=$?
26867   grep -v '^ *+' conftest.er1 >conftest.err
26868   rm -f conftest.er1
26869   cat conftest.err >&5
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); } >/dev/null && {
26872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26873          test ! -s conftest.err
26874        }; then
26875   ac_header_preproc=yes
26876 else
26877   echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26879
26880   ac_header_preproc=no
26881 fi
26882
26883 rm -f conftest.err conftest.$ac_ext
26884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26885 echo "${ECHO_T}$ac_header_preproc" >&6; }
26886
26887 # So?  What about this header?
26888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26889   yes:no: )
26890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26894     ac_header_preproc=yes
26895     ;;
26896   no:yes:* )
26897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26909     ( cat <<\_ASBOX
26910 ## --------------------------------------------- ##
26911 ## Report this to <http://www.openldap.org/its/> ##
26912 ## --------------------------------------------- ##
26913 _ASBOX
26914      ) | sed "s/^/$as_me: WARNING:     /" >&2
26915     ;;
26916 esac
26917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26920   echo $ECHO_N "(cached) $ECHO_C" >&6
26921 else
26922   eval "$as_ac_Header=\$ac_header_preproc"
26923 fi
26924 ac_res=`eval echo '${'$as_ac_Header'}'`
26925                { echo "$as_me:$LINENO: result: $ac_res" >&5
26926 echo "${ECHO_T}$ac_res" >&6; }
26927
26928 fi
26929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26930   cat >>confdefs.h <<_ACEOF
26931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26932 _ACEOF
26933
26934 fi
26935
26936 done
26937
26938
26939 for ac_header in lwp/lwp.h
26940 do
26941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26943   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26946   echo $ECHO_N "(cached) $ECHO_C" >&6
26947 fi
26948 ac_res=`eval echo '${'$as_ac_Header'}'`
26949                { echo "$as_me:$LINENO: result: $ac_res" >&5
26950 echo "${ECHO_T}$ac_res" >&6; }
26951 else
26952   # Is the header compilable?
26953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 $ac_includes_default
26962 #include <$ac_header>
26963 _ACEOF
26964 rm -f conftest.$ac_objext
26965 if { (ac_try="$ac_compile"
26966 case "(($ac_try" in
26967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968   *) ac_try_echo=$ac_try;;
26969 esac
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971   (eval "$ac_compile") 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } && {
26978          test -z "$ac_c_werror_flag" ||
26979          test ! -s conftest.err
26980        } && test -s conftest.$ac_objext; then
26981   ac_header_compiler=yes
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986         ac_header_compiler=no
26987 fi
26988
26989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26991 echo "${ECHO_T}$ac_header_compiler" >&6; }
26992
26993 # Is the header present?
26994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26996 cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 #include <$ac_header>
27003 _ACEOF
27004 if { (ac_try="$ac_cpp conftest.$ac_ext"
27005 case "(($ac_try" in
27006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007   *) ac_try_echo=$ac_try;;
27008 esac
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27011   ac_status=$?
27012   grep -v '^ *+' conftest.er1 >conftest.err
27013   rm -f conftest.er1
27014   cat conftest.err >&5
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); } >/dev/null && {
27017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27018          test ! -s conftest.err
27019        }; then
27020   ac_header_preproc=yes
27021 else
27022   echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27024
27025   ac_header_preproc=no
27026 fi
27027
27028 rm -f conftest.err conftest.$ac_ext
27029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27030 echo "${ECHO_T}$ac_header_preproc" >&6; }
27031
27032 # So?  What about this header?
27033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27034   yes:no: )
27035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27039     ac_header_preproc=yes
27040     ;;
27041   no:yes:* )
27042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27054     ( cat <<\_ASBOX
27055 ## --------------------------------------------- ##
27056 ## Report this to <http://www.openldap.org/its/> ##
27057 ## --------------------------------------------- ##
27058 _ASBOX
27059      ) | sed "s/^/$as_me: WARNING:     /" >&2
27060     ;;
27061 esac
27062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27065   echo $ECHO_N "(cached) $ECHO_C" >&6
27066 else
27067   eval "$as_ac_Header=\$ac_header_preproc"
27068 fi
27069 ac_res=`eval echo '${'$as_ac_Header'}'`
27070                { echo "$as_me:$LINENO: result: $ac_res" >&5
27071 echo "${ECHO_T}$ac_res" >&6; }
27072
27073 fi
27074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27075   cat >>confdefs.h <<_ACEOF
27076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27077 _ACEOF
27078
27079 fi
27080
27081 done
27082
27083
27084
27085 for ac_header in thread.h synch.h
27086 do
27087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27089   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27092   echo $ECHO_N "(cached) $ECHO_C" >&6
27093 fi
27094 ac_res=`eval echo '${'$as_ac_Header'}'`
27095                { echo "$as_me:$LINENO: result: $ac_res" >&5
27096 echo "${ECHO_T}$ac_res" >&6; }
27097 else
27098   # Is the header compilable?
27099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27101 cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107 $ac_includes_default
27108 #include <$ac_header>
27109 _ACEOF
27110 rm -f conftest.$ac_objext
27111 if { (ac_try="$ac_compile"
27112 case "(($ac_try" in
27113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114   *) ac_try_echo=$ac_try;;
27115 esac
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117   (eval "$ac_compile") 2>conftest.er1
27118   ac_status=$?
27119   grep -v '^ *+' conftest.er1 >conftest.err
27120   rm -f conftest.er1
27121   cat conftest.err >&5
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); } && {
27124          test -z "$ac_c_werror_flag" ||
27125          test ! -s conftest.err
27126        } && test -s conftest.$ac_objext; then
27127   ac_header_compiler=yes
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132         ac_header_compiler=no
27133 fi
27134
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27137 echo "${ECHO_T}$ac_header_compiler" >&6; }
27138
27139 # Is the header present?
27140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27142 cat >conftest.$ac_ext <<_ACEOF
27143 /* confdefs.h.  */
27144 _ACEOF
27145 cat confdefs.h >>conftest.$ac_ext
27146 cat >>conftest.$ac_ext <<_ACEOF
27147 /* end confdefs.h.  */
27148 #include <$ac_header>
27149 _ACEOF
27150 if { (ac_try="$ac_cpp conftest.$ac_ext"
27151 case "(($ac_try" in
27152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153   *) ac_try_echo=$ac_try;;
27154 esac
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } >/dev/null && {
27163          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27164          test ! -s conftest.err
27165        }; then
27166   ac_header_preproc=yes
27167 else
27168   echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27170
27171   ac_header_preproc=no
27172 fi
27173
27174 rm -f conftest.err conftest.$ac_ext
27175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176 echo "${ECHO_T}$ac_header_preproc" >&6; }
27177
27178 # So?  What about this header?
27179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27180   yes:no: )
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27185     ac_header_preproc=yes
27186     ;;
27187   no:yes:* )
27188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27200     ( cat <<\_ASBOX
27201 ## --------------------------------------------- ##
27202 ## Report this to <http://www.openldap.org/its/> ##
27203 ## --------------------------------------------- ##
27204 _ASBOX
27205      ) | sed "s/^/$as_me: WARNING:     /" >&2
27206     ;;
27207 esac
27208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27211   echo $ECHO_N "(cached) $ECHO_C" >&6
27212 else
27213   eval "$as_ac_Header=\$ac_header_preproc"
27214 fi
27215 ac_res=`eval echo '${'$as_ac_Header'}'`
27216                { echo "$as_me:$LINENO: result: $ac_res" >&5
27217 echo "${ECHO_T}$ac_res" >&6; }
27218
27219 fi
27220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27221   cat >>confdefs.h <<_ACEOF
27222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27223 _ACEOF
27224
27225 fi
27226
27227 done
27228
27229 fi
27230
27231 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27232                         cat >>confdefs.h <<\_ACEOF
27233 #define REENTRANT 1
27234 _ACEOF
27235
27236         cat >>confdefs.h <<\_ACEOF
27237 #define _REENTRANT 1
27238 _ACEOF
27239
27240         cat >>confdefs.h <<\_ACEOF
27241 #define THREAD_SAFE 1
27242 _ACEOF
27243
27244         cat >>confdefs.h <<\_ACEOF
27245 #define _THREAD_SAFE 1
27246 _ACEOF
27247
27248         cat >>confdefs.h <<\_ACEOF
27249 #define THREADSAFE 1
27250 _ACEOF
27251
27252         cat >>confdefs.h <<\_ACEOF
27253 #define _THREADSAFE 1
27254 _ACEOF
27255
27256         cat >>confdefs.h <<\_ACEOF
27257 #define _SGI_MP_SOURCE 1
27258 _ACEOF
27259
27260
27261                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27262 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27263 if test "${ol_cv_errno_thread_specific+set}" = set; then
27264   echo $ECHO_N "(cached) $ECHO_C" >&6
27265 else
27266
27267                 cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h.  */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h.  */
27273 #include <errno.h>
27274 int
27275 main ()
27276 {
27277 errno = 0;
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 rm -f conftest.$ac_objext conftest$ac_exeext
27283 if { (ac_try="$ac_link"
27284 case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289   (eval "$ac_link") 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } && {
27296          test -z "$ac_c_werror_flag" ||
27297          test ! -s conftest.err
27298        } && test -s conftest$ac_exeext &&
27299        $as_test_x conftest$ac_exeext; then
27300   ol_cv_errno_thread_specific=yes
27301 else
27302   echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27304
27305         ol_cv_errno_thread_specific=no
27306 fi
27307
27308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27309       conftest$ac_exeext conftest.$ac_ext
27310
27311 fi
27312 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27313 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27314
27315                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27316 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27317 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27318   echo $ECHO_N "(cached) $ECHO_C" >&6
27319 else
27320
27321                 cat >conftest.$ac_ext <<_ACEOF
27322 /* confdefs.h.  */
27323 _ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h.  */
27327 #include <netdb.h>
27328 int
27329 main ()
27330 {
27331 h_errno = 0;
27332   ;
27333   return 0;
27334 }
27335 _ACEOF
27336 rm -f conftest.$ac_objext conftest$ac_exeext
27337 if { (ac_try="$ac_link"
27338 case "(($ac_try" in
27339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340   *) ac_try_echo=$ac_try;;
27341 esac
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343   (eval "$ac_link") 2>conftest.er1
27344   ac_status=$?
27345   grep -v '^ *+' conftest.er1 >conftest.err
27346   rm -f conftest.er1
27347   cat conftest.err >&5
27348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349   (exit $ac_status); } && {
27350          test -z "$ac_c_werror_flag" ||
27351          test ! -s conftest.err
27352        } && test -s conftest$ac_exeext &&
27353        $as_test_x conftest$ac_exeext; then
27354   ol_cv_h_errno_thread_specific=yes
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359         ol_cv_h_errno_thread_specific=no
27360 fi
27361
27362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27363       conftest$ac_exeext conftest.$ac_ext
27364
27365 fi
27366 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27367 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27368
27369         if test $ol_cv_errno_thread_specific != yes ||
27370            test $ol_cv_h_errno_thread_specific != yes ; then
27371                 LIBS="$LTHREAD_LIBS $LIBS"
27372                 LTHREAD_LIBS=""
27373         fi
27374
27375 fi
27376
27377 if test $ol_link_threads = no ; then
27378         if test $ol_with_threads = yes ; then
27379                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27380 echo "$as_me: error: no suitable thread support" >&2;}
27381    { (exit 1); exit 1; }; }
27382         fi
27383
27384         if test $ol_with_threads = auto ; then
27385                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27386 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27387                 ol_with_threads=no
27388         fi
27389
27390
27391 cat >>confdefs.h <<\_ACEOF
27392 #define NO_THREADS 1
27393 _ACEOF
27394
27395         LTHREAD_LIBS=""
27396         BUILD_THREAD=no
27397 else
27398         BUILD_THREAD=yes
27399 fi
27400
27401 if test $ol_link_threads != no ; then
27402
27403 cat >>confdefs.h <<\_ACEOF
27404 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27405 _ACEOF
27406
27407 fi
27408
27409
27410
27411
27412 for ac_func in \
27413         ctime_r                 \
27414         gethostbyname_r gethostbyaddr_r \
27415
27416 do
27417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27421   echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423   cat >conftest.$ac_ext <<_ACEOF
27424 /* confdefs.h.  */
27425 _ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h.  */
27429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27431 #define $ac_func innocuous_$ac_func
27432
27433 /* System header to define __stub macros and hopefully few prototypes,
27434     which can conflict with char $ac_func (); below.
27435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27436     <limits.h> exists even on freestanding compilers.  */
27437
27438 #ifdef __STDC__
27439 # include <limits.h>
27440 #else
27441 # include <assert.h>
27442 #endif
27443
27444 #undef $ac_func
27445
27446 /* Override any GCC internal prototype to avoid an error.
27447    Use char because int might match the return type of a GCC
27448    builtin and then its argument prototype would still apply.  */
27449 #ifdef __cplusplus
27450 extern "C"
27451 #endif
27452 char $ac_func ();
27453 /* The GNU C library defines this for functions which it implements
27454     to always fail with ENOSYS.  Some functions are actually named
27455     something starting with __ and the normal name is an alias.  */
27456 #if defined __stub_$ac_func || defined __stub___$ac_func
27457 choke me
27458 #endif
27459
27460 int
27461 main ()
27462 {
27463 return $ac_func ();
27464   ;
27465   return 0;
27466 }
27467 _ACEOF
27468 rm -f conftest.$ac_objext conftest$ac_exeext
27469 if { (ac_try="$ac_link"
27470 case "(($ac_try" in
27471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472   *) ac_try_echo=$ac_try;;
27473 esac
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475   (eval "$ac_link") 2>conftest.er1
27476   ac_status=$?
27477   grep -v '^ *+' conftest.er1 >conftest.err
27478   rm -f conftest.er1
27479   cat conftest.err >&5
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); } && {
27482          test -z "$ac_c_werror_flag" ||
27483          test ! -s conftest.err
27484        } && test -s conftest$ac_exeext &&
27485        $as_test_x conftest$ac_exeext; then
27486   eval "$as_ac_var=yes"
27487 else
27488   echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491         eval "$as_ac_var=no"
27492 fi
27493
27494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27495       conftest$ac_exeext conftest.$ac_ext
27496 fi
27497 ac_res=`eval echo '${'$as_ac_var'}'`
27498                { echo "$as_me:$LINENO: result: $ac_res" >&5
27499 echo "${ECHO_T}$ac_res" >&6; }
27500 if test `eval echo '${'$as_ac_var'}'` = yes; then
27501   cat >>confdefs.h <<_ACEOF
27502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27503 _ACEOF
27504
27505 fi
27506 done
27507
27508
27509 if test "$ac_cv_func_ctime_r" = no ; then
27510         ol_cv_func_ctime_r_nargs=0
27511 else
27512         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27513 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27514 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27515   echo $ECHO_N "(cached) $ECHO_C" >&6
27516 else
27517   cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523 #include <time.h>
27524 int
27525 main ()
27526 {
27527 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27528   ;
27529   return 0;
27530 }
27531 _ACEOF
27532 rm -f conftest.$ac_objext
27533 if { (ac_try="$ac_compile"
27534 case "(($ac_try" in
27535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536   *) ac_try_echo=$ac_try;;
27537 esac
27538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539   (eval "$ac_compile") 2>conftest.er1
27540   ac_status=$?
27541   grep -v '^ *+' conftest.er1 >conftest.err
27542   rm -f conftest.er1
27543   cat conftest.err >&5
27544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545   (exit $ac_status); } && {
27546          test -z "$ac_c_werror_flag" ||
27547          test ! -s conftest.err
27548        } && test -s conftest.$ac_objext; then
27549   ol_cv_func_ctime_r_nargs3=yes
27550 else
27551   echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27553
27554         ol_cv_func_ctime_r_nargs3=no
27555 fi
27556
27557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27558
27559         cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565 #include <time.h>
27566 int
27567 main ()
27568 {
27569 time_t ti; char *buffer; ctime_r(&ti,buffer);
27570   ;
27571   return 0;
27572 }
27573 _ACEOF
27574 rm -f conftest.$ac_objext
27575 if { (ac_try="$ac_compile"
27576 case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581   (eval "$ac_compile") 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } && {
27588          test -z "$ac_c_werror_flag" ||
27589          test ! -s conftest.err
27590        } && test -s conftest.$ac_objext; then
27591   ol_cv_func_ctime_r_nargs2=yes
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596         ol_cv_func_ctime_r_nargs2=no
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600
27601         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27602            test $ol_cv_func_ctime_r_nargs2 = no ; then
27603
27604                 ol_cv_func_ctime_r_nargs=3
27605
27606         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27607              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27608
27609                 ol_cv_func_ctime_r_nargs=2
27610
27611         else
27612                 ol_cv_func_ctime_r_nargs=0
27613         fi
27614
27615 fi
27616 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27617 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27618
27619   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27620
27621 cat >>confdefs.h <<_ACEOF
27622 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27623 _ACEOF
27624
27625   fi
27626
27627 fi
27628
27629 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27630         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27631 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27632 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27633   echo $ECHO_N "(cached) $ECHO_C" >&6
27634 else
27635   cat >conftest.$ac_ext <<_ACEOF
27636 /* confdefs.h.  */
27637 _ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h.  */
27641 #include <sys/types.h>
27642 #include <sys/socket.h>
27643 #include <netinet/in.h>
27644 #include <netdb.h>
27645 #define BUFSIZE (sizeof(struct hostent)+10)
27646 int
27647 main ()
27648 {
27649 struct hostent hent; char buffer[BUFSIZE];
27650                 int bufsize=BUFSIZE;int h_errno;
27651                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27652                         buffer, bufsize, &h_errno);
27653   ;
27654   return 0;
27655 }
27656 _ACEOF
27657 rm -f conftest.$ac_objext
27658 if { (ac_try="$ac_compile"
27659 case "(($ac_try" in
27660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661   *) ac_try_echo=$ac_try;;
27662 esac
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664   (eval "$ac_compile") 2>conftest.er1
27665   ac_status=$?
27666   grep -v '^ *+' conftest.er1 >conftest.err
27667   rm -f conftest.er1
27668   cat conftest.err >&5
27669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); } && {
27671          test -z "$ac_c_werror_flag" ||
27672          test ! -s conftest.err
27673        } && test -s conftest.$ac_objext; then
27674   ol_cv_func_gethostbyname_r_nargs5=yes
27675 else
27676   echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27678
27679         ol_cv_func_gethostbyname_r_nargs5=no
27680 fi
27681
27682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27683
27684         cat >conftest.$ac_ext <<_ACEOF
27685 /* confdefs.h.  */
27686 _ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h.  */
27690 #include <sys/types.h>
27691 #include <sys/socket.h>
27692 #include <netinet/in.h>
27693 #include <netdb.h>
27694 #define BUFSIZE (sizeof(struct hostent)+10)
27695 int
27696 main ()
27697 {
27698 struct hostent hent;struct hostent *rhent;
27699                 char buffer[BUFSIZE];
27700                 int bufsize=BUFSIZE;int h_errno;
27701                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27702                         &rhent, &h_errno);
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 rm -f conftest.$ac_objext
27708 if { (ac_try="$ac_compile"
27709 case "(($ac_try" in
27710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27711   *) ac_try_echo=$ac_try;;
27712 esac
27713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27714   (eval "$ac_compile") 2>conftest.er1
27715   ac_status=$?
27716   grep -v '^ *+' conftest.er1 >conftest.err
27717   rm -f conftest.er1
27718   cat conftest.err >&5
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); } && {
27721          test -z "$ac_c_werror_flag" ||
27722          test ! -s conftest.err
27723        } && test -s conftest.$ac_objext; then
27724   ol_cv_func_gethostbyname_r_nargs6=yes
27725 else
27726   echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729         ol_cv_func_gethostbyname_r_nargs6=no
27730 fi
27731
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27733
27734         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27735            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27736
27737                 ol_cv_func_gethostbyname_r_nargs=5
27738
27739         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27740              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27741
27742                 ol_cv_func_gethostbyname_r_nargs=6
27743
27744         else
27745                 ol_cv_func_gethostbyname_r_nargs=0
27746         fi
27747
27748 fi
27749 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27750 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27751   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27752
27753 cat >>confdefs.h <<_ACEOF
27754 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27755 _ACEOF
27756
27757   fi
27758
27759 else
27760         ol_cv_func_gethostbyname_r_nargs=0
27761 fi
27762
27763 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27764         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27765 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27766 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27767   echo $ECHO_N "(cached) $ECHO_C" >&6
27768 else
27769   cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h.  */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h.  */
27775 #include <sys/types.h>
27776 #include <sys/socket.h>
27777 #include <netinet/in.h>
27778 #include <netdb.h>
27779 #define BUFSIZE (sizeof(struct hostent)+10)
27780 int
27781 main ()
27782 {
27783 struct hostent hent; char buffer[BUFSIZE];
27784             struct in_addr add;
27785             size_t alen=sizeof(struct in_addr);
27786             int bufsize=BUFSIZE;int h_errno;
27787                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27788                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27789   ;
27790   return 0;
27791 }
27792 _ACEOF
27793 rm -f conftest.$ac_objext
27794 if { (ac_try="$ac_compile"
27795 case "(($ac_try" in
27796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797   *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800   (eval "$ac_compile") 2>conftest.er1
27801   ac_status=$?
27802   grep -v '^ *+' conftest.er1 >conftest.err
27803   rm -f conftest.er1
27804   cat conftest.err >&5
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); } && {
27807          test -z "$ac_c_werror_flag" ||
27808          test ! -s conftest.err
27809        } && test -s conftest.$ac_objext; then
27810   ol_cv_func_gethostbyaddr_r_nargs7=yes
27811 else
27812   echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815         ol_cv_func_gethostbyaddr_r_nargs7=no
27816 fi
27817
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819
27820         cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826 #include <sys/types.h>
27827 #include <sys/socket.h>
27828 #include <netinet/in.h>
27829 #include <netdb.h>
27830 #define BUFSIZE (sizeof(struct hostent)+10)
27831 int
27832 main ()
27833 {
27834 struct hostent hent;
27835                 struct hostent *rhent; char buffer[BUFSIZE];
27836                 struct in_addr add;
27837                 size_t alen=sizeof(struct in_addr);
27838                 int bufsize=BUFSIZE;int h_errno;
27839                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27840                         alen, AF_INET, &hent, buffer, bufsize,
27841                         &rhent, &h_errno);
27842   ;
27843   return 0;
27844 }
27845 _ACEOF
27846 rm -f conftest.$ac_objext
27847 if { (ac_try="$ac_compile"
27848 case "(($ac_try" in
27849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850   *) ac_try_echo=$ac_try;;
27851 esac
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853   (eval "$ac_compile") 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } && {
27860          test -z "$ac_c_werror_flag" ||
27861          test ! -s conftest.err
27862        } && test -s conftest.$ac_objext; then
27863   ol_cv_func_gethostbyaddr_r_nargs8=yes
27864 else
27865   echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27867
27868         ol_cv_func_gethostbyaddr_r_nargs8=no
27869 fi
27870
27871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27872
27873         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27874            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27875
27876                 ol_cv_func_gethostbyaddr_r_nargs=7
27877
27878         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27879              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27880
27881                 ol_cv_func_gethostbyaddr_r_nargs=8
27882
27883         else
27884                 ol_cv_func_gethostbyaddr_r_nargs=0
27885         fi
27886
27887 fi
27888 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27889 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27890   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27891
27892 cat >>confdefs.h <<_ACEOF
27893 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27894 _ACEOF
27895
27896   fi
27897
27898 else
27899         ol_cv_func_gethostbyaddr_r_nargs=0
27900 fi
27901
27902 ol_link_bdb=no
27903
27904 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27905         ol_cv_berkeley_db=no
27906
27907 for ac_header in db.h
27908 do
27909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27911   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27914   echo $ECHO_N "(cached) $ECHO_C" >&6
27915 fi
27916 ac_res=`eval echo '${'$as_ac_Header'}'`
27917                { echo "$as_me:$LINENO: result: $ac_res" >&5
27918 echo "${ECHO_T}$ac_res" >&6; }
27919 else
27920   # Is the header compilable?
27921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27923 cat >conftest.$ac_ext <<_ACEOF
27924 /* confdefs.h.  */
27925 _ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h.  */
27929 $ac_includes_default
27930 #include <$ac_header>
27931 _ACEOF
27932 rm -f conftest.$ac_objext
27933 if { (ac_try="$ac_compile"
27934 case "(($ac_try" in
27935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936   *) ac_try_echo=$ac_try;;
27937 esac
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939   (eval "$ac_compile") 2>conftest.er1
27940   ac_status=$?
27941   grep -v '^ *+' conftest.er1 >conftest.err
27942   rm -f conftest.er1
27943   cat conftest.err >&5
27944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945   (exit $ac_status); } && {
27946          test -z "$ac_c_werror_flag" ||
27947          test ! -s conftest.err
27948        } && test -s conftest.$ac_objext; then
27949   ac_header_compiler=yes
27950 else
27951   echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954         ac_header_compiler=no
27955 fi
27956
27957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27959 echo "${ECHO_T}$ac_header_compiler" >&6; }
27960
27961 # Is the header present?
27962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27964 cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 #include <$ac_header>
27971 _ACEOF
27972 if { (ac_try="$ac_cpp conftest.$ac_ext"
27973 case "(($ac_try" in
27974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975   *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } >/dev/null && {
27985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27986          test ! -s conftest.err
27987        }; then
27988   ac_header_preproc=yes
27989 else
27990   echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.$ac_ext >&5
27992
27993   ac_header_preproc=no
27994 fi
27995
27996 rm -f conftest.err conftest.$ac_ext
27997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27998 echo "${ECHO_T}$ac_header_preproc" >&6; }
27999
28000 # So?  What about this header?
28001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28002   yes:no: )
28003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28007     ac_header_preproc=yes
28008     ;;
28009   no:yes:* )
28010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28012     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28013 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28014     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28016     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28017 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28020     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28022     ( cat <<\_ASBOX
28023 ## --------------------------------------------- ##
28024 ## Report this to <http://www.openldap.org/its/> ##
28025 ## --------------------------------------------- ##
28026 _ASBOX
28027      ) | sed "s/^/$as_me: WARNING:     /" >&2
28028     ;;
28029 esac
28030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28033   echo $ECHO_N "(cached) $ECHO_C" >&6
28034 else
28035   eval "$as_ac_Header=\$ac_header_preproc"
28036 fi
28037 ac_res=`eval echo '${'$as_ac_Header'}'`
28038                { echo "$as_me:$LINENO: result: $ac_res" >&5
28039 echo "${ECHO_T}$ac_res" >&6; }
28040
28041 fi
28042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28043   cat >>confdefs.h <<_ACEOF
28044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28045 _ACEOF
28046
28047 fi
28048
28049 done
28050
28051 if test $ac_cv_header_db_h = yes; then
28052         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28053 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28054 if test "${ol_cv_bdb_major+set}" = set; then
28055   echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057
28058         cat >conftest.$ac_ext <<_ACEOF
28059
28060 #include <db.h>
28061 #ifndef DB_VERSION_MAJOR
28062 #       define DB_VERSION_MAJOR 1
28063 #endif
28064 __db_version DB_VERSION_MAJOR
28065
28066 _ACEOF
28067         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28068         ol_cv_bdb_major=${3}
28069
28070 fi
28071 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28072 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28073 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28074         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28075 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28076    { (exit 1); exit 1; }; } ;;
28077 esac
28078
28079 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28080 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28081 if test "${ol_cv_bdb_minor+set}" = set; then
28082   echo $ECHO_N "(cached) $ECHO_C" >&6
28083 else
28084
28085         cat >conftest.$ac_ext <<_ACEOF
28086
28087 #include <db.h>
28088 #ifndef DB_VERSION_MINOR
28089 #       define DB_VERSION_MINOR 0
28090 #endif
28091 __db_version DB_VERSION_MINOR
28092
28093 _ACEOF
28094         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28095         ol_cv_bdb_minor=${3}
28096
28097 fi
28098 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28099 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28100 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28101         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28102 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28103    { (exit 1); exit 1; }; } ;;
28104 esac
28105
28106         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28107 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28108 if test "${ol_cv_bdb_compat+set}" = set; then
28109   echo $ECHO_N "(cached) $ECHO_C" >&6
28110 else
28111
28112         cat >conftest.$ac_ext <<_ACEOF
28113 /* confdefs.h.  */
28114 _ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h.  */
28118
28119 #include <db.h>
28120
28121  /* this check could be improved */
28122 #ifndef DB_VERSION_MAJOR
28123 #       define DB_VERSION_MAJOR 1
28124 #endif
28125 #ifndef DB_VERSION_MINOR
28126 #       define DB_VERSION_MINOR 0
28127 #endif
28128
28129 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28130
28131 /* require 4.4 or later */
28132 #if DB_VERSION_MM >= 0x0404
28133         __db_version_compat
28134 #endif
28135
28136 _ACEOF
28137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28138   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28139   ol_cv_bdb_compat=yes
28140 else
28141   ol_cv_bdb_compat=no
28142 fi
28143 rm -f conftest*
28144
28145 fi
28146 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28147 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28148
28149
28150         if test $ol_cv_bdb_compat != yes ; then
28151                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28152 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28153    { (exit 1); exit 1; }; }
28154         fi
28155
28156         ol_cv_lib_db=no
28157
28158 if test $ol_cv_bdb_major = 4 ; then
28159         if test $ol_cv_lib_db = no ; then
28160         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28161 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28162 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28163   echo $ECHO_N "(cached) $ECHO_C" >&6
28164 else
28165
28166         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28167         ol_LIBS=$LIBS
28168         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28169
28170         cat >conftest.$ac_ext <<_ACEOF
28171 /* confdefs.h.  */
28172 _ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h.  */
28176
28177 #ifdef HAVE_DB_185_H
28178 # include <db_185.h>
28179 #else
28180 # include <db.h>
28181 #endif
28182
28183 #ifndef DB_VERSION_MAJOR
28184 # define DB_VERSION_MAJOR 1
28185 #endif
28186
28187 #ifndef NULL
28188 #define NULL ((void*)0)
28189 #endif
28190
28191 int
28192 main ()
28193 {
28194
28195 #if DB_VERSION_MAJOR > 2
28196         db_env_create( NULL, 0 );
28197 #elif DB_VERSION_MAJOR > 1
28198         db_appexit( NULL );
28199 #else
28200         (void) dbopen( NULL, 0, 0, 0, NULL);
28201 #endif
28202
28203   ;
28204   return 0;
28205 }
28206 _ACEOF
28207 rm -f conftest.$ac_objext conftest$ac_exeext
28208 if { (ac_try="$ac_link"
28209 case "(($ac_try" in
28210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211   *) ac_try_echo=$ac_try;;
28212 esac
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214   (eval "$ac_link") 2>conftest.er1
28215   ac_status=$?
28216   grep -v '^ *+' conftest.er1 >conftest.err
28217   rm -f conftest.er1
28218   cat conftest.err >&5
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); } && {
28221          test -z "$ac_c_werror_flag" ||
28222          test ! -s conftest.err
28223        } && test -s conftest$ac_exeext &&
28224        $as_test_x conftest$ac_exeext; then
28225   ol_cv_db_db_4_dot_m=yes
28226 else
28227   echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28229
28230         ol_cv_db_db_4_dot_m=no
28231 fi
28232
28233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28234       conftest$ac_exeext conftest.$ac_ext
28235
28236         LIBS="$ol_LIBS"
28237
28238 fi
28239 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28240 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28241
28242         if test $ol_cv_db_db_4_dot_m = yes ; then
28243                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28244         fi
28245 fi
28246
28247         if test $ol_cv_lib_db = no ; then
28248         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28249 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28250 if test "${ol_cv_db_db4m+set}" = set; then
28251   echo $ECHO_N "(cached) $ECHO_C" >&6
28252 else
28253
28254         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28255         ol_LIBS=$LIBS
28256         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28257
28258         cat >conftest.$ac_ext <<_ACEOF
28259 /* confdefs.h.  */
28260 _ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h.  */
28264
28265 #ifdef HAVE_DB_185_H
28266 # include <db_185.h>
28267 #else
28268 # include <db.h>
28269 #endif
28270
28271 #ifndef DB_VERSION_MAJOR
28272 # define DB_VERSION_MAJOR 1
28273 #endif
28274
28275 #ifndef NULL
28276 #define NULL ((void*)0)
28277 #endif
28278
28279 int
28280 main ()
28281 {
28282
28283 #if DB_VERSION_MAJOR > 2
28284         db_env_create( NULL, 0 );
28285 #elif DB_VERSION_MAJOR > 1
28286         db_appexit( NULL );
28287 #else
28288         (void) dbopen( NULL, 0, 0, 0, NULL);
28289 #endif
28290
28291   ;
28292   return 0;
28293 }
28294 _ACEOF
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (ac_try="$ac_link"
28297 case "(($ac_try" in
28298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299   *) ac_try_echo=$ac_try;;
28300 esac
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302   (eval "$ac_link") 2>conftest.er1
28303   ac_status=$?
28304   grep -v '^ *+' conftest.er1 >conftest.err
28305   rm -f conftest.er1
28306   cat conftest.err >&5
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); } && {
28309          test -z "$ac_c_werror_flag" ||
28310          test ! -s conftest.err
28311        } && test -s conftest$ac_exeext &&
28312        $as_test_x conftest$ac_exeext; then
28313   ol_cv_db_db4m=yes
28314 else
28315   echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28317
28318         ol_cv_db_db4m=no
28319 fi
28320
28321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28322       conftest$ac_exeext conftest.$ac_ext
28323
28324         LIBS="$ol_LIBS"
28325
28326 fi
28327 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28328 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28329
28330         if test $ol_cv_db_db4m = yes ; then
28331                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28332         fi
28333 fi
28334
28335         if test $ol_cv_lib_db = no ; then
28336         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28337 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28338 if test "${ol_cv_db_db_4m+set}" = set; then
28339   echo $ECHO_N "(cached) $ECHO_C" >&6
28340 else
28341
28342         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28343         ol_LIBS=$LIBS
28344         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28345
28346         cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h.  */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h.  */
28352
28353 #ifdef HAVE_DB_185_H
28354 # include <db_185.h>
28355 #else
28356 # include <db.h>
28357 #endif
28358
28359 #ifndef DB_VERSION_MAJOR
28360 # define DB_VERSION_MAJOR 1
28361 #endif
28362
28363 #ifndef NULL
28364 #define NULL ((void*)0)
28365 #endif
28366
28367 int
28368 main ()
28369 {
28370
28371 #if DB_VERSION_MAJOR > 2
28372         db_env_create( NULL, 0 );
28373 #elif DB_VERSION_MAJOR > 1
28374         db_appexit( NULL );
28375 #else
28376         (void) dbopen( NULL, 0, 0, 0, NULL);
28377 #endif
28378
28379   ;
28380   return 0;
28381 }
28382 _ACEOF
28383 rm -f conftest.$ac_objext conftest$ac_exeext
28384 if { (ac_try="$ac_link"
28385 case "(($ac_try" in
28386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387   *) ac_try_echo=$ac_try;;
28388 esac
28389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390   (eval "$ac_link") 2>conftest.er1
28391   ac_status=$?
28392   grep -v '^ *+' conftest.er1 >conftest.err
28393   rm -f conftest.er1
28394   cat conftest.err >&5
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); } && {
28397          test -z "$ac_c_werror_flag" ||
28398          test ! -s conftest.err
28399        } && test -s conftest$ac_exeext &&
28400        $as_test_x conftest$ac_exeext; then
28401   ol_cv_db_db_4m=yes
28402 else
28403   echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28405
28406         ol_cv_db_db_4m=no
28407 fi
28408
28409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28410       conftest$ac_exeext conftest.$ac_ext
28411
28412         LIBS="$ol_LIBS"
28413
28414 fi
28415 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28416 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28417
28418         if test $ol_cv_db_db_4m = yes ; then
28419                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28420         fi
28421 fi
28422
28423         if test $ol_cv_lib_db = no ; then
28424         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28425 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28426 if test "${ol_cv_db_db_4_m+set}" = set; then
28427   echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429
28430         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28431         ol_LIBS=$LIBS
28432         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28433
28434         cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440
28441 #ifdef HAVE_DB_185_H
28442 # include <db_185.h>
28443 #else
28444 # include <db.h>
28445 #endif
28446
28447 #ifndef DB_VERSION_MAJOR
28448 # define DB_VERSION_MAJOR 1
28449 #endif
28450
28451 #ifndef NULL
28452 #define NULL ((void*)0)
28453 #endif
28454
28455 int
28456 main ()
28457 {
28458
28459 #if DB_VERSION_MAJOR > 2
28460         db_env_create( NULL, 0 );
28461 #elif DB_VERSION_MAJOR > 1
28462         db_appexit( NULL );
28463 #else
28464         (void) dbopen( NULL, 0, 0, 0, NULL);
28465 #endif
28466
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 rm -f conftest.$ac_objext conftest$ac_exeext
28472 if { (ac_try="$ac_link"
28473 case "(($ac_try" in
28474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475   *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478   (eval "$ac_link") 2>conftest.er1
28479   ac_status=$?
28480   grep -v '^ *+' conftest.er1 >conftest.err
28481   rm -f conftest.er1
28482   cat conftest.err >&5
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); } && {
28485          test -z "$ac_c_werror_flag" ||
28486          test ! -s conftest.err
28487        } && test -s conftest$ac_exeext &&
28488        $as_test_x conftest$ac_exeext; then
28489   ol_cv_db_db_4_m=yes
28490 else
28491   echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28493
28494         ol_cv_db_db_4_m=no
28495 fi
28496
28497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28498       conftest$ac_exeext conftest.$ac_ext
28499
28500         LIBS="$ol_LIBS"
28501
28502 fi
28503 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28504 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28505
28506         if test $ol_cv_db_db_4_m = yes ; then
28507                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28508         fi
28509 fi
28510
28511         if test $ol_cv_lib_db = no ; then
28512         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28513 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28514 if test "${ol_cv_db_db_4+set}" = set; then
28515   echo $ECHO_N "(cached) $ECHO_C" >&6
28516 else
28517
28518         ol_DB_LIB=-ldb-4
28519         ol_LIBS=$LIBS
28520         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28521
28522         cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h.  */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h.  */
28528
28529 #ifdef HAVE_DB_185_H
28530 # include <db_185.h>
28531 #else
28532 # include <db.h>
28533 #endif
28534
28535 #ifndef DB_VERSION_MAJOR
28536 # define DB_VERSION_MAJOR 1
28537 #endif
28538
28539 #ifndef NULL
28540 #define NULL ((void*)0)
28541 #endif
28542
28543 int
28544 main ()
28545 {
28546
28547 #if DB_VERSION_MAJOR > 2
28548         db_env_create( NULL, 0 );
28549 #elif DB_VERSION_MAJOR > 1
28550         db_appexit( NULL );
28551 #else
28552         (void) dbopen( NULL, 0, 0, 0, NULL);
28553 #endif
28554
28555   ;
28556   return 0;
28557 }
28558 _ACEOF
28559 rm -f conftest.$ac_objext conftest$ac_exeext
28560 if { (ac_try="$ac_link"
28561 case "(($ac_try" in
28562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563   *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566   (eval "$ac_link") 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } && {
28573          test -z "$ac_c_werror_flag" ||
28574          test ! -s conftest.err
28575        } && test -s conftest$ac_exeext &&
28576        $as_test_x conftest$ac_exeext; then
28577   ol_cv_db_db_4=yes
28578 else
28579   echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28581
28582         ol_cv_db_db_4=no
28583 fi
28584
28585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28586       conftest$ac_exeext conftest.$ac_ext
28587
28588         LIBS="$ol_LIBS"
28589
28590 fi
28591 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28592 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28593
28594         if test $ol_cv_db_db_4 = yes ; then
28595                 ol_cv_lib_db=-ldb-4
28596         fi
28597 fi
28598
28599         if test $ol_cv_lib_db = no ; then
28600         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28601 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28602 if test "${ol_cv_db_db4+set}" = set; then
28603   echo $ECHO_N "(cached) $ECHO_C" >&6
28604 else
28605
28606         ol_DB_LIB=-ldb4
28607         ol_LIBS=$LIBS
28608         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28609
28610         cat >conftest.$ac_ext <<_ACEOF
28611 /* confdefs.h.  */
28612 _ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h.  */
28616
28617 #ifdef HAVE_DB_185_H
28618 # include <db_185.h>
28619 #else
28620 # include <db.h>
28621 #endif
28622
28623 #ifndef DB_VERSION_MAJOR
28624 # define DB_VERSION_MAJOR 1
28625 #endif
28626
28627 #ifndef NULL
28628 #define NULL ((void*)0)
28629 #endif
28630
28631 int
28632 main ()
28633 {
28634
28635 #if DB_VERSION_MAJOR > 2
28636         db_env_create( NULL, 0 );
28637 #elif DB_VERSION_MAJOR > 1
28638         db_appexit( NULL );
28639 #else
28640         (void) dbopen( NULL, 0, 0, 0, NULL);
28641 #endif
28642
28643   ;
28644   return 0;
28645 }
28646 _ACEOF
28647 rm -f conftest.$ac_objext conftest$ac_exeext
28648 if { (ac_try="$ac_link"
28649 case "(($ac_try" in
28650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651   *) ac_try_echo=$ac_try;;
28652 esac
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654   (eval "$ac_link") 2>conftest.er1
28655   ac_status=$?
28656   grep -v '^ *+' conftest.er1 >conftest.err
28657   rm -f conftest.er1
28658   cat conftest.err >&5
28659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660   (exit $ac_status); } && {
28661          test -z "$ac_c_werror_flag" ||
28662          test ! -s conftest.err
28663        } && test -s conftest$ac_exeext &&
28664        $as_test_x conftest$ac_exeext; then
28665   ol_cv_db_db4=yes
28666 else
28667   echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670         ol_cv_db_db4=no
28671 fi
28672
28673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28674       conftest$ac_exeext conftest.$ac_ext
28675
28676         LIBS="$ol_LIBS"
28677
28678 fi
28679 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28680 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28681
28682         if test $ol_cv_db_db4 = yes ; then
28683                 ol_cv_lib_db=-ldb4
28684         fi
28685 fi
28686
28687         if test $ol_cv_lib_db = no ; then
28688         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28689 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28690 if test "${ol_cv_db_db+set}" = set; then
28691   echo $ECHO_N "(cached) $ECHO_C" >&6
28692 else
28693
28694         ol_DB_LIB=-ldb
28695         ol_LIBS=$LIBS
28696         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28697
28698         cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704
28705 #ifdef HAVE_DB_185_H
28706 # include <db_185.h>
28707 #else
28708 # include <db.h>
28709 #endif
28710
28711 #ifndef DB_VERSION_MAJOR
28712 # define DB_VERSION_MAJOR 1
28713 #endif
28714
28715 #ifndef NULL
28716 #define NULL ((void*)0)
28717 #endif
28718
28719 int
28720 main ()
28721 {
28722
28723 #if DB_VERSION_MAJOR > 2
28724         db_env_create( NULL, 0 );
28725 #elif DB_VERSION_MAJOR > 1
28726         db_appexit( NULL );
28727 #else
28728         (void) dbopen( NULL, 0, 0, 0, NULL);
28729 #endif
28730
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest.$ac_objext conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742   (eval "$ac_link") 2>conftest.er1
28743   ac_status=$?
28744   grep -v '^ *+' conftest.er1 >conftest.err
28745   rm -f conftest.er1
28746   cat conftest.err >&5
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); } && {
28749          test -z "$ac_c_werror_flag" ||
28750          test ! -s conftest.err
28751        } && test -s conftest$ac_exeext &&
28752        $as_test_x conftest$ac_exeext; then
28753   ol_cv_db_db=yes
28754 else
28755   echo "$as_me: failed program was:" >&5
28756 sed 's/^/| /' conftest.$ac_ext >&5
28757
28758         ol_cv_db_db=no
28759 fi
28760
28761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28762       conftest$ac_exeext conftest.$ac_ext
28763
28764         LIBS="$ol_LIBS"
28765
28766 fi
28767 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28768 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28769
28770         if test $ol_cv_db_db = yes ; then
28771                 ol_cv_lib_db=-ldb
28772         fi
28773 fi
28774
28775 fi
28776 if test $ol_cv_lib_db = no ; then
28777         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28778 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28779 if test "${ol_cv_db_none+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 else
28782
28783         ol_DB_LIB=
28784         ol_LIBS=$LIBS
28785         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28786
28787         cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h.  */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h.  */
28793
28794 #ifdef HAVE_DB_185_H
28795 # include <db_185.h>
28796 #else
28797 # include <db.h>
28798 #endif
28799
28800 #ifndef DB_VERSION_MAJOR
28801 # define DB_VERSION_MAJOR 1
28802 #endif
28803
28804 #ifndef NULL
28805 #define NULL ((void*)0)
28806 #endif
28807
28808 int
28809 main ()
28810 {
28811
28812 #if DB_VERSION_MAJOR > 2
28813         db_env_create( NULL, 0 );
28814 #elif DB_VERSION_MAJOR > 1
28815         db_appexit( NULL );
28816 #else
28817         (void) dbopen( NULL, 0, 0, 0, NULL);
28818 #endif
28819
28820   ;
28821   return 0;
28822 }
28823 _ACEOF
28824 rm -f conftest.$ac_objext conftest$ac_exeext
28825 if { (ac_try="$ac_link"
28826 case "(($ac_try" in
28827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828   *) ac_try_echo=$ac_try;;
28829 esac
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831   (eval "$ac_link") 2>conftest.er1
28832   ac_status=$?
28833   grep -v '^ *+' conftest.er1 >conftest.err
28834   rm -f conftest.er1
28835   cat conftest.err >&5
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); } && {
28838          test -z "$ac_c_werror_flag" ||
28839          test ! -s conftest.err
28840        } && test -s conftest$ac_exeext &&
28841        $as_test_x conftest$ac_exeext; then
28842   ol_cv_db_none=yes
28843 else
28844   echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28846
28847         ol_cv_db_none=no
28848 fi
28849
28850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28851       conftest$ac_exeext conftest.$ac_ext
28852
28853         LIBS="$ol_LIBS"
28854
28855 fi
28856 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28857 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28858
28859         if test $ol_cv_db_none = yes ; then
28860                 ol_cv_lib_db=yes
28861         fi
28862 fi
28863
28864
28865         if test "$ol_cv_lib_db" != no ; then
28866                 ol_cv_berkeley_db=yes
28867                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28868 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28869 if test "${ol_cv_berkeley_db_version+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872
28873         ol_LIBS="$LIBS"
28874         LIBS="$LTHREAD_LIBS $LIBS"
28875         if test $ol_cv_lib_db != yes ; then
28876                 LIBS="$ol_cv_lib_db $LIBS"
28877         fi
28878
28879         if test "$cross_compiling" = yes; then
28880   ol_cv_berkeley_db_version=cross
28881 else
28882   cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888
28889 #ifdef HAVE_DB_185_H
28890         choke me;
28891 #else
28892 #include <db.h>
28893 #endif
28894 #ifndef DB_VERSION_MAJOR
28895 # define DB_VERSION_MAJOR 1
28896 #endif
28897 #ifndef NULL
28898 #define NULL ((void *)0)
28899 #endif
28900 main()
28901 {
28902 #if DB_VERSION_MAJOR > 1
28903         char *version;
28904         int major, minor, patch;
28905
28906         version = db_version( &major, &minor, &patch );
28907
28908         if( major != DB_VERSION_MAJOR ||
28909                 minor != DB_VERSION_MINOR ||
28910                 patch != DB_VERSION_PATCH )
28911         {
28912                 printf("Berkeley DB version mismatch\n"
28913                         "\theader: %s\n\tlibrary: %s\n",
28914                         DB_VERSION_STRING, version);
28915                 return 1;
28916         }
28917 #endif
28918
28919         return 0;
28920 }
28921 _ACEOF
28922 rm -f conftest$ac_exeext
28923 if { (ac_try="$ac_link"
28924 case "(($ac_try" in
28925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926   *) ac_try_echo=$ac_try;;
28927 esac
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929   (eval "$ac_link") 2>&5
28930   ac_status=$?
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28933   { (case "(($ac_try" in
28934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935   *) ac_try_echo=$ac_try;;
28936 esac
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938   (eval "$ac_try") 2>&5
28939   ac_status=$?
28940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941   (exit $ac_status); }; }; then
28942   ol_cv_berkeley_db_version=yes
28943 else
28944   echo "$as_me: program exited with status $ac_status" >&5
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ( exit $ac_status )
28949 ol_cv_berkeley_db_version=no
28950 fi
28951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28952 fi
28953
28954
28955
28956         LIBS="$ol_LIBS"
28957
28958 fi
28959 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28960 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28961
28962         if test $ol_cv_berkeley_db_version = no ; then
28963                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28964 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28965    { (exit 1); exit 1; }; }
28966         fi
28967
28968                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28969 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28970 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28971   echo $ECHO_N "(cached) $ECHO_C" >&6
28972 else
28973
28974         ol_LIBS="$LIBS"
28975         LIBS="$LTHREAD_LIBS $LIBS"
28976         if test $ol_cv_lib_db != yes ; then
28977                 LIBS="$ol_cv_lib_db $LIBS"
28978         fi
28979
28980         if test "$cross_compiling" = yes; then
28981   ol_cv_berkeley_db_thread=cross
28982 else
28983   cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990 #ifdef HAVE_DB_185_H
28991         choke me;
28992 #else
28993 #include <db.h>
28994 #endif
28995 #ifndef NULL
28996 #define NULL ((void *)0)
28997 #endif
28998 main()
28999 {
29000         int rc;
29001         u_int32_t flags = DB_CREATE |
29002 #ifdef DB_PRIVATE
29003                 DB_PRIVATE |
29004 #endif
29005                 DB_THREAD;
29006
29007 #if DB_VERSION_MAJOR > 2
29008         DB_ENV *env = NULL;
29009
29010         rc = db_env_create( &env, 0 );
29011
29012         flags |= DB_INIT_MPOOL;
29013 #ifdef DB_MPOOL_PRIVATE
29014         flags |= DB_MPOOL_PRIVATE;
29015 #endif
29016
29017         if( rc ) {
29018                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29019                 return rc;
29020         }
29021
29022 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29023         rc = (env->open)( env, NULL, flags, 0 );
29024 #else
29025         rc = (env->open)( env, NULL, NULL, flags, 0 );
29026 #endif
29027
29028         if ( rc == 0 ) {
29029                 rc = env->close( env, 0 );
29030         }
29031
29032         if( rc ) {
29033                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29034                 return rc;
29035         }
29036
29037 #else
29038         DB_ENV env;
29039         memset( &env, '\0', sizeof(env) );
29040
29041         rc = db_appinit( NULL, NULL, &env, flags );
29042
29043         if( rc == 0 ) {
29044                 db_appexit( &env );
29045         }
29046
29047         unlink("__db_mpool.share");
29048         unlink("__db_lock.share");
29049 #endif
29050
29051         return rc;
29052 }
29053 _ACEOF
29054 rm -f conftest$ac_exeext
29055 if { (ac_try="$ac_link"
29056 case "(($ac_try" in
29057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058   *) ac_try_echo=$ac_try;;
29059 esac
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061   (eval "$ac_link") 2>&5
29062   ac_status=$?
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29065   { (case "(($ac_try" in
29066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067   *) ac_try_echo=$ac_try;;
29068 esac
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070   (eval "$ac_try") 2>&5
29071   ac_status=$?
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); }; }; then
29074   ol_cv_berkeley_db_thread=yes
29075 else
29076   echo "$as_me: program exited with status $ac_status" >&5
29077 echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29079
29080 ( exit $ac_status )
29081 ol_cv_berkeley_db_thread=no
29082 fi
29083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29084 fi
29085
29086
29087
29088         LIBS="$ol_LIBS"
29089
29090 fi
29091 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29092 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29093
29094         if test $ol_cv_berkeley_db_thread != no ; then
29095
29096 cat >>confdefs.h <<\_ACEOF
29097 #define HAVE_BERKELEY_DB_THREAD 1
29098 _ACEOF
29099
29100         fi
29101
29102         fi
29103 fi
29104
29105
29106         if test $ol_cv_berkeley_db = no ; then
29107                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29108 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29109    { (exit 1); exit 1; }; }
29110         fi
29111
29112
29113 cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_BERKELEY_DB 1
29115 _ACEOF
29116
29117
29118                         if test $ol_cv_lib_db != yes ; then
29119                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29120         fi
29121
29122         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29123
29124         ol_link_bdb=yes
29125 fi
29126
29127
29128 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29129         BUILD_LIBS_DYNAMIC=shared
29130
29131 cat >>confdefs.h <<\_ACEOF
29132 #define LDAP_LIBS_DYNAMIC 1
29133 _ACEOF
29134
29135         LTSTATIC=""
29136 else
29137         BUILD_LIBS_DYNAMIC=static
29138         LTSTATIC="-static"
29139 fi
29140
29141 if test $ol_enable_wrappers != no ; then
29142
29143 for ac_header in tcpd.h
29144 do
29145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150   echo $ECHO_N "(cached) $ECHO_C" >&6
29151 fi
29152 ac_res=`eval echo '${'$as_ac_Header'}'`
29153                { echo "$as_me:$LINENO: result: $ac_res" >&5
29154 echo "${ECHO_T}$ac_res" >&6; }
29155 else
29156   # Is the header compilable?
29157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29159 cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165 $ac_includes_default
29166 #include <$ac_header>
29167 _ACEOF
29168 rm -f conftest.$ac_objext
29169 if { (ac_try="$ac_compile"
29170 case "(($ac_try" in
29171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172   *) ac_try_echo=$ac_try;;
29173 esac
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175   (eval "$ac_compile") 2>conftest.er1
29176   ac_status=$?
29177   grep -v '^ *+' conftest.er1 >conftest.err
29178   rm -f conftest.er1
29179   cat conftest.err >&5
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); } && {
29182          test -z "$ac_c_werror_flag" ||
29183          test ! -s conftest.err
29184        } && test -s conftest.$ac_objext; then
29185   ac_header_compiler=yes
29186 else
29187   echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190         ac_header_compiler=no
29191 fi
29192
29193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29195 echo "${ECHO_T}$ac_header_compiler" >&6; }
29196
29197 # Is the header present?
29198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29200 cat >conftest.$ac_ext <<_ACEOF
29201 /* confdefs.h.  */
29202 _ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h.  */
29206 #include <$ac_header>
29207 _ACEOF
29208 if { (ac_try="$ac_cpp conftest.$ac_ext"
29209 case "(($ac_try" in
29210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211   *) ac_try_echo=$ac_try;;
29212 esac
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29215   ac_status=$?
29216   grep -v '^ *+' conftest.er1 >conftest.err
29217   rm -f conftest.er1
29218   cat conftest.err >&5
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); } >/dev/null && {
29221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29222          test ! -s conftest.err
29223        }; then
29224   ac_header_preproc=yes
29225 else
29226   echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29228
29229   ac_header_preproc=no
29230 fi
29231
29232 rm -f conftest.err conftest.$ac_ext
29233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29234 echo "${ECHO_T}$ac_header_preproc" >&6; }
29235
29236 # So?  What about this header?
29237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29238   yes:no: )
29239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29243     ac_header_preproc=yes
29244     ;;
29245   no:yes:* )
29246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29258     ( cat <<\_ASBOX
29259 ## --------------------------------------------- ##
29260 ## Report this to <http://www.openldap.org/its/> ##
29261 ## --------------------------------------------- ##
29262 _ASBOX
29263      ) | sed "s/^/$as_me: WARNING:     /" >&2
29264     ;;
29265 esac
29266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29269   echo $ECHO_N "(cached) $ECHO_C" >&6
29270 else
29271   eval "$as_ac_Header=\$ac_header_preproc"
29272 fi
29273 ac_res=`eval echo '${'$as_ac_Header'}'`
29274                { echo "$as_me:$LINENO: result: $ac_res" >&5
29275 echo "${ECHO_T}$ac_res" >&6; }
29276
29277 fi
29278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29279   cat >>confdefs.h <<_ACEOF
29280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29281 _ACEOF
29282
29283                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29284 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29285                 save_LIBS="$LIBS"
29286                 LIBS="$LIBS -lwrap"
29287                 cat >conftest.$ac_ext <<_ACEOF
29288 /* confdefs.h.  */
29289 _ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h.  */
29293
29294 #include <tcpd.h>
29295 int allow_severity = 0;
29296 int deny_severity  = 0;
29297
29298 struct request_info *req;
29299
29300 int
29301 main ()
29302 {
29303
29304 hosts_access(req)
29305
29306   ;
29307   return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext conftest$ac_exeext
29311 if { (ac_try="$ac_link"
29312 case "(($ac_try" in
29313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314   *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317   (eval "$ac_link") 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } && {
29324          test -z "$ac_c_werror_flag" ||
29325          test ! -s conftest.err
29326        } && test -s conftest$ac_exeext &&
29327        $as_test_x conftest$ac_exeext; then
29328   { echo "$as_me:$LINENO: result: -lwrap" >&5
29329 echo "${ECHO_T}-lwrap" >&6; }
29330                 have_wrappers=yes
29331                 LIBS="$save_LIBS"
29332 else
29333   echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29335
29336
29337                                 LIBS="$LIBS -lnsl"
29338                 cat >conftest.$ac_ext <<_ACEOF
29339 /* confdefs.h.  */
29340 _ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h.  */
29344
29345 #include <tcpd.h>
29346 int allow_severity = 0;
29347 int deny_severity  = 0;
29348
29349 struct request_info *req;
29350
29351 int
29352 main ()
29353 {
29354
29355 hosts_access(req)
29356
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 rm -f conftest.$ac_objext conftest$ac_exeext
29362 if { (ac_try="$ac_link"
29363 case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368   (eval "$ac_link") 2>conftest.er1
29369   ac_status=$?
29370   grep -v '^ *+' conftest.er1 >conftest.err
29371   rm -f conftest.er1
29372   cat conftest.err >&5
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); } && {
29375          test -z "$ac_c_werror_flag" ||
29376          test ! -s conftest.err
29377        } && test -s conftest$ac_exeext &&
29378        $as_test_x conftest$ac_exeext; then
29379   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29380 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29381                 have_wrappers=yes
29382                 LIBS="$save_LIBS -lnsl"
29383 else
29384   echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29386
29387
29388                 { echo "$as_me:$LINENO: result: no" >&5
29389 echo "${ECHO_T}no" >&6; }
29390                 have_wrappers=no
29391                 LIBS=$save_LIBS
29392 fi
29393
29394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29395       conftest$ac_exeext conftest.$ac_ext
29396 fi
29397
29398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29399       conftest$ac_exeext conftest.$ac_ext
29400 else
29401   have_wrappers=no
29402 fi
29403
29404 done
29405
29406
29407         if test $have_wrappers = yes ; then
29408
29409 cat >>confdefs.h <<\_ACEOF
29410 #define HAVE_TCPD 1
29411 _ACEOF
29412
29413                 WRAP_LIBS="-lwrap"
29414         elif test $ol_enable_wrappers = yes ; then
29415                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29416 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29417    { (exit 1); exit 1; }; }
29418         else
29419                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29420 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29421                 WRAP_LIBS=""
29422         fi
29423 fi
29424
29425 if test $ol_enable_syslog != no ; then
29426         { echo "$as_me:$LINENO: checking for openlog" >&5
29427 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29428 if test "${ac_cv_func_openlog+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
29431   cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29439 #define openlog innocuous_openlog
29440
29441 /* System header to define __stub macros and hopefully few prototypes,
29442     which can conflict with char openlog (); below.
29443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29444     <limits.h> exists even on freestanding compilers.  */
29445
29446 #ifdef __STDC__
29447 # include <limits.h>
29448 #else
29449 # include <assert.h>
29450 #endif
29451
29452 #undef openlog
29453
29454 /* Override any GCC internal prototype to avoid an error.
29455    Use char because int might match the return type of a GCC
29456    builtin and then its argument prototype would still apply.  */
29457 #ifdef __cplusplus
29458 extern "C"
29459 #endif
29460 char openlog ();
29461 /* The GNU C library defines this for functions which it implements
29462     to always fail with ENOSYS.  Some functions are actually named
29463     something starting with __ and the normal name is an alias.  */
29464 #if defined __stub_openlog || defined __stub___openlog
29465 choke me
29466 #endif
29467
29468 int
29469 main ()
29470 {
29471 return openlog ();
29472   ;
29473   return 0;
29474 }
29475 _ACEOF
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (ac_try="$ac_link"
29478 case "(($ac_try" in
29479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480   *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483   (eval "$ac_link") 2>conftest.er1
29484   ac_status=$?
29485   grep -v '^ *+' conftest.er1 >conftest.err
29486   rm -f conftest.er1
29487   cat conftest.err >&5
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } && {
29490          test -z "$ac_c_werror_flag" ||
29491          test ! -s conftest.err
29492        } && test -s conftest$ac_exeext &&
29493        $as_test_x conftest$ac_exeext; then
29494   ac_cv_func_openlog=yes
29495 else
29496   echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29498
29499         ac_cv_func_openlog=no
29500 fi
29501
29502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29503       conftest$ac_exeext conftest.$ac_ext
29504 fi
29505 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29506 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29507
29508         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29509                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29510 echo "$as_me: error: could not find syslog" >&2;}
29511    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29512         fi
29513         ol_enable_syslog=$ac_cv_func_openlog
29514 fi
29515
29516 ol_link_sql=no
29517 if test $ol_enable_sql != no ; then
29518
29519
29520 for ac_header in sql.h sqlext.h
29521 do
29522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29527   echo $ECHO_N "(cached) $ECHO_C" >&6
29528 fi
29529 ac_res=`eval echo '${'$as_ac_Header'}'`
29530                { echo "$as_me:$LINENO: result: $ac_res" >&5
29531 echo "${ECHO_T}$ac_res" >&6; }
29532 else
29533   # Is the header compilable?
29534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29536 cat >conftest.$ac_ext <<_ACEOF
29537 /* confdefs.h.  */
29538 _ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h.  */
29542 $ac_includes_default
29543 #include <$ac_header>
29544 _ACEOF
29545 rm -f conftest.$ac_objext
29546 if { (ac_try="$ac_compile"
29547 case "(($ac_try" in
29548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549   *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552   (eval "$ac_compile") 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } && {
29559          test -z "$ac_c_werror_flag" ||
29560          test ! -s conftest.err
29561        } && test -s conftest.$ac_objext; then
29562   ac_header_compiler=yes
29563 else
29564   echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29566
29567         ac_header_compiler=no
29568 fi
29569
29570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29572 echo "${ECHO_T}$ac_header_compiler" >&6; }
29573
29574 # Is the header present?
29575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29577 cat >conftest.$ac_ext <<_ACEOF
29578 /* confdefs.h.  */
29579 _ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h.  */
29583 #include <$ac_header>
29584 _ACEOF
29585 if { (ac_try="$ac_cpp conftest.$ac_ext"
29586 case "(($ac_try" in
29587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29588   *) ac_try_echo=$ac_try;;
29589 esac
29590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29592   ac_status=$?
29593   grep -v '^ *+' conftest.er1 >conftest.err
29594   rm -f conftest.er1
29595   cat conftest.err >&5
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); } >/dev/null && {
29598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29599          test ! -s conftest.err
29600        }; then
29601   ac_header_preproc=yes
29602 else
29603   echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29605
29606   ac_header_preproc=no
29607 fi
29608
29609 rm -f conftest.err conftest.$ac_ext
29610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29611 echo "${ECHO_T}$ac_header_preproc" >&6; }
29612
29613 # So?  What about this header?
29614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29615   yes:no: )
29616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29620     ac_header_preproc=yes
29621     ;;
29622   no:yes:* )
29623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29635     ( cat <<\_ASBOX
29636 ## --------------------------------------------- ##
29637 ## Report this to <http://www.openldap.org/its/> ##
29638 ## --------------------------------------------- ##
29639 _ASBOX
29640      ) | sed "s/^/$as_me: WARNING:     /" >&2
29641     ;;
29642 esac
29643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29646   echo $ECHO_N "(cached) $ECHO_C" >&6
29647 else
29648   eval "$as_ac_Header=\$ac_header_preproc"
29649 fi
29650 ac_res=`eval echo '${'$as_ac_Header'}'`
29651                { echo "$as_me:$LINENO: result: $ac_res" >&5
29652 echo "${ECHO_T}$ac_res" >&6; }
29653
29654 fi
29655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29656   cat >>confdefs.h <<_ACEOF
29657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29658 _ACEOF
29659
29660 else
29661
29662                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29663 echo "$as_me: error: could not locate SQL headers" >&2;}
29664    { (exit 1); exit 1; }; }
29665
29666 fi
29667
29668 done
29669
29670
29671         sql_LIBS="$LIBS"
29672         LIBS="$LTHREAD_LIBS"
29673
29674         if test $ol_with_odbc = auto ; then
29675                 ol_with_odbc="iodbc unixodbc odbc32"
29676         fi
29677
29678         for odbc in $ol_with_odbc ; do
29679                 if test $ol_link_sql = no ; then
29680                         case $odbc in
29681                         iodbc)
29682                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29683 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29684 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   ac_check_lib_save_LIBS=$LIBS
29688 LIBS="-liodbc  $LIBS"
29689 cat >conftest.$ac_ext <<_ACEOF
29690 /* confdefs.h.  */
29691 _ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h.  */
29695
29696 /* Override any GCC internal prototype to avoid an error.
29697    Use char because int might match the return type of a GCC
29698    builtin and then its argument prototype would still apply.  */
29699 #ifdef __cplusplus
29700 extern "C"
29701 #endif
29702 char SQLDriverConnect ();
29703 int
29704 main ()
29705 {
29706 return SQLDriverConnect ();
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (ac_try="$ac_link"
29713 case "(($ac_try" in
29714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715   *) ac_try_echo=$ac_try;;
29716 esac
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718   (eval "$ac_link") 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } && {
29725          test -z "$ac_c_werror_flag" ||
29726          test ! -s conftest.err
29727        } && test -s conftest$ac_exeext &&
29728        $as_test_x conftest$ac_exeext; then
29729   ac_cv_lib_iodbc_SQLDriverConnect=yes
29730 else
29731   echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29733
29734         ac_cv_lib_iodbc_SQLDriverConnect=no
29735 fi
29736
29737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29738       conftest$ac_exeext conftest.$ac_ext
29739 LIBS=$ac_check_lib_save_LIBS
29740 fi
29741 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29742 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29743 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29744   have_iodbc=yes
29745 else
29746   have_iodbc=no
29747 fi
29748
29749                                 if test $have_iodbc = yes ; then
29750                                         ol_link_sql="-liodbc"
29751                                 fi
29752                                 ;;
29753
29754                         unixodbc)
29755                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29756 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29757 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760   ac_check_lib_save_LIBS=$LIBS
29761 LIBS="-lodbc  $LIBS"
29762 cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h.  */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h.  */
29768
29769 /* Override any GCC internal prototype to avoid an error.
29770    Use char because int might match the return type of a GCC
29771    builtin and then its argument prototype would still apply.  */
29772 #ifdef __cplusplus
29773 extern "C"
29774 #endif
29775 char SQLDriverConnect ();
29776 int
29777 main ()
29778 {
29779 return SQLDriverConnect ();
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (ac_try="$ac_link"
29786 case "(($ac_try" in
29787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788   *) ac_try_echo=$ac_try;;
29789 esac
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791   (eval "$ac_link") 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } && {
29798          test -z "$ac_c_werror_flag" ||
29799          test ! -s conftest.err
29800        } && test -s conftest$ac_exeext &&
29801        $as_test_x conftest$ac_exeext; then
29802   ac_cv_lib_odbc_SQLDriverConnect=yes
29803 else
29804   echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807         ac_cv_lib_odbc_SQLDriverConnect=no
29808 fi
29809
29810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29811       conftest$ac_exeext conftest.$ac_ext
29812 LIBS=$ac_check_lib_save_LIBS
29813 fi
29814 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29815 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29816 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29817   have_odbc=yes
29818 else
29819   have_odbc=no
29820 fi
29821
29822                                 if test $have_odbc = yes ; then
29823                                         ol_link_sql="-lodbc"
29824                                 fi
29825                                 ;;
29826
29827                         odbc32)
29828                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29829 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29830 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29831   echo $ECHO_N "(cached) $ECHO_C" >&6
29832 else
29833   ac_check_lib_save_LIBS=$LIBS
29834 LIBS="-lodbc32  $LIBS"
29835 cat >conftest.$ac_ext <<_ACEOF
29836 /* confdefs.h.  */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h.  */
29841
29842 /* Override any GCC internal prototype to avoid an error.
29843    Use char because int might match the return type of a GCC
29844    builtin and then its argument prototype would still apply.  */
29845 #ifdef __cplusplus
29846 extern "C"
29847 #endif
29848 char SQLDriverConnect ();
29849 int
29850 main ()
29851 {
29852 return SQLDriverConnect ();
29853   ;
29854   return 0;
29855 }
29856 _ACEOF
29857 rm -f conftest.$ac_objext conftest$ac_exeext
29858 if { (ac_try="$ac_link"
29859 case "(($ac_try" in
29860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861   *) ac_try_echo=$ac_try;;
29862 esac
29863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864   (eval "$ac_link") 2>conftest.er1
29865   ac_status=$?
29866   grep -v '^ *+' conftest.er1 >conftest.err
29867   rm -f conftest.er1
29868   cat conftest.err >&5
29869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870   (exit $ac_status); } && {
29871          test -z "$ac_c_werror_flag" ||
29872          test ! -s conftest.err
29873        } && test -s conftest$ac_exeext &&
29874        $as_test_x conftest$ac_exeext; then
29875   ac_cv_lib_odbc32_SQLDriverConnect=yes
29876 else
29877   echo "$as_me: failed program was:" >&5
29878 sed 's/^/| /' conftest.$ac_ext >&5
29879
29880         ac_cv_lib_odbc32_SQLDriverConnect=no
29881 fi
29882
29883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29884       conftest$ac_exeext conftest.$ac_ext
29885 LIBS=$ac_check_lib_save_LIBS
29886 fi
29887 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29888 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29889 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29890   have_odbc32=yes
29891 else
29892   have_odbc32=no
29893 fi
29894
29895                                 if test $have_odbc32 = yes ; then
29896                                         ol_link_sql="-lodbc32"
29897                                 fi
29898                                 ;;
29899
29900                         *)
29901                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29902 echo "$as_me: error: unknown ODBC library" >&2;}
29903    { (exit 1); exit 1; }; }
29904                                 ;;
29905                         esac
29906                 fi
29907         done
29908
29909         LIBS="$sql_LIBS"
29910
29911         if test $ol_link_sql != no ; then
29912                 SLAPD_SQL_LIBS="$ol_link_sql"
29913
29914         elif test $ol_enable_sql != auto ; then
29915                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29916 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29917    { (exit 1); exit 1; }; }
29918         fi
29919 fi
29920
29921 ol_link_ndb=no
29922 if test $ol_enable_ndb != no ; then
29923         # Extract the first word of "mysql_config", so it can be a program name with args.
29924 set dummy mysql_config; ac_word=$2
29925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29927 if test "${ac_cv_prog_MYSQL+set}" = set; then
29928   echo $ECHO_N "(cached) $ECHO_C" >&6
29929 else
29930   if test -n "$MYSQL"; then
29931   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29932 else
29933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29934 for as_dir in $PATH
29935 do
29936   IFS=$as_save_IFS
29937   test -z "$as_dir" && as_dir=.
29938   for ac_exec_ext in '' $ac_executable_extensions; do
29939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29940     ac_cv_prog_MYSQL="yes"
29941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29942     break 2
29943   fi
29944 done
29945 done
29946 IFS=$as_save_IFS
29947
29948 fi
29949 fi
29950 MYSQL=$ac_cv_prog_MYSQL
29951 if test -n "$MYSQL"; then
29952   { echo "$as_me:$LINENO: result: $MYSQL" >&5
29953 echo "${ECHO_T}$MYSQL" >&6; }
29954 else
29955   { echo "$as_me:$LINENO: result: no" >&5
29956 echo "${ECHO_T}no" >&6; }
29957 fi
29958
29959
29960         if test "$MYSQL" != yes ; then
29961                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29962 echo "$as_me: error: could not locate mysql_config" >&2;}
29963    { (exit 1); exit 1; }; }
29964         fi
29965
29966         SQL_INC=`mysql_config --include`
29967         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29968
29969         save_CPPFLAGS="$CPPFLAGS"
29970         CPPFLAGS="$SLAPD_NDB_INCS"
29971         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29972 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29973         cat >conftest.$ac_ext <<_ACEOF
29974 /* confdefs.h.  */
29975 _ACEOF
29976 cat confdefs.h >>conftest.$ac_ext
29977 cat >>conftest.$ac_ext <<_ACEOF
29978 /* end confdefs.h.  */
29979 #include <NdbApi.hpp>
29980 _ACEOF
29981 if { (ac_try="$ac_cpp conftest.$ac_ext"
29982 case "(($ac_try" in
29983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984   *) ac_try_echo=$ac_try;;
29985 esac
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29988   ac_status=$?
29989   grep -v '^ *+' conftest.er1 >conftest.err
29990   rm -f conftest.er1
29991   cat conftest.err >&5
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } >/dev/null && {
29994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29995          test ! -s conftest.err
29996        }; then
29997   { echo "$as_me:$LINENO: result: yes" >&5
29998 echo "${ECHO_T}yes" >&6; }
29999 else
30000   echo "$as_me: failed program was:" >&5
30001 sed 's/^/| /' conftest.$ac_ext >&5
30002
30003   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30004 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30005    { (exit 1); exit 1; }; }
30006
30007 fi
30008
30009 rm -f conftest.err conftest.$ac_ext
30010         CPPFLAGS="$save_CPPFLAGS"
30011
30012         SQL_LIB=`mysql_config --libs_r`
30013         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30014
30015         save_LDFLAGS="$LDFLAGS"
30016         save_LIBS="$LIBS"
30017         LDFLAGS="$SQL_LIB"
30018         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30019 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30020 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30021   echo $ECHO_N "(cached) $ECHO_C" >&6
30022 else
30023   ac_check_lib_save_LIBS=$LIBS
30024 LIBS="-lndbclient -lstdc++ $LIBS"
30025 cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031
30032 /* Override any GCC internal prototype to avoid an error.
30033    Use char because int might match the return type of a GCC
30034    builtin and then its argument prototype would still apply.  */
30035 #ifdef __cplusplus
30036 extern "C"
30037 #endif
30038 char ndb_init ();
30039 int
30040 main ()
30041 {
30042 return ndb_init ();
30043   ;
30044   return 0;
30045 }
30046 _ACEOF
30047 rm -f conftest.$ac_objext conftest$ac_exeext
30048 if { (ac_try="$ac_link"
30049 case "(($ac_try" in
30050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051   *) ac_try_echo=$ac_try;;
30052 esac
30053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054   (eval "$ac_link") 2>conftest.er1
30055   ac_status=$?
30056   grep -v '^ *+' conftest.er1 >conftest.err
30057   rm -f conftest.er1
30058   cat conftest.err >&5
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); } && {
30061          test -z "$ac_c_werror_flag" ||
30062          test ! -s conftest.err
30063        } && test -s conftest$ac_exeext &&
30064        $as_test_x conftest$ac_exeext; then
30065   ac_cv_lib_ndbclient_ndb_init=yes
30066 else
30067   echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30069
30070         ac_cv_lib_ndbclient_ndb_init=no
30071 fi
30072
30073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30074       conftest$ac_exeext conftest.$ac_ext
30075 LIBS=$ac_check_lib_save_LIBS
30076 fi
30077 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30078 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30079 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30080   : ok
30081 else
30082
30083                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30084 echo "$as_me: error: could not locate ndbclient library" >&2;}
30085    { (exit 1); exit 1; }; }
30086
30087 fi
30088
30089         LIBS="$save_LIBS"
30090         LDFLAGS="$save_LDFLAGS"
30091
30092         if test "$ol_enable_ndb" = yes ; then
30093                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30094         fi
30095 fi
30096
30097 ol_icu=no
30098
30099 for ac_header in unicode/utypes.h
30100 do
30101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30106   echo $ECHO_N "(cached) $ECHO_C" >&6
30107 fi
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109                { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30111 else
30112   # Is the header compilable?
30113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30115 cat >conftest.$ac_ext <<_ACEOF
30116 /* confdefs.h.  */
30117 _ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h.  */
30121 $ac_includes_default
30122 #include <$ac_header>
30123 _ACEOF
30124 rm -f conftest.$ac_objext
30125 if { (ac_try="$ac_compile"
30126 case "(($ac_try" in
30127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128   *) ac_try_echo=$ac_try;;
30129 esac
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131   (eval "$ac_compile") 2>conftest.er1
30132   ac_status=$?
30133   grep -v '^ *+' conftest.er1 >conftest.err
30134   rm -f conftest.er1
30135   cat conftest.err >&5
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); } && {
30138          test -z "$ac_c_werror_flag" ||
30139          test ! -s conftest.err
30140        } && test -s conftest.$ac_objext; then
30141   ac_header_compiler=yes
30142 else
30143   echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30145
30146         ac_header_compiler=no
30147 fi
30148
30149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30151 echo "${ECHO_T}$ac_header_compiler" >&6; }
30152
30153 # Is the header present?
30154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30156 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h.  */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h.  */
30162 #include <$ac_header>
30163 _ACEOF
30164 if { (ac_try="$ac_cpp conftest.$ac_ext"
30165 case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30171   ac_status=$?
30172   grep -v '^ *+' conftest.er1 >conftest.err
30173   rm -f conftest.er1
30174   cat conftest.err >&5
30175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176   (exit $ac_status); } >/dev/null && {
30177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30178          test ! -s conftest.err
30179        }; then
30180   ac_header_preproc=yes
30181 else
30182   echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30184
30185   ac_header_preproc=no
30186 fi
30187
30188 rm -f conftest.err conftest.$ac_ext
30189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30190 echo "${ECHO_T}$ac_header_preproc" >&6; }
30191
30192 # So?  What about this header?
30193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30194   yes:no: )
30195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30199     ac_header_preproc=yes
30200     ;;
30201   no:yes:* )
30202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30214     ( cat <<\_ASBOX
30215 ## --------------------------------------------- ##
30216 ## Report this to <http://www.openldap.org/its/> ##
30217 ## --------------------------------------------- ##
30218 _ASBOX
30219      ) | sed "s/^/$as_me: WARNING:     /" >&2
30220     ;;
30221 esac
30222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30225   echo $ECHO_N "(cached) $ECHO_C" >&6
30226 else
30227   eval "$as_ac_Header=\$ac_header_preproc"
30228 fi
30229 ac_res=`eval echo '${'$as_ac_Header'}'`
30230                { echo "$as_me:$LINENO: result: $ac_res" >&5
30231 echo "${ECHO_T}$ac_res" >&6; }
30232
30233 fi
30234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30235   cat >>confdefs.h <<_ACEOF
30236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30237 _ACEOF
30238
30239 fi
30240
30241 done
30242
30243 if test $ac_cv_header_unicode_utypes_h = yes ; then
30244                 OL_ICULIBS="-licuuc -licudata"
30245
30246         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30247 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30248 if test "${ol_cv_lib_icu+set}" = set; then
30249   echo $ECHO_N "(cached) $ECHO_C" >&6
30250 else
30251
30252                 ol_LIBS="$LIBS"
30253                 LIBS="$OL_ICULIBS $LIBS"
30254                 cat >conftest.$ac_ext <<_ACEOF
30255 /* confdefs.h.  */
30256 _ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h.  */
30260
30261 #include <unicode/utypes.h>
30262
30263 int
30264 main ()
30265 {
30266
30267 (void) u_errorName(0);
30268
30269   ;
30270   return 0;
30271 }
30272 _ACEOF
30273 rm -f conftest.$ac_objext conftest$ac_exeext
30274 if { (ac_try="$ac_link"
30275 case "(($ac_try" in
30276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277   *) ac_try_echo=$ac_try;;
30278 esac
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280   (eval "$ac_link") 2>conftest.er1
30281   ac_status=$?
30282   grep -v '^ *+' conftest.er1 >conftest.err
30283   rm -f conftest.er1
30284   cat conftest.err >&5
30285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286   (exit $ac_status); } && {
30287          test -z "$ac_c_werror_flag" ||
30288          test ! -s conftest.err
30289        } && test -s conftest$ac_exeext &&
30290        $as_test_x conftest$ac_exeext; then
30291   ol_cv_lib_icu=yes
30292 else
30293   echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30295
30296         ol_cv_lib_icu=no
30297 fi
30298
30299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30300       conftest$ac_exeext conftest.$ac_ext
30301                 LIBS="$ol_LIBS"
30302
30303 fi
30304 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30305 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30306
30307         if test $ol_cv_lib_icu != no ; then
30308                 ol_icu="$OL_ICULIBS"
30309
30310 cat >>confdefs.h <<\_ACEOF
30311 #define HAVE_ICU 1
30312 _ACEOF
30313
30314         fi
30315 fi
30316
30317 if test "$ol_icu" = no ; then
30318         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30319 echo "$as_me: WARNING: ICU not available" >&2;}
30320 else
30321         ICU_LIBS="$ol_icu"
30322 fi
30323 WITH_SASL=no
30324 ol_link_sasl=no
30325 ol_link_spasswd=no
30326 if test $ol_with_cyrus_sasl != no ; then
30327
30328
30329 for ac_header in sasl/sasl.h sasl.h
30330 do
30331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30333   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30336   echo $ECHO_N "(cached) $ECHO_C" >&6
30337 fi
30338 ac_res=`eval echo '${'$as_ac_Header'}'`
30339                { echo "$as_me:$LINENO: result: $ac_res" >&5
30340 echo "${ECHO_T}$ac_res" >&6; }
30341 else
30342   # Is the header compilable?
30343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30345 cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h.  */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h.  */
30351 $ac_includes_default
30352 #include <$ac_header>
30353 _ACEOF
30354 rm -f conftest.$ac_objext
30355 if { (ac_try="$ac_compile"
30356 case "(($ac_try" in
30357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358   *) ac_try_echo=$ac_try;;
30359 esac
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361   (eval "$ac_compile") 2>conftest.er1
30362   ac_status=$?
30363   grep -v '^ *+' conftest.er1 >conftest.err
30364   rm -f conftest.er1
30365   cat conftest.err >&5
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); } && {
30368          test -z "$ac_c_werror_flag" ||
30369          test ! -s conftest.err
30370        } && test -s conftest.$ac_objext; then
30371   ac_header_compiler=yes
30372 else
30373   echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30375
30376         ac_header_compiler=no
30377 fi
30378
30379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30381 echo "${ECHO_T}$ac_header_compiler" >&6; }
30382
30383 # Is the header present?
30384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30386 cat >conftest.$ac_ext <<_ACEOF
30387 /* confdefs.h.  */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h.  */
30392 #include <$ac_header>
30393 _ACEOF
30394 if { (ac_try="$ac_cpp conftest.$ac_ext"
30395 case "(($ac_try" in
30396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30397   *) ac_try_echo=$ac_try;;
30398 esac
30399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30401   ac_status=$?
30402   grep -v '^ *+' conftest.er1 >conftest.err
30403   rm -f conftest.er1
30404   cat conftest.err >&5
30405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406   (exit $ac_status); } >/dev/null && {
30407          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30408          test ! -s conftest.err
30409        }; then
30410   ac_header_preproc=yes
30411 else
30412   echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30414
30415   ac_header_preproc=no
30416 fi
30417
30418 rm -f conftest.err conftest.$ac_ext
30419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30420 echo "${ECHO_T}$ac_header_preproc" >&6; }
30421
30422 # So?  What about this header?
30423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30424   yes:no: )
30425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30429     ac_header_preproc=yes
30430     ;;
30431   no:yes:* )
30432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30444     ( cat <<\_ASBOX
30445 ## --------------------------------------------- ##
30446 ## Report this to <http://www.openldap.org/its/> ##
30447 ## --------------------------------------------- ##
30448 _ASBOX
30449      ) | sed "s/^/$as_me: WARNING:     /" >&2
30450     ;;
30451 esac
30452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30455   echo $ECHO_N "(cached) $ECHO_C" >&6
30456 else
30457   eval "$as_ac_Header=\$ac_header_preproc"
30458 fi
30459 ac_res=`eval echo '${'$as_ac_Header'}'`
30460                { echo "$as_me:$LINENO: result: $ac_res" >&5
30461 echo "${ECHO_T}$ac_res" >&6; }
30462
30463 fi
30464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30465   cat >>confdefs.h <<_ACEOF
30466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30467 _ACEOF
30468
30469 fi
30470
30471 done
30472
30473
30474         if test $ac_cv_header_sasl_sasl_h = yes ||
30475            test $ac_cv_header_sasl_h = yes; then
30476                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30477 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30478 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30479   echo $ECHO_N "(cached) $ECHO_C" >&6
30480 else
30481   ac_check_lib_save_LIBS=$LIBS
30482 LIBS="-lsasl2  $LIBS"
30483 cat >conftest.$ac_ext <<_ACEOF
30484 /* confdefs.h.  */
30485 _ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h.  */
30489
30490 /* Override any GCC internal prototype to avoid an error.
30491    Use char because int might match the return type of a GCC
30492    builtin and then its argument prototype would still apply.  */
30493 #ifdef __cplusplus
30494 extern "C"
30495 #endif
30496 char sasl_client_init ();
30497 int
30498 main ()
30499 {
30500 return sasl_client_init ();
30501   ;
30502   return 0;
30503 }
30504 _ACEOF
30505 rm -f conftest.$ac_objext conftest$ac_exeext
30506 if { (ac_try="$ac_link"
30507 case "(($ac_try" in
30508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509   *) ac_try_echo=$ac_try;;
30510 esac
30511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512   (eval "$ac_link") 2>conftest.er1
30513   ac_status=$?
30514   grep -v '^ *+' conftest.er1 >conftest.err
30515   rm -f conftest.er1
30516   cat conftest.err >&5
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); } && {
30519          test -z "$ac_c_werror_flag" ||
30520          test ! -s conftest.err
30521        } && test -s conftest$ac_exeext &&
30522        $as_test_x conftest$ac_exeext; then
30523   ac_cv_lib_sasl2_sasl_client_init=yes
30524 else
30525   echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30527
30528         ac_cv_lib_sasl2_sasl_client_init=no
30529 fi
30530
30531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30532       conftest$ac_exeext conftest.$ac_ext
30533 LIBS=$ac_check_lib_save_LIBS
30534 fi
30535 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30536 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30537 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30538   ol_link_sasl="-lsasl2"
30539 else
30540   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30541 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30542 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30543   echo $ECHO_N "(cached) $ECHO_C" >&6
30544 else
30545   ac_check_lib_save_LIBS=$LIBS
30546 LIBS="-lsasl  $LIBS"
30547 cat >conftest.$ac_ext <<_ACEOF
30548 /* confdefs.h.  */
30549 _ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h.  */
30553
30554 /* Override any GCC internal prototype to avoid an error.
30555    Use char because int might match the return type of a GCC
30556    builtin and then its argument prototype would still apply.  */
30557 #ifdef __cplusplus
30558 extern "C"
30559 #endif
30560 char sasl_client_init ();
30561 int
30562 main ()
30563 {
30564 return sasl_client_init ();
30565   ;
30566   return 0;
30567 }
30568 _ACEOF
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (ac_try="$ac_link"
30571 case "(($ac_try" in
30572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573   *) ac_try_echo=$ac_try;;
30574 esac
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576   (eval "$ac_link") 2>conftest.er1
30577   ac_status=$?
30578   grep -v '^ *+' conftest.er1 >conftest.err
30579   rm -f conftest.er1
30580   cat conftest.err >&5
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); } && {
30583          test -z "$ac_c_werror_flag" ||
30584          test ! -s conftest.err
30585        } && test -s conftest$ac_exeext &&
30586        $as_test_x conftest$ac_exeext; then
30587   ac_cv_lib_sasl_sasl_client_init=yes
30588 else
30589   echo "$as_me: failed program was:" >&5
30590 sed 's/^/| /' conftest.$ac_ext >&5
30591
30592         ac_cv_lib_sasl_sasl_client_init=no
30593 fi
30594
30595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30596       conftest$ac_exeext conftest.$ac_ext
30597 LIBS=$ac_check_lib_save_LIBS
30598 fi
30599 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30600 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30601 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30602   ol_link_sasl="-lsasl"
30603 fi
30604
30605 fi
30606
30607         fi
30608
30609         if test $ol_link_sasl = no ; then
30610                 if test $ol_with_cyrus_sasl != auto ; then
30611                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30612 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30613    { (exit 1); exit 1; }; }
30614                 else
30615                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30616 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30617                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30618 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30619                         if test $ol_link_tls = no ; then
30620                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30621 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30622                         fi
30623                 fi
30624         else
30625                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30626 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30627 if test "${ol_cv_sasl_compat+set}" = set; then
30628   echo $ECHO_N "(cached) $ECHO_C" >&6
30629 else
30630
30631         cat >conftest.$ac_ext <<_ACEOF
30632 /* confdefs.h.  */
30633 _ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h.  */
30637
30638 #ifdef HAVE_SASL_SASL_H
30639 #include <sasl/sasl.h>
30640 #else
30641 #include <sasl.h>
30642 #endif
30643
30644 /* Require 2.1.15+ */
30645 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30646         char *__sasl_compat = "2.2+ or better okay (we guess)";
30647 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30648         && SASL_VERSION_STEP >=15
30649         char *__sasl_compat = "2.1.15+ or better okay";
30650 #endif
30651
30652 _ACEOF
30653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30654   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30655   ol_cv_sasl_compat=yes
30656 else
30657   ol_cv_sasl_compat=no
30658 fi
30659 rm -f conftest*
30660
30661 fi
30662 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30663 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30664
30665                 if test $ol_cv_sasl_compat = no ; then
30666                         ol_link_sasl=no
30667                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30668 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30669    { (exit 1); exit 1; }; }
30670                 fi
30671
30672
30673 cat >>confdefs.h <<\_ACEOF
30674 #define HAVE_CYRUS_SASL 1
30675 _ACEOF
30676
30677                 SASL_LIBS="$ol_link_sasl"
30678                 if test $ol_enable_spasswd != no ; then
30679                         ol_link_spasswd=yes
30680                 fi
30681
30682                 ac_save_LIBS="$LIBS"
30683                 LIBS="$LIBS $ol_link_sasl"
30684                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30685 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30686 if test "${ac_cv_func_sasl_version+set}" = set; then
30687   echo $ECHO_N "(cached) $ECHO_C" >&6
30688 else
30689   cat >conftest.$ac_ext <<_ACEOF
30690 /* confdefs.h.  */
30691 _ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h.  */
30695 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30697 #define sasl_version innocuous_sasl_version
30698
30699 /* System header to define __stub macros and hopefully few prototypes,
30700     which can conflict with char sasl_version (); below.
30701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30702     <limits.h> exists even on freestanding compilers.  */
30703
30704 #ifdef __STDC__
30705 # include <limits.h>
30706 #else
30707 # include <assert.h>
30708 #endif
30709
30710 #undef sasl_version
30711
30712 /* Override any GCC internal prototype to avoid an error.
30713    Use char because int might match the return type of a GCC
30714    builtin and then its argument prototype would still apply.  */
30715 #ifdef __cplusplus
30716 extern "C"
30717 #endif
30718 char sasl_version ();
30719 /* The GNU C library defines this for functions which it implements
30720     to always fail with ENOSYS.  Some functions are actually named
30721     something starting with __ and the normal name is an alias.  */
30722 #if defined __stub_sasl_version || defined __stub___sasl_version
30723 choke me
30724 #endif
30725
30726 int
30727 main ()
30728 {
30729 return sasl_version ();
30730   ;
30731   return 0;
30732 }
30733 _ACEOF
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (ac_try="$ac_link"
30736 case "(($ac_try" in
30737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738   *) ac_try_echo=$ac_try;;
30739 esac
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741   (eval "$ac_link") 2>conftest.er1
30742   ac_status=$?
30743   grep -v '^ *+' conftest.er1 >conftest.err
30744   rm -f conftest.er1
30745   cat conftest.err >&5
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } && {
30748          test -z "$ac_c_werror_flag" ||
30749          test ! -s conftest.err
30750        } && test -s conftest$ac_exeext &&
30751        $as_test_x conftest$ac_exeext; then
30752   ac_cv_func_sasl_version=yes
30753 else
30754   echo "$as_me: failed program was:" >&5
30755 sed 's/^/| /' conftest.$ac_ext >&5
30756
30757         ac_cv_func_sasl_version=no
30758 fi
30759
30760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30761       conftest$ac_exeext conftest.$ac_ext
30762 fi
30763 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30764 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30765 if test $ac_cv_func_sasl_version = yes; then
30766
30767 cat >>confdefs.h <<\_ACEOF
30768 #define HAVE_SASL_VERSION 1
30769 _ACEOF
30770
30771 fi
30772
30773                 LIBS="$ac_save_LIBS"
30774
30775                 WITH_SASL=yes
30776         fi
30777
30778 else
30779         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30780 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30781         if test $ol_link_tls = no ; then
30782                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30783 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30784         fi
30785 fi
30786
30787 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30788         dev=no
30789         if test -r /dev/urandom ; then
30790                 dev="/dev/urandom";
30791         elif test -r /idev/urandom ; then
30792                 dev="/idev/urandom";
30793         elif test -r /dev/srandom ; then
30794                 dev="/dev/srandom";
30795         elif test -r /dev/random ; then
30796                 dev="/dev/random";
30797         elif test -r /idev/random ; then
30798                 dev="/idev/random";
30799         fi
30800
30801         if test $dev != no ; then
30802
30803 cat >>confdefs.h <<_ACEOF
30804 #define URANDOM_DEVICE "$dev"
30805 _ACEOF
30806
30807         fi
30808 fi
30809
30810 ol_link_fetch=no
30811 if test $ol_with_fetch != no ; then
30812         ol_LIBS=$LIBS
30813 LIBS="-lfetch -lcom_err $LIBS"
30814 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30815 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30816 if test "${ol_cv_lib_fetch+set}" = set; then
30817   echo $ECHO_N "(cached) $ECHO_C" >&6
30818 else
30819
30820         cat >conftest.$ac_ext <<_ACEOF
30821 /* confdefs.h.  */
30822 _ACEOF
30823 cat confdefs.h >>conftest.$ac_ext
30824 cat >>conftest.$ac_ext <<_ACEOF
30825 /* end confdefs.h.  */
30826
30827 #ifdef HAVE_SYS_PARAM_H
30828 #include <sys/param.h>
30829 #endif
30830 #include <stdio.h>
30831 #include <fetch.h>
30832 int
30833 main ()
30834 {
30835 struct url *u = fetchParseURL("file:///");
30836   ;
30837   return 0;
30838 }
30839 _ACEOF
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844   *) ac_try_echo=$ac_try;;
30845 esac
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847   (eval "$ac_link") 2>conftest.er1
30848   ac_status=$?
30849   grep -v '^ *+' conftest.er1 >conftest.err
30850   rm -f conftest.er1
30851   cat conftest.err >&5
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); } && {
30854          test -z "$ac_c_werror_flag" ||
30855          test ! -s conftest.err
30856        } && test -s conftest$ac_exeext &&
30857        $as_test_x conftest$ac_exeext; then
30858   ol_cv_lib_fetch=yes
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863         ol_cv_lib_fetch=no
30864 fi
30865
30866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30867       conftest$ac_exeext conftest.$ac_ext
30868 fi
30869 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30870 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30871 LIBS=$ol_LIBS
30872 if test $ol_cv_lib_fetch != no ; then
30873         ol_link_fetch="-lfetch -lcom_err"
30874
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_FETCH 1
30877 _ACEOF
30878
30879 fi
30880
30881
30882         if test $ol_cv_lib_fetch != no ; then
30883                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30884                 ol_link_fetch=freebsd
30885
30886         elif test $ol_with_fetch != auto ; then
30887                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30888 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30889    { (exit 1); exit 1; }; }
30890         fi
30891 fi
30892
30893 if test $ol_enable_crypt != no ; then
30894         save_LIBS="$LIBS"
30895         LIBS="$TLS_LIBS $LIBS"
30896
30897         { echo "$as_me:$LINENO: checking for crypt" >&5
30898 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30899 if test "${ac_cv_func_crypt+set}" = set; then
30900   echo $ECHO_N "(cached) $ECHO_C" >&6
30901 else
30902   cat >conftest.$ac_ext <<_ACEOF
30903 /* confdefs.h.  */
30904 _ACEOF
30905 cat confdefs.h >>conftest.$ac_ext
30906 cat >>conftest.$ac_ext <<_ACEOF
30907 /* end confdefs.h.  */
30908 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30910 #define crypt innocuous_crypt
30911
30912 /* System header to define __stub macros and hopefully few prototypes,
30913     which can conflict with char crypt (); below.
30914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30915     <limits.h> exists even on freestanding compilers.  */
30916
30917 #ifdef __STDC__
30918 # include <limits.h>
30919 #else
30920 # include <assert.h>
30921 #endif
30922
30923 #undef crypt
30924
30925 /* Override any GCC internal prototype to avoid an error.
30926    Use char because int might match the return type of a GCC
30927    builtin and then its argument prototype would still apply.  */
30928 #ifdef __cplusplus
30929 extern "C"
30930 #endif
30931 char crypt ();
30932 /* The GNU C library defines this for functions which it implements
30933     to always fail with ENOSYS.  Some functions are actually named
30934     something starting with __ and the normal name is an alias.  */
30935 #if defined __stub_crypt || defined __stub___crypt
30936 choke me
30937 #endif
30938
30939 int
30940 main ()
30941 {
30942 return crypt ();
30943   ;
30944   return 0;
30945 }
30946 _ACEOF
30947 rm -f conftest.$ac_objext conftest$ac_exeext
30948 if { (ac_try="$ac_link"
30949 case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_link") 2>conftest.er1
30955   ac_status=$?
30956   grep -v '^ *+' conftest.er1 >conftest.err
30957   rm -f conftest.er1
30958   cat conftest.err >&5
30959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960   (exit $ac_status); } && {
30961          test -z "$ac_c_werror_flag" ||
30962          test ! -s conftest.err
30963        } && test -s conftest$ac_exeext &&
30964        $as_test_x conftest$ac_exeext; then
30965   ac_cv_func_crypt=yes
30966 else
30967   echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30969
30970         ac_cv_func_crypt=no
30971 fi
30972
30973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30974       conftest$ac_exeext conftest.$ac_ext
30975 fi
30976 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30977 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30978 if test $ac_cv_func_crypt = yes; then
30979   have_crypt=yes
30980 else
30981
30982                 LIBS="$save_LIBS"
30983                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30984 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30985 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30986   echo $ECHO_N "(cached) $ECHO_C" >&6
30987 else
30988   ac_check_lib_save_LIBS=$LIBS
30989 LIBS="-lcrypt  $LIBS"
30990 cat >conftest.$ac_ext <<_ACEOF
30991 /* confdefs.h.  */
30992 _ACEOF
30993 cat confdefs.h >>conftest.$ac_ext
30994 cat >>conftest.$ac_ext <<_ACEOF
30995 /* end confdefs.h.  */
30996
30997 /* Override any GCC internal prototype to avoid an error.
30998    Use char because int might match the return type of a GCC
30999    builtin and then its argument prototype would still apply.  */
31000 #ifdef __cplusplus
31001 extern "C"
31002 #endif
31003 char crypt ();
31004 int
31005 main ()
31006 {
31007 return crypt ();
31008   ;
31009   return 0;
31010 }
31011 _ACEOF
31012 rm -f conftest.$ac_objext conftest$ac_exeext
31013 if { (ac_try="$ac_link"
31014 case "(($ac_try" in
31015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016   *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019   (eval "$ac_link") 2>conftest.er1
31020   ac_status=$?
31021   grep -v '^ *+' conftest.er1 >conftest.err
31022   rm -f conftest.er1
31023   cat conftest.err >&5
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); } && {
31026          test -z "$ac_c_werror_flag" ||
31027          test ! -s conftest.err
31028        } && test -s conftest$ac_exeext &&
31029        $as_test_x conftest$ac_exeext; then
31030   ac_cv_lib_crypt_crypt=yes
31031 else
31032   echo "$as_me: failed program was:" >&5
31033 sed 's/^/| /' conftest.$ac_ext >&5
31034
31035         ac_cv_lib_crypt_crypt=no
31036 fi
31037
31038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31039       conftest$ac_exeext conftest.$ac_ext
31040 LIBS=$ac_check_lib_save_LIBS
31041 fi
31042 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31043 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31044 if test $ac_cv_lib_crypt_crypt = yes; then
31045   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31046                         have_crypt=yes
31047 else
31048   have_crypt=no
31049 fi
31050
31051 fi
31052
31053
31054         LIBS="$save_LIBS"
31055
31056         if test $have_crypt = yes ; then
31057
31058 cat >>confdefs.h <<\_ACEOF
31059 #define HAVE_CRYPT 1
31060 _ACEOF
31061
31062         else
31063                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31064 echo "$as_me: WARNING: could not find crypt" >&2;}
31065                 if test $ol_enable_crypt = yes ; then
31066                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31067 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31068    { (exit 1); exit 1; }; }
31069                 fi
31070
31071                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31072 echo "$as_me: WARNING: disabling crypt support" >&2;}
31073                 ol_enable_crypt=no
31074         fi
31075 fi
31076
31077 if test $ol_enable_proctitle != no ; then
31078         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31079 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31080 if test "${ac_cv_func_setproctitle+set}" = set; then
31081   echo $ECHO_N "(cached) $ECHO_C" >&6
31082 else
31083   cat >conftest.$ac_ext <<_ACEOF
31084 /* confdefs.h.  */
31085 _ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h.  */
31089 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31091 #define setproctitle innocuous_setproctitle
31092
31093 /* System header to define __stub macros and hopefully few prototypes,
31094     which can conflict with char setproctitle (); below.
31095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31096     <limits.h> exists even on freestanding compilers.  */
31097
31098 #ifdef __STDC__
31099 # include <limits.h>
31100 #else
31101 # include <assert.h>
31102 #endif
31103
31104 #undef setproctitle
31105
31106 /* Override any GCC internal prototype to avoid an error.
31107    Use char because int might match the return type of a GCC
31108    builtin and then its argument prototype would still apply.  */
31109 #ifdef __cplusplus
31110 extern "C"
31111 #endif
31112 char setproctitle ();
31113 /* The GNU C library defines this for functions which it implements
31114     to always fail with ENOSYS.  Some functions are actually named
31115     something starting with __ and the normal name is an alias.  */
31116 #if defined __stub_setproctitle || defined __stub___setproctitle
31117 choke me
31118 #endif
31119
31120 int
31121 main ()
31122 {
31123 return setproctitle ();
31124   ;
31125   return 0;
31126 }
31127 _ACEOF
31128 rm -f conftest.$ac_objext conftest$ac_exeext
31129 if { (ac_try="$ac_link"
31130 case "(($ac_try" in
31131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31132   *) ac_try_echo=$ac_try;;
31133 esac
31134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31135   (eval "$ac_link") 2>conftest.er1
31136   ac_status=$?
31137   grep -v '^ *+' conftest.er1 >conftest.err
31138   rm -f conftest.er1
31139   cat conftest.err >&5
31140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141   (exit $ac_status); } && {
31142          test -z "$ac_c_werror_flag" ||
31143          test ! -s conftest.err
31144        } && test -s conftest$ac_exeext &&
31145        $as_test_x conftest$ac_exeext; then
31146   ac_cv_func_setproctitle=yes
31147 else
31148   echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31150
31151         ac_cv_func_setproctitle=no
31152 fi
31153
31154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31155       conftest$ac_exeext conftest.$ac_ext
31156 fi
31157 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31158 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31159 if test $ac_cv_func_setproctitle = yes; then
31160   have_setproctitle=yes
31161 else
31162
31163                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31164 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31165 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31166   echo $ECHO_N "(cached) $ECHO_C" >&6
31167 else
31168   ac_check_lib_save_LIBS=$LIBS
31169 LIBS="-lutil  $LIBS"
31170 cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h.  */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h.  */
31176
31177 /* Override any GCC internal prototype to avoid an error.
31178    Use char because int might match the return type of a GCC
31179    builtin and then its argument prototype would still apply.  */
31180 #ifdef __cplusplus
31181 extern "C"
31182 #endif
31183 char setproctitle ();
31184 int
31185 main ()
31186 {
31187 return setproctitle ();
31188   ;
31189   return 0;
31190 }
31191 _ACEOF
31192 rm -f conftest.$ac_objext conftest$ac_exeext
31193 if { (ac_try="$ac_link"
31194 case "(($ac_try" in
31195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196   *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199   (eval "$ac_link") 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } && {
31206          test -z "$ac_c_werror_flag" ||
31207          test ! -s conftest.err
31208        } && test -s conftest$ac_exeext &&
31209        $as_test_x conftest$ac_exeext; then
31210   ac_cv_lib_util_setproctitle=yes
31211 else
31212   echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31214
31215         ac_cv_lib_util_setproctitle=no
31216 fi
31217
31218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31219       conftest$ac_exeext conftest.$ac_ext
31220 LIBS=$ac_check_lib_save_LIBS
31221 fi
31222 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31223 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31224 if test $ac_cv_lib_util_setproctitle = yes; then
31225   have_setproctitle=yes
31226                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31227 else
31228   have_setproctitle=no
31229                         case " $LIBOBJS " in
31230   *" setproctitle.$ac_objext "* ) ;;
31231   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31232  ;;
31233 esac
31234
31235                         LIBSRCS="$LIBSRCS setproctitle.c"
31236 fi
31237
31238 fi
31239
31240
31241         if test $have_setproctitle = yes ; then
31242
31243 cat >>confdefs.h <<\_ACEOF
31244 #define HAVE_SETPROCTITLE 1
31245 _ACEOF
31246
31247         fi
31248 fi
31249
31250 if test $ol_enable_slp != no ; then
31251
31252 for ac_header in slp.h
31253 do
31254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31259   echo $ECHO_N "(cached) $ECHO_C" >&6
31260 fi
31261 ac_res=`eval echo '${'$as_ac_Header'}'`
31262                { echo "$as_me:$LINENO: result: $ac_res" >&5
31263 echo "${ECHO_T}$ac_res" >&6; }
31264 else
31265   # Is the header compilable?
31266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31268 cat >conftest.$ac_ext <<_ACEOF
31269 /* confdefs.h.  */
31270 _ACEOF
31271 cat confdefs.h >>conftest.$ac_ext
31272 cat >>conftest.$ac_ext <<_ACEOF
31273 /* end confdefs.h.  */
31274 $ac_includes_default
31275 #include <$ac_header>
31276 _ACEOF
31277 rm -f conftest.$ac_objext
31278 if { (ac_try="$ac_compile"
31279 case "(($ac_try" in
31280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281   *) ac_try_echo=$ac_try;;
31282 esac
31283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284   (eval "$ac_compile") 2>conftest.er1
31285   ac_status=$?
31286   grep -v '^ *+' conftest.er1 >conftest.err
31287   rm -f conftest.er1
31288   cat conftest.err >&5
31289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290   (exit $ac_status); } && {
31291          test -z "$ac_c_werror_flag" ||
31292          test ! -s conftest.err
31293        } && test -s conftest.$ac_objext; then
31294   ac_header_compiler=yes
31295 else
31296   echo "$as_me: failed program was:" >&5
31297 sed 's/^/| /' conftest.$ac_ext >&5
31298
31299         ac_header_compiler=no
31300 fi
31301
31302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31304 echo "${ECHO_T}$ac_header_compiler" >&6; }
31305
31306 # Is the header present?
31307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31309 cat >conftest.$ac_ext <<_ACEOF
31310 /* confdefs.h.  */
31311 _ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h.  */
31315 #include <$ac_header>
31316 _ACEOF
31317 if { (ac_try="$ac_cpp conftest.$ac_ext"
31318 case "(($ac_try" in
31319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320   *) ac_try_echo=$ac_try;;
31321 esac
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31324   ac_status=$?
31325   grep -v '^ *+' conftest.er1 >conftest.err
31326   rm -f conftest.er1
31327   cat conftest.err >&5
31328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329   (exit $ac_status); } >/dev/null && {
31330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31331          test ! -s conftest.err
31332        }; then
31333   ac_header_preproc=yes
31334 else
31335   echo "$as_me: failed program was:" >&5
31336 sed 's/^/| /' conftest.$ac_ext >&5
31337
31338   ac_header_preproc=no
31339 fi
31340
31341 rm -f conftest.err conftest.$ac_ext
31342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31343 echo "${ECHO_T}$ac_header_preproc" >&6; }
31344
31345 # So?  What about this header?
31346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31347   yes:no: )
31348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31352     ac_header_preproc=yes
31353     ;;
31354   no:yes:* )
31355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31367     ( cat <<\_ASBOX
31368 ## --------------------------------------------- ##
31369 ## Report this to <http://www.openldap.org/its/> ##
31370 ## --------------------------------------------- ##
31371 _ASBOX
31372      ) | sed "s/^/$as_me: WARNING:     /" >&2
31373     ;;
31374 esac
31375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31378   echo $ECHO_N "(cached) $ECHO_C" >&6
31379 else
31380   eval "$as_ac_Header=\$ac_header_preproc"
31381 fi
31382 ac_res=`eval echo '${'$as_ac_Header'}'`
31383                { echo "$as_me:$LINENO: result: $ac_res" >&5
31384 echo "${ECHO_T}$ac_res" >&6; }
31385
31386 fi
31387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31388   cat >>confdefs.h <<_ACEOF
31389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31390 _ACEOF
31391
31392 fi
31393
31394 done
31395
31396
31397         if test $ac_cv_header_slp_h = yes ; then
31398                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31399 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31400 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31401   echo $ECHO_N "(cached) $ECHO_C" >&6
31402 else
31403   ac_check_lib_save_LIBS=$LIBS
31404 LIBS="-lslp  $LIBS"
31405 cat >conftest.$ac_ext <<_ACEOF
31406 /* confdefs.h.  */
31407 _ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h.  */
31411
31412 /* Override any GCC internal prototype to avoid an error.
31413    Use char because int might match the return type of a GCC
31414    builtin and then its argument prototype would still apply.  */
31415 #ifdef __cplusplus
31416 extern "C"
31417 #endif
31418 char SLPOpen ();
31419 int
31420 main ()
31421 {
31422 return SLPOpen ();
31423   ;
31424   return 0;
31425 }
31426 _ACEOF
31427 rm -f conftest.$ac_objext conftest$ac_exeext
31428 if { (ac_try="$ac_link"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_link") 2>conftest.er1
31435   ac_status=$?
31436   grep -v '^ *+' conftest.er1 >conftest.err
31437   rm -f conftest.er1
31438   cat conftest.err >&5
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); } && {
31441          test -z "$ac_c_werror_flag" ||
31442          test ! -s conftest.err
31443        } && test -s conftest$ac_exeext &&
31444        $as_test_x conftest$ac_exeext; then
31445   ac_cv_lib_slp_SLPOpen=yes
31446 else
31447   echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31449
31450         ac_cv_lib_slp_SLPOpen=no
31451 fi
31452
31453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31454       conftest$ac_exeext conftest.$ac_ext
31455 LIBS=$ac_check_lib_save_LIBS
31456 fi
31457 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31458 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31459 if test $ac_cv_lib_slp_SLPOpen = yes; then
31460   have_slp=yes
31461 else
31462   have_slp=no
31463 fi
31464
31465                 if test $have_slp = yes ; then
31466
31467 cat >>confdefs.h <<\_ACEOF
31468 #define HAVE_SLP 1
31469 _ACEOF
31470
31471                         SLAPD_SLP_LIBS=-lslp
31472                 fi
31473
31474         elif test $ol_enable_slp = yes ; then
31475                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31476 echo "$as_me: error: SLP not found" >&2;}
31477    { (exit 1); exit 1; }; }
31478         fi
31479 fi
31480
31481
31482 { echo "$as_me:$LINENO: checking for mode_t" >&5
31483 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31484 if test "${ac_cv_type_mode_t+set}" = set; then
31485   echo $ECHO_N "(cached) $ECHO_C" >&6
31486 else
31487   cat >conftest.$ac_ext <<_ACEOF
31488 /* confdefs.h.  */
31489 _ACEOF
31490 cat confdefs.h >>conftest.$ac_ext
31491 cat >>conftest.$ac_ext <<_ACEOF
31492 /* end confdefs.h.  */
31493 $ac_includes_default
31494 typedef mode_t ac__type_new_;
31495 int
31496 main ()
31497 {
31498 if ((ac__type_new_ *) 0)
31499   return 0;
31500 if (sizeof (ac__type_new_))
31501   return 0;
31502   ;
31503   return 0;
31504 }
31505 _ACEOF
31506 rm -f conftest.$ac_objext
31507 if { (ac_try="$ac_compile"
31508 case "(($ac_try" in
31509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510   *) ac_try_echo=$ac_try;;
31511 esac
31512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513   (eval "$ac_compile") 2>conftest.er1
31514   ac_status=$?
31515   grep -v '^ *+' conftest.er1 >conftest.err
31516   rm -f conftest.er1
31517   cat conftest.err >&5
31518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519   (exit $ac_status); } && {
31520          test -z "$ac_c_werror_flag" ||
31521          test ! -s conftest.err
31522        } && test -s conftest.$ac_objext; then
31523   ac_cv_type_mode_t=yes
31524 else
31525   echo "$as_me: failed program was:" >&5
31526 sed 's/^/| /' conftest.$ac_ext >&5
31527
31528         ac_cv_type_mode_t=no
31529 fi
31530
31531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31532 fi
31533 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31534 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31535 if test $ac_cv_type_mode_t = yes; then
31536   :
31537 else
31538
31539 cat >>confdefs.h <<_ACEOF
31540 #define mode_t int
31541 _ACEOF
31542
31543 fi
31544
31545 { echo "$as_me:$LINENO: checking for off_t" >&5
31546 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31547 if test "${ac_cv_type_off_t+set}" = set; then
31548   echo $ECHO_N "(cached) $ECHO_C" >&6
31549 else
31550   cat >conftest.$ac_ext <<_ACEOF
31551 /* confdefs.h.  */
31552 _ACEOF
31553 cat confdefs.h >>conftest.$ac_ext
31554 cat >>conftest.$ac_ext <<_ACEOF
31555 /* end confdefs.h.  */
31556 $ac_includes_default
31557 typedef off_t ac__type_new_;
31558 int
31559 main ()
31560 {
31561 if ((ac__type_new_ *) 0)
31562   return 0;
31563 if (sizeof (ac__type_new_))
31564   return 0;
31565   ;
31566   return 0;
31567 }
31568 _ACEOF
31569 rm -f conftest.$ac_objext
31570 if { (ac_try="$ac_compile"
31571 case "(($ac_try" in
31572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573   *) ac_try_echo=$ac_try;;
31574 esac
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576   (eval "$ac_compile") 2>conftest.er1
31577   ac_status=$?
31578   grep -v '^ *+' conftest.er1 >conftest.err
31579   rm -f conftest.er1
31580   cat conftest.err >&5
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); } && {
31583          test -z "$ac_c_werror_flag" ||
31584          test ! -s conftest.err
31585        } && test -s conftest.$ac_objext; then
31586   ac_cv_type_off_t=yes
31587 else
31588   echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31590
31591         ac_cv_type_off_t=no
31592 fi
31593
31594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31595 fi
31596 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31597 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31598 if test $ac_cv_type_off_t = yes; then
31599   :
31600 else
31601
31602 cat >>confdefs.h <<_ACEOF
31603 #define off_t long
31604 _ACEOF
31605
31606 fi
31607
31608 { echo "$as_me:$LINENO: checking for pid_t" >&5
31609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31610 if test "${ac_cv_type_pid_t+set}" = set; then
31611   echo $ECHO_N "(cached) $ECHO_C" >&6
31612 else
31613   cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619 $ac_includes_default
31620 typedef pid_t ac__type_new_;
31621 int
31622 main ()
31623 {
31624 if ((ac__type_new_ *) 0)
31625   return 0;
31626 if (sizeof (ac__type_new_))
31627   return 0;
31628   ;
31629   return 0;
31630 }
31631 _ACEOF
31632 rm -f conftest.$ac_objext
31633 if { (ac_try="$ac_compile"
31634 case "(($ac_try" in
31635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636   *) ac_try_echo=$ac_try;;
31637 esac
31638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31639   (eval "$ac_compile") 2>conftest.er1
31640   ac_status=$?
31641   grep -v '^ *+' conftest.er1 >conftest.err
31642   rm -f conftest.er1
31643   cat conftest.err >&5
31644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645   (exit $ac_status); } && {
31646          test -z "$ac_c_werror_flag" ||
31647          test ! -s conftest.err
31648        } && test -s conftest.$ac_objext; then
31649   ac_cv_type_pid_t=yes
31650 else
31651   echo "$as_me: failed program was:" >&5
31652 sed 's/^/| /' conftest.$ac_ext >&5
31653
31654         ac_cv_type_pid_t=no
31655 fi
31656
31657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31658 fi
31659 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31660 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31661 if test $ac_cv_type_pid_t = yes; then
31662   :
31663 else
31664
31665 cat >>confdefs.h <<_ACEOF
31666 #define pid_t int
31667 _ACEOF
31668
31669 fi
31670
31671 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31672 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31673 if test "${ac_cv_type_ssize_t+set}" = set; then
31674   echo $ECHO_N "(cached) $ECHO_C" >&6
31675 else
31676   cat >conftest.$ac_ext <<_ACEOF
31677 /* confdefs.h.  */
31678 _ACEOF
31679 cat confdefs.h >>conftest.$ac_ext
31680 cat >>conftest.$ac_ext <<_ACEOF
31681 /* end confdefs.h.  */
31682 $ac_includes_default
31683 typedef ssize_t ac__type_new_;
31684 int
31685 main ()
31686 {
31687 if ((ac__type_new_ *) 0)
31688   return 0;
31689 if (sizeof (ac__type_new_))
31690   return 0;
31691   ;
31692   return 0;
31693 }
31694 _ACEOF
31695 rm -f conftest.$ac_objext
31696 if { (ac_try="$ac_compile"
31697 case "(($ac_try" in
31698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699   *) ac_try_echo=$ac_try;;
31700 esac
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702   (eval "$ac_compile") 2>conftest.er1
31703   ac_status=$?
31704   grep -v '^ *+' conftest.er1 >conftest.err
31705   rm -f conftest.er1
31706   cat conftest.err >&5
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); } && {
31709          test -z "$ac_c_werror_flag" ||
31710          test ! -s conftest.err
31711        } && test -s conftest.$ac_objext; then
31712   ac_cv_type_ssize_t=yes
31713 else
31714   echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31716
31717         ac_cv_type_ssize_t=no
31718 fi
31719
31720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31721 fi
31722 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31723 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31724 if test $ac_cv_type_ssize_t = yes; then
31725   :
31726 else
31727
31728 cat >>confdefs.h <<_ACEOF
31729 #define ssize_t signed int
31730 _ACEOF
31731
31732 fi
31733
31734 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31735 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31736 if test "${ac_cv_type_caddr_t+set}" = set; then
31737   echo $ECHO_N "(cached) $ECHO_C" >&6
31738 else
31739   cat >conftest.$ac_ext <<_ACEOF
31740 /* confdefs.h.  */
31741 _ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h.  */
31745 $ac_includes_default
31746 typedef caddr_t ac__type_new_;
31747 int
31748 main ()
31749 {
31750 if ((ac__type_new_ *) 0)
31751   return 0;
31752 if (sizeof (ac__type_new_))
31753   return 0;
31754   ;
31755   return 0;
31756 }
31757 _ACEOF
31758 rm -f conftest.$ac_objext
31759 if { (ac_try="$ac_compile"
31760 case "(($ac_try" in
31761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762   *) ac_try_echo=$ac_try;;
31763 esac
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765   (eval "$ac_compile") 2>conftest.er1
31766   ac_status=$?
31767   grep -v '^ *+' conftest.er1 >conftest.err
31768   rm -f conftest.er1
31769   cat conftest.err >&5
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); } && {
31772          test -z "$ac_c_werror_flag" ||
31773          test ! -s conftest.err
31774        } && test -s conftest.$ac_objext; then
31775   ac_cv_type_caddr_t=yes
31776 else
31777   echo "$as_me: failed program was:" >&5
31778 sed 's/^/| /' conftest.$ac_ext >&5
31779
31780         ac_cv_type_caddr_t=no
31781 fi
31782
31783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31784 fi
31785 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31786 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31787 if test $ac_cv_type_caddr_t = yes; then
31788   :
31789 else
31790
31791 cat >>confdefs.h <<_ACEOF
31792 #define caddr_t char *
31793 _ACEOF
31794
31795 fi
31796
31797 { echo "$as_me:$LINENO: checking for size_t" >&5
31798 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31799 if test "${ac_cv_type_size_t+set}" = set; then
31800   echo $ECHO_N "(cached) $ECHO_C" >&6
31801 else
31802   cat >conftest.$ac_ext <<_ACEOF
31803 /* confdefs.h.  */
31804 _ACEOF
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h.  */
31808 $ac_includes_default
31809 typedef size_t ac__type_new_;
31810 int
31811 main ()
31812 {
31813 if ((ac__type_new_ *) 0)
31814   return 0;
31815 if (sizeof (ac__type_new_))
31816   return 0;
31817   ;
31818   return 0;
31819 }
31820 _ACEOF
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825   *) ac_try_echo=$ac_try;;
31826 esac
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828   (eval "$ac_compile") 2>conftest.er1
31829   ac_status=$?
31830   grep -v '^ *+' conftest.er1 >conftest.err
31831   rm -f conftest.er1
31832   cat conftest.err >&5
31833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834   (exit $ac_status); } && {
31835          test -z "$ac_c_werror_flag" ||
31836          test ! -s conftest.err
31837        } && test -s conftest.$ac_objext; then
31838   ac_cv_type_size_t=yes
31839 else
31840   echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31842
31843         ac_cv_type_size_t=no
31844 fi
31845
31846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31847 fi
31848 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31849 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31850 if test $ac_cv_type_size_t = yes; then
31851   :
31852 else
31853
31854 cat >>confdefs.h <<_ACEOF
31855 #define size_t unsigned
31856 _ACEOF
31857
31858 fi
31859
31860
31861 { echo "$as_me:$LINENO: checking for long long" >&5
31862 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31863 if test "${ac_cv_type_long_long+set}" = set; then
31864   echo $ECHO_N "(cached) $ECHO_C" >&6
31865 else
31866   cat >conftest.$ac_ext <<_ACEOF
31867 /* confdefs.h.  */
31868 _ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h.  */
31872 $ac_includes_default
31873 typedef long long ac__type_new_;
31874 int
31875 main ()
31876 {
31877 if ((ac__type_new_ *) 0)
31878   return 0;
31879 if (sizeof (ac__type_new_))
31880   return 0;
31881   ;
31882   return 0;
31883 }
31884 _ACEOF
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889   *) ac_try_echo=$ac_try;;
31890 esac
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892   (eval "$ac_compile") 2>conftest.er1
31893   ac_status=$?
31894   grep -v '^ *+' conftest.er1 >conftest.err
31895   rm -f conftest.er1
31896   cat conftest.err >&5
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } && {
31899          test -z "$ac_c_werror_flag" ||
31900          test ! -s conftest.err
31901        } && test -s conftest.$ac_objext; then
31902   ac_cv_type_long_long=yes
31903 else
31904   echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31906
31907         ac_cv_type_long_long=no
31908 fi
31909
31910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31911 fi
31912 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31913 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31914 if test $ac_cv_type_long_long = yes; then
31915
31916 cat >>confdefs.h <<_ACEOF
31917 #define HAVE_LONG_LONG 1
31918 _ACEOF
31919
31920
31921 fi
31922
31923 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31924 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31925 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31926   echo $ECHO_N "(cached) $ECHO_C" >&6
31927 else
31928   cat >conftest.$ac_ext <<_ACEOF
31929 /* confdefs.h.  */
31930 _ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h.  */
31934 $ac_includes_default
31935 typedef ptrdiff_t ac__type_new_;
31936 int
31937 main ()
31938 {
31939 if ((ac__type_new_ *) 0)
31940   return 0;
31941 if (sizeof (ac__type_new_))
31942   return 0;
31943   ;
31944   return 0;
31945 }
31946 _ACEOF
31947 rm -f conftest.$ac_objext
31948 if { (ac_try="$ac_compile"
31949 case "(($ac_try" in
31950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31951   *) ac_try_echo=$ac_try;;
31952 esac
31953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31954   (eval "$ac_compile") 2>conftest.er1
31955   ac_status=$?
31956   grep -v '^ *+' conftest.er1 >conftest.err
31957   rm -f conftest.er1
31958   cat conftest.err >&5
31959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960   (exit $ac_status); } && {
31961          test -z "$ac_c_werror_flag" ||
31962          test ! -s conftest.err
31963        } && test -s conftest.$ac_objext; then
31964   ac_cv_type_ptrdiff_t=yes
31965 else
31966   echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31968
31969         ac_cv_type_ptrdiff_t=no
31970 fi
31971
31972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31973 fi
31974 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31975 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31976 if test $ac_cv_type_ptrdiff_t = yes; then
31977
31978 cat >>confdefs.h <<_ACEOF
31979 #define HAVE_PTRDIFF_T 1
31980 _ACEOF
31981
31982
31983 fi
31984
31985
31986
31987 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31988 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31989 if test "${ac_cv_type_socklen_t+set}" = set; then
31990   echo $ECHO_N "(cached) $ECHO_C" >&6
31991 else
31992   cat >conftest.$ac_ext <<_ACEOF
31993 /* confdefs.h.  */
31994 _ACEOF
31995 cat confdefs.h >>conftest.$ac_ext
31996 cat >>conftest.$ac_ext <<_ACEOF
31997 /* end confdefs.h.  */
31998 $ac_includes_default
31999 #ifdef HAVE_SYS_SOCKET_H
32000 #include <sys/socket.h>
32001 #endif
32002
32003 typedef socklen_t ac__type_new_;
32004 int
32005 main ()
32006 {
32007 if ((ac__type_new_ *) 0)
32008   return 0;
32009 if (sizeof (ac__type_new_))
32010   return 0;
32011   ;
32012   return 0;
32013 }
32014 _ACEOF
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_compile") 2>conftest.er1
32023   ac_status=$?
32024   grep -v '^ *+' conftest.er1 >conftest.err
32025   rm -f conftest.er1
32026   cat conftest.err >&5
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); } && {
32029          test -z "$ac_c_werror_flag" ||
32030          test ! -s conftest.err
32031        } && test -s conftest.$ac_objext; then
32032   ac_cv_type_socklen_t=yes
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32036
32037         ac_cv_type_socklen_t=no
32038 fi
32039
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32041 fi
32042 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32043 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32044
32045
32046 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32047 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32048 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32049   echo $ECHO_N "(cached) $ECHO_C" >&6
32050 else
32051
32052         set socklen_t int unsigned "unsigned long" long size_t
32053         test "$ac_cv_type_socklen_t" = yes || shift
32054         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32055         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32056                 cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h.  */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h.  */
32062 $ac_includes_default
32063 #ifdef HAVE_SYS_SOCKET_H
32064 #include <sys/socket.h>
32065 #endif
32066 extern int accept(int s, $addrtype *ap, $lentype *lp);
32067
32068 int
32069 main ()
32070 {
32071
32072 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32073
32074   ;
32075   return 0;
32076 }
32077 _ACEOF
32078 rm -f conftest.$ac_objext
32079 if { (ac_try="$ac_compile"
32080 case "(($ac_try" in
32081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082   *) ac_try_echo=$ac_try;;
32083 esac
32084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085   (eval "$ac_compile") 2>conftest.er1
32086   ac_status=$?
32087   grep -v '^ *+' conftest.er1 >conftest.err
32088   rm -f conftest.er1
32089   cat conftest.err >&5
32090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091   (exit $ac_status); } && {
32092          test -z "$ac_c_werror_flag" ||
32093          test ! -s conftest.err
32094        } && test -s conftest.$ac_objext; then
32095   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32096 else
32097   echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32099
32100
32101 fi
32102
32103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32104         done ; done
32105 fi
32106
32107 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32108 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32109
32110 cat >>confdefs.h <<_ACEOF
32111 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32112 _ACEOF
32113
32114
32115 if test "$ac_cv_type_socklen_t" != yes; then
32116
32117 cat >>confdefs.h <<_ACEOF
32118 #define socklen_t $ol_cv_type_ber_socklen_t
32119 _ACEOF
32120
32121 fi
32122
32123
32124 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32125 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32126 if test "${ac_cv_type_signal+set}" = set; then
32127   echo $ECHO_N "(cached) $ECHO_C" >&6
32128 else
32129   cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135 #include <sys/types.h>
32136 #include <signal.h>
32137
32138 int
32139 main ()
32140 {
32141 return *(signal (0, 0)) (0) == 1;
32142   ;
32143   return 0;
32144 }
32145 _ACEOF
32146 rm -f conftest.$ac_objext
32147 if { (ac_try="$ac_compile"
32148 case "(($ac_try" in
32149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150   *) ac_try_echo=$ac_try;;
32151 esac
32152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153   (eval "$ac_compile") 2>conftest.er1
32154   ac_status=$?
32155   grep -v '^ *+' conftest.er1 >conftest.err
32156   rm -f conftest.er1
32157   cat conftest.err >&5
32158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159   (exit $ac_status); } && {
32160          test -z "$ac_c_werror_flag" ||
32161          test ! -s conftest.err
32162        } && test -s conftest.$ac_objext; then
32163   ac_cv_type_signal=int
32164 else
32165   echo "$as_me: failed program was:" >&5
32166 sed 's/^/| /' conftest.$ac_ext >&5
32167
32168         ac_cv_type_signal=void
32169 fi
32170
32171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32172 fi
32173 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32174 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32175
32176 cat >>confdefs.h <<_ACEOF
32177 #define RETSIGTYPE $ac_cv_type_signal
32178 _ACEOF
32179
32180
32181
32182 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32183 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32184 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32185   echo $ECHO_N "(cached) $ECHO_C" >&6
32186 else
32187   cat >conftest.$ac_ext <<_ACEOF
32188 /* confdefs.h.  */
32189 _ACEOF
32190 cat confdefs.h >>conftest.$ac_ext
32191 cat >>conftest.$ac_ext <<_ACEOF
32192 /* end confdefs.h.  */
32193 $ac_includes_default
32194 #include <signal.h>
32195
32196
32197 typedef sig_atomic_t ac__type_new_;
32198 int
32199 main ()
32200 {
32201 if ((ac__type_new_ *) 0)
32202   return 0;
32203 if (sizeof (ac__type_new_))
32204   return 0;
32205   ;
32206   return 0;
32207 }
32208 _ACEOF
32209 rm -f conftest.$ac_objext
32210 if { (ac_try="$ac_compile"
32211 case "(($ac_try" in
32212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213   *) ac_try_echo=$ac_try;;
32214 esac
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216   (eval "$ac_compile") 2>conftest.er1
32217   ac_status=$?
32218   grep -v '^ *+' conftest.er1 >conftest.err
32219   rm -f conftest.er1
32220   cat conftest.err >&5
32221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222   (exit $ac_status); } && {
32223          test -z "$ac_c_werror_flag" ||
32224          test ! -s conftest.err
32225        } && test -s conftest.$ac_objext; then
32226   ac_cv_type_sig_atomic_t=yes
32227 else
32228   echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32230
32231         ac_cv_type_sig_atomic_t=no
32232 fi
32233
32234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32235 fi
32236 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32237 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32238 if test $ac_cv_type_sig_atomic_t = yes; then
32239   :
32240 else
32241
32242 cat >>confdefs.h <<_ACEOF
32243 #define sig_atomic_t int
32244 _ACEOF
32245
32246 fi
32247
32248
32249 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32250 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32251 if test "${ac_cv_type_uid_t+set}" = set; then
32252   echo $ECHO_N "(cached) $ECHO_C" >&6
32253 else
32254   cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h.  */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h.  */
32260 #include <sys/types.h>
32261
32262 _ACEOF
32263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32264   $EGREP "uid_t" >/dev/null 2>&1; then
32265   ac_cv_type_uid_t=yes
32266 else
32267   ac_cv_type_uid_t=no
32268 fi
32269 rm -f conftest*
32270
32271 fi
32272 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32273 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32274 if test $ac_cv_type_uid_t = no; then
32275
32276 cat >>confdefs.h <<\_ACEOF
32277 #define uid_t int
32278 _ACEOF
32279
32280
32281 cat >>confdefs.h <<\_ACEOF
32282 #define gid_t int
32283 _ACEOF
32284
32285 fi
32286
32287
32288 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32289 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32290 if test "${ac_cv_header_time+set}" = set; then
32291   echo $ECHO_N "(cached) $ECHO_C" >&6
32292 else
32293   cat >conftest.$ac_ext <<_ACEOF
32294 /* confdefs.h.  */
32295 _ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h.  */
32299 #include <sys/types.h>
32300 #include <sys/time.h>
32301 #include <time.h>
32302
32303 int
32304 main ()
32305 {
32306 if ((struct tm *) 0)
32307 return 0;
32308   ;
32309   return 0;
32310 }
32311 _ACEOF
32312 rm -f conftest.$ac_objext
32313 if { (ac_try="$ac_compile"
32314 case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_compile") 2>conftest.er1
32320   ac_status=$?
32321   grep -v '^ *+' conftest.er1 >conftest.err
32322   rm -f conftest.er1
32323   cat conftest.err >&5
32324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325   (exit $ac_status); } && {
32326          test -z "$ac_c_werror_flag" ||
32327          test ! -s conftest.err
32328        } && test -s conftest.$ac_objext; then
32329   ac_cv_header_time=yes
32330 else
32331   echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32333
32334         ac_cv_header_time=no
32335 fi
32336
32337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32338 fi
32339 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32340 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32341 if test $ac_cv_header_time = yes; then
32342
32343 cat >>confdefs.h <<\_ACEOF
32344 #define TIME_WITH_SYS_TIME 1
32345 _ACEOF
32346
32347 fi
32348
32349 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32350 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32351 if test "${ac_cv_struct_tm+set}" = set; then
32352   echo $ECHO_N "(cached) $ECHO_C" >&6
32353 else
32354   cat >conftest.$ac_ext <<_ACEOF
32355 /* confdefs.h.  */
32356 _ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h.  */
32360 #include <sys/types.h>
32361 #include <time.h>
32362
32363 int
32364 main ()
32365 {
32366 struct tm tm;
32367                                      int *p = &tm.tm_sec;
32368                                      return !p;
32369   ;
32370   return 0;
32371 }
32372 _ACEOF
32373 rm -f conftest.$ac_objext
32374 if { (ac_try="$ac_compile"
32375 case "(($ac_try" in
32376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377   *) ac_try_echo=$ac_try;;
32378 esac
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380   (eval "$ac_compile") 2>conftest.er1
32381   ac_status=$?
32382   grep -v '^ *+' conftest.er1 >conftest.err
32383   rm -f conftest.er1
32384   cat conftest.err >&5
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } && {
32387          test -z "$ac_c_werror_flag" ||
32388          test ! -s conftest.err
32389        } && test -s conftest.$ac_objext; then
32390   ac_cv_struct_tm=time.h
32391 else
32392   echo "$as_me: failed program was:" >&5
32393 sed 's/^/| /' conftest.$ac_ext >&5
32394
32395         ac_cv_struct_tm=sys/time.h
32396 fi
32397
32398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32399 fi
32400 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32401 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32402 if test $ac_cv_struct_tm = sys/time.h; then
32403
32404 cat >>confdefs.h <<\_ACEOF
32405 #define TM_IN_SYS_TIME 1
32406 _ACEOF
32407
32408 fi
32409
32410 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32411 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32412 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32413   echo $ECHO_N "(cached) $ECHO_C" >&6
32414 else
32415   cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421 $ac_includes_default
32422 int
32423 main ()
32424 {
32425 static struct stat ac_aggr;
32426 if (ac_aggr.st_blksize)
32427 return 0;
32428   ;
32429   return 0;
32430 }
32431 _ACEOF
32432 rm -f conftest.$ac_objext
32433 if { (ac_try="$ac_compile"
32434 case "(($ac_try" in
32435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436   *) ac_try_echo=$ac_try;;
32437 esac
32438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439   (eval "$ac_compile") 2>conftest.er1
32440   ac_status=$?
32441   grep -v '^ *+' conftest.er1 >conftest.err
32442   rm -f conftest.er1
32443   cat conftest.err >&5
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } && {
32446          test -z "$ac_c_werror_flag" ||
32447          test ! -s conftest.err
32448        } && test -s conftest.$ac_objext; then
32449   ac_cv_member_struct_stat_st_blksize=yes
32450 else
32451   echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32453
32454         cat >conftest.$ac_ext <<_ACEOF
32455 /* confdefs.h.  */
32456 _ACEOF
32457 cat confdefs.h >>conftest.$ac_ext
32458 cat >>conftest.$ac_ext <<_ACEOF
32459 /* end confdefs.h.  */
32460 $ac_includes_default
32461 int
32462 main ()
32463 {
32464 static struct stat ac_aggr;
32465 if (sizeof ac_aggr.st_blksize)
32466 return 0;
32467   ;
32468   return 0;
32469 }
32470 _ACEOF
32471 rm -f conftest.$ac_objext
32472 if { (ac_try="$ac_compile"
32473 case "(($ac_try" in
32474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475   *) ac_try_echo=$ac_try;;
32476 esac
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478   (eval "$ac_compile") 2>conftest.er1
32479   ac_status=$?
32480   grep -v '^ *+' conftest.er1 >conftest.err
32481   rm -f conftest.er1
32482   cat conftest.err >&5
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } && {
32485          test -z "$ac_c_werror_flag" ||
32486          test ! -s conftest.err
32487        } && test -s conftest.$ac_objext; then
32488   ac_cv_member_struct_stat_st_blksize=yes
32489 else
32490   echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32492
32493         ac_cv_member_struct_stat_st_blksize=no
32494 fi
32495
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 fi
32498
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500 fi
32501 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32502 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32503 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32504
32505 cat >>confdefs.h <<_ACEOF
32506 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32507 _ACEOF
32508
32509
32510 fi
32511
32512 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32513 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32514 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32515   echo $ECHO_N "(cached) $ECHO_C" >&6
32516 else
32517   cat >conftest.$ac_ext <<_ACEOF
32518 /* confdefs.h.  */
32519 _ACEOF
32520 cat confdefs.h >>conftest.$ac_ext
32521 cat >>conftest.$ac_ext <<_ACEOF
32522 /* end confdefs.h.  */
32523 $ac_includes_default
32524 #include <pwd.h>
32525
32526 int
32527 main ()
32528 {
32529 static struct passwd ac_aggr;
32530 if (ac_aggr.pw_gecos)
32531 return 0;
32532   ;
32533   return 0;
32534 }
32535 _ACEOF
32536 rm -f conftest.$ac_objext
32537 if { (ac_try="$ac_compile"
32538 case "(($ac_try" in
32539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540   *) ac_try_echo=$ac_try;;
32541 esac
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543   (eval "$ac_compile") 2>conftest.er1
32544   ac_status=$?
32545   grep -v '^ *+' conftest.er1 >conftest.err
32546   rm -f conftest.er1
32547   cat conftest.err >&5
32548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549   (exit $ac_status); } && {
32550          test -z "$ac_c_werror_flag" ||
32551          test ! -s conftest.err
32552        } && test -s conftest.$ac_objext; then
32553   ac_cv_member_struct_passwd_pw_gecos=yes
32554 else
32555   echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32557
32558         cat >conftest.$ac_ext <<_ACEOF
32559 /* confdefs.h.  */
32560 _ACEOF
32561 cat confdefs.h >>conftest.$ac_ext
32562 cat >>conftest.$ac_ext <<_ACEOF
32563 /* end confdefs.h.  */
32564 $ac_includes_default
32565 #include <pwd.h>
32566
32567 int
32568 main ()
32569 {
32570 static struct passwd ac_aggr;
32571 if (sizeof ac_aggr.pw_gecos)
32572 return 0;
32573   ;
32574   return 0;
32575 }
32576 _ACEOF
32577 rm -f conftest.$ac_objext
32578 if { (ac_try="$ac_compile"
32579 case "(($ac_try" in
32580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581   *) ac_try_echo=$ac_try;;
32582 esac
32583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584   (eval "$ac_compile") 2>conftest.er1
32585   ac_status=$?
32586   grep -v '^ *+' conftest.er1 >conftest.err
32587   rm -f conftest.er1
32588   cat conftest.err >&5
32589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590   (exit $ac_status); } && {
32591          test -z "$ac_c_werror_flag" ||
32592          test ! -s conftest.err
32593        } && test -s conftest.$ac_objext; then
32594   ac_cv_member_struct_passwd_pw_gecos=yes
32595 else
32596   echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32598
32599         ac_cv_member_struct_passwd_pw_gecos=no
32600 fi
32601
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603 fi
32604
32605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32606 fi
32607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32608 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32609 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32610
32611 cat >>confdefs.h <<_ACEOF
32612 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32613 _ACEOF
32614
32615
32616 fi
32617
32618 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32619 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32620 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32621   echo $ECHO_N "(cached) $ECHO_C" >&6
32622 else
32623   cat >conftest.$ac_ext <<_ACEOF
32624 /* confdefs.h.  */
32625 _ACEOF
32626 cat confdefs.h >>conftest.$ac_ext
32627 cat >>conftest.$ac_ext <<_ACEOF
32628 /* end confdefs.h.  */
32629 $ac_includes_default
32630 #include <pwd.h>
32631
32632 int
32633 main ()
32634 {
32635 static struct passwd ac_aggr;
32636 if (ac_aggr.pw_passwd)
32637 return 0;
32638   ;
32639   return 0;
32640 }
32641 _ACEOF
32642 rm -f conftest.$ac_objext
32643 if { (ac_try="$ac_compile"
32644 case "(($ac_try" in
32645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32646   *) ac_try_echo=$ac_try;;
32647 esac
32648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32649   (eval "$ac_compile") 2>conftest.er1
32650   ac_status=$?
32651   grep -v '^ *+' conftest.er1 >conftest.err
32652   rm -f conftest.er1
32653   cat conftest.err >&5
32654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); } && {
32656          test -z "$ac_c_werror_flag" ||
32657          test ! -s conftest.err
32658        } && test -s conftest.$ac_objext; then
32659   ac_cv_member_struct_passwd_pw_passwd=yes
32660 else
32661   echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664         cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h.  */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h.  */
32670 $ac_includes_default
32671 #include <pwd.h>
32672
32673 int
32674 main ()
32675 {
32676 static struct passwd ac_aggr;
32677 if (sizeof ac_aggr.pw_passwd)
32678 return 0;
32679   ;
32680   return 0;
32681 }
32682 _ACEOF
32683 rm -f conftest.$ac_objext
32684 if { (ac_try="$ac_compile"
32685 case "(($ac_try" in
32686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687   *) ac_try_echo=$ac_try;;
32688 esac
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690   (eval "$ac_compile") 2>conftest.er1
32691   ac_status=$?
32692   grep -v '^ *+' conftest.er1 >conftest.err
32693   rm -f conftest.er1
32694   cat conftest.err >&5
32695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696   (exit $ac_status); } && {
32697          test -z "$ac_c_werror_flag" ||
32698          test ! -s conftest.err
32699        } && test -s conftest.$ac_objext; then
32700   ac_cv_member_struct_passwd_pw_passwd=yes
32701 else
32702   echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32704
32705         ac_cv_member_struct_passwd_pw_passwd=no
32706 fi
32707
32708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32709 fi
32710
32711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32712 fi
32713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32714 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32715 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32716
32717 cat >>confdefs.h <<_ACEOF
32718 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32719 _ACEOF
32720
32721
32722 fi
32723
32724
32725 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32726 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32727 if test "${ol_cv_c_upper_lower+set}" = set; then
32728   echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730
32731         if test "$cross_compiling" = yes; then
32732   ol_cv_c_upper_lower=safe
32733 else
32734   cat >conftest.$ac_ext <<_ACEOF
32735 /* confdefs.h.  */
32736 _ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h.  */
32740
32741 #include <ctype.h>
32742 main()
32743 {
32744         if ('C' == toupper('C'))
32745                 exit(0);
32746         else
32747                 exit(1);
32748 }
32749 _ACEOF
32750 rm -f conftest$ac_exeext
32751 if { (ac_try="$ac_link"
32752 case "(($ac_try" in
32753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754   *) ac_try_echo=$ac_try;;
32755 esac
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757   (eval "$ac_link") 2>&5
32758   ac_status=$?
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32761   { (case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766   (eval "$ac_try") 2>&5
32767   ac_status=$?
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); }; }; then
32770   ol_cv_c_upper_lower=no
32771 else
32772   echo "$as_me: program exited with status $ac_status" >&5
32773 echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32775
32776 ( exit $ac_status )
32777 ol_cv_c_upper_lower=yes
32778 fi
32779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32780 fi
32781
32782
32783 fi
32784 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32785 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32786 if test $ol_cv_c_upper_lower != no ; then
32787
32788 cat >>confdefs.h <<\_ACEOF
32789 #define C_UPPER_LOWER 1
32790 _ACEOF
32791
32792 fi
32793
32794 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32795 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32796 if test "${ac_cv_c_const+set}" = set; then
32797   echo $ECHO_N "(cached) $ECHO_C" >&6
32798 else
32799   cat >conftest.$ac_ext <<_ACEOF
32800 /* confdefs.h.  */
32801 _ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h.  */
32805
32806 int
32807 main ()
32808 {
32809 /* FIXME: Include the comments suggested by Paul. */
32810 #ifndef __cplusplus
32811   /* Ultrix mips cc rejects this.  */
32812   typedef int charset[2];
32813   const charset cs;
32814   /* SunOS 4.1.1 cc rejects this.  */
32815   char const *const *pcpcc;
32816   char **ppc;
32817   /* NEC SVR4.0.2 mips cc rejects this.  */
32818   struct point {int x, y;};
32819   static struct point const zero = {0,0};
32820   /* AIX XL C 1.02.0.0 rejects this.
32821      It does not let you subtract one const X* pointer from another in
32822      an arm of an if-expression whose if-part is not a constant
32823      expression */
32824   const char *g = "string";
32825   pcpcc = &g + (g ? g-g : 0);
32826   /* HPUX 7.0 cc rejects these. */
32827   ++pcpcc;
32828   ppc = (char**) pcpcc;
32829   pcpcc = (char const *const *) ppc;
32830   { /* SCO 3.2v4 cc rejects this.  */
32831     char *t;
32832     char const *s = 0 ? (char *) 0 : (char const *) 0;
32833
32834     *t++ = 0;
32835     if (s) return 0;
32836   }
32837   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32838     int x[] = {25, 17};
32839     const int *foo = &x[0];
32840     ++foo;
32841   }
32842   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32843     typedef const int *iptr;
32844     iptr p = 0;
32845     ++p;
32846   }
32847   { /* AIX XL C 1.02.0.0 rejects this saying
32848        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32849     struct s { int j; const int *ap[3]; };
32850     struct s *b; b->j = 5;
32851   }
32852   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32853     const int foo = 10;
32854     if (!foo) return 0;
32855   }
32856   return !cs[0] && !zero.x;
32857 #endif
32858
32859   ;
32860   return 0;
32861 }
32862 _ACEOF
32863 rm -f conftest.$ac_objext
32864 if { (ac_try="$ac_compile"
32865 case "(($ac_try" in
32866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867   *) ac_try_echo=$ac_try;;
32868 esac
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870   (eval "$ac_compile") 2>conftest.er1
32871   ac_status=$?
32872   grep -v '^ *+' conftest.er1 >conftest.err
32873   rm -f conftest.er1
32874   cat conftest.err >&5
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); } && {
32877          test -z "$ac_c_werror_flag" ||
32878          test ! -s conftest.err
32879        } && test -s conftest.$ac_objext; then
32880   ac_cv_c_const=yes
32881 else
32882   echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32884
32885         ac_cv_c_const=no
32886 fi
32887
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889 fi
32890 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32891 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32892 if test $ac_cv_c_const = no; then
32893
32894 cat >>confdefs.h <<\_ACEOF
32895 #define const
32896 _ACEOF
32897
32898 fi
32899
32900 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32901 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32902 if test "${ol_cv_c_volatile+set}" = set; then
32903   echo $ECHO_N "(cached) $ECHO_C" >&6
32904 else
32905   cat >conftest.$ac_ext <<_ACEOF
32906 /* confdefs.h.  */
32907 _ACEOF
32908 cat confdefs.h >>conftest.$ac_ext
32909 cat >>conftest.$ac_ext <<_ACEOF
32910 /* end confdefs.h.  */
32911 int x, y, z;
32912 int
32913 main ()
32914 {
32915 volatile int a; int * volatile b = x ? &y : &z;
32916       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32917       *b = 0;
32918   ;
32919   return 0;
32920 }
32921 _ACEOF
32922 rm -f conftest.$ac_objext
32923 if { (ac_try="$ac_compile"
32924 case "(($ac_try" in
32925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926   *) ac_try_echo=$ac_try;;
32927 esac
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929   (eval "$ac_compile") 2>conftest.er1
32930   ac_status=$?
32931   grep -v '^ *+' conftest.er1 >conftest.err
32932   rm -f conftest.er1
32933   cat conftest.err >&5
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); } && {
32936          test -z "$ac_c_werror_flag" ||
32937          test ! -s conftest.err
32938        } && test -s conftest.$ac_objext; then
32939   ol_cv_c_volatile=yes
32940 else
32941   echo "$as_me: failed program was:" >&5
32942 sed 's/^/| /' conftest.$ac_ext >&5
32943
32944         ol_cv_c_volatile=no
32945 fi
32946
32947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32948 fi
32949 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32950 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32951   if test $ol_cv_c_volatile = yes; then
32952     :
32953   else
32954
32955 cat >>confdefs.h <<\_ACEOF
32956 #define volatile
32957 _ACEOF
32958
32959   fi
32960
32961
32962 if test $cross_compiling = yes ; then
32963         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32964 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32965
32966 cat >>confdefs.h <<\_ACEOF
32967 #define CROSS_COMPILING 1
32968 _ACEOF
32969
32970 else
32971         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32972 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32973 if test "${ac_cv_c_bigendian+set}" = set; then
32974   echo $ECHO_N "(cached) $ECHO_C" >&6
32975 else
32976   # See if sys/param.h defines the BYTE_ORDER macro.
32977 cat >conftest.$ac_ext <<_ACEOF
32978 /* confdefs.h.  */
32979 _ACEOF
32980 cat confdefs.h >>conftest.$ac_ext
32981 cat >>conftest.$ac_ext <<_ACEOF
32982 /* end confdefs.h.  */
32983 #include <sys/types.h>
32984 #include <sys/param.h>
32985
32986 int
32987 main ()
32988 {
32989 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32990         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32991  bogus endian macros
32992 #endif
32993
32994   ;
32995   return 0;
32996 }
32997 _ACEOF
32998 rm -f conftest.$ac_objext
32999 if { (ac_try="$ac_compile"
33000 case "(($ac_try" in
33001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002   *) ac_try_echo=$ac_try;;
33003 esac
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005   (eval "$ac_compile") 2>conftest.er1
33006   ac_status=$?
33007   grep -v '^ *+' conftest.er1 >conftest.err
33008   rm -f conftest.er1
33009   cat conftest.err >&5
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } && {
33012          test -z "$ac_c_werror_flag" ||
33013          test ! -s conftest.err
33014        } && test -s conftest.$ac_objext; then
33015   # It does; now see whether it defined to BIG_ENDIAN or not.
33016 cat >conftest.$ac_ext <<_ACEOF
33017 /* confdefs.h.  */
33018 _ACEOF
33019 cat confdefs.h >>conftest.$ac_ext
33020 cat >>conftest.$ac_ext <<_ACEOF
33021 /* end confdefs.h.  */
33022 #include <sys/types.h>
33023 #include <sys/param.h>
33024
33025 int
33026 main ()
33027 {
33028 #if BYTE_ORDER != BIG_ENDIAN
33029  not big endian
33030 #endif
33031
33032   ;
33033   return 0;
33034 }
33035 _ACEOF
33036 rm -f conftest.$ac_objext
33037 if { (ac_try="$ac_compile"
33038 case "(($ac_try" in
33039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040   *) ac_try_echo=$ac_try;;
33041 esac
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043   (eval "$ac_compile") 2>conftest.er1
33044   ac_status=$?
33045   grep -v '^ *+' conftest.er1 >conftest.err
33046   rm -f conftest.er1
33047   cat conftest.err >&5
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); } && {
33050          test -z "$ac_c_werror_flag" ||
33051          test ! -s conftest.err
33052        } && test -s conftest.$ac_objext; then
33053   ac_cv_c_bigendian=yes
33054 else
33055   echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33057
33058         ac_cv_c_bigendian=no
33059 fi
33060
33061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33062 else
33063   echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33065
33066         # It does not; compile a test program.
33067 if test "$cross_compiling" = yes; then
33068   # try to guess the endianness by grepping values into an object file
33069   ac_cv_c_bigendian=unknown
33070   cat >conftest.$ac_ext <<_ACEOF
33071 /* confdefs.h.  */
33072 _ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h.  */
33076 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33077 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33078 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33079 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33080 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33081 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33082 int
33083 main ()
33084 {
33085  _ascii (); _ebcdic ();
33086   ;
33087   return 0;
33088 }
33089 _ACEOF
33090 rm -f conftest.$ac_objext
33091 if { (ac_try="$ac_compile"
33092 case "(($ac_try" in
33093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094   *) ac_try_echo=$ac_try;;
33095 esac
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097   (eval "$ac_compile") 2>conftest.er1
33098   ac_status=$?
33099   grep -v '^ *+' conftest.er1 >conftest.err
33100   rm -f conftest.er1
33101   cat conftest.err >&5
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); } && {
33104          test -z "$ac_c_werror_flag" ||
33105          test ! -s conftest.err
33106        } && test -s conftest.$ac_objext; then
33107   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33108   ac_cv_c_bigendian=yes
33109 fi
33110 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33111   if test "$ac_cv_c_bigendian" = unknown; then
33112     ac_cv_c_bigendian=no
33113   else
33114     # finding both strings is unlikely to happen, but who knows?
33115     ac_cv_c_bigendian=unknown
33116   fi
33117 fi
33118 else
33119   echo "$as_me: failed program was:" >&5
33120 sed 's/^/| /' conftest.$ac_ext >&5
33121
33122
33123 fi
33124
33125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33126 else
33127   cat >conftest.$ac_ext <<_ACEOF
33128 /* confdefs.h.  */
33129 _ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h.  */
33133 $ac_includes_default
33134 int
33135 main ()
33136 {
33137
33138   /* Are we little or big endian?  From Harbison&Steele.  */
33139   union
33140   {
33141     long int l;
33142     char c[sizeof (long int)];
33143   } u;
33144   u.l = 1;
33145   return u.c[sizeof (long int) - 1] == 1;
33146
33147   ;
33148   return 0;
33149 }
33150 _ACEOF
33151 rm -f conftest$ac_exeext
33152 if { (ac_try="$ac_link"
33153 case "(($ac_try" in
33154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155   *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158   (eval "$ac_link") 2>&5
33159   ac_status=$?
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33162   { (case "(($ac_try" in
33163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164   *) ac_try_echo=$ac_try;;
33165 esac
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167   (eval "$ac_try") 2>&5
33168   ac_status=$?
33169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170   (exit $ac_status); }; }; then
33171   ac_cv_c_bigendian=no
33172 else
33173   echo "$as_me: program exited with status $ac_status" >&5
33174 echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33176
33177 ( exit $ac_status )
33178 ac_cv_c_bigendian=yes
33179 fi
33180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33181 fi
33182
33183
33184 fi
33185
33186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187 fi
33188 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33189 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33190 case $ac_cv_c_bigendian in
33191   yes)
33192
33193 cat >>confdefs.h <<\_ACEOF
33194 #define WORDS_BIGENDIAN 1
33195 _ACEOF
33196  ;;
33197   no)
33198      ;;
33199   *)
33200     { { echo "$as_me:$LINENO: error: unknown endianness
33201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33202 echo "$as_me: error: unknown endianness
33203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33204    { (exit 1); exit 1; }; } ;;
33205 esac
33206
33207 fi
33208
33209 { echo "$as_me:$LINENO: checking for short" >&5
33210 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33211 if test "${ac_cv_type_short+set}" = set; then
33212   echo $ECHO_N "(cached) $ECHO_C" >&6
33213 else
33214   cat >conftest.$ac_ext <<_ACEOF
33215 /* confdefs.h.  */
33216 _ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h.  */
33220 $ac_includes_default
33221 typedef short ac__type_new_;
33222 int
33223 main ()
33224 {
33225 if ((ac__type_new_ *) 0)
33226   return 0;
33227 if (sizeof (ac__type_new_))
33228   return 0;
33229   ;
33230   return 0;
33231 }
33232 _ACEOF
33233 rm -f conftest.$ac_objext
33234 if { (ac_try="$ac_compile"
33235 case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240   (eval "$ac_compile") 2>conftest.er1
33241   ac_status=$?
33242   grep -v '^ *+' conftest.er1 >conftest.err
33243   rm -f conftest.er1
33244   cat conftest.err >&5
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); } && {
33247          test -z "$ac_c_werror_flag" ||
33248          test ! -s conftest.err
33249        } && test -s conftest.$ac_objext; then
33250   ac_cv_type_short=yes
33251 else
33252   echo "$as_me: failed program was:" >&5
33253 sed 's/^/| /' conftest.$ac_ext >&5
33254
33255         ac_cv_type_short=no
33256 fi
33257
33258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33259 fi
33260 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33261 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33262
33263 # The cast to long int works around a bug in the HP C Compiler
33264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33266 # This bug is HP SR number 8606223364.
33267 { echo "$as_me:$LINENO: checking size of short" >&5
33268 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33269 if test "${ac_cv_sizeof_short+set}" = set; then
33270   echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272   if test "$cross_compiling" = yes; then
33273   # Depending upon the size, compute the lo and hi bounds.
33274 cat >conftest.$ac_ext <<_ACEOF
33275 /* confdefs.h.  */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h.  */
33280 $ac_includes_default
33281    typedef short ac__type_sizeof_;
33282 int
33283 main ()
33284 {
33285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33286 test_array [0] = 0
33287
33288   ;
33289   return 0;
33290 }
33291 _ACEOF
33292 rm -f conftest.$ac_objext
33293 if { (ac_try="$ac_compile"
33294 case "(($ac_try" in
33295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296   *) ac_try_echo=$ac_try;;
33297 esac
33298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299   (eval "$ac_compile") 2>conftest.er1
33300   ac_status=$?
33301   grep -v '^ *+' conftest.er1 >conftest.err
33302   rm -f conftest.er1
33303   cat conftest.err >&5
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); } && {
33306          test -z "$ac_c_werror_flag" ||
33307          test ! -s conftest.err
33308        } && test -s conftest.$ac_objext; then
33309   ac_lo=0 ac_mid=0
33310   while :; do
33311     cat >conftest.$ac_ext <<_ACEOF
33312 /* confdefs.h.  */
33313 _ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h.  */
33317 $ac_includes_default
33318    typedef short ac__type_sizeof_;
33319 int
33320 main ()
33321 {
33322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33323 test_array [0] = 0
33324
33325   ;
33326   return 0;
33327 }
33328 _ACEOF
33329 rm -f conftest.$ac_objext
33330 if { (ac_try="$ac_compile"
33331 case "(($ac_try" in
33332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33333   *) ac_try_echo=$ac_try;;
33334 esac
33335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33336   (eval "$ac_compile") 2>conftest.er1
33337   ac_status=$?
33338   grep -v '^ *+' conftest.er1 >conftest.err
33339   rm -f conftest.er1
33340   cat conftest.err >&5
33341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342   (exit $ac_status); } && {
33343          test -z "$ac_c_werror_flag" ||
33344          test ! -s conftest.err
33345        } && test -s conftest.$ac_objext; then
33346   ac_hi=$ac_mid; break
33347 else
33348   echo "$as_me: failed program was:" >&5
33349 sed 's/^/| /' conftest.$ac_ext >&5
33350
33351         ac_lo=`expr $ac_mid + 1`
33352                         if test $ac_lo -le $ac_mid; then
33353                           ac_lo= ac_hi=
33354                           break
33355                         fi
33356                         ac_mid=`expr 2 '*' $ac_mid + 1`
33357 fi
33358
33359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33360   done
33361 else
33362   echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33364
33365         cat >conftest.$ac_ext <<_ACEOF
33366 /* confdefs.h.  */
33367 _ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h.  */
33371 $ac_includes_default
33372    typedef short ac__type_sizeof_;
33373 int
33374 main ()
33375 {
33376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33377 test_array [0] = 0
33378
33379   ;
33380   return 0;
33381 }
33382 _ACEOF
33383 rm -f conftest.$ac_objext
33384 if { (ac_try="$ac_compile"
33385 case "(($ac_try" in
33386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387   *) ac_try_echo=$ac_try;;
33388 esac
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390   (eval "$ac_compile") 2>conftest.er1
33391   ac_status=$?
33392   grep -v '^ *+' conftest.er1 >conftest.err
33393   rm -f conftest.er1
33394   cat conftest.err >&5
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); } && {
33397          test -z "$ac_c_werror_flag" ||
33398          test ! -s conftest.err
33399        } && test -s conftest.$ac_objext; then
33400   ac_hi=-1 ac_mid=-1
33401   while :; do
33402     cat >conftest.$ac_ext <<_ACEOF
33403 /* confdefs.h.  */
33404 _ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h.  */
33408 $ac_includes_default
33409    typedef short ac__type_sizeof_;
33410 int
33411 main ()
33412 {
33413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33414 test_array [0] = 0
33415
33416   ;
33417   return 0;
33418 }
33419 _ACEOF
33420 rm -f conftest.$ac_objext
33421 if { (ac_try="$ac_compile"
33422 case "(($ac_try" in
33423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424   *) ac_try_echo=$ac_try;;
33425 esac
33426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33427   (eval "$ac_compile") 2>conftest.er1
33428   ac_status=$?
33429   grep -v '^ *+' conftest.er1 >conftest.err
33430   rm -f conftest.er1
33431   cat conftest.err >&5
33432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433   (exit $ac_status); } && {
33434          test -z "$ac_c_werror_flag" ||
33435          test ! -s conftest.err
33436        } && test -s conftest.$ac_objext; then
33437   ac_lo=$ac_mid; break
33438 else
33439   echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33441
33442         ac_hi=`expr '(' $ac_mid ')' - 1`
33443                         if test $ac_mid -le $ac_hi; then
33444                           ac_lo= ac_hi=
33445                           break
33446                         fi
33447                         ac_mid=`expr 2 '*' $ac_mid`
33448 fi
33449
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451   done
33452 else
33453   echo "$as_me: failed program was:" >&5
33454 sed 's/^/| /' conftest.$ac_ext >&5
33455
33456         ac_lo= ac_hi=
33457 fi
33458
33459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33460 fi
33461
33462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33463 # Binary search between lo and hi bounds.
33464 while test "x$ac_lo" != "x$ac_hi"; do
33465   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33466   cat >conftest.$ac_ext <<_ACEOF
33467 /* confdefs.h.  */
33468 _ACEOF
33469 cat confdefs.h >>conftest.$ac_ext
33470 cat >>conftest.$ac_ext <<_ACEOF
33471 /* end confdefs.h.  */
33472 $ac_includes_default
33473    typedef short ac__type_sizeof_;
33474 int
33475 main ()
33476 {
33477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33478 test_array [0] = 0
33479
33480   ;
33481   return 0;
33482 }
33483 _ACEOF
33484 rm -f conftest.$ac_objext
33485 if { (ac_try="$ac_compile"
33486 case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_compile") 2>conftest.er1
33492   ac_status=$?
33493   grep -v '^ *+' conftest.er1 >conftest.err
33494   rm -f conftest.er1
33495   cat conftest.err >&5
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); } && {
33498          test -z "$ac_c_werror_flag" ||
33499          test ! -s conftest.err
33500        } && test -s conftest.$ac_objext; then
33501   ac_hi=$ac_mid
33502 else
33503   echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33505
33506         ac_lo=`expr '(' $ac_mid ')' + 1`
33507 fi
33508
33509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33510 done
33511 case $ac_lo in
33512 ?*) ac_cv_sizeof_short=$ac_lo;;
33513 '') if test "$ac_cv_type_short" = yes; then
33514      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33515 See \`config.log' for more details." >&5
33516 echo "$as_me: error: cannot compute sizeof (short)
33517 See \`config.log' for more details." >&2;}
33518    { (exit 77); exit 77; }; }
33519    else
33520      ac_cv_sizeof_short=0
33521    fi ;;
33522 esac
33523 else
33524   cat >conftest.$ac_ext <<_ACEOF
33525 /* confdefs.h.  */
33526 _ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h.  */
33530 $ac_includes_default
33531    typedef short ac__type_sizeof_;
33532 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33533 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33534 #include <stdio.h>
33535 #include <stdlib.h>
33536 int
33537 main ()
33538 {
33539
33540   FILE *f = fopen ("conftest.val", "w");
33541   if (! f)
33542     return 1;
33543   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33544     {
33545       long int i = longval ();
33546       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33547         return 1;
33548       fprintf (f, "%ld\n", i);
33549     }
33550   else
33551     {
33552       unsigned long int i = ulongval ();
33553       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33554         return 1;
33555       fprintf (f, "%lu\n", i);
33556     }
33557   return ferror (f) || fclose (f) != 0;
33558
33559   ;
33560   return 0;
33561 }
33562 _ACEOF
33563 rm -f conftest$ac_exeext
33564 if { (ac_try="$ac_link"
33565 case "(($ac_try" in
33566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33567   *) ac_try_echo=$ac_try;;
33568 esac
33569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33570   (eval "$ac_link") 2>&5
33571   ac_status=$?
33572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33574   { (case "(($ac_try" in
33575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576   *) ac_try_echo=$ac_try;;
33577 esac
33578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33579   (eval "$ac_try") 2>&5
33580   ac_status=$?
33581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582   (exit $ac_status); }; }; then
33583   ac_cv_sizeof_short=`cat conftest.val`
33584 else
33585   echo "$as_me: program exited with status $ac_status" >&5
33586 echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33588
33589 ( exit $ac_status )
33590 if test "$ac_cv_type_short" = yes; then
33591      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33592 See \`config.log' for more details." >&5
33593 echo "$as_me: error: cannot compute sizeof (short)
33594 See \`config.log' for more details." >&2;}
33595    { (exit 77); exit 77; }; }
33596    else
33597      ac_cv_sizeof_short=0
33598    fi
33599 fi
33600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33601 fi
33602 rm -f conftest.val
33603 fi
33604 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33605 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33606
33607
33608
33609 cat >>confdefs.h <<_ACEOF
33610 #define SIZEOF_SHORT $ac_cv_sizeof_short
33611 _ACEOF
33612
33613
33614 { echo "$as_me:$LINENO: checking for int" >&5
33615 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33616 if test "${ac_cv_type_int+set}" = set; then
33617   echo $ECHO_N "(cached) $ECHO_C" >&6
33618 else
33619   cat >conftest.$ac_ext <<_ACEOF
33620 /* confdefs.h.  */
33621 _ACEOF
33622 cat confdefs.h >>conftest.$ac_ext
33623 cat >>conftest.$ac_ext <<_ACEOF
33624 /* end confdefs.h.  */
33625 $ac_includes_default
33626 typedef int ac__type_new_;
33627 int
33628 main ()
33629 {
33630 if ((ac__type_new_ *) 0)
33631   return 0;
33632 if (sizeof (ac__type_new_))
33633   return 0;
33634   ;
33635   return 0;
33636 }
33637 _ACEOF
33638 rm -f conftest.$ac_objext
33639 if { (ac_try="$ac_compile"
33640 case "(($ac_try" in
33641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33642   *) ac_try_echo=$ac_try;;
33643 esac
33644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33645   (eval "$ac_compile") 2>conftest.er1
33646   ac_status=$?
33647   grep -v '^ *+' conftest.er1 >conftest.err
33648   rm -f conftest.er1
33649   cat conftest.err >&5
33650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651   (exit $ac_status); } && {
33652          test -z "$ac_c_werror_flag" ||
33653          test ! -s conftest.err
33654        } && test -s conftest.$ac_objext; then
33655   ac_cv_type_int=yes
33656 else
33657   echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33659
33660         ac_cv_type_int=no
33661 fi
33662
33663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33664 fi
33665 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33666 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33667
33668 # The cast to long int works around a bug in the HP C Compiler
33669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33671 # This bug is HP SR number 8606223364.
33672 { echo "$as_me:$LINENO: checking size of int" >&5
33673 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33674 if test "${ac_cv_sizeof_int+set}" = set; then
33675   echo $ECHO_N "(cached) $ECHO_C" >&6
33676 else
33677   if test "$cross_compiling" = yes; then
33678   # Depending upon the size, compute the lo and hi bounds.
33679 cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h.  */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h.  */
33685 $ac_includes_default
33686    typedef int ac__type_sizeof_;
33687 int
33688 main ()
33689 {
33690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33691 test_array [0] = 0
33692
33693   ;
33694   return 0;
33695 }
33696 _ACEOF
33697 rm -f conftest.$ac_objext
33698 if { (ac_try="$ac_compile"
33699 case "(($ac_try" in
33700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33701   *) ac_try_echo=$ac_try;;
33702 esac
33703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33704   (eval "$ac_compile") 2>conftest.er1
33705   ac_status=$?
33706   grep -v '^ *+' conftest.er1 >conftest.err
33707   rm -f conftest.er1
33708   cat conftest.err >&5
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); } && {
33711          test -z "$ac_c_werror_flag" ||
33712          test ! -s conftest.err
33713        } && test -s conftest.$ac_objext; then
33714   ac_lo=0 ac_mid=0
33715   while :; do
33716     cat >conftest.$ac_ext <<_ACEOF
33717 /* confdefs.h.  */
33718 _ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h.  */
33722 $ac_includes_default
33723    typedef int ac__type_sizeof_;
33724 int
33725 main ()
33726 {
33727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33728 test_array [0] = 0
33729
33730   ;
33731   return 0;
33732 }
33733 _ACEOF
33734 rm -f conftest.$ac_objext
33735 if { (ac_try="$ac_compile"
33736 case "(($ac_try" in
33737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738   *) ac_try_echo=$ac_try;;
33739 esac
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741   (eval "$ac_compile") 2>conftest.er1
33742   ac_status=$?
33743   grep -v '^ *+' conftest.er1 >conftest.err
33744   rm -f conftest.er1
33745   cat conftest.err >&5
33746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747   (exit $ac_status); } && {
33748          test -z "$ac_c_werror_flag" ||
33749          test ! -s conftest.err
33750        } && test -s conftest.$ac_objext; then
33751   ac_hi=$ac_mid; break
33752 else
33753   echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33755
33756         ac_lo=`expr $ac_mid + 1`
33757                         if test $ac_lo -le $ac_mid; then
33758                           ac_lo= ac_hi=
33759                           break
33760                         fi
33761                         ac_mid=`expr 2 '*' $ac_mid + 1`
33762 fi
33763
33764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33765   done
33766 else
33767   echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33769
33770         cat >conftest.$ac_ext <<_ACEOF
33771 /* confdefs.h.  */
33772 _ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h.  */
33776 $ac_includes_default
33777    typedef int ac__type_sizeof_;
33778 int
33779 main ()
33780 {
33781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33782 test_array [0] = 0
33783
33784   ;
33785   return 0;
33786 }
33787 _ACEOF
33788 rm -f conftest.$ac_objext
33789 if { (ac_try="$ac_compile"
33790 case "(($ac_try" in
33791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792   *) ac_try_echo=$ac_try;;
33793 esac
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795   (eval "$ac_compile") 2>conftest.er1
33796   ac_status=$?
33797   grep -v '^ *+' conftest.er1 >conftest.err
33798   rm -f conftest.er1
33799   cat conftest.err >&5
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } && {
33802          test -z "$ac_c_werror_flag" ||
33803          test ! -s conftest.err
33804        } && test -s conftest.$ac_objext; then
33805   ac_hi=-1 ac_mid=-1
33806   while :; do
33807     cat >conftest.$ac_ext <<_ACEOF
33808 /* confdefs.h.  */
33809 _ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h.  */
33813 $ac_includes_default
33814    typedef int ac__type_sizeof_;
33815 int
33816 main ()
33817 {
33818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33819 test_array [0] = 0
33820
33821   ;
33822   return 0;
33823 }
33824 _ACEOF
33825 rm -f conftest.$ac_objext
33826 if { (ac_try="$ac_compile"
33827 case "(($ac_try" in
33828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829   *) ac_try_echo=$ac_try;;
33830 esac
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832   (eval "$ac_compile") 2>conftest.er1
33833   ac_status=$?
33834   grep -v '^ *+' conftest.er1 >conftest.err
33835   rm -f conftest.er1
33836   cat conftest.err >&5
33837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838   (exit $ac_status); } && {
33839          test -z "$ac_c_werror_flag" ||
33840          test ! -s conftest.err
33841        } && test -s conftest.$ac_objext; then
33842   ac_lo=$ac_mid; break
33843 else
33844   echo "$as_me: failed program was:" >&5
33845 sed 's/^/| /' conftest.$ac_ext >&5
33846
33847         ac_hi=`expr '(' $ac_mid ')' - 1`
33848                         if test $ac_mid -le $ac_hi; then
33849                           ac_lo= ac_hi=
33850                           break
33851                         fi
33852                         ac_mid=`expr 2 '*' $ac_mid`
33853 fi
33854
33855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33856   done
33857 else
33858   echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33860
33861         ac_lo= ac_hi=
33862 fi
33863
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 fi
33866
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868 # Binary search between lo and hi bounds.
33869 while test "x$ac_lo" != "x$ac_hi"; do
33870   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33871   cat >conftest.$ac_ext <<_ACEOF
33872 /* confdefs.h.  */
33873 _ACEOF
33874 cat confdefs.h >>conftest.$ac_ext
33875 cat >>conftest.$ac_ext <<_ACEOF
33876 /* end confdefs.h.  */
33877 $ac_includes_default
33878    typedef int ac__type_sizeof_;
33879 int
33880 main ()
33881 {
33882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33883 test_array [0] = 0
33884
33885   ;
33886   return 0;
33887 }
33888 _ACEOF
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893   *) ac_try_echo=$ac_try;;
33894 esac
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896   (eval "$ac_compile") 2>conftest.er1
33897   ac_status=$?
33898   grep -v '^ *+' conftest.er1 >conftest.err
33899   rm -f conftest.er1
33900   cat conftest.err >&5
33901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902   (exit $ac_status); } && {
33903          test -z "$ac_c_werror_flag" ||
33904          test ! -s conftest.err
33905        } && test -s conftest.$ac_objext; then
33906   ac_hi=$ac_mid
33907 else
33908   echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33910
33911         ac_lo=`expr '(' $ac_mid ')' + 1`
33912 fi
33913
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 done
33916 case $ac_lo in
33917 ?*) ac_cv_sizeof_int=$ac_lo;;
33918 '') if test "$ac_cv_type_int" = yes; then
33919      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33920 See \`config.log' for more details." >&5
33921 echo "$as_me: error: cannot compute sizeof (int)
33922 See \`config.log' for more details." >&2;}
33923    { (exit 77); exit 77; }; }
33924    else
33925      ac_cv_sizeof_int=0
33926    fi ;;
33927 esac
33928 else
33929   cat >conftest.$ac_ext <<_ACEOF
33930 /* confdefs.h.  */
33931 _ACEOF
33932 cat confdefs.h >>conftest.$ac_ext
33933 cat >>conftest.$ac_ext <<_ACEOF
33934 /* end confdefs.h.  */
33935 $ac_includes_default
33936    typedef int ac__type_sizeof_;
33937 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33938 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33939 #include <stdio.h>
33940 #include <stdlib.h>
33941 int
33942 main ()
33943 {
33944
33945   FILE *f = fopen ("conftest.val", "w");
33946   if (! f)
33947     return 1;
33948   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33949     {
33950       long int i = longval ();
33951       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33952         return 1;
33953       fprintf (f, "%ld\n", i);
33954     }
33955   else
33956     {
33957       unsigned long int i = ulongval ();
33958       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33959         return 1;
33960       fprintf (f, "%lu\n", i);
33961     }
33962   return ferror (f) || fclose (f) != 0;
33963
33964   ;
33965   return 0;
33966 }
33967 _ACEOF
33968 rm -f conftest$ac_exeext
33969 if { (ac_try="$ac_link"
33970 case "(($ac_try" in
33971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33972   *) ac_try_echo=$ac_try;;
33973 esac
33974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33975   (eval "$ac_link") 2>&5
33976   ac_status=$?
33977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33979   { (case "(($ac_try" in
33980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981   *) ac_try_echo=$ac_try;;
33982 esac
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984   (eval "$ac_try") 2>&5
33985   ac_status=$?
33986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987   (exit $ac_status); }; }; then
33988   ac_cv_sizeof_int=`cat conftest.val`
33989 else
33990   echo "$as_me: program exited with status $ac_status" >&5
33991 echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33993
33994 ( exit $ac_status )
33995 if test "$ac_cv_type_int" = yes; then
33996      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33997 See \`config.log' for more details." >&5
33998 echo "$as_me: error: cannot compute sizeof (int)
33999 See \`config.log' for more details." >&2;}
34000    { (exit 77); exit 77; }; }
34001    else
34002      ac_cv_sizeof_int=0
34003    fi
34004 fi
34005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34006 fi
34007 rm -f conftest.val
34008 fi
34009 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34010 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34011
34012
34013
34014 cat >>confdefs.h <<_ACEOF
34015 #define SIZEOF_INT $ac_cv_sizeof_int
34016 _ACEOF
34017
34018
34019 { echo "$as_me:$LINENO: checking for long" >&5
34020 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34021 if test "${ac_cv_type_long+set}" = set; then
34022   echo $ECHO_N "(cached) $ECHO_C" >&6
34023 else
34024   cat >conftest.$ac_ext <<_ACEOF
34025 /* confdefs.h.  */
34026 _ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h.  */
34030 $ac_includes_default
34031 typedef long ac__type_new_;
34032 int
34033 main ()
34034 {
34035 if ((ac__type_new_ *) 0)
34036   return 0;
34037 if (sizeof (ac__type_new_))
34038   return 0;
34039   ;
34040   return 0;
34041 }
34042 _ACEOF
34043 rm -f conftest.$ac_objext
34044 if { (ac_try="$ac_compile"
34045 case "(($ac_try" in
34046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047   *) ac_try_echo=$ac_try;;
34048 esac
34049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050   (eval "$ac_compile") 2>conftest.er1
34051   ac_status=$?
34052   grep -v '^ *+' conftest.er1 >conftest.err
34053   rm -f conftest.er1
34054   cat conftest.err >&5
34055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056   (exit $ac_status); } && {
34057          test -z "$ac_c_werror_flag" ||
34058          test ! -s conftest.err
34059        } && test -s conftest.$ac_objext; then
34060   ac_cv_type_long=yes
34061 else
34062   echo "$as_me: failed program was:" >&5
34063 sed 's/^/| /' conftest.$ac_ext >&5
34064
34065         ac_cv_type_long=no
34066 fi
34067
34068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34069 fi
34070 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34071 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34072
34073 # The cast to long int works around a bug in the HP C Compiler
34074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34076 # This bug is HP SR number 8606223364.
34077 { echo "$as_me:$LINENO: checking size of long" >&5
34078 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34079 if test "${ac_cv_sizeof_long+set}" = set; then
34080   echo $ECHO_N "(cached) $ECHO_C" >&6
34081 else
34082   if test "$cross_compiling" = yes; then
34083   # Depending upon the size, compute the lo and hi bounds.
34084 cat >conftest.$ac_ext <<_ACEOF
34085 /* confdefs.h.  */
34086 _ACEOF
34087 cat confdefs.h >>conftest.$ac_ext
34088 cat >>conftest.$ac_ext <<_ACEOF
34089 /* end confdefs.h.  */
34090 $ac_includes_default
34091    typedef long ac__type_sizeof_;
34092 int
34093 main ()
34094 {
34095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34096 test_array [0] = 0
34097
34098   ;
34099   return 0;
34100 }
34101 _ACEOF
34102 rm -f conftest.$ac_objext
34103 if { (ac_try="$ac_compile"
34104 case "(($ac_try" in
34105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34106   *) ac_try_echo=$ac_try;;
34107 esac
34108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34109   (eval "$ac_compile") 2>conftest.er1
34110   ac_status=$?
34111   grep -v '^ *+' conftest.er1 >conftest.err
34112   rm -f conftest.er1
34113   cat conftest.err >&5
34114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115   (exit $ac_status); } && {
34116          test -z "$ac_c_werror_flag" ||
34117          test ! -s conftest.err
34118        } && test -s conftest.$ac_objext; then
34119   ac_lo=0 ac_mid=0
34120   while :; do
34121     cat >conftest.$ac_ext <<_ACEOF
34122 /* confdefs.h.  */
34123 _ACEOF
34124 cat confdefs.h >>conftest.$ac_ext
34125 cat >>conftest.$ac_ext <<_ACEOF
34126 /* end confdefs.h.  */
34127 $ac_includes_default
34128    typedef long ac__type_sizeof_;
34129 int
34130 main ()
34131 {
34132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34133 test_array [0] = 0
34134
34135   ;
34136   return 0;
34137 }
34138 _ACEOF
34139 rm -f conftest.$ac_objext
34140 if { (ac_try="$ac_compile"
34141 case "(($ac_try" in
34142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143   *) ac_try_echo=$ac_try;;
34144 esac
34145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146   (eval "$ac_compile") 2>conftest.er1
34147   ac_status=$?
34148   grep -v '^ *+' conftest.er1 >conftest.err
34149   rm -f conftest.er1
34150   cat conftest.err >&5
34151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152   (exit $ac_status); } && {
34153          test -z "$ac_c_werror_flag" ||
34154          test ! -s conftest.err
34155        } && test -s conftest.$ac_objext; then
34156   ac_hi=$ac_mid; break
34157 else
34158   echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34160
34161         ac_lo=`expr $ac_mid + 1`
34162                         if test $ac_lo -le $ac_mid; then
34163                           ac_lo= ac_hi=
34164                           break
34165                         fi
34166                         ac_mid=`expr 2 '*' $ac_mid + 1`
34167 fi
34168
34169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34170   done
34171 else
34172   echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34174
34175         cat >conftest.$ac_ext <<_ACEOF
34176 /* confdefs.h.  */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h.  */
34181 $ac_includes_default
34182    typedef long ac__type_sizeof_;
34183 int
34184 main ()
34185 {
34186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34187 test_array [0] = 0
34188
34189   ;
34190   return 0;
34191 }
34192 _ACEOF
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197   *) ac_try_echo=$ac_try;;
34198 esac
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200   (eval "$ac_compile") 2>conftest.er1
34201   ac_status=$?
34202   grep -v '^ *+' conftest.er1 >conftest.err
34203   rm -f conftest.er1
34204   cat conftest.err >&5
34205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206   (exit $ac_status); } && {
34207          test -z "$ac_c_werror_flag" ||
34208          test ! -s conftest.err
34209        } && test -s conftest.$ac_objext; then
34210   ac_hi=-1 ac_mid=-1
34211   while :; do
34212     cat >conftest.$ac_ext <<_ACEOF
34213 /* confdefs.h.  */
34214 _ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h.  */
34218 $ac_includes_default
34219    typedef long ac__type_sizeof_;
34220 int
34221 main ()
34222 {
34223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34224 test_array [0] = 0
34225
34226   ;
34227   return 0;
34228 }
34229 _ACEOF
34230 rm -f conftest.$ac_objext
34231 if { (ac_try="$ac_compile"
34232 case "(($ac_try" in
34233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234   *) ac_try_echo=$ac_try;;
34235 esac
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237   (eval "$ac_compile") 2>conftest.er1
34238   ac_status=$?
34239   grep -v '^ *+' conftest.er1 >conftest.err
34240   rm -f conftest.er1
34241   cat conftest.err >&5
34242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243   (exit $ac_status); } && {
34244          test -z "$ac_c_werror_flag" ||
34245          test ! -s conftest.err
34246        } && test -s conftest.$ac_objext; then
34247   ac_lo=$ac_mid; break
34248 else
34249   echo "$as_me: failed program was:" >&5
34250 sed 's/^/| /' conftest.$ac_ext >&5
34251
34252         ac_hi=`expr '(' $ac_mid ')' - 1`
34253                         if test $ac_mid -le $ac_hi; then
34254                           ac_lo= ac_hi=
34255                           break
34256                         fi
34257                         ac_mid=`expr 2 '*' $ac_mid`
34258 fi
34259
34260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34261   done
34262 else
34263   echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34265
34266         ac_lo= ac_hi=
34267 fi
34268
34269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34270 fi
34271
34272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34273 # Binary search between lo and hi bounds.
34274 while test "x$ac_lo" != "x$ac_hi"; do
34275   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34276   cat >conftest.$ac_ext <<_ACEOF
34277 /* confdefs.h.  */
34278 _ACEOF
34279 cat confdefs.h >>conftest.$ac_ext
34280 cat >>conftest.$ac_ext <<_ACEOF
34281 /* end confdefs.h.  */
34282 $ac_includes_default
34283    typedef long ac__type_sizeof_;
34284 int
34285 main ()
34286 {
34287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34288 test_array [0] = 0
34289
34290   ;
34291   return 0;
34292 }
34293 _ACEOF
34294 rm -f conftest.$ac_objext
34295 if { (ac_try="$ac_compile"
34296 case "(($ac_try" in
34297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298   *) ac_try_echo=$ac_try;;
34299 esac
34300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301   (eval "$ac_compile") 2>conftest.er1
34302   ac_status=$?
34303   grep -v '^ *+' conftest.er1 >conftest.err
34304   rm -f conftest.er1
34305   cat conftest.err >&5
34306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307   (exit $ac_status); } && {
34308          test -z "$ac_c_werror_flag" ||
34309          test ! -s conftest.err
34310        } && test -s conftest.$ac_objext; then
34311   ac_hi=$ac_mid
34312 else
34313   echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34315
34316         ac_lo=`expr '(' $ac_mid ')' + 1`
34317 fi
34318
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320 done
34321 case $ac_lo in
34322 ?*) ac_cv_sizeof_long=$ac_lo;;
34323 '') if test "$ac_cv_type_long" = yes; then
34324      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34325 See \`config.log' for more details." >&5
34326 echo "$as_me: error: cannot compute sizeof (long)
34327 See \`config.log' for more details." >&2;}
34328    { (exit 77); exit 77; }; }
34329    else
34330      ac_cv_sizeof_long=0
34331    fi ;;
34332 esac
34333 else
34334   cat >conftest.$ac_ext <<_ACEOF
34335 /* confdefs.h.  */
34336 _ACEOF
34337 cat confdefs.h >>conftest.$ac_ext
34338 cat >>conftest.$ac_ext <<_ACEOF
34339 /* end confdefs.h.  */
34340 $ac_includes_default
34341    typedef long ac__type_sizeof_;
34342 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34343 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34344 #include <stdio.h>
34345 #include <stdlib.h>
34346 int
34347 main ()
34348 {
34349
34350   FILE *f = fopen ("conftest.val", "w");
34351   if (! f)
34352     return 1;
34353   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34354     {
34355       long int i = longval ();
34356       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34357         return 1;
34358       fprintf (f, "%ld\n", i);
34359     }
34360   else
34361     {
34362       unsigned long int i = ulongval ();
34363       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34364         return 1;
34365       fprintf (f, "%lu\n", i);
34366     }
34367   return ferror (f) || fclose (f) != 0;
34368
34369   ;
34370   return 0;
34371 }
34372 _ACEOF
34373 rm -f conftest$ac_exeext
34374 if { (ac_try="$ac_link"
34375 case "(($ac_try" in
34376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377   *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380   (eval "$ac_link") 2>&5
34381   ac_status=$?
34382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34384   { (case "(($ac_try" in
34385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34386   *) ac_try_echo=$ac_try;;
34387 esac
34388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34389   (eval "$ac_try") 2>&5
34390   ac_status=$?
34391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392   (exit $ac_status); }; }; then
34393   ac_cv_sizeof_long=`cat conftest.val`
34394 else
34395   echo "$as_me: program exited with status $ac_status" >&5
34396 echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34398
34399 ( exit $ac_status )
34400 if test "$ac_cv_type_long" = yes; then
34401      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34402 See \`config.log' for more details." >&5
34403 echo "$as_me: error: cannot compute sizeof (long)
34404 See \`config.log' for more details." >&2;}
34405    { (exit 77); exit 77; }; }
34406    else
34407      ac_cv_sizeof_long=0
34408    fi
34409 fi
34410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34411 fi
34412 rm -f conftest.val
34413 fi
34414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34415 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34416
34417
34418
34419 cat >>confdefs.h <<_ACEOF
34420 #define SIZEOF_LONG $ac_cv_sizeof_long
34421 _ACEOF
34422
34423
34424 { echo "$as_me:$LINENO: checking for long long" >&5
34425 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34426 if test "${ac_cv_type_long_long+set}" = set; then
34427   echo $ECHO_N "(cached) $ECHO_C" >&6
34428 else
34429   cat >conftest.$ac_ext <<_ACEOF
34430 /* confdefs.h.  */
34431 _ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h.  */
34435 $ac_includes_default
34436 typedef long long ac__type_new_;
34437 int
34438 main ()
34439 {
34440 if ((ac__type_new_ *) 0)
34441   return 0;
34442 if (sizeof (ac__type_new_))
34443   return 0;
34444   ;
34445   return 0;
34446 }
34447 _ACEOF
34448 rm -f conftest.$ac_objext
34449 if { (ac_try="$ac_compile"
34450 case "(($ac_try" in
34451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452   *) ac_try_echo=$ac_try;;
34453 esac
34454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455   (eval "$ac_compile") 2>conftest.er1
34456   ac_status=$?
34457   grep -v '^ *+' conftest.er1 >conftest.err
34458   rm -f conftest.er1
34459   cat conftest.err >&5
34460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461   (exit $ac_status); } && {
34462          test -z "$ac_c_werror_flag" ||
34463          test ! -s conftest.err
34464        } && test -s conftest.$ac_objext; then
34465   ac_cv_type_long_long=yes
34466 else
34467   echo "$as_me: failed program was:" >&5
34468 sed 's/^/| /' conftest.$ac_ext >&5
34469
34470         ac_cv_type_long_long=no
34471 fi
34472
34473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34474 fi
34475 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34476 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34477
34478 # The cast to long int works around a bug in the HP C Compiler
34479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34481 # This bug is HP SR number 8606223364.
34482 { echo "$as_me:$LINENO: checking size of long long" >&5
34483 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34484 if test "${ac_cv_sizeof_long_long+set}" = set; then
34485   echo $ECHO_N "(cached) $ECHO_C" >&6
34486 else
34487   if test "$cross_compiling" = yes; then
34488   # Depending upon the size, compute the lo and hi bounds.
34489 cat >conftest.$ac_ext <<_ACEOF
34490 /* confdefs.h.  */
34491 _ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h.  */
34495 $ac_includes_default
34496    typedef long long ac__type_sizeof_;
34497 int
34498 main ()
34499 {
34500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34501 test_array [0] = 0
34502
34503   ;
34504   return 0;
34505 }
34506 _ACEOF
34507 rm -f conftest.$ac_objext
34508 if { (ac_try="$ac_compile"
34509 case "(($ac_try" in
34510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34511   *) ac_try_echo=$ac_try;;
34512 esac
34513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34514   (eval "$ac_compile") 2>conftest.er1
34515   ac_status=$?
34516   grep -v '^ *+' conftest.er1 >conftest.err
34517   rm -f conftest.er1
34518   cat conftest.err >&5
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); } && {
34521          test -z "$ac_c_werror_flag" ||
34522          test ! -s conftest.err
34523        } && test -s conftest.$ac_objext; then
34524   ac_lo=0 ac_mid=0
34525   while :; do
34526     cat >conftest.$ac_ext <<_ACEOF
34527 /* confdefs.h.  */
34528 _ACEOF
34529 cat confdefs.h >>conftest.$ac_ext
34530 cat >>conftest.$ac_ext <<_ACEOF
34531 /* end confdefs.h.  */
34532 $ac_includes_default
34533    typedef long long ac__type_sizeof_;
34534 int
34535 main ()
34536 {
34537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34538 test_array [0] = 0
34539
34540   ;
34541   return 0;
34542 }
34543 _ACEOF
34544 rm -f conftest.$ac_objext
34545 if { (ac_try="$ac_compile"
34546 case "(($ac_try" in
34547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34548   *) ac_try_echo=$ac_try;;
34549 esac
34550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34551   (eval "$ac_compile") 2>conftest.er1
34552   ac_status=$?
34553   grep -v '^ *+' conftest.er1 >conftest.err
34554   rm -f conftest.er1
34555   cat conftest.err >&5
34556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557   (exit $ac_status); } && {
34558          test -z "$ac_c_werror_flag" ||
34559          test ! -s conftest.err
34560        } && test -s conftest.$ac_objext; then
34561   ac_hi=$ac_mid; break
34562 else
34563   echo "$as_me: failed program was:" >&5
34564 sed 's/^/| /' conftest.$ac_ext >&5
34565
34566         ac_lo=`expr $ac_mid + 1`
34567                         if test $ac_lo -le $ac_mid; then
34568                           ac_lo= ac_hi=
34569                           break
34570                         fi
34571                         ac_mid=`expr 2 '*' $ac_mid + 1`
34572 fi
34573
34574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34575   done
34576 else
34577   echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34579
34580         cat >conftest.$ac_ext <<_ACEOF
34581 /* confdefs.h.  */
34582 _ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h.  */
34586 $ac_includes_default
34587    typedef long long ac__type_sizeof_;
34588 int
34589 main ()
34590 {
34591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34592 test_array [0] = 0
34593
34594   ;
34595   return 0;
34596 }
34597 _ACEOF
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602   *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605   (eval "$ac_compile") 2>conftest.er1
34606   ac_status=$?
34607   grep -v '^ *+' conftest.er1 >conftest.err
34608   rm -f conftest.er1
34609   cat conftest.err >&5
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); } && {
34612          test -z "$ac_c_werror_flag" ||
34613          test ! -s conftest.err
34614        } && test -s conftest.$ac_objext; then
34615   ac_hi=-1 ac_mid=-1
34616   while :; do
34617     cat >conftest.$ac_ext <<_ACEOF
34618 /* confdefs.h.  */
34619 _ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h.  */
34623 $ac_includes_default
34624    typedef long long ac__type_sizeof_;
34625 int
34626 main ()
34627 {
34628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34629 test_array [0] = 0
34630
34631   ;
34632   return 0;
34633 }
34634 _ACEOF
34635 rm -f conftest.$ac_objext
34636 if { (ac_try="$ac_compile"
34637 case "(($ac_try" in
34638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34639   *) ac_try_echo=$ac_try;;
34640 esac
34641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34642   (eval "$ac_compile") 2>conftest.er1
34643   ac_status=$?
34644   grep -v '^ *+' conftest.er1 >conftest.err
34645   rm -f conftest.er1
34646   cat conftest.err >&5
34647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648   (exit $ac_status); } && {
34649          test -z "$ac_c_werror_flag" ||
34650          test ! -s conftest.err
34651        } && test -s conftest.$ac_objext; then
34652   ac_lo=$ac_mid; break
34653 else
34654   echo "$as_me: failed program was:" >&5
34655 sed 's/^/| /' conftest.$ac_ext >&5
34656
34657         ac_hi=`expr '(' $ac_mid ')' - 1`
34658                         if test $ac_mid -le $ac_hi; then
34659                           ac_lo= ac_hi=
34660                           break
34661                         fi
34662                         ac_mid=`expr 2 '*' $ac_mid`
34663 fi
34664
34665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34666   done
34667 else
34668   echo "$as_me: failed program was:" >&5
34669 sed 's/^/| /' conftest.$ac_ext >&5
34670
34671         ac_lo= ac_hi=
34672 fi
34673
34674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34675 fi
34676
34677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34678 # Binary search between lo and hi bounds.
34679 while test "x$ac_lo" != "x$ac_hi"; do
34680   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34681   cat >conftest.$ac_ext <<_ACEOF
34682 /* confdefs.h.  */
34683 _ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h.  */
34687 $ac_includes_default
34688    typedef long long ac__type_sizeof_;
34689 int
34690 main ()
34691 {
34692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34693 test_array [0] = 0
34694
34695   ;
34696   return 0;
34697 }
34698 _ACEOF
34699 rm -f conftest.$ac_objext
34700 if { (ac_try="$ac_compile"
34701 case "(($ac_try" in
34702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703   *) ac_try_echo=$ac_try;;
34704 esac
34705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34706   (eval "$ac_compile") 2>conftest.er1
34707   ac_status=$?
34708   grep -v '^ *+' conftest.er1 >conftest.err
34709   rm -f conftest.er1
34710   cat conftest.err >&5
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); } && {
34713          test -z "$ac_c_werror_flag" ||
34714          test ! -s conftest.err
34715        } && test -s conftest.$ac_objext; then
34716   ac_hi=$ac_mid
34717 else
34718   echo "$as_me: failed program was:" >&5
34719 sed 's/^/| /' conftest.$ac_ext >&5
34720
34721         ac_lo=`expr '(' $ac_mid ')' + 1`
34722 fi
34723
34724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34725 done
34726 case $ac_lo in
34727 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34728 '') if test "$ac_cv_type_long_long" = yes; then
34729      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34730 See \`config.log' for more details." >&5
34731 echo "$as_me: error: cannot compute sizeof (long long)
34732 See \`config.log' for more details." >&2;}
34733    { (exit 77); exit 77; }; }
34734    else
34735      ac_cv_sizeof_long_long=0
34736    fi ;;
34737 esac
34738 else
34739   cat >conftest.$ac_ext <<_ACEOF
34740 /* confdefs.h.  */
34741 _ACEOF
34742 cat confdefs.h >>conftest.$ac_ext
34743 cat >>conftest.$ac_ext <<_ACEOF
34744 /* end confdefs.h.  */
34745 $ac_includes_default
34746    typedef long long ac__type_sizeof_;
34747 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34748 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34749 #include <stdio.h>
34750 #include <stdlib.h>
34751 int
34752 main ()
34753 {
34754
34755   FILE *f = fopen ("conftest.val", "w");
34756   if (! f)
34757     return 1;
34758   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34759     {
34760       long int i = longval ();
34761       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34762         return 1;
34763       fprintf (f, "%ld\n", i);
34764     }
34765   else
34766     {
34767       unsigned long int i = ulongval ();
34768       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34769         return 1;
34770       fprintf (f, "%lu\n", i);
34771     }
34772   return ferror (f) || fclose (f) != 0;
34773
34774   ;
34775   return 0;
34776 }
34777 _ACEOF
34778 rm -f conftest$ac_exeext
34779 if { (ac_try="$ac_link"
34780 case "(($ac_try" in
34781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34782   *) ac_try_echo=$ac_try;;
34783 esac
34784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785   (eval "$ac_link") 2>&5
34786   ac_status=$?
34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34789   { (case "(($ac_try" in
34790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34791   *) ac_try_echo=$ac_try;;
34792 esac
34793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34794   (eval "$ac_try") 2>&5
34795   ac_status=$?
34796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797   (exit $ac_status); }; }; then
34798   ac_cv_sizeof_long_long=`cat conftest.val`
34799 else
34800   echo "$as_me: program exited with status $ac_status" >&5
34801 echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34803
34804 ( exit $ac_status )
34805 if test "$ac_cv_type_long_long" = yes; then
34806      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34807 See \`config.log' for more details." >&5
34808 echo "$as_me: error: cannot compute sizeof (long long)
34809 See \`config.log' for more details." >&2;}
34810    { (exit 77); exit 77; }; }
34811    else
34812      ac_cv_sizeof_long_long=0
34813    fi
34814 fi
34815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34816 fi
34817 rm -f conftest.val
34818 fi
34819 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34820 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34821
34822
34823
34824 cat >>confdefs.h <<_ACEOF
34825 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34826 _ACEOF
34827
34828
34829 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34830 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34831 if test "${ac_cv_type_wchar_t+set}" = set; then
34832   echo $ECHO_N "(cached) $ECHO_C" >&6
34833 else
34834   cat >conftest.$ac_ext <<_ACEOF
34835 /* confdefs.h.  */
34836 _ACEOF
34837 cat confdefs.h >>conftest.$ac_ext
34838 cat >>conftest.$ac_ext <<_ACEOF
34839 /* end confdefs.h.  */
34840 $ac_includes_default
34841 typedef wchar_t ac__type_new_;
34842 int
34843 main ()
34844 {
34845 if ((ac__type_new_ *) 0)
34846   return 0;
34847 if (sizeof (ac__type_new_))
34848   return 0;
34849   ;
34850   return 0;
34851 }
34852 _ACEOF
34853 rm -f conftest.$ac_objext
34854 if { (ac_try="$ac_compile"
34855 case "(($ac_try" in
34856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34857   *) ac_try_echo=$ac_try;;
34858 esac
34859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34860   (eval "$ac_compile") 2>conftest.er1
34861   ac_status=$?
34862   grep -v '^ *+' conftest.er1 >conftest.err
34863   rm -f conftest.er1
34864   cat conftest.err >&5
34865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866   (exit $ac_status); } && {
34867          test -z "$ac_c_werror_flag" ||
34868          test ! -s conftest.err
34869        } && test -s conftest.$ac_objext; then
34870   ac_cv_type_wchar_t=yes
34871 else
34872   echo "$as_me: failed program was:" >&5
34873 sed 's/^/| /' conftest.$ac_ext >&5
34874
34875         ac_cv_type_wchar_t=no
34876 fi
34877
34878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34879 fi
34880 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34881 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34882
34883 # The cast to long int works around a bug in the HP C Compiler
34884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34886 # This bug is HP SR number 8606223364.
34887 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34888 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34889 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34890   echo $ECHO_N "(cached) $ECHO_C" >&6
34891 else
34892   if test "$cross_compiling" = yes; then
34893   # Depending upon the size, compute the lo and hi bounds.
34894 cat >conftest.$ac_ext <<_ACEOF
34895 /* confdefs.h.  */
34896 _ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h.  */
34900 $ac_includes_default
34901    typedef wchar_t ac__type_sizeof_;
34902 int
34903 main ()
34904 {
34905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34906 test_array [0] = 0
34907
34908   ;
34909   return 0;
34910 }
34911 _ACEOF
34912 rm -f conftest.$ac_objext
34913 if { (ac_try="$ac_compile"
34914 case "(($ac_try" in
34915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916   *) ac_try_echo=$ac_try;;
34917 esac
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919   (eval "$ac_compile") 2>conftest.er1
34920   ac_status=$?
34921   grep -v '^ *+' conftest.er1 >conftest.err
34922   rm -f conftest.er1
34923   cat conftest.err >&5
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && {
34926          test -z "$ac_c_werror_flag" ||
34927          test ! -s conftest.err
34928        } && test -s conftest.$ac_objext; then
34929   ac_lo=0 ac_mid=0
34930   while :; do
34931     cat >conftest.$ac_ext <<_ACEOF
34932 /* confdefs.h.  */
34933 _ACEOF
34934 cat confdefs.h >>conftest.$ac_ext
34935 cat >>conftest.$ac_ext <<_ACEOF
34936 /* end confdefs.h.  */
34937 $ac_includes_default
34938    typedef wchar_t ac__type_sizeof_;
34939 int
34940 main ()
34941 {
34942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34943 test_array [0] = 0
34944
34945   ;
34946   return 0;
34947 }
34948 _ACEOF
34949 rm -f conftest.$ac_objext
34950 if { (ac_try="$ac_compile"
34951 case "(($ac_try" in
34952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34953   *) ac_try_echo=$ac_try;;
34954 esac
34955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34956   (eval "$ac_compile") 2>conftest.er1
34957   ac_status=$?
34958   grep -v '^ *+' conftest.er1 >conftest.err
34959   rm -f conftest.er1
34960   cat conftest.err >&5
34961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962   (exit $ac_status); } && {
34963          test -z "$ac_c_werror_flag" ||
34964          test ! -s conftest.err
34965        } && test -s conftest.$ac_objext; then
34966   ac_hi=$ac_mid; break
34967 else
34968   echo "$as_me: failed program was:" >&5
34969 sed 's/^/| /' conftest.$ac_ext >&5
34970
34971         ac_lo=`expr $ac_mid + 1`
34972                         if test $ac_lo -le $ac_mid; then
34973                           ac_lo= ac_hi=
34974                           break
34975                         fi
34976                         ac_mid=`expr 2 '*' $ac_mid + 1`
34977 fi
34978
34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980   done
34981 else
34982   echo "$as_me: failed program was:" >&5
34983 sed 's/^/| /' conftest.$ac_ext >&5
34984
34985         cat >conftest.$ac_ext <<_ACEOF
34986 /* confdefs.h.  */
34987 _ACEOF
34988 cat confdefs.h >>conftest.$ac_ext
34989 cat >>conftest.$ac_ext <<_ACEOF
34990 /* end confdefs.h.  */
34991 $ac_includes_default
34992    typedef wchar_t ac__type_sizeof_;
34993 int
34994 main ()
34995 {
34996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34997 test_array [0] = 0
34998
34999   ;
35000   return 0;
35001 }
35002 _ACEOF
35003 rm -f conftest.$ac_objext
35004 if { (ac_try="$ac_compile"
35005 case "(($ac_try" in
35006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35007   *) ac_try_echo=$ac_try;;
35008 esac
35009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35010   (eval "$ac_compile") 2>conftest.er1
35011   ac_status=$?
35012   grep -v '^ *+' conftest.er1 >conftest.err
35013   rm -f conftest.er1
35014   cat conftest.err >&5
35015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016   (exit $ac_status); } && {
35017          test -z "$ac_c_werror_flag" ||
35018          test ! -s conftest.err
35019        } && test -s conftest.$ac_objext; then
35020   ac_hi=-1 ac_mid=-1
35021   while :; do
35022     cat >conftest.$ac_ext <<_ACEOF
35023 /* confdefs.h.  */
35024 _ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h.  */
35028 $ac_includes_default
35029    typedef wchar_t ac__type_sizeof_;
35030 int
35031 main ()
35032 {
35033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35034 test_array [0] = 0
35035
35036   ;
35037   return 0;
35038 }
35039 _ACEOF
35040 rm -f conftest.$ac_objext
35041 if { (ac_try="$ac_compile"
35042 case "(($ac_try" in
35043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35044   *) ac_try_echo=$ac_try;;
35045 esac
35046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35047   (eval "$ac_compile") 2>conftest.er1
35048   ac_status=$?
35049   grep -v '^ *+' conftest.er1 >conftest.err
35050   rm -f conftest.er1
35051   cat conftest.err >&5
35052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053   (exit $ac_status); } && {
35054          test -z "$ac_c_werror_flag" ||
35055          test ! -s conftest.err
35056        } && test -s conftest.$ac_objext; then
35057   ac_lo=$ac_mid; break
35058 else
35059   echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35061
35062         ac_hi=`expr '(' $ac_mid ')' - 1`
35063                         if test $ac_mid -le $ac_hi; then
35064                           ac_lo= ac_hi=
35065                           break
35066                         fi
35067                         ac_mid=`expr 2 '*' $ac_mid`
35068 fi
35069
35070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35071   done
35072 else
35073   echo "$as_me: failed program was:" >&5
35074 sed 's/^/| /' conftest.$ac_ext >&5
35075
35076         ac_lo= ac_hi=
35077 fi
35078
35079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35080 fi
35081
35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35083 # Binary search between lo and hi bounds.
35084 while test "x$ac_lo" != "x$ac_hi"; do
35085   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35086   cat >conftest.$ac_ext <<_ACEOF
35087 /* confdefs.h.  */
35088 _ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h.  */
35092 $ac_includes_default
35093    typedef wchar_t ac__type_sizeof_;
35094 int
35095 main ()
35096 {
35097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35098 test_array [0] = 0
35099
35100   ;
35101   return 0;
35102 }
35103 _ACEOF
35104 rm -f conftest.$ac_objext
35105 if { (ac_try="$ac_compile"
35106 case "(($ac_try" in
35107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35108   *) ac_try_echo=$ac_try;;
35109 esac
35110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35111   (eval "$ac_compile") 2>conftest.er1
35112   ac_status=$?
35113   grep -v '^ *+' conftest.er1 >conftest.err
35114   rm -f conftest.er1
35115   cat conftest.err >&5
35116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117   (exit $ac_status); } && {
35118          test -z "$ac_c_werror_flag" ||
35119          test ! -s conftest.err
35120        } && test -s conftest.$ac_objext; then
35121   ac_hi=$ac_mid
35122 else
35123   echo "$as_me: failed program was:" >&5
35124 sed 's/^/| /' conftest.$ac_ext >&5
35125
35126         ac_lo=`expr '(' $ac_mid ')' + 1`
35127 fi
35128
35129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35130 done
35131 case $ac_lo in
35132 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35133 '') if test "$ac_cv_type_wchar_t" = yes; then
35134      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35135 See \`config.log' for more details." >&5
35136 echo "$as_me: error: cannot compute sizeof (wchar_t)
35137 See \`config.log' for more details." >&2;}
35138    { (exit 77); exit 77; }; }
35139    else
35140      ac_cv_sizeof_wchar_t=0
35141    fi ;;
35142 esac
35143 else
35144   cat >conftest.$ac_ext <<_ACEOF
35145 /* confdefs.h.  */
35146 _ACEOF
35147 cat confdefs.h >>conftest.$ac_ext
35148 cat >>conftest.$ac_ext <<_ACEOF
35149 /* end confdefs.h.  */
35150 $ac_includes_default
35151    typedef wchar_t ac__type_sizeof_;
35152 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35153 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35154 #include <stdio.h>
35155 #include <stdlib.h>
35156 int
35157 main ()
35158 {
35159
35160   FILE *f = fopen ("conftest.val", "w");
35161   if (! f)
35162     return 1;
35163   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35164     {
35165       long int i = longval ();
35166       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35167         return 1;
35168       fprintf (f, "%ld\n", i);
35169     }
35170   else
35171     {
35172       unsigned long int i = ulongval ();
35173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35174         return 1;
35175       fprintf (f, "%lu\n", i);
35176     }
35177   return ferror (f) || fclose (f) != 0;
35178
35179   ;
35180   return 0;
35181 }
35182 _ACEOF
35183 rm -f conftest$ac_exeext
35184 if { (ac_try="$ac_link"
35185 case "(($ac_try" in
35186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187   *) ac_try_echo=$ac_try;;
35188 esac
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190   (eval "$ac_link") 2>&5
35191   ac_status=$?
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35194   { (case "(($ac_try" in
35195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35196   *) ac_try_echo=$ac_try;;
35197 esac
35198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35199   (eval "$ac_try") 2>&5
35200   ac_status=$?
35201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202   (exit $ac_status); }; }; then
35203   ac_cv_sizeof_wchar_t=`cat conftest.val`
35204 else
35205   echo "$as_me: program exited with status $ac_status" >&5
35206 echo "$as_me: failed program was:" >&5
35207 sed 's/^/| /' conftest.$ac_ext >&5
35208
35209 ( exit $ac_status )
35210 if test "$ac_cv_type_wchar_t" = yes; then
35211      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35212 See \`config.log' for more details." >&5
35213 echo "$as_me: error: cannot compute sizeof (wchar_t)
35214 See \`config.log' for more details." >&2;}
35215    { (exit 77); exit 77; }; }
35216    else
35217      ac_cv_sizeof_wchar_t=0
35218    fi
35219 fi
35220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35221 fi
35222 rm -f conftest.val
35223 fi
35224 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35225 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35226
35227
35228
35229 cat >>confdefs.h <<_ACEOF
35230 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35231 _ACEOF
35232
35233
35234
35235 if test "$ac_cv_sizeof_int" -lt 4 ; then
35236         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35237 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35238
35239
35240 cat >>confdefs.h <<\_ACEOF
35241 #define LBER_INT_T long
35242 _ACEOF
35243
35244 else
35245
35246 cat >>confdefs.h <<\_ACEOF
35247 #define LBER_INT_T int
35248 _ACEOF
35249
35250 fi
35251
35252
35253 cat >>confdefs.h <<\_ACEOF
35254 #define LBER_LEN_T long
35255 _ACEOF
35256
35257
35258 cat >>confdefs.h <<\_ACEOF
35259 #define LBER_SOCKET_T int
35260 _ACEOF
35261
35262
35263 cat >>confdefs.h <<\_ACEOF
35264 #define LBER_TAG_T long
35265 _ACEOF
35266
35267
35268 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35269         if test $ac_cv_sizeof_long_long -gt 4 ; then
35270                 ol_with_mp=longlong
35271
35272 cat >>confdefs.h <<\_ACEOF
35273 #define USE_MP_LONG_LONG 1
35274 _ACEOF
35275
35276         elif test $ol_with_mp = longlong ; then
35277                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35278 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35279    { (exit 1); exit 1; }; }
35280         fi
35281 fi
35282 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35283         if test $ac_cv_sizeof_long -gt 4 ; then
35284                 ol_with_mp=long
35285
35286 cat >>confdefs.h <<\_ACEOF
35287 #define USE_MP_LONG 1
35288 _ACEOF
35289
35290         elif test $ol_with_mp = long ; then
35291                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35292 echo "$as_me: error: long unusable for multiple precision" >&2;}
35293    { (exit 1); exit 1; }; }
35294         fi
35295 fi
35296 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35297
35298 for ac_header in openssl/bn.h
35299 do
35300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35302   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305   echo $ECHO_N "(cached) $ECHO_C" >&6
35306 fi
35307 ac_res=`eval echo '${'$as_ac_Header'}'`
35308                { echo "$as_me:$LINENO: result: $ac_res" >&5
35309 echo "${ECHO_T}$ac_res" >&6; }
35310 else
35311   # Is the header compilable?
35312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35314 cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 $ac_includes_default
35321 #include <$ac_header>
35322 _ACEOF
35323 rm -f conftest.$ac_objext
35324 if { (ac_try="$ac_compile"
35325 case "(($ac_try" in
35326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35327   *) ac_try_echo=$ac_try;;
35328 esac
35329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35330   (eval "$ac_compile") 2>conftest.er1
35331   ac_status=$?
35332   grep -v '^ *+' conftest.er1 >conftest.err
35333   rm -f conftest.er1
35334   cat conftest.err >&5
35335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336   (exit $ac_status); } && {
35337          test -z "$ac_c_werror_flag" ||
35338          test ! -s conftest.err
35339        } && test -s conftest.$ac_objext; then
35340   ac_header_compiler=yes
35341 else
35342   echo "$as_me: failed program was:" >&5
35343 sed 's/^/| /' conftest.$ac_ext >&5
35344
35345         ac_header_compiler=no
35346 fi
35347
35348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35350 echo "${ECHO_T}$ac_header_compiler" >&6; }
35351
35352 # Is the header present?
35353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35355 cat >conftest.$ac_ext <<_ACEOF
35356 /* confdefs.h.  */
35357 _ACEOF
35358 cat confdefs.h >>conftest.$ac_ext
35359 cat >>conftest.$ac_ext <<_ACEOF
35360 /* end confdefs.h.  */
35361 #include <$ac_header>
35362 _ACEOF
35363 if { (ac_try="$ac_cpp conftest.$ac_ext"
35364 case "(($ac_try" in
35365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35366   *) ac_try_echo=$ac_try;;
35367 esac
35368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35370   ac_status=$?
35371   grep -v '^ *+' conftest.er1 >conftest.err
35372   rm -f conftest.er1
35373   cat conftest.err >&5
35374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375   (exit $ac_status); } >/dev/null && {
35376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35377          test ! -s conftest.err
35378        }; then
35379   ac_header_preproc=yes
35380 else
35381   echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35383
35384   ac_header_preproc=no
35385 fi
35386
35387 rm -f conftest.err conftest.$ac_ext
35388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35389 echo "${ECHO_T}$ac_header_preproc" >&6; }
35390
35391 # So?  What about this header?
35392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35393   yes:no: )
35394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35398     ac_header_preproc=yes
35399     ;;
35400   no:yes:* )
35401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35413     ( cat <<\_ASBOX
35414 ## --------------------------------------------- ##
35415 ## Report this to <http://www.openldap.org/its/> ##
35416 ## --------------------------------------------- ##
35417 _ASBOX
35418      ) | sed "s/^/$as_me: WARNING:     /" >&2
35419     ;;
35420 esac
35421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35424   echo $ECHO_N "(cached) $ECHO_C" >&6
35425 else
35426   eval "$as_ac_Header=\$ac_header_preproc"
35427 fi
35428 ac_res=`eval echo '${'$as_ac_Header'}'`
35429                { echo "$as_me:$LINENO: result: $ac_res" >&5
35430 echo "${ECHO_T}$ac_res" >&6; }
35431
35432 fi
35433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35434   cat >>confdefs.h <<_ACEOF
35435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35436 _ACEOF
35437
35438 fi
35439
35440 done
35441
35442
35443 for ac_header in openssl/crypto.h
35444 do
35445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35447   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35450   echo $ECHO_N "(cached) $ECHO_C" >&6
35451 fi
35452 ac_res=`eval echo '${'$as_ac_Header'}'`
35453                { echo "$as_me:$LINENO: result: $ac_res" >&5
35454 echo "${ECHO_T}$ac_res" >&6; }
35455 else
35456   # Is the header compilable?
35457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35459 cat >conftest.$ac_ext <<_ACEOF
35460 /* confdefs.h.  */
35461 _ACEOF
35462 cat confdefs.h >>conftest.$ac_ext
35463 cat >>conftest.$ac_ext <<_ACEOF
35464 /* end confdefs.h.  */
35465 $ac_includes_default
35466 #include <$ac_header>
35467 _ACEOF
35468 rm -f conftest.$ac_objext
35469 if { (ac_try="$ac_compile"
35470 case "(($ac_try" in
35471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35472   *) ac_try_echo=$ac_try;;
35473 esac
35474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35475   (eval "$ac_compile") 2>conftest.er1
35476   ac_status=$?
35477   grep -v '^ *+' conftest.er1 >conftest.err
35478   rm -f conftest.er1
35479   cat conftest.err >&5
35480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481   (exit $ac_status); } && {
35482          test -z "$ac_c_werror_flag" ||
35483          test ! -s conftest.err
35484        } && test -s conftest.$ac_objext; then
35485   ac_header_compiler=yes
35486 else
35487   echo "$as_me: failed program was:" >&5
35488 sed 's/^/| /' conftest.$ac_ext >&5
35489
35490         ac_header_compiler=no
35491 fi
35492
35493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35495 echo "${ECHO_T}$ac_header_compiler" >&6; }
35496
35497 # Is the header present?
35498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35500 cat >conftest.$ac_ext <<_ACEOF
35501 /* confdefs.h.  */
35502 _ACEOF
35503 cat confdefs.h >>conftest.$ac_ext
35504 cat >>conftest.$ac_ext <<_ACEOF
35505 /* end confdefs.h.  */
35506 #include <$ac_header>
35507 _ACEOF
35508 if { (ac_try="$ac_cpp conftest.$ac_ext"
35509 case "(($ac_try" in
35510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35511   *) ac_try_echo=$ac_try;;
35512 esac
35513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35515   ac_status=$?
35516   grep -v '^ *+' conftest.er1 >conftest.err
35517   rm -f conftest.er1
35518   cat conftest.err >&5
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); } >/dev/null && {
35521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35522          test ! -s conftest.err
35523        }; then
35524   ac_header_preproc=yes
35525 else
35526   echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35528
35529   ac_header_preproc=no
35530 fi
35531
35532 rm -f conftest.err conftest.$ac_ext
35533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35534 echo "${ECHO_T}$ac_header_preproc" >&6; }
35535
35536 # So?  What about this header?
35537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35538   yes:no: )
35539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35543     ac_header_preproc=yes
35544     ;;
35545   no:yes:* )
35546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35558     ( cat <<\_ASBOX
35559 ## --------------------------------------------- ##
35560 ## Report this to <http://www.openldap.org/its/> ##
35561 ## --------------------------------------------- ##
35562 _ASBOX
35563      ) | sed "s/^/$as_me: WARNING:     /" >&2
35564     ;;
35565 esac
35566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35569   echo $ECHO_N "(cached) $ECHO_C" >&6
35570 else
35571   eval "$as_ac_Header=\$ac_header_preproc"
35572 fi
35573 ac_res=`eval echo '${'$as_ac_Header'}'`
35574                { echo "$as_me:$LINENO: result: $ac_res" >&5
35575 echo "${ECHO_T}$ac_res" >&6; }
35576
35577 fi
35578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35579   cat >>confdefs.h <<_ACEOF
35580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35581 _ACEOF
35582
35583 fi
35584
35585 done
35586
35587         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35588                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35589                 test "$ol_with_tls" = "found" ; then
35590                 ol_with_mp=bignum
35591
35592 cat >>confdefs.h <<\_ACEOF
35593 #define USE_MP_BIGNUM 1
35594 _ACEOF
35595
35596         elif test $ol_with_mp = bignum ; then
35597                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35598 echo "$as_me: error: bignum not available" >&2;}
35599    { (exit 1); exit 1; }; }
35600         fi
35601 fi
35602 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35603
35604 for ac_header in gmp.h
35605 do
35606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35608   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35611   echo $ECHO_N "(cached) $ECHO_C" >&6
35612 fi
35613 ac_res=`eval echo '${'$as_ac_Header'}'`
35614                { echo "$as_me:$LINENO: result: $ac_res" >&5
35615 echo "${ECHO_T}$ac_res" >&6; }
35616 else
35617   # Is the header compilable?
35618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35620 cat >conftest.$ac_ext <<_ACEOF
35621 /* confdefs.h.  */
35622 _ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h.  */
35626 $ac_includes_default
35627 #include <$ac_header>
35628 _ACEOF
35629 rm -f conftest.$ac_objext
35630 if { (ac_try="$ac_compile"
35631 case "(($ac_try" in
35632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35633   *) ac_try_echo=$ac_try;;
35634 esac
35635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35636   (eval "$ac_compile") 2>conftest.er1
35637   ac_status=$?
35638   grep -v '^ *+' conftest.er1 >conftest.err
35639   rm -f conftest.er1
35640   cat conftest.err >&5
35641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642   (exit $ac_status); } && {
35643          test -z "$ac_c_werror_flag" ||
35644          test ! -s conftest.err
35645        } && test -s conftest.$ac_objext; then
35646   ac_header_compiler=yes
35647 else
35648   echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35650
35651         ac_header_compiler=no
35652 fi
35653
35654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35656 echo "${ECHO_T}$ac_header_compiler" >&6; }
35657
35658 # Is the header present?
35659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35661 cat >conftest.$ac_ext <<_ACEOF
35662 /* confdefs.h.  */
35663 _ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h.  */
35667 #include <$ac_header>
35668 _ACEOF
35669 if { (ac_try="$ac_cpp conftest.$ac_ext"
35670 case "(($ac_try" in
35671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35672   *) ac_try_echo=$ac_try;;
35673 esac
35674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35676   ac_status=$?
35677   grep -v '^ *+' conftest.er1 >conftest.err
35678   rm -f conftest.er1
35679   cat conftest.err >&5
35680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681   (exit $ac_status); } >/dev/null && {
35682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35683          test ! -s conftest.err
35684        }; then
35685   ac_header_preproc=yes
35686 else
35687   echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.$ac_ext >&5
35689
35690   ac_header_preproc=no
35691 fi
35692
35693 rm -f conftest.err conftest.$ac_ext
35694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35695 echo "${ECHO_T}$ac_header_preproc" >&6; }
35696
35697 # So?  What about this header?
35698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35699   yes:no: )
35700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35704     ac_header_preproc=yes
35705     ;;
35706   no:yes:* )
35707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35719     ( cat <<\_ASBOX
35720 ## --------------------------------------------- ##
35721 ## Report this to <http://www.openldap.org/its/> ##
35722 ## --------------------------------------------- ##
35723 _ASBOX
35724      ) | sed "s/^/$as_me: WARNING:     /" >&2
35725     ;;
35726 esac
35727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35730   echo $ECHO_N "(cached) $ECHO_C" >&6
35731 else
35732   eval "$as_ac_Header=\$ac_header_preproc"
35733 fi
35734 ac_res=`eval echo '${'$as_ac_Header'}'`
35735                { echo "$as_me:$LINENO: result: $ac_res" >&5
35736 echo "${ECHO_T}$ac_res" >&6; }
35737
35738 fi
35739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35740   cat >>confdefs.h <<_ACEOF
35741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35742 _ACEOF
35743
35744 fi
35745
35746 done
35747
35748
35749 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35750 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35751 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35752   echo $ECHO_N "(cached) $ECHO_C" >&6
35753 else
35754   ac_check_lib_save_LIBS=$LIBS
35755 LIBS="-lgmp  $LIBS"
35756 cat >conftest.$ac_ext <<_ACEOF
35757 /* confdefs.h.  */
35758 _ACEOF
35759 cat confdefs.h >>conftest.$ac_ext
35760 cat >>conftest.$ac_ext <<_ACEOF
35761 /* end confdefs.h.  */
35762
35763 /* Override any GCC internal prototype to avoid an error.
35764    Use char because int might match the return type of a GCC
35765    builtin and then its argument prototype would still apply.  */
35766 #ifdef __cplusplus
35767 extern "C"
35768 #endif
35769 char __gmpz_add_ui ();
35770 int
35771 main ()
35772 {
35773 return __gmpz_add_ui ();
35774   ;
35775   return 0;
35776 }
35777 _ACEOF
35778 rm -f conftest.$ac_objext conftest$ac_exeext
35779 if { (ac_try="$ac_link"
35780 case "(($ac_try" in
35781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35782   *) ac_try_echo=$ac_try;;
35783 esac
35784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35785   (eval "$ac_link") 2>conftest.er1
35786   ac_status=$?
35787   grep -v '^ *+' conftest.er1 >conftest.err
35788   rm -f conftest.er1
35789   cat conftest.err >&5
35790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791   (exit $ac_status); } && {
35792          test -z "$ac_c_werror_flag" ||
35793          test ! -s conftest.err
35794        } && test -s conftest$ac_exeext &&
35795        $as_test_x conftest$ac_exeext; then
35796   ac_cv_lib_gmp___gmpz_add_ui=yes
35797 else
35798   echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35800
35801         ac_cv_lib_gmp___gmpz_add_ui=no
35802 fi
35803
35804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35805       conftest$ac_exeext conftest.$ac_ext
35806 LIBS=$ac_check_lib_save_LIBS
35807 fi
35808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35809 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35810 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35811   cat >>confdefs.h <<_ACEOF
35812 #define HAVE_LIBGMP 1
35813 _ACEOF
35814
35815   LIBS="-lgmp $LIBS"
35816
35817 fi
35818
35819         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35820
35821 cat >>confdefs.h <<\_ACEOF
35822 #define USE_MP_GMP 1
35823 _ACEOF
35824
35825                 ol_with_mp=gmp
35826         elif test $ol_with_mp = gmp ; then
35827                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35828 echo "$as_me: error: gmp not available" >&2;}
35829    { (exit 1); exit 1; }; }
35830         fi
35831 fi
35832 if test $ol_with_mp = auto ; then
35833         ol_with_mp=no
35834 fi
35835
35836 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35837 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35838 if test "${ac_cv_func_memcmp_working+set}" = set; then
35839   echo $ECHO_N "(cached) $ECHO_C" >&6
35840 else
35841   if test "$cross_compiling" = yes; then
35842   ac_cv_func_memcmp_working=no
35843 else
35844   cat >conftest.$ac_ext <<_ACEOF
35845 /* confdefs.h.  */
35846 _ACEOF
35847 cat confdefs.h >>conftest.$ac_ext
35848 cat >>conftest.$ac_ext <<_ACEOF
35849 /* end confdefs.h.  */
35850 $ac_includes_default
35851 int
35852 main ()
35853 {
35854
35855   /* Some versions of memcmp are not 8-bit clean.  */
35856   char c0 = '\100', c1 = '\200', c2 = '\201';
35857   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35858     return 1;
35859
35860   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35861      or more and with at least one buffer not starting on a 4-byte boundary.
35862      William Lewis provided this test program.   */
35863   {
35864     char foo[21];
35865     char bar[21];
35866     int i;
35867     for (i = 0; i < 4; i++)
35868       {
35869         char *a = foo + i;
35870         char *b = bar + i;
35871         strcpy (a, "--------01111111");
35872         strcpy (b, "--------10000000");
35873         if (memcmp (a, b, 16) >= 0)
35874           return 1;
35875       }
35876     return 0;
35877   }
35878
35879   ;
35880   return 0;
35881 }
35882 _ACEOF
35883 rm -f conftest$ac_exeext
35884 if { (ac_try="$ac_link"
35885 case "(($ac_try" in
35886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35887   *) ac_try_echo=$ac_try;;
35888 esac
35889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35890   (eval "$ac_link") 2>&5
35891   ac_status=$?
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35894   { (case "(($ac_try" in
35895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896   *) ac_try_echo=$ac_try;;
35897 esac
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899   (eval "$ac_try") 2>&5
35900   ac_status=$?
35901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902   (exit $ac_status); }; }; then
35903   ac_cv_func_memcmp_working=yes
35904 else
35905   echo "$as_me: program exited with status $ac_status" >&5
35906 echo "$as_me: failed program was:" >&5
35907 sed 's/^/| /' conftest.$ac_ext >&5
35908
35909 ( exit $ac_status )
35910 ac_cv_func_memcmp_working=no
35911 fi
35912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35913 fi
35914
35915
35916 fi
35917 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35918 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35919 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35920   *" memcmp.$ac_objext "* ) ;;
35921   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35922  ;;
35923 esac
35924
35925
35926
35927 if test $ac_cv_func_memcmp_working = no ; then
35928
35929 cat >>confdefs.h <<\_ACEOF
35930 #define NEED_MEMCMP_REPLACEMENT 1
35931 _ACEOF
35932
35933 fi
35934
35935
35936 for ac_func in strftime
35937 do
35938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35942   echo $ECHO_N "(cached) $ECHO_C" >&6
35943 else
35944   cat >conftest.$ac_ext <<_ACEOF
35945 /* confdefs.h.  */
35946 _ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h.  */
35950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35952 #define $ac_func innocuous_$ac_func
35953
35954 /* System header to define __stub macros and hopefully few prototypes,
35955     which can conflict with char $ac_func (); below.
35956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35957     <limits.h> exists even on freestanding compilers.  */
35958
35959 #ifdef __STDC__
35960 # include <limits.h>
35961 #else
35962 # include <assert.h>
35963 #endif
35964
35965 #undef $ac_func
35966
35967 /* Override any GCC internal prototype to avoid an error.
35968    Use char because int might match the return type of a GCC
35969    builtin and then its argument prototype would still apply.  */
35970 #ifdef __cplusplus
35971 extern "C"
35972 #endif
35973 char $ac_func ();
35974 /* The GNU C library defines this for functions which it implements
35975     to always fail with ENOSYS.  Some functions are actually named
35976     something starting with __ and the normal name is an alias.  */
35977 #if defined __stub_$ac_func || defined __stub___$ac_func
35978 choke me
35979 #endif
35980
35981 int
35982 main ()
35983 {
35984 return $ac_func ();
35985   ;
35986   return 0;
35987 }
35988 _ACEOF
35989 rm -f conftest.$ac_objext conftest$ac_exeext
35990 if { (ac_try="$ac_link"
35991 case "(($ac_try" in
35992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35993   *) ac_try_echo=$ac_try;;
35994 esac
35995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35996   (eval "$ac_link") 2>conftest.er1
35997   ac_status=$?
35998   grep -v '^ *+' conftest.er1 >conftest.err
35999   rm -f conftest.er1
36000   cat conftest.err >&5
36001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); } && {
36003          test -z "$ac_c_werror_flag" ||
36004          test ! -s conftest.err
36005        } && test -s conftest$ac_exeext &&
36006        $as_test_x conftest$ac_exeext; then
36007   eval "$as_ac_var=yes"
36008 else
36009   echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36011
36012         eval "$as_ac_var=no"
36013 fi
36014
36015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36016       conftest$ac_exeext conftest.$ac_ext
36017 fi
36018 ac_res=`eval echo '${'$as_ac_var'}'`
36019                { echo "$as_me:$LINENO: result: $ac_res" >&5
36020 echo "${ECHO_T}$ac_res" >&6; }
36021 if test `eval echo '${'$as_ac_var'}'` = yes; then
36022   cat >>confdefs.h <<_ACEOF
36023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36024 _ACEOF
36025
36026 else
36027   # strftime is in -lintl on SCO UNIX.
36028 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36029 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36030 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36031   echo $ECHO_N "(cached) $ECHO_C" >&6
36032 else
36033   ac_check_lib_save_LIBS=$LIBS
36034 LIBS="-lintl  $LIBS"
36035 cat >conftest.$ac_ext <<_ACEOF
36036 /* confdefs.h.  */
36037 _ACEOF
36038 cat confdefs.h >>conftest.$ac_ext
36039 cat >>conftest.$ac_ext <<_ACEOF
36040 /* end confdefs.h.  */
36041
36042 /* Override any GCC internal prototype to avoid an error.
36043    Use char because int might match the return type of a GCC
36044    builtin and then its argument prototype would still apply.  */
36045 #ifdef __cplusplus
36046 extern "C"
36047 #endif
36048 char strftime ();
36049 int
36050 main ()
36051 {
36052 return strftime ();
36053   ;
36054   return 0;
36055 }
36056 _ACEOF
36057 rm -f conftest.$ac_objext conftest$ac_exeext
36058 if { (ac_try="$ac_link"
36059 case "(($ac_try" in
36060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36061   *) ac_try_echo=$ac_try;;
36062 esac
36063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36064   (eval "$ac_link") 2>conftest.er1
36065   ac_status=$?
36066   grep -v '^ *+' conftest.er1 >conftest.err
36067   rm -f conftest.er1
36068   cat conftest.err >&5
36069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070   (exit $ac_status); } && {
36071          test -z "$ac_c_werror_flag" ||
36072          test ! -s conftest.err
36073        } && test -s conftest$ac_exeext &&
36074        $as_test_x conftest$ac_exeext; then
36075   ac_cv_lib_intl_strftime=yes
36076 else
36077   echo "$as_me: failed program was:" >&5
36078 sed 's/^/| /' conftest.$ac_ext >&5
36079
36080         ac_cv_lib_intl_strftime=no
36081 fi
36082
36083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36084       conftest$ac_exeext conftest.$ac_ext
36085 LIBS=$ac_check_lib_save_LIBS
36086 fi
36087 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36088 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36089 if test $ac_cv_lib_intl_strftime = yes; then
36090   cat >>confdefs.h <<\_ACEOF
36091 #define HAVE_STRFTIME 1
36092 _ACEOF
36093
36094 LIBS="-lintl $LIBS"
36095 fi
36096
36097 fi
36098 done
36099
36100
36101 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36102 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36103 if test "${ol_cv_func_inet_aton+set}" = set; then
36104   echo $ECHO_N "(cached) $ECHO_C" >&6
36105 else
36106   cat >conftest.$ac_ext <<_ACEOF
36107 /* confdefs.h.  */
36108 _ACEOF
36109 cat confdefs.h >>conftest.$ac_ext
36110 cat >>conftest.$ac_ext <<_ACEOF
36111 /* end confdefs.h.  */
36112
36113 #ifdef HAVE_SYS_TYPES_H
36114 #       include <sys/types.h>
36115 #endif
36116 #ifdef HAVE_SYS_SOCKET_H
36117 #       include <sys/socket.h>
36118 #       ifdef HAVE_SYS_SELECT_H
36119 #               include <sys/select.h>
36120 #       endif
36121 #       include <netinet/in.h>
36122 #       ifdef HAVE_ARPA_INET_H
36123 #               include <arpa/inet.h>
36124 #       endif
36125 #endif
36126
36127 int
36128 main ()
36129 {
36130 struct in_addr in;
36131 int rc = inet_aton( "255.255.255.255", &in );
36132   ;
36133   return 0;
36134 }
36135 _ACEOF
36136 rm -f conftest.$ac_objext conftest$ac_exeext
36137 if { (ac_try="$ac_link"
36138 case "(($ac_try" in
36139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36140   *) ac_try_echo=$ac_try;;
36141 esac
36142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36143   (eval "$ac_link") 2>conftest.er1
36144   ac_status=$?
36145   grep -v '^ *+' conftest.er1 >conftest.err
36146   rm -f conftest.er1
36147   cat conftest.err >&5
36148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149   (exit $ac_status); } && {
36150          test -z "$ac_c_werror_flag" ||
36151          test ! -s conftest.err
36152        } && test -s conftest$ac_exeext &&
36153        $as_test_x conftest$ac_exeext; then
36154   ol_cv_func_inet_aton=yes
36155 else
36156   echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36158
36159         ol_cv_func_inet_aton=no
36160 fi
36161
36162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36163       conftest$ac_exeext conftest.$ac_ext
36164 fi
36165 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36166 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36167   if test $ol_cv_func_inet_aton != no; then
36168
36169 cat >>confdefs.h <<\_ACEOF
36170 #define HAVE_INET_ATON 1
36171 _ACEOF
36172
36173   fi
36174
36175
36176 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36177 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36178 if test "${ac_cv_func__spawnlp+set}" = set; then
36179   echo $ECHO_N "(cached) $ECHO_C" >&6
36180 else
36181   cat >conftest.$ac_ext <<_ACEOF
36182 /* confdefs.h.  */
36183 _ACEOF
36184 cat confdefs.h >>conftest.$ac_ext
36185 cat >>conftest.$ac_ext <<_ACEOF
36186 /* end confdefs.h.  */
36187 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36189 #define _spawnlp innocuous__spawnlp
36190
36191 /* System header to define __stub macros and hopefully few prototypes,
36192     which can conflict with char _spawnlp (); below.
36193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36194     <limits.h> exists even on freestanding compilers.  */
36195
36196 #ifdef __STDC__
36197 # include <limits.h>
36198 #else
36199 # include <assert.h>
36200 #endif
36201
36202 #undef _spawnlp
36203
36204 /* Override any GCC internal prototype to avoid an error.
36205    Use char because int might match the return type of a GCC
36206    builtin and then its argument prototype would still apply.  */
36207 #ifdef __cplusplus
36208 extern "C"
36209 #endif
36210 char _spawnlp ();
36211 /* The GNU C library defines this for functions which it implements
36212     to always fail with ENOSYS.  Some functions are actually named
36213     something starting with __ and the normal name is an alias.  */
36214 #if defined __stub__spawnlp || defined __stub____spawnlp
36215 choke me
36216 #endif
36217
36218 int
36219 main ()
36220 {
36221 return _spawnlp ();
36222   ;
36223   return 0;
36224 }
36225 _ACEOF
36226 rm -f conftest.$ac_objext conftest$ac_exeext
36227 if { (ac_try="$ac_link"
36228 case "(($ac_try" in
36229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36230   *) ac_try_echo=$ac_try;;
36231 esac
36232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36233   (eval "$ac_link") 2>conftest.er1
36234   ac_status=$?
36235   grep -v '^ *+' conftest.er1 >conftest.err
36236   rm -f conftest.er1
36237   cat conftest.err >&5
36238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239   (exit $ac_status); } && {
36240          test -z "$ac_c_werror_flag" ||
36241          test ! -s conftest.err
36242        } && test -s conftest$ac_exeext &&
36243        $as_test_x conftest$ac_exeext; then
36244   ac_cv_func__spawnlp=yes
36245 else
36246   echo "$as_me: failed program was:" >&5
36247 sed 's/^/| /' conftest.$ac_ext >&5
36248
36249         ac_cv_func__spawnlp=no
36250 fi
36251
36252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36253       conftest$ac_exeext conftest.$ac_ext
36254 fi
36255 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36256 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36257 if test $ac_cv_func__spawnlp = yes; then
36258
36259 cat >>confdefs.h <<\_ACEOF
36260 #define HAVE_SPAWNLP 1
36261 _ACEOF
36262
36263 fi
36264
36265
36266 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36267 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36268 if test "${ac_cv_func__snprintf+set}" = set; then
36269   echo $ECHO_N "(cached) $ECHO_C" >&6
36270 else
36271   cat >conftest.$ac_ext <<_ACEOF
36272 /* confdefs.h.  */
36273 _ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h.  */
36277 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36279 #define _snprintf innocuous__snprintf
36280
36281 /* System header to define __stub macros and hopefully few prototypes,
36282     which can conflict with char _snprintf (); below.
36283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36284     <limits.h> exists even on freestanding compilers.  */
36285
36286 #ifdef __STDC__
36287 # include <limits.h>
36288 #else
36289 # include <assert.h>
36290 #endif
36291
36292 #undef _snprintf
36293
36294 /* Override any GCC internal prototype to avoid an error.
36295    Use char because int might match the return type of a GCC
36296    builtin and then its argument prototype would still apply.  */
36297 #ifdef __cplusplus
36298 extern "C"
36299 #endif
36300 char _snprintf ();
36301 /* The GNU C library defines this for functions which it implements
36302     to always fail with ENOSYS.  Some functions are actually named
36303     something starting with __ and the normal name is an alias.  */
36304 #if defined __stub__snprintf || defined __stub____snprintf
36305 choke me
36306 #endif
36307
36308 int
36309 main ()
36310 {
36311 return _snprintf ();
36312   ;
36313   return 0;
36314 }
36315 _ACEOF
36316 rm -f conftest.$ac_objext conftest$ac_exeext
36317 if { (ac_try="$ac_link"
36318 case "(($ac_try" in
36319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36320   *) ac_try_echo=$ac_try;;
36321 esac
36322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36323   (eval "$ac_link") 2>conftest.er1
36324   ac_status=$?
36325   grep -v '^ *+' conftest.er1 >conftest.err
36326   rm -f conftest.er1
36327   cat conftest.err >&5
36328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329   (exit $ac_status); } && {
36330          test -z "$ac_c_werror_flag" ||
36331          test ! -s conftest.err
36332        } && test -s conftest$ac_exeext &&
36333        $as_test_x conftest$ac_exeext; then
36334   ac_cv_func__snprintf=yes
36335 else
36336   echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339         ac_cv_func__snprintf=no
36340 fi
36341
36342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36343       conftest$ac_exeext conftest.$ac_ext
36344 fi
36345 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36346 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36347 if test $ac_cv_func__snprintf = yes; then
36348   ac_cv_func_snprintf=yes
36349
36350 cat >>confdefs.h <<\_ACEOF
36351 #define snprintf _snprintf
36352 _ACEOF
36353
36354
36355 fi
36356
36357
36358
36359
36360 for ac_func in vsnprintf _vsnprintf
36361 do
36362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36366   echo $ECHO_N "(cached) $ECHO_C" >&6
36367 else
36368   cat >conftest.$ac_ext <<_ACEOF
36369 /* confdefs.h.  */
36370 _ACEOF
36371 cat confdefs.h >>conftest.$ac_ext
36372 cat >>conftest.$ac_ext <<_ACEOF
36373 /* end confdefs.h.  */
36374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36376 #define $ac_func innocuous_$ac_func
36377
36378 /* System header to define __stub macros and hopefully few prototypes,
36379     which can conflict with char $ac_func (); below.
36380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36381     <limits.h> exists even on freestanding compilers.  */
36382
36383 #ifdef __STDC__
36384 # include <limits.h>
36385 #else
36386 # include <assert.h>
36387 #endif
36388
36389 #undef $ac_func
36390
36391 /* Override any GCC internal prototype to avoid an error.
36392    Use char because int might match the return type of a GCC
36393    builtin and then its argument prototype would still apply.  */
36394 #ifdef __cplusplus
36395 extern "C"
36396 #endif
36397 char $ac_func ();
36398 /* The GNU C library defines this for functions which it implements
36399     to always fail with ENOSYS.  Some functions are actually named
36400     something starting with __ and the normal name is an alias.  */
36401 #if defined __stub_$ac_func || defined __stub___$ac_func
36402 choke me
36403 #endif
36404
36405 int
36406 main ()
36407 {
36408 return $ac_func ();
36409   ;
36410   return 0;
36411 }
36412 _ACEOF
36413 rm -f conftest.$ac_objext conftest$ac_exeext
36414 if { (ac_try="$ac_link"
36415 case "(($ac_try" in
36416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417   *) ac_try_echo=$ac_try;;
36418 esac
36419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36420   (eval "$ac_link") 2>conftest.er1
36421   ac_status=$?
36422   grep -v '^ *+' conftest.er1 >conftest.err
36423   rm -f conftest.er1
36424   cat conftest.err >&5
36425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426   (exit $ac_status); } && {
36427          test -z "$ac_c_werror_flag" ||
36428          test ! -s conftest.err
36429        } && test -s conftest$ac_exeext &&
36430        $as_test_x conftest$ac_exeext; then
36431   eval "$as_ac_var=yes"
36432 else
36433   echo "$as_me: failed program was:" >&5
36434 sed 's/^/| /' conftest.$ac_ext >&5
36435
36436         eval "$as_ac_var=no"
36437 fi
36438
36439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36440       conftest$ac_exeext conftest.$ac_ext
36441 fi
36442 ac_res=`eval echo '${'$as_ac_var'}'`
36443                { echo "$as_me:$LINENO: result: $ac_res" >&5
36444 echo "${ECHO_T}$ac_res" >&6; }
36445 if test `eval echo '${'$as_ac_var'}'` = yes; then
36446   cat >>confdefs.h <<_ACEOF
36447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36448 _ACEOF
36449
36450 fi
36451 done
36452
36453
36454 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36455         ac_cv_func_vsnprintf=yes
36456
36457 cat >>confdefs.h <<\_ACEOF
36458 #define vsnprintf _vsnprintf
36459 _ACEOF
36460
36461 fi
36462
36463
36464 for ac_func in vprintf
36465 do
36466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36470   echo $ECHO_N "(cached) $ECHO_C" >&6
36471 else
36472   cat >conftest.$ac_ext <<_ACEOF
36473 /* confdefs.h.  */
36474 _ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h.  */
36478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36480 #define $ac_func innocuous_$ac_func
36481
36482 /* System header to define __stub macros and hopefully few prototypes,
36483     which can conflict with char $ac_func (); below.
36484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36485     <limits.h> exists even on freestanding compilers.  */
36486
36487 #ifdef __STDC__
36488 # include <limits.h>
36489 #else
36490 # include <assert.h>
36491 #endif
36492
36493 #undef $ac_func
36494
36495 /* Override any GCC internal prototype to avoid an error.
36496    Use char because int might match the return type of a GCC
36497    builtin and then its argument prototype would still apply.  */
36498 #ifdef __cplusplus
36499 extern "C"
36500 #endif
36501 char $ac_func ();
36502 /* The GNU C library defines this for functions which it implements
36503     to always fail with ENOSYS.  Some functions are actually named
36504     something starting with __ and the normal name is an alias.  */
36505 #if defined __stub_$ac_func || defined __stub___$ac_func
36506 choke me
36507 #endif
36508
36509 int
36510 main ()
36511 {
36512 return $ac_func ();
36513   ;
36514   return 0;
36515 }
36516 _ACEOF
36517 rm -f conftest.$ac_objext conftest$ac_exeext
36518 if { (ac_try="$ac_link"
36519 case "(($ac_try" in
36520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36521   *) ac_try_echo=$ac_try;;
36522 esac
36523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36524   (eval "$ac_link") 2>conftest.er1
36525   ac_status=$?
36526   grep -v '^ *+' conftest.er1 >conftest.err
36527   rm -f conftest.er1
36528   cat conftest.err >&5
36529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530   (exit $ac_status); } && {
36531          test -z "$ac_c_werror_flag" ||
36532          test ! -s conftest.err
36533        } && test -s conftest$ac_exeext &&
36534        $as_test_x conftest$ac_exeext; then
36535   eval "$as_ac_var=yes"
36536 else
36537   echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36539
36540         eval "$as_ac_var=no"
36541 fi
36542
36543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36544       conftest$ac_exeext conftest.$ac_ext
36545 fi
36546 ac_res=`eval echo '${'$as_ac_var'}'`
36547                { echo "$as_me:$LINENO: result: $ac_res" >&5
36548 echo "${ECHO_T}$ac_res" >&6; }
36549 if test `eval echo '${'$as_ac_var'}'` = yes; then
36550   cat >>confdefs.h <<_ACEOF
36551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36552 _ACEOF
36553
36554 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36555 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36556 if test "${ac_cv_func__doprnt+set}" = set; then
36557   echo $ECHO_N "(cached) $ECHO_C" >&6
36558 else
36559   cat >conftest.$ac_ext <<_ACEOF
36560 /* confdefs.h.  */
36561 _ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h.  */
36565 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36567 #define _doprnt innocuous__doprnt
36568
36569 /* System header to define __stub macros and hopefully few prototypes,
36570     which can conflict with char _doprnt (); below.
36571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36572     <limits.h> exists even on freestanding compilers.  */
36573
36574 #ifdef __STDC__
36575 # include <limits.h>
36576 #else
36577 # include <assert.h>
36578 #endif
36579
36580 #undef _doprnt
36581
36582 /* Override any GCC internal prototype to avoid an error.
36583    Use char because int might match the return type of a GCC
36584    builtin and then its argument prototype would still apply.  */
36585 #ifdef __cplusplus
36586 extern "C"
36587 #endif
36588 char _doprnt ();
36589 /* The GNU C library defines this for functions which it implements
36590     to always fail with ENOSYS.  Some functions are actually named
36591     something starting with __ and the normal name is an alias.  */
36592 #if defined __stub__doprnt || defined __stub____doprnt
36593 choke me
36594 #endif
36595
36596 int
36597 main ()
36598 {
36599 return _doprnt ();
36600   ;
36601   return 0;
36602 }
36603 _ACEOF
36604 rm -f conftest.$ac_objext conftest$ac_exeext
36605 if { (ac_try="$ac_link"
36606 case "(($ac_try" in
36607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36608   *) ac_try_echo=$ac_try;;
36609 esac
36610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36611   (eval "$ac_link") 2>conftest.er1
36612   ac_status=$?
36613   grep -v '^ *+' conftest.er1 >conftest.err
36614   rm -f conftest.er1
36615   cat conftest.err >&5
36616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617   (exit $ac_status); } && {
36618          test -z "$ac_c_werror_flag" ||
36619          test ! -s conftest.err
36620        } && test -s conftest$ac_exeext &&
36621        $as_test_x conftest$ac_exeext; then
36622   ac_cv_func__doprnt=yes
36623 else
36624   echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36626
36627         ac_cv_func__doprnt=no
36628 fi
36629
36630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36631       conftest$ac_exeext conftest.$ac_ext
36632 fi
36633 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36634 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36635 if test $ac_cv_func__doprnt = yes; then
36636
36637 cat >>confdefs.h <<\_ACEOF
36638 #define HAVE_DOPRNT 1
36639 _ACEOF
36640
36641 fi
36642
36643 fi
36644 done
36645
36646
36647
36648 if test $ac_cv_func_vprintf = yes ; then
36649
36650
36651 for ac_func in snprintf vsnprintf
36652 do
36653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36657   echo $ECHO_N "(cached) $ECHO_C" >&6
36658 else
36659   cat >conftest.$ac_ext <<_ACEOF
36660 /* confdefs.h.  */
36661 _ACEOF
36662 cat confdefs.h >>conftest.$ac_ext
36663 cat >>conftest.$ac_ext <<_ACEOF
36664 /* end confdefs.h.  */
36665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36667 #define $ac_func innocuous_$ac_func
36668
36669 /* System header to define __stub macros and hopefully few prototypes,
36670     which can conflict with char $ac_func (); below.
36671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36672     <limits.h> exists even on freestanding compilers.  */
36673
36674 #ifdef __STDC__
36675 # include <limits.h>
36676 #else
36677 # include <assert.h>
36678 #endif
36679
36680 #undef $ac_func
36681
36682 /* Override any GCC internal prototype to avoid an error.
36683    Use char because int might match the return type of a GCC
36684    builtin and then its argument prototype would still apply.  */
36685 #ifdef __cplusplus
36686 extern "C"
36687 #endif
36688 char $ac_func ();
36689 /* The GNU C library defines this for functions which it implements
36690     to always fail with ENOSYS.  Some functions are actually named
36691     something starting with __ and the normal name is an alias.  */
36692 #if defined __stub_$ac_func || defined __stub___$ac_func
36693 choke me
36694 #endif
36695
36696 int
36697 main ()
36698 {
36699 return $ac_func ();
36700   ;
36701   return 0;
36702 }
36703 _ACEOF
36704 rm -f conftest.$ac_objext conftest$ac_exeext
36705 if { (ac_try="$ac_link"
36706 case "(($ac_try" in
36707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36708   *) ac_try_echo=$ac_try;;
36709 esac
36710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36711   (eval "$ac_link") 2>conftest.er1
36712   ac_status=$?
36713   grep -v '^ *+' conftest.er1 >conftest.err
36714   rm -f conftest.er1
36715   cat conftest.err >&5
36716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717   (exit $ac_status); } && {
36718          test -z "$ac_c_werror_flag" ||
36719          test ! -s conftest.err
36720        } && test -s conftest$ac_exeext &&
36721        $as_test_x conftest$ac_exeext; then
36722   eval "$as_ac_var=yes"
36723 else
36724   echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36726
36727         eval "$as_ac_var=no"
36728 fi
36729
36730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36731       conftest$ac_exeext conftest.$ac_ext
36732 fi
36733 ac_res=`eval echo '${'$as_ac_var'}'`
36734                { echo "$as_me:$LINENO: result: $ac_res" >&5
36735 echo "${ECHO_T}$ac_res" >&6; }
36736 if test `eval echo '${'$as_ac_var'}'` = yes; then
36737   cat >>confdefs.h <<_ACEOF
36738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36739 _ACEOF
36740
36741 fi
36742 done
36743
36744 fi
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
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801 for ac_func in \
36802         bcopy                   \
36803         closesocket             \
36804         chroot                  \
36805         endgrent                \
36806         endpwent                \
36807         fcntl                   \
36808         flock                   \
36809         fstat                   \
36810         getdtablesize           \
36811         geteuid                 \
36812         getgrgid                \
36813         gethostname             \
36814         getpassphrase           \
36815         getpwuid                \
36816         getpwnam                \
36817         getspnam                \
36818         gettimeofday            \
36819         initgroups              \
36820         inet_ntoa_b             \
36821         ioctl                   \
36822         lockf                   \
36823         memcpy                  \
36824         memmove                 \
36825         memrchr                 \
36826         mkstemp                 \
36827         mktemp                  \
36828         pipe                    \
36829         read                    \
36830         recv                    \
36831         recvfrom                \
36832         setpwfile               \
36833         setgid                  \
36834         setegid                 \
36835         setsid                  \
36836         setuid                  \
36837         seteuid                 \
36838         signal                  \
36839         strdup                  \
36840         strpbrk                 \
36841         strrchr                 \
36842         strsep                  \
36843         strstr                  \
36844         strtol                  \
36845         strtoul                 \
36846         strtoq                  \
36847         strtouq                 \
36848         strtoll                 \
36849         strspn                  \
36850         sysconf                 \
36851         waitpid                 \
36852         wait4                   \
36853         write                   \
36854         send                    \
36855         sendmsg                 \
36856         sendto                  \
36857
36858 do
36859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36863   echo $ECHO_N "(cached) $ECHO_C" >&6
36864 else
36865   cat >conftest.$ac_ext <<_ACEOF
36866 /* confdefs.h.  */
36867 _ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h.  */
36871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36873 #define $ac_func innocuous_$ac_func
36874
36875 /* System header to define __stub macros and hopefully few prototypes,
36876     which can conflict with char $ac_func (); below.
36877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36878     <limits.h> exists even on freestanding compilers.  */
36879
36880 #ifdef __STDC__
36881 # include <limits.h>
36882 #else
36883 # include <assert.h>
36884 #endif
36885
36886 #undef $ac_func
36887
36888 /* Override any GCC internal prototype to avoid an error.
36889    Use char because int might match the return type of a GCC
36890    builtin and then its argument prototype would still apply.  */
36891 #ifdef __cplusplus
36892 extern "C"
36893 #endif
36894 char $ac_func ();
36895 /* The GNU C library defines this for functions which it implements
36896     to always fail with ENOSYS.  Some functions are actually named
36897     something starting with __ and the normal name is an alias.  */
36898 #if defined __stub_$ac_func || defined __stub___$ac_func
36899 choke me
36900 #endif
36901
36902 int
36903 main ()
36904 {
36905 return $ac_func ();
36906   ;
36907   return 0;
36908 }
36909 _ACEOF
36910 rm -f conftest.$ac_objext conftest$ac_exeext
36911 if { (ac_try="$ac_link"
36912 case "(($ac_try" in
36913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914   *) ac_try_echo=$ac_try;;
36915 esac
36916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917   (eval "$ac_link") 2>conftest.er1
36918   ac_status=$?
36919   grep -v '^ *+' conftest.er1 >conftest.err
36920   rm -f conftest.er1
36921   cat conftest.err >&5
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); } && {
36924          test -z "$ac_c_werror_flag" ||
36925          test ! -s conftest.err
36926        } && test -s conftest$ac_exeext &&
36927        $as_test_x conftest$ac_exeext; then
36928   eval "$as_ac_var=yes"
36929 else
36930   echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36932
36933         eval "$as_ac_var=no"
36934 fi
36935
36936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36937       conftest$ac_exeext conftest.$ac_ext
36938 fi
36939 ac_res=`eval echo '${'$as_ac_var'}'`
36940                { echo "$as_me:$LINENO: result: $ac_res" >&5
36941 echo "${ECHO_T}$ac_res" >&6; }
36942 if test `eval echo '${'$as_ac_var'}'` = yes; then
36943   cat >>confdefs.h <<_ACEOF
36944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36945 _ACEOF
36946
36947 fi
36948 done
36949
36950
36951
36952
36953 for ac_func in getopt getpeereid
36954 do
36955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36959   echo $ECHO_N "(cached) $ECHO_C" >&6
36960 else
36961   cat >conftest.$ac_ext <<_ACEOF
36962 /* confdefs.h.  */
36963 _ACEOF
36964 cat confdefs.h >>conftest.$ac_ext
36965 cat >>conftest.$ac_ext <<_ACEOF
36966 /* end confdefs.h.  */
36967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36969 #define $ac_func innocuous_$ac_func
36970
36971 /* System header to define __stub macros and hopefully few prototypes,
36972     which can conflict with char $ac_func (); below.
36973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36974     <limits.h> exists even on freestanding compilers.  */
36975
36976 #ifdef __STDC__
36977 # include <limits.h>
36978 #else
36979 # include <assert.h>
36980 #endif
36981
36982 #undef $ac_func
36983
36984 /* Override any GCC internal prototype to avoid an error.
36985    Use char because int might match the return type of a GCC
36986    builtin and then its argument prototype would still apply.  */
36987 #ifdef __cplusplus
36988 extern "C"
36989 #endif
36990 char $ac_func ();
36991 /* The GNU C library defines this for functions which it implements
36992     to always fail with ENOSYS.  Some functions are actually named
36993     something starting with __ and the normal name is an alias.  */
36994 #if defined __stub_$ac_func || defined __stub___$ac_func
36995 choke me
36996 #endif
36997
36998 int
36999 main ()
37000 {
37001 return $ac_func ();
37002   ;
37003   return 0;
37004 }
37005 _ACEOF
37006 rm -f conftest.$ac_objext conftest$ac_exeext
37007 if { (ac_try="$ac_link"
37008 case "(($ac_try" in
37009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37010   *) ac_try_echo=$ac_try;;
37011 esac
37012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37013   (eval "$ac_link") 2>conftest.er1
37014   ac_status=$?
37015   grep -v '^ *+' conftest.er1 >conftest.err
37016   rm -f conftest.er1
37017   cat conftest.err >&5
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); } && {
37020          test -z "$ac_c_werror_flag" ||
37021          test ! -s conftest.err
37022        } && test -s conftest$ac_exeext &&
37023        $as_test_x conftest$ac_exeext; then
37024   eval "$as_ac_var=yes"
37025 else
37026   echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37028
37029         eval "$as_ac_var=no"
37030 fi
37031
37032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37033       conftest$ac_exeext conftest.$ac_ext
37034 fi
37035 ac_res=`eval echo '${'$as_ac_var'}'`
37036                { echo "$as_me:$LINENO: result: $ac_res" >&5
37037 echo "${ECHO_T}$ac_res" >&6; }
37038 if test `eval echo '${'$as_ac_var'}'` = yes; then
37039   cat >>confdefs.h <<_ACEOF
37040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37041 _ACEOF
37042
37043 else
37044   case " $LIBOBJS " in
37045   *" $ac_func.$ac_objext "* ) ;;
37046   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37047  ;;
37048 esac
37049
37050 fi
37051 done
37052
37053
37054
37055 if test "$ac_cv_func_getopt" != yes; then
37056         LIBSRCS="$LIBSRCS getopt.c"
37057 fi
37058
37059 if test "$ac_cv_func_getpeereid" != yes; then
37060
37061 for ac_func in getpeerucred
37062 do
37063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37067   echo $ECHO_N "(cached) $ECHO_C" >&6
37068 else
37069   cat >conftest.$ac_ext <<_ACEOF
37070 /* confdefs.h.  */
37071 _ACEOF
37072 cat confdefs.h >>conftest.$ac_ext
37073 cat >>conftest.$ac_ext <<_ACEOF
37074 /* end confdefs.h.  */
37075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37077 #define $ac_func innocuous_$ac_func
37078
37079 /* System header to define __stub macros and hopefully few prototypes,
37080     which can conflict with char $ac_func (); below.
37081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37082     <limits.h> exists even on freestanding compilers.  */
37083
37084 #ifdef __STDC__
37085 # include <limits.h>
37086 #else
37087 # include <assert.h>
37088 #endif
37089
37090 #undef $ac_func
37091
37092 /* Override any GCC internal prototype to avoid an error.
37093    Use char because int might match the return type of a GCC
37094    builtin and then its argument prototype would still apply.  */
37095 #ifdef __cplusplus
37096 extern "C"
37097 #endif
37098 char $ac_func ();
37099 /* The GNU C library defines this for functions which it implements
37100     to always fail with ENOSYS.  Some functions are actually named
37101     something starting with __ and the normal name is an alias.  */
37102 #if defined __stub_$ac_func || defined __stub___$ac_func
37103 choke me
37104 #endif
37105
37106 int
37107 main ()
37108 {
37109 return $ac_func ();
37110   ;
37111   return 0;
37112 }
37113 _ACEOF
37114 rm -f conftest.$ac_objext conftest$ac_exeext
37115 if { (ac_try="$ac_link"
37116 case "(($ac_try" in
37117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37118   *) ac_try_echo=$ac_try;;
37119 esac
37120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37121   (eval "$ac_link") 2>conftest.er1
37122   ac_status=$?
37123   grep -v '^ *+' conftest.er1 >conftest.err
37124   rm -f conftest.er1
37125   cat conftest.err >&5
37126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127   (exit $ac_status); } && {
37128          test -z "$ac_c_werror_flag" ||
37129          test ! -s conftest.err
37130        } && test -s conftest$ac_exeext &&
37131        $as_test_x conftest$ac_exeext; then
37132   eval "$as_ac_var=yes"
37133 else
37134   echo "$as_me: failed program was:" >&5
37135 sed 's/^/| /' conftest.$ac_ext >&5
37136
37137         eval "$as_ac_var=no"
37138 fi
37139
37140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37141       conftest$ac_exeext conftest.$ac_ext
37142 fi
37143 ac_res=`eval echo '${'$as_ac_var'}'`
37144                { echo "$as_me:$LINENO: result: $ac_res" >&5
37145 echo "${ECHO_T}$ac_res" >&6; }
37146 if test `eval echo '${'$as_ac_var'}'` = yes; then
37147   cat >>confdefs.h <<_ACEOF
37148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37149 _ACEOF
37150
37151 fi
37152 done
37153
37154         if test "$ac_cv_func_getpeerucred" != yes ; then
37155                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37156 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37157 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37158   echo $ECHO_N "(cached) $ECHO_C" >&6
37159 else
37160   cat >conftest.$ac_ext <<_ACEOF
37161 /* confdefs.h.  */
37162 _ACEOF
37163 cat confdefs.h >>conftest.$ac_ext
37164 cat >>conftest.$ac_ext <<_ACEOF
37165 /* end confdefs.h.  */
37166 $ac_includes_default
37167 #ifdef HAVE_SYS_SOCKET_H
37168 #include <sys/socket.h>
37169 #endif
37170
37171 int
37172 main ()
37173 {
37174 static struct msghdr ac_aggr;
37175 if (ac_aggr.msg_accrightslen)
37176 return 0;
37177   ;
37178   return 0;
37179 }
37180 _ACEOF
37181 rm -f conftest.$ac_objext
37182 if { (ac_try="$ac_compile"
37183 case "(($ac_try" in
37184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37185   *) ac_try_echo=$ac_try;;
37186 esac
37187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37188   (eval "$ac_compile") 2>conftest.er1
37189   ac_status=$?
37190   grep -v '^ *+' conftest.er1 >conftest.err
37191   rm -f conftest.er1
37192   cat conftest.err >&5
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); } && {
37195          test -z "$ac_c_werror_flag" ||
37196          test ! -s conftest.err
37197        } && test -s conftest.$ac_objext; then
37198   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37199 else
37200   echo "$as_me: failed program was:" >&5
37201 sed 's/^/| /' conftest.$ac_ext >&5
37202
37203         cat >conftest.$ac_ext <<_ACEOF
37204 /* confdefs.h.  */
37205 _ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h.  */
37209 $ac_includes_default
37210 #ifdef HAVE_SYS_SOCKET_H
37211 #include <sys/socket.h>
37212 #endif
37213
37214 int
37215 main ()
37216 {
37217 static struct msghdr ac_aggr;
37218 if (sizeof ac_aggr.msg_accrightslen)
37219 return 0;
37220   ;
37221   return 0;
37222 }
37223 _ACEOF
37224 rm -f conftest.$ac_objext
37225 if { (ac_try="$ac_compile"
37226 case "(($ac_try" in
37227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37228   *) ac_try_echo=$ac_try;;
37229 esac
37230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37231   (eval "$ac_compile") 2>conftest.er1
37232   ac_status=$?
37233   grep -v '^ *+' conftest.er1 >conftest.err
37234   rm -f conftest.er1
37235   cat conftest.err >&5
37236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237   (exit $ac_status); } && {
37238          test -z "$ac_c_werror_flag" ||
37239          test ! -s conftest.err
37240        } && test -s conftest.$ac_objext; then
37241   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37242 else
37243   echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37245
37246         ac_cv_member_struct_msghdr_msg_accrightslen=no
37247 fi
37248
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37250 fi
37251
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37253 fi
37254 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37255 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37256 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37257
37258 cat >>confdefs.h <<_ACEOF
37259 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37260 _ACEOF
37261
37262
37263 fi
37264
37265                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37266                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37267 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37268 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37269   echo $ECHO_N "(cached) $ECHO_C" >&6
37270 else
37271   cat >conftest.$ac_ext <<_ACEOF
37272 /* confdefs.h.  */
37273 _ACEOF
37274 cat confdefs.h >>conftest.$ac_ext
37275 cat >>conftest.$ac_ext <<_ACEOF
37276 /* end confdefs.h.  */
37277 $ac_includes_default
37278 #ifdef HAVE_SYS_SOCKET_H
37279 #include <sys/socket.h>
37280 #endif
37281
37282 int
37283 main ()
37284 {
37285 static struct msghdr ac_aggr;
37286 if (ac_aggr.msg_control)
37287 return 0;
37288   ;
37289   return 0;
37290 }
37291 _ACEOF
37292 rm -f conftest.$ac_objext
37293 if { (ac_try="$ac_compile"
37294 case "(($ac_try" in
37295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37296   *) ac_try_echo=$ac_try;;
37297 esac
37298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37299   (eval "$ac_compile") 2>conftest.er1
37300   ac_status=$?
37301   grep -v '^ *+' conftest.er1 >conftest.err
37302   rm -f conftest.er1
37303   cat conftest.err >&5
37304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305   (exit $ac_status); } && {
37306          test -z "$ac_c_werror_flag" ||
37307          test ! -s conftest.err
37308        } && test -s conftest.$ac_objext; then
37309   ac_cv_member_struct_msghdr_msg_control=yes
37310 else
37311   echo "$as_me: failed program was:" >&5
37312 sed 's/^/| /' conftest.$ac_ext >&5
37313
37314         cat >conftest.$ac_ext <<_ACEOF
37315 /* confdefs.h.  */
37316 _ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h.  */
37320 $ac_includes_default
37321 #ifdef HAVE_SYS_SOCKET_H
37322 #include <sys/socket.h>
37323 #endif
37324
37325 int
37326 main ()
37327 {
37328 static struct msghdr ac_aggr;
37329 if (sizeof ac_aggr.msg_control)
37330 return 0;
37331   ;
37332   return 0;
37333 }
37334 _ACEOF
37335 rm -f conftest.$ac_objext
37336 if { (ac_try="$ac_compile"
37337 case "(($ac_try" in
37338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37339   *) ac_try_echo=$ac_try;;
37340 esac
37341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37342   (eval "$ac_compile") 2>conftest.er1
37343   ac_status=$?
37344   grep -v '^ *+' conftest.er1 >conftest.err
37345   rm -f conftest.er1
37346   cat conftest.err >&5
37347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348   (exit $ac_status); } && {
37349          test -z "$ac_c_werror_flag" ||
37350          test ! -s conftest.err
37351        } && test -s conftest.$ac_objext; then
37352   ac_cv_member_struct_msghdr_msg_control=yes
37353 else
37354   echo "$as_me: failed program was:" >&5
37355 sed 's/^/| /' conftest.$ac_ext >&5
37356
37357         ac_cv_member_struct_msghdr_msg_control=no
37358 fi
37359
37360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37361 fi
37362
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37364 fi
37365 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37366 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37367 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37368
37369 cat >>confdefs.h <<_ACEOF
37370 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37371 _ACEOF
37372
37373
37374 fi
37375
37376                 fi
37377                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37378 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37379 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37380   echo $ECHO_N "(cached) $ECHO_C" >&6
37381 else
37382   cat >conftest.$ac_ext <<_ACEOF
37383 /* confdefs.h.  */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h.  */
37388 $ac_includes_default
37389 int
37390 main ()
37391 {
37392 static struct stat ac_aggr;
37393 if (ac_aggr.st_fstype)
37394 return 0;
37395   ;
37396   return 0;
37397 }
37398 _ACEOF
37399 rm -f conftest.$ac_objext
37400 if { (ac_try="$ac_compile"
37401 case "(($ac_try" in
37402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37403   *) ac_try_echo=$ac_try;;
37404 esac
37405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37406   (eval "$ac_compile") 2>conftest.er1
37407   ac_status=$?
37408   grep -v '^ *+' conftest.er1 >conftest.err
37409   rm -f conftest.er1
37410   cat conftest.err >&5
37411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412   (exit $ac_status); } && {
37413          test -z "$ac_c_werror_flag" ||
37414          test ! -s conftest.err
37415        } && test -s conftest.$ac_objext; then
37416   ac_cv_member_struct_stat_st_fstype=yes
37417 else
37418   echo "$as_me: failed program was:" >&5
37419 sed 's/^/| /' conftest.$ac_ext >&5
37420
37421         cat >conftest.$ac_ext <<_ACEOF
37422 /* confdefs.h.  */
37423 _ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h.  */
37427 $ac_includes_default
37428 int
37429 main ()
37430 {
37431 static struct stat ac_aggr;
37432 if (sizeof ac_aggr.st_fstype)
37433 return 0;
37434   ;
37435   return 0;
37436 }
37437 _ACEOF
37438 rm -f conftest.$ac_objext
37439 if { (ac_try="$ac_compile"
37440 case "(($ac_try" in
37441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37442   *) ac_try_echo=$ac_try;;
37443 esac
37444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37445   (eval "$ac_compile") 2>conftest.er1
37446   ac_status=$?
37447   grep -v '^ *+' conftest.er1 >conftest.err
37448   rm -f conftest.er1
37449   cat conftest.err >&5
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); } && {
37452          test -z "$ac_c_werror_flag" ||
37453          test ! -s conftest.err
37454        } && test -s conftest.$ac_objext; then
37455   ac_cv_member_struct_stat_st_fstype=yes
37456 else
37457   echo "$as_me: failed program was:" >&5
37458 sed 's/^/| /' conftest.$ac_ext >&5
37459
37460         ac_cv_member_struct_stat_st_fstype=no
37461 fi
37462
37463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37464 fi
37465
37466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37467 fi
37468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37469 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37470 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37471
37472 cat >>confdefs.h <<_ACEOF
37473 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37474 _ACEOF
37475
37476
37477 fi
37478 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37479 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37480 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37481   echo $ECHO_N "(cached) $ECHO_C" >&6
37482 else
37483   cat >conftest.$ac_ext <<_ACEOF
37484 /* confdefs.h.  */
37485 _ACEOF
37486 cat confdefs.h >>conftest.$ac_ext
37487 cat >>conftest.$ac_ext <<_ACEOF
37488 /* end confdefs.h.  */
37489 $ac_includes_default
37490 int
37491 main ()
37492 {
37493 static struct stat ac_aggr;
37494 if (ac_aggr.st_vfstype)
37495 return 0;
37496   ;
37497   return 0;
37498 }
37499 _ACEOF
37500 rm -f conftest.$ac_objext
37501 if { (ac_try="$ac_compile"
37502 case "(($ac_try" in
37503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37504   *) ac_try_echo=$ac_try;;
37505 esac
37506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37507   (eval "$ac_compile") 2>conftest.er1
37508   ac_status=$?
37509   grep -v '^ *+' conftest.er1 >conftest.err
37510   rm -f conftest.er1
37511   cat conftest.err >&5
37512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513   (exit $ac_status); } && {
37514          test -z "$ac_c_werror_flag" ||
37515          test ! -s conftest.err
37516        } && test -s conftest.$ac_objext; then
37517   ac_cv_member_struct_stat_st_vfstype=yes
37518 else
37519   echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37521
37522         cat >conftest.$ac_ext <<_ACEOF
37523 /* confdefs.h.  */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h.  */
37528 $ac_includes_default
37529 int
37530 main ()
37531 {
37532 static struct stat ac_aggr;
37533 if (sizeof ac_aggr.st_vfstype)
37534 return 0;
37535   ;
37536   return 0;
37537 }
37538 _ACEOF
37539 rm -f conftest.$ac_objext
37540 if { (ac_try="$ac_compile"
37541 case "(($ac_try" in
37542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543   *) ac_try_echo=$ac_try;;
37544 esac
37545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546   (eval "$ac_compile") 2>conftest.er1
37547   ac_status=$?
37548   grep -v '^ *+' conftest.er1 >conftest.err
37549   rm -f conftest.er1
37550   cat conftest.err >&5
37551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552   (exit $ac_status); } && {
37553          test -z "$ac_c_werror_flag" ||
37554          test ! -s conftest.err
37555        } && test -s conftest.$ac_objext; then
37556   ac_cv_member_struct_stat_st_vfstype=yes
37557 else
37558   echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37560
37561         ac_cv_member_struct_stat_st_vfstype=no
37562 fi
37563
37564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37565 fi
37566
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37568 fi
37569 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37571 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37572
37573 cat >>confdefs.h <<_ACEOF
37574 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37575 _ACEOF
37576
37577
37578 fi
37579
37580                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37581                         cat >conftest.$ac_ext <<_ACEOF
37582 struct stat st; char *ptr=st.st_fstype;
37583 _ACEOF
37584 rm -f conftest.$ac_objext
37585 if { (ac_try="$ac_compile"
37586 case "(($ac_try" in
37587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37588   *) ac_try_echo=$ac_try;;
37589 esac
37590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37591   (eval "$ac_compile") 2>conftest.er1
37592   ac_status=$?
37593   grep -v '^ *+' conftest.er1 >conftest.err
37594   rm -f conftest.er1
37595   cat conftest.err >&5
37596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597   (exit $ac_status); } && {
37598          test -z "$ac_c_werror_flag" ||
37599          test ! -s conftest.err
37600        } && test -s conftest.$ac_objext; then
37601
37602 cat >>confdefs.h <<\_ACEOF
37603 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37604 _ACEOF
37605
37606 else
37607   echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37609
37610
37611 cat >>confdefs.h <<\_ACEOF
37612 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37613 _ACEOF
37614
37615 fi
37616
37617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37618                 fi
37619         fi
37620         LIBSRCS="$LIBSRCS getpeereid.c"
37621 fi
37622
37623 if test "$ac_cv_func_snprintf" != yes ||
37624    test "$ac_cv_func_vsnprintf" != yes; then
37625         if test "$ac_cv_func_snprintf" != yes; then
37626
37627 cat >>confdefs.h <<\_ACEOF
37628 #define snprintf ber_pvt_snprintf
37629 _ACEOF
37630
37631         fi
37632         if test "$ac_cv_func_vsnprintf" != yes; then
37633
37634 cat >>confdefs.h <<\_ACEOF
37635 #define vsnprintf ber_pvt_vsnprintf
37636 _ACEOF
37637
37638         fi
37639 fi
37640
37641
37642 if test "$ol_enable_slapi" != no ; then
37643
37644 for ac_header in ltdl.h
37645 do
37646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37651   echo $ECHO_N "(cached) $ECHO_C" >&6
37652 fi
37653 ac_res=`eval echo '${'$as_ac_Header'}'`
37654                { echo "$as_me:$LINENO: result: $ac_res" >&5
37655 echo "${ECHO_T}$ac_res" >&6; }
37656 else
37657   # Is the header compilable?
37658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37660 cat >conftest.$ac_ext <<_ACEOF
37661 /* confdefs.h.  */
37662 _ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h.  */
37666 $ac_includes_default
37667 #include <$ac_header>
37668 _ACEOF
37669 rm -f conftest.$ac_objext
37670 if { (ac_try="$ac_compile"
37671 case "(($ac_try" in
37672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37673   *) ac_try_echo=$ac_try;;
37674 esac
37675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37676   (eval "$ac_compile") 2>conftest.er1
37677   ac_status=$?
37678   grep -v '^ *+' conftest.er1 >conftest.err
37679   rm -f conftest.er1
37680   cat conftest.err >&5
37681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682   (exit $ac_status); } && {
37683          test -z "$ac_c_werror_flag" ||
37684          test ! -s conftest.err
37685        } && test -s conftest.$ac_objext; then
37686   ac_header_compiler=yes
37687 else
37688   echo "$as_me: failed program was:" >&5
37689 sed 's/^/| /' conftest.$ac_ext >&5
37690
37691         ac_header_compiler=no
37692 fi
37693
37694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37696 echo "${ECHO_T}$ac_header_compiler" >&6; }
37697
37698 # Is the header present?
37699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37701 cat >conftest.$ac_ext <<_ACEOF
37702 /* confdefs.h.  */
37703 _ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h.  */
37707 #include <$ac_header>
37708 _ACEOF
37709 if { (ac_try="$ac_cpp conftest.$ac_ext"
37710 case "(($ac_try" in
37711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37712   *) ac_try_echo=$ac_try;;
37713 esac
37714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37716   ac_status=$?
37717   grep -v '^ *+' conftest.er1 >conftest.err
37718   rm -f conftest.er1
37719   cat conftest.err >&5
37720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721   (exit $ac_status); } >/dev/null && {
37722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37723          test ! -s conftest.err
37724        }; then
37725   ac_header_preproc=yes
37726 else
37727   echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37729
37730   ac_header_preproc=no
37731 fi
37732
37733 rm -f conftest.err conftest.$ac_ext
37734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37735 echo "${ECHO_T}$ac_header_preproc" >&6; }
37736
37737 # So?  What about this header?
37738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37739   yes:no: )
37740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37744     ac_header_preproc=yes
37745     ;;
37746   no:yes:* )
37747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37759     ( cat <<\_ASBOX
37760 ## --------------------------------------------- ##
37761 ## Report this to <http://www.openldap.org/its/> ##
37762 ## --------------------------------------------- ##
37763 _ASBOX
37764      ) | sed "s/^/$as_me: WARNING:     /" >&2
37765     ;;
37766 esac
37767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37770   echo $ECHO_N "(cached) $ECHO_C" >&6
37771 else
37772   eval "$as_ac_Header=\$ac_header_preproc"
37773 fi
37774 ac_res=`eval echo '${'$as_ac_Header'}'`
37775                { echo "$as_me:$LINENO: result: $ac_res" >&5
37776 echo "${ECHO_T}$ac_res" >&6; }
37777
37778 fi
37779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37780   cat >>confdefs.h <<_ACEOF
37781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37782 _ACEOF
37783
37784 fi
37785
37786 done
37787
37788
37789         if test $ac_cv_header_ltdl_h != yes ; then
37790                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37791 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37792    { (exit 1); exit 1; }; }
37793         fi
37794         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37795 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37796 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37797   echo $ECHO_N "(cached) $ECHO_C" >&6
37798 else
37799   ac_check_lib_save_LIBS=$LIBS
37800 LIBS="-lltdl  $LIBS"
37801 cat >conftest.$ac_ext <<_ACEOF
37802 /* confdefs.h.  */
37803 _ACEOF
37804 cat confdefs.h >>conftest.$ac_ext
37805 cat >>conftest.$ac_ext <<_ACEOF
37806 /* end confdefs.h.  */
37807
37808 /* Override any GCC internal prototype to avoid an error.
37809    Use char because int might match the return type of a GCC
37810    builtin and then its argument prototype would still apply.  */
37811 #ifdef __cplusplus
37812 extern "C"
37813 #endif
37814 char lt_dlinit ();
37815 int
37816 main ()
37817 {
37818 return lt_dlinit ();
37819   ;
37820   return 0;
37821 }
37822 _ACEOF
37823 rm -f conftest.$ac_objext conftest$ac_exeext
37824 if { (ac_try="$ac_link"
37825 case "(($ac_try" in
37826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37827   *) ac_try_echo=$ac_try;;
37828 esac
37829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37830   (eval "$ac_link") 2>conftest.er1
37831   ac_status=$?
37832   grep -v '^ *+' conftest.er1 >conftest.err
37833   rm -f conftest.er1
37834   cat conftest.err >&5
37835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836   (exit $ac_status); } && {
37837          test -z "$ac_c_werror_flag" ||
37838          test ! -s conftest.err
37839        } && test -s conftest$ac_exeext &&
37840        $as_test_x conftest$ac_exeext; then
37841   ac_cv_lib_ltdl_lt_dlinit=yes
37842 else
37843   echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846         ac_cv_lib_ltdl_lt_dlinit=no
37847 fi
37848
37849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37850       conftest$ac_exeext conftest.$ac_ext
37851 LIBS=$ac_check_lib_save_LIBS
37852 fi
37853 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37854 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37855 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37856
37857                 SLAPI_LIBS=-lltdl
37858                 LIBSLAPI=libslapi.a
37859                 LIBSLAPITOOLS=../libslapi.a
37860
37861 cat >>confdefs.h <<\_ACEOF
37862 #define HAVE_LIBLTDL 1
37863 _ACEOF
37864
37865
37866 else
37867   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37868 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37869    { (exit 1); exit 1; }; }
37870 fi
37871
37872
37873
37874 cat >>confdefs.h <<\_ACEOF
37875 #define LDAP_SLAPI 1
37876 _ACEOF
37877
37878 fi
37879
37880 if test "$ol_enable_debug" != no ; then
37881         if test "$ol_enable_debug" = traditional; then
37882
37883 cat >>confdefs.h <<\_ACEOF
37884 #define OLD_DEBUG 1
37885 _ACEOF
37886
37887         fi
37888
37889 cat >>confdefs.h <<\_ACEOF
37890 #define LDAP_DEBUG 1
37891 _ACEOF
37892
37893 fi
37894 if test "$ol_enable_syslog" = yes ; then
37895
37896 cat >>confdefs.h <<\_ACEOF
37897 #define LDAP_SYSLOG 1
37898 _ACEOF
37899
37900 fi
37901 if test "$ol_enable_proctitle" != no ; then
37902
37903 cat >>confdefs.h <<\_ACEOF
37904 #define LDAP_PROCTITLE 1
37905 _ACEOF
37906
37907 fi
37908 if test "$ol_enable_referrals" != no ; then
37909
37910 cat >>confdefs.h <<\_ACEOF
37911 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37912 _ACEOF
37913
37914 fi
37915 if test "$ol_enable_local" != no; then
37916
37917 cat >>confdefs.h <<\_ACEOF
37918 #define LDAP_PF_LOCAL 1
37919 _ACEOF
37920
37921 fi
37922 if test "$ol_link_ipv6" != no; then
37923
37924 cat >>confdefs.h <<\_ACEOF
37925 #define LDAP_PF_INET6 1
37926 _ACEOF
37927
37928 fi
37929 if test "$ol_enable_cleartext" != no ; then
37930
37931 cat >>confdefs.h <<\_ACEOF
37932 #define SLAPD_CLEARTEXT 1
37933 _ACEOF
37934
37935 fi
37936 if test "$ol_enable_crypt" != no ; then
37937
37938 cat >>confdefs.h <<\_ACEOF
37939 #define SLAPD_CRYPT 1
37940 _ACEOF
37941
37942 fi
37943 if test "$ol_link_spasswd" != no ; then
37944
37945 cat >>confdefs.h <<\_ACEOF
37946 #define SLAPD_SPASSWD 1
37947 _ACEOF
37948
37949 fi
37950 if test "$ol_enable_rlookups" != no ; then
37951
37952 cat >>confdefs.h <<\_ACEOF
37953 #define SLAPD_RLOOKUPS 1
37954 _ACEOF
37955
37956 fi
37957 if test "$ol_enable_aci" != no ; then
37958         if test $ol_enable_dynacl = no ; then
37959                 ol_enable_dynacl=yes
37960                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37961 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37962         fi
37963         if test "$ol_enable_aci" = mod ; then
37964                 MFLAG=SLAPD_MOD_DYNAMIC
37965                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37966 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37967    { (exit 1); exit 1; }; }
37968         else
37969                 MFLAG=SLAPD_MOD_STATIC
37970         fi
37971         WITH_ACI_ENABLED=$ol_enable_aci
37972
37973 cat >>confdefs.h <<_ACEOF
37974 #define SLAPD_ACI_ENABLED $MFLAG
37975 _ACEOF
37976
37977 else
37978         WITH_ACI_ENABLED=no
37979 fi
37980 if test "$ol_enable_dynacl" != no ; then
37981
37982 cat >>confdefs.h <<\_ACEOF
37983 #define SLAP_DYNACL 1
37984 _ACEOF
37985
37986 fi
37987
37988 if test "$ol_link_modules" != no ; then
37989
37990 cat >>confdefs.h <<\_ACEOF
37991 #define SLAPD_MODULES 1
37992 _ACEOF
37993
37994         BUILD_SLAPD=yes
37995         SLAPD_MODULES_LDFLAGS="-dlopen self"
37996 fi
37997
37998
37999 cat >>confdefs.h <<\_ACEOF
38000 #define SLAPD_MOD_STATIC 1
38001 _ACEOF
38002
38003
38004 cat >>confdefs.h <<\_ACEOF
38005 #define SLAPD_MOD_DYNAMIC 2
38006 _ACEOF
38007
38008
38009 if test "$ol_enable_monitor" != no ; then
38010         BUILD_SLAPD=yes
38011         BUILD_MONITOR=$ol_enable_monitor
38012         if test "$ol_enable_monitor" = mod ; then
38013                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38014                 MFLAG=SLAPD_MOD_DYNAMIC
38015         else
38016                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38017                 MFLAG=SLAPD_MOD_STATIC
38018         fi
38019
38020 cat >>confdefs.h <<_ACEOF
38021 #define SLAPD_MONITOR $MFLAG
38022 _ACEOF
38023
38024 fi
38025
38026 if test "$ol_enable_bdb" != no ; then
38027         BUILD_SLAPD=yes
38028         BUILD_BDB=$ol_enable_bdb
38029         if test "$ol_enable_bdb" = mod ; then
38030                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38031                 MFLAG=SLAPD_MOD_DYNAMIC
38032         else
38033                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38034                 MFLAG=SLAPD_MOD_STATIC
38035         fi
38036
38037 cat >>confdefs.h <<_ACEOF
38038 #define SLAPD_BDB $MFLAG
38039 _ACEOF
38040
38041 fi
38042
38043 if test "$ol_enable_dnssrv" != no ; then
38044         BUILD_SLAPD=yes
38045         BUILD_DNSSRV=$ol_enable_dnssrv
38046         if test "$ol_enable_dnssrv" = mod ; then
38047                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38048                 MFLAG=SLAPD_MOD_DYNAMIC
38049         else
38050                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38051                 MFLAG=SLAPD_MOD_STATIC
38052         fi
38053
38054 cat >>confdefs.h <<_ACEOF
38055 #define SLAPD_DNSSRV $MFLAG
38056 _ACEOF
38057
38058 fi
38059
38060 if test "$ol_enable_hdb" != no ; then
38061         BUILD_SLAPD=yes
38062         BUILD_HDB=$ol_enable_hdb
38063         if test "$ol_enable_hdb" = mod ; then
38064                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38065                 MFLAG=SLAPD_MOD_DYNAMIC
38066         else
38067                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38068                 MFLAG=SLAPD_MOD_STATIC
38069         fi
38070
38071 cat >>confdefs.h <<_ACEOF
38072 #define SLAPD_HDB $MFLAG
38073 _ACEOF
38074
38075 fi
38076
38077 if test "$ol_enable_ldap" != no ; then
38078         BUILD_SLAPD=yes
38079         BUILD_LDAP=$ol_enable_ldap
38080         if test "$ol_enable_ldap" = mod ; then
38081                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38082                 MFLAG=SLAPD_MOD_DYNAMIC
38083         else
38084                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38085                 MFLAG=SLAPD_MOD_STATIC
38086         fi
38087
38088 cat >>confdefs.h <<_ACEOF
38089 #define SLAPD_LDAP $MFLAG
38090 _ACEOF
38091
38092 fi
38093
38094 if test "$ol_enable_meta" != no ; then
38095         BUILD_SLAPD=yes
38096         BUILD_META=$ol_enable_meta
38097         BUILD_REWRITE=yes
38098         if test "$ol_enable_meta" = mod ; then
38099                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38100                 MFLAG=SLAPD_MOD_DYNAMIC
38101         else
38102                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38103                 MFLAG=SLAPD_MOD_STATIC
38104         fi
38105
38106 cat >>confdefs.h <<_ACEOF
38107 #define SLAPD_META $MFLAG
38108 _ACEOF
38109
38110 fi
38111
38112 if test "$ol_enable_ndb" != no ; then
38113         BUILD_SLAPD=yes
38114         BUILD_NDB=$ol_enable_ndb
38115         if test "$ol_enable_ndb" = mod ; then
38116                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38117                 MFLAG=SLAPD_MOD_DYNAMIC
38118         else
38119                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38120                 MFLAG=SLAPD_MOD_STATIC
38121         fi
38122
38123 cat >>confdefs.h <<_ACEOF
38124 #define SLAPD_NDB $MFLAG
38125 _ACEOF
38126
38127 fi
38128
38129 if test "$ol_enable_null" != no ; then
38130         BUILD_SLAPD=yes
38131         BUILD_NULL=$ol_enable_null
38132         if test "$ol_enable_null" = mod ; then
38133                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38134                 MFLAG=SLAPD_MOD_DYNAMIC
38135         else
38136                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38137                 MFLAG=SLAPD_MOD_STATIC
38138         fi
38139
38140 cat >>confdefs.h <<_ACEOF
38141 #define SLAPD_NULL $MFLAG
38142 _ACEOF
38143
38144 fi
38145
38146 if test "$ol_enable_passwd" != no ; then
38147         BUILD_SLAPD=yes
38148         BUILD_PASSWD=$ol_enable_passwd
38149         if test "$ol_enable_passwd" = mod ; then
38150                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38151                 MFLAG=SLAPD_MOD_DYNAMIC
38152         else
38153                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38154                 MFLAG=SLAPD_MOD_STATIC
38155         fi
38156
38157 cat >>confdefs.h <<_ACEOF
38158 #define SLAPD_PASSWD $MFLAG
38159 _ACEOF
38160
38161 fi
38162
38163 if test "$ol_link_perl" != no ; then
38164         BUILD_SLAPD=yes
38165         BUILD_PERL=$ol_enable_perl
38166         if test "$ol_enable_perl" = mod ; then
38167                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38168                 MFLAG=SLAPD_MOD_DYNAMIC
38169         else
38170                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38171                 MFLAG=SLAPD_MOD_STATIC
38172         fi
38173
38174 cat >>confdefs.h <<_ACEOF
38175 #define SLAPD_PERL $MFLAG
38176 _ACEOF
38177
38178 fi
38179
38180 if test "$ol_enable_relay" != no ; then
38181         BUILD_SLAPD=yes
38182         BUILD_RELAY=$ol_enable_relay
38183         if test "$ol_enable_relay" = mod ; then
38184                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38185                 MFLAG=SLAPD_MOD_DYNAMIC
38186         else
38187                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38188                 MFLAG=SLAPD_MOD_STATIC
38189         fi
38190
38191 cat >>confdefs.h <<_ACEOF
38192 #define SLAPD_RELAY $MFLAG
38193 _ACEOF
38194
38195 fi
38196
38197 if test "$ol_enable_shell" != no ; then
38198         if test "$ol_link_threads" != no ; then
38199                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38200 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38201         fi
38202         BUILD_SLAPD=yes
38203         BUILD_SHELL=$ol_enable_shell
38204         if test "$ol_enable_shell" = mod ; then
38205                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38206                 MFLAG=SLAPD_MOD_DYNAMIC
38207         else
38208                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38209                 MFLAG=SLAPD_MOD_STATIC
38210         fi
38211
38212 cat >>confdefs.h <<_ACEOF
38213 #define SLAPD_SHELL $MFLAG
38214 _ACEOF
38215
38216 fi
38217
38218 if test "$ol_enable_sock" != no ; then
38219         BUILD_SLAPD=yes
38220         BUILD_SOCK=$ol_enable_sock
38221         if test "$ol_enable_sock" = mod ; then
38222                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38223                 MFLAG=SLAPD_MOD_DYNAMIC
38224         else
38225                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38226                 MFLAG=SLAPD_MOD_STATIC
38227         fi
38228
38229 cat >>confdefs.h <<_ACEOF
38230 #define SLAPD_SOCK $MFLAG
38231 _ACEOF
38232
38233 fi
38234
38235 if test "$ol_link_sql" != no ; then
38236         BUILD_SLAPD=yes
38237         BUILD_SQL=$ol_enable_sql
38238         if test "$ol_enable_sql" = mod; then
38239                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38240                 MFLAG=SLAPD_MOD_DYNAMIC
38241         else
38242                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38243                 MFLAG=SLAPD_MOD_STATIC
38244         fi
38245
38246 cat >>confdefs.h <<_ACEOF
38247 #define SLAPD_SQL $MFLAG
38248 _ACEOF
38249
38250 fi
38251
38252 if test "$ol_enable_accesslog" != no ; then
38253         BUILD_ACCESSLOG=$ol_enable_accesslog
38254         if test "$ol_enable_accesslog" = mod ; then
38255                 MFLAG=SLAPD_MOD_DYNAMIC
38256                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38257         else
38258                 MFLAG=SLAPD_MOD_STATIC
38259                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38260         fi
38261
38262 cat >>confdefs.h <<_ACEOF
38263 #define SLAPD_OVER_ACCESSLOG $MFLAG
38264 _ACEOF
38265
38266 fi
38267
38268 if test "$ol_enable_auditlog" != no ; then
38269         BUILD_AUDITLOG=$ol_enable_auditlog
38270         if test "$ol_enable_auditlog" = mod ; then
38271                 MFLAG=SLAPD_MOD_DYNAMIC
38272                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38273         else
38274                 MFLAG=SLAPD_MOD_STATIC
38275                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38276         fi
38277
38278 cat >>confdefs.h <<_ACEOF
38279 #define SLAPD_OVER_AUDITLOG $MFLAG
38280 _ACEOF
38281
38282 fi
38283
38284 if test "$ol_enable_collect" != no ; then
38285         BUILD_COLLECT=$ol_enable_collect
38286         if test "$ol_enable_collect" = mod ; then
38287                 MFLAG=SLAPD_MOD_DYNAMIC
38288                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38289         else
38290                 MFLAG=SLAPD_MOD_STATIC
38291                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38292         fi
38293
38294 cat >>confdefs.h <<_ACEOF
38295 #define SLAPD_OVER_COLLECT $MFLAG
38296 _ACEOF
38297
38298 fi
38299
38300 if test "$ol_enable_constraint" != no ; then
38301         BUILD_CONSTRAINT=$ol_enable_constraint
38302         if test "$ol_enable_constraint" = mod ; then
38303                 MFLAG=SLAPD_MOD_DYNAMIC
38304                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38305         else
38306                 MFLAG=SLAPD_MOD_STATIC
38307                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38308         fi
38309
38310 cat >>confdefs.h <<_ACEOF
38311 #define SLAPD_OVER_CONSTRAINT $MFLAG
38312 _ACEOF
38313
38314 fi
38315
38316 if test "$ol_enable_dds" != no ; then
38317         BUILD_DDS=$ol_enable_dds
38318         if test "$ol_enable_dds" = mod ; then
38319                 MFLAG=SLAPD_MOD_DYNAMIC
38320                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38321         else
38322                 MFLAG=SLAPD_MOD_STATIC
38323                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38324         fi
38325
38326 cat >>confdefs.h <<_ACEOF
38327 #define SLAPD_OVER_DDS $MFLAG
38328 _ACEOF
38329
38330 fi
38331
38332 if test "$ol_enable_deref" != no ; then
38333         BUILD_DEREF=$ol_enable_deref
38334         if test "$ol_enable_deref" = mod ; then
38335                 MFLAG=SLAPD_MOD_DYNAMIC
38336                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38337         else
38338                 MFLAG=SLAPD_MOD_STATIC
38339                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38340         fi
38341
38342 cat >>confdefs.h <<_ACEOF
38343 #define SLAPD_OVER_DEREF $MFLAG
38344 _ACEOF
38345
38346 fi
38347
38348 if test "$ol_enable_dyngroup" != no ; then
38349         BUILD_DYNGROUP=$ol_enable_dyngroup
38350         if test "$ol_enable_dyngroup" = mod ; then
38351                 MFLAG=SLAPD_MOD_DYNAMIC
38352                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38353         else
38354                 MFLAG=SLAPD_MOD_STATIC
38355                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38356         fi
38357
38358 cat >>confdefs.h <<_ACEOF
38359 #define SLAPD_OVER_DYNGROUP $MFLAG
38360 _ACEOF
38361
38362 fi
38363
38364 if test "$ol_enable_dynlist" != no ; then
38365         BUILD_DYNLIST=$ol_enable_dynlist
38366         if test "$ol_enable_dynlist" = mod ; then
38367                 MFLAG=SLAPD_MOD_DYNAMIC
38368                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38369         else
38370                 MFLAG=SLAPD_MOD_STATIC
38371                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38372         fi
38373
38374 cat >>confdefs.h <<_ACEOF
38375 #define SLAPD_OVER_DYNLIST $MFLAG
38376 _ACEOF
38377
38378 fi
38379
38380 if test "$ol_enable_memberof" != no ; then
38381         BUILD_MEMBEROF=$ol_enable_memberof
38382         if test "$ol_enable_memberof" = mod ; then
38383                 MFLAG=SLAPD_MOD_DYNAMIC
38384                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38385         else
38386                 MFLAG=SLAPD_MOD_STATIC
38387                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38388         fi
38389
38390 cat >>confdefs.h <<_ACEOF
38391 #define SLAPD_OVER_MEMBEROF $MFLAG
38392 _ACEOF
38393
38394 fi
38395
38396 if test "$ol_enable_ppolicy" != no ; then
38397         BUILD_PPOLICY=$ol_enable_ppolicy
38398         if test "$ol_enable_ppolicy" = mod ; then
38399                 MFLAG=SLAPD_MOD_DYNAMIC
38400                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38401         else
38402                 MFLAG=SLAPD_MOD_STATIC
38403                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38404         fi
38405
38406 cat >>confdefs.h <<_ACEOF
38407 #define SLAPD_OVER_PPOLICY $MFLAG
38408 _ACEOF
38409
38410 fi
38411
38412 if test "$ol_enable_proxycache" != no ; then
38413         BUILD_PROXYCACHE=$ol_enable_proxycache
38414         if test "$ol_enable_proxycache" = mod ; then
38415                 MFLAG=SLAPD_MOD_DYNAMIC
38416                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38417         else
38418                 MFLAG=SLAPD_MOD_STATIC
38419                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38420         fi
38421
38422 cat >>confdefs.h <<_ACEOF
38423 #define SLAPD_OVER_PROXYCACHE $MFLAG
38424 _ACEOF
38425
38426 fi
38427
38428 if test "$ol_enable_refint" != no ; then
38429         BUILD_REFINT=$ol_enable_refint
38430         if test "$ol_enable_refint" = mod ; then
38431                 MFLAG=SLAPD_MOD_DYNAMIC
38432                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38433         else
38434                 MFLAG=SLAPD_MOD_STATIC
38435                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38436         fi
38437
38438 cat >>confdefs.h <<_ACEOF
38439 #define SLAPD_OVER_REFINT $MFLAG
38440 _ACEOF
38441
38442 fi
38443
38444 if test "$ol_enable_retcode" != no ; then
38445         BUILD_RETCODE=$ol_enable_retcode
38446         if test "$ol_enable_retcode" = mod ; then
38447                 MFLAG=SLAPD_MOD_DYNAMIC
38448                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38449         else
38450                 MFLAG=SLAPD_MOD_STATIC
38451                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38452         fi
38453
38454 cat >>confdefs.h <<_ACEOF
38455 #define SLAPD_OVER_RETCODE $MFLAG
38456 _ACEOF
38457
38458 fi
38459
38460 if test "$ol_enable_rwm" != no ; then
38461         BUILD_REWRITE=yes
38462         BUILD_RWM=$ol_enable_rwm
38463         if test "$ol_enable_rwm" = mod ; then
38464                 MFLAG=SLAPD_MOD_DYNAMIC
38465                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38466         else
38467                 MFLAG=SLAPD_MOD_STATIC
38468                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38469         fi
38470
38471 cat >>confdefs.h <<_ACEOF
38472 #define SLAPD_OVER_RWM $MFLAG
38473 _ACEOF
38474
38475 fi
38476
38477 if test "$ol_enable_seqmod" != no ; then
38478         BUILD_SEQMOD=$ol_enable_seqmod
38479         if test "$ol_enable_seqmod" = mod ; then
38480                 MFLAG=SLAPD_MOD_DYNAMIC
38481                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38482         else
38483                 MFLAG=SLAPD_MOD_STATIC
38484                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38485         fi
38486
38487 cat >>confdefs.h <<_ACEOF
38488 #define SLAPD_OVER_SEQMOD $MFLAG
38489 _ACEOF
38490
38491 fi
38492
38493 if test "$ol_enable_sssvlv" != no ; then
38494         BUILD_SSSVLV=$ol_enable_sssvlv
38495         if test "$ol_enable_sssvlv" = mod ; then
38496                 MFLAG=SLAPD_MOD_DYNAMIC
38497                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38498         else
38499                 MFLAG=SLAPD_MOD_STATIC
38500                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38501         fi
38502
38503 cat >>confdefs.h <<_ACEOF
38504 #define SLAPD_OVER_SSSVLV $MFLAG
38505 _ACEOF
38506
38507 fi
38508
38509 if test "$ol_enable_syncprov" != no ; then
38510         BUILD_SYNCPROV=$ol_enable_syncprov
38511         if test "$ol_enable_syncprov" = mod ; then
38512                 MFLAG=SLAPD_MOD_DYNAMIC
38513                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38514         else
38515                 MFLAG=SLAPD_MOD_STATIC
38516                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38517         fi
38518
38519 cat >>confdefs.h <<_ACEOF
38520 #define SLAPD_OVER_SYNCPROV $MFLAG
38521 _ACEOF
38522
38523 fi
38524
38525 if test "$ol_enable_translucent" != no ; then
38526         BUILD_TRANSLUCENT=$ol_enable_translucent
38527         if test "$ol_enable_translucent" = mod ; then
38528                 MFLAG=SLAPD_MOD_DYNAMIC
38529                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38530         else
38531                 MFLAG=SLAPD_MOD_STATIC
38532                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38533         fi
38534
38535 cat >>confdefs.h <<_ACEOF
38536 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38537 _ACEOF
38538
38539 fi
38540
38541 if test "$ol_enable_unique" != no ; then
38542         BUILD_UNIQUE=$ol_enable_unique
38543         if test "$ol_enable_unique" = mod ; then
38544                 MFLAG=SLAPD_MOD_DYNAMIC
38545                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38546         else
38547                 MFLAG=SLAPD_MOD_STATIC
38548                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38549         fi
38550
38551 cat >>confdefs.h <<_ACEOF
38552 #define SLAPD_OVER_UNIQUE $MFLAG
38553 _ACEOF
38554
38555 fi
38556
38557 if test "$ol_enable_valsort" != no ; then
38558         BUILD_VALSORT=$ol_enable_valsort
38559         if test "$ol_enable_valsort" = mod ; then
38560                 MFLAG=SLAPD_MOD_DYNAMIC
38561                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38562         else
38563                 MFLAG=SLAPD_MOD_STATIC
38564                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38565         fi
38566
38567 cat >>confdefs.h <<_ACEOF
38568 #define SLAPD_OVER_VALSORT $MFLAG
38569 _ACEOF
38570
38571 fi
38572
38573 if test "$ol_enable_rewrite" != no ; then
38574
38575 cat >>confdefs.h <<\_ACEOF
38576 #define ENABLE_REWRITE 1
38577 _ACEOF
38578
38579         BUILD_REWRITE=yes
38580 fi
38581
38582 if test "$ol_enable_slapi" != no ; then
38583
38584 cat >>confdefs.h <<\_ACEOF
38585 #define ENABLE_SLAPI 1
38586 _ACEOF
38587
38588         BUILD_SLAPI=yes
38589         SLAPD_SLAPI_DEPEND=libslapi.a
38590 fi
38591
38592
38593
38594 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38595         PLAT=NT
38596         SLAPD_MODULES_LDFLAGS=
38597 else
38598         PLAT=UNIX
38599 fi
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
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691 # Check whether --with-xxinstall was given.
38692 if test "${with_xxinstall+set}" = set; then
38693   withval=$with_xxinstall;
38694 fi
38695
38696
38697
38698 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"
38699
38700
38701 ac_config_commands="$ac_config_commands default"
38702
38703
38704
38705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38706 # Let make expand exec_prefix.
38707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38708
38709 DEFS=-DHAVE_CONFIG_H
38710
38711 ac_libobjs=
38712 ac_ltlibobjs=
38713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38714   # 1. Remove the extension, and $U if already installed.
38715   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38716   ac_i=`echo "$ac_i" | sed "$ac_script"`
38717   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38718   #    will be set to the directory where LIBOBJS objects are built.
38719   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38720   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38721 done
38722 LIBOBJS=$ac_libobjs
38723
38724 LTLIBOBJS=$ac_ltlibobjs
38725
38726
38727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38728   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38729 Usually this means the macro was only invoked conditionally." >&5
38730 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38731 Usually this means the macro was only invoked conditionally." >&2;}
38732    { (exit 1); exit 1; }; }
38733 fi
38734 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38735   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38736 Usually this means the macro was only invoked conditionally." >&5
38737 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38738 Usually this means the macro was only invoked conditionally." >&2;}
38739    { (exit 1); exit 1; }; }
38740 fi
38741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38742   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38743 Usually this means the macro was only invoked conditionally." >&5
38744 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38745 Usually this means the macro was only invoked conditionally." >&2;}
38746    { (exit 1); exit 1; }; }
38747 fi
38748
38749 : ${CONFIG_STATUS=./config.status}
38750 ac_clean_files_save=$ac_clean_files
38751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38754 cat >$CONFIG_STATUS <<_ACEOF
38755 #! $SHELL
38756 # Generated by $as_me.
38757 # Run this file to recreate the current configuration.
38758 # Compiler output produced by configure, useful for debugging
38759 # configure, is in config.log if it exists.
38760
38761 debug=false
38762 ac_cs_recheck=false
38763 ac_cs_silent=false
38764 SHELL=\${CONFIG_SHELL-$SHELL}
38765 _ACEOF
38766
38767 cat >>$CONFIG_STATUS <<\_ACEOF
38768 ## --------------------- ##
38769 ## M4sh Initialization.  ##
38770 ## --------------------- ##
38771
38772 # Be more Bourne compatible
38773 DUALCASE=1; export DUALCASE # for MKS sh
38774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38775   emulate sh
38776   NULLCMD=:
38777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38778   # is contrary to our usage.  Disable this feature.
38779   alias -g '${1+"$@"}'='"$@"'
38780   setopt NO_GLOB_SUBST
38781 else
38782   case `(set -o) 2>/dev/null` in
38783   *posix*) set -o posix ;;
38784 esac
38785
38786 fi
38787
38788
38789
38790
38791 # PATH needs CR
38792 # Avoid depending upon Character Ranges.
38793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38796 as_cr_digits='0123456789'
38797 as_cr_alnum=$as_cr_Letters$as_cr_digits
38798
38799 # The user is always right.
38800 if test "${PATH_SEPARATOR+set}" != set; then
38801   echo "#! /bin/sh" >conf$$.sh
38802   echo  "exit 0"   >>conf$$.sh
38803   chmod +x conf$$.sh
38804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38805     PATH_SEPARATOR=';'
38806   else
38807     PATH_SEPARATOR=:
38808   fi
38809   rm -f conf$$.sh
38810 fi
38811
38812 # Support unset when possible.
38813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38814   as_unset=unset
38815 else
38816   as_unset=false
38817 fi
38818
38819
38820 # IFS
38821 # We need space, tab and new line, in precisely that order.  Quoting is
38822 # there to prevent editors from complaining about space-tab.
38823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38824 # splitting by setting IFS to empty value.)
38825 as_nl='
38826 '
38827 IFS=" ""        $as_nl"
38828
38829 # Find who we are.  Look in the path if we contain no directory separator.
38830 case $0 in
38831   *[\\/]* ) as_myself=$0 ;;
38832   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38833 for as_dir in $PATH
38834 do
38835   IFS=$as_save_IFS
38836   test -z "$as_dir" && as_dir=.
38837   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38838 done
38839 IFS=$as_save_IFS
38840
38841      ;;
38842 esac
38843 # We did not find ourselves, most probably we were run as `sh COMMAND'
38844 # in which case we are not to be found in the path.
38845 if test "x$as_myself" = x; then
38846   as_myself=$0
38847 fi
38848 if test ! -f "$as_myself"; then
38849   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38850   { (exit 1); exit 1; }
38851 fi
38852
38853 # Work around bugs in pre-3.0 UWIN ksh.
38854 for as_var in ENV MAIL MAILPATH
38855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38856 done
38857 PS1='$ '
38858 PS2='> '
38859 PS4='+ '
38860
38861 # NLS nuisances.
38862 for as_var in \
38863   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38864   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38865   LC_TELEPHONE LC_TIME
38866 do
38867   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38868     eval $as_var=C; export $as_var
38869   else
38870     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38871   fi
38872 done
38873
38874 # Required to use basename.
38875 if expr a : '\(a\)' >/dev/null 2>&1 &&
38876    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38877   as_expr=expr
38878 else
38879   as_expr=false
38880 fi
38881
38882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38883   as_basename=basename
38884 else
38885   as_basename=false
38886 fi
38887
38888
38889 # Name of the executable.
38890 as_me=`$as_basename -- "$0" ||
38891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38892          X"$0" : 'X\(//\)$' \| \
38893          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38894 echo X/"$0" |
38895     sed '/^.*\/\([^/][^/]*\)\/*$/{
38896             s//\1/
38897             q
38898           }
38899           /^X\/\(\/\/\)$/{
38900             s//\1/
38901             q
38902           }
38903           /^X\/\(\/\).*/{
38904             s//\1/
38905             q
38906           }
38907           s/.*/./; q'`
38908
38909 # CDPATH.
38910 $as_unset CDPATH
38911
38912
38913
38914   as_lineno_1=$LINENO
38915   as_lineno_2=$LINENO
38916   test "x$as_lineno_1" != "x$as_lineno_2" &&
38917   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38918
38919   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38920   # uniformly replaced by the line number.  The first 'sed' inserts a
38921   # line-number line after each line using $LINENO; the second 'sed'
38922   # does the real work.  The second script uses 'N' to pair each
38923   # line-number line with the line containing $LINENO, and appends
38924   # trailing '-' during substitution so that $LINENO is not a special
38925   # case at line end.
38926   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38927   # scripts with optimization help from Paolo Bonzini.  Blame Lee
38928   # E. McMahon (1931-1989) for sed's syntax.  :-)
38929   sed -n '
38930     p
38931     /[$]LINENO/=
38932   ' <$as_myself |
38933     sed '
38934       s/[$]LINENO.*/&-/
38935       t lineno
38936       b
38937       :lineno
38938       N
38939       :loop
38940       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38941       t loop
38942       s/-\n.*//
38943     ' >$as_me.lineno &&
38944   chmod +x "$as_me.lineno" ||
38945     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38946    { (exit 1); exit 1; }; }
38947
38948   # Don't try to exec as it changes $[0], causing all sort of problems
38949   # (the dirname of $[0] is not the place where we might find the
38950   # original and so on.  Autoconf is especially sensitive to this).
38951   . "./$as_me.lineno"
38952   # Exit status is that of the last command.
38953   exit
38954 }
38955
38956
38957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38958   as_dirname=dirname
38959 else
38960   as_dirname=false
38961 fi
38962
38963 ECHO_C= ECHO_N= ECHO_T=
38964 case `echo -n x` in
38965 -n*)
38966   case `echo 'x\c'` in
38967   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
38968   *)   ECHO_C='\c';;
38969   esac;;
38970 *)
38971   ECHO_N='-n';;
38972 esac
38973
38974 if expr a : '\(a\)' >/dev/null 2>&1 &&
38975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38976   as_expr=expr
38977 else
38978   as_expr=false
38979 fi
38980
38981 rm -f conf$$ conf$$.exe conf$$.file
38982 if test -d conf$$.dir; then
38983   rm -f conf$$.dir/conf$$.file
38984 else
38985   rm -f conf$$.dir
38986   mkdir conf$$.dir
38987 fi
38988 echo >conf$$.file
38989 if ln -s conf$$.file conf$$ 2>/dev/null; then
38990   as_ln_s='ln -s'
38991   # ... but there are two gotchas:
38992   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38993   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38994   # In both cases, we have to default to `cp -p'.
38995   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38996     as_ln_s='cp -p'
38997 elif ln conf$$.file conf$$ 2>/dev/null; then
38998   as_ln_s=ln
38999 else
39000   as_ln_s='cp -p'
39001 fi
39002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39003 rmdir conf$$.dir 2>/dev/null
39004
39005 if mkdir -p . 2>/dev/null; then
39006   as_mkdir_p=:
39007 else
39008   test -d ./-p && rmdir ./-p
39009   as_mkdir_p=false
39010 fi
39011
39012 if test -x / >/dev/null 2>&1; then
39013   as_test_x='test -x'
39014 else
39015   if ls -dL / >/dev/null 2>&1; then
39016     as_ls_L_option=L
39017   else
39018     as_ls_L_option=
39019   fi
39020   as_test_x='
39021     eval sh -c '\''
39022       if test -d "$1"; then
39023         test -d "$1/.";
39024       else
39025         case $1 in
39026         -*)set "./$1";;
39027         esac;
39028         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39029         ???[sx]*):;;*)false;;esac;fi
39030     '\'' sh
39031   '
39032 fi
39033 as_executable_p=$as_test_x
39034
39035 # Sed expression to map a string onto a valid CPP name.
39036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39037
39038 # Sed expression to map a string onto a valid variable name.
39039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39040
39041
39042 exec 6>&1
39043
39044 # Save the log message, to keep $[0] and so on meaningful, and to
39045 # report actual input values of CONFIG_FILES etc. instead of their
39046 # values after options handling.
39047 ac_log="
39048 This file was extended by $as_me, which was
39049 generated by GNU Autoconf 2.61.  Invocation command line was
39050
39051   CONFIG_FILES    = $CONFIG_FILES
39052   CONFIG_HEADERS  = $CONFIG_HEADERS
39053   CONFIG_LINKS    = $CONFIG_LINKS
39054   CONFIG_COMMANDS = $CONFIG_COMMANDS
39055   $ $0 $@
39056
39057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39058 "
39059
39060 _ACEOF
39061
39062 cat >>$CONFIG_STATUS <<_ACEOF
39063 # Files that config.status was made for.
39064 config_files="$ac_config_files"
39065 config_headers="$ac_config_headers"
39066 config_commands="$ac_config_commands"
39067
39068 _ACEOF
39069
39070 cat >>$CONFIG_STATUS <<\_ACEOF
39071 ac_cs_usage="\
39072 \`$as_me' instantiates files from templates according to the
39073 current configuration.
39074
39075 Usage: $0 [OPTIONS] [FILE]...
39076
39077   -h, --help       print this help, then exit
39078   -V, --version    print version number and configuration settings, then exit
39079   -q, --quiet      do not print progress messages
39080   -d, --debug      don't remove temporary files
39081       --recheck    update $as_me by reconfiguring in the same conditions
39082   --file=FILE[:TEMPLATE]
39083                    instantiate the configuration file FILE
39084   --header=FILE[:TEMPLATE]
39085                    instantiate the configuration header FILE
39086
39087 Configuration files:
39088 $config_files
39089
39090 Configuration headers:
39091 $config_headers
39092
39093 Configuration commands:
39094 $config_commands
39095
39096 Report bugs to <bug-autoconf@gnu.org>."
39097
39098 _ACEOF
39099 cat >>$CONFIG_STATUS <<_ACEOF
39100 ac_cs_version="\\
39101 config.status
39102 configured by $0, generated by GNU Autoconf 2.61,
39103   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39104
39105 Copyright (C) 2006 Free Software Foundation, Inc.
39106 This config.status script is free software; the Free Software Foundation
39107 gives unlimited permission to copy, distribute and modify it."
39108
39109 ac_pwd='$ac_pwd'
39110 srcdir='$srcdir'
39111 INSTALL='$INSTALL'
39112 _ACEOF
39113
39114 cat >>$CONFIG_STATUS <<\_ACEOF
39115 # If no file are specified by the user, then we need to provide default
39116 # value.  By we need to know if files were specified by the user.
39117 ac_need_defaults=:
39118 while test $# != 0
39119 do
39120   case $1 in
39121   --*=*)
39122     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39123     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39124     ac_shift=:
39125     ;;
39126   *)
39127     ac_option=$1
39128     ac_optarg=$2
39129     ac_shift=shift
39130     ;;
39131   esac
39132
39133   case $ac_option in
39134   # Handling of the options.
39135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39136     ac_cs_recheck=: ;;
39137   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39138     echo "$ac_cs_version"; exit ;;
39139   --debug | --debu | --deb | --de | --d | -d )
39140     debug=: ;;
39141   --file | --fil | --fi | --f )
39142     $ac_shift
39143     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39144     ac_need_defaults=false;;
39145   --header | --heade | --head | --hea )
39146     $ac_shift
39147     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39148     ac_need_defaults=false;;
39149   --he | --h)
39150     # Conflict between --help and --header
39151     { echo "$as_me: error: ambiguous option: $1
39152 Try \`$0 --help' for more information." >&2
39153    { (exit 1); exit 1; }; };;
39154   --help | --hel | -h )
39155     echo "$ac_cs_usage"; exit ;;
39156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39157   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39158     ac_cs_silent=: ;;
39159
39160   # This is an error.
39161   -*) { echo "$as_me: error: unrecognized option: $1
39162 Try \`$0 --help' for more information." >&2
39163    { (exit 1); exit 1; }; } ;;
39164
39165   *) ac_config_targets="$ac_config_targets $1"
39166      ac_need_defaults=false ;;
39167
39168   esac
39169   shift
39170 done
39171
39172 ac_configure_extra_args=
39173
39174 if $ac_cs_silent; then
39175   exec 6>/dev/null
39176   ac_configure_extra_args="$ac_configure_extra_args --silent"
39177 fi
39178
39179 _ACEOF
39180 cat >>$CONFIG_STATUS <<_ACEOF
39181 if \$ac_cs_recheck; then
39182   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39183   CONFIG_SHELL=$SHELL
39184   export CONFIG_SHELL
39185   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39186 fi
39187
39188 _ACEOF
39189 cat >>$CONFIG_STATUS <<\_ACEOF
39190 exec 5>>config.log
39191 {
39192   echo
39193   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39194 ## Running $as_me. ##
39195 _ASBOX
39196   echo "$ac_log"
39197 } >&5
39198
39199 _ACEOF
39200 cat >>$CONFIG_STATUS <<_ACEOF
39201 #
39202 # INIT-COMMANDS
39203 #
39204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39205
39206 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39207 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39208
39209
39210 _ACEOF
39211
39212 cat >>$CONFIG_STATUS <<\_ACEOF
39213
39214 # Handling of arguments.
39215 for ac_config_target in $ac_config_targets
39216 do
39217   case $ac_config_target in
39218     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39219     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39220     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39221     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39222     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39223     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39224     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39225     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39226     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39227     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39228     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39229     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39230     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39231     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39232     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39233     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39234     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39235     "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" ;;
39236     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39237     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39238     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39239     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39240     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39241     "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" ;;
39242     "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" ;;
39243     "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" ;;
39244     "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" ;;
39245     "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" ;;
39246     "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" ;;
39247     "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" ;;
39248     "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" ;;
39249     "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" ;;
39250     "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" ;;
39251     "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" ;;
39252     "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" ;;
39253     "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" ;;
39254     "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" ;;
39255     "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" ;;
39256     "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" ;;
39257     "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" ;;
39258     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39259     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39260     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39261     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39262     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39263
39264   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39266    { (exit 1); exit 1; }; };;
39267   esac
39268 done
39269
39270
39271 # If the user did not use the arguments to specify the items to instantiate,
39272 # then the envvar interface is used.  Set only those that are not.
39273 # We use the long form for the default assignment because of an extremely
39274 # bizarre bug on SunOS 4.1.3.
39275 if $ac_need_defaults; then
39276   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39277   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39278   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39279 fi
39280
39281 # Have a temporary directory for convenience.  Make it in the build tree
39282 # simply because there is no reason against having it here, and in addition,
39283 # creating and moving files from /tmp can sometimes cause problems.
39284 # Hook for its removal unless debugging.
39285 # Note that there is a small window in which the directory will not be cleaned:
39286 # after its creation but before its name has been assigned to `$tmp'.
39287 $debug ||
39288 {
39289   tmp=
39290   trap 'exit_status=$?
39291   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39292 ' 0
39293   trap '{ (exit 1); exit 1; }' 1 2 13 15
39294 }
39295 # Create a (secure) tmp directory for tmp files.
39296
39297 {
39298   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39299   test -n "$tmp" && test -d "$tmp"
39300 }  ||
39301 {
39302   tmp=./conf$$-$RANDOM
39303   (umask 077 && mkdir "$tmp")
39304 } ||
39305 {
39306    echo "$me: cannot create a temporary directory in ." >&2
39307    { (exit 1); exit 1; }
39308 }
39309
39310 #
39311 # Set up the sed scripts for CONFIG_FILES section.
39312 #
39313
39314 # No need to generate the scripts if there are no CONFIG_FILES.
39315 # This happens for instance when ./config.status config.h
39316 if test -n "$CONFIG_FILES"; then
39317
39318 _ACEOF
39319
39320
39321
39322 ac_delim='%!_!# '
39323 for ac_last_try in false false false false false :; do
39324   cat >conf$$subs.sed <<_ACEOF
39325 SHELL!$SHELL$ac_delim
39326 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39327 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39328 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39329 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39330 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39331 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39332 exec_prefix!$exec_prefix$ac_delim
39333 prefix!$prefix$ac_delim
39334 program_transform_name!$program_transform_name$ac_delim
39335 bindir!$bindir$ac_delim
39336 sbindir!$sbindir$ac_delim
39337 libexecdir!$libexecdir$ac_delim
39338 datarootdir!$datarootdir$ac_delim
39339 datadir!$datadir$ac_delim
39340 sysconfdir!$sysconfdir$ac_delim
39341 sharedstatedir!$sharedstatedir$ac_delim
39342 localstatedir!$localstatedir$ac_delim
39343 includedir!$includedir$ac_delim
39344 oldincludedir!$oldincludedir$ac_delim
39345 docdir!$docdir$ac_delim
39346 infodir!$infodir$ac_delim
39347 htmldir!$htmldir$ac_delim
39348 dvidir!$dvidir$ac_delim
39349 pdfdir!$pdfdir$ac_delim
39350 psdir!$psdir$ac_delim
39351 libdir!$libdir$ac_delim
39352 localedir!$localedir$ac_delim
39353 mandir!$mandir$ac_delim
39354 DEFS!$DEFS$ac_delim
39355 ECHO_C!$ECHO_C$ac_delim
39356 ECHO_N!$ECHO_N$ac_delim
39357 ECHO_T!$ECHO_T$ac_delim
39358 LIBS!$LIBS$ac_delim
39359 build_alias!$build_alias$ac_delim
39360 host_alias!$host_alias$ac_delim
39361 target_alias!$target_alias$ac_delim
39362 build!$build$ac_delim
39363 build_cpu!$build_cpu$ac_delim
39364 build_vendor!$build_vendor$ac_delim
39365 build_os!$build_os$ac_delim
39366 host!$host$ac_delim
39367 host_cpu!$host_cpu$ac_delim
39368 host_vendor!$host_vendor$ac_delim
39369 host_os!$host_os$ac_delim
39370 target!$target$ac_delim
39371 target_cpu!$target_cpu$ac_delim
39372 target_vendor!$target_vendor$ac_delim
39373 target_os!$target_os$ac_delim
39374 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39375 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39376 INSTALL_DATA!$INSTALL_DATA$ac_delim
39377 CYGPATH_W!$CYGPATH_W$ac_delim
39378 PACKAGE!$PACKAGE$ac_delim
39379 VERSION!$VERSION$ac_delim
39380 ACLOCAL!$ACLOCAL$ac_delim
39381 AUTOCONF!$AUTOCONF$ac_delim
39382 AUTOMAKE!$AUTOMAKE$ac_delim
39383 AUTOHEADER!$AUTOHEADER$ac_delim
39384 MAKEINFO!$MAKEINFO$ac_delim
39385 install_sh!$install_sh$ac_delim
39386 STRIP!$STRIP$ac_delim
39387 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39388 mkdir_p!$mkdir_p$ac_delim
39389 AWK!$AWK$ac_delim
39390 SET_MAKE!$SET_MAKE$ac_delim
39391 am__leading_dot!$am__leading_dot$ac_delim
39392 AMTAR!$AMTAR$ac_delim
39393 am__tar!$am__tar$ac_delim
39394 am__untar!$am__untar$ac_delim
39395 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39396 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39397 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39398 top_builddir!$top_builddir$ac_delim
39399 ldap_subdir!$ldap_subdir$ac_delim
39400 CC!$CC$ac_delim
39401 AR!$AR$ac_delim
39402 CFLAGS!$CFLAGS$ac_delim
39403 LDFLAGS!$LDFLAGS$ac_delim
39404 CPPFLAGS!$CPPFLAGS$ac_delim
39405 ac_ct_CC!$ac_ct_CC$ac_delim
39406 EXEEXT!$EXEEXT$ac_delim
39407 OBJEXT!$OBJEXT$ac_delim
39408 DEPDIR!$DEPDIR$ac_delim
39409 am__include!$am__include$ac_delim
39410 am__quote!$am__quote$ac_delim
39411 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39412 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39413 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39414 CCDEPMODE!$CCDEPMODE$ac_delim
39415 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39416 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39417 GREP!$GREP$ac_delim
39418 EGREP!$EGREP$ac_delim
39419 LN_S!$LN_S$ac_delim
39420 ECHO!$ECHO$ac_delim
39421 RANLIB!$RANLIB$ac_delim
39422 _ACEOF
39423
39424   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39425     break
39426   elif $ac_last_try; then
39427     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39428 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39429    { (exit 1); exit 1; }; }
39430   else
39431     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39432   fi
39433 done
39434
39435 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39436 if test -n "$ac_eof"; then
39437   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39438   ac_eof=`expr $ac_eof + 1`
39439 fi
39440
39441 cat >>$CONFIG_STATUS <<_ACEOF
39442 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39444 _ACEOF
39445 sed '
39446 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39447 s/^/s,@/; s/!/@,|#_!!_#|/
39448 :n
39449 t n
39450 s/'"$ac_delim"'$/,g/; t
39451 s/$/\\/; p
39452 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39453 ' >>$CONFIG_STATUS <conf$$subs.sed
39454 rm -f conf$$subs.sed
39455 cat >>$CONFIG_STATUS <<_ACEOF
39456 CEOF$ac_eof
39457 _ACEOF
39458
39459
39460 ac_delim='%!_!# '
39461 for ac_last_try in false false false false false :; do
39462   cat >conf$$subs.sed <<_ACEOF
39463 DLLTOOL!$DLLTOOL$ac_delim
39464 AS!$AS$ac_delim
39465 OBJDUMP!$OBJDUMP$ac_delim
39466 CPP!$CPP$ac_delim
39467 LIBTOOL!$LIBTOOL$ac_delim
39468 PERLBIN!$PERLBIN$ac_delim
39469 OL_MKDEP!$OL_MKDEP$ac_delim
39470 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39471 LTSTATIC!$LTSTATIC$ac_delim
39472 MYSQL!$MYSQL$ac_delim
39473 LIBOBJS!$LIBOBJS$ac_delim
39474 LIBSRCS!$LIBSRCS$ac_delim
39475 PLAT!$PLAT$ac_delim
39476 WITH_SASL!$WITH_SASL$ac_delim
39477 WITH_TLS!$WITH_TLS$ac_delim
39478 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39479 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39480 BUILD_THREAD!$BUILD_THREAD$ac_delim
39481 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39482 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39483 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39484 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39485 BUILD_BDB!$BUILD_BDB$ac_delim
39486 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39487 BUILD_HDB!$BUILD_HDB$ac_delim
39488 BUILD_LDAP!$BUILD_LDAP$ac_delim
39489 BUILD_META!$BUILD_META$ac_delim
39490 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39491 BUILD_NDB!$BUILD_NDB$ac_delim
39492 BUILD_NULL!$BUILD_NULL$ac_delim
39493 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39494 BUILD_RELAY!$BUILD_RELAY$ac_delim
39495 BUILD_PERL!$BUILD_PERL$ac_delim
39496 BUILD_SHELL!$BUILD_SHELL$ac_delim
39497 BUILD_SOCK!$BUILD_SOCK$ac_delim
39498 BUILD_SQL!$BUILD_SQL$ac_delim
39499 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39500 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39501 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39502 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39503 BUILD_DDS!$BUILD_DDS$ac_delim
39504 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39505 BUILD_DEREF!$BUILD_DEREF$ac_delim
39506 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39507 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39508 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39509 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39510 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39511 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39512 BUILD_REFINT!$BUILD_REFINT$ac_delim
39513 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39514 BUILD_RWM!$BUILD_RWM$ac_delim
39515 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39516 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39517 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39518 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39519 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39520 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39521 LDAP_LIBS!$LDAP_LIBS$ac_delim
39522 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39523 BDB_LIBS!$BDB_LIBS$ac_delim
39524 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39525 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39526 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39527 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39528 WRAP_LIBS!$WRAP_LIBS$ac_delim
39529 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39530 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39531 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39532 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39533 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39534 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39535 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39536 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39537 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39538 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39539 KRB4_LIBS!$KRB4_LIBS$ac_delim
39540 KRB5_LIBS!$KRB5_LIBS$ac_delim
39541 SASL_LIBS!$SASL_LIBS$ac_delim
39542 TLS_LIBS!$TLS_LIBS$ac_delim
39543 MODULES_LIBS!$MODULES_LIBS$ac_delim
39544 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39545 LIBSLAPI!$LIBSLAPI$ac_delim
39546 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39547 AUTH_LIBS!$AUTH_LIBS$ac_delim
39548 ICU_LIBS!$ICU_LIBS$ac_delim
39549 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39550 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39551 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39552 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39553 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39554 LTLIBOBJS!$LTLIBOBJS$ac_delim
39555 _ACEOF
39556
39557   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
39558     break
39559   elif $ac_last_try; then
39560     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39562    { (exit 1); exit 1; }; }
39563   else
39564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39565   fi
39566 done
39567
39568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39569 if test -n "$ac_eof"; then
39570   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39571   ac_eof=`expr $ac_eof + 1`
39572 fi
39573
39574 cat >>$CONFIG_STATUS <<_ACEOF
39575 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39577 _ACEOF
39578 sed '
39579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39580 s/^/s,@/; s/!/@,|#_!!_#|/
39581 :n
39582 t n
39583 s/'"$ac_delim"'$/,g/; t
39584 s/$/\\/; p
39585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39586 ' >>$CONFIG_STATUS <conf$$subs.sed
39587 rm -f conf$$subs.sed
39588 cat >>$CONFIG_STATUS <<_ACEOF
39589 :end
39590 s/|#_!!_#|//g
39591 CEOF$ac_eof
39592 _ACEOF
39593
39594
39595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39597 # trailing colons and then remove the whole line if VPATH becomes empty
39598 # (actually we leave an empty line to preserve line numbers).
39599 if test "x$srcdir" = x.; then
39600   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39601 s/:*\$(srcdir):*/:/
39602 s/:*\${srcdir}:*/:/
39603 s/:*@srcdir@:*/:/
39604 s/^\([^=]*=[     ]*\):*/\1/
39605 s/:*$//
39606 s/^[^=]*=[       ]*$//
39607 }'
39608 fi
39609
39610 cat >>$CONFIG_STATUS <<\_ACEOF
39611 fi # test -n "$CONFIG_FILES"
39612
39613
39614 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39615 do
39616   case $ac_tag in
39617   :[FHLC]) ac_mode=$ac_tag; continue;;
39618   esac
39619   case $ac_mode$ac_tag in
39620   :[FHL]*:*);;
39621   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39622 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39623    { (exit 1); exit 1; }; };;
39624   :[FH]-) ac_tag=-:-;;
39625   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39626   esac
39627   ac_save_IFS=$IFS
39628   IFS=:
39629   set x $ac_tag
39630   IFS=$ac_save_IFS
39631   shift
39632   ac_file=$1
39633   shift
39634
39635   case $ac_mode in
39636   :L) ac_source=$1;;
39637   :[FH])
39638     ac_file_inputs=
39639     for ac_f
39640     do
39641       case $ac_f in
39642       -) ac_f="$tmp/stdin";;
39643       *) # Look for the file first in the build tree, then in the source tree
39644          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39645          # because $ac_f cannot contain `:'.
39646          test -f "$ac_f" ||
39647            case $ac_f in
39648            [\\/$]*) false;;
39649            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39650            esac ||
39651            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39652 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39653    { (exit 1); exit 1; }; };;
39654       esac
39655       ac_file_inputs="$ac_file_inputs $ac_f"
39656     done
39657
39658     # Let's still pretend it is `configure' which instantiates (i.e., don't
39659     # use $as_me), people would be surprised to read:
39660     #    /* config.h.  Generated by config.status.  */
39661     configure_input="Generated from "`IFS=:
39662           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39663     if test x"$ac_file" != x-; then
39664       configure_input="$ac_file.  $configure_input"
39665       { echo "$as_me:$LINENO: creating $ac_file" >&5
39666 echo "$as_me: creating $ac_file" >&6;}
39667     fi
39668
39669     case $ac_tag in
39670     *:-:* | *:-) cat >"$tmp/stdin";;
39671     esac
39672     ;;
39673   esac
39674
39675   ac_dir=`$as_dirname -- "$ac_file" ||
39676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39677          X"$ac_file" : 'X\(//\)[^/]' \| \
39678          X"$ac_file" : 'X\(//\)$' \| \
39679          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39680 echo X"$ac_file" |
39681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39682             s//\1/
39683             q
39684           }
39685           /^X\(\/\/\)[^/].*/{
39686             s//\1/
39687             q
39688           }
39689           /^X\(\/\/\)$/{
39690             s//\1/
39691             q
39692           }
39693           /^X\(\/\).*/{
39694             s//\1/
39695             q
39696           }
39697           s/.*/./; q'`
39698   { as_dir="$ac_dir"
39699   case $as_dir in #(
39700   -*) as_dir=./$as_dir;;
39701   esac
39702   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39703     as_dirs=
39704     while :; do
39705       case $as_dir in #(
39706       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39707       *) as_qdir=$as_dir;;
39708       esac
39709       as_dirs="'$as_qdir' $as_dirs"
39710       as_dir=`$as_dirname -- "$as_dir" ||
39711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39712          X"$as_dir" : 'X\(//\)[^/]' \| \
39713          X"$as_dir" : 'X\(//\)$' \| \
39714          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39715 echo X"$as_dir" |
39716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39717             s//\1/
39718             q
39719           }
39720           /^X\(\/\/\)[^/].*/{
39721             s//\1/
39722             q
39723           }
39724           /^X\(\/\/\)$/{
39725             s//\1/
39726             q
39727           }
39728           /^X\(\/\).*/{
39729             s//\1/
39730             q
39731           }
39732           s/.*/./; q'`
39733       test -d "$as_dir" && break
39734     done
39735     test -z "$as_dirs" || eval "mkdir $as_dirs"
39736   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39737 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39738    { (exit 1); exit 1; }; }; }
39739   ac_builddir=.
39740
39741 case "$ac_dir" in
39742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39743 *)
39744   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39745   # A ".." for each directory in $ac_dir_suffix.
39746   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39747   case $ac_top_builddir_sub in
39748   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39749   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39750   esac ;;
39751 esac
39752 ac_abs_top_builddir=$ac_pwd
39753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39754 # for backward compatibility:
39755 ac_top_builddir=$ac_top_build_prefix
39756
39757 case $srcdir in
39758   .)  # We are building in place.
39759     ac_srcdir=.
39760     ac_top_srcdir=$ac_top_builddir_sub
39761     ac_abs_top_srcdir=$ac_pwd ;;
39762   [\\/]* | ?:[\\/]* )  # Absolute name.
39763     ac_srcdir=$srcdir$ac_dir_suffix;
39764     ac_top_srcdir=$srcdir
39765     ac_abs_top_srcdir=$srcdir ;;
39766   *) # Relative name.
39767     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39768     ac_top_srcdir=$ac_top_build_prefix$srcdir
39769     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39770 esac
39771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39772
39773
39774   case $ac_mode in
39775   :F)
39776   #
39777   # CONFIG_FILE
39778   #
39779
39780   case $INSTALL in
39781   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39782   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39783   esac
39784 _ACEOF
39785
39786 cat >>$CONFIG_STATUS <<\_ACEOF
39787 # If the template does not know about datarootdir, expand it.
39788 # FIXME: This hack should be removed a few years after 2.60.
39789 ac_datarootdir_hack=; ac_datarootdir_seen=
39790
39791 case `sed -n '/datarootdir/ {
39792   p
39793   q
39794 }
39795 /@datadir@/p
39796 /@docdir@/p
39797 /@infodir@/p
39798 /@localedir@/p
39799 /@mandir@/p
39800 ' $ac_file_inputs` in
39801 *datarootdir*) ac_datarootdir_seen=yes;;
39802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39803   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39804 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39805 _ACEOF
39806 cat >>$CONFIG_STATUS <<_ACEOF
39807   ac_datarootdir_hack='
39808   s&@datadir@&$datadir&g
39809   s&@docdir@&$docdir&g
39810   s&@infodir@&$infodir&g
39811   s&@localedir@&$localedir&g
39812   s&@mandir@&$mandir&g
39813     s&\\\${datarootdir}&$datarootdir&g' ;;
39814 esac
39815 _ACEOF
39816
39817 # Neutralize VPATH when `$srcdir' = `.'.
39818 # Shell code in configure.ac might set extrasub.
39819 # FIXME: do we really want to maintain this feature?
39820 cat >>$CONFIG_STATUS <<_ACEOF
39821   sed "$ac_vpsub
39822 $extrasub
39823 _ACEOF
39824 cat >>$CONFIG_STATUS <<\_ACEOF
39825 :t
39826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39827 s&@configure_input@&$configure_input&;t t
39828 s&@top_builddir@&$ac_top_builddir_sub&;t t
39829 s&@srcdir@&$ac_srcdir&;t t
39830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39831 s&@top_srcdir@&$ac_top_srcdir&;t t
39832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39833 s&@builddir@&$ac_builddir&;t t
39834 s&@abs_builddir@&$ac_abs_builddir&;t t
39835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39836 s&@INSTALL@&$ac_INSTALL&;t t
39837 $ac_datarootdir_hack
39838 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39839
39840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39841   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39842   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39843   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39844 which seems to be undefined.  Please make sure it is defined." >&5
39845 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39846 which seems to be undefined.  Please make sure it is defined." >&2;}
39847
39848   rm -f "$tmp/stdin"
39849   case $ac_file in
39850   -) cat "$tmp/out"; rm -f "$tmp/out";;
39851   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39852   esac
39853  ;;
39854   :H)
39855   #
39856   # CONFIG_HEADER
39857   #
39858 _ACEOF
39859
39860 # Transform confdefs.h into a sed script `conftest.defines', that
39861 # substitutes the proper values into config.h.in to produce config.h.
39862 rm -f conftest.defines conftest.tail
39863 # First, append a space to every undef/define line, to ease matching.
39864 echo 's/$/ /' >conftest.defines
39865 # Then, protect against being on the right side of a sed subst, or in
39866 # an unquoted here document, in config.status.  If some macros were
39867 # called several times there might be several #defines for the same
39868 # symbol, which is useless.  But do not sort them, since the last
39869 # AC_DEFINE must be honored.
39870 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39871 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39872 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39873 # PARAMS is the parameter list in the macro definition--in most cases, it's
39874 # just an empty string.
39875 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
39876 ac_dB='\\)[      (].*,\\1define\\2'
39877 ac_dC=' '
39878 ac_dD=' ,'
39879
39880 uniq confdefs.h |
39881   sed -n '
39882         t rset
39883         :rset
39884         s/^[     ]*#[    ]*define[       ][      ]*//
39885         t ok
39886         d
39887         :ok
39888         s/[\\&,]/\\&/g
39889         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39890         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39891   ' >>conftest.defines
39892
39893 # Remove the space that was appended to ease matching.
39894 # Then replace #undef with comments.  This is necessary, for
39895 # example, in the case of _POSIX_SOURCE, which is predefined and required
39896 # on some systems where configure will not decide to define it.
39897 # (The regexp can be short, since the line contains either #define or #undef.)
39898 echo 's/ $//
39899 s,^[     #]*u.*,/* & */,' >>conftest.defines
39900
39901 # Break up conftest.defines:
39902 ac_max_sed_lines=50
39903
39904 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39905 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39906 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39907 # et cetera.
39908 ac_in='$ac_file_inputs'
39909 ac_out='"$tmp/out1"'
39910 ac_nxt='"$tmp/out2"'
39911
39912 while :
39913 do
39914   # Write a here document:
39915     cat >>$CONFIG_STATUS <<_ACEOF
39916     # First, check the format of the line:
39917     cat >"\$tmp/defines.sed" <<\\CEOF
39918 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
39919 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
39920 b
39921 :def
39922 _ACEOF
39923   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39924   echo 'CEOF
39925     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39926   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39927   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39928   grep . conftest.tail >/dev/null || break
39929   rm -f conftest.defines
39930   mv conftest.tail conftest.defines
39931 done
39932 rm -f conftest.defines conftest.tail
39933
39934 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39935 cat >>$CONFIG_STATUS <<\_ACEOF
39936   if test x"$ac_file" != x-; then
39937     echo "/* $configure_input  */" >"$tmp/config.h"
39938     cat "$ac_result" >>"$tmp/config.h"
39939     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39940       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39941 echo "$as_me: $ac_file is unchanged" >&6;}
39942     else
39943       rm -f $ac_file
39944       mv "$tmp/config.h" $ac_file
39945     fi
39946   else
39947     echo "/* $configure_input  */"
39948     cat "$ac_result"
39949   fi
39950   rm -f "$tmp/out12"
39951 # Compute $ac_file's index in $config_headers.
39952 _am_stamp_count=1
39953 for _am_header in $config_headers :; do
39954   case $_am_header in
39955     $ac_file | $ac_file:* )
39956       break ;;
39957     * )
39958       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39959   esac
39960 done
39961 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39962 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39963          X$ac_file : 'X\(//\)[^/]' \| \
39964          X$ac_file : 'X\(//\)$' \| \
39965          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39966 echo X$ac_file |
39967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39968             s//\1/
39969             q
39970           }
39971           /^X\(\/\/\)[^/].*/{
39972             s//\1/
39973             q
39974           }
39975           /^X\(\/\/\)$/{
39976             s//\1/
39977             q
39978           }
39979           /^X\(\/\).*/{
39980             s//\1/
39981             q
39982           }
39983           s/.*/./; q'`/stamp-h$_am_stamp_count
39984  ;;
39985
39986   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39987 echo "$as_me: executing $ac_file commands" >&6;}
39988  ;;
39989   esac
39990
39991
39992   case $ac_file$ac_mode in
39993     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39994   # Strip MF so we end up with the name of the file.
39995   mf=`echo "$mf" | sed -e 's/:.*$//'`
39996   # Check whether this is an Automake generated Makefile or not.
39997   # We used to match only the files named `Makefile.in', but
39998   # some people rename them; so instead we look at the file content.
39999   # Grep'ing the first line is not enough: some people post-process
40000   # each Makefile.in and add a new line on top of each file to say so.
40001   # So let's grep whole file.
40002   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40003     dirpart=`$as_dirname -- "$mf" ||
40004 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40005          X"$mf" : 'X\(//\)[^/]' \| \
40006          X"$mf" : 'X\(//\)$' \| \
40007          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40008 echo X"$mf" |
40009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40010             s//\1/
40011             q
40012           }
40013           /^X\(\/\/\)[^/].*/{
40014             s//\1/
40015             q
40016           }
40017           /^X\(\/\/\)$/{
40018             s//\1/
40019             q
40020           }
40021           /^X\(\/\).*/{
40022             s//\1/
40023             q
40024           }
40025           s/.*/./; q'`
40026   else
40027     continue
40028   fi
40029   # Extract the definition of DEPDIR, am__include, and am__quote
40030   # from the Makefile without running `make'.
40031   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40032   test -z "$DEPDIR" && continue
40033   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40034   test -z "am__include" && continue
40035   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40036   # When using ansi2knr, U may be empty or an underscore; expand it
40037   U=`sed -n 's/^U = //p' < "$mf"`
40038   # Find all dependency output files, they are included files with
40039   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40040   # simplest approach to changing $(DEPDIR) to its actual value in the
40041   # expansion.
40042   for file in `sed -n "
40043     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40044        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40045     # Make sure the directory exists.
40046     test -f "$dirpart/$file" && continue
40047     fdir=`$as_dirname -- "$file" ||
40048 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40049          X"$file" : 'X\(//\)[^/]' \| \
40050          X"$file" : 'X\(//\)$' \| \
40051          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40052 echo X"$file" |
40053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40054             s//\1/
40055             q
40056           }
40057           /^X\(\/\/\)[^/].*/{
40058             s//\1/
40059             q
40060           }
40061           /^X\(\/\/\)$/{
40062             s//\1/
40063             q
40064           }
40065           /^X\(\/\).*/{
40066             s//\1/
40067             q
40068           }
40069           s/.*/./; q'`
40070     { as_dir=$dirpart/$fdir
40071   case $as_dir in #(
40072   -*) as_dir=./$as_dir;;
40073   esac
40074   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40075     as_dirs=
40076     while :; do
40077       case $as_dir in #(
40078       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40079       *) as_qdir=$as_dir;;
40080       esac
40081       as_dirs="'$as_qdir' $as_dirs"
40082       as_dir=`$as_dirname -- "$as_dir" ||
40083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40084          X"$as_dir" : 'X\(//\)[^/]' \| \
40085          X"$as_dir" : 'X\(//\)$' \| \
40086          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40087 echo X"$as_dir" |
40088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40089             s//\1/
40090             q
40091           }
40092           /^X\(\/\/\)[^/].*/{
40093             s//\1/
40094             q
40095           }
40096           /^X\(\/\/\)$/{
40097             s//\1/
40098             q
40099           }
40100           /^X\(\/\).*/{
40101             s//\1/
40102             q
40103           }
40104           s/.*/./; q'`
40105       test -d "$as_dir" && break
40106     done
40107     test -z "$as_dirs" || eval "mkdir $as_dirs"
40108   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40109 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40110    { (exit 1); exit 1; }; }; }
40111     # echo "creating $dirpart/$file"
40112     echo '# dummy' > "$dirpart/$file"
40113   done
40114 done
40115  ;;
40116     "default":C)
40117 chmod +x tests/run
40118 date > stamp-h
40119 BACKENDSC="servers/slapd/backends.c"
40120 echo "Making $BACKENDSC"
40121 rm -f $BACKENDSC
40122 cat > $BACKENDSC << ENDX
40123 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40124  *
40125  * Copyright 1998-2009 The OpenLDAP Foundation.
40126  * All rights reserved.
40127  *
40128  * Redistribution and use in source and binary forms, with or without
40129  * modification, are permitted only as authorized by the OpenLDAP
40130  * Public License.
40131  *
40132  * A copy of this license is available in the file LICENSE in the
40133  * top-level directory of the distribution or, alternatively, at
40134  * <http://www.OpenLDAP.org/license.html>.
40135  */
40136 /* This file is automatically generated by configure; please do not edit. */
40137
40138 #include "portable.h"
40139 #include "slap.h"
40140
40141 ENDX
40142 if test "${STATIC_BACKENDS}"; then
40143         for b in config ${STATIC_BACKENDS}; do
40144                 bb=`echo "${b}" | sed -e 's/back-//'`
40145                 cat >> $BACKENDSC << ENDX
40146 extern BI_init ${bb}_back_initialize;
40147 ENDX
40148         done
40149
40150         cat >> $BACKENDSC << ENDX
40151
40152 BackendInfo slap_binfo[] = {
40153 ENDX
40154
40155         for b in config ${STATIC_BACKENDS}; do
40156                 bb=`echo "${b}" | sed -e 's/back-//'`
40157                 echo "    Add ${bb} ..."
40158                 cat >> $BACKENDSC << ENDX
40159         { "${bb}", ${bb}_back_initialize },
40160 ENDX
40161         done
40162
40163         cat >> $BACKENDSC << ENDX
40164         { NULL, NULL },
40165 };
40166
40167 /* end of generated file */
40168 ENDX
40169 fi
40170 OVERLAYSC="servers/slapd/overlays/statover.c"
40171 echo "Making $OVERLAYSC"
40172 rm -f $OVERLAYSC
40173 cat > $OVERLAYSC << ENDX
40174 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40175  *
40176  * Copyright 1998-2009 The OpenLDAP Foundation.
40177  * All rights reserved.
40178  *
40179  * Redistribution and use in source and binary forms, with or without
40180  * modification, are permitted only as authorized by the OpenLDAP
40181  * Public License.
40182  *
40183  * A copy of this license is available in the file LICENSE in the
40184  * top-level directory of the distribution or, alternatively, at
40185  * <http://www.OpenLDAP.org/license.html>.
40186  */
40187 /* This file is automatically generated by configure; please do not edit. */
40188
40189 #include "portable.h"
40190 #include "slap.h"
40191
40192 ENDX
40193 if test "${STATIC_OVERLAYS}"; then
40194         for o in ${STATIC_OVERLAYS}; do
40195                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40196                 cat >> $OVERLAYSC << ENDX
40197 extern OV_init ${oo}_initialize;
40198 ENDX
40199         done
40200 fi
40201
40202 cat >> $OVERLAYSC << ENDX
40203
40204 OverlayInit slap_oinfo[] = {
40205 ENDX
40206
40207 if test "${STATIC_OVERLAYS}"; then
40208         for o in ${STATIC_OVERLAYS}; do
40209                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40210                 echo "    Add ${oo} ..."
40211                 cat >> $OVERLAYSC << ENDX
40212         { "${oo}", ${oo}_initialize },
40213 ENDX
40214         done
40215 fi
40216
40217         cat >> $OVERLAYSC << ENDX
40218         { NULL, NULL },
40219 };
40220
40221 /* end of generated file */
40222 ENDX
40223
40224 if test "${ol_cv_mkdep}" = no; then
40225         echo '(Do not "make depend"; we do not know how to build dependencies)'
40226 else
40227         echo 'Please run "make depend" to build dependencies'
40228 fi
40229  ;;
40230
40231   esac
40232 done # for ac_tag
40233
40234
40235 { (exit 0); exit 0; }
40236 _ACEOF
40237 chmod +x $CONFIG_STATUS
40238 ac_clean_files=$ac_clean_files_save
40239
40240
40241 # configure is writing to config.log, and then calls config.status.
40242 # config.status does its own redirection, appending to config.log.
40243 # Unfortunately, on DOS this fails, as config.log is still kept open
40244 # by configure, so config.status won't be able to write to it; its
40245 # output is simply discarded.  So we exec the FD to /dev/null,
40246 # effectively closing config.log, so it can be properly (re)opened and
40247 # appended to by config.status.  When coming back to configure, we
40248 # need to make the FD available again.
40249 if test "$no_create" != yes; then
40250   ac_cs_success=:
40251   ac_config_status_args=
40252   test "$silent" = yes &&
40253     ac_config_status_args="$ac_config_status_args --quiet"
40254   exec 5>/dev/null
40255   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40256   exec 5>>config.log
40257   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40258   # would make configure fail if this is the last instruction.
40259   $ac_cs_success || { (exit 1); exit 1; }
40260 fi
40261